/*
 * DURI サービスページ（FR-SITE-1）。トップの見本は site/mock/（top-pc.html・top-sp.html と README.md）。
 * 色・余白・角丸・書体は design/book のトークン（/design/tokens.css）を使う。トークンにない見本の px はその場に書いて理由を添える。
 * 文字は 12px 未満にしない（book 07）。ただし LINE・ノートの画面は絵（role="img"・中は aria-hidden）なので、中の文字は画面の幅に対する cqw。
 * 幅 768px 未満を SP（下からのシート）、以上を PC（右からのパネル）とする。
 * 幅 1100px 未満は場面の画面を1台だけ置き、話している側に切り替える（SP と、狭い PC・タブレット）。
 * 動きは transform と opacity だけ。prefers-reduced-motion ではすべて止める（最後のブロック）。
 */

html, body { margin: 0; height: 100%; background: var(--cream); }
body {
  color: var(--ink);
  font-family: var(--font-maru);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.is-locked, html.is-locked body { overflow: hidden; }
p, h1, h2, h3 { margin: 0; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--violet); }
a:hover { color: var(--violet-deep); }
button:focus-visible, a:focus-visible, input:focus-visible, .panel-body:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

/* ---- 動き（共通の部品） ---- */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.32, 0.64, 1); /* 少しだけ行き過ぎて戻る */
}
.lift { transition: transform 160ms var(--ease-out); }
.lift:hover { transform: translateY(-2px); }
.lift:active { transform: translateY(1px); }

/* 開いたときに、少しずつずれて下からふわっと（全体 0.8 秒以内） */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 460ms var(--ease-out) backwards; }
.rise-1 { animation-delay: 40ms; }
.rise-2 { animation-delay: 110ms; }
.rise-3 { animation-delay: 180ms; }
.rise-4 { animation-delay: 250ms; }
.rise-5 { animation-delay: 320ms; }

