:root {
  --color-ink: #17212b;
  --color-ink-soft: #2d3a45;
  --color-gold: #b88742;
  --color-teal: #3f7472;
  --color-steel: #607789;
  --color-paper: #ffffff;
  --color-mist: #f3f6f8;
  --color-line: #dce3e8;
  --shadow-soft: 0 18px 48px rgba(23, 33, 43, 0.12);
  --shadow-card: 0 12px 28px rgba(23, 33, 43, 0.1);
  --radius: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

html[lang="zh"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", Arial, sans-serif;
}

body[data-locale="zh"] .nav-link,
body[data-locale="zh"] .brand-mark {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", Arial, sans-serif;
}

html[lang="en"] body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 232, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  min-height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 244px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-mark {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: 6px;
  font-size: 22px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: var(--color-ink-soft);
  font-size: 15px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-ink);
  border-bottom-color: var(--color-gold);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 3px;
  background: var(--color-paper);
}

.language-switcher button {
  min-width: 42px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink-soft);
  cursor: pointer;
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--color-ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 33, 43, 0.94), rgba(23, 33, 43, 0.72) 42%, rgba(23, 33, 43, 0.18));
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 92px 24px 78px;
  color: var(--color-paper);
}

.eyebrow {
  margin: 0 0 18px;
  color: #d7b176;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  line-break: strict;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--color-gold);
  color: var(--color-paper);
  font-weight: 800;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.button.ink {
  background: var(--color-ink);
}

.section {
  padding: 86px 24px;
}

.section.alt {
  background: var(--color-mist);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head.stack-head {
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.section-head.stack-head .section-copy {
  max-width: none;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  line-break: strict;
}

.section-copy {
  margin: 0;
  color: #586673;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 278px;
  padding: 26px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-paper);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 135, 66, 0.65);
  box-shadow: var(--shadow-card);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: rgba(184, 135, 66, 0.12);
  color: var(--color-gold);
  font-size: 22px;
}

.service-card h3,
.feature-card h3,
.detail-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  line-break: strict;
}

.service-card p,
.feature-card p,
.detail-card p {
  margin: 14px 0 0;
  color: #596774;
}

.card-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--color-gold);
  font-weight: 800;
}

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

.feature-card {
  min-height: 210px;
  padding: 24px;
  border-left: 4px solid var(--color-gold);
  background: var(--color-paper);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 48px;
  align-items: stretch;
}

.profile-copy {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 0;
}

.profile-copy .section-title {
  margin-bottom: 18px;
}

.profile-copy .section-copy {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.95;
}

.image-panel {
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 33, 43, 0.86), rgba(184, 135, 66, 0.32)),
    url("../img/hero-kouka.png") center/cover;
  box-shadow: var(--shadow-soft);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.metric {
  padding: 24px;
  background: var(--color-paper);
}

.metric strong {
  display: block;
  color: var(--color-gold);
  font-size: 30px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: #596774;
  font-size: 14px;
}

.page-hero {
  padding: 118px 24px 72px;
  background:
    linear-gradient(135deg, rgba(23, 33, 43, 0.96), rgba(23, 33, 43, 0.84)),
    url("../img/hero-kouka.png") center/cover;
  color: var(--color-paper);
}

.page-hero p {
  max-width: none;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.detail-stack {
  display: grid;
  gap: 24px;
}

.detail-card {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-paper);
}

.detail-label {
  color: var(--color-gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: #52616e;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--color-gold);
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
}

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

.overview-table th {
  width: 28%;
  background: var(--color-mist);
  color: var(--color-ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: start;
}

.contact-panel,
.form-panel,
.map-panel {
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-paper);
}

.map-panel h2 {
  margin-top: 0;
}

.map-panel p {
  color: #52616e;
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  margin-top: 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-mist);
}

.map-link {
  margin-top: 18px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-list dt {
  color: var(--color-gold);
  font-size: 13px;
  font-weight: 800;
}

.contact-list dd {
  margin: 4px 0 0;
  color: #52616e;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 12px 14px;
  font: inherit;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  color: #667480;
  font-size: 14px;
}

.site-footer {
  background: #111820;
  color: rgba(255, 255, 255, 0.82);
  padding: 52px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--color-paper);
  font-weight: 800;
}

.footer-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.copyright {
  max-width: var(--max-width);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

@media (max-width: 980px) {
  .service-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .split-layout,
  .detail-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-copy {
    min-height: auto;
    padding: 0;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand {
    flex: 1;
    min-width: 0;
    max-width: calc(100vw - 86px);
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-mark {
    font-size: 19px;
  }

  .brand-sub {
    max-width: 230px;
    font-size: 10px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: 4px;
  }

  .language-switcher {
    justify-content: center;
  }

  .hero {
    min-height: 590px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(23, 33, 43, 0.94), rgba(23, 33, 43, 0.76));
  }

  .hero-content {
    padding: 70px 18px 58px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 32px;
    line-height: 1.18;
    word-break: break-all;
  }

  .section-title {
    font-size: 28px;
    line-height: 1.24;
    word-break: break-all;
  }

  .hero-lead,
  .section-copy,
  .service-card p,
  .feature-card p,
  .detail-card p {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .section {
    padding: 64px 18px;
  }

  .service-grid,
  .feature-grid,
  .metric-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .feature-card,
  .detail-card,
  .contact-panel,
  .form-panel {
    padding: 22px;
  }

  .overview-table,
  .overview-table tbody,
  .overview-table tr,
  .overview-table th,
  .overview-table td {
    display: block;
    width: 100%;
  }

  .overview-table th {
    border-bottom: 0;
  }

  .page-hero {
    padding: 92px 18px 56px;
  }
}
