/* =========================================================
   Nulvo — landing page
   トークンはアプリ (src/constants/themes.ts) と同一。逸脱禁止。
   ========================================================= */

:root {
  /* world */
  --bg: #7b76b8;
  --grad-top: #8d87c8;
  --grad-bot: #5f5aa2;

  /* surfaces / ink */
  --surface: #e6e4f4;
  --ink: #3a4168;
  --muted: #8a90ac;
  --accent: #756fb8;
  --warm: #e86f42;
  --on-bg: #ffffff;

  /* Nulvo Plus / 端末ベゼル (ミッドナイト) */
  --midnight-a: #524b94;
  --midnight-b: #3e3969;
  /* Plus ブランドの王冠・✦ 専用。他の面で使わない */

  /* 中明度の紫地では 12% の影は消える -> 近距離を濃く、遠距離を広く */
  --shadow: 0 2px 4px rgba(58, 44, 120, 0.14), 0 16px 44px rgba(58, 44, 120, 0.19);
  /* 角丸は 2 段: 大カード (投稿実例・住人・Plus・安全) / 小カード (4カード・FAQ・小物) */
  --radius: 30px;
  --radius-sm: 24px;

  /* デスクトップ幅は 2 値のみ: 標準 720 / 広 1016 (4カードだけ) */
  --col: 720px;
  --col-wide: 1016px;
  --pad: 20px;

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Yu Gothic", sans-serif;
}

/* en は Zen Maru Gothic のラテン字形が崩れる -> Nunito へ全面切替
   (アプリ本体の MARU_FONT en = SF 切替と同じ判断) */
html[lang="en"] {
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", sans-serif;
}

/* ---------- reset (minimal) ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* ⚠ figure の UA デフォルト margin:1em 40px を殺す。放置すると .shots のカードが
   左右 40px ずつ膨らみ、列幅が 720 → 880px になって他セクションと軸がズレる (2026-07-27 監査) */
figure {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}

/* ---------- base ---------- */
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: var(--on-bg);
  background-color: var(--bg);
  /* clip = body をスクロールコンテナ化しない (hidden は旧ブラウザ用フォールバック) */
  overflow-x: hidden;
  overflow-x: clip;
}

/* 日本語の折り返しを自然に (対応ブラウザのみ) */
html[lang="ja"] body {
  line-break: strict;
  word-break: auto-phrase;
}

/* 世界色は固定レイヤーで敷く (iOS Safari は background-attachment:fixed が不安定) */
.world {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--grad-top) 0%, var(--grad-bot) 100%);
}

.wrap {
  width: 100%;
  /* 中身が常に --col (720/1016) ちょうどになる = デスクトップ幅は 2 値だけ */
  max-width: calc(var(--col) + var(--pad) * 2);
  margin: 0 auto;
  padding-inline: var(--pad);
}
@media (min-width: 760px) {
  :root {
    --pad: 32px;
  }
}

section {
  /* モバイルは上下 64px = 区切りごとに 128px の空白ができて「読み込み失敗？」に見えた
     (2026-07-28 運営者 FB「やたらデカい紫の空白」) → 46px に詰める。デスクトップは据え置き */
  padding-block: clamp(46px, 11vw, 116px);
}

h1,
h2,
h3 {
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  letter-spacing: 0;
}
h2 {
  letter-spacing: 0.01em;
}

/* 短い注記は最終行の孤立を避けて行長を均す (「虚しい」だけが 1 行残る等 — 監査) */
.sample-note,
.band-sub,
.cta-note,
.swipe-hint,
.heart-hint {
  text-wrap: balance;
}

.section-title {
  font-size: clamp(21px, 5.2vw, 31px);
  line-height: 1.4;
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 44px);
}

/* 日本語の見出しを文節で折り返す (Safari 含む全ブラウザで有効な定石) */
.np {
  display: inline-block;
}

/* ---------- scroll reveal (JS 無しでも成立) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Nulvo ミニマーク (CSS 描画) ----------
   体色 #3E3969 / 角丸 22.37% / 目 2 点 #E6E6E7。目の座標は assets/nulvo.svg と同一 */
.cmark {
  --m: 28px;
  flex: 0 0 auto;
  display: block;
  width: var(--m);
  height: var(--m);
}
/* hover まばたき用: SVG の目 (circle) を足元基準でつぶす */
.cmark circle {
  transform-box: fill-box;
  transform-origin: center;
}
.cmark-lg {
  --m: 40px;
}

/* =========================================================
   1. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: clamp(72px, 16vw, 120px) clamp(56px, 10vw, 96px);
  overflow: hidden;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

/* 控えめワードマーク (装飾。言語ピルと同じ高さの反対側) */
.wordmark {
  position: absolute;
  /* 言語ピルと文字の中心 Y を揃える (箱の高さが 36 vs 32.8 なので 2px 下げ — 監査) */
  top: calc(max(18px, env(safe-area-inset-top)) - 2px);
  left: 26px;
  z-index: 2;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}

