:root {
  --green: #8fa8a0;
  --ink: #4a5e56;
  --sand: #c9b8a0;
  --paper: #f7f5f1;
  --white: #fffdf8;
  --text: #2e3431;
  --muted: #6d7772;
  --line: rgba(74, 94, 86, .16);
  --shadow: 0 22px 70px rgba(74, 94, 86, .12);
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255,253,248,.96), rgba(247,245,241,.98)),
    repeating-linear-gradient(90deg, rgba(143,168,160,.05) 0 1px, transparent 1px 22px);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 253, 248, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 188px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(143, 168, 160, .18);
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .78);
}

.language-switch button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

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

html:not([data-lang="ja"]) [lang="ja"],
html[data-lang="ja"] [lang="zh"] {
  display: none !important;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section,
.section-band {
  padding: clamp(70px, 9vw, 124px) clamp(20px, 6vw, 84px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: clamp(18px, 3.5vw, 52px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(247,245,241,.98) 0%, rgba(255,253,248,.9) 58%, rgba(143,168,160,.14) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/autumn-bridge.png") right 54% center / min(1120px, 82vw) auto no-repeat;
  filter: saturate(.86) contrast(.94);
  opacity: .54;
  -webkit-mask-image:
    linear-gradient(90deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.42) 24%, #000 48%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.42) 24%, #000 48%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(247,245,241,.92) 0%, rgba(247,245,241,.68) 31%, rgba(247,245,241,.2) 58%, rgba(247,245,241,.5) 100%),
    radial-gradient(circle at 86% 58%, rgba(143,168,160,.13), transparent 34%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy {
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin: 0;
  color: #26302c;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(52px, 8vw, 112px);
}

h2 {
  font-size: clamp(32px, 4.2vw, 58px);
}

h3 {
  margin: 0 0 12px;
  color: #2f3b36;
  font-size: 20px;
  line-height: 1.35;
}

.hero-line {
  margin: 18px 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
}

.hero-text {
  width: 100%;
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 16px 32px rgba(74, 94, 86, .22);
}

.btn.secondary {
  color: var(--ink);
  background: rgba(255, 253, 248, .78);
}

.hero-visual {
  position: relative;
  max-width: 100%;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.autumn-panel {
  display: none;
  position: relative;
  width: min(920px, 118%);
  aspect-ratio: 1672 / 941;
  background:
    linear-gradient(90deg, rgba(247,245,241,1) 0%, rgba(247,245,241,.78) 14%, rgba(247,245,241,.22) 32%, rgba(247,245,241,0) 54%),
    linear-gradient(180deg, rgba(247,245,241,.62) 0%, rgba(247,245,241,0) 30%, rgba(247,245,241,.72) 100%),
    url("/assets/autumn-bridge.png") center / cover no-repeat;
  filter: saturate(.86) contrast(.94);
  opacity: .95;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 10%, #000 30%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 10%, #000 30%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.autumn-panel::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 72% 52%, rgba(143, 168, 160, .15), transparent 44%),
    radial-gradient(circle at 90% 18%, rgba(201, 184, 160, .16), transparent 38%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow),
.credential-copy p,
.trace p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.trust-grid,
.product-grid,
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid article,
.product-card,
.store-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 12px 40px rgba(74, 94, 86, .07);
}

.trust-grid article {
  min-height: 250px;
  padding: 28px;
}

.trust-grid article > span {
  display: block;
  margin-bottom: 32px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 34px;
}

.trust-grid p,
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.credentials,
.trace {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: rgba(143, 168, 160, .1);
}

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

.chain div {
  min-height: 164px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, .88);
}

.chain > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 700;
}

.chain strong,
.chain small {
  display: block;
}

.chain small {
  color: var(--muted);
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  min-height: 320px;
  padding: 30px;
}

.product-icon {
  width: 100%;
  height: 118px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, currentColor 0 30px, transparent 30px),
    linear-gradient(145deg, rgba(255,255,255,.85), rgba(247,245,241,.76));
}

.tone-green {
  color: var(--green);
}

.tone-sand {
  color: var(--sand);
}

.tone-ink {
  color: var(--ink);
}

.product-card h3,
.product-card p,
.product-card a {
  color: var(--text);
}

.product-card a {
  display: inline-flex;
  margin-top: 24px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.trace {
  background:
    linear-gradient(135deg, rgba(74,94,86,.96), rgba(74,94,86,.84)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px);
}

.trace h2,
.trace .eyebrow,
.trace p {
  color: var(--white);
}

.trace p {
  max-width: 640px;
  opacity: .86;
}

.trace .btn {
  margin-top: 28px;
  color: var(--ink);
  background: var(--white);
}

.query-card {
  min-height: 260px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 253, 248, .1);
  color: var(--white);
}

.query-card span {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px dashed rgba(255, 255, 255, .48);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.query-card strong {
  display: block;
  margin: 54px 0 6px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.25;
}

.query-card small {
  color: rgba(255, 255, 255, .74);
}

.store-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-card {
  min-height: 190px;
  padding: 28px;
  text-decoration: none;
}

.store-card > span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.store-card strong {
  display: block;
  margin: 30px 0 8px;
  font-size: 22px;
}

.store-card small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--serif);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .credentials,
  .trace {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 78px;
  }

  .hero-visual {
    min-height: auto;
  }

  .autumn-panel {
    width: 100%;
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .language-switch {
    order: 3;
    margin-left: 0;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .section,
  .section-band {
    padding: 62px 18px;
  }

  .hero {
    display: block;
  }

  .hero::before {
    background-position: right 56% bottom 12%;
    background-size: 760px auto;
    opacity: .42;
    -webkit-mask-image:
      linear-gradient(90deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.44) 38%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 18%, #000 92%, transparent 100%);
    mask-image:
      linear-gradient(90deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.44) 38%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 18%, #000 92%, transparent 100%);
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(247,245,241,.94) 0%, rgba(247,245,241,.72) 38%, rgba(247,245,241,.38) 68%, rgba(247,245,241,.78) 100%);
  }

  .hero-copy,
  .hero-text {
    width: 100%;
    max-width: none;
  }

  .hero-text {
    max-width: 20em;
    line-height: 1.85;
  }

  h1 {
    font-size: clamp(46px, 13vw, 52px);
  }

  .hero-visual {
    margin-top: 40px;
    width: 100%;
  }

  .autumn-panel {
    width: calc(100% + 36px);
    margin-left: -18px;
    aspect-ratio: 15 / 9;
    opacity: .88;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 9%, #000 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 9%, #000 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }

  .trust-grid,
  .product-grid,
  .chain,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid article,
  .product-card,
  .store-card {
    min-height: auto;
  }

  .site-footer {
    display: block;
  }
}
