/* どっち？ — 白基調・太字。差し色はネオングリーン（面に使い、文字は黒） */
:root {
  --accent: #1fdf64;        /* ボタン・バッジ・ロゴの「？」などの面 */
  --on-accent: #111;        /* 緑の面に載せる文字 */
  --accent-text: #008a3a;   /* 白地に置く小さな緑の文字 */
  --text: #1d1d1f; --text-2: #424245; --muted: #86868b;
  --surface: #f5f5f7; --surface-2: #ebebef; --line: #e5e5ea; --bg: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 520px; margin: 0 auto; padding: 0 22px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.site-header .wrap { display: flex; align-items: center; height: 56px; gap: 16px; }
.logo { font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -.01em; }
.logo .q { color: var(--accent); -webkit-text-stroke: .4px var(--accent-text); }
.site-header nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--text); }

.flash { background: var(--surface); border-radius: 14px; padding: 12px 16px; margin: 14px 0 0; font-size: 14px; }
.errors { color: #d70015; font-size: 14px; }
main { padding: 8px 0 48px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }

/* ボタン */
.btn { display: block; width: 100%; border: 0; border-radius: 980px; padding: 16px; font: inherit; font-weight: 700; font-size: 17px;
  text-align: center; text-decoration: none; cursor: pointer; background: var(--accent); color: var(--on-accent);
  transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(.96); }
.btn:active { transform: scale(.98); }
.btn-outline { background: var(--surface); color: var(--text); font-weight: 600; font-size: 16px; }
.btn-x { background: #000; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; }
.btn-google { background: #fff; color: #1d1d1f; border: 1px solid #dadce0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; }
.btn-small { display: inline-block; width: auto; flex: none; white-space: nowrap; padding: 10px 20px; font-size: 15px; }
.inline-form { display: flex; gap: 8px; align-items: stretch; }
.inline-form input[type=text] { flex: 1; min-width: 0; }

/* 進み具合 */
.top { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.track { height: 4px; background: var(--surface-2); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.track > i { display: block; height: 100%; background: var(--text); border-radius: 2px; }

/* ストーリー */
.story-title { font-size: 32px; line-height: 1.22; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 16px; }
.story-body { font-size: 17px; line-height: 1.9; color: var(--text-2); margin: 0; }
.question { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 34px 0 14px; }
.choices { display: grid; gap: 10px; }
.choices form { margin: 0; }
.choice { width: 100%; border: 0; border-radius: 18px; padding: 20px 18px; font: inherit; font-weight: 700; font-size: 18px; line-height: 1.4;
  color: var(--text); background: var(--surface); cursor: pointer; display: flex; align-items: center; gap: 12px; text-align: left;
  transition: background .15s, transform .1s; }
.choice:hover { background: var(--surface-2); }
.choice:active { transform: scale(.98); }
.choice .k { flex: none; width: 24px; font-size: 13px; color: var(--muted); }
.choice .t { flex: 1; }
.choice .arr { flex: none; color: #c7c7cc; font-size: 22px; line-height: 1; }
.choices.sending .choice { opacity: .5; pointer-events: none; }
.choice-static { cursor: default; }
.choice-static:hover { background: var(--surface); }
.choice-static:active { transform: none; }
.note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }

/* 結果 */
.result-row { margin: 20px 0; }
.result-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.result-label .pct { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.result-bar { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.result-bar > i { display: block; height: 100%; border-radius: 5px; background: #c7c7cc; animation: grow .7s cubic-bezier(.2,.8,.2,1); transform-origin: left; }
.result-row.is-mine .result-bar > i { background: var(--text); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mine { display: inline-block; font-size: 11px; font-weight: 700; color: var(--on-accent); background: var(--accent); border-radius: 6px; padding: 2px 7px; margin-left: 8px; vertical-align: 2px; }
.verdict { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 30px 0 4px; }
.verdict-sub { color: var(--muted); font-size: 15px; margin: 0; }
.actions { display: grid; gap: 10px; margin-top: 28px; }

/* トップ */
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.hero h1 .q { color: var(--accent); -webkit-text-stroke: 1px var(--accent-text); }
.hero .lead { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.45; margin: 16px 0 28px; }
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: 18px; padding: 16px 18px 16px 52px; font-size: 15px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps.check li::before { content: "✓"; }

/* セクション・リスト */
h1.page { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 8px; }
h2.section { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 36px 0 12px; }
.card { background: var(--surface); border-radius: 18px; padding: 20px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li:last-child { border-bottom: 0; }
.rank-row { display: flex; align-items: center; gap: 12px; }
.rank-no { width: 32px; font-weight: 800; font-size: 17px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-row.top3 .rank-no { color: var(--text); }
.rank-row.top3 .rank-no::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 3px; vertical-align: 3px; }
.rank-name { flex: 1; font-weight: 600; }
.rank-score { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stats div { background: var(--surface); border-radius: 18px; padding: 16px 6px 12px; }
.stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.chip-a, .chip-b { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 0 6px; margin-right: 6px; background: var(--text); color: #fff; }
input[type=text] { font: inherit; padding: 12px 14px; border: 0; background: var(--surface); border-radius: 14px; width: 100%; }
input[type=text]:focus { outline: 2px solid var(--accent); }
.pager { margin: 16px 0; text-align: center; font-size: 14px; }
.pager nav { display: flex; justify-content: center; }
.pager ul { list-style: none; display: flex; gap: 10px; padding: 0; }
.pager a, .pager span { color: var(--text); }

footer { border-top: 1px solid var(--line); padding: 22px 0 34px; font-size: 13px; color: var(--muted); text-align: center; }
footer a { margin: 0 8px; text-decoration: none; }
footer a:hover { color: var(--text); }
.prose h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; } .prose h2 { font-size: 18px; margin-top: 28px; } .prose { font-size: 15px; color: var(--text-2); }
