/* ============================================================
   main.css — ページ部品（トップ・パンくず・法務・404・用語集の外枠・最近見た）。
   色は gs-shell.css の変数だけを使う（hex を直書きしない。テーマの正本は design/theme.json）。
   Bootstrap は持ち込んでいない（.container / .breadcrumb 等は最小限を自前で定義）。
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo",
    "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; color: var(--ink); line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--g); }
a:hover { color: var(--g-dark); }
main { min-height: 50vh; }
h1, h2, h3, h4 { line-height: 1.35; }
img { max-width: 100%; height: auto; }

.icon { width: 1em; height: 1em; display: inline-block; fill: currentColor; vertical-align: -0.125em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { max-width: 1340px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 992px) { .container { padding: 0 18px; } }

/* ---- ボタン ---- */
.btn-primary {
  display: inline-block; padding: .6rem 1.4rem; border-radius: 999px; background: var(--g); color: #fff;
  font-weight: 700; text-decoration: none; border: 1px solid var(--g);
}
.btn-primary:hover { background: var(--g-dark); color: #fff; }
.btn-outline {
  display: inline-block; padding: .5rem 1.1rem; border-radius: 999px; background: var(--card); color: var(--g);
  font-weight: 700; text-decoration: none; border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--g); color: var(--g-dark); }

/* ---- パンくず（macros/breadcrumb.html）---- */
.breadcrumb {
  list-style: none; margin: 14px 0; padding: 0; display: flex; flex-wrap: wrap;
  font-size: .88rem; letter-spacing: .01em; color: var(--gs-mute);
}
.breadcrumb-item + .breadcrumb-item::before { content: '\203A'; padding: 0 .5rem; color: var(--gs-soft-mute); }
.breadcrumb-item a { text-decoration: none; color: var(--gs-mute); transition: color .2s ease; }
.breadcrumb-item a:hover { color: var(--gs-accent); }
.breadcrumb-item.active { color: var(--gs-soft-mute); }
@media (max-width: 767.98px) {
  .breadcrumb { font-size: .74rem; line-height: 1.5; margin: 8px 0; }
  .breadcrumb-item + .breadcrumb-item::before { padding: 0 .3rem; }
}

/* ---- 見出し行（左バー ＋ 見出し ＋ 右端リンク）---- */
.gs-sec-head { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; }
.gs-sec-bar { width: 4px; height: 21px; border-radius: 3px; background: var(--brand); flex-shrink: 0; }
.gs-sec-title { font-size: 1.28rem; font-weight: 800; color: var(--ink); margin: 0; }
.gs-sec-more { margin-left: auto; font-size: .86rem; font-weight: 700; color: var(--g); text-decoration: none; }
.gs-sec-more:hover { text-decoration: underline; }

/* ---- トップ: ヒーロー ---- */
.gs-hero { position: relative; overflow: hidden; background: var(--card); border-bottom: 1px solid var(--line); }
.gs-hero-inner { position: relative; min-height: 300px; display: flex; align-items: center; padding-top: 44px; padding-bottom: 76px; }
.gs-hero-text { position: relative; z-index: 2; max-width: 640px; }
.gs-eyebrow {
  display: inline-block; margin: 0 0 14px; padding: .2rem .8rem; border-radius: 999px;
  background: var(--s-soft); color: var(--s-ink); font-size: .8rem; font-weight: 800; letter-spacing: .04em;
}
.gs-hero-h1 { font-size: 2.6rem; font-weight: 900; line-height: 1.3; letter-spacing: .012em; color: var(--ink); margin: 0 0 18px; }
.gs-hero-h1 em { color: var(--g); font-style: normal; }
.gs-hero-lead { font-size: 1rem; line-height: 1.95; color: var(--mute); max-width: 36em; margin: 0; }

