/* Car Bed Note — 夜の車中泊（紺・森の緑・ランタンの橙・生成り） */
:root {
  --bg: #f4efe4;
  --paper: #fbf8f1;
  --card: #ffffff;
  --ink: #17232a;
  --muted: #4f5b60;
  --line: #e2dccd;
  --night: #0f1d26;
  --night-2: #18303a;
  --forest: #2f5d50;
  --forest-d: #23473d;
  --amber: #f2a541;
  --amber-d: #c97a12;
  --amber-bg: #fdf0db;
  --ok: #1d7a4a; --ok-bg: #e1f3e8;
  --ng: #b3332a; --ng-bg: #fbe6e3;
  --buy: #bf0000; --buy-fill: #a81717; --faq: #3b6fa0;
  --amber-t: #8a520b; --seg-on: #2f5d50;
  --header-h: 60px;
  --r: 16px;
  --shadow: 0 1px 2px rgba(15, 29, 38, .06), 0 8px 24px -12px rgba(15, 29, 38, .18);
  --shadow-lg: 0 2px 4px rgba(15, 29, 38, .06), 0 24px 48px -20px rgba(15, 29, 38, .35);
  --font-h: "Zen Kaku Gothic New", system-ui, "Hiragino Sans", "Yu Gothic UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c161d; --paper: #111e26; --card: #15242d; --ink: #e8ecea; --muted: #9aa8ab; --line: #24363f;
    --forest: #7cc1a9; --forest-d: #9bd3bf; --amber-bg: #2b2213; --ok: #7fd3a0; --ok-bg: #14301f; --ng: #f2a097; --ng-bg: #3a1d1a; --buy: #ff5c5c; --buy-fill: #c62f2f; --faq: #91bce7; --amber-t: #f2b75d; --seg-on: #2f5d50;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #0c161d; --paper: #111e26; --card: #15242d; --ink: #e8ecea; --muted: #9aa8ab; --line: #24363f;
  --forest: #7cc1a9; --forest-d: #9bd3bf; --amber-bg: #2b2213; --ok: #7fd3a0; --ok-bg: #14301f; --ng: #f2a097; --ng-bg: #3a1d1a; --buy: #ff5c5c; --buy-fill: #c62f2f; --faq: #91bce7; --amber-t: #f2b75d; --seg-on: #2f5d50;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.8 system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--forest-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.35; margin: 0; letter-spacing: 0; }
#mats, #cars, #nodata, #sources { scroll-margin-top: calc(var(--header-h) + 16px); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { position: fixed; left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 100; }
.small { font-size: 13px; color: var(--muted); }
.ext::after { content: "↗"; font-size: .85em; margin-left: .2em; }
.num { font-family: var(--font-h); font-variant-numeric: tabular-nums; }
.br-sp { display: none; }
@media (max-width: 560px) { .br-sp { display: inline; } }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

/* ヘッダー（夜の帯） */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15, 29, 38, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-h); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 6px; font-size: 14px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .82); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
@media (max-width: 560px) { .site-nav a:first-child { display: none; } }

