/* ============================================================
   通過手帳 — 配布サイト共通スタイル
   トークンはアプリの DesignSystem/Tokens.swift（design.md §2）に合わせる。
   ダーク＝夜藍、ライト＝クリームの紙。朱はハンコ（通過）の意味だけに使う。
   ============================================================ */

:root {
  --bg: #f3ebd8;          /* クリーム */
  --surface: #fbf6ea;     /* 上質紙 */
  --chip: #e6dbc3;
  --ink: #1e2335;         /* 墨藍 */
  --ink-sub: #585d6e;
  --line: #dccfb4;
  --line-strong: #877c66;
  --ai: #27345f;          /* 藍（リンク・操作） */
  --shu: #c23b22;         /* 朱（通過） */
  --shu-text: #a8321c;
  --brass: #9c7b34;
  --brass-text: #6f531a;
  --night-top: #1a2244;   /* ヒーローは外観に関係なく夜藍 */
  --night: #121833;
  --night-ink: #ede6d6;
  --night-sub: #a9aec4;
  --night-brass: #c9a95f;
  --night-shu: #e0573f;
  --night-line: #2c355e;
  --radius: 14px;
  --maxw: 1040px;
  --mincho: "Hiragino Mincho ProN", "Shippori Mincho", "Yu Mincho", serif;
  --gothic: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121833;
    --surface: #1b2345;
    --chip: #27305a;
    --ink: #ede6d6;
    --ink-sub: #a9aec4;
    --line: #2c355e;
    --line-strong: #6f7bad;
    --ai: #9aade6;
    --shu: #e0573f;
    --shu-text: #f58470;
    --brass: #c9a95f;
    --brass-text: #d4b872;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--gothic);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ---------- ナビ ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--night) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--night-line);
  color: var(--night-ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mincho); font-weight: 600; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 20px; font-size: 14px; color: var(--night-sub); }
.nav-links a:hover { color: var(--night-ink); }
@media (max-width: 560px) { .nav-links { gap: 14px; font-size: 13px; } .nav-links .hide-sm { display: none; } }

/* ---------- ヒーロー（夜藍） ---------- */
.hero {
  background: linear-gradient(180deg, var(--night-top), var(--night));
  color: var(--night-ink);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero .stars { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--night-brass); }
.hero h1 { font-family: var(--mincho); font-weight: 600; font-size: clamp(34px, 6vw, 56px); line-height: 1.35; margin: 14px 0 18px; }
.hero .seal-dot { display: inline-block; width: .5em; height: .5em; border: .08em solid var(--night-shu); border-radius: 50%; box-shadow: inset 0 0 0 .07em var(--night), inset 0 0 0 .1em var(--night-shu); vertical-align: .18em; margin-right: .3em; }
.hero .lead { color: var(--night-sub); font-size: 17px; max-width: 30em; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.tag { font-size: 13px; padding: 4px 12px; border: 1px solid var(--night-line); border-radius: 999px; color: var(--night-sub); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--night-ink); color: var(--night);
  padding: 10px 20px; border-radius: 12px; font-weight: 600; line-height: 1.2;
}
.badge-soon small { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
.badge-soon svg { width: 20px; height: 24px; }
.hero-note { font-size: 13px; color: var(--night-sub); }

.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 40px; overflow: hidden;
  border: 1px solid rgba(201, 169, 95, .3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  background: var(--night);
}
.hero-phone { position: relative; }
@media (max-width: 820px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- セクション ---------- */
.section { padding: 88px 0; }
.section-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--brass-text); }
h2 { font-family: var(--mincho); font-weight: 600; font-size: clamp(26px, 4vw, 36px); line-height: 1.45; margin: 10px 0 16px; }
.desc { color: var(--ink-sub); font-size: 16px; }
.center { text-align: center; }
.intro { max-width: 680px; margin: 0 auto 56px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature.reverse > :first-child { order: 2; }
.feature .phone { max-width: 270px; }
.feature .note { margin-top: 14px; font-size: 13px; color: var(--ink-sub); }
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse > :first-child { order: 0; }
}

.stamps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.stamp {
  font-family: var(--mincho); font-weight: 600; font-size: 14px;
  width: 64px; height: 64px; display: grid; place-items: center; text-align: center; line-height: 1.2;
  border: 3px solid currentColor; border-radius: 50%;
}
.stamp.passed { color: var(--shu); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--shu); }
.stamp.ran { color: var(--brass); border-radius: 6px; }
.stamp.known { color: var(--brass); border-style: dashed; border-radius: 6px; }
.stamp.unplayed { color: var(--ai); }
.stamp.none { color: var(--ai); border-style: dashed; font-size: 12px; }

/* ---------- 無料と Plus ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; text-align: left; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan h3 { font-family: var(--mincho); font-size: 22px; font-weight: 600; }
.plan .price { font-family: var(--mono); color: var(--brass-text); font-size: 13px; margin-bottom: 12px; }
.plan ul { list-style: none; }
.plan li { padding: 6px 0 6px 22px; position: relative; border-top: 1px dashed var(--line); font-size: 15px; }
.plan li:first-child { border-top: none; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; border: 2px solid var(--shu); border-radius: 50%; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

/* ---------- プライバシーの帯（夜藍） ---------- */
.privacy-band { background: linear-gradient(180deg, var(--night-top), var(--night)); color: var(--night-ink); padding: 80px 0; text-align: center; }
.privacy-band p { color: var(--night-sub); }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.pcard { border: 1px solid var(--night-line); border-radius: var(--radius); padding: 22px 12px; background: rgba(27, 35, 69, .6); }
.pcard b { display: block; font-family: var(--mincho); font-size: 17px; }
.pcard span { font-size: 13px; color: var(--night-sub); }
@media (max-width: 760px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }

.disclaimer { font-size: 13px; color: var(--ink-sub); max-width: 640px; margin: 28px auto 0; }

/* ---------- CTA ---------- */
.cta { padding: 88px 0; text-align: center; border-top: 1px solid var(--line); }
.cta .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; }
.cta .cta-row { justify-content: center; margin-top: 24px; }

/* ---------- 文書ページ ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 88px; }
.doc h1 { font-family: var(--mincho); font-weight: 600; font-size: clamp(28px, 5vw, 36px); margin: 16px 0 6px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc h3 { font-family: var(--mincho); font-weight: 600; font-size: 17px; margin: 28px 0 6px; }
.doc p, .doc li { font-size: 15.5px; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 8px 0; }
.doc li { margin: 4px 0; }
.updated { font-family: var(--mono); font-size: 13px; color: var(--ink-sub); }
.back-home { font-size: 14px; color: var(--ai); }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--shu); border-radius: 10px; padding: 16px 18px; margin: 24px 0; font-size: 15px; }
a.inline { color: var(--ai); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }

/* ---------- フッター ---------- */
.footer { background: var(--night); color: var(--night-sub); padding: 36px 0; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer .brand { color: var(--night-ink); font-size: 15px; }
.footer .brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--night-ink); }