/* ---- トップ: 柱カード ---- */
.gs-cards-wrap { margin-top: -52px; position: relative; z-index: 5; }
.gs-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gs-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px;
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
  box-shadow: 0 20px 34px -28px rgba(16,36,43,.55); transition: transform .18s ease, box-shadow .18s ease;
}
a.gs-card:hover { transform: translateY(-4px); box-shadow: 0 28px 44px -26px rgba(16,36,43,.5); color: inherit; }
.gs-card.is-soon { opacity: .78; }
.gs-card-ic { width: 62px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--g); }
.gs-card-ic .icon { width: 44px; height: 44px; }
.gs-card-body { flex: 1; min-width: 0; }
.gs-card-body h2 { font-size: 1.14rem; font-weight: 800; color: var(--ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gs-card-body p { font-size: .82rem; color: var(--mute); line-height: 1.65; margin: 0; }
.gs-soon { font-size: .68rem; font-weight: 800; color: var(--s-ink); background: var(--s-soft); border-radius: 999px; padding: .1rem .55rem; }
.gs-card-go { width: 44px; height: 44px; border-radius: 50%; background: var(--g); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .18s ease; }
.gs-card-go .icon { width: 20px; height: 20px; }
a.gs-card:hover .gs-card-go { transform: translateX(3px); }

/* ---- トップ: 掲載の方針 ---- */
.gs-home-policy { margin-top: 44px; }
.gs-policy-list { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.gs-policy-list li {
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: .93rem; color: var(--mute);
}
.gs-policy-list li b { color: var(--ink); margin-right: .3em; }
.gs-home-note { font-size: .88rem; color: var(--mute); }
@media (max-width: 900px) {
  .gs-hero-h1 { font-size: 2rem; }
  .gs-hero-inner { min-height: 0; padding-top: 30px; padding-bottom: 66px; }
  .gs-cards { grid-template-columns: 1fr; gap: 12px; }
  .gs-cards-wrap { margin-top: -40px; }
}

/* ---- 法務ページ（運営者情報・プライバシー・免責）---- */
.legal { max-width: 720px; margin: 0 auto; padding: 36px 0 24px; line-height: 1.85; color: var(--ink); }
.legal h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 1rem; }
.legal h2 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.legal p, .legal li, .legal dd { color: var(--gs-mute); }
.legal ul { padding-left: 1.25rem; }
.legal-table { display: grid; grid-template-columns: 9em 1fr; gap: .35rem 1rem; margin: 0; }
.legal-table dt { font-weight: 700; color: var(--ink); }
.legal-table dd { margin: 0; }
@media (max-width: 600px) { .legal-table { grid-template-columns: 1fr; gap: 0 } .legal-table dd { margin-bottom: .6rem; } }
.legal .legal-date { font-size: .82rem; color: var(--mute); margin-top: 2rem; }
.legal .legal-nav { font-size: .86rem; color: var(--mute); margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---- 404 ---- */
.notfound { max-width: 720px; margin: 0 auto; padding: 64px 0 40px; text-align: center; }
.notfound h1 { font-size: 1.8rem; font-weight: 800; color: var(--ink); margin: 0 0 .8rem; }
.notfound .lead { color: var(--gs-mute); margin: 0 0 1.5rem; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 1.4rem; }

/* ---- 最近見たページ（static/js/recent.js が描画。base.html の [data-recent-strip]）---- */
.gs-recent { margin: 36px auto 8px; }
.gs-recent-h { font-size: 1rem; font-weight: 800; color: var(--ink); margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--brand); }
.gs-recent-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.gs-recent-card { flex: 0 0 156px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px;
  background: var(--gs-card); border: 1px solid var(--gs-border-soft); border-radius: 10px;
  padding: 8px; color: inherit; text-decoration: none; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease; }
.gs-recent-card:hover { border-color: var(--g); box-shadow: 0 2px 8px rgba(3,105,161,.12); color: inherit; text-decoration: none; }
.gs-recent-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--soft); }
.gs-recent-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gs-recent-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.gs-recent-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-recent-kind { font-size: .68rem; font-weight: 700; color: var(--mute); letter-spacing: .04em; }
.gs-recent-title { font-size: .82rem; font-weight: 600; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .gs-recent-card { flex-basis: 132px; } }

/* ---- 実体ページ（国・目的地・空港・航空会社）。templates/*_index.html / *_detail.html・macros/entity.html ---- */
.ent { padding: 4px 0 32px; }
.ent-hero { padding: 16px 0 18px; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
.ent-pill { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--g); background: var(--tint);
  border-radius: 999px; padding: .15rem .7rem; margin: 0 0 8px; }
.ent-h1 { font-size: 1.8rem; font-weight: 800; color: var(--ink); margin: 0 0 6px; line-height: 1.3; }
.ent-h1 small { font-size: .95rem; font-weight: 600; color: var(--mute); margin-left: .4em; }
.ent-sub { color: var(--mute); margin: 0 0 6px; max-width: 760px; }
.ent-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ent-chips li { font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--soft); border: 1px solid var(--line);
  border-radius: 999px; padding: .12rem .65rem; }
