:root {
  color-scheme: light;
  --color-ink: #17201d;
  --color-muted: #5f6b66;
  --color-soft: #edf4f1;
  --color-paper: #fbfaf6;
  --color-white: #ffffff;
  --color-green: #2f756a;
  --color-green-dark: #1e514a;
  --color-gold: #c49a47;
  --color-clay: #b96b4a;
  --color-line: #d7e1dc;
  --shadow-soft: 0 16px 36px rgba(26, 48, 43, 0.13);
  --content-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
select,
input,
textarea {
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(215, 225, 220, 0.85);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 800;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.site-nav a {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-green-dark);
}

.language-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
}

.language-switcher button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.language-switcher button.is-active {
  background: var(--color-green);
  color: var(--color-white);
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  background: var(--color-green-dark);
  color: var(--color-white);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("../images/company/company-signboard-hero-1920x1080.jpg");
  background-position: center right;
  background-size: cover;
  transform: scale(1.02);
  filter: saturate(1.04) contrast(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 22, 19, 0.97) 0%, rgba(13, 22, 19, 0.9) 40%, rgba(13, 22, 19, 0.42) 70%, rgba(13, 22, 19, 0.12) 100%),
    linear-gradient(0deg, rgba(13, 22, 19, 0.34), rgba(13, 22, 19, 0.08));
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: min(var(--content-max), calc(100% - 48px));
  min-height: 82svh;
  margin: 0 auto;
  padding: 120px 0 78px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--color-gold);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: 68px;
  line-height: 1.05;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.44);
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.service-area {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--color-gold);
  color: #17150f;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #d5ad61;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.13);
  color: var(--color-white);
}

.section {
  padding: 82px 0;
}

.section-inner {
  width: min(var(--content-max), calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.22;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.section-heading p:not(.section-kicker),
.intro-grid p,
.split-layout p,
.company-layout p,
.contact-layout p {
  color: var(--color-muted);
}

.intro-band {
  padding: 44px 0;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.muted {
  background: var(--color-soft);
}

.service-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.case-card,
.lead-form {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-image,
.case-card > img,
.contact-image,
.company-layout > img {
  aspect-ratio: 16 / 9;
}

.card-image {
  position: relative;
  background: #d9e6e1;
}

.card-image img,
.case-card > img,
.contact-image,
.company-layout > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image span,
.case-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.card-image span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(23, 32, 29, 0.78);
  color: var(--color-white);
}

.card-body,
.case-body {
  padding: 18px;
}

.card-body p,
.case-body p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.service-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.service-meta div {
  padding: 10px;
  border-radius: 8px;
  background: var(--color-soft);
}

.service-meta dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.service-meta dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.text-button {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--color-green);
  background: var(--color-white);
  color: var(--color-green-dark);
  cursor: pointer;
  font-weight: 800;
}

.text-button:hover,
.text-button:focus-visible {
  background: var(--color-green);
  color: var(--color-white);
}

.case-badge {
  padding: 5px 8px;
  background: #fff4d8;
  color: #7a5311;
}

.pricing-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.pricing-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  background: var(--color-green-dark);
  color: var(--color-white);
  font-size: 14px;
}

.pricing-table tr:last-child td {
  border-bottom: 0;
}

.split-section {
  background: var(--color-white);
}

.split-layout,
.company-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(26, 48, 43, 0.08);
  overflow: hidden;
}

.faq-item summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 900;
}

.faq-item summary::after {
  content: "+";
  color: var(--color-green-dark);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  margin: 0;
  padding: 0 18px 18px 78px;
  color: var(--color-muted);
}

.company-layout > img {
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--color-line);
}

.info-list dt {
  color: var(--color-muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 700;
}

.contact-section {
  background: var(--color-green-dark);
  color: var(--color-white);
}

.contact-section .section-kicker {
  color: var(--color-gold);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-image {
  aspect-ratio: 1600 / 650;
  margin-top: 24px;
  border-radius: 8px;
  object-position: center center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--color-ink);
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfdad5;
  background: var(--color-white);
  color: var(--color-ink);
  padding: 10px 12px;
}

.lead-form textarea {
  min-height: 132px;
  resize: vertical;
}

.lead-form [aria-invalid="true"] {
  border-color: #c45135;
  box-shadow: 0 0 0 3px rgba(196, 81, 53, 0.14);
}

.file-upload {
  position: relative;
}

.file-upload-control {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfdad5;
  background: var(--color-white);
  cursor: pointer;
}

.file-upload-button {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 900;
  white-space: nowrap;
}

.file-upload-summary {
  min-width: 0;
  padding: 8px 12px 8px 0;
  color: var(--color-muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-upload:focus-within .file-upload-control {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(43, 126, 113, 0.16);
}

.file-upload-control[aria-invalid="true"] {
  border-color: #c45135;
  box-shadow: 0 0 0 3px rgba(196, 81, 53, 0.14);
}

.lead-form .file-input-native {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guided-form {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.guided-heading {
  display: grid;
  gap: 6px;
}

.guided-heading h3 {
  font-size: 18px;
}

.guided-group {
  display: grid;
  gap: 8px;
}

.guided-label {
  display: block;
  font-weight: 900;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice-chip {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cfdad5;
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.choice-chip:hover,
.choice-chip:focus-visible {
  border-color: var(--color-green);
}

.choice-chip.is-selected {
  border-color: var(--color-green);
  background: var(--color-green);
  color: var(--color-white);
}

.choice-chip:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.summary-box {
  display: grid;
  gap: 6px;
  padding: 12px 0 0;
  border-top: 1px dashed var(--color-line);
}

.generated-summary {
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-soft);
  color: var(--color-ink) !important;
  white-space: pre-line;
}

.form-note {
  margin: 0;
  color: var(--color-muted) !important;
  font-size: 13px;
}

.photo-list {
  display: grid;
  gap: 6px;
  margin: -8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 13px;
}

.photo-list li {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--color-soft);
  overflow-wrap: anywhere;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-status.is-error {
  color: #a33c26;
}

.form-status.is-success {
  color: var(--color-green-dark);
}

.mobile-cta {
  display: none;
}

.site-footer {
  display: grid;
  gap: 6px;
  padding: 28px 24px;
  background: #14241f;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .service-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 58px;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    gap: 10px;
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    display: none;
  }

  .language-switcher {
    gap: 4px;
  }

  .language-switcher button {
    min-width: 36px;
    min-height: 32px;
    font-size: 12px;
  }

  .hero,
  .hero-content {
    min-height: 76svh;
  }

  .hero-content {
    width: min(100% - 32px, var(--content-max));
    justify-content: flex-end;
    padding: 96px 0 58px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(13, 22, 19, 0.9) 0%, rgba(13, 22, 19, 0.72) 42%, rgba(13, 22, 19, 0.28) 100%),
      linear-gradient(90deg, rgba(13, 22, 19, 0.58), rgba(13, 22, 19, 0.16));
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section {
    padding: 58px 0;
  }

  .section-inner {
    width: min(100% - 32px, var(--content-max));
  }

  h2 {
    font-size: 28px;
  }

  .intro-grid,
  .split-layout,
  .company-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--color-gold);
    color: #17150f;
    box-shadow: 0 14px 28px rgba(25, 40, 36, 0.24);
    font-weight: 900;
    text-decoration: none;
  }
}

@media (max-width: 460px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher button {
    flex: 1;
  }

  .brand-name {
    white-space: normal;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .service-meta {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 18px;
  }

  .faq-item summary {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 12px;
  }

  .faq-answer {
    padding: 0 12px 14px 58px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 620px) {
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }
}
