/* 理想の彼氏診断 — 黒地。4つのグループ色(紫・緑・金・青)は仮の色です。 */
:root {
  color-scheme: dark;
  --bg: #0c0b12;
  --surface: #171424;
  --surface-2: #211d33;
  --fg: #f0ebf8;
  --fg-2: #d3cce2;
  --muted: #a8a1ba;
  --line: rgba(240, 235, 248, .14);
  --line-2: rgba(240, 235, 248, .3);
  --pearl: #f3ebdf;
  --pearl-ink: #19141f;
  --g: #9a6bff;
  --g-rgb: 154, 107, 255;
  --g-ink: #0c0b12;
  --nt: #9a6bff; --nf: #2fd18a; --sp: #e3b341; --sj: #5a8bff;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(110% 42% at 50% -6%, rgba(var(--g-rgb), .22), transparent 70%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: anywhere;
  padding-block: 20px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  transition: background-image .4s;
}
.app { max-width: 560px; margin: 0 auto; }
img { max-width: 100%; display: block; }
button, a.btn { font: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
.screen[hidden], [hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; line-height: 1.7; }
:focus-visible { outline: 2px solid var(--pearl); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; letter-spacing: .06em; cursor: pointer; text-decoration: none;
  transition: transform .15s, background-color .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--pearl); color: var(--pearl-ink); width: 100%; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--pearl); }

/* ── はじめの画面 ── */
.hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 26px; }
.hero figure { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; border-bottom: 3px solid var(--c); box-shadow: 0 10px 28px -14px var(--c); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 11, 18, .55), transparent 45%); }
.intro { text-align: center; }
.kicker { font-size: 13px; letter-spacing: .24em; color: var(--muted); }
.intro h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 9.4vw, 44px); line-height: 1.3; letter-spacing: .08em; margin: 6px 0 4px; text-wrap: balance; }
.tag-bubble { --bub: #1c1830; position: relative; margin: 32px 4px 36px; padding: 24px 18px 26px; border: 1px solid rgba(var(--g-rgb), .6); border-radius: 18px; background: var(--bub); box-shadow: 0 0 26px -10px rgba(var(--g-rgb), .55); }
.tag-bubble::before { content: ""; position: absolute; left: 50%; top: -12px; margin-left: -11px; border: 11px solid transparent; border-top: 0; border-bottom: 12px solid rgba(var(--g-rgb), .6); }
.tag-bubble::after { content: ""; position: absolute; left: 50%; top: -10px; margin-left: -10px; border: 10px solid transparent; border-top: 0; border-bottom: 11px solid var(--bub); }
.tagline { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 5.8vw, 24px); line-height: 1.85; letter-spacing: .06em; text-wrap: balance; }
.tagline .ph { display: inline-block; }
.lead { color: var(--fg-2); font-size: 15.5px; text-align: left; }
.teaser { position: relative; aspect-ratio: 3 / 4; max-width: 100%; margin: 0 0 26px; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 16px 40px -18px rgba(154, 107, 255, .5); }
.teaser img { width: 100%; height: 100%; object-fit: cover; }
.teaser::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(to top, rgba(8, 7, 12, .92) 0%, rgba(8, 7, 12, .6) 50%, transparent); pointer-events: none; }
.teaser-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 6% 7%; text-align: center; font-family: var(--serif); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.teaser-text span { display: block; font-size: clamp(15px, 4.4vw, 19px); letter-spacing: .12em; font-weight: 600; opacity: .92; }
.teaser-text b { display: block; font-size: clamp(27px, 8.4vw, 38px); letter-spacing: .08em; font-weight: 800; line-height: 1.35; }
.howto { list-style: none; counter-reset: n; margin: 22px 0 20px; display: grid; gap: 10px; }
.howto li { counter-increment: n; position: relative; padding-left: 38px; color: var(--fg-2); font-size: 15px; line-height: 1.75; }
.howto li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--pearl); line-height: 1; }
.howto b { color: var(--fg); }