/* ヒーロー最上部は背景が最も明るい (#8D87C8) -> 暗いピルを敷いて 4.5:1 を確保 */
.lang-top {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(58, 44, 120, 0.34);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}
.lang-top:hover {
  background: rgba(58, 44, 120, 0.48);
}
.lang-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mark {
  width: 72px;
  height: 72px;
  border-radius: 22.37%;
  overflow: hidden;
  margin: 0 auto clamp(26px, 5vw, 34px);
  box-shadow: 0 3px 6px rgba(58, 44, 120, 0.16), 0 12px 28px rgba(58, 44, 120, 0.18);
}

.hero h1 {
  font-size: clamp(21px, 7.4vw, 44px);
  line-height: 1.35;
  margin-bottom: clamp(20px, 4vw, 28px);
}

.lede {
  font-size: 17px;
  line-height: 1.85;
  max-width: 21em;
  margin: 0 auto;
  color: #fff;
}
html[lang="en"] .lede {
  max-width: 34em;
}

.cta {
  margin-top: clamp(30px, 5.5vw, 42px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* Apple 公式バッジ (周囲のクリアスペースはバッジ高の 1/4 以上) */
.badge {
  display: inline-block;
  padding: 14px;
  margin: -14px;
  border-radius: 12px;
}
.badge img {
  height: 54px;
  width: auto;
}
.badge:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -8px;
}
.cta-note {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* デスクトップは縦に余るので中身を光学中央へ寄せ、印を一段大きく
   (モバイル < 900px は現状のまま) */
@media (min-width: 900px) {
  .hero > .wrap {
    transform: translateY(-4vh);
  }
  .mark {
    width: 116px;
    height: 116px;
  }
  .cta {
    margin-top: 28px;
  }
}

/* =========================================================
   2. 4 つの価値
   ========================================================= */
#features .wrap {
  --col: var(--col-wide);
}
.cards {
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

.card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4.4vw, 28px) clamp(24px, 5vw, 30px);
  /* 印は見出しと同じ行に (縦 40px 短縮)。本文は 2 列ぶち抜き */
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  /* 行を伸ばさない。既定 (stretch) だと背の低いカードの見出し行が引き伸ばされ、
     隣り合うカードで見出しの高さと本文までの間隔が 10〜20px ズレる (2026-07-27 監査) */
  align-content: start;
}
.card .cmark {
  margin-bottom: 0;
}
.card p,
.card .heart-hint {
  grid-column: 1 / -1;
}
.card p {
  margin-top: 12px;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0;
}
@media (min-width: 760px) {
  .card h3 {
    font-size: 21px;
  }
}
.card p {
  font-size: 15px;
  line-height: 1.8;
}
/* ♥ が押せることだけを、そっと知らせる 1 行 */
.heart-hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================================================
   3. 投稿の実例
   ========================================================= */
.sample-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* アプリの PostCard と同じ = 上 22 / 横 24 / 下 14 */
  padding: 22px 24px 14px;
  text-align: left;
}
.sp-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}
.sp-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
/* 本文の視覚的中心に合わせる。⚠ reset の `svg{display:block}` を打ち消さないと
   vertical-align は効かない (2026-07-27 監査で発覚 — 指定はあるのに 1 文字ぶん上にいた) */
.heart-shape {
  display: inline-block;
  width: 1.12em;
  height: 1.12em;
  vertical-align: -0.2em;
}
.sp-meta .heart .heart-shape {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
}
.sp-count {
  color: var(--muted);
  transition: color 0.3s ease;
}
.sp-count.lit {
  color: var(--warm);
}
.sp-time {
  margin-left: 3px;
}
.sample-note {
  max-width: 420px;
  margin: 14px auto 0;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: rgba(255, 255, 255, 0.66);
}

/* =========================================================
   4. 住人カード
   ========================================================= */
.archive-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* 下は住人が床に埋まらないよう厚めに取る */
  padding: clamp(34px, 6vw, 52px) clamp(24px, 5vw, 48px) clamp(32px, 4vw, 40px);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}
.archive-card h2 {
  font-size: clamp(21px, 5vw, 31px);
  line-height: 1.4;
  margin-bottom: 18px;
}
.archive-card p {
  font-size: 15px;
  line-height: 1.8;
  max-width: 27em;
  margin: 0 auto;
}
html[lang="en"] .archive-card p {
  max-width: 32em;
}

