/* ペン画イラストと合わせる「ノート＋蛍光ペン」風のスタイル
   太い黒線・蛍光イエロー・はっきりした文字。影はペンで描いたようなずらし影だけ */
:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #1a1a1a;
  --soft: #e9e3d6;
  --soft-2: #f3eee3;
  --yellow: #ffe14d;
  --mark: #ffe14d;
  --green: #0f8a5c;
  --red: #d2442c;
  --blue: #2a62d4;
  --radius: 16px;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161511;
    --surface: #201e19;
    --ink: #f4f0e6;
    --ink-2: #c9c3b6;
    --ink-3: #8f897d;
    --line: #f4f0e6;
    --soft: #38342c;
    --soft-2: #2a2721;
    --yellow: #ffe14d;
    --mark: rgba(255, 225, 77, 0.35);
    --green: #5fd29e;
    --red: #ff8a73;
    --blue: #8fb1ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}
button, input { font: inherit; color: inherit; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 900; letter-spacing: 0.01em; line-height: 1.4; }
.mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); padding: 0 2px; }

/* ── ヘッダー / フッター ── */
.topbar { max-width: 1040px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 900; font-size: 19px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.brand::before { content: ""; width: 26px; height: 17px; border: 2px solid var(--line); border-radius: 4px; background: linear-gradient(var(--yellow) 0 0) 3px 9px / 14px 3px no-repeat; }
.logo { display: none; }
.topbar-meta { font-size: 12px; color: var(--ink-3); text-decoration: none; }
main { max-width: 1040px; margin: 0 auto; padding: 0 20px 64px; }
.footer { max-width: 1040px; margin: 0 auto; padding: 24px 20px 48px; font-size: 12px; color: var(--ink-3); border-top: 2px solid var(--line); }
.footer nav { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.footer nav a { color: var(--ink-2); }

/* ── ボタン ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--line); border-radius: 999px; padding: 13px 26px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 16px;
  cursor: pointer; text-decoration: none; box-shadow: 3px 3px 0 var(--line);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn.lg { padding: 16px 34px; font-size: 18px; }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.small { padding: 7px 16px; font-size: 13.5px; box-shadow: 2px 2px 0 var(--line); }
.btn[disabled] { opacity: 0.35; cursor: default; transform: none; }
.linkbtn { background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

/* ── 券面（ベタ塗り＋黒線） ── */
.cc { position: relative; aspect-ratio: 1.586; border-radius: 10px; color: #fff; overflow: hidden; border: 2px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; font-size: 11px; line-height: 1.35; }
.cc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--stripe, transparent); }
.cc .cc-name { font-weight: 700; font-size: 12px; }
.cc .cc-brand { opacity: 0.85; font-size: 10px; }
.swatch { display: inline-block; width: 46px; height: 30px; border-radius: 6px; flex: none; position: relative; overflow: hidden; vertical-align: middle; border: 2px solid var(--line); }
.swatch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--stripe, transparent); }