.notice { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 10px; padding: 12px 16px 13px; margin-bottom: 20px; }
.notice-label { font-size: 12.5px; letter-spacing: .16em; color: var(--muted); }
.notice p + p, .notice-text { font-size: 14px; line-height: 1.85; color: var(--fg-2); }
.notice-result { border-left-color: rgba(var(--g-rgb), .8); margin-top: 22px; }

.lineup { margin-top: 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lineup summary { list-style: none; cursor: pointer; min-height: 60px; padding: 10px 46px 10px 18px; position: relative; display: flex; flex-direction: column; justify-content: center; }
.lineup summary::-webkit-details-marker { display: none; }
.lineup summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--pearl); border-bottom: 2px solid var(--pearl); transform: rotate(45deg); transition: transform .25s; }
.lineup[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.lu-title { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.lu-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }
.lineup[open] summary { border-bottom: 1px solid var(--line); }
.lineup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; }
.lt { all: unset; box-sizing: border-box; display: block; cursor: pointer; position: relative; border-radius: 8px; overflow: hidden; border-bottom: 3px solid var(--c); aspect-ratio: 4 / 3; background: var(--surface); }
.lt:focus-visible { outline: 2px solid var(--pearl); outline-offset: 2px; }
.lt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lt:hover img { transform: scale(1.06); }
.lt span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 3px; font-size: 10.5px; line-height: 1.3; text-align: center; background: linear-gradient(to top, rgba(8, 7, 12, .9), transparent); }

/* ── 質問 ── */
.q-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.q-back { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); min-height: 44px; padding: 0 18px 0 14px; cursor: pointer; font-size: 14.5px; font-weight: 500; letter-spacing: .04em; }
.q-back:hover { border-color: var(--pearl); }
.q-count { font-variant-numeric: tabular-nums; letter-spacing: .12em; color: var(--muted); font-size: 14px; }
.q-count b { color: var(--pearl); font-size: 20px; font-weight: 700; }
.bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 26px; }
.bar i { display: block; height: 100%; width: 0; background: var(--pearl); transition: width .35s ease; }
.q-scene { font-size: 13px; letter-spacing: .18em; color: var(--muted); }
.q-text { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.7; margin: 4px 0 14px; text-wrap: balance; }
.q-sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: .02em; line-height: 1.7; }
.q-step { min-height: 1.8em; color: var(--pearl); font-size: 14.5px; font-weight: 500; margin-bottom: 8px; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px;
  text-align: left; border-radius: 12px; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); cursor: pointer; font-size: 15.5px; line-height: 1.7;
  transition: border-color .2s, background-color .2s, transform .15s;
}
.opt:hover { border-color: var(--line-2); }
.opt:active { transform: scale(.99); }
.opt .mark { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: transparent; }
.opt .txt { flex: 1; min-width: 0; }
.opt .tag { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--pearl); color: var(--pearl-ink); letter-spacing: .04em; }
.opt[data-rank="1"] { border-color: var(--pearl); background: rgba(243, 235, 223, .1); }
.opt[data-rank="1"] .mark { background: var(--pearl); border-color: var(--pearl); color: var(--pearl-ink); }
.opt[data-rank="2"] { border: 1px dashed var(--pearl); background: rgba(243, 235, 223, .04); }
.opt[data-rank="2"] .mark { border-color: var(--pearl); color: var(--pearl); }
.opt[data-rank="2"] .tag { background: transparent; color: var(--pearl); border: 1px solid var(--pearl); }
.opt[disabled] { cursor: default; }
.q-actions { display: flex; gap: 10px; margin-top: 18px; }
.q-actions .btn { min-height: 48px; flex: 1; width: auto; }

/* ── 結果 ── */
.r-back { background: none; border: 0; color: var(--fg-2); min-height: 44px; padding: 0 8px 0 0; cursor: pointer; font-size: 15px; }
.r-lead { text-align: center; font-size: 14px; letter-spacing: .24em; color: var(--muted); margin-bottom: 10px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.tab { min-height: 48px; padding: 6px 10px; background: transparent; color: var(--fg-2); border: 0; cursor: pointer; font-weight: 700; font-size: 15.5px; letter-spacing: .06em; transition: background-color .25s, color .25s; position: relative; }
.tab + .tab { border-left: 1px solid var(--line-2); }
.tab[aria-selected="true"] { background: var(--g); color: var(--g-ink); }
.tab.glow { animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(var(--g-rgb), 0); } 50% { box-shadow: inset 0 0 18px 2px rgba(var(--g-rgb), .75); } }
.if-hint { text-align: center; font-size: 13.5px; color: var(--g); margin-top: 8px; letter-spacing: .08em; }