.crowd {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 84px;
  margin: clamp(18px, 3.5vw, 26px) auto 0;
}
.crowd i {
  position: absolute;
  bottom: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  transform: translateX(-50%);
  border-radius: 22.37%;
  background-image: url("assets/nulvo.svg");
  background-size: cover;
}
/* 画面が広いときだけ増える住人 (狭い幅では密になりすぎる) */
.lg-only {
  display: none;
}
@media (min-width: 760px) {
  .lg-only {
    display: block;
  }
  /* 住人の居場所を広げ、群れ全体も 15% 大きく = 白面に対する存在感を上げる
     (各サイズを個別に +15% すると --x の間隔だけ据え置きになり重なるため、群れごと拡大) */
  .crowd {
    max-width: 460px;
    height: 97px;
    transform: scale(1.15);
  }
}

/* =========================================================
   5. スクリーン紹介
   ========================================================= */
.shots {
  display: flex;
  gap: 18px;
  /* safe = 溢れる幅では start に落ちる (非対応ブラウザは宣言ごと無視 = start) */
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--pad);
  padding-inline: var(--pad);
  padding-block: 4px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar {
  display: none;
}
.shots:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 8px;
}
/* モバイルは 2 枚目が覗く幅にして横スクロールを気づかせる */
.shot {
  flex: 0 0 min(52vw, 210px);
  scroll-snap-align: start;
  text-align: center;
}
/* ⚠ 右端フェード (mask-image) は撤去 (2026-07-27)。スクロールコンテナ自体へのマスクは
   iOS で毎フレーム再合成され、スワイプが重くなる (運営者 FB「モッタリ」の主因)。
   「まだ右にある」はドット + ヒント文言が担う */
/* 226×3 + 21×2 = 720 = 標準幅ちょうど。880px で解禁 (760〜880 帯は必ず溢れるため) */
@media (min-width: 880px) {
  .shots {
    overflow: visible;
    justify-content: center;
    gap: 21px;
  }
  .shot {
    flex: 0 0 226px;
  }
}

/* カルーセルの位置ドット (連動は anim.js が .on を付け替える) */
.shots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.shots-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.25s ease;
}
.shots-dots i.on {
  background: rgba(255, 255, 255, 0.85);
}
.swipe-hint {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}
@media (min-width: 880px) {
  /* 横スクロールしない幅ではドットは意味を持たない */
  .shots-dots,
  .swipe-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shots-dots i {
    transition: none;
  }
}

.frame {
  padding: 7px;
  background: linear-gradient(160deg, var(--midnight-a), var(--midnight-b));
  border-radius: 34px;
  box-shadow: var(--shadow);
}
/* 中身は当面プレースホルダ = 世界色の薄面 (実機スクショが入ったら img が覆う) */
.screen {
  position: relative;
  aspect-ratio: 1290 / 2796;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    linear-gradient(180deg, var(--grad-top) 0%, var(--grad-bot) 100%);
}
/* Dynamic Island (モック / スクショの上に載せる) */
.screen::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 1.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: 2.5%;
  background: var(--midnight-b);
  border-radius: 999px;
}
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
}

/* ---------- 端末の中身 = 純 CSS の静的モック ----------
   実機スクショ (img) が来たらこの .mock ごと差し替える。JS 依存なし。 */
.mock {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background-image: linear-gradient(180deg, #8d87c8 0%, #5f5aa2 100%);
  font-family: var(--font);
  /* 端末内は独自スケール (body の行間と .shot の中央寄せを持ち込まない) */
  line-height: 1.65;
  text-align: left;
}

/* -- 1台目: タイムライン -- */
.mock-timeline {
  padding: 30px 10px 0;
}
.mk-card {
  background: var(--surface);
  border-radius: 13px;
  padding: 10px 11px 7px;
  box-shadow: 0 2px 3px rgba(58, 44, 120, 0.12);
}
.mk-card + .mk-card {
  margin-top: 8px;
}
.mk-body {
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.65;
  /* 本文は最大 2 行 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
/* en: 翻訳ラベル (.mk-card 内の本文下) */
.mk-trans {
  margin-top: 4px;
  font-size: 8.5px;
  color: #8a90ac;
}
.mk-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 8.5px;
  line-height: 1;
  color: var(--muted);
}
.mk-ico {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
}
.mk-time {
  margin-left: 2px;
}
.mk-save {
  width: 9px;
  height: 9px;
  margin-left: auto;
}
/* 共感済み = 暖色ワンポイント (アイコンも数字も) */
.mk-card.is-reacted .mk-heart,
.mk-card.is-reacted .mk-count {
  color: var(--warm);
}

/* -- 2台目: 投稿 -- */
.mock-compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* ja の語尾ピル 4 つを 1 行に収めるため左右は 6px (端末幅 212px で実測ぎりぎり) */
  padding: 30px 6px 12px;
}
.mk-input {
  flex: 0 0 38%;
  background: var(--surface);
  border-radius: 13px;
  padding: 12px;
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.7;
  overflow: hidden;
}
/* en: 選択中の前置きを本文の頭に muted で置く (アプリと同じ) */
.mk-pre {
  color: var(--muted);
}
.mk-caret {
  display: inline-block;
  width: 1.5px;
  height: 12px;
  margin-left: 1px;
  background: var(--accent);
  vertical-align: -2px;
}
.mk-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mk-pill {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.mk-pill.is-on {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--ink);
}
/* 880px 未満は端末枠自体が 9 割サイズ -> ピルも同率で詰めて ja の 1 行を保つ
   (en は語尾が長いのでアプリ同様 2 行に折り返す) */