/* トップの見出し（全面の挿絵） */
.hero { position: relative; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 21, 29, .92) 0%, rgba(10, 21, 29, .7) 38%, rgba(10, 21, 29, .05) 70%), linear-gradient(0deg, rgba(10, 21, 29, .55), transparent 40%); }
.hero .wrap { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; color: var(--amber); font-weight: 700; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; margin-top: 12px; max-width: 13em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lead { max-width: 34em; margin: 18px 0 0; color: rgba(255, 255, 255, .86); font-size: 16.5px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-stats li { padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .8); }
.hero-stats b { font-family: var(--font-h); font-size: 20px; color: #fff; margin-right: 4px; }
.search { margin-top: 26px; max-width: 520px; }
.search label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: rgba(255, 255, 255, .8); }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 15px 16px 15px 48px; border: 0; border-radius: 14px; background: #fff; color: #17232a; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.search-state { min-height: 1.5em; margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, .75); }

/* セクション */
.sec-title { font-size: 24px; font-weight: 700; margin: 48px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sec-title small { font-family: system-ui, sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); }
.sec-lead { margin: 0 0 18px; color: var(--muted); max-width: 34em; font-size: 15px; line-height: 1.8; }

/* 車種一覧 */
.kind { margin-top: 28px; }
.kind-h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.kind-h .car-ico { width: 44px; height: 22px; background: var(--forest); }
.kind-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.car-grid, .nodata-list, .how-list, .kit-list, .mat-list { list-style: none; margin: 0; padding: 0; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 16px; }
.car-card { position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.car-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--forest) 40%, var(--line)); }
.car-card .car-ico { position: absolute; right: 16px; top: 16px; width: 54px; height: 27px; background: color-mix(in srgb, var(--forest) 22%, transparent); }
.cc-maker { font-size: 13px; color: var(--muted); }
.cc-name { font-family: var(--font-h); font-weight: 700; font-size: 19px; line-height: 1.3; padding-right: 56px; }
.cc-lab { margin-top: 10px; font-size: 13px; color: var(--muted); }
.cc-len { margin-top: 0; display: flex; align-items: baseline; gap: 8px; }
.cc-len b { font-family: var(--font-h); font-size: 28px; font-weight: 900; color: var(--forest-d); line-height: 1; font-variant-numeric: tabular-nums; }
.cc-len b small { font-size: 14px; font-weight: 700; margin-left: 1px; }
.cc-len span { font-size: 13px; color: var(--muted); }
.lbar { position: relative; height: 8px; margin: 10px 0 6px; border-radius: 99px; background: color-mix(in srgb, var(--forest) 10%, var(--paper)); }
.lbar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--forest), color-mix(in srgb, var(--forest) 60%, var(--amber))); }
.lbar s { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--amber-d); border-radius: 2px; text-decoration: none; }
.cc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cc-meta .ok { color: var(--ok); font-weight: 700; }
.cc-meta .ng { color: var(--ng); font-weight: 700; }
.search-empty { padding: 18px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); }
.nodata-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.nodata-list li { padding: 10px 14px; background: transparent; border: 1px dashed color-mix(in srgb, var(--muted) 40%, var(--line)); border-radius: 12px; font-size: 14px; display: flex; flex-direction: column; }
.nodata-list span { font-size: 12px; color: var(--muted); }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.how-grid > div { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.how-grid p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.src { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; line-height: 1.6; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); white-space: nowrap; vertical-align: middle; font-weight: 700; }
.src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.src-spec { color: var(--forest-d); border-color: color-mix(in srgb, var(--forest) 35%, var(--line)); }
.src-faq { color: var(--faq); }
.src-article { color: var(--amber-t); border-style: dashed; }
.tag { display: inline-block; font-size: 12.5px; line-height: 1.7; padding: 0 8px; border-radius: 6px; background: color-mix(in srgb, var(--forest) 10%, var(--paper)); color: var(--forest-d); vertical-align: middle; font-weight: 700; }

/* 車種ページの見出し */
.car-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(242, 165, 65, .18), transparent 60%), linear-gradient(180deg, var(--night), var(--night-2)); color: #fff; padding: 26px 0 0; }
.crumb { font-size: 13px; color: rgba(255, 255, 255, .6); display: flex; flex-wrap: wrap; gap: 6px; }
.crumb a { color: rgba(255, 255, 255, .8); }
.car-title { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.car-title .car-ico { width: 92px; height: 46px; flex: none; background: var(--amber); }
.car-maker { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
.car-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; }
.h1-sub { display: block; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.bed-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; margin-top: 22px; background: var(--card); color: var(--ink); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); overflow: hidden; }
@media (max-width: 820px) { .bed-panel { grid-template-columns: minmax(0, 1fr); } }
.bed-panel > *, .car-title > div, .j-f, .m-side > *, .bed-facts dd { min-width: 0; }
.bed-main { padding: 22px 24px; border-right: 1px solid var(--line); }
@media (max-width: 820px) { .bed-main { border-right: 0; border-bottom: 1px solid var(--line); } }
.bn-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.bn-val { display: block; font-family: var(--font-h); font-size: clamp(48px, 7vw, 64px); font-weight: 900; line-height: 1.05; color: var(--forest-d); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bn-val small { font-size: .45em; margin-left: 2px; }
.bn-how { display: block; margin: 6px 0; font-size: 14px; }
.diagram { margin: 0; }
.diagram svg { display: block; width: 100%; height: auto; }
.dg-floor { fill: color-mix(in srgb, var(--forest) 9%, var(--paper)); stroke: color-mix(in srgb, var(--forest) 40%, var(--line)); stroke-width: 1.5; }
.dg-body { fill: var(--ok); transition: all .35s cubic-bezier(.2, .8, .2, 1); }
.dg-body.is-ng { fill: var(--ng); }
.dg-over { fill: var(--ng); opacity: .18; }
.dg-txt { font: 700 15px system-ui, sans-serif; fill: var(--muted); }
@media (max-width: 560px) { .dg-txt { font-size: 22px; } }
.dg-dim { stroke: var(--muted); stroke-width: 1; }
.bed-side { padding: 18px 24px 22px; }
.bed-facts { margin: 0; display: grid; gap: 0; }
.bed-facts div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bed-facts div:last-child { border-bottom: 0; }
.bed-facts dt { font-size: 13px; color: var(--muted); font-weight: 700; padding-top: 2px; }
.bed-facts dd { margin: 0; font-size: 14px; }
.bed-facts dd b { font-family: var(--font-h); font-size: 20px; margin-right: 6px; }
.bed-facts small { color: var(--muted); }

.judge-bar { background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
.judge { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 16px 24px 18px; }
.j-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.j-f select, .j-f input { font: inherit; font-size: 16px; font-weight: 500; min-height: 48px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); max-width: 100%; }
.j-f input { width: 7em; }
.j-f input[aria-invalid="true"] { border-color: var(--ng); outline: 2px solid var(--ng); }
.j-mode { flex: 1 1 320px; min-width: 0; }
.j-mode select { width: 100%; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-width: 48px; min-height: 44px; padding: 7px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: var(--seg-on); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--amber); }
.verdict { flex-basis: 100%; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--paper); font-weight: 700; }
.verdict::before { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 13px; }
.verdict.is-ok { background: var(--ok-bg); color: var(--ok); }
.verdict.is-ok::before { content: "✓"; background: var(--ok); }
.verdict.is-ng { background: var(--ng-bg); color: var(--ng); }
.verdict.is-ng::before { content: "!"; background: var(--ng); }