.pic { margin-top: 12px; }
.frame { position: relative; aspect-ratio: 4 / 3; max-width: 100%; container-type: inline-size; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid rgba(var(--g-rgb), .75); box-shadow: 0 0 0 1px rgba(var(--g-rgb), .14), 0 0 30px rgba(var(--g-rgb), .3); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.frame img.on { opacity: 1; }
.band { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 1px; padding: 2.4cqw 4cqw 2cqw; background: linear-gradient(to top, rgba(6, 5, 10, .94), rgba(6, 5, 10, .8)); border-top: 1px solid rgba(var(--g-rgb), .8); }
.band-alias { font-family: var(--serif); font-weight: 800; font-size: max(15px, 4.3cqw); letter-spacing: .08em; line-height: 1.2; color: #fff; }
.band-name { font-size: max(11px, 2.7cqw); letter-spacing: .14em; line-height: 1.2; color: rgb(var(--g-rgb)); filter: brightness(1.45); }
.pic figcaption { min-height: 3.5em; margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--fg-2); transition: opacity .2s; }

.r-title { margin-top: 10px; }
.r-name { font-family: var(--serif); font-weight: 800; font-size: clamp(25px, 7.4vw, 32px); line-height: 1.4; letter-spacing: .06em; text-wrap: balance; }
.r-name small { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.r-catch { margin-top: 4px; font-size: 15px; color: var(--g); filter: brightness(1.25); }

.speaker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 30px; }
.plate { padding: 1px 16px; background: var(--g); color: var(--g-ink); border-radius: 999px; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.9; }
.say-label { font-size: 12.5px; letter-spacing: .14em; color: var(--muted); }
.bubble { --bub: #1c1830; position: relative; margin-top: 14px; border: 1px solid rgba(var(--g-rgb), .6); border-radius: 16px; background: var(--bub); padding: 16px 18px 18px; box-shadow: 0 0 24px -10px rgba(var(--g-rgb), .5); }
.bubble::before { content: ""; position: absolute; left: 26px; top: -11px; border: 10px solid transparent; border-top: 0; border-bottom: 11px solid rgba(var(--g-rgb), .6); }
.bubble::after { content: ""; position: absolute; left: 27px; top: -9px; border: 9px solid transparent; border-top: 0; border-bottom: 10px solid var(--bub); }
.say { text-wrap: pretty; font-family: var(--serif); font-weight: 600; font-size: 18.5px; line-height: 1.95; }

.sec { margin-top: 46px; }
.sec h3, .share h3, .doc h2 { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--g); filter: brightness(1.2); margin-bottom: 12px; line-height: 1.5; }
.sec h3::after, .share h3::after, .doc h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--g-rgb), .6), transparent); }
.sec p { color: var(--fg-2); font-size: 15.5px; }
.sec p + p { margin-top: 18px; }

.scenes { display: grid; gap: 24px; }
.scene dt { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 0 12px; border-radius: 999px; background: rgba(var(--g-rgb), .18); color: var(--fg); border: 1px solid rgba(var(--g-rgb), .5); line-height: 1.8; }
.scene dd { margin-top: 8px; color: var(--fg-2); font-size: 15.5px; }
.cautions { display: grid; gap: 14px; list-style: none; }
.cautions li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 40px; color: var(--fg-2); font-size: 15px; line-height: 1.85; }
.cautions li::before { content: "!"; position: absolute; left: 12px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: rgba(var(--g-rgb), .25); border: 1px solid rgba(var(--g-rgb), .7); color: var(--fg); display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; }
.tips { display: grid; gap: 12px; }
.tip { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; background: var(--surface); border-radius: 10px; padding: 10px 14px; border: 1px solid var(--line); font-size: 15px; line-height: 1.8; color: var(--fg-2); }
.tip b { color: var(--fg); font-weight: 700; font-size: 14px; letter-spacing: .06em; padding-top: 1px; }

