/* =========================================================
   キャンプ用品比較室 — 共通スタイル
   トーン: 自然・アウトドア（フォレストグリーン × ベージュ/サンド）
   依存ゼロ・素のCSS。レスポンシブ対応。
   ========================================================= */

:root {
  /* カラートークン */
  --forest:        #2f5d3a;
  --forest-deep:   #244a2e;
  --forest-soft:   #3a6b47;
  --moss:          #6b8e5a;
  --sand:          #f3ede1;
  --sand-deep:     #e7dcc6;
  --paper:         #fbf8f1;
  --card:          #fffdf8;
  --ink:           #2b2a24;
  --ink-soft:      #6b675d;
  --line:          #e2d8c4;
  --accent:        #c4783b;   /* テラコッタ（強調・CTA補助） */
  --good:          #4c8a52;   /* 良い値の強調 */
  --good-bg:       #e8f1e4;

  --radius:   14px;
  --radius-sm:10px;
  --shadow:   0 1px 2px rgba(40,40,30,.06), 0 8px 24px rgba(40,40,30,.06);
  --shadow-sm:0 1px 2px rgba(40,40,30,.08);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  line-height: 1.35;
  font-weight: 800;
}
h1 { letter-spacing: .06em; }
h2 { letter-spacing: .045em; }
h3 { letter-spacing: .035em; font-weight: 700; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー（ロゴ・サイト名） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,241,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.site-header .brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--forest-deep);
}
.site-header .brand-text {
  display: flex; flex-direction: column; gap: 3px;
  line-height: 1.2;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.site-header .brand-name {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--forest-deep);
}
.site-header .brand-tagline {
  font-size: .62rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .14em;
}
.site-header .brand img {
  width: 36px; height: 36px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(36, 74, 46, .14);
}
.site-header .brand:hover { text-decoration: none; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--forest); text-decoration: none; }
.nav a.active { color: var(--forest-deep); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; transition: .15s;
  background: var(--forest); color: #fff;
}
.btn:hover { background: var(--forest-deep); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--forest); border-color: var(--moss); }
.btn.secondary:hover { background: var(--good-bg); }
.btn.ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn.small { padding: 7px 14px; font-size: .85rem; }

/* =========================================================
   トップページ
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-soft));
  color: #fff;
}
.hero .container { padding-top: 72px; padding-bottom: 80px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; margin: 0 0 18px; letter-spacing: .07em; font-weight: 800; }
.hero p.lead { font-size: 1.12rem; color: #eaf2e6; margin: 0 0 28px; max-width: 38ch; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn.secondary { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn.secondary:hover { background: rgba(255,255,255,.12); }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 13px; border-radius: 999px; font-size: .85rem; }

.section { padding: 64px 0; }
.section h2 { font-size: 1.7rem; color: var(--forest-deep); margin: 0 0 8px; text-align: center; font-weight: 800; letter-spacing: .05em; }
.section .sub { text-align: center; color: var(--ink-soft); margin: 0 auto 40px; max-width: 56ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.step .num { width: 38px; height: 38px; border-radius: 10px; background: var(--good-bg); color: var(--forest); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; letter-spacing: .04em; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: .15s; }
.cat-card.live:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card h3 { margin: 0 0 6px; color: var(--forest-deep); font-weight: 700; letter-spacing: .04em; }
.cat-card p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 16px; }
.cat-card.soon { opacity: .65; }
.cat-card .tag-soon { font-size: .75rem; background: var(--sand-deep); color: var(--ink-soft); padding: 3px 10px; border-radius: 999px; font-weight: 700; }

.site-footer { background: var(--forest-deep); color: #d8e4d2; padding: 36px 0; margin-top: 40px; }
.site-footer .container { display: flex; flex-direction: column; gap: 14px; font-size: .9rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; width: 100%; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer-legal a { color: #fff; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer .disclaimer { font-size: .8rem; color: #b9c8b2; max-width: 64ch; line-height: 1.6; }

/* =========================================================
   テント比較ハブ
   ========================================================= */
