/* お酒の図鑑3サイト共通の CSS(adapters/sake/assets/site.css → /assets/site.css)。
   旧 scotch-gin-db app/globals.css と app/charts.css を連結したもの。直したのは次の3点だけ(SAKE-SPEC §4・§5.5):
   - 広告の札 .ad-tag → .ad(kit の adLink の形)
   - 楽天カードの内側(kit の rakutenCardHtml の形。価格の枠 .rk-price・.rk-tax と到着待ちの枠 .rk-card--placeholder は消した)
   - フッターの免責の1行 .disclaimer-note を足した
   サイトの色は :root(whisky・amwhiskey)と html[data-site="gin"] のまま。 */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #20242b;
  --muted: #6b7280;
  --line: #e6e2d8;
  --accent: #6b3f2b;
  --accent-ink: #4a2b1d;
  --link: #1f5fa8;

  /* 伝聞ブロックの配色（編集ガイドライン準拠） */
  --belief-bg: #fff8db;    --belief-line: #e8cf52;  /* 業界の通説: 黄 */
  --anecdote-bg: #f3e7da;  --anecdote-line: #c69a6d; /* 逸話: 茶 */
  --joke-bg: #e7f0fb;      --joke-line: #7fb0e6;     /* 業界の小話: 青 */
  --grey-bg: #f0f0ef;      --grey-line: #c7c7c2;     /* 都市伝説/未確認: グレー */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

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

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ヘッダ／フッタ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .container {
  display: flex; align-items: baseline; gap: 16px;
  padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap;
}
.site-title { font-size: 20px; font-weight: 700; color: var(--accent-ink); }
.site-title a { color: inherit; }
.site-tagline { color: var(--muted); font-size: 13px; }
.site-nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
.site-footer {
  margin-top: 48px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; background: var(--surface);
}
.site-footer .container { padding-top: 20px; padding-bottom: 28px; }

main { padding-top: 28px; }