.near { display: grid; grid-template-columns: 112px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; align-items: start; }
.near-pic { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; border-bottom: 3px solid var(--c); background: #000; }
.near-pic img { width: 100%; height: 100%; object-fit: cover; }
.near-name { font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.near-name small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; letter-spacing: .1em; }
.near-text { font-size: 14px; line-height: 1.8; color: var(--fg-2); margin-top: 4px; }
.near .btn { grid-column: 1 / -1; min-height: 44px; font-size: 14.5px; }

.stat-main { font-size: 15.5px; color: var(--fg-2); }
.stat-main b { font-family: var(--serif); font-size: 30px; color: var(--fg); letter-spacing: .02em; margin: 0 2px; }
.stat-sub { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-top: 4px; }
.stat-more { margin-top: 14px; }
.stat-demo { display: inline-block; font-size: 12px; border: 1px dashed var(--line-2); color: var(--muted); border-radius: 999px; padding: 0 10px; margin-bottom: 6px; }
.rows { display: grid; gap: 4px; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 10px; font-size: 13.5px; line-height: 1.5; padding: 5px 0; color: var(--fg-2); }
.row .nm { grid-column: 1; grid-row: 1; min-width: 0; }
.row .pc { grid-column: 2; grid-row: 1; text-align: right; font-variant-numeric: tabular-nums; }
.row .tr { grid-column: 1 / -1; grid-row: 2; height: 7px; background: rgba(240, 235, 248, .08); border-radius: 4px; overflow: hidden; }
.row .tr i { display: block; height: 100%; background: var(--c); border-radius: 4px; min-width: 2px; }
.row.me { color: var(--fg); font-weight: 700; }
.row.me .nm::before { content: "▶ "; color: var(--c); font-size: 10px; }

.more { margin-top: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.more summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 8px 18px; font-weight: 700; letter-spacing: .1em; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--pearl); border-bottom: 2px solid var(--pearl); transform: rotate(45deg); transition: transform .25s; margin-right: 4px; margin-bottom: 4px; }
.more[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.more-body { padding: 4px 18px 20px; display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.more-body p { font-size: 15px; line-height: 1.95; color: var(--fg-2); }
.more-body p.common { font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 12px; line-height: 1.8; }

.share { margin-top: 52px; }
.share-world { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); cursor: pointer; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.chip[aria-pressed="true"] { background: var(--g); border-color: var(--g); color: var(--g-ink); }
.share-card { width: 100%; aspect-ratio: 1200 / 630; height: auto; border-radius: 8px; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); }
.share-tip { margin-top: 6px; }
.share-text-label { margin-top: 18px; font-size: 12.5px; letter-spacing: .14em; color: var(--muted); }
.share-text { margin-top: 4px; white-space: pre-line; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 15px; line-height: 1.85; color: var(--fg); text-align: center; }
.notice-share { margin: 14px 0 12px; border-left-color: rgba(var(--g-rgb), .8); }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-share { background: var(--surface-2); color: var(--fg); border-color: var(--line-2); font-size: 15px; letter-spacing: .04em; }
.btn-share:hover { border-color: var(--pearl); }
.btn-share.wide { grid-column: 1 / -1; }
.share-msg { min-height: 1.8em; margin-top: 8px; font-size: 13.5px; color: var(--pearl); text-align: center; }
.share-url { width: 100%; margin-top: 6px; background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 13px; }

.r-foot { margin-top: 40px; display: grid; gap: 10px; }
.foot { margin-top: 48px; text-align: center; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.foot p + p { margin-top: 6px; }
.foot-links { margin-top: 10px; }
.foot-links a { display: inline-block; padding: 12px 8px; color: var(--fg-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.foot-links a:hover { color: var(--pearl); text-decoration-color: var(--pearl); }
.foot-links span { color: var(--muted); }
.foot .foot-sub { margin-top: -10px; }
.self-card .self-note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ── 運営者情報・プライバシーポリシー(privacy.html) ── */
.doc-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-2); text-decoration: none; font-size: 15px; }
.doc-back:hover { color: var(--pearl); }
.doc-head { margin: 14px 0 22px; }
.doc-head h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 6.6vw, 30px); line-height: 1.5; letter-spacing: .05em; margin-top: 4px; text-wrap: balance; }
.doc-head h1 .ph { display: inline-block; }
.doc-date { margin-top: 6px; font-size: 13px; color: var(--muted); }
.doc-lead { color: var(--fg-2); font-size: 15.5px; }
.doc .sec { margin-top: 40px; }
.doc-dl { border-top: 1px solid var(--line); margin-bottom: 16px; }
.doc-dl > div { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.doc-dl dt { color: var(--muted); font-size: 14px; line-height: 1.8; }
.doc-dl dd { color: var(--fg); font-size: 15px; line-height: 1.8; }
.doc-list { margin: 12px 0 18px; padding-left: 1.4em; color: var(--fg-2); font-size: 15.5px; line-height: 1.85; }
.doc-list li + li { margin-top: 10px; }
.doc-list b { color: var(--fg); }
.doc .sec a, .doc-dl a { color: var(--pearl); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.doc .sec a:hover, .doc-dl a:hover { text-decoration-color: var(--pearl); }
.sec .doc-mail { margin-top: 10px; font-size: 18px; font-weight: 700; }
.doc-foot { margin-top: 44px; display: grid; }

/* 結果画面の「応援」: シェアの下に、静かに置く */
.support-lead { font-size: 14.5px; line-height: 1.9; }
.support-lead .ph { display: inline-block; }
.support-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.btn-support { grid-column: 1 / -1; background: var(--surface-2); color: var(--pearl); border-color: var(--pearl); }
.btn-support:hover { background: rgba(243, 235, 223, .12); }
.sec .support-note { margin-top: 12px; font-size: 13px; line-height: 1.85; color: var(--muted); text-align: center; }

@media (min-width: 560px) {
  body { padding-block: 32px 72px; }
  .share-btns { grid-template-columns: repeat(4, 1fr); }
  .btn-share.wide { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .tab.glow { box-shadow: inset 0 0 14px 1px rgba(var(--g-rgb), .7); }
}

/* 短い見せ文は、文節の切れ目で折り返す(対応ブラウザのみ) */
.say, .tagline, .q-text, .r-catch, .teaser-text, .pic figcaption, .if-hint, .stat-sub { word-break: auto-phrase; }

/* トップの共有 */
.top-share { margin-top: 22px; text-align: center; }
.top-share-label { font-size: 13px; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.top-share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.btn-mini { min-height: 44px; padding: 6px 16px; font-size: 14px; font-weight: 500; letter-spacing: .02em; background: transparent; color: var(--fg); border: 1px solid var(--line-2); flex: 1 1 auto; }
.btn-mini:hover { border-color: var(--pearl); }

/* ── 自認タイプ(任意の匿名集計) ── */
.self-card { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 22px 16px 20px; }
.self-card h3 { margin-top: 0; }
.self-card .self-lead { font-size: 14.5px; line-height: 1.9; color: var(--fg-2); margin-top: 10px; }
.self-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 16px; }
.schip { min-height: 46px; border-radius: 10px; border: 1px solid var(--c); border: 1px solid color-mix(in srgb, var(--c) 65%, transparent); background: transparent; color: var(--fg); font-weight: 700; font-size: 14px; letter-spacing: .06em; cursor: pointer; font-family: inherit; }
.schip:hover { border-color: var(--c); }
.schip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #0c0b12; }
.schip:disabled { cursor: default; opacity: .5; }
.schip[aria-pressed="true"]:disabled { opacity: 1; }
.self-card .self-note { font-size: 13px; line-height: 1.85; color: var(--muted); margin-bottom: 16px; }
.self-card .btn { width: 100%; }
.self-card .btn:disabled { opacity: .45; cursor: default; }

/* ── 結果画面の「16人の彼」一覧(その場で開く) ── */
.lineup-r { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lineup-r-h { font-size: 13.5px; color: var(--muted); padding: 14px 16px 0; line-height: 1.7; }
.lineup-r .lineup-grid { padding-top: 10px; }
.lt[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--pearl); border-radius: 8px; pointer-events: none; }