@media (max-width: 879px) {
  .mk-pill {
    padding: 3px 6px;
    font-size: 8px;
  }
}
.mk-send {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
/* 文字数インジケーター風の細いリング */
.mk-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: conic-gradient(#fff 0 25%, rgba(255, 255, 255, 0.35) 25% 100%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 58%, #000 60%);
  mask: radial-gradient(circle closest-side, transparent 58%, #000 60%);
}
.mk-post {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.4;
}

/* -- 3台目: アーカイブ -- */
.mk-stats {
  position: absolute;
  top: 13%;
  left: 10px;
  right: 10px;
  display: flex;
  text-align: center;
}
.mk-stat {
  flex: 1 1 0;
  min-width: 0;
}
.mk-num {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.mk-label {
  font-size: 8px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}
.mk-crowd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* 住人の見た目は .crowd i と同一 (体色 #3E3969 / 角丸 22.37% / 目 2 点)。
   scale(--sx,--sy) はアイドルぷにの受け皿 (anim.js が書き込む) */
.mk-crowd i,
.mk-stack i {
  display: block;
  width: var(--s);
  height: var(--s);
  border-radius: 22.37%;
  background-image: url("assets/nulvo.svg");
  background-size: cover;
  transform: scale(var(--sx, 1), var(--sy, 1));
  transform-origin: 50% 100%;
}
.mk-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* =========================================================
   6. 安全のしくみ
   ========================================================= */
.safety-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 40px) clamp(24px, 5vw, 40px);
  margin: 0 auto;
  display: grid;
  gap: clamp(22px, 3.5vw, 28px);
}
.safety-item h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 6px;
}
.safety-item p {
  font-size: 15px;
  line-height: 1.8;
}

/* =========================================================
   7. 世界の帯
   ========================================================= */
#world-band {
  padding-block: 64px;
}
.band {
  text-align: center;
}
.band-title {
  font-size: 20px;
  line-height: 1.6;
  color: var(--on-bg);
  margin-bottom: 12px;
}
.band-sub {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34em;
  margin: 0 auto;
}

/* =========================================================
   9. FAQ
   ========================================================= */
.faq {
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}
.faq-item summary:active {
  background-color: rgba(58, 44, 120, 0.07);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px clamp(20px, 4vw, 26px);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.chev {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 2px; /* 45° 回転で bbox が 1.86px 広がるぶんを差し引く (監査) */
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] .chev {
  transform: translateY(1px) rotate(225deg);
}
/* 閉じ始めた瞬間に矢印も戻す。open が落ちるのを待つと「パネルは閉じ切ったのに矢印だけ
   遅れて回る」二段モーションになる (2026-07-27 コマ送り検証で発見: 高さ 296ms / 矢印 615ms) */
.faq-item.closing .chev {
  transform: translateY(-3px) rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
  .chev {
    transition: none;
  }
}
/* 開閉は grid-template-rows の 0fr ⇄ 1fr (2026-07-27)。
   旧 max-height 方式は開くたびに scrollHeight を読む = 強制同期レイアウトでカクついた。
   下パディングも一緒に畳まないと閉じても隙間が残るので同時にアニメする。
   .collapsed の付け外しは anim.js (details の display 切替を跨ぐため JS 制御が必要) */
.faq-a {
  display: grid;
  grid-template-rows: 1fr;
  padding: 0 clamp(20px, 4vw, 26px) 22px;
  /* 開くとき: 箱がひらいてから中身が届く (0.1s 遅らせる)。
     閉じるとき (.collapsed 側): 先に中身が消えてから箱が畳まる。
     同じ速さだと「開くほうが速い」と感じるため、開きだけ一段ゆっくりにしている */
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    padding-bottom 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.22s ease 0.1s;
  contain: content;
}
.faq-a > * {
  min-height: 0;
  overflow: hidden;
}
.faq-a.collapsed {
  grid-template-rows: 0fr;
  padding-bottom: 0;
  opacity: 0;
  transition: grid-template-rows 0.24s ease, padding-bottom 0.24s ease, opacity 0.12s ease;
}
.faq-a p {
  font-size: 15px;
  line-height: 1.85;
}
/* 開いた瞬間に答えがふっと立ち上がる (details は開閉自体はアニメできないので中身だけ) */

@keyframes faqFadeUnused {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-a {
    animation: none;
  }
}
.faq-a a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  word-break: break-word;
}
.faq-a a:hover {
  text-decoration-color: var(--ink);
}
/* URL を「途中でしか折れない 2 塊」にして、閉じ括弧だけが行頭に落ちるのを防ぐ */
.faq-a .nb {
  white-space: nowrap;
}