.ent-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.ent-jump a { font-size: .82rem; font-weight: 700; color: var(--g); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: .2rem .7rem; text-decoration: none; }
.ent-jump a:hover, .ent-jump a[aria-current] { border-color: var(--g); }
.ent-jump a[aria-current] { background: var(--tint); }
.ent-jump .n, .ent-sec-count { font-size: .74rem; font-weight: 600; color: var(--mute); margin-left: .4em; }
.ent-sec { margin: 0 0 30px; }
.ent-sec h3 { font-size: 1rem; font-weight: 800; margin: 14px 0 8px; color: var(--ink); }
.ent-sec h3 a { color: inherit; text-decoration: none; }
.ent-sec h3 a:hover { color: var(--g); }
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ent-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.ent-item:hover { border-color: var(--g); box-shadow: 0 2px 8px rgba(3,105,161,.12); color: inherit; }
.ent-item-name { font-weight: 700; color: var(--ink); }
.ent-item-sub { font-size: .8rem; color: var(--mute); }
.ent-item-meta { font-size: .76rem; color: var(--gs-soft-mute); }
.ent-badge { align-self: flex-start; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; font-weight: 800;
  color: var(--g); background: var(--tint); border-radius: 6px; padding: 0 .4rem; }
.ent-facts { display: grid; grid-template-columns: 10em 1fr; gap: .45rem 1rem; margin: 0 0 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.ent-facts dt { font-weight: 700; color: var(--ink); font-size: .9rem; }
.ent-facts dd { margin: 0; color: var(--gs-mute); font-size: .93rem; overflow-wrap: anywhere; }
.ent-facts dd b { color: var(--ink); }
.ent-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ent-inline li a, .ent-inline li span { display: inline-block; font-size: .84rem; font-weight: 600; background: var(--soft);
  border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; text-decoration: none; }
.ent-note { font-size: .86rem; color: var(--mute); margin: 0 0 22px; }
.ent-sources { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--mute); }
.ent-sources h2 { font-size: .95rem; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.ent-sources ul { margin: 0 0 8px; padding-left: 1.2rem; }
.ent-sources li { margin: 0 0 4px; overflow-wrap: anywhere; }
.ent-src-fields, .ent-src-date { margin-left: .5em; font-size: .78rem; color: var(--gs-soft-mute); }
.ent-verified { margin: 0; }
@media (max-width: 900px) {
  .ent-h1 { font-size: 1.45rem; }
  .ent-facts { grid-template-columns: 1fr; gap: 0; }
  .ent-facts dd { margin-bottom: .6rem; }
}

/* 手荷物（航空会社ページ・macros/entity.html の baggage_row） */
.ent-bag { display: flex; gap: 8px; align-items: baseline; margin: 0 0 3px; }
.ent-bag-k { flex: 0 0 5.5em; font-size: .8rem; font-weight: 700; color: var(--mute); }
.ent-bag-v { min-width: 0; }
.ent-bag-src { margin-top: 4px; font-size: .84rem; }

/* 楽天トラベルのブロック（クレジット表示は規約 第13条で必須・スニペットは改変しない） */
.rk-block { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.rk-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.rk-credit { margin: 10px 0 0; }
.rk-credit img { display: inline-block; }

/* 比較表（旅行サービスの種別ページ・航空会社の料金表）。狭い画面では横スクロール */
.ent-table-wrap { overflow-x: auto; margin: 0 0 10px; }
.ent-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.ent-table th, .ent-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ent-table th { font-size: .8rem; color: var(--mute); font-weight: 700; background: var(--soft); white-space: nowrap; }
.ent-table tr:last-child td { border-bottom: 0; }
.ent-table td b { color: var(--ink); }

/* ── 車種の写真（Wikimedia Commons・docs/design/images.md）。**切らずに全体を見せる**（object-fit: cover・高さ固定はしない。
   帰属に「写真は改変していません」と書いているため。2026-10-09 に高さ 360px 固定で上下が切れていた）。
   車種ページ: 見出し部分の左に写真・右に要点。元の縦横比のまま（width / height 属性で読み込み中も崩れない）。
   メーカーページ: カードの上に 3:2 の枠で収める（横長 1.29〜2.32 の写真が余白付きで全体に入る）。 ── */
.ent-photo{ margin:0; min-width:0; }
.ent-photo-link{ display:block; }
.ent-photo-img{ display:block; width:100%; height:auto; border-radius:12px; background:var(--soft); }
.ent-photo-credit{ margin-top:6px; font-size:.76rem; line-height:1.5; color:var(--mute); }
.car-hero--photo{ display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas:"photo head" "photo facts"; gap:0 28px; align-items:start; }
.car-hero--photo .car-hero-head{ grid-area:head; }
.car-hero--photo .ent-photo{ grid-area:photo; }
.car-hero--photo .car-facts{ grid-area:facts; margin-top:14px; grid-template-columns:9.5em 1fr; }
@media (max-width: 900px){
  .car-hero--photo{ grid-template-columns:minmax(0, 1fr); grid-template-areas:"head" "photo" "facts"; }
  .car-hero--photo .ent-photo{ margin-top:12px; }
}
.car-card{ padding:0; overflow:hidden; }
.car-card-photo{ position:relative; display:block; aspect-ratio:3 / 2; overflow:hidden; background:var(--soft); border-bottom:1px solid var(--line); }
.car-card-photo img{ position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; }
.car-card-body{ display:flex; flex-direction:column; gap:2px; padding:10px 12px 12px; min-width:0; }
.car-card-photo--none{ display:flex; align-items:center; justify-content:center; font-size:.76rem; color:var(--mute); }

/* ── 車種の柱（/car/）: グレード表と要点。ent-* の上に最小限だけ足す ── */
.ent-h1 small, .ent-item-name small { font-size: .62em; font-weight: 600; color: var(--mute); margin-left: .35em; }
.car-facts { grid-template-columns: 13em 1fr; }
.car-facts code, .ent-table code { font-size: .84em; background: var(--soft); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.ent-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ent-table td.note { font-size: .8rem; color: var(--mute); min-width: 14em; }
.car-grades th { position: sticky; top: 0; }
.car-grades td:first-child, .car-grades td:nth-child(3) { white-space: nowrap; }
.car-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.car-grid .ent-item-meta { margin-top: 4px; }
@media (max-width: 640px) { .car-facts { grid-template-columns: 1fr; } }

/* 装備の違い（グレード × 主要装備） */
.car-equip td.mark { text-align: center; white-space: nowrap; }
.car-equip tr.diff td { background: var(--tint); }
.car-equip tr.car-equip-group th { background: var(--soft); text-align: left; font-size: .78rem; }
.car-cost td.num { white-space: nowrap; }
.car-cost-notes { margin: .6rem 0 0; padding-left: 1.2rem; }
.car-cost-notes li { margin: .2rem 0; }
.car-recall td.note { min-width: 22rem; }
.car-equip thead th { white-space: normal; min-width: 6em; }
/* 自治体の EV 補助金（/car/subsidy/ と車種ページの地域選択） */
.sub-filter { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .4rem 0 .8rem; font-size: .9rem; }
.sub-table td.num { white-space: nowrap; }
.sub-table .sub-pref-row td { background: var(--tint); }
.sub-none { color: var(--muted, #888); }
.sub-st { display: inline-block; padding: 0 .4em; border-radius: 3px; font-size: .78rem; background: var(--soft); white-space: nowrap; }
.sub-st-open { background: var(--tint); font-weight: 600; }
.sub-st-closed { opacity: .7; text-decoration: line-through; }
.sub-scheme + .sub-scheme { margin-top: .4rem; }
.sub-pick { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: .6rem 0; }
.sub-pick select { font-size: 1rem; padding: .3rem .4rem; max-width: 100%; }
.sub-result { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sub-kind { border: 1px solid var(--line, #ddd); border-radius: 6px; padding: .6rem .8rem; background: var(--gs-card, transparent); }
.sub-kind h3 { margin: 0 0 .2rem; font-size: .95rem; }
.sub-total { font-size: 1.15rem; font-weight: 700; margin: .1rem 0; }
.sub-parts, .sub-note { font-size: .85rem; margin: .2rem 0; }
.sub-link { grid-column: 1 / -1; margin: 0; }
.car-changes { list-style: none; padding: 0; margin: .4rem 0; }
.car-changes li { padding: .25rem 0; border-bottom: 1px solid var(--line, #eee); font-size: .92rem; }
.car-changes time { font-variant-numeric: tabular-nums; margin-right: .4rem; }
.car-sub-h { font-size: 1rem; margin: 1rem 0 .3rem; }
/* 車を探す（/car/search/） */
.cs-q { display: flex; gap: .5rem; margin: .4rem 0 .8rem; }
.cs-q input { flex: 1; min-width: 0; font-size: 1rem; padding: .55rem .7rem; border: 1px solid var(--line, #ccc); border-radius: 8px; }
.cs-btn { padding: .5rem 1rem; border: 0; border-radius: 8px; background: var(--brand, #1e6); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cs-filters { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: .5rem .8rem; background: var(--gs-card, #fff); }
.cs-filters summary { cursor: pointer; font-weight: 700; padding: .2rem 0; }
.cs-filters fieldset { border: 0; border-top: 1px solid var(--line, #eee); margin: .5rem 0 0; padding: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.cs-filters legend { font-size: .85rem; font-weight: 700; padding: 0; margin-bottom: .3rem; float: left; width: 100%; }
.cs-chip { display: inline-flex; }
.cs-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cs-chip span { padding: .25rem .65rem; border: 1px solid var(--line, #ccc); border-radius: 999px; font-size: .85rem; cursor: pointer; background: #fff; }
.cs-chip input:checked + span { background: var(--brand, #1e6); border-color: var(--brand, #1e6); color: #fff; }
.cs-chip input:focus-visible + span { outline: 2px solid var(--brand, #1e6); outline-offset: 2px; }
.cs-chip small { opacity: .7; }
.cs-nums label { font-size: .88rem; display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin-right: .8rem; }
.cs-nums input { width: 6.5em; padding: .25rem .35rem; }
.cs-preset { font-size: .78rem; padding: .15rem .45rem; border: 1px solid var(--line, #ccc); border-radius: 6px; background: var(--soft, #f4f4f4); cursor: pointer; }
.cs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .8rem 0; position: sticky; bottom: 0; background: var(--bg, #fff); padding: .5rem 0; z-index: 5; }
.cs-count b { font-size: 1.25rem; }
.cs-clear { font-size: .88rem; }
.cs-results { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cs-item-link { display: flex; gap: .7rem; padding: .6rem; border: 1px solid var(--line, #ddd); border-radius: 10px; color: inherit; text-decoration: none; background: var(--gs-card, #fff); height: 100%; }
.cs-item-link:hover { border-color: var(--brand, #1e6); }
.cs-photo { position: relative; flex: 0 0 120px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--soft, #f2f2f2); }
.cs-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cs-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .75rem; opacity: .6; }
.cs-body { display: flex; flex-direction: column; min-width: 0; gap: .1rem; }
.cs-maker { font-size: .78rem; opacity: .75; }
.cs-name { font-weight: 800; font-size: 1.05rem; }
.cs-meta, .cs-sub { font-size: .82rem; }
.cs-sub { opacity: .75; }
.cs-pager { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0; }
.cs-pager a, .cs-pager span { padding: .3rem .65rem; border: 1px solid var(--line, #ddd); border-radius: 6px; text-decoration: none; }
.cs-pager [aria-current] { background: var(--brand, #1e6); color: #fff; border-color: var(--brand, #1e6); }
.cs-empty { padding: 1rem 0; }

/* 読みもの（/guide/）— app/templates/guide_*.html */
.ar-wrap { max-width: 860px; }
.ar-eyebrow { margin: 18px 0 4px; font-size: .84rem; font-weight: 700; }
.ar-eyebrow a { color: var(--accent, inherit); text-decoration: none; }
.ar-meta { font-size: .82rem; color: var(--mute); margin: 0 0 18px; }
.ar-toc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 24px; background: var(--card); font-size: .9rem; }
.ar-toc h2 { font-size: .9rem; margin: 0 0 6px; }
.ar-toc ul { margin: 0; padding-left: 1.2rem; }
.ar-body { line-height: 1.9; overflow-wrap: anywhere; }
.ar-body h2 { font-size: 1.3rem; margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.ar-body h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.ar-body .ent-table-wrap { margin: 12px 0 4px; }
.ar-body td, .ar-body th { white-space: nowrap; }
.ar-src, .ar-note { font-size: .8rem; color: var(--mute); margin: 4px 0 14px; line-height: 1.6; }
.ar-live { font-weight: 700; }
.ar-sec { margin: 32px 0 0; }
.ar-sec h2 { font-size: 1.05rem; }
.ar-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.ar-links a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .8rem; text-decoration: none; font-size: .88rem; }
.ar-group { margin: 28px 0; }
.ar-group h2 { font-size: 1.2rem; margin: 0 0 4px; }
.ar-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.ar-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); text-decoration: none; color: inherit; }
.ar-cards span { font-size: .86rem; color: var(--mute); }
.ar-cards small { font-size: .76rem; color: var(--mute); margin-top: auto; }
@media (max-width: 560px) { .ar-cards { grid-template-columns: 1fr; } }
.car-specs td:first-child { min-width: 12em; }
.car-specs td, .car-specs th { white-space: nowrap; }