/* ── 共通パーツ ── */
.sticker { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--line); }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; border: 2px solid var(--line); border-radius: 999px; padding: 1px 12px; background: var(--surface); }
.pill.y { background: var(--yellow); color: #1a1a1a; }
.kicker { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; }
.eyebrow { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.disclosure { font-size: 12px; color: var(--ink-3); margin: 10px 0 18px; line-height: 1.6; }
.disclosure b { font-size: 10px; border: 1.5px solid var(--ink-3); border-radius: 4px; padding: 0 4px; margin-right: 6px; }
.section { margin-top: 64px; }
.section > h2, .panel > h2 { font-size: 22px; margin: 0 0 16px; }
.panel { margin-top: 40px; }
.assume { font-size: 13px; color: var(--ink-2); }
.assume li { margin: 3px 0; }
.caveat, .note-box { font-size: 12.5px; color: var(--ink-2); margin: 12px 0 0; }
.caveat b { display: inline-block; font-size: 11px; background: var(--soft-2); border: 1.5px solid var(--soft); border-radius: 4px; padding: 0 5px; margin-right: 6px; color: var(--ink-2); }
.src { font-size: 11px; color: var(--ink-3); margin-top: 10px; word-break: break-all; }
.src a { color: var(--ink-3); }
.hl { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hl li { font-size: 12.5px; background: var(--soft-2); border-radius: 999px; padding: 2px 10px; }
.illus { display: block; max-width: 100%; height: auto; }

/* ── ホーム ── */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 28px 0 8px; }
.hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 18px; line-height: 1.3; }
.hero .lead { font-size: 17px; color: var(--ink-2); margin: 0 0 28px; max-width: 30em; }
.hero .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
.hero-visual { position: relative; }
.hero-visual .illus { margin: 0 auto 12px; max-height: 220px; }
.preview { padding: 22px 22px 18px; transform: rotate(1.2deg); }
.preview .eyebrow { display: flex; justify-content: space-between; }
.preview .pv-cards { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 4px; font-weight: 700; font-size: 15px; }
.preview .pv-cards span { display: inline-flex; gap: 6px; align-items: center; }
.preview .pv-cards .swatch { width: 28px; height: 18px; border-radius: 4px; }
.preview .pv-num { font-size: 40px; font-weight: 900; color: var(--green); line-height: 1.15; }
.preview .pv-num small { font-size: 14px; color: var(--ink-3); font-weight: 700; margin-left: 4px; }
.preview ul { list-style: none; padding: 0; margin: 12px 0 0; border-top: 2px dashed var(--soft); }
.preview li { font-size: 13.5px; padding: 8px 0 0; display: grid; grid-template-columns: 20px 1fr; gap: 4px; }
.preview li::before { content: "✓"; font-weight: 900; color: var(--green); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 20px; }
.step .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--yellow); color: #1a1a1a; font-weight: 900; }
.step h3 { font-size: 18px; margin: 12px 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
.step .illus { margin: 6px 0 4px; max-height: 120px; }
.linklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.linklist a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.linklist a small { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.linklist a:hover { background: var(--yellow); color: #1a1a1a; }
.linklist a:hover small { color: #444; }

/* ── 質問（縦スクロール） ── */
.wizard { max-width: 700px; margin: 0 auto; }
.progress-sticky { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0 10px; max-width: 700px; margin: 0 auto; }
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 700; }
.bar { height: 10px; border: 2px solid var(--line); border-radius: 999px; margin-top: 8px; overflow: hidden; background: var(--surface); }
.bar > i { display: block; height: 100%; background: var(--yellow); border-right: 2px solid var(--line); transition: width 0.3s ease; }
.q-sec { font-size: 20px; margin: 48px 0 4px; display: flex; gap: 10px; align-items: center; }
.q-sec span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--yellow); color: #1a1a1a; font-size: 14px; }
.q { padding: 26px 0; border-bottom: 2px dashed var(--soft); transition: opacity 0.25s; scroll-margin-top: 90px; }
.q:not(.done):not(.current) { opacity: 0.38; }
.q:not(.done):not(.current):hover, .q:focus-within { opacity: 1; }
.qnum { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.q-done { font-size: 11px; margin-left: 8px; background: var(--soft-2); border-radius: 999px; padding: 1px 8px; }
.q h2 { font-size: 21px; margin: 2px 0 4px; }
.qhelp { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.options.cols { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.opt { text-align: left; cursor: pointer; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 15px; font-weight: 500; transition: transform 0.08s, box-shadow 0.08s, background 0.12s; }
.opt:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.opt.on { background: var(--yellow); color: #1a1a1a; font-weight: 700; box-shadow: 3px 3px 0 var(--line); }
.opt .key, .opt .tick { display: none; }
.yen-input { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 6px 14px; }
.yen-input:focus-within { box-shadow: 3px 3px 0 var(--line); }
.yen-input span { color: var(--ink-3); font-size: 14px; white-space: nowrap; font-weight: 700; }
.yen-input input { border: 0; outline: 0; background: transparent; font-weight: 900; font-size: 30px; width: 100%; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-btn { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 13px; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.chip-btn:hover { background: var(--soft-2); }
.chip-btn.on { background: var(--yellow); color: #1a1a1a; }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.yen-hint { font-size: 13px; color: var(--ink-3); }
.form-end { padding: 44px 0 20px; text-align: center; }
.form-end .assume { margin-top: 12px; }

/* ── 結果 ── */
.loading { text-align: center; padding: 90px 0; color: var(--ink-2); font-weight: 700; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--soft); border-top-color: var(--ink); animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
body.wide main, body.wide .topbar, body.wide .footer { max-width: 1160px; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; align-items: start; }

.you { padding: 18px 20px; margin-bottom: 22px; }
.you h2 { font-size: 15px; margin: 0 0 10px; }
.you .bars { display: grid; gap: 8px; }
.you .b { display: grid; grid-template-columns: 9em 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.you .b i { display: block; height: 12px; border: 2px solid var(--line); border-radius: 999px; background: linear-gradient(90deg, var(--yellow) var(--w), transparent var(--w)); }
.you .b b { white-space: nowrap; }
.you .traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.answer { padding: 24px; }
.answer h1 { font-size: 26px; margin: 0 0 14px; }
.picks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 14px; padding: 0; list-style: none; }
.picks li { display: flex; align-items: center; gap: 10px; }
.picks .name { font-weight: 900; font-size: 16px; line-height: 1.35; }
.picks .role { font-size: 12px; color: var(--ink-3); }
.big { font-size: clamp(42px, 7vw, 60px); font-weight: 900; line-height: 1.1; color: var(--green); }
.big small { font-size: 15px; color: var(--ink-3); font-weight: 700; margin-left: 6px; }
.diff { display: inline-block; font-size: 13px; font-weight: 700; margin-left: 12px; padding: 1px 10px; border-radius: 999px; border: 2px solid currentColor; vertical-align: middle; }
.diff.up { color: var(--green); }
.diff.down { color: var(--red); }
.why-combo { margin: 10px 0 0; font-size: 14.5px; }
.campaign-sum { margin: 14px 0 0; font-size: 13.5px; background: var(--soft-2); border-radius: 10px; padding: 8px 12px; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.tabs { display: flex; gap: 8px; margin: 28px 0 6px; flex-wrap: wrap; align-items: center; }
.tabs .lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin-right: 4px; }
.tab { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.tab.on { background: var(--ink); color: var(--bg); }
.tab .t-num { margin-left: 6px; font-weight: 500; opacity: 0.75; }
.combo-sum { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }

.cards-grid { display: grid; gap: 22px; margin-top: 18px; }
.card-detail { padding: 22px 22px 18px; }
.cd-head { display: flex; gap: 14px; align-items: center; }
.cd-head .swatch { width: 62px; height: 40px; border-radius: 8px; }
.role-tag { display: inline-block; font-size: 12px; font-weight: 700; background: var(--yellow); color: #1a1a1a; border: 2px solid var(--line); border-radius: 999px; padding: 0 10px; }
.card-detail h3 { margin: 4px 0 0; font-size: 21px; }
.card-detail h3 a { text-decoration: none; }
.meta { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.reasons { list-style: none; counter-reset: r; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.reasons li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.reasons li::before { content: counter(r); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); font-weight: 900; font-size: 13px; background: var(--surface); margin-top: 2px; }
.reasons b { display: block; font-size: 16px; line-height: 1.5; }
.reasons span { display: block; font-size: 14px; color: var(--ink-2); }
.pays { font-size: 13px; color: var(--ink-2); margin: 16px 0 0; padding-top: 12px; border-top: 2px dashed var(--soft); }
.pays b { color: var(--ink); }
.cta-row { margin: 16px 0 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn.cta { background: var(--yellow); color: #1a1a1a; }
.pr-badge { font-size: 10px; font-weight: 700; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.campaign { font-size: 13px; background: var(--soft-2); border-radius: 10px; padding: 9px 12px; margin-top: 14px; line-height: 1.6; }
.campaign b { margin-right: 6px; }
.campaign small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
details.more { margin-top: 14px; }
details.more > summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 700; list-style: none; }
details.more > summary::before { content: "＋ "; }
details.more[open] > summary::before { content: "− "; }
details.more > summary::-webkit-details-marker { display: none; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; }
.kv div { background: var(--soft-2); border-radius: 10px; padding: 8px 10px; }
.kv span { display: block; font-size: 11px; color: var(--ink-3); }
.kv b { font-size: 16px; }
.kv b.pos { color: var(--green); }
.kv b.neg { color: var(--red); }
.kv small { font-size: 11px; font-weight: 500; }
table.alloc { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
table.alloc th { text-align: left; font-size: 11px; color: var(--ink-3); font-weight: 500; padding: 4px 6px 4px 0; border-bottom: 2px solid var(--line); }
table.alloc td { padding: 7px 6px 7px 0; border-bottom: 1px solid var(--soft); vertical-align: top; }
table.alloc .n, table.alloc th.n { text-align: right; white-space: nowrap; }
table.alloc td .note { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.5; }

.perks-list { display: flex; flex-wrap: wrap; gap: 8px; }
.perk { font-size: 13.5px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); }
.perk b { margin-left: 6px; }
table.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rank th { text-align: left; font-size: 11.5px; color: var(--ink-3); font-weight: 500; padding: 4px 6px; border-bottom: 2px solid var(--line); }
table.rank td { padding: 9px 6px; border-bottom: 1px solid var(--soft); }
table.rank td.n { text-align: right; white-space: nowrap; }
table.rank td.idx { color: var(--ink-3); width: 28px; font-weight: 900; }
.rank-name small { display: block; color: var(--ink-3); font-size: 11.5px; }
.rank-name a { text-decoration: none; font-weight: 700; }
.rank-name a:hover { text-decoration: underline; }
.qlist { columns: 2; column-gap: 28px; font-size: 13px; }
.qlist button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 0; cursor: pointer; border-bottom: 1px solid var(--soft); break-inside: avoid; }
.qlist button span { display: block; color: var(--ink-3); font-size: 12px; }

/* ── 条件を変えて試す ── */
.tuner { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; padding: 4px 16px 14px; }
.tuner summary { font-weight: 900; font-size: 16px; cursor: pointer; padding: 10px 0; list-style: none; }
.tuner summary::-webkit-details-marker { display: none; }
.tuner summary::after { content: "＋"; float: right; color: var(--ink-3); }
.tuner details[open] summary::after { content: "−"; }
.tune-row { padding: 9px 0 7px; border-top: 1px dashed var(--soft); }
.tune-label { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.tune-label output { color: var(--ink); font-weight: 900; white-space: nowrap; }
.tuner .assume { font-size: 12px; margin: 12px 0 4px; }
input[type="range"] { width: 100%; margin: 8px 0 2px; appearance: none; -webkit-appearance: none; background: transparent; height: 20px; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 999px; }
input[type="range"]::-moz-range-track { height: 6px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 999px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--line); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--line); }
input[type="range"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── 静的ページ（カード詳細・ランキング・規約） ── */
.page { max-width: 780px; margin: 0 auto; padding-top: 8px; }
.page h1 { font-size: 28px; margin: 10px 0 6px; }
.page h2 { font-size: 20px; margin: 36px 0 10px; }
.page p, .page li { color: var(--ink-2); }
.page .panel { margin-top: 18px; padding: 20px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--line); }
.page .panel h2 { margin: 4px 0 6px; font-size: 20px; }
.crumbs { font-size: 12px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th { text-align: left; width: 32%; color: var(--ink-3); font-weight: 500; padding: 9px 8px 9px 0; border-bottom: 1px solid var(--soft); vertical-align: top; }
.spec td { padding: 9px 0; border-bottom: 1px solid var(--soft); }
.spec small { color: var(--ink-3); }
.card-hero { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; margin: 20px 0; }
.card-hero .cc { width: 210px; box-shadow: 4px 4px 0 var(--line); }
.cta-box { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--line); padding: 22px; margin: 36px 0 20px; text-align: center; }
.cta-box p { margin: 0 0 14px; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.list-grid a { display: block; text-decoration: none; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 700; }
.list-grid a small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.list-grid a:hover { background: var(--yellow); color: #1a1a1a; }

@media (max-width: 959px) {
  .result-layout { grid-template-columns: 1fr; gap: 0; }
  .tuner { position: static; max-height: none; order: -1; margin-bottom: 18px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  main, .topbar, .footer { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
  .preview { transform: none; }
  .steps3 { grid-template-columns: 1fr; }
  .q h2 { font-size: 19px; }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .you .b { grid-template-columns: 7em 1fr auto; }
  .card-hero { grid-template-columns: 1fr; }
  .card-hero .cc { width: 190px; }
  .qlist { columns: 1; }
  .answer, .card-detail { padding: 18px 16px; }
}

/* ── イラスト（pen.dev で描いたペン画） ── */
.hero-visual .illus { width: 100%; max-height: none; margin: 0 0 -28px; position: relative; z-index: 0; }
.hero-visual .preview { position: relative; z-index: 1; }
.step .illus { width: 100%; height: 130px; object-fit: contain; object-position: left center; margin: 0 0 10px; }
.answer .illus { float: right; width: 150px; margin: -6px -4px 6px 16px; }
@media (prefers-color-scheme: dark) {
  /* 黒い線を白く反転。黄色は色相を戻して黄色のまま */
  .illus { filter: invert(1) hue-rotate(180deg) saturate(1.5) brightness(1.1); }
}
@media (max-width: 760px) {
  .answer .illus { width: 130px; margin: -4px -4px 4px 10px; }
  .hero-visual .illus { margin-bottom: -16px; }
}