h1 { font-size: 28px; margin: 0 0 4px; }
h2 { font-size: 20px; margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
h3 { font-size: 16px; margin: 20px 0 8px; }
.lead { color: var(--muted); margin: 0 0 8px; }

/* 地域グリッド */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.region-card {
  display: block;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px;
  color: var(--ink); text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.region-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
}
.region-card .rc-head { display: flex; align-items: baseline; justify-content: space-between; }
.region-card .rc-name { font-weight: 700; font-size: 17px; color: var(--ink); }
.region-card .rc-count { color: var(--muted); font-size: 13px; }
.region-card .rc-blurb { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* 蒸溜所ヒーロー画像 */
.distillery-hero {
  width: 100%; max-height: 320px; object-fit: contain;
  border-radius: 10px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--line);
}

/* 閉鎖蒸溜所セクション見出し */
.hist-heading {
  font-size: 13px; font-weight: 600; color: var(--muted);
  margin: 14px 0 6px; border-bottom: none; letter-spacing: 0.02em;
  text-transform: none;
}

/* 稼働状況バッジ（一覧用） */
.status-badge {
  display: inline-block; font-size: 10px; line-height: 1; padding: 2px 6px;
  border-radius: 999px; margin-left: 5px; vertical-align: middle;
  white-space: nowrap; border: 1px solid var(--line); color: var(--muted);
  background: var(--bg);
}
.status-badge--demolished { color: #6b3030; background: #fdf0f0; border-color: #e0a0a0; }
.status-badge--closed     { color: #5a5020; background: #fdfae8; border-color: #d4c860; }
.status-badge--mothballed { color: #3a5a7a; background: #e8f4fd; border-color: #90c0e0; }
.status-badge--rebuilt    { color: #2a6b44; background: #e8f6ec; border-color: #80c89a; }

/* 一覧 */
.dist-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 8px 0; }
.dist-list a { padding: 3px 0; }
.dist-list .ja { color: var(--muted); font-size: 12px; margin-left: 6px; }
.dist-list--historical a { color: var(--muted); font-size: 14px; }

/* 蒸溜所概要文 */
.dist-description { margin: 16px 0 24px; line-height: 1.85; }
.dist-description p { margin: 0 0 1em; }
.dist-description p:last-child { margin-bottom: 0; }

/* 蒸溜所詳細 */
.facts-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; background: var(--surface); }
.facts-table th, .facts-table td { text-align: left; padding: 8px 12px; border: 1px solid var(--line); vertical-align: top; }
.facts-table th { width: 32%; background: #faf7f1; font-weight: 600; color: var(--accent-ink); }

.badge {
  display: inline-block; font-size: 11px; line-height: 1; padding: 3px 7px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  background: #fff; margin-left: 6px; vertical-align: middle; white-space: nowrap;
}
.badge.check { color: #8a6d1d; background: #fff8db; border-color: var(--belief-line); }
.badge.tier1 { color: #1d6b3a; background: #e6f6ec; border-color: #8cd0a6; }
.badge.tier2 { color: #1f5fa8; background: #e7f0fb; border-color: #7fb0e6; }

.empty-note {
  color: var(--muted); font-size: 14px; background: var(--surface);
  border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px;
}

/* 伝聞ブロック（見出し＋開示注記つき） */
.hearsay { border-radius: 8px; padding: 12px 14px; margin: 10px 0; border-left: 5px solid var(--grey-line); background: var(--grey-bg); }
.hearsay.belief   { background: var(--belief-bg);   border-left-color: var(--belief-line); }
.hearsay.anecdote { background: var(--anecdote-bg); border-left-color: var(--anecdote-line); }
.hearsay.joke     { background: var(--joke-bg);     border-left-color: var(--joke-line); }
.hearsay.legend, .hearsay.unconfirmed { background: var(--grey-bg); border-left-color: var(--grey-line); }
.hearsay .h-head { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.hearsay .h-note { color: var(--muted); font-size: 12px; margin-top: 6px; }

.legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 10px; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tier-table { width:100%; border-collapse: collapse; font-size: 14px; }
.tier-table th, .tier-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.tier-table th { background: #faf7f1; }

/* ─── SEO強化: 蒸溜所詳細ページ ─── */

/* 自動生成リード文（基本情報テーブルの前に表示） */
.page-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 4px 0 16px;
  padding: 10px 14px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

/* FAQ */
.faq-list { margin: 4px 0 0; }
.faq-list dt {
  font-weight: 700;
  margin: 14px 0 4px;
  color: var(--accent-ink);
}
.faq-list dd {
  margin: 0 0 0 0;
  padding: 0 0 10px 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

/* 購入CTAボタン（製品ページ用） */
.buy-cta { margin: 24px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.buy-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s;
}
.buy-button:hover { background: var(--accent-ink); text-decoration: none; }
.buy-button--amazon { background: #ff9900; color: #111; }
.buy-button--amazon:hover { background: #e68a00; }
.buy-button--rakuten { background: #bf0000; }
.buy-button--rakuten:hover { background: #990000; }

/* PR表記・補足ノート */
.affiliate-note,
.meta-note { font-size: 12px; color: var(--muted); margin: 6px 0; }
.pr-notice {
  font-size: 12px;
  color: var(--muted);
  background: #faf7f1;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 12px;
}

/* 最終更新日など軽量メタ情報 */
.meta-updated { font-size: 12px; color: var(--muted); margin-top: 28px; }

/* フッター */
.age-warning {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ジン: 製品一覧フィルター */
.filter-bar { margin-bottom: 16px; }
.filter-input {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
.filter-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* 製品一覧の蒸溜所名サブテキスト */
.dist-list .rc-count {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

/* ─── 銘柄カードグリッド ─── */
.bottle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 12px 0 4px;
}
.bottle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bc-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
.bc-sub {
  font-size: 11px;
  color: var(--muted);
  min-height: 14px;
}
.bc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
}
.bc-meta span {
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--muted);
}
.bc-links { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.bc-buy {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.bc-buy:hover { background: var(--accent-ink); text-decoration: none; }
.bc-buy--amazon { background: #ff9900; color: #111; }
.bc-buy--amazon:hover { background: #e68a00; }
.bc-buy--rakuten { background: #bf0000; }
.bc-buy--rakuten:hover { background: #990000; }
.bc-pending {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: auto;
}

/* ─── 製品画像 ─── */
.product-figure { margin: 4px 0 18px; }
.product-image {
  display: block;
  max-width: 280px;
  max-height: 360px;
  width: auto; height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px;
}
.product-image--placeholder {
  width: 200px; height: 240px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 56px;
  border-style: dashed;
}
.product-image--placeholder .pi-note { font-size: 12px; }

/* 製品一覧（サムネイル付きカード） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin: 8px 0;
}
.product-card {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
}
.product-thumb {
  flex: 0 0 auto;
  width: 48px; height: 60px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--bg);
}
.product-thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--muted);
  border: 1px dashed var(--line);
}
.product-card .pc-body { display: flex; flex-direction: column; min-width: 0; }
.product-card .pc-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.product-card .ja { color: var(--muted); font-size: 12px; }
.product-card .rc-count { color: var(--muted); font-size: 11px; margin-top: 2px; }

/* ジンサイト テーマ */
html[data-site="gin"] {
  --bg: #f5faf6;
  --accent: #2a6b44;
  --accent-ink: #1a4d2e;
  --link: #1a6b8a;
  --line: #d4e6da;
}
html[data-site="gin"] .facts-table th,
html[data-site="gin"] .tier-table th {
  background: #eef6f1;
}

/* 銘柄カードのボトル画像 */
.bc-img { display: flex; justify-content: center; align-items: center; height: 120px; margin-bottom: 8px; }
.bc-img .product-thumb { max-height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.bc-img .product-thumb--placeholder { font-size: 40px; opacity: .5; }

/* 404（not-found）ページ */
.notfound { padding: 24px 0 40px; }
.notfound h1 { margin-bottom: 12px; }
.nf-links { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nf-links li a {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--border, #ddd);
  border-radius: 6px; text-decoration: none;
}
.nf-links li a:hover { background: rgba(0, 0, 0, 0.04); }
.nf-note { font-size: 0.9em; opacity: 0.8; margin-top: 16px; }

/* 蒸溜所ページの製品カード内サムネイル（ジンのみ） */
.product-card .pc-img {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 56px; flex: 0 0 44px; margin-right: 10px;
}
.product-card .pc-img .product-thumb { max-height: 56px; max-width: 44px; width: auto; object-fit: contain; }
.product-card .pc-img .product-thumb--placeholder { font-size: 22px; opacity: .45; }

/* ガイド記事本文 */
.guide-body { margin: 8px 0 4px; }
.guide-body p { margin: 0 0 14px; line-height: 1.9; }
.guide-body h2 { margin: 28px 0 10px; }
.guide-body h3 { margin: 22px 0 8px; font-size: 16px; }
.guide-body h4 { margin: 18px 0 6px; font-size: 15px; }
.guide-body ul { margin: 0 0 14px; padding-left: 1.4em; }
.guide-body li { margin-bottom: 6px; line-height: 1.8; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; }
.guide-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.guide-table th, .guide-table td {
  text-align: left; padding: 8px 12px; border: 1px solid var(--line); vertical-align: top;
  white-space: normal;
}
.guide-table th { background: #faf7f1; font-weight: 600; color: var(--accent-ink); }

/* Amazonアソシエイト運営規約 第5条の定型文。「目立つように明示」が条件なので
   フッターの他の文字(--muted)より濃い本文色にし、小さくしすぎない。 */
.amazon-disclosure {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 12px;
}

/* 親和性商品(キット)枠 */
.kit { margin-top: 28px; }
.kit-grid {
  list-style: none; padding: 0; margin: 8px 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.kit-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.kit-role { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.kit-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.kit-reason { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1 1 auto; }
.kit-buy {
  align-self: flex-start; margin-top: 4px;
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 5px;
  background: #ff9900; color: #111;
}
.kit-buy:hover { background: #e68a00; text-decoration: none; }

/* 定番銘柄枠 */
.staples { margin-top: 28px; }
.staple-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 8px 0;
}
.staple-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.staple-main { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.staple-main:hover { text-decoration: none; }
.staple-main .pc-body { display: flex; flex-direction: column; min-width: 0; }
.staple-main .pc-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.staple-main .ja { color: var(--muted); font-size: 12px; }
.staple-main .rc-count { color: var(--muted); font-size: 11px; margin-top: 2px; }
.staple-main .pc-img { display: flex; align-items: center; justify-content: center; width: 44px; height: 56px; flex: 0 0 44px; }
.staple-main .pc-img .product-thumb { max-height: 56px; max-width: 44px; width: auto; object-fit: contain; }
.staple-main .pc-img .product-thumb--placeholder { font-size: 22px; opacity: .45; }
.staple-buy {
  align-self: flex-start; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 5px;
  background: #ff9900; color: #111;
}
.staple-buy:hover { background: #e68a00; text-decoration: none; }

/* 銘柄ページ: 出典リスト */
.src-list { font-size: 12px; color: var(--muted); padding-left: 1.2em; margin: 6px 0 0; }
.src-list li { margin: 2px 0; word-break: break-all; }

/* ── サイト内検索(ヘッダー/トップ) ── */
.sbox { position: relative; display: flex; gap: 6px; }
.sbox input[type="search"] {
  flex: 1 1 auto; min-width: 0; font-size: 16px; line-height: 1.3;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.sbox input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,63,43,.12); }
.sbox-go { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.sbox-go:hover { background: var(--accent-ink); }
.sbox--header { flex: 1 1 260px; max-width: 380px; }
.sbox--header input[type="search"] { padding: 8px 12px; }
.sbox--header .sbox-go { min-height: 40px; }
.sbox--hero { margin: 14px 0 12px; }
.sbox--hero input[type="search"] { font-size: 17px; padding: 13px 14px; border: 2px solid var(--accent); }
.sres {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 70vh; overflow: auto;
  margin: 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10); text-align: left;
}
.sres li { margin: 0; }
.sres li a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; color: var(--ink); min-height: 44px; justify-content: center; }
.sres li a:hover, .sres li[aria-selected="true"] a { background: #f4efe7; text-decoration: none; }
.sres .sr-name { font-size: 14px; line-height: 1.35; }
.sres .sr-name mark { background: #ffe7a3; color: inherit; padding: 0 1px; }
.sres .sr-sub { font-size: 12px; color: var(--muted); }
.sres li.recent a::before { content: '↺ '; color: var(--muted); }
.sres li.more a { color: var(--link); font-weight: 600; }
.sres li.hint, .sres li.none { padding: 9px 12px; font-size: 12px; color: var(--muted); }
html[data-site="gin"] .sres li a:hover, html[data-site="gin"] .sres li[aria-selected="true"] a { background: #eaf4ed; }
html[data-site="amwhiskey"] .sres li a:hover, html[data-site="amwhiskey"] .sres li[aria-selected="true"] a { background: #f6ede4; }

/* ── トップのファーストビュー ── */
.hero { display: grid; gap: 20px; margin: 4px 0 8px; align-items: center; }
.hero--illust { grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); }
.hero-title { font-size: 30px; line-height: 1.3; margin: 0 0 8px; text-wrap: balance; }
.hero-lead { color: var(--muted); margin: 0; }
.hero-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.hero-entry { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-height: 44px; }
.hero-entry:hover { border-color: var(--accent); text-decoration: none; }
.hero-entry .he-title { font-weight: 700; color: var(--accent-ink); }
.hero-entry .he-note { font-size: 12px; color: var(--muted); }
.hero-stats { font-size: 12px; color: var(--muted); margin: 0; }
.hero-img { width: 100%; height: auto; border-radius: 10px; display: block; }
@media (max-width: 720px) {
  .hero--illust { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-height: 180px; object-fit: cover; }
  .hero-title { font-size: 24px; }
  .site-header .container { gap: 10px; }
  .sbox--header { flex-basis: 100%; max-width: none; order: 3; }
  .site-nav { margin-left: 0; width: 100%; flex-wrap: wrap; column-gap: 14px; row-gap: 4px; }
  .site-nav a { white-space: nowrap; }
}

/* 見出し横の挿絵(産地・スタイル・種別・ガイド) */
.head-illust { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 4px 0 12px; }
.head-illust h1 { flex: 1 1 280px; min-width: 0; margin: 0; }
.head-illust img { width: 180px; height: auto; border-radius: 10px; flex: 0 0 auto; }
@media (max-width: 720px) { .head-illust img { width: 100%; max-height: 160px; object-fit: cover; } }

.nowrap { white-space: nowrap; }

/* 「広告」ラベル・PR表記・主CTA */
.ad { display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 10px; line-height: 16px; border: 1px solid currentColor; border-radius: 3px; opacity: .8; vertical-align: 1px; }
.buy-button .ad, .kit-buy .ad, .staple-buy .ad, .pc-buy .ad, .bc-buy .ad { border-color: rgba(0,0,0,.35); opacity: .85; }
.pr-inline { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.buy-button { min-height: 44px; display: inline-flex; align-items: center; }

/* 一覧カード(購入リンク付き)・絞り込みチップ */
.product-card--buy { flex-direction: column; align-items: stretch; gap: 6px; }
.product-card--buy .pc-main { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.product-card--buy .pc-main:hover { text-decoration: none; }
.pc-buy { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 6px; background: #ff9900; color: #111; min-height: 36px; display: inline-flex; align-items: center; }
.pc-buy:hover { background: #e68a00; text-decoration: none; }
.facet-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0; }
.facet-bar .filter-input { flex: 1 1 260px; min-height: 44px; font-size: 16px; }
.facet-sort { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.facet-sort select { min-height: 40px; font-size: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); padding: 0 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.chip-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.chip { min-height: 36px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip--on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip--reset { margin-left: 8px; font-size: 12px; min-height: 28px; }
.chip-n { margin-left: 4px; font-size: 11px; opacity: .7; }
.more-row { text-align: center; margin: 12px 0; }
.more-btn { min-height: 44px; padding: 10px 20px; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.more-btn:hover { background: #f4efe7; }

/* 図鑑カードの挿絵・トップの数字カード・目次 */
.region-card .rc-img { display: block; width: 100%; height: auto; border-radius: 6px; margin-bottom: 8px; aspect-ratio: 3/2; object-fit: cover; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 8px 0 0; }
.stat-card { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stat-card b { display: block; font-size: 22px; line-height: 1.2; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stat-card span { font-size: 12px; color: var(--muted); }
.toc { margin: 8px 0 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; }
.toc summary { cursor: pointer; font-weight: 600; }
.toc ol { margin: 6px 0 0; padding-left: 1.4em; }
.toc li { margin: 2px 0; }
.guide-updated { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.pi-svg { width: 100%; height: 100%; display: block; }
.product-thumb--placeholder .pi-svg { width: 28px; height: 40px; }
.status-chip { display: inline-block; font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); margin-left: 6px; }

/* ハブページ「読むなら」 */
.guide-links-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.guide-links-list li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.guide-links-list a { font-weight: 600; }
.guide-links-list .gl-desc { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* 2026-09-28 UX評価の修正 */
/* トップは Hero に大きな検索窓があるので、ヘッダーの検索窓は重複させない */
body:has(.hero) .sbox--header { display: none; }
@media (max-width: 720px) {
  .pc-buy { min-height: 44px; padding: 8px 14px; font-size: 13px; }
  .site-tagline { display: none; }
  .site-header .container { padding-top: 12px; padding-bottom: 10px; }
}
@media (max-width: 480px) {
  .hero-entries { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
  .stat-card b { font-size: 20px; }
}
/* 一覧の 49 件目以降(JS なし・クロール用の名前だけの一覧)。JS が動くと消える */
.pc-rest { columns: 2; column-gap: 16px; list-style: none; padding: 0; margin: 8px 0; font-size: 13px; }
.pc-rest li { break-inside: avoid; padding: 3px 0; border-bottom: 1px dotted var(--line); }
.pc-rest .ja { color: var(--muted); font-size: 12px; }
@media (min-width: 721px) { .pc-rest { columns: 3; } }
/* 蒸溜所ページ H1 の英名(入れ子括弧をやめて下段に) */
.h1-en { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* 楽天市場の商品カード(kit/affiliate/html.mjs rakutenCardHtml の形・ビルド時に埋め込み)。この枠には楽天以外のリンクを置かない。価格は出さない
   構造: div.rk-card[data-rk-key] > a > img ・ div.rk-body > div.rk-name > a + span.ad ・ div.rk-shop ・ div.rk-credit */
.rk-card { display: flex; gap: 12px; align-items: center; border: 1px solid #f0c8c8; background: #fff8f8; border-radius: 8px; padding: 10px 12px; margin: 10px 0 14px; max-width: 460px; }
.rk-card > a { flex: none; display: block; }
.rk-card > a > img { width: 128px; height: 128px; object-fit: contain; background: #fff; border-radius: 4px; display: block; }
.rk-card .rk-body { min-width: 0; font-size: 14px; }
.rk-card .rk-name a { font-weight: 700; color: #bf0000; }
.rk-card .rk-name .ad { border-color: rgba(191,0,0,.4); }
.rk-card .rk-shop { font-size: 12px; color: var(--muted); }
.rk-card .rk-credit { font-size: 11px; color: var(--muted); margin-top: 4px; }
.rk-card .rk-credit a { color: inherit; }

/* 楽天カード: 一覧向けの小型 */
.rk-card--compact { gap: 8px; padding: 6px 8px; margin: 6px 0 0; max-width: none; font-size: 12px; }
.rk-card--compact > a > img { width: 48px; height: 48px; }
.rk-card--compact .rk-body { font-size: 12px; }
.rk-card--compact .rk-credit { font-size: 10px; margin-top: 2px; }

/* 定番ページの比較表(details で畳む) */
.cmp { margin: 8px 0 16px; }
.cmp > summary { cursor: pointer; font-size: 14px; color: var(--accent-ink); font-weight: 600; padding: 6px 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 520px; }
.cmp-table th, .cmp-table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: middle; white-space: nowrap; }
.cmp-table th { font-weight: 600; color: var(--muted); font-size: 12px; background: var(--surface); position: sticky; top: 0; }
.cmp-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.cmp-table td:first-child { white-space: normal; min-width: 160px; }
.pc-buy--sm { min-height: 32px; padding: 4px 10px; font-size: 12px; }
@media (max-width: 720px) { .pc-buy--sm { min-height: 40px; } }

.src-block { margin: 10px 0 14px; }

/* 見出しの改行位置: 語の途中や「を、」の前で折らず、読点・助詞の後で折る。入りきらない語だけは折る */
.hero-title, h1 { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }

/* 同じ蒸溜所の複数銘柄(BrandFamilyTable) */
.bf { margin: 16px 0 20px; }
.bf-table td { white-space: normal; vertical-align: top; }
.bf-table td:first-child .ja { display: block; font-size: 11px; color: var(--muted); }
.bf-buy { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pc-buy--rakuten { background: #bf0000; color: #fff; }
.bf-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.bf-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.bf-name { font-weight: 600; }
.bf-name .ja { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.bf-line { font-size: 13px; margin: 2px 0; }
.bf-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bf-more { margin: 8px 0 0; font-size: 14px; }

/* 比較表: スマホはカード表示(横スクロールさせない) */
@media (max-width: 720px) {
  .bf-table { min-width: 0; }
  .bf .table-wrap { overflow-x: visible; }
  .bf-table thead { display: none; }
  .bf-table, .bf-table tbody, .bf-table tr, .bf-table td { display: block; width: 100%; }
  .bf-table tr { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; background: var(--surface); }
  .bf-table td { border: 0; padding: 3px 0; white-space: normal; }
  .bf-table td[data-label]::before { content: attr(data-label) "："; color: var(--muted); font-size: 12px; margin-right: 4px; }
  .bf-table td.bf-brand { font-size: 15px; padding-bottom: 4px; border-bottom: 1px dotted var(--line); margin-bottom: 4px; }
  .bf-table td.bf-brand .ja { display: inline; margin-left: 6px; }
  .bf-table td.bf-buy-cell { padding-top: 6px; }
}

/* 閉鎖蒸溜所ページ: この名前の現行銘柄 */
.name-successor { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface); padding: 10px 14px; margin: 10px 0 16px; }
.name-successor .ns-title { font-weight: 700; margin: 0 0 4px; }
.name-successor p { margin: 4px 0; }
.name-successor .ns-links a { font-weight: 600; }
.name-successor .ns-buy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* トップページの定番枠(TopPicks) */
.top-picks { margin: 8px 0 28px; }
.top-picks .tp-more { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.tp-shuffle { min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.tp-shuffle:hover { border-color: var(--accent); }

/* 度数・熟成年数の分布グラフ(app/_components/DistChart.tsx)。
   globals.css とは分けて置く。色はサイトごとに切り替わる CSS 変数(--accent / --line / --muted)を使う。 */
.dist-charts { margin-top: 28px; }
/* 2 列まで。グラフが 1 つのページでも半幅にとどめ、文字が引き伸ばされないようにする */
.dist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 12px 24px;
}
.dist-chart {
  margin: 0;
  padding: 10px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-width: 0;
}
.dist-chart-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.dist-chart svg { display: block; width: 100%; max-width: 400px; height: auto; overflow: visible; }
.dist-label { font-size: 13px; fill: var(--muted); }
.dist-count { font-size: 13px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.dist-bar { fill: var(--accent); }
.dist-row--unknown .dist-bar { fill: var(--muted); fill-opacity: 0.4; }
.dist-row:hover .dist-bar { fill-opacity: 0.8; }
.dist-row--unknown:hover .dist-bar { fill-opacity: 0.6; }
.dist-axis { stroke: var(--line); stroke-width: 1; }
.dist-note { font-size: 12px; color: var(--muted); margin: 4px 0 0; }

/* フッターの免責の1行(新設) */
.disclaimer-note { margin: 0 0 8px; }