/* ---- ページ（PC が基準。見本 top-pc：上 24・左右 56・下 20） ---- */
.page {
  position: relative;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(var(--space-3), 2.7vh, var(--space-6)) clamp(var(--space-6), 3.9vw, 56px) clamp(var(--space-3), 2.2vh, var(--space-5));
  background: var(--cream);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.logo { display: flex; align-items: center; gap: var(--space-2); font-size: 28px; line-height: 1.3; font-weight: 900; letter-spacing: 0.02em; }
.logo-read { font-size: 12px; font-weight: 700; color: var(--ink-muted); letter-spacing: 0; }
/* ロゴの右の小さな もち・まめ（重ねて並べる。PC 38×33・SP 30×26。目の位置は見本の px を割合にした） */
.logo-pair { display: inline-flex; align-items: flex-end; margin-left: 6px; }
.mini { position: relative; display: block; width: 38px; height: 33px; }
.mini-mochi { background: var(--mochi); border-radius: 52% 48% 46% 54% / 58% 56% 44% 42%; }
.mini-mame { margin-left: -6px; background: var(--mame); border-radius: 48% 52% 54% 46% / 56% 58% 42% 44%; }
.mini-eye { position: absolute; top: 42.4%; left: 34.2%; width: 3px; height: 5px; border-radius: 50%; background: var(--ink); }
.mini-eye + .mini-eye { left: 57.9%; }
.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav-link {
  height: 44px;
  padding: 0 var(--space-4);
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.menu-btn { display: none; }

/* 左にコピーと入口（〜520px）、右に場面（〜576px） */
.hero {
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(var(--space-2), 1.8vh, var(--space-4)) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-8), 4.4vw, 64px); /* 見本は 64px */
}
.hero-text {
  flex: 1 1 420px;
  max-width: 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(var(--space-3), 2.2vh, var(--space-5));
}
.hero-copy { display: contents; }
.chip {
  height: 32px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--butter);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.headline {
  font-size: clamp(34px, min(3.6vw, 5.8vh), 52px);
  line-height: 1.3;
  font-weight: 900;
}
/* 「LINE」の文字：色は濃くした LINE の緑（#06C755 は cream の上で読みにくい）、太さだけ 900 */
.brand-line { color: var(--line-green-text); font-weight: 900; }
.lead {
  font-size: clamp(16px, 2vh, 18px);
  line-height: 1.9;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-start { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(var(--space-3), 2.2vh, var(--space-5)); margin-top: var(--space-2); }
.hero-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
/* 入口は同格の2つ：招待コード（塗り）と順番待ち（白地に枠） */
.cta {
  box-sizing: border-box;
  height: clamp(48px, 6.2vh, 56px);
  padding: 0 28px; /* 見本の値（トークンにない） */
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.cta-line { background: var(--paper); color: var(--ink); }
.text-link {
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--violet);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--violet-deep); }
.note { font-size: 13px; line-height: 1.8; font-weight: 500; color: var(--ink-muted); max-width: 30em; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.tagline { margin-right: auto; font-size: 13px; font-weight: 700; color: var(--ink); }
.legal-links { display: flex; gap: var(--space-5); }
.legal { color: var(--ink-muted); }
.legal:hover { color: var(--ink); }

/* ---- トップの LINE の場面（中身は js/site.js が cases.json から作る） ----
 * PC：［LINE 240×520］［間 72px：もち・まめ・印］［LINE またはノート］、下に一言と切り替え。
 * 画面の高さは固定（メッセージが増えても伸びない）。低い PC は画面の高さだけを詰める（中の文字は幅に対する cqw なので大きさは変わらない）。
 * --line-h：1440×900 で 520px、1280×720 で 452px。 */
.scenes {
  --line-w: 240px;
  --line-h: clamp(240px, calc(100dvh - 268px), 520px);
  flex: 0 1 576px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
/* cases.json を読む前から場所を取っておく（読み終えても全体が動かない）：見出し 21 + すき間 10 + 画面 + すき間 12 + 一言 20 */
.scene-stage { min-height: calc(var(--line-h) + 63px); }
.scene { display: flex; flex-direction: column; gap: var(--space-3); }
.scene[hidden] { display: none; }
.scene-screens { display: flex; align-items: stretch; justify-content: center; gap: var(--space-3); }
.screen { display: flex; flex-direction: column; gap: 10px; } /* 見本の値 */
.screen-head { display: flex; align-items: center; justify-content: center; gap: var(--space-2); font-size: 14px; line-height: 1.5; font-weight: 700; }
.screen-ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.screen-dot { display: none; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.screen-dot-mochi { background: var(--mochi); }
.screen-dot-mame { background: var(--mame); }
.screen-dot-butter { background: var(--butter); }
.scene-mid {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mid-face { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.mid-name { margin-top: -6px; font-size: 12px; font-weight: 700; }
.mid-arrow { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mid-say { font-size: 12px; line-height: 1.5; font-weight: 700; text-align: center; }
.scene-cap { text-align: center; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink-muted); }
.scene-busy { font-size: 14px; line-height: 1.7; color: var(--ink-muted); text-align: center; }
/* 出てくるメッセージ・ノートの行：下から 14px・0.45 秒 */
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step { animation: step-in 450ms var(--ease-out) both; }
.step[hidden] { display: none !important; }

/* 場面の切り替え：小さな文字＋細いバー（塗りのボタンにしない）。表示中の場面はバーが左から満ちる（満ちたら次へ：js/site.js）。
 * 押せる高さは 44px（book 07。見本は 36px） */
.scene-switch { display: flex; justify-content: center; gap: var(--space-5); }
.scene-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 var(--space-1);
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}
.scene-btn[aria-pressed="true"] { color: var(--ink); }
.scene-bar { position: relative; display: block; width: 44px; height: 3px; border-radius: var(--radius-pill); background: var(--hairline); overflow: hidden; }
.scene-fill {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  transform-origin: left center;
  animation: scene-fill var(--scene-ms, 10s) linear both;
}
@keyframes scene-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* 一時停止（⏸／▶）：切り替えの右に小さく。止めている間はバーも止める */
.scene-pause { min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font-size: 13px; line-height: 1; }
.scene-pause:hover { color: var(--ink); }
.scene-switch.is-paused .scene-fill { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .scene-pause { display: none; } } /* もう止まっているので出さない */

/* ---- 幅 1100px 未満：画面を1台だけ置き、話している側に切り替える（2台を重ねて opacity で 0.35 秒） ---- */
@media (max-width: 1099.98px) {
  .scenes { --line-w: 260px; flex: 0 0 auto; }
  .scene-mid { display: none; }
  .scene-screens { position: relative; display: block; width: var(--line-w); height: calc(var(--line-h) + 24px); margin: 0 auto; }
  .screen { position: absolute; inset: 0; gap: 6px; transition: opacity 350ms ease; }
  .screen.is-off { opacity: 0; pointer-events: none; }
  .screen-head { height: 18px; gap: 6px; font-size: 12px; line-height: 18px; color: var(--ink-soft); }
  .screen-ava { display: none; }
  .screen-dot { display: block; }
  .screen .line { width: 100%; height: auto; flex: 1 1 auto; min-height: 0; }
  /* 高さが足りないので、ノートの 15:00 の行と まめの一言は出さない（cases.json の wide） */
  .line .step.is-wide { display: none; }
}

/* ---- パネル（PC：右から）／シート（SP：下から）。中身は共通 ---- */
.overlay { position: fixed; inset: 0; z-index: 10; }
.overlay[hidden] { display: none; }
.scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  animation: fade 150ms ease-out;
}
.panel {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  width: min(480px, calc(100% - 2 * var(--space-4)));
  box-sizing: border-box;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  animation: panel-in 420ms var(--ease-pop);
}
.overlay.is-closing .scrim { animation: fade-out 180ms ease-in forwards; }
.overlay.is-closing .panel { animation: panel-out 180ms ease-in forwards; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes panel-in { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes panel-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(40px); } }

.panel-head { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; }
.handle { display: none; }
.back { display: none; } /* SP でメニューから入ったときだけ（下の SP のブロック） */
.close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 calc(-1 * var(--space-2));
  padding: var(--space-1) var(--space-2);
}
.sec { display: flex; flex-direction: column; gap: var(--space-5); }
.sec[hidden] { display: none; }
.sec-title { font-size: 26px; line-height: 1.4; font-weight: 900; }
/* SP のメニュー（できること・はじめ方・料金・よくある質問） */
.menu-list { display: flex; flex-direction: column; gap: var(--space-2); }
.menu-item {
  height: 52px;
  padding: 0 var(--space-5);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.list { display: flex; flex-direction: column; gap: var(--space-3); }
.card {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.card h3 { font-size: 17px; line-height: 1.5; font-weight: 700; }
.card h3.q { font-size: 16px; }
.card p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.card .plain { font-size: 16px; line-height: 1.7; color: var(--ink); }
.card-mochi { background: var(--mochi-bg); }
.card-mame { background: var(--mame-bg); }
.card-cream { background: var(--cream); }
.card-step { background: var(--cream); flex-direction: row; align-items: center; gap: var(--space-4); }
.step-text { display: flex; flex-direction: column; gap: var(--space-1); } /* 見本は 2px */
.card .step {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-mochi { background: var(--mochi); }
.step-mame { background: var(--mame); }
.step-butter { background: var(--butter); }
.price-card { padding: var(--space-6); gap: var(--space-1); }
.price-label { font-size: 13px; }
.price-amount { font-size: 34px; line-height: 1.2; font-weight: 900; font-variant-numeric: tabular-nums; }
.price-notes { display: flex; flex-direction: column; gap: var(--space-3); font-size: 15px; line-height: 1.7; }


/* ---- LINE の画面（HTML）。幅 --line-w・高さ --line-h は固定。中の寸法は cqw（画面の幅の 1%）なので、どの大きさでも同じ見た目 ---- */
.line {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--line-w, 240px);
  height: var(--line-h, 520px);
  overflow: hidden;
  container-type: inline-size;
  border-radius: var(--radius-lg);
  background: #8CABD8; /* LINE のトークの地（本物に合わせる） */
  --band: var(--mochi-tint);
  --btn: var(--mochi);
  --soft: var(--mochi-bg);
  --check: var(--mochi-line);
}
.line-mame { --band: var(--mame-tint); --btn: var(--mame); --soft: var(--mame-bg); --check: var(--mame-line); }
.line-in { display: flex; flex-direction: column; height: 100%; font-family: var(--font-system); color: #111; }
.l-icon { width: 5.6cqw; height: 5.6cqw; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 上の帯：‹ 未読数　DURI　検索 ☰ */
.l-top { flex: 0 0 auto; display: flex; align-items: center; gap: 2cqw; height: 11.5cqw; padding: 0 3.6cqw; background: #fff; box-shadow: 0 0.3cqw 0 rgba(0, 0, 0, 0.06); }
.l-back { display: flex; align-items: center; gap: 0.6cqw; color: #111; }
.l-unread { font-size: 4cqw; line-height: 1; color: #555; }
.l-acct { flex: 1 1 auto; font-size: 5cqw; font-weight: 700; line-height: 1; }
.l-tools { display: flex; align-items: center; gap: 3.6cqw; color: #333; }
/* トーク：下から積む。あふれたら古いものが上に消える（column-reverse の中の1つの列。収まる間は上に寄せる） */
.l-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column-reverse; padding: 3cqw 3.4cqw; overflow: hidden; }
.l-flow { display: flex; flex-direction: column; gap: 2.6cqw; margin-bottom: auto; }
.l-date { align-self: center; padding: 0.6cqw 3cqw; border-radius: 999px; background: #3E5578; color: #fff; font-size: 3.4cqw; line-height: 1.5; }
.l-mine { display: flex; justify-content: flex-end; align-items: flex-end; gap: 1.4cqw; }
.l-meta { flex: none; display: flex; flex-direction: column; font-size: 3cqw; line-height: 1.25; color: #1F2D44; }
.l-meta.is-me { align-items: flex-end; text-align: right; }
.l-me {
  position: relative; max-width: 68%; padding: 2.4cqw 3.4cqw; border-radius: 4cqw;
  background: #8DE055; font-size: 4.7cqw; line-height: 1.4;
}
.l-me::after { content: ""; position: absolute; right: -1.3cqw; top: 1.6cqw; width: 2.4cqw; height: 3cqw; background: #8DE055; clip-path: polygon(0 0, 0 100%, 100% 0); }
.l-row { display: flex; gap: 2cqw; align-items: flex-start; }
.l-ava { flex: 0 0 9.4cqw; width: 9.4cqw; height: 9.4cqw; border-radius: 50%; background: var(--band) center / cover no-repeat; visibility: hidden; }
.l-row.is-first .l-ava { visibility: visible; background-image: url(/design/mochi.png); }
.line-mame .l-row.is-first .l-ava { background-image: url(/design/mame.png); }
.l-col { display: flex; flex-direction: column; gap: 1cqw; min-width: 0; flex: 1 1 auto; }
.l-name { font-size: 3.5cqw; color: #1F2D44; line-height: 1.3; }
.l-wrap { display: flex; align-items: flex-end; gap: 1.4cqw; min-width: 0; }
.l-bot {
  position: relative; align-self: flex-start; max-width: 76%; padding: 2.4cqw 3.4cqw; border-radius: 4cqw;
  background: #fff; font-size: 4.7cqw; line-height: 1.4;
}
.is-first .l-bot::before, .is-first .l-receipt::before { content: ""; position: absolute; left: -1.3cqw; top: 1.6cqw; width: 2.4cqw; height: 3cqw; background: #fff; clip-path: polygon(100% 0, 100% 100%, 0 0); }
.is-first .l-receipt::before { background: var(--soft); }
.l-card { position: relative; flex: 0 1 auto; width: 76%; border-radius: 4cqw; background: #fff; overflow: hidden; }
.l-card-head { padding: 2.8cqw 3.8cqw; background: var(--band); }
.l-card-title { font-size: 4.7cqw; font-weight: 700; line-height: 1.3; }
.l-card-body { display: flex; flex-direction: column; gap: 1.8cqw; padding: 3.2cqw 3.8cqw 3.6cqw; }
.l-line { margin: 0; font-size: 4.2cqw; line-height: 1.4; color: #333; }
.l-tags { display: flex; flex-wrap: wrap; gap: 1.4cqw; }
.l-tag { padding: 0.5cqw 2.2cqw; border-radius: 999px; background: var(--soft); font-size: 3.7cqw; line-height: 1.5; color: #444; }
.l-btn {
  display: block; padding: 2.2cqw; border-radius: 2.4cqw; border: 0.4cqw solid var(--btn);
  background: #fff; text-align: center; font-size: 4.2cqw; font-weight: 700; line-height: 1.3;
}
.l-btn.is-primary { background: var(--btn); }
/* 下の入力欄：＋ カメラ 画像 [Aa ☺] マイク */
.l-input { flex: 0 0 auto; display: flex; align-items: center; gap: 3cqw; height: 13cqw; padding: 0 3.4cqw; background: #fff; color: #555; box-shadow: 0 -0.3cqw 0 rgba(0, 0, 0, 0.06); }
.l-field { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; height: 8cqw; padding: 0 3cqw; border-radius: 999px; background: #F0F1F3; font-size: 4cqw; color: #666; }
.l-receipt { position: relative; max-width: 76%; padding: 2.6cqw 3.4cqw; border-radius: 4cqw; background: var(--soft); display: flex; flex-direction: column; gap: 1.3cqw; }
.l-receipt .l-line { position: relative; padding-left: 4.8cqw; }
.l-receipt .l-line::before { content: "✓"; position: absolute; left: 0; color: var(--check); font-weight: 700; }

/* ふたりのノート（LIFF）：DURI のノートページ（src/duri/static/page.css）を縮めた見た目。
 * 地は --mame-bg と内側の 1px の --mame-tint の線（サイトの地 cream と同化させない） */
.line-note { background: var(--mame-bg); box-shadow: inset 0 0 0 1px var(--mame-tint); }
.n-in { display: flex; flex-direction: column; height: 100%; font-family: var(--font-system); color: var(--ink); }
.n-liff { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 11.5cqw; padding: 0 3.6cqw; background: #fff; color: #111; box-shadow: 0 0.3cqw 0 rgba(0, 0, 0, 0.06); }
.n-liff-title { font-size: 4.6cqw; font-weight: 700; line-height: 1; }
/* ノートも下から：収まる間は上から並び、あふれたら上の行から消える（新しく立ち上がった行が見えている） */
.n-page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column-reverse; box-sizing: border-box; padding: 4cqw 4.4cqw; overflow: hidden; }
.n-flow { display: flex; flex-direction: column; gap: 3.2cqw; margin-bottom: auto; }
.n-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6cqw; }
.n-title { margin: 0; font-size: 7.4cqw; font-weight: 800; line-height: 1.25; }
.n-badge { padding: 0.6cqw 3cqw; border-radius: 999px; background: var(--mame-tint); font-size: 4cqw; font-weight: 700; line-height: 1.5; color: var(--violet); }
.n-tabs { display: flex; gap: 1.8cqw; }
.n-tab { flex: 1 1 0; padding: 1.8cqw 0; border-radius: 3cqw; background: #fff; box-shadow: inset 0 0 0 0.4cqw var(--hairline); text-align: center; font-size: 3.9cqw; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.n-tab.is-on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.n-timeline { display: flex; flex-direction: column; }
.n-li { display: grid; grid-template-columns: 21cqw 4cqw 1fr; column-gap: 2.4cqw; }
.n-time { font-size: 4.1cqw; font-weight: 700; line-height: 6.4cqw; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.n-rail { display: flex; flex-direction: column; align-items: center; }
.n-dot { width: 3cqw; height: 3cqw; margin-top: 1.7cqw; border-radius: 50%; background: var(--mame); flex: none; }
.n-bar { width: 0.5cqw; flex: 1; min-height: 3cqw; background: var(--hairline); }
.n-li.is-last .n-bar { background: transparent; }
.n-what { display: block; padding-bottom: 2.6cqw; }
.n-what b { display: block; font-size: 4.6cqw; font-weight: 700; line-height: 6.4cqw; }
.n-what small { display: block; font-size: 3.9cqw; line-height: 1.4; color: var(--violet-deep); font-weight: 700; }
.n-checks { display: flex; flex-direction: column; gap: 2cqw; padding: 3cqw 3.4cqw; border-radius: 4.4cqw; background: #fff; }
.n-check { display: flex; align-items: center; gap: 2.6cqw; }
.n-box { flex: 0 0 5cqw; width: 5cqw; height: 5cqw; border-radius: 1.4cqw; box-sizing: border-box; border: 0.7cqw solid var(--control-border); background: #fff; position: relative; }
.n-box.is-done { background: var(--ink); border-color: var(--ink); }
.n-box.is-done::after { content: ""; position: absolute; left: 1cqw; top: 0.8cqw; width: 2.2cqw; height: 1.2cqw; border-left: 0.6cqw solid var(--on-ink); border-bottom: 0.6cqw solid var(--on-ink); transform: rotate(-45deg); }
.n-ctext { flex: 1 1 auto; min-width: 0; font-size: 4.9cqw; line-height: 1.35; }
.n-ctext.is-done { color: var(--ink-muted); }
.n-ctext small { display: block; font-size: 3.7cqw; color: var(--ink-muted); }
.n-chip { flex: none; padding: 1cqw 2.6cqw; border-radius: 999px; background: var(--butter); font-size: 3.8cqw; font-weight: 700; line-height: 1.2; }
.n-hint { display: flex; gap: 2.4cqw; align-items: flex-start; }
.n-face { flex: 0 0 9.6cqw; width: 9.6cqw; height: 9.6cqw; border-radius: 50%; box-sizing: border-box; border: 0.7cqw solid var(--mame-line); background: var(--mame) url(/design/mame.png) center / cover no-repeat; }
.n-said { min-width: 0; padding: 2.4cqw 3cqw; border: 0.4cqw solid var(--mame-line); border-radius: 1.6cqw 4.4cqw 4.4cqw 4.4cqw; background: var(--mame-bg); font-size: 4.3cqw; line-height: 1.45; }
.n-said small { display: block; font-size: 3.6cqw; font-weight: 700; color: var(--violet); }

.panel-cta {
  flex: 0 0 auto;
  height: 52px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.panel-cta[hidden] { display: none; }

/* ---- SP（幅 768px 未満）：見本 top-sp（390×844）。縦が短い端末でも1画面に収める ----
 * ヘッダー → コピー（中央揃え）→ 場面 → 切り替え → 入口 → フッター。ブロックの間 16px、左右 22px。
 * 場面の画面は残りの高さいっぱい（flex: 1 1 340px; min-height: 0）。 */
@media (max-width: 767.98px) {
  .page {
    padding: var(--space-3) 22px; /* 左右は見本の値（トークンにない） */
    gap: var(--space-4);
  }
  .logo { gap: 6px; font-size: 22px; line-height: 1.25; }
  .logo-read { font-size: 12px; } /* 見本は 11px。12px 未満にしない（book 07） */
  .mini { width: 30px; height: 26px; }
  .nav-pc { display: none; }

  .hero {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-width: none;
    padding: 0;
    gap: var(--space-4);
  }
  .hero-text { display: contents; }
  .hero-copy { order: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
  .scenes { order: 2; flex: 1 1 340px; min-height: 0; gap: var(--space-4); }
  .hero-start { order: 3; align-items: center; gap: var(--space-1); margin: 0; }

  .chip { height: auto; padding: 3px var(--space-3); font-size: 12px; line-height: 1.5; }
  .headline { font-size: min(7.2vw, 28px); line-height: 1.3; }
  .lead { font-size: 13px; line-height: 1.7; }

  /* 場面：画面は1台（幅 260px）、高さは残りいっぱい。一言は出さない */
  .scene-stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .scene:not([hidden]) { flex: 1 1 auto; min-height: 0; }
  .scene-screens { flex: 1 1 auto; min-height: 0; height: auto; }
  .scene-cap { display: none; }

  /* 入口：招待コード（高さ 44px の小さめの塗り）の右に、順番待ち（文字リンク） */
  .hero-actions { flex-wrap: nowrap; justify-content: center; gap: var(--space-4); }
  .cta { height: 44px; padding: 0 22px; font-size: 14px; } /* 左右は見本の値 */
  .cta-line {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--violet);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .cta-line:hover { color: var(--violet-deep); }
  .note { font-size: 12px; line-height: 1.6; text-align: center; } /* 見本は 11.5px。12px 未満にしない */

  .site-footer { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 0; font-size: 12px; font-weight: 500; }
  .tagline { margin: 0; text-align: center; font-size: 12px; }
  .copy { display: none; }
  .legal-links { justify-content: center; gap: 2px; line-height: 1.2; }
  .legal-links .legal { padding: var(--space-1) 6px; }
  /* 低い画面（375×667・375×600 など）は、ブロックの間を詰めて場面の画面に高さを回す */
  @media (max-height: 700px) {
    .page { gap: var(--space-3); padding-block: var(--space-2); }
    .hero { gap: var(--space-3); }
    .scenes { gap: var(--space-2); }
    .hero-copy { gap: var(--space-1); }
  }
  /* メニューボタン：押せる箱 44px、見た目は 40px の丸。ロゴの行の高さを変えないよう上下は負の margin で重ねる */
  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -7px -2px;
    padding: 2px;
    border: none;
    border-radius: 50%;
    background: var(--paper);
    background-clip: content-box;
    color: var(--ink);
  }

  /* シート */
  .panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: min(680px, calc(100% - var(--space-8) - var(--space-8)));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-3) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    gap: var(--space-4);
    animation-name: sheet-in;
  }
  .overlay.is-closing .panel { animation-name: sheet-out; }
  /* 弾んで少し上がったときに、画面の下にすき間が見えないよう下に地を足す */
  .panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: var(--space-8);
    background: var(--paper);
  }
  /* 頭の行：左に「‹ メニュー」（メニューから入ったときだけ）、真ん中に取っ手、右に閉じる */
  .panel-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .panel-head .back { grid-column: 1; justify-self: start; }
  .panel-head .handle { grid-column: 2; }
  .panel-head .close { grid-column: 3; justify-self: end; }
  .back:not([hidden]) {
    height: 44px;
    margin-left: calc(-1 * var(--space-2));
    padding: 0 var(--space-3) 0 var(--space-2);
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
  }
  .back span { font-size: 22px; line-height: 1; }
  .handle {
    display: block;
    width: 40px;
    height: 5px;
    border-radius: var(--radius-pill);
    background: var(--hairline);
  }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
  @keyframes sheet-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(48px); } }
}

/* ---- 動きを減らす設定：すべて止める。場面は自動で進めず（js/site.js）、表示中の場面のバーは満ちた状態 ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .lift:hover, .lift:active { transform: none; }
}