.car-body { padding-bottom: 56px; }
.warn-box { margin-top: 22px; padding: 12px 16px; font-size: 13px; background: var(--amber-bg); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 12px; color: color-mix(in srgb, var(--ink) 85%, var(--amber-d)); }
.warn-box p { margin: 0 0 4px; }
.flat-note { display: flex; gap: 12px; margin: 18px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.flat-note::before { content: "公式の記載"; flex: none; height: fit-content; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--night); color: var(--amber); }

.kit-list { display: grid; gap: 10px; }
.kit-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.k-main { flex: 1 1 360px; min-width: 0; }
.k-side { display: flex; align-items: center; gap: 14px; }
.k-price { font-family: var(--font-h); font-weight: 900; font-size: 18px; }

.m-tools { position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 -16px 14px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; border-bottom: 1px solid var(--line); }
.mat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.mat { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.mat:hover { box-shadow: var(--shadow-lg); }
.m-top { display: flex; gap: 14px; padding: 14px 16px 0; }
.m-img { flex: none; width: 84px; height: 84px; border-radius: 12px; background: var(--paper) center / contain no-repeat; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.m-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.m-img { position: relative; }
.m-img img.is-illust { object-fit: cover; background: #f4efe4; }
.m-img i { position: absolute; right: 0; bottom: 0; width: 100%; font-style: normal; font-size: 11px; line-height: 1.4; padding: 2px 4px; text-align: center; background: var(--night); color: #fff; }
.m-main { min-width: 0; }
.m-brand { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.m-name { font-weight: 700; line-height: 1.5; margin-top: 2px; }
.m-dims { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 16px 0; font-size: 13px; color: var(--muted); }
.m-dims b { font-family: var(--font-h); color: var(--ink); font-size: 16px; }
.m-fit { margin: 10px 16px 0; font-size: 13px; font-weight: 700; color: var(--ok); display: flex; gap: 6px; align-items: center; }
.m-fit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.mat.is-no .m-fit { color: var(--ng); }
.mat.is-short .m-fit { color: var(--amber-t); }
.mat.is-unknown .m-fit { color: var(--muted); }
.mat.is-unknown .m-fit::before { background: transparent; border: 2px solid currentColor; }
.m-side { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; min-height: 72px; padding: 12px 16px; border-top: 1px dashed var(--line); }
.m-fit { margin-top: 12px; margin-bottom: 12px; line-height: 1.6; }
.m-side .small { line-height: 1.4; }
.buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--buy); color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 14px; box-shadow: 0 6px 14px -8px var(--buy); }
.buy:hover { filter: brightness(1.08); }
.buy.is-official { background: transparent; color: var(--forest-d); border: 1px solid color-mix(in srgb, var(--forest) 50%, var(--line)); box-shadow: none; }
.cross { display: flex; gap: 16px; align-items: center; margin-top: 36px; padding: 20px 22px; border-radius: var(--r); background: linear-gradient(120deg, var(--night), var(--night-2)); color: rgba(255, 255, 255, .85); }
.cross b { color: #fff; font-family: var(--font-h); }
.cross a { color: var(--amber); }
.cross svg { flex: none; width: 40px; height: 40px; color: var(--amber); }
.sources ul { padding-left: 1.2em; font-size: 14px; }

.page-head { padding: 40px 0 18px; background: linear-gradient(180deg, var(--night), var(--night-2)); color: #fff; }
.page-head h1 { font-size: 32px; font-weight: 900; }
.prose { max-width: 760px; padding-bottom: 48px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }

.site-footer { margin-top: 56px; padding: 36px 0 40px; background: var(--night); color: rgba(255, 255, 255, .62); font-size: 13px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; }
.site-footer nav a { color: rgba(255, 255, 255, .85); }
.foot-disc { margin: 0 0 6px; max-width: 60em; }

/* 車のアイコン（透過PNGをマスクにして色を塗る） */
.car-ico { display: inline-block; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* 改善（講評）: 人気の車種・判定中の帯・価格 */
.pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.pop a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.pop a:hover { background: rgba(255, 255, 255, .2); }
.pop .pop-all { background: transparent; border-color: transparent; color: var(--amber); }
.m-now { font-size: 13px; color: var(--muted); margin-right: auto; }
.m-now b { font-family: var(--font-h); color: var(--ink); font-size: 15px; margin: 0 1px; }
.m-price { display: block; line-height: 1.25; font-size: 13px; }
.m-price b { font-size: 22px; font-weight: 900; color: var(--ink); }
.m-price small { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.m-price.is-off b { font-size: 18px; color: var(--muted); }
.m-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: var(--amber-bg); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); font-size: 14px; font-weight: 700; }
.m-hint button { font: inherit; font-size: 14px; line-height: 1.5; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--night); color: var(--amber); cursor: pointer; }

.bn-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.seg span { padding: 9px 16px; }
@media (max-width: 560px) { .j-f { flex: 1 1 40%; } .j-f input { width: 100%; } .buy { padding: 11px 18px; } }

/* 車種一覧: PC は左に種類の見出し・右に3列（行の空白を減らす） */
@media (min-width: 960px) {
  .kind { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 30px; }
  .kind-h { flex-direction: column; align-items: flex-start; gap: 8px; position: sticky; top: 80px; margin: 6px 0 0; font-size: 16px; color: var(--ink); }
  .kind-h::after { display: none; }
  .kind-h .car-ico { width: 64px; height: 32px; }
  .kind .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 講評3 */
.judge-in { grid-column: 1 / -1; order: 3; padding: 18px 24px 20px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 60%, var(--card)); }
.bed-main { order: 1; } .bed-side { order: 2; }
.j-how { font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.judge-in .j-mode select { font-weight: 700; }
@media (max-width: 820px) { .judge-in { order: 2; padding: 16px; } .bed-side { order: 3; padding-top: 10px; padding-bottom: 10px; } .bed-facts div { padding: 7px 0; } }
.buy { background: var(--buy-fill); color: #fff; border: 1px solid var(--buy-fill); box-shadow: none; }
.buy:not(.is-official):hover { background: color-mix(in srgb, var(--buy-fill) 85%, #000); filter: none; }
.buy.is-official:hover { background: color-mix(in srgb, var(--forest) 8%, var(--card)); color: var(--forest-d); border-color: var(--forest); filter: none; }
.m-img { width: 88px; height: 88px; border-radius: 10px; }
.m-top { gap: 12px; padding: 16px 16px 0; }
@media (max-width: 560px) { .judge-in .j-mode { flex-basis: 100%; } }

/* 講評4 */
.verdict { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; padding: 14px 16px; }
.verdict::before { grid-row: 1 / span 2; align-self: start; }
.verdict b { font-size: 16px; }
.verdict small { grid-column: 2; font-size: 13px; font-weight: 400; line-height: 1.6; color: color-mix(in srgb, currentColor 80%, var(--ink)); }
@media (max-width: 720px) { .hero-art::after { background: linear-gradient(180deg, rgba(5, 19, 27, .82) 0%, rgba(5, 19, 27, .72) 60%, rgba(5, 19, 27, .6) 100%); } }

/* 講評5 */
.cc-meta .mid { color: var(--amber-t); font-weight: 700; }
.bar-legend { display: grid; gap: 6px; margin: 0 0 4px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.legend-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 8px; margin: 0; }
.legend-item .lg-bar { margin-top: 6px; }
.legend-item .lg-mark { margin: 3px 0 0; justify-self: center; }
.lg-bar { width: 28px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--forest), color-mix(in srgb, var(--forest) 60%, var(--amber))); }
.lg-mark { width: 2px; height: 14px; background: var(--amber-d); border-radius: 2px; margin-left: 8px; }
.dg-ng { fill: var(--ng); }

/* 講評6 */
.mat .m-name { margin: 12px 16px 0; font-size: 15px; line-height: 1.6; }
.m-dims-top { margin: 6px 0 0; }
.cc-diff { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; }
.cc-diff b { font-family: var(--font-h); font-size: 15px; }
.cc-diff.ok { background: var(--ok-bg); } .cc-diff.mid { background: var(--amber-bg); color: var(--amber-t); } .cc-diff.ng { background: var(--ng-bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --muted: #aebcc1; } }


/* 判定の直後の導線・図・出典・折りたたみ */
.result-link { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 10px; background: var(--seg-on); color: #fff; font-weight: 700; text-decoration: none; }
.result-link span { padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 14px; }
.result-link::after { content: "↓"; }
.verdict.is-warn { background: var(--amber-bg); color: var(--amber-t); }
.verdict.is-warn::before { content: "!"; background: var(--amber-t); color: var(--amber-bg); }
.bed-diagram { grid-column: 1 / -1; order: 4; padding: 12px 24px 16px; border-top: 1px solid var(--line); }
.bed-diagram svg { max-width: 560px; }
.bed-side { order: 2; }
.source-details, .more-facts { margin-top: 8px; font-size: 14px; }
.source-details summary, .more-facts summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--forest-d); font-weight: 700; font-size: 14px; }
.source-details summary::before, .more-facts summary::before { content: "▸"; margin-right: 6px; transition: rotate .15s; }
.source-details[open] summary::before, .more-facts[open] summary::before { rotate: 90deg; }
.source-details ul { margin: 0; padding: 12px 16px 12px 2.2em; line-height: 1.7; background: var(--paper); border-radius: 10px; }
.source-details .small { margin: 6px 0 0; line-height: 1.6; }
.more-facts .bed-facts { padding-bottom: 4px; }
.m-sort { margin: 0 0 12px; line-height: 1.6; max-width: 46em; }
.kind-base { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.cc-len { margin-top: 2px; }
.search-state { font-size: 14px; line-height: 1.6; }
.search-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--amber); font-weight: 700; }
.hero-carbed .search { margin-top: 20px; }
.hero-carbed .pop { margin-top: 8px; }
.hero-carbed .hero-stats { margin-top: 16px; gap: 16px; }
.hero-carbed .hero-stats li { padding: 0; border: 0; background: none; }
.hero-carbed .lead { margin-top: 20px; }
.hero-carbed .search input { min-height: 52px; font-size: 17px; }


@media (max-width: 820px) { .bed-side { order: 4; } .bed-diagram { order: 3; padding: 8px 16px 12px; border-top: 0; } }
@media (max-width: 560px) {
  .car-hero { padding-top: 16px; }
  .car-title { gap: 12px; margin-top: 8px; }
  .car-title .car-ico { width: 56px; height: 28px; }
  .car-hero h1 { font-size: 26px; }
  .bed-panel { margin-top: 14px; }
  .bed-main { padding: 14px 16px; }
  .bn-val { font-size: 48px; }
  .judge-in { padding: 14px 16px; gap: 12px; }
  .m-tools { position: static; margin: 0 0 16px; padding: 12px; gap: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
  .m-now { flex-basis: 100%; }
  .hero-carbed .wrap { padding-block: 28px; }
  .hero-carbed h1 { font-size: 30px; line-height: 1.4; }
  .hero-carbed .lead { font-size: 15px; line-height: 1.8; }
  .m-side { min-height: 0; }
}

/* 絞り込み・0件・価格の区切り・出典・小さなリンク */
.m-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin: 0 0 12px; }
.m-filters label { display: grid; gap: 4px; min-width: 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.m-filters select { width: 100%; min-width: 0; min-height: 48px; font: inherit; font-size: 16px; font-weight: 500; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.m-filters .chk { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 400; color: var(--ink); }
.m-filters .chk input { width: 20px; height: 20px; }
.m-result-count { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.m-result-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.m-empty button:focus-visible, .m-result-count:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.search-empty button { min-height: 44px; margin-top: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.verdict.is-mid { background: var(--amber-bg); color: var(--amber-t); }
.verdict.is-mid::before { content: "!"; background: var(--amber-t); color: var(--amber-bg); }
.dg-body.is-mid { fill: var(--amber-t); }
:root[data-theme="dark"] .verdict.is-ng::before { color: #3a1d1a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict.is-ng::before { color: #3a1d1a; } }
.m-pnote { margin: 0 0 12px; }
.m-empty { margin: 0 0 16px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; line-height: 1.7; }
.m-empty p { margin: 0; }
.m-empty button { min-height: 44px; margin: 12px 8px 0 0; padding: 8px 16px; font: inherit; font-size: 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.m-group-label { grid-column: 1 / -1; margin-top: 16px; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); list-style: none; }
.m-source { display: inline-flex; align-items: center; min-height: 44px; margin: 0 16px; font-size: 13px; }
.kind-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.kind-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 14px; text-decoration: none; color: var(--ink); }
.kind-nav a:hover { border-color: var(--forest); }
.kind { scroll-margin-top: calc(var(--header-h) + 16px); }
.lbar.is-over::after { content: ""; position: absolute; right: 3px; top: -2px; width: 6px; height: 12px; border-inline: 2px solid var(--card); transform: skewX(-20deg); }
.bn-src { gap: 0 12px; }
.source-details[open] { flex-basis: 100%; }
.source-details summary { padding-right: 4px; }
.source-details li a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 2px; min-height: 44px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.source-details li a span { color: var(--muted); }
.bed-width { margin-top: 8px; }
.crumb { align-items: center; }
.crumb a, .sources li a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.m-price { flex: 1 1 120px; min-width: 0; }
:root[data-theme="dark"] .verdict.is-ok::before { color: #14301f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict.is-ok::before { color: #14301f; } }

@media (min-width: 821px) {
  .bed-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "main judge" "diagram judge" "facts facts"; }
  .bed-panel > * { order: initial; grid-column: auto; }
  .bed-main { grid-area: main; border-right: 0; }
  .judge-in { grid-area: judge; border-top: 0; border-left: 1px solid var(--line); align-content: start; }
  .bed-diagram { grid-area: diagram; border-top: 0; padding: 0 24px 20px; }
  .bed-side { grid-area: facts; padding-top: 4px; padding-bottom: 12px; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .m-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-hero { padding-top: 8px; }
  .car-title { margin-top: 4px; }
  .bed-panel { margin-top: 10px; }
  .bed-main { padding-block: 10px; }
  .bn-src .source-details { margin-top: 0; }
}
.m-hint button:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.m-price .m-quantity-note { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.m-filters .filter-note { font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--muted); }
.m-result-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.m-result-count .count-base { font-size: 13px; color: var(--muted); }
@media (min-width: 960px) { .bar-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; } }

/* このサイトについての見出し画像、トップの判定の流れ */
.page-head--art { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 88px); }
.page-head--art .hero-art img { object-position: 50% 30%; }
.page-head--art .hero-art::after { background: linear-gradient(90deg, rgba(10, 21, 29, .9) 0%, rgba(10, 21, 29, .6) 55%, rgba(10, 21, 29, .2) 100%); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.flow-step > b { font-family: var(--font-h); font-size: 17px; }
.flow-step p { margin: 0; font-size: 14px; color: var(--muted); }
.fs-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--seg-on); color: #fff; font-weight: 700; font-size: 14px; }
.fs-fig { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 64px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--paper) 60%, var(--card)); border: 1px solid var(--line); }
.fs-chip { padding: 8px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.fs-chip b { font-size: 20px; }
.fs-eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 18px; }
.fs-eq i { font-style: normal; color: var(--muted); }
.fs-eq .fs-ok { padding: 2px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.fs-mats { display: grid; gap: 6px; width: 100%; }
.fs-mats i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--forest), color-mix(in srgb, var(--forest) 60%, var(--amber))); }
.fs-mats i:nth-child(1) { width: 92%; } .fs-mats i:nth-child(2) { width: 78%; } .fs-mats i:nth-child(3) { width: 64%; }
@media (min-width: 800px) {
  .flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; translate: 0 -50%; z-index: 1; display: grid; place-items: center; width: 12px; color: var(--muted); font-size: 16px; }
}
@media (max-width: 799px) { .flow { grid-template-columns: minmax(0, 1fr); } }
