/* 車の売り先くらべ（site4）の見た目。決まりは research/site4-design.md（2026-11-13）。制作キットの見た目は使わない */
:root {
  --ink: #16202e;
  --sub: #566173;
  --line: #dfe3ea;
  --bg-soft: #f4f6f9;
  --main: #123c69;
  --main-soft: #e8eff7;
  --cta: #c94a08;
  --cta-dark: #9e3a06;
  --good: #1d7a46;
  --warn: #9a6700;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: var(--main); }
img, svg { max-width: 100%; height: auto; }

/* ヘッダー・フッター */
.hd { border-bottom: 1px solid var(--line); }
.hd-in { max-width: 760px; margin: 0 auto; padding: 0 16px; height: 48px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 17px; color: var(--main); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--cta); }
.hd-link { font-size: 13px; color: var(--sub); }
.ft { margin-top: 48px; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.ft-in { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }
.ft a { color: var(--sub); margin-right: 16px; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* 1画面目 */
.pr-bar { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 8px; font-size: 13px; line-height: 1.5; color: var(--sub); }
.pr-tag { flex: none; border: 1.5px solid var(--sub); color: var(--ink); font-weight: 700; font-size: 14px; padding: 0 6px; border-radius: 3px; line-height: 1.6; }
h1 { font-size: 22px; line-height: 1.45; margin: 4px 0 6px; }
.meta { font-size: 13px; color: var(--sub); margin: 0 0 14px; line-height: 1.5; }
.meta a { color: var(--sub); }

.answers { border: 2px solid var(--main); border-radius: 12px; overflow: hidden; }
.answers-hd { background: var(--main); color: #fff; font-weight: 700; font-size: 15px; padding: 7px 14px; }
.ans { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); }
.ans:first-of-type { border-top: 0; }
.ans-q { font-size: 13px; color: var(--sub); line-height: 1.4; }
.ans-a { font-weight: 700; font-size: 17px; line-height: 1.4; }
.ans-why { font-size: 13px; line-height: 1.45; grid-column: 1 / 2; }
.ans .btn-s { grid-row: 1 / 4; grid-column: 2; }
.scroll-hint { display: block; text-align: center; font-size: 14px; margin: 10px 0 0; }

/* ボタン（橙はボタンだけに使う） */
.btn, .btn-s { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--cta); color: #fff; font-weight: 700; text-decoration: none; border-radius: var(--radius); box-shadow: 0 2px 0 var(--cta-dark); }
.btn { min-height: 54px; padding: 8px 16px; font-size: 16px; line-height: 1.35; margin: 14px 0 4px; }
.btn::after, .btn-s::after { content: "›"; font-size: 1.3em; margin-left: 8px; line-height: 1; }
.btn-s { min-height: 44px; padding: 6px 10px; font-size: 13px; line-height: 1.3; width: 92px; }
.btn:hover, .btn-s:hover { background: var(--cta-dark); }
.btn-note { font-size: 12px; color: var(--sub); text-align: center; margin: 0 0 8px; line-height: 1.5; }

/* 見出しと文 */
h2 { font-size: 20px; line-height: 1.45; margin: 40px 0 12px; padding-left: 12px; border-left: 5px solid var(--main); }
h3 { font-size: 17px; line-height: 1.45; margin: 24px 0 8px; }
p { margin: 0 0 12px; }
.lead { font-weight: 700; }
.small { font-size: 13px; color: var(--sub); line-height: 1.6; }
.src { font-size: 12px; color: var(--sub); line-height: 1.6; margin: 6px 0 0; }
.src a { color: var(--sub); }

/* 図 */
.fig { margin: 12px 0 8px; background: var(--bg-soft); border-radius: var(--radius); padding: 10px; }
.fig svg { display: block; max-width: 440px; margin: 0 auto; }
.rank.other { width: auto; padding: 0 8px; border-radius: 999px; background: var(--sub); font-size: 12px; }
.fig figcaption { font-size: 12px; color: var(--sub); line-height: 1.5; margin-top: 4px; }

/* 比較のカード（スマホは縦。横スクロールの表にしない） */
.cards { display: grid; gap: 14px; margin-top: 16px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.card-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--main); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.card-name { font-weight: 700; font-size: 18px; }
.badge { font-size: 12px; font-weight: 700; color: var(--main); background: var(--main-soft); border-radius: 999px; padding: 1px 10px; }
.big { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; padding: 8px 12px; background: var(--bg-soft); border-radius: var(--radius); }
.big-l { font-size: 13px; color: var(--sub); }
.big-v { font-size: 26px; font-weight: 800; color: var(--main); line-height: 1.2; }
.big-v small { font-size: 14px; font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.facts li { padding: 5px 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; }
.facts li b { font-weight: 700; color: var(--sub); font-size: 13px; }
.fit { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.fit li { padding-left: 1.5em; text-indent: -1.5em; margin: 2px 0; }
.fit .ok::before { content: "✓ "; color: var(--good); font-weight: 700; }
.fit .ng::before { content: "⚠ "; color: var(--warn); font-weight: 700; }
.fit .ok b { color: var(--good); }
.fit .ng b { color: var(--warn); }

.big-v-s { font-size: 20px; }
.next { font-size: 13px; line-height: 1.55; margin: 12px 0 0; padding: 8px 10px; background: var(--main-soft); border-radius: var(--radius); }
.next + .btn { margin-top: 8px; }
details.more { border: 0; padding: 0; margin: 10px 0 0; }
details.more summary { font-size: 14px; color: var(--main); font-weight: 700; padding: 6px 24px 6px 0; border-top: 1px solid var(--line); }
details.more .facts { margin-top: 0; }

/* 4社を一目で比べる表（390px で横スクロールなし。行の名前は全幅の行に置く） */
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.45; margin: 4px 0 6px; }
.cmp thead th { background: var(--main); color: #fff; font-size: 13px; padding: 8px 2px; vertical-align: middle; }
.cmp thead th a { color: #fff; text-decoration: none; }
.cmp thead th:first-child { border-top-left-radius: var(--radius); }
.cmp thead th:last-child { border-top-right-radius: var(--radius); }
.cmp .rh th { background: var(--bg-soft); color: var(--sub); font-size: 12px; font-weight: 700; text-align: left; padding: 4px 8px; }
.cmp td { text-align: center; vertical-align: middle; padding: 7px 3px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cmp td:first-child { border-left: 0; }
.cmp td b { color: var(--main); font-size: 14px; }
.cmp small { display: inline-block; font-size: 11px; color: var(--sub); }

/* 箇条の手順 */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 8px 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 10px 38px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--main-soft); color: var(--main); font-weight: 700; display: grid; place-items: center; font-size: 14px; }

/* 注意の囲み */
.note-box { border-left: 4px solid var(--warn); background: #fff8e6; padding: 10px 12px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; line-height: 1.65; margin: 12px 0; }

/* よくある質問 */
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; position: absolute; right: 0; color: var(--main); }
details[open] summary::after { content: "－"; }
details p { margin: 8px 0 0; font-size: 15px; }

/* 比べ方（基準）の囲み */
.method { background: var(--bg-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; line-height: 1.65; }
.method ol { margin: 6px 0 0; padding-left: 1.4em; }

/* PC（同じ中身を横に広げる） */
@media (min-width: 768px) {
  h1 { font-size: 30px; margin-top: 8px; }
  h2 { font-size: 23px; }
  .answers-hd { font-size: 16px; padding: 8px 18px; }
  .ans { padding: 12px 18px; grid-template-columns: 1fr 200px; }
  .ans-a { font-size: 19px; }
  .ans .btn-s { width: 200px; font-size: 14px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { display: flex; flex-direction: column; }
  .card .next { margin-top: auto; }
  .card .btn { align-self: stretch; max-width: none; margin-left: 0; margin-right: 0; }
  .card details.more { margin-bottom: 12px; }
  .btn { max-width: 440px; margin-left: auto; margin-right: auto; }
}
