:root {
  --bg: #eef2f3; --surface: #ffffff; --ink: #1d2a33; --muted: #5d6d78; --line: #d3dde1;
  --accent: #1f6f78; --accent-soft: #d8ecee; --love: #c4572f; --love-soft: #f6e0d6; --warn: #9a6a00;
  --gold: #8a6d1d; --gold-soft: #f4ecd2;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a1f; --surface: #1b262d; --ink: #e5eef1; --muted: #9fb1bb; --line: #2f3e47;
    --accent: #5fb6bf; --accent-soft: #1e3a3f; --love: #e8875f; --love-soft: #3d2a22; --warn: #e0b04a;
    --gold: #e0c06a; --gold-soft: #3a3220; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.7; }
header { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { max-width: 680px; margin: 0 auto; padding: 10px 16px; display: grid; gap: 6px; }
.brand { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.brand b { font-family: var(--font-display); font-size: 17px; }
.brand span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--accent); transition: width .25s; }
main { max-width: 680px; margin: 0 auto; padding: 20px 16px 120px; display: grid; gap: 16px; }
main.wide { max-width: 1000px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.4; }
h1 { font-size: 24px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
.lead { color: var(--muted); margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.card.miss { border-color: var(--warn); }
.qno { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.scene { font-weight: 700; }
.stmt { margin: 0; }
.stmt small { display: block; font-size: 12px; color: var(--muted); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button { min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 12px; line-height: 1.3; padding: 6px 2px; cursor: pointer; }
.scale button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.choices { display: grid; gap: 8px; }
.choices button { text-align: left; min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font: inherit; padding: 8px 12px; cursor: pointer; }
.choices button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.parts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.parts li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.parts li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
label { font-weight: 700; }
input[type="text"], input[type="number"] { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; padding: 6px 14px; cursor: pointer; }
.tag[data-s="1"] { background: var(--accent-soft); border-color: var(--accent); }
.tag[data-s="2"] { background: var(--love-soft); border-color: var(--love); font-weight: 700; }
.tag[data-s="1"]::before { content: "好き "; font-size: 11px; color: var(--accent); }
.tag[data-s="2"]::before { content: "大好き "; font-size: 11px; color: var(--love); }
.legend { font-size: 13px; color: var(--muted); }
nav.foot { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); }
nav.foot .in { max-width: 680px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.btn { font: inherit; font-weight: 700; border-radius: 10px; padding: 10px 18px; cursor: pointer; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; display: inline-block; text-align: center; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.line { background: #06c755; border-color: #06c755; font-size: 17px; padding: 12px 20px; }
.btn:disabled { opacity: .4; cursor: default; }
.note { font-size: 13px; color: var(--muted); }
.warn { color: var(--warn); font-size: 14px; }
.miss-list { display: flex; flex-wrap: wrap; gap: 6px; }
.miss-list button { font: inherit; font-size: 13px; border: 1px solid var(--warn); color: var(--warn); background: transparent; border-radius: 8px; padding: 2px 8px; cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.saved { font-size: 12px; color: var(--muted); min-height: 1em; }
.saved.err { color: var(--warn); }
footer.site { max-width: 680px; margin: 0 auto; padding: 0 16px 100px; font-size: 13px; color: var(--muted); }
footer.site a { color: var(--muted); }

/* 結果 */
.trial { border: 1.5px dashed var(--warn); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.sec-no { font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.oneliner { font-family: var(--font-display); font-size: 22px; line-height: 1.5; margin: 0; }
.kws { display: flex; flex-wrap: wrap; gap: 8px; }
.kw { background: var(--accent); color: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 15px; }
.kw.sub { background: var(--accent-soft); color: var(--ink); }
.strengths { display: flex; flex-wrap: wrap; gap: 8px; }
.st { border: 1.5px solid var(--gold); color: var(--gold); background: var(--gold-soft); border-radius: 6px; padding: 3px 10px; font-size: 14px; font-weight: 700; }
.st::before { content: "✦ "; }
.minihead { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0; }
.radar { width: 100%; max-width: 420px; justify-self: center; }
.radar text { font-size: 11px; fill: var(--ink); font-family: var(--font-body); }
.bp { display: grid; gap: 4px; }
.bp .ends { display: flex; justify-content: space-between; font-size: 13px; }
.bp .ends b { font-weight: 700; }
.bp .rail { position: relative; height: 10px; background: var(--line); border-radius: 5px; }
.bp .rail::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.bp .dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.bp .cap { font-size: 12px; color: var(--muted); }
.mbar { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; align-items: center; }
.mbar .lab { font-size: 14px; }
.mbar .bg { height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.mbar .fg { height: 100%; background: var(--muted); border-radius: 7px; opacity: .55; }
.mbar.s1 .fg { background: var(--accent); opacity: .8; }
.mbar.s2 .fg { background: var(--love); opacity: 1; }
.mbar.s1 .lab, .mbar.s2 .lab { font-weight: 700; }
.mbar.s2 .lab::after { content: " ★"; color: var(--love); }
.vals { display: grid; gap: 10px; }
.val { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.val .k { font-weight: 700; color: var(--accent); }
.timeline { position: relative; height: 34px; margin: 6px 8px 0; }
.timeline .ln { position: absolute; left: 0; right: 0; top: 8px; height: 4px; background: var(--line); border-radius: 2px; }
.timeline .pt { position: absolute; top: 2px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--accent); }
.timeline .lb { position: absolute; top: 18px; font-size: 12px; color: var(--muted); transform: translateX(-50%); }
ul.plain { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.hob { display: flex; flex-wrap: wrap; gap: 6px; }
.hob span { border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.hob .l2 { background: var(--love-soft); border: 1.5px solid var(--love); font-weight: 700; }
.hob .l1 { background: var(--accent-soft); border: 1.5px solid var(--accent); }

/* 運営 */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
table.list th { color: var(--muted); font-weight: 700; font-size: 13px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.pill { display: inline-block; border-radius: 999px; padding: 0 8px; font-size: 12px; border: 1px solid var(--line); }
.pill.ok { border-color: var(--accent); color: var(--accent); }
.pill.no { border-color: var(--warn); color: var(--warn); }
dialog { border: 1px solid var(--line); border-radius: 12px; max-width: 720px; width: calc(100% - 24px); background: var(--bg); color: var(--ink); padding: 16px; }
@media (prefers-reduced-motion: reduce) { .fill { transition: none; } }