/* =========================================================
   10. 最後の CTA
   ========================================================= */
.final-cta {
  text-align: center;
}
.final-cta .cmark {
  margin: 0 auto 24px;
}
.final-sub {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}
.final-line {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.6;
  color: var(--on-bg);
}
#cta .cta {
  margin-top: 22px;
}

/* =========================================================
   11. Footer
   ========================================================= */
.footer {
  padding-block: clamp(40px, 8vw, 64px) clamp(48px, 9vw, 72px);
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 15px;
}
.footer-links a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}
.footer-links a:hover {
  text-decoration-color: #fff;
}
.footer-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}
.footer-meta {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45); /* © は最弱の情報 — 説明文 (.footer-note) より目立たせない */
}

/* 伏字ゲートの実例タイル (アプリの「1文字=1匹の Nulvo」のミニチュア) */
.mk-mask {
  display: inline-flex;
  gap: 2px;
  vertical-align: -1.5px;
}
.mk-mask i {
  width: 11px;
  height: 11px;
  background-image: url("assets/nulvo.svg");
  background-size: cover;
}

/* =========================================================
   アニメ層 (Fable 手書き 2026-07-26)
   法則: 1動作ずつ / 間 / ゆっくり / 明快。アプリの大技 (雨・初共感バースト・群れ物理) は
   本編用に温存し、ここは Web オリジナル (夜が深まる / 気配 / 置かれる / 横断 / 灯る) +
   小技の移植 (ぷに単発 — 実カーブは anim.js、アプリと同式) のみ
   ========================================================= */

