:root {
  --night: #101513;
  --night-2: #18201d;
  --night-line: rgba(233, 225, 207, 0.14);
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --surface: #ffffff;
  --ink: #16140f;
  --muted: #6a655a;
  --muted-light: #b5ae9f;
  --line: #ddd6c7;
  --gold: #b8914f;
  --gold-light: #d8b877;
  --gold-ink: #7d5f2a;
  --max: 1200px;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.nb { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--gold); color: var(--night); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 20; color: #f3eee2; transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(16, 21, 19, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--night-line); }
.header-inner { display: flex; align-items: center; justify-content: flex-end; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--serif); font-size: 17px; }
.brand-name { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 13px; letter-spacing: .06em; }
.nav a { text-decoration: none; opacity: .82; }
.nav a:hover { opacity: 1; }
.nav .nav-cta { opacity: 1; padding: 8px 18px; border: 1px solid var(--gold); color: var(--gold-light); }
.nav .nav-cta:hover { background: var(--gold); color: var(--night); }
.menu-button { display: none; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.button.gold { background: var(--gold); color: var(--night); }
.button.gold:hover { background: var(--gold-light); }
.button.ghost { border: 1px solid rgba(243, 238, 226, .35); color: #f3eee2; }
.button.ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ---------- eyebrow / headings ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--gold-light); }
.eyebrow b { font-weight: 500; font-feature-settings: "tnum"; letter-spacing: .04em; padding-right: 12px; border-right: 1px solid currentColor; }
.heading-center .eyebrow, .final .eyebrow { justify-content: center; }
.eyebrow.dark { color: var(--gold-ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; line-height: 1.5; }
h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 16px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 0; background: var(--night); color: #f3eee2; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 40%, rgba(184, 145, 79, .16), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 64px; }
.hero h1 { margin-top: 22px; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.45; }
.hero-lead { margin-top: 28px; max-width: 30em; color: #cfc8b8; font-size: 16px; line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-frame { position: relative; }
.hero-frame::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(216, 184, 119, .45); pointer-events: none; }
.hero-frame img { position: relative; width: 100%; aspect-ratio: 900 / 690; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.hero-photo figcaption { position: relative; margin-top: 30px; font-size: 12px; letter-spacing: .08em; color: var(--muted-light); }
.hero-photo figcaption span { margin-right: 14px; color: var(--gold-light); }
.market-row { position: relative; display: flex; align-items: center; gap: 40px; margin-top: 96px; padding: 26px 0; border-top: 1px solid var(--night-line); }
.market-row p { font-size: 12px; letter-spacing: .12em; color: var(--muted-light); white-space: nowrap; }
.market-row ul { display: flex; flex-wrap: wrap; gap: 12px 44px; }
.market-row li { font-family: var(--serif); font-size: 18px; letter-spacing: .06em; }

/* ---------- flow ---------- */
.flow { background: var(--night-2); color: #f3eee2; }
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.flow-list li + li { border-left: 1px solid var(--night-line); }
.flow-list a { display: grid; gap: 6px; padding: 34px 28px 36px; text-decoration: none; transition: background .2s; }
.flow-list a:hover { background: rgba(255, 255, 255, .03); }
.flow-list .num { font-size: 12px; font-weight: 500; letter-spacing: .08em; font-feature-settings: "tnum"; color: var(--gold-light); }
.flow-list strong { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .06em; }
.flow-list small { font-size: 13px; color: var(--muted-light); line-height: 1.7; }

/* ---------- sections ---------- */
.section { padding: 128px 0; }
.section-paper { background: var(--paper-2); }
.section-dark { background: var(--night); color: #f3eee2; }
.section p { color: var(--muted); }
.section-dark p { color: #cfc8b8; }
.heading-center { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.heading-center > p:last-child { margin-top: 20px; }
.heading-split { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; margin-bottom: 56px; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 72px; }
.split-copy > p { margin-top: 20px; }
.check-list { display: grid; gap: 12px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.check-list li { position: relative; padding-left: 28px; font-size: 15px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 12px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }

.shot { position: relative; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .35); }
.shot img { width: 100%; }
.shot-crop { aspect-ratio: 1440 / 760; overflow: hidden; }
.shot-crop img { height: 100%; object-fit: cover; object-position: top center; }

/* annotated detail screen */
.annotated { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.pin { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: var(--night); color: var(--gold-light); font-size: 14px; font-weight: 700; box-shadow: 0 0 0 4px rgba(184, 145, 79, .35); }
.legend { display: grid; gap: 0; border-top: 1px solid var(--line); }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.legend li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--night); color: var(--gold-light); font-size: 13px; font-weight: 700; }
.legend p { font-size: 14px; line-height: 1.7; }

/* motion (signature) */
.motion { position: relative; overflow: hidden; }
.motion::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 20% 70%, rgba(184, 145, 79, .12), transparent 70%); pointer-events: none; }
.motion .wrap { position: relative; }
.motion-head { max-width: 640px; margin-bottom: 56px; }
.motion-head > p:last-child { margin-top: 22px; }
.motion-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gait video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border: 1px solid var(--night-line); }
.gait figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .04em; color: var(--muted-light); }
.indicators h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.indicators .indicator-lead { margin-top: 8px; color: var(--muted-light); font-size: 12.5px; letter-spacing: .04em; }
.bars { display: grid; gap: 16px; margin-top: 28px; padding: 28px 0; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.bars li { display: grid; grid-template-columns: 5.5em 1fr 2.2em; align-items: center; gap: 16px; font-size: 14px; }
.bars .bar { height: 6px; background: rgba(243, 238, 226, .1); }
.bars .bar i { display: block; width: var(--v); height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; }
.bars .val { font-size: 15px; font-weight: 500; font-feature-settings: "tnum"; text-align: right; color: var(--gold-light); }
@media (prefers-reduced-motion: no-preference) {
  .js .bars .bar i { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
  .js .in .bars .bar i { transform: none; }
}
.indicators .note { margin-top: 18px; font-size: 12.5px; line-height: 1.85; color: var(--muted-light); }

/* evidence */
.evidence-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.card-copy { padding: 32px 32px 28px; }
.card-copy span { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--gold-ink); }
.card-copy h3 { margin-top: 6px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.card-copy p { margin-top: 10px; font-size: 14px; line-height: 1.85; }
.card-shot { flex: 1; display: grid; place-items: center; padding: 0 24px 24px; }
.card-shot img { width: 100%; border: 1px solid var(--line); }
.fine { margin-top: 20px; font-size: 12.5px; text-align: right; }

/* demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.demo video { width: 100%; background: #000; box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .45); }
.chapters { counter-reset: ch; border-top: 1px solid var(--line); }
.chapters li { counter-increment: ch; border-bottom: 1px solid var(--line); }
.chapters button { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 13px 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.chapters button::before { content: counter(ch, decimal-leading-zero); font-size: 12px; font-feature-settings: "tnum"; color: var(--gold-ink); }
.chapters button:hover, .chapters button.active { color: var(--gold-ink); }
.chapters button.active { font-weight: 700; }


/* final */
.final { padding: 128px 0; background: var(--night); color: #f3eee2; text-align: center; background-image: linear-gradient(rgba(16, 21, 19, .82), rgba(16, 21, 19, .92)), url("lp/assets/sunny-storm-2025.webp"); background-size: cover; background-position: center 35%; }
.final-inner { display: grid; justify-items: center; gap: 0; }
.final h2 { margin: 0 0 20px; font-size: clamp(28px, 3.6vw, 44px); }
.final p { max-width: 40em; margin: 0 auto 12px; color: #cfc8b8; font-size: 15px; line-height: 1.9; }
.final small { margin-top: 20px; font-size: 12px; color: var(--muted-light); }

.footer { padding: 28px 0; background: var(--night); color: var(--muted-light); border-top: 1px solid var(--night-line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; letter-spacing: .06em; }
.footer p { font-family: var(--serif); }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .split, .motion-grid, .heading-split { grid-template-columns: 1fr; gap: 48px; }
  .annotated, .demo { grid-template-columns: 1fr; }
  .legend { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: 24px; }
  .chapters { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .chapters li { border: 1px solid var(--line); }
  .chapters button { padding: 8px 14px; font-size: 13px; }
  .hero-photo { max-width: 640px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 60px; }
  html { scroll-padding-top: 60px; }
  .menu-button { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; }
  .nav { position: fixed; inset: 60px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: rgba(16, 21, 19, .97); font-size: 15px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--night-line); }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--gold); }
  .nav-open .nav { display: flex; }
  .nav-open .header { background: rgba(16, 21, 19, .97); }
  .pc { display: none; }
  .hero { padding-top: 104px; }
  .hero-grid { gap: 56px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 36px); }
  .hero-lead { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-photo { margin-left: 14px; }
  .market-row { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 64px; }
  .market-row ul { gap: 8px 20px; }
  .market-row li { font-size: 16px; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .flow-list li:nth-child(3) { border-left: 0; }
  .flow-list li:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .flow-list a { padding: 24px 16px; }
  .flow-list strong { font-size: 17px; letter-spacing: .02em; }
  .section, .final { padding: 88px 0; }
  h2 { font-size: clamp(25px, 7vw, 30px); }
  .heading-center { margin-bottom: 44px; text-align: left; }
  .shot-crop { aspect-ratio: 4 / 3; }
  .shot-crop img { object-position: left top; }
  .pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 13px; box-shadow: 0 0 0 3px rgba(184, 145, 79, .35); }
  .evidence-grid { grid-template-columns: 1fr; }
  .card-copy { padding: 24px 22px 20px; }
  .card-shot { padding: 0 16px 16px; }
  .fine { text-align: left; }
  .final h2 { margin-bottom: 16px; }
  .final p { text-align: left; }
  .final .button { width: 100%; }
  .footer-inner { flex-direction: column; gap: 4px; }
}