.hub { padding: 26px 0 80px; }

/* ご利用上の注意バナー */
.notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fbf1e3; border: 1px solid #e7d2b4; border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 18px;
}
.notice[hidden] { display: none !important; }
.notice .notice-body { flex: 1; min-width: 0; font-size: .86rem; color: #6a5436; line-height: 1.55; }
.notice .notice-body strong { color: var(--accent); margin-right: 8px; }
.notice .notice-body b { color: #5a4326; }
.notice .notice-report { font-weight: 700; color: var(--accent); text-decoration: underline; }
.notice .notice-close {
  margin-left: auto; background: none; border: 0; font-size: 1.2rem; line-height: 1;
  color: #a98f68; cursor: pointer; padding: 2px 4px;
}
.notice .notice-close:hover { color: var(--accent); }
.hub-head { margin-bottom: 18px; }
.hub-head h1 { font-size: 1.7rem; color: var(--forest-deep); margin: 0 0 4px; letter-spacing: .05em; }
.hub-head p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.sidebar .hub-sidebar-explore > strong {
  display: block;
  color: var(--forest-deep);
  font-size: inherit;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sidebar .hub-sidebar-explore .hub-explore-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-bottom: 10px;
}
.sidebar .hub-sidebar-explore .hub-explore-row:last-child { margin-bottom: 0; }
.sidebar .hub-sidebar-explore .hub-explore-row > span {
  flex: 0 0 100%;
  font-size: .78rem; font-weight: 700; color: var(--ink-soft);
  margin-bottom: 6px;
}
.sidebar .hub-sidebar-explore .hub-explore-row + .hub-explore-row {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.sidebar .hub-sidebar-explore .chip-link {
  display: inline-block; font-size: .78rem; padding: 5px 10px;
}

.hub-layout { display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: start; }

/* --- サイドバー（シーン検索＋絞り込み） --- */
.sidebar {
  position: sticky; top: 80px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 18px 18px; box-shadow: var(--shadow-sm);
}
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group > h3 { font-size: .82rem; text-transform: none; letter-spacing: .02em; color: var(--ink-soft); margin: 0 0 10px; font-weight: 800; }
.axis { margin-bottom: 12px; }
.axis:last-child { margin-bottom: 0; }
.axis .axis-label { font-size: .78rem; color: var(--ink-soft); margin-bottom: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: .82rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  cursor: pointer; transition: .12s; user-select: none;
}
.chip:hover { border-color: var(--moss); }
.chip.active { background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 700; }
a.chip.chip-nav { text-decoration: none; display: inline-block; }
a.chip.chip-nav:hover { text-decoration: none; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-head strong { color: var(--forest-deep); }
.sidebar-note { font-size: .82rem; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.55; }
a.reset-link { text-decoration: none; display: inline-block; }
a.reset-link:hover { text-decoration: underline; }

.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.field-row label { font-size: .85rem; color: var(--ink); }
.field-row select, .field-row input[type="number"] {
  font: inherit; font-size: .85rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field-row input[type="range"] { width: 100%; accent-color: var(--forest); }
.range-row { margin-bottom: 12px; }
.range-row .range-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 4px; }
.range-row .range-val { font-weight: 700; color: var(--forest-deep); }
.check { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; margin-bottom: 8px; }
.check input { accent-color: var(--forest); width: 16px; height: 16px; }
.hard-tag { font-size: .68rem; background: #f4e2d6; color: var(--accent); padding: 1px 7px; border-radius: 999px; font-weight: 700; margin-left: auto; }

/* 「?」ヘルプアイコン＋ホバー説明 */
.help {
  position: relative; flex: none; width: 17px; height: 17px; margin-left: 6px;
  border-radius: 999px; background: var(--moss); color: #fff;
  font-size: .7rem; font-weight: 800; line-height: 17px; text-align: center;
  cursor: help; user-select: none;
}
.help .tip {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  width: 230px; background: var(--forest-deep); color: #eef3e6;
  font-size: .74rem; font-weight: 500; line-height: 1.55; text-align: left;
  padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow);
}
.help .tip::after {
  content: ""; position: absolute; bottom: 100%; right: 5px;
  border: 6px solid transparent; border-bottom-color: var(--forest-deep);
}
.help:hover .tip, .help:focus .tip { display: block; }

.reset-link { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; font-size: .85rem; padding: 0; }

/* --- メイン（ツールバー＋カード） --- */
.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { font-weight: 800; color: var(--forest-deep); }
.toolbar .count small { font-weight: 600; color: var(--ink-soft); }
.toolbar .spacer { margin-left: auto; }
.toolbar .sort { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-soft); }
.toolbar select { font: inherit; font-size: .88rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mobile-filter-toggle { display: none; }

.cards { display: block; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* セクション見出し（完全一致 / 条件に近い候補） */
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.section-head:not(:first-child) { margin-top: 30px; }
.section-head h3 { margin: 0; font-size: 1.12rem; color: var(--forest-deep); letter-spacing: .04em; }
.section-head .section-count { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.section-note { margin: 6px 0 18px; padding: 12px 14px; background: var(--good-bg); border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .88rem; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.selected { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest) inset, var(--shadow); }
.card.dismissed { opacity: .78; border-color: #d8d0c0; background: #f7f4ee; box-shadow: none; }
.card.dismissed:hover { transform: none; box-shadow: var(--shadow-sm); }

/* サムネ枠：写真ありでもなしでも高さ固定でレイアウトを安定させる */
.card-thumb {
  height: 96px; background: #fff;
  display: flex; align-items: center; justify-content: center; position: relative;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
/* 写真あり */
.card-thumb img.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 写真なし＝数値先行レイアウト（プレースホルダー） */
.card-thumb.no-photo { background: linear-gradient(135deg, var(--sand), var(--sand-deep)); }
.card-thumb.type-placeholder {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card-thumb .placeholder-ico { font-size: 1.6rem; opacity: .5; }
.card .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.badge-match { background: var(--forest); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.badge-match.badge-near { background: var(--moss); }
.badge-sample { background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge-status { background: #8a8378; color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge-compare {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: var(--forest); color: #fff; font-size: .72rem; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; box-shadow: 0 1px 4px rgba(36, 74, 46, .25);
}
.badge-dismissed {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: #8a8378; color: #fff; font-size: .72rem; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card .brand { font-size: .76rem; color: var(--ink-soft); font-weight: 700; letter-spacing: .03em; }
.card .name {
  display: inline-block; font-size: 1.05rem; font-weight: 800; color: var(--ink);
  margin: 2px 0 10px; text-decoration: none;
}
.card .name:hover { color: var(--forest); text-decoration: underline; }
.compare-table thead th .ct-name a { color: var(--ink); text-decoration: none; font-weight: 800; }
.compare-table thead th .ct-name a:hover { color: var(--forest); text-decoration: underline; }

.spec-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 12px; }
.spec-mini .item .k { font-size: .68rem; color: var(--ink-soft); }
.spec-mini .item .v { font-size: .95rem; font-weight: 700; color: var(--forest-deep); }
.spec-mini .item .v small { font-weight: 600; color: var(--ink-soft); font-size: .72rem; }

.card .scene-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.card .scene-tags span { font-size: .72rem; background: var(--good-bg); color: var(--forest); padding: 2px 8px; border-radius: 999px; }
.card .scene-tags span.active { background: var(--forest); color: #fff; font-weight: 700; }

/* アフィリエイト購入リンク */
.aff-links { display: flex; gap: 6px; margin-bottom: 6px; }
.aff-btn {
  flex: 1; text-align: center; font-size: .78rem; font-weight: 700; color: #fff;
  padding: 7px 4px; border-radius: 8px; transition: .12s; white-space: nowrap;
}
.aff-btn:hover { text-decoration: none; filter: brightness(1.07); }
.aff-amazon  { background: #ff9900; color: #1a1a1a; }
.aff-rakuten { background: #bf0000; }
.aff-yahoo   { background: #ff0033; }
.aff-note { font-size: .7rem; color: var(--ink-soft); margin-bottom: 12px; }
/* 比較表内は列が狭いので縦並び */
.aff-links-compact { flex-direction: column; gap: 5px; margin-bottom: 0; min-width: 96px; }
.aff-links-compact .aff-btn { flex: none; }

.card .card-actions { margin-top: auto; }
.card .source-link { display: inline-block; margin-top: 8px; font-size: .78rem; color: var(--ink-soft); }
.card .source-link:hover { color: var(--forest); }
.card .btn-compare {
  width: 100%; padding: 9px; border-radius: 10px; border: 1px solid var(--moss);
  background: #fff; color: var(--forest); font-weight: 700; cursor: pointer; transition: .12s; font-size: .9rem;
}
.card .btn-compare:hover { background: var(--good-bg); }
.card.selected .btn-compare { background: var(--forest); color: #fff; border-color: var(--forest); }
.card.dismissed .btn-restore { background: #fff; color: var(--ink-soft); border-color: #c8bfb0; }
.card.dismissed .btn-restore:hover { background: var(--sand); color: var(--forest); border-color: var(--moss); }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty h3 { color: var(--ink); margin: 0 0 6px; }

/* --- 比較カゴ（下部バー） --- */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--forest-deep); color: #fff;
  transform: translateY(110%); transition: transform .25s ease;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.compare-bar.show { transform: translateY(0); }
.compare-bar .cb-container { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px; }
.compare-bar .cb-row-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.compare-bar .cb-label { font-weight: 800; }
.compare-bar .cb-slots { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.compare-bar .cb-dismissed-wrap {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15);
}
.compare-bar .cb-dismissed-label { font-size: .78rem; font-weight: 800; opacity: .85; white-space: nowrap; }
.cb-slot-dismissed { opacity: .88; background: rgba(255,255,255,.08); }
.cb-slot-mark-muted { background: rgba(255,255,255,.12); opacity: .85; }
.cb-restore {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); color: #fff;
  border-radius: 999px; padding: 2px 10px; font: inherit; font-size: .75rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: .12s;
}
.cb-restore:hover { background: rgba(255,255,255,.28); }
.cb-slot { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 5px 10px; font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.cb-slot-mark {
  display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem;
  border-radius: 999px; background: rgba(255,255,255,.22); font-size: .72rem; font-weight: 800;
}
.cb-slot button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; opacity: .8; }
.cb-slot button:hover { opacity: 1; }
.compare-bar .cb-clear {
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 700; font-size: .88rem;
  cursor: pointer; white-space: nowrap; transition: .12s;
}
.compare-bar .cb-clear:hover { background: rgba(255,255,255,.12); }
.compare-bar .btn.accent { background: var(--accent); }
.compare-bar .btn.accent:hover { background: #a8632f; }
.compare-bar .btn.accent:disabled { opacity: .5; cursor: not-allowed; }

/* --- 比較表モーダル --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(30,28,22,.55);
  display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--paper); border-radius: var(--radius); max-width: 900px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.25rem; color: var(--forest-deep); letter-spacing: .04em; }
.modal-head .close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink-soft); line-height: 1; }
.modal-body { padding: 0; overflow-x: auto; }

.modal-hint { margin: 0; padding: 12px 18px; font-size: .82rem; color: var(--ink-soft); background: var(--good-bg); border-bottom: 1px solid var(--line); }
.modal-scene {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 10px 18px; background: var(--sand); border-bottom: 1px solid var(--line);
}
.modal-scene-label { font-size: .82rem; font-weight: 700; color: var(--forest-deep); white-space: nowrap; }
.modal-scene-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-scene-chip {
  font-size: .78rem; padding: 4px 10px; border-radius: 999px;
  background: var(--forest); color: #fff; font-weight: 700;
}
.scene-tags-compare { margin-bottom: 6px; }
.scene-tags-compare span { font-size: .72rem; }
.modal-note { margin: 0; padding: 12px 18px; font-size: .78rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.source-link { color: var(--forest); font-weight: 600; }

.compare-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.compare-table thead th .ct-remove {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center; transition: .12s;
}
.compare-table thead th .ct-remove:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--sand); position: sticky; top: 0; padding-right: 34px; }
.compare-table thead th.compare-col { border-left: 3px solid transparent; }
.compare-table thead th .ct-index {
  display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; margin-bottom: 6px;
  border-radius: 999px; background: var(--forest); color: #fff; font-size: .82rem; font-weight: 800;
}
.compare-table thead th.compare-col-0 { background: #e6efe3; border-left-color: rgba(47, 93, 58, .35); }
.compare-table thead th.compare-col-1 { background: #f0ebe2; border-left-color: rgba(196, 120, 59, .35); }
.compare-table thead th.compare-col-2 { background: #e8edf0; border-left-color: rgba(74, 107, 122, .35); }
.compare-table td.compare-col { border-left: 3px solid transparent; }
.compare-table td.compare-col-0 { background: rgba(47, 93, 58, .05); border-left-color: rgba(47, 93, 58, .18); }
.compare-table td.compare-col-1 { background: rgba(196, 120, 59, .06); border-left-color: rgba(196, 120, 59, .18); }
.compare-table td.compare-col-2 { background: rgba(74, 107, 122, .05); border-left-color: rgba(74, 107, 122, .18); }
.compare-table td.best.compare-col-0,
.compare-table td.best.compare-col-1,
.compare-table td.best.compare-col-2 { background: var(--good-bg); border-left-color: var(--good); }
.compare-table thead th .ct-brand { font-size: .72rem; color: var(--ink-soft); font-weight: 700; }
.compare-table thead th .ct-name { font-size: 1rem; color: var(--ink); }
.compare-table tbody th { background: var(--card); font-weight: 700; color: var(--ink-soft); width: 140px; white-space: nowrap; }
.compare-table td.best { background: var(--good-bg); }
.compare-table td.best .v-main::after { content: " ◎"; color: var(--good); font-weight: 800; }
.compare-table td .v-main { font-weight: 700; color: var(--forest-deep); }
.compare-table td .v-raw { display: block; font-size: .72rem; color: var(--ink-soft); margin-top: 2px; }
.compare-table td .reason { display: block; font-size: .72rem; color: var(--accent); margin-top: 3px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 52px; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 2rem; }
  .steps, .cat-grid { grid-template-columns: 1fr; }
  .hub-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0; top: 0; z-index: 70; max-height: 100vh; overflow-y: auto; border-radius: 0;
    transform: translateX(-100%); transition: transform .25s ease; width: 86%;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-filter-toggle { display: inline-flex; }
  .nav { gap: 14px; }
  .nav .nav-hide { display: none; }
}
@media (max-width: 520px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}

/* スマホの比較カゴ：ラベル＋ボタンを上段、製品スロットは下段で横スクロール */
@media (max-width: 640px) {
  .compare-bar .cb-container { gap: 8px; padding: 10px 14px; }
  .compare-bar .cb-row-main { flex-wrap: wrap; gap: 8px 10px; }
  .compare-bar .cb-label { order: 1; white-space: nowrap; font-size: .85rem; }
  .compare-bar .cb-clear { order: 2; margin-left: auto; padding: 8px 12px; font-size: .82rem; }
  .compare-bar .btn.accent { order: 3; padding: 9px 14px; }
  .compare-bar .cb-slots {
    order: 4; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto;
    gap: 6px; padding-bottom: 2px; -webkit-overflow-scrolling: touch;
  }
  .compare-bar .cb-slot { flex: 0 0 auto; white-space: nowrap; }
  .compare-bar .cb-dismissed-wrap { order: 5; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; padding-top: 6px; }
}

/* ---- 静的ランディング（製品/シーン/ブランド） ---- */
.landing-page main.landing { padding: 28px 0 100px; }
.landing-explore {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.landing-explore-title {
  margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; color: var(--forest-deep);
}
.landing-explore-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-bottom: 12px;
}
.landing-explore-row:last-child { margin-bottom: 0; }
.landing-explore-row > span {
  flex: 0 0 100%; font-size: .78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px;
}
.landing-explore .chips { gap: 6px; }
.landing-explore .chip-link { font-size: .78rem; padding: 5px 10px; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--forest); }
.landing-head { margin-bottom: 32px; }
.landing-kicker { margin: 0 0 8px; color: var(--ink-soft); font-size: .9rem; }
.landing-head h1 { margin: 0 0 12px; color: var(--forest-deep); font-size: 1.85rem; letter-spacing: .05em; }
.landing-lead { margin: 0 0 18px; color: var(--ink-soft); max-width: 62ch; line-height: 1.65; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.landing-tags, .landing-subnav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.landing-subnav span { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.chip-link {
  display: inline-block; font-size: .78rem; padding: 4px 10px; border-radius: 999px;
  background: var(--good-bg); color: var(--forest); border: 1px solid var(--moss);
}
.chip-link:hover { background: var(--forest); color: #fff; text-decoration: none; }
.landing-section h2 { font-size: 1.25rem; color: var(--forest-deep); margin: 0 0 8px; letter-spacing: .04em; }
.landing-note { font-size: .88rem; color: var(--ink-soft); margin: 0 0 16px; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.landing-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff;
}
.landing-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.landing-card h3 a { color: var(--forest-deep); }
.landing-meta { margin: 0 0 8px; font-size: .85rem; color: var(--ink-soft); }
.landing-spec { margin: 8px 0 0; font-size: .82rem; color: var(--ink-soft); }
.landing-card .scene-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.landing-card .scene-tags span { font-size: .72rem; background: var(--good-bg); color: var(--forest); padding: 2px 8px; border-radius: 999px; }
.landing-card .btn-compare-landing {
  margin-top: 10px; width: 100%; font: inherit; font-size: .82rem; font-weight: 700;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--forest-deep); cursor: pointer; transition: .12s;
}
.landing-card .btn-compare-landing:hover { background: var(--good-bg); border-color: var(--moss); }
.landing-card .btn-compare-landing.added {
  background: var(--forest); border-color: var(--forest); color: #fff;
}
.landing-head .btn-compare-landing {
  font: inherit; font-size: .88rem; font-weight: 700; padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--forest-deep); cursor: pointer;
}
.landing-head .btn-compare-landing.added {
  background: var(--forest); border-color: var(--forest); color: #fff;
}
.landing-page.hub-page main.hub { padding-bottom: 100px; }
.compare-bar-landing .btn.accent.disabled {
  opacity: .5; pointer-events: none; cursor: not-allowed;
}
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 28%; background: var(--sand); color: var(--forest-deep); font-weight: 700; }
.spec-table .v-raw { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

/* 免責事項・プライバシーポリシー */
.legal-page main.landing { padding-bottom: 60px; }
.legal-content { max-width: 72ch; }
.legal-content h2 {
  font-size: 1.08rem; color: var(--forest-deep); margin: 28px 0 10px; font-weight: 800;
}
.legal-content h3 {
  font-size: .98rem; color: var(--forest-deep); margin: 20px 0 8px; font-weight: 700;
}
.legal-content h2:first-of-type { margin-top: 20px; }
.legal-content p,
.legal-content li { font-size: .92rem; line-height: 1.75; color: var(--ink); }
.legal-content ul,
.legal-content ol { margin: 0 0 16px; padding-left: 1.4em; }
.legal-content li { margin-bottom: 6px; }
.legal-content .legal-updated { font-size: .85rem; color: var(--ink-soft); margin: 0 0 16px; }
.legal-content strong { color: var(--forest-deep); }