/* 夜が深まる: スクロール進行で第二の世界レイヤー (グラデ下端 → Dusk #35315A) が満ちる */
.world-night {
  background-image: linear-gradient(180deg, var(--grad-bot) 0%, #4a4483 100%);
  opacity: 0;
}

/* ヒーローの登場 = 「置かれる」: mark → h1 (沈み込んで静止) → lede → cta の単調カスケード */
/* ヒーローの Nulvo はアプリのオンボ P1 と同じ「落下ぽよん」で登場 (値は NewOnboarding.tsx 実測)。
   落下 460ms → 3 段バウンド (-42 / -16 / -5)、接地スカッシュは体積保存 (scaleX = 2 - scaleY) */
.js .hero .mark {
  animation: drop-bounce 1.185s linear 0.05s backwards;
}
.js .hero .mark svg {
  animation: land-squash 1.185s linear 0.05s backwards;
  transform-origin: 50% 100%;
}
@keyframes drop-bounce {
  0% {
    transform: translateY(-140px);
    animation-timing-function: cubic-bezier(0.11, 0, 0.5, 0);
  }
  38.8% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
  }
  54% {
    transform: translateY(-42px);
    animation-timing-function: cubic-bezier(0.11, 0, 0.5, 0);
  }
  67.5% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
  }
  77.6% {
    transform: translateY(-16px);
    animation-timing-function: cubic-bezier(0.11, 0, 0.5, 0);
  }
  86.5% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
  }
  93.7% {
    transform: translateY(-5px);
    animation-timing-function: cubic-bezier(0.11, 0, 0.5, 0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes land-squash {
  0%,
  36.3% {
    transform: scale(1, 1);
  }
  44.7% {
    transform: scale(1.28, 0.72);
  }
  58.2% {
    transform: scale(0.93, 1.07);
  }
  70% {
    transform: scale(1, 1);
  }
  78.9% {
    transform: scale(1.13, 0.87);
  }
  87.7% {
    transform: scale(0.97, 1.03);
  }
  94.9% {
    transform: scale(1.05, 0.95);
  }
  100% {
    transform: scale(1, 1);
  }
}
.js .hero h1 {
  animation: settle 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
}
.js .hero .lede {
  animation: rise-in 0.85s ease-out 0.5s both;
}
.js .hero .cta {
  animation: rise-in 0.85s ease-out 0.72s both;
}
@keyframes settle {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  62% {
    opacity: 1;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 気配: まばたき (6.4s 周期) + ふっと横に流れる視線 (17s 周期 — 位相が重ならないよう互いに素) */
.mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.eye {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.16s ease-out;
}
.eyes {
  transform-box: fill-box;
  transform-origin: center;
}
/* まばたき・視線の数値はアプリ (NulvoFace.tsx) と同一 —
   まばたき: 9100ms 周期に 2 回 (間隔 3500 / 5200)、つぶれ 90ms → 開き 110ms、scaleY 0.08
   視線: 5200ms 周期、片道 650ms、両端 1600ms 保持、振幅 = 体 size の 6% (1024×0.06 ≈ 61) */
.js .eye {
  animation: blink 9.1s linear infinite;
}
.js .eyes {
  animation: gaze 5.2s ease-in-out infinite;
}
@keyframes blink {
  0%,
  36.5%,
  38.7%,
  95.6%,
  97.8%,
  100% {
    transform: scaleY(1);
  }
  37.5%,
  96.6% {
    transform: scaleY(0.08);
  }
}
@keyframes gaze {
  0%,
  30.8% {
    transform: translateX(0);
  }
  43.3%,
  74.1% {
    transform: translateX(61px);
  }
  86.6%,
  100% {
    transform: translateX(0);
  }
}
/* 触れると目を閉じて、間をおいて開く (跳ねない — 「起きてるよ」とだけ返す) */
.mark {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mark.closed .eye {
  animation: none;
  transform: scaleY(0.06);
}
.mark.closed .eyes {
  animation-play-state: paused;
}

/* 灯る ♥: 一拍おいて warm が満ち、一度だけゆっくり脈打つ (バーストは本編用)。
   形と色はアプリ準拠 — 未共感 = 輪郭 / 共感済 = warm 塗り (2026-07-27 運営者 FB「紫の塗り」是正)。
   輪郭色はカード面に対し 3.3:1 で、muted より半段だけ濃い (可触性の担保) */
.heart {
  color: #757a99;
  display: inline-block;
  line-height: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.65s ease;
}
.heart.lit {
  color: var(--warm);

}
/* 押せる ♡ (共感カード) は最初から warm の線 — 「押せる」と分かるように。
   実例カードの ♥ はアプリ画面の再現なので muted のまま (未共感の実物と同じ) */
#empathyHeart {
  color: var(--warm);
}
.card .heart-hint {
  color: var(--muted);
}
/* 点灯の弾みはアプリと同じ実測カーブ: 1 → 1.45 (120ms ease-out quad) → 1 (180ms ease-in-out quad)。
   ring (::after) まで一緒に膨らまないよう、pop は中の svg にだけ掛ける */
.heart.lit .heart-shape {
  animation: heart-pop 0.3s 1 both;
}
@keyframes heart-pop {
  0% {
    transform: scale(1);
    animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
  }
  40% {
    transform: scale(1.45);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  100% {
    transform: scale(1);
  }
}
/* 未点灯は線、点灯で塗り (アプリの heart-outline → heart と同じ切替) */
.heart-shape path {
  fill: none;
  stroke: currentColor;
  stroke-width: 44;
  stroke-linejoin: round;
  transition: fill 0.45s ease;
}
.heart.lit .heart-shape path {
  fill: currentColor;
  stroke: none;
}
.heart:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 住人: 触るとぷにっと潰れる (足元軸)。土台の translateX と scale を合成 */
.crowd i {
  transform: translateX(-50%) scale(var(--sx, 1), var(--sy, 1));
  transform-origin: 50% 100%;
  cursor: pointer;
}

/* とことこ横断: ごく稀に 1 匹が画面下端を歩いて横切る (足元軸の揺れ、Reauth の歩行法則) */
.walker {
  position: fixed;
  bottom: 6px;
  left: 0;
  z-index: 5;
  width: 22px;
  height: 22px;
  opacity: 0.45;
  pointer-events: none;
}
.walker img {
  width: 100%;
  height: 100%;
  border-radius: 22.37%;
  transform-origin: 50% 100%;
  animation: toko 0.72s ease-in-out infinite alternate;
}
.walker.ltr {
  animation: cross-l var(--wd, 16s) linear both;
}
.walker.rtl {
  animation: cross-r var(--wd, 16s) linear both;
}
@keyframes cross-l {
  from {
    transform: translateX(-30px);
  }
  to {
    transform: translateX(calc(100vw + 30px));
  }
}
@keyframes cross-r {
  from {
    transform: translateX(calc(100vw + 30px)) scaleX(-1);
  }
  to {
    transform: translateX(-30px) scaleX(-1);
  }
}
@keyframes toko {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(5deg) translateY(-1.5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero .mark,
  .js .hero .mark svg,
  .js .hero h1,
  .js .hero .lede,
  .js .hero .cta,
  .js .eye,
  .js .eyes,
  .heart.lit {
    animation: none;
  }
  .heart {
    transition: none;
  }
  .walker {
    display: none;
  }
}

/* =========================================================
   アニメ層 追補 (Fable 手書き 2026-07-26 — Round 2)
   法則: 1動作ずつ / 間 / ゆっくり / 明快
   ========================================================= */

/* スクロールキュー: 下向きシェブロンがゆっくり沈んで戻る呼吸。1 スクロールで消灯 (anim.js が .hide 付与) */
.scroll-cue {
  width: 15px;
  height: 15px;
  margin: 28px auto 0;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  animation: cueDrift 2.6s ease-in-out infinite;
  transition: opacity 0.6s ease;
}
.scroll-cue.hide {
  opacity: 0;
}
@keyframes cueDrift {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.45;
  }
  50% {
    transform: translateY(7px) rotate(45deg);
    opacity: 0.85;
  }
}

/* カードに触れるとミニマークが一回まばたき (hover 環境のみ、閉じ目のカードは除外) */
@media (hover: hover) {
  .card:hover .cmark circle {
    animation: cmarkBlink 0.26s ease-in-out 0.1s 1 both;
  }
}
@keyframes cmarkBlink {
  0%,
  100% {
    transform: scaleY(1);
  }
  45% {
    transform: scaleY(0.15);
  }
}

/* 最終 CTA のマークは静かに呼吸 (アプリの Nulvo と同じ生命感、振幅は控えめ) */
.final-cta .cmark {
  animation: markBreath 4.8s ease-in-out infinite;
}
@keyframes markBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* OS がダーク設定の訪問者には世界を半段深く (「夜前提なのに明るい」FB 対応。色相は不変) */
@media (prefers-color-scheme: dark) {
  .world {
    background-image: linear-gradient(180deg, #7d77b8 0%, #514c8e 100%);
  }
  .world-night {
    background-image: linear-gradient(180deg, #514c8e 0%, #443e7a 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue,
  .final-cta .cmark,
  .card:hover .cmark circle {
    animation: none;
  }
}

/* ♥ 点灯の一拍あとに warm の波紋が一輪だけ広がる (Web オリジナル — アプリの初共感バーストは本編に温存)。
   .lit が付いた瞬間に一度だけ再生され、消灯では出ない */
.heart {
  position: relative;
}
/* 波紋はアプリの FirstEmpathyBurst と同一値: 26px / border 1.5px warm /
   scale 0.5→2.4 / opacity 0.5→0 を進行に線形連動 / 680ms ease-out(cubic) */
.heart.lit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 1.5px solid var(--warm);
  pointer-events: none;
  animation: heartRing 0.68s cubic-bezier(0.33, 1, 0.68, 1) 1 both;
}
@keyframes heartRing {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* 小♥ 3 粒 (アプリの EmberHeart と同一テーブル: dx/rise/size/delay)。
   立ちのぼり 1050ms out(cubic) / 出 160ms → 保持 340ms → 消え 550ms in(quad) /
   scale = 0.6 + 0.4×min(3p,1)。JS が .burst クラスを付けた瞬間に 1 回だけ流れる */
.ember {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  color: var(--warm);
  line-height: 1;
  opacity: 0;
}
.ember-1 {
  font-size: 9px;
  animation: ember1 1.05s cubic-bezier(0.33, 1, 0.68, 1) 0s 1 both,
    emberFade 1.05s linear 0s 1 both;
}
.ember-2 {
  font-size: 7px;
  animation: ember2 1.05s cubic-bezier(0.33, 1, 0.68, 1) 0.11s 1 both,
    emberFade 1.05s linear 0.11s 1 both;
}
.ember-3 {
  font-size: 8px;
  animation: ember3 1.05s cubic-bezier(0.33, 1, 0.68, 1) 0.22s 1 both,
    emberFade 1.05s linear 0.22s 1 both;
}
@keyframes ember1 {
  from {
    transform: translate(-50%, -50%) scale(0.6);
  }
  to {
    transform: translate(calc(-50% - 13px), calc(-50% - 22px)) scale(1);
  }
}
@keyframes ember2 {
  from {
    transform: translate(-50%, -50%) scale(0.6);
  }
  to {
    transform: translate(calc(-50% + 10px), calc(-50% - 16px)) scale(1);
  }
}
@keyframes ember3 {
  from {
    transform: translate(-50%, -50%) scale(0.6);
  }
  to {
    transform: translate(calc(-50% - 2px), calc(-50% - 26px)) scale(1);
  }
}
@keyframes emberFade {
  0% {
    opacity: 0;
  }
  15.2% {
    opacity: 0.9;
  }
  47.6% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .heart.lit::after {
    animation: none;
    opacity: 0;
  }
}

/* 実機スクリーンショット (ja — モック差し替え 2026-07-26)。en はモック継続中 */
.screen.has-shot::before {
  display: none; /* 偽 Dynamic Island — 実機画像に本物が写っているため */
}
.screen.has-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   Nulvo の出番 (Fable 2026-07-27 — 運営者 FB「もっとワチャワチャ・可愛いごちゃごちゃ感」)
   ========================================================= */

/* 最終 CTA の下に住人の帯。触るとぷに、ときどき勝手にひと跳ね */
.mini-crowd {
  /* 光は箱ではなくセクション側 (#cta::before) が画面幅で敷く。
     箱に敷くと左右に境目が出て「光の板」に見えた (2026-07-28 運営者 FB) */
  margin-top: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  min-height: 30px;
}
.mini-crowd i {
  display: block;
  /* 暗い側で沈まないよう実寸を 1.22 倍に (親を scale すると横スクロール域が広がる) */
  width: calc(var(--s, 18px) * 1.22);
  height: calc(var(--s, 18px) * 1.22);
  border-radius: 22.37%;
  background-image: url("assets/nulvo.svg");
  background-size: cover;
  opacity: 0.92;
  cursor: pointer;
  transform-origin: 50% 100%;
  /* --ty = ジャンプ / --sx,--sy = ぷに (どちらも anim.js が書き込む) */
  transform: translateY(var(--ty, 0px)) scale(var(--sx, 1), var(--sy, 1));
}
/* 機械的な等間隔にしない (アプリの群れと同じ「不揃いの気配」) */
.mini-crowd i:nth-child(2) {
  margin-left: 3px;
}
.mini-crowd i:nth-child(3) {
  margin-left: 7px;
}
.mini-crowd i:nth-child(5) {
  margin-left: 5px;
}
.mini-crowd i:nth-child(6) {
  margin-left: 10px;
}

/* ヒーローと最終 CTA の印もぷにを受ける (transform は JS が書き込む) */
.mark,
.final-cta .cmark {
  transform-origin: 50% 100%;
}
.mark svg {
  transform: scale(var(--sx, 1), var(--sy, 1));
}

/* カードの印は出現に合わせてひょこっと立ち上がる (reveal の 60ms 後、1 枚ずつ) */
.cards.in .card:nth-child(1) .cmark {
  animation: markPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s both;
}
.cards.in .card:nth-child(2) .cmark {
  animation: markPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
.cards.in .card:nth-child(3) .cmark {
  animation: markPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.24s both;
}
.cards.in .card:nth-child(4) .cmark {
  animation: markPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.33s both;
}
@keyframes markPop {
  0% {
    transform: translateY(6px) scale(0.72, 0.86);
  }
  55% {
    transform: translateY(0) scale(1.06, 0.96);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cards.in .card .cmark {
    animation: none;
  }
  .mini-crowd i {
    cursor: default;
  }
}

/* =========================================================
   段差出現 (Fable 2026-07-27 — 運営者 FB「4 つのメリットの初動が順々になっていない」)
   .reveal.stagger を付けた箱は、箱ごとではなく中身が 1 つずつ立ち上がる
   ========================================================= */
.js .reveal.stagger {
  opacity: 1;
  transform: none;
  transition: none;
}
.js .reveal.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.stagger.in > * {
  opacity: 1;
  transform: none;
}
.js .reveal.stagger.in > *:nth-child(1) {
  transition-delay: 0ms;
}
.js .reveal.stagger.in > *:nth-child(2) {
  transition-delay: 90ms;
}
.js .reveal.stagger.in > *:nth-child(3) {
  transition-delay: 180ms;
}
.js .reveal.stagger.in > *:nth-child(4) {
  transition-delay: 270ms;
}
.js .reveal.stagger.in > *:nth-child(5) {
  transition-delay: 360ms;
}
.js .reveal.stagger.in > *:nth-child(6) {
  transition-delay: 450ms;
}
.js .reveal.stagger.in > *:nth-child(7) {
  transition-delay: 520ms;
}
.js .reveal.stagger.in > *:nth-child(8) {
  transition-delay: 580ms;
}
.js .reveal.stagger.in > *:nth-child(9) {
  transition-delay: 630ms;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal.stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* スクショの但し書き / en 法務リンクの言語注記 (2026-07-28 照合対応) */
.shots-note {
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.lang-note {
  opacity: 0.7;
  font-size: 0.85em;
}

/* 投稿の実例 3 枚 (タイムラインのように縦に重ねる。2026-07-28) */
.samples {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.samples .sample-card {
  margin: 0;
}

/* 最終 CTA: ページの底だけ画面幅で明るくする (2026-07-28)。
   夜が深まった先で少し光が戻る = 住人が沈まず、締めの区画が立ち上がる。
   箱に光を敷くと左右に境目が出る (運営者 FB「光の板に見える」) ので、セクション側で全幅に敷く */
#cta {
  position: relative;
  isolation: isolate;
}
#cta::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 300px;
  background: radial-gradient(62% 130% at 50% 100%, rgba(255, 255, 255, 0.19), transparent 74%);
  pointer-events: none;
  z-index: -1;
}
/* 住人がここにいる理由を一言だけ (前パネルで「ただの飾りとして流れた」FB) */
.crowd-note {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.crowd-note + .mini-crowd {
  margin-top: 10px;
}

/* 締めのリズム: 印 24 / 見出し 26 / ボタン 12 / 条件 40 / 住人。
   .badge は周囲に padding 14 + 負 margin を持つので、その分を見込んで指定する */
.final-cta .cta {
  margin-top: 26px;
  gap: 12px;
}
.final-cta .cta-note {
  margin-top: 2px;
}
