/* =========================================================
   NOOK — style.css
   白基調・黒とグレーの文字・システムのサンセリフ。装飾は置かず、画面の広さを写真と情報に使う。
   ページは分かれていて（トップ／一覧・エリア（場所で絞るのシートつき）／詳細／このサイトについて）、
   ヘッダーはロゴとメニューだけ。モバイルファースト（〜820px／821px〜）。
   文字の大きさは 0.875rem（補助・UI の下限）/ 1rem（本文・読み物・主要 UI）/ 1.0625rem / 1.25rem / 1.625rem・1.875rem（詳細の店名、スマホ・PC）だけを使う。
   標準設定（ルート 16px）でそれぞれ 14 / 16 / 17 / 20 / 26・30px。ブラウザの文字サイズ設定に追従するよう rem で指定し、html にも font-size は置かない。
   14px（0.875rem）未満相当は使わない。文字以外の寸法は px のまま。
   上下の余白（margin・padding・行の間）は :root の余白の階段（--sp-1〜9）からだけ取る。左右の余白と部品の高さは px のまま。
   近いものは小さな段、切れ目は大きな段：ひと組の2行 4 ＜ 写真と文字 8・12 ＜ 見出しと中身 16 ＜ 題と中身 24 ＜ カードの行間 ＜ ブロック ＜ セクション。
   押せるものは 40〜44px。ホバーは (hover: hover) and (pointer: fine) の中だけ（指で触ったあとに残らないように）。
   強制カラーモード（Windows のハイコントラスト等）では、末尾の節でシステムカラーを指定し、境界・選択中・フォーカス・無効を見分けられるようにする（通常表示には効かない）。
   ダークモード（端末の設定が暗色）では、末尾近くの節で色の変数を暗色に差し替える（ライトの見た目は変えない）。
   ========================================================= */
:root {
  --ink: #111;
  --ink-2: #4d4d4d;
  --ink-3: #737373;      /* 白地で 4.7:1。小さな補助情報の下限 */
  --ink-4: #767676;      /* 白地で 4.54:1（4.5:1 を満たす最も薄いグレー）。0件の選択肢など、押せるが弱めたいもの */
  --line: #e7e7e7;
  --soft: #f3f3f3;
  --bg: #fff;
  /* 余白の階段：4 ひと組の中の2行（店名と場所、名前と件数）／8 写真と添え書き、小さなタイルの写真と名前／12 線で区切る事実の行の上下、店のカードの写真と店名／
     16 見出しと中身、操作の列どうし／24 ページの題と中身、ひとまとまりの中の段落ち／32・48・64・96 は下の4つの役割で使う */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  /* 画面の幅で変わる4つ（PC は1段ずつ上げる。「デスクトップ」の節）。内側ほど小さく、外側ほど大きい */
  --page-top: var(--sp-6);   /* ヘッダーの下からページの題まで */
  --card-gap: var(--sp-6);   /* 店のカードの行間 */
  --block-gap: var(--sp-7);  /* ページの中のブロックの切れ目（カードの並びとページ送り、近くのエリア、県と県） */
  --sec-gap: var(--sp-8);    /* セクションの切れ目（トップの各節、プラン・特集どうし）と、ページの終わりからフッターまで */
  --head-h: 56px;        /* ヘッダーの高さ */
  --apply-h: 64px;
  --content-w: 1128px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --motion: 0.2s ease-out; /* 動きの長さと緩急（末尾の「動き」の節でだけ使う）。0.25s を超えない */
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
/* 操作部品：ダブルタップ拡大を待たずに反応させ、長押しで文字が選択されないように（本文や住所は選択できるまま） */
button, a, summary, label, select { touch-action: manipulation; }
button, .quick-btn, .menu a { -webkit-user-select: none; user-select: none; }
svg { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* ページを移ったときに見出しへ送るフォーカスは、枠を出さない */
[tabindex="-1"]:focus { outline: none; }
mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.spacer { flex: 1; }
.sl { color: var(--ink-4); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 4px;
  background: var(--bg); color: var(--ink);
  font-size: 0.875rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s ease-out;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--soft); } }
.btn-primary { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: #333; } }
.btn:not(:disabled):active { transform: scale(0.96); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.text-btn {
  min-height: 36px; padding: 6px 0; border: 0; background: none;
  font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #bbb;
}
@media (hover: hover) and (pointer: fine) { .text-btn:hover { text-decoration-color: currentColor; } }
.text-link { padding: 0; border: 0; background: none; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #bbb; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-color: currentColor; } }
.text-btn:not(:disabled):active, .text-link:active { opacity: 0.55; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink);
}
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--soft); } }
.icon-btn:not(:disabled):active { background: var(--soft); }

/* =========================================================
   ヘッダー：ロゴとメニュー
   ========================================================= */
.top {
  position: sticky; top: 0; z-index: 20;
  padding-top: var(--safe-t);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--line); /* 下を流れる写真との境目 */
}
.top-row {
  display: flex; align-items: center; height: var(--head-h);
  max-width: var(--content-w); margin: 0 auto; padding: 0 6px 0 16px;
}
.logo { display: block; color: var(--ink); padding: 16px 0; }
/* 横組みロックアップ 638:180。高さ24px＝ガイドの最小（クリアスペース D＝7.2px は上下の余白16pxで確保） */
.logo svg { display: block; width: 85px; height: 24px; }
/* 言語の切り替え（JA / EN）：メニューの左に小さな文字で。今の言語だけ黒の太字、もう一方はグレー。押せる高さは 44px */
.lang-switch { display: flex; align-items: center; margin-right: 2px; }
.lang-btn {
  min-width: 36px; height: 44px; padding: 0 8px; border: 0; background: none;
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0.06em; color: var(--ink-3);
}
.lang-btn[aria-pressed="true"] { font-weight: 700; color: var(--ink); }
.lang-sep { font-size: 0.875rem; color: var(--ink-4); }
@media (hover: hover) and (pointer: fine) { .lang-btn:hover { color: var(--ink); } }
.lang-btn[aria-pressed="false"]:active { opacity: 0.55; }

/* メニュー：スマホはヘッダーの下に全幅で、PC は右に小さく。選ぶ・外側を押す・Esc で閉じる */
.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: var(--sp-2) 0 var(--sp-3); background: var(--bg); border-bottom: 1px solid var(--line);
}
.menu a {
  display: flex; align-items: center; min-height: 48px; padding: 0 16px;
  font-size: 1rem; color: var(--ink-2); text-decoration: none;
}
.menu a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.menu a:active { background: var(--soft); }
@media (hover: hover) and (pointer: fine) { .menu a:hover { background: var(--soft); color: var(--ink); } }
.menu-scrim { position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, 0.16); }
body.is-menu { overflow: hidden; }
/* ヘッダーは全ページで画面の上に固定（.top の sticky）。効くのは、スクロールするのがページ全体のあいだだけ：
   html・body に高さや overflow-x を付けたり、ヘッダーを overflow・transform のある箱に入れたりしない。
   固定したヘッダーの下に隠れないように、ページ内の移動やフォーカスの送り先（各ページ・各セクションの見出し、
   セクションやプランのまとまり、検索の欄、タブ）には、ヘッダーの高さ＋24px を上に見込む。
   式は県の見出し（.pref-sec）と同じ。ページ送りの先（#cafeList）だけは写真の並びなので 16px */
h1, h2, h3, .sec, .detail-sec, .plan, .search input[type="search"], .tab { scroll-margin-top: calc(var(--head-h) + var(--safe-t) + var(--sp-5)); }

/* =========================================================
   ページの共通
   ========================================================= */
.page { max-width: var(--content-w); margin: 0 auto; padding: 0 16px; }
.sec { padding-top: var(--sec-gap); }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--sp-4); }
.sec-head h2 { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }
.sec-meta { font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* 見出しの右の「すべて見る」：見た目は小さな文字、押せる高さは上下に広げて 44px 前後 */
.sec-link {
  margin: -12px 0 -12px auto; padding: 12px 0;
  font-size: 0.875rem; color: var(--ink-2); white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #bbb;
}
@media (hover: hover) and (pointer: fine) { .sec-link:hover { color: var(--ink); text-decoration-color: currentColor; } }

/* ページの題（一覧・エリア・街を歩く・特集）：ヘッダーの下に --page-top、題の下に 24。どのページも同じ位置から始まる */
.list-head { padding: var(--page-top) 0 var(--sp-5); }
.list-head h1 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; word-break: auto-phrase; }
.list-eyebrow { margin-bottom: var(--sp-1); font-size: 0.875rem; color: var(--ink-3); }
.list-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
/* エリアのページの「街の顔ぶれ」：見出しの下の小さな1行。長ければ折り返す */
.area-summary { margin-top: var(--sp-1); font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---------- 検索 ---------- */
.search {
  display: flex; align-items: center; gap: 6px;
  height: 44px; margin: 0 0 var(--sp-4); padding: 0 4px 0 12px;
  background: var(--soft); border-radius: 10px;
}
.search-icon { width: 18px; height: 18px; color: var(--ink-3); }
.search input[type="search"] {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none;
  font-size: 1rem; /* iOS が拡大しない大きさ */
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search:focus-within { box-shadow: 0 0 0 1.5px var(--ink); }
.search-clear { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink-3); }
.search-clear svg { width: 18px; height: 18px; }

/* ---------- トップ ---------- */
/* 上から タグラインと掲載数 → 検索 → 今日のピックアップの写真 → 目的 → エリア → 回遊プラン。
   セクションの区切りは線や地の色ではなく余白で取る（.top-sec はトップのセクションだけに付く。場所で絞るのシートの県の節は .pref-sec で別に取る）。
   タグラインと検索はひと組（間は 24）。タグラインの上と、検索から最初のセクションまではブロックの切れ目（--block-gap）で、
   写真が早く出るようにセクションの切れ目（--sec-gap）より1段小さい。セクションどうしは .sec の --sec-gap */
.concept { padding: var(--block-gap) 0 var(--sp-5); }
.concept-tagline { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.06em; word-break: auto-phrase; text-wrap: balance; }
.concept-fact { margin-top: var(--sp-1); font-size: 0.875rem; letter-spacing: 0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.search-top { margin-bottom: 0; }
.search-top + .top-sec { padding-top: var(--block-gap); }
.top-sec .sec-head h2 { font-weight: 600; letter-spacing: 0.04em; }

/* ---------- 写真（タイル・詳細で共通） ---------- */
.ph {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--soft); border-radius: 3px;
  container-type: inline-size;
}
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
/* 写真の縁：白っぽい写真でも白地に溶けないよう、内側にごく薄い線 */
.ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); pointer-events: none; }
/* 写真の無い店：どこでも同じ形。淡い地に、線画のアイコンと小さな「NO PHOTO」 */
.ph.is-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
  color: var(--ink-4);
}
.ph.is-empty::after { display: none; }
.ph-none-ic { width: 28px; height: 28px; }
.ph-none-label { font-size: 0.875rem; font-weight: 500; line-height: 1; letter-spacing: 0.12em; color: var(--ink-3); }
@container (max-width: 120px) {
  .ph-none-ic { width: 22px; height: 22px; }
  .ph.is-empty { gap: var(--sp-1); }
  .ph-none-label { letter-spacing: 0.04em; }
}
@container (min-width: 440px) {
  .ph-none-ic { width: 36px; height: 36px; }
}

/* ---------- 店のタイル（今日のピックアップ・一覧） ---------- */
/* カードの中：写真 → 12 → 店名 → 4 → 場所・メタ。カードどうしの行間（--card-gap）はその倍より大きく取り、1枚がひとまとまりに見えるようにする */
.tile-a { display: block; text-decoration: none; color: inherit; -webkit-touch-callout: none; }
@media (hover: hover) and (pointer: fine) {
  .tile-a:hover .ph img { opacity: 0.86; }
  .tile-a:hover .tile-name { text-decoration: underline; text-underline-offset: 3px; }
}
.tile-a:active .ph img { opacity: 0.8; transition-duration: 0.08s; }
.tile-name {
  margin-top: var(--sp-3); font-size: 0.875rem; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* メタ（エリア／ラベル／食べログ／駅）は3行まで。スマホの2列では駅が3行目に来る。
   駅は末尾に置き、切れても食べログの点数は残す */
.tile-meta {
  margin-top: var(--sp-1); font-size: 0.875rem; line-height: 1.5; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.meta-st { display: inline-block; max-width: 100%; }

/* 今日のピックアップ（トップだけ）：写真が主役のグリッド。文字は店名とエリアだけで、列と間隔は .grid に揃える */
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap) 12px; }

/* エリアのタイル（トップ）：店のカードより小さいので、中も行間も1段ずつ小さい（写真 → 8 → 名前 → 4 → 件数、行間 24） */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5) 8px; }
.area-btn { display: block; text-decoration: none; color: inherit; }
.area-btn .ph { aspect-ratio: 1 / 1; }
@media (hover: hover) and (pointer: fine) {
  .area-btn:hover .ph img { opacity: 0.86; }
  .area-btn:hover .area-name { text-decoration: underline; text-underline-offset: 3px; }
}
.area-btn:active .ph img { opacity: 0.8; transition-duration: 0.08s; }
.area-name { display: block; margin-top: var(--sp-2); font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.area-n { display: block; margin-top: var(--sp-1); font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* 並びの下のボタン（すべてのエリア・もっと見る）：上の並びの行間と同じだけ空ける（現在地の並びは下で --card-gap） */
.more-btn {
  display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: var(--sp-5);
  border: 1px solid var(--line); border-radius: 4px; background: var(--bg);
  font-size: 0.875rem; text-decoration: none; font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) { .more-btn:hover { border-color: var(--ink); } }
.more-btn:active { background: var(--soft); }

/* 場所で絞るのシートの「エリアで探す」：写真のタイルではなく、都道府県ごとのエリア名の索引（名前と掲載数だけ）。
   タブの下に都道府県の一列（文字だけ。押すとその県の見出しへ送る。スマホは折り返さず横に流す）。
   県と県の区切りは余白で取り、線・地の色・枠は足さない */
/* 索引の上の絞り込みの欄（エリアで探す・駅で探す）：見た目は一覧の検索欄（.search）のまま、タブの下に置く。
   タブとの間はタブ側（.tabs）の 24px だけで取る。当てはまるエリア・駅が無いときの一行は、現在地タブの上の一行と
   同じ大きさ・色（空のあいだは高さを取らない） */
.search-areas { margin: 0 0 var(--sp-1); }
.area-none { font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); }
.area-none:not(:empty) { padding-top: var(--sp-5); }
.pref-jump { margin: 0 -16px; }
.pref-jump ul {
  display: flex; gap: 4px; padding: 0 8px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pref-jump ul::-webkit-scrollbar { display: none; }
.pref-jump li { flex: none; }
.pref-jump-btn {
  min-height: 44px; padding: 0 8px; border: 0; background: none;
  font-size: 0.875rem; letter-spacing: 0.04em; color: var(--ink-2); white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .pref-jump-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
}
.pref-jump-btn:active { opacity: 0.55; }
.pref-jump-btn:focus-visible { outline-offset: -2px; }
/* 県の節：県と県はブロックの切れ目。見出しの下は 8（索引の行が上下に 12 ずつ持つので、見た目は見出しと中身の 16 より少し広い 20） */
.pref-sec { padding-top: var(--sp-5); }
.pref-sec + .pref-sec { padding-top: var(--block-gap); }
.pref-sec .sec-head { margin-bottom: var(--sp-2); }
/* 見出しはトップ・一覧と同じ太さと字間。送った先でヘッダーの下に隠れないよう、上に余白を見込む */
.pref-sec .sec-head h2 { font-weight: 600; letter-spacing: 0.04em; scroll-margin-top: calc(var(--head-h) + var(--safe-t) + var(--sp-5)); }
/* 索引：スマホ2列。1行は名前のすぐ右に掲載数（グレー）。押せる高さは 44px 前後。
   長い名前は「・」の後ろで折り返し、街の名前の途中では切らない */
.area-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.area-row {
  display: block; padding: var(--sp-3) 0;
  font-size: 0.875rem; line-height: 1.5; color: inherit; text-decoration: none;
  word-break: keep-all; overflow-wrap: anywhere;
}
.area-row-n { margin-left: 2px; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .area-row:hover .area-row-name { text-decoration: underline; text-underline-offset: 3px; }
}
.area-row:active { opacity: 0.55; }

/* 場所で絞るのシートのタブ（エリアで探す／駅で探す／現在地付近で探す）。今のタブは文字の濃さと下線だけで示す
   （太さは変えないので、切り替えても幅が動かない）。スマホは3つで幅を分け（文字の長さに応じて。320px 幅でも1行に収まる）、PC は文字の幅で左に寄せる。
   下の 24px がタブとパネルの先頭の間（3つのパネルとも先頭は上の余白を持たないので、切り替えても位置がそろう） */
.tabs { display: flex; margin: 0 0 var(--sp-5); border-bottom: 1px solid var(--line); }
.tab {
  position: relative; flex: auto; min-width: 0; min-height: 44px; padding: 0 4px; border: 0; background: none;
  font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--ink-3);
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--ink); } }
.tab[aria-selected="false"]:active { opacity: 0.55; }
.tab:focus-visible { outline-offset: -2px; }
/* 場所で絞る（一覧・エリアのページ）：クイック絞り込みの下、絞り込みの行の上に、横幅いっぱいの細い行。
   見た目は絞り込みの行（.facets-bar / .facet-toggle）と同じ作法：上に細い線、高さ 44px、ラベルは太字、
   今の場所の条件はラベルに続けてグレーの細字で（長ければ末尾を省く）。右端の小さな矢印はシートを開く印 */
.place-row {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0;
  min-height: 44px; padding: 0; border: 0; border-top: 1px solid var(--line); background: none;
  font-size: 0.875rem; font-weight: 600; text-align: left;
}
.place-cur { flex: 1; min-width: 0; font-weight: 400; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-row-ic { width: 18px; height: 18px; color: var(--ink-3); transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .place-row:hover .place-row-ic { color: var(--ink); } }
.place-row:active { opacity: 0.55; }
/* 場所で絞るのシート：画面全体を覆う白い面。上にヘッダーと同じ高さの行（題と閉じる）と細い線、その下だけがスクロールする。
   中身の幅と左右の余白はページ（.page）と同じ。開いている間、後ろのページはスクロールさせない */
.place-sheet { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg); }
.place-sheet-head { flex: none; padding-top: var(--safe-t); border-bottom: 1px solid var(--line); }
.place-sheet-row { display: flex; align-items: center; height: var(--head-h); max-width: var(--content-w); margin: 0 auto; padding: 0 6px 0 16px; }
.place-sheet-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.04em; }
html[lang="en"] .place-sheet-title { letter-spacing: 0.02em; }
.place-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.place-sheet-inner { max-width: var(--content-w); margin: 0 auto; padding: var(--sp-2) 16px calc(var(--sp-8) + var(--safe-b)); }
/* シートの中では見出しの上に固定のヘッダーが重ならないので、県の見出しへ送るときなどの上の余白は 24px だけ */
.place-sheet .pref-sec .sec-head h2, .place-sheet .tab, .place-sheet .search input[type="search"] { scroll-margin-top: var(--sp-5); }
body.is-sheet { overflow: hidden; }
/* 現在地付近で探す：上の一行がいまの状態（確認中・使えなかった理由）。店を出しているあいだは空で、高さを取らない。
   店のタイルには現在地からの距離を店名の下に小さく出す。下に「もっとみる」と、エリアで探すへ戻る文字のボタン */
.near-note { font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); }
.tile-dist { display: block; margin-top: var(--sp-1); font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; }
button.more-btn { width: 100%; }
.near-foot { margin-top: var(--sp-1); }
.grid ~ .near-foot { margin-top: var(--sp-4); text-align: center; }
/* 現在地の並び（#nearList）だけの組み：並びに意味がある（食べログが高い順）ので、2列に散らさず1列で上から順に読ませる。
   1店は横組み：左に小さな写真、右に店名・現在地からの距離・メタ。店と店の間は余白だけ（線・地の色は足さない）。
   詳細の「近くの厳選店」やほかのページのタイルには当てない。
   並びの上には余白を足さない（タブの下の 24 だけ。エリア・駅のタブと先頭の位置がそろう） */
#nearList { grid-template-columns: minmax(0, 1fr); gap: var(--card-gap); }
#nearList .tile-a { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 16px; }
#nearList .ph { grid-column: 1; grid-row: 1 / -1; align-self: start; width: 100%; }
#nearList .tile-name, #nearList .tile-dist, #nearList .tile-meta { grid-column: 2; }
#nearList .tile-name { margin-top: 0; font-size: 1rem; }
#nearList ~ .more-btn { margin-top: var(--card-gap); }

/* エリアのページ：同じ都道府県のほかのエリアへ（横に流れるチップ）。
   上下の -4／4 はチップの押せる範囲が切れないための逃げで、見た目の余白は上 0・下 16（操作の列どうしと同じ） */
.area-links {
  display: flex; gap: 6px; margin: -4px -16px 12px; padding: 4px 16px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.area-links::-webkit-scrollbar { display: none; }
.area-link {
  position: relative; display: inline-flex; align-items: center; flex: none;
  min-height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: 0.875rem; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .area-link:hover { border-color: var(--ink); color: var(--ink); } }
.area-link[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.area-link-all { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #bbb; }
/* エリアのページの末尾：近くのエリアへ。上の切り替えの負マージン・横スクロールは使わず、折り返す */
.near-areas { margin-top: var(--block-gap); }
.near-areas .area-links { gap: var(--sp-2) 6px; margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }

/* ---------- 一覧：ギャラリー ---------- */
/* ページ送りでは結果の最初の店へ（固定ヘッダーの下に少し余白を残す） */
#cafeList { scroll-margin-top: calc(var(--head-h) + var(--safe-t) + var(--sp-4)); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap) 12px; }

/* ページ送り：件数と、前へ／番号／次へ。現在のページだけ黒地。カードの並びとの間は、カードの行間より1段大きいブロックの切れ目 */
.pager { margin-top: var(--block-gap); text-align: center; }
.pager-count { font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pager-row { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: var(--sp-2); }
.pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 4px;
  font-size: 0.875rem; color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums;
}
.pager-btn[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
.pager-step { padding: 0 12px; color: var(--ink); }
.pager-btn.is-disabled { color: var(--ink-4); }
@media (hover: hover) and (pointer: fine) { a.pager-btn:not([aria-current]):hover { background: var(--soft); } }
a.pager-btn:not([aria-current]):active { background: var(--soft); }
.pager-gap { min-width: 20px; font-size: 0.875rem; color: var(--ink-3); }
@media (max-width: 359px) { .pager-row { gap: 0; } .pager-step { padding: 0 8px; } }

/* ファセット（素朴なテキスト）。操作の列（検索 → 種類 → クイック）は 16 ずつ。場所で絞る・絞り込みは線で区切った続きの2行で、その下も 16 でカードの並びへ */
.facets { margin: 0 0 var(--sp-4); }
.facets-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.facet-toggle {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
  min-height: 44px; padding: 0; border: 0; background: none; font-size: 0.875rem; font-weight: 600;
}
.facet-toggle::after { content: "＋"; font-weight: 400; color: var(--ink-3); }
.facets.is-open .facet-toggle::after { content: "－"; }
.facet-summary { font-weight: 400; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.sort select {
  -webkit-appearance: none; appearance: none;
  min-height: 44px; padding: 0 18px 0 4px; border: 0; background: none; text-align: right;
  font-size: 0.875rem; color: var(--ink-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23737373' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 10px 6px;
}
.facet-body { display: none; padding-bottom: var(--sp-2); }
.facets.is-open .facet-body { display: block; }
.facet { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: var(--sp-2) 0; border-top: 1px solid var(--line); }
/* 軸名の上の 6px・9px（こだわり条件）は余白ではなく、右の選択肢の1行目と文字の高さをそろえるための送り */
.facet-name { padding-top: 6px; font-size: 0.875rem; color: var(--ink-3); }
.facet-opts { display: flex; flex-wrap: wrap; gap: 0 16px; }
.opt {
  min-height: 34px; padding: 4px 0; border: 0; background: none;
  font-size: 0.875rem; color: var(--ink-2); text-align: left;
}
.opt .n { margin-left: 4px; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .opt:hover { color: var(--ink); } }
.opt:active { opacity: 0.55; }
.opt.is-on { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.opt.is-zero { color: var(--ink-4); }

/* こだわり条件（ラベルのファセット）：絞り込みの中でさらに一行にたたむ。値は付け外しできる小さなチップ */
.lab-facets { border-top: 1px solid var(--line); }
.lab-toggle {
  display: flex; align-items: baseline; gap: 8px; width: 100%; min-width: 0;
  min-height: 44px; padding: 0; border: 0; background: none; text-align: left;
  font-size: 0.875rem; color: var(--ink-3);
}
.lab-toggle::after { content: "＋"; margin-left: auto; padding-left: 8px; color: var(--ink-3); }
.lab-toggle[aria-expanded="true"]::after { content: "－"; }
@media (hover: hover) and (pointer: fine) { .lab-toggle:hover { color: var(--ink); } }
.lab-summary { flex: 1; min-width: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-body .facet-name { padding-top: 9px; }
.lab-opts { gap: var(--sp-2) 6px; padding: var(--sp-1) 0; }
/* チップは種類・こだわり条件・適用中・エリアの切り替えとも高さ32・文字14にそろえる */
.lab-chip, .kind-chip {
  position: relative; display: inline-flex; align-items: center;
  min-height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: 0.875rem; color: var(--ink-2);
}
.lab-chip .n, .kind-chip .n { margin-left: 4px; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .lab-chip:hover, .kind-chip:hover { border-color: var(--ink); color: var(--ink); } }
.lab-chip.is-on, .kind-chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.lab-chip.is-on .n, .kind-chip.is-on .n { color: rgba(255, 255, 255, 0.72); }
.lab-chip.is-zero:not(.is-on), .kind-chip.is-zero:not(.is-on) { color: var(--ink-4); }
.kind-chip, .lab-chip, .cond, .area-link { transition: transform 0.12s ease-out; }
.kind-chip:active, .lab-chip:active, .cond:active, .area-link:active { transform: scale(0.96); }

/* 目的別クイック絞り込み（一覧）：線画アイコンの丸＋短いラベル＋件数を一列に5つ。
   押すとその場で絞り込み、押し直すと外す。選択中は丸を黒地・アイコンを白に */
.quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 -4px var(--sp-4); }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
  min-width: 0; padding: 0; border: 0; background: none;
  color: var(--ink-2); text-align: center; text-decoration: none;
}
.quick-ic {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg);
  transition: transform 0.12s ease-out;
}
.quick-label { font-size: 0.875rem; line-height: 1.4; white-space: nowrap; }
.quick-btn .n { margin-top: -4px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .quick-btn:hover { color: var(--ink); }
  .quick-btn:hover .quick-ic { border-color: var(--ink); }
}
.quick-btn:active .quick-ic { transform: scale(0.94); }
.quick-btn.is-on { color: var(--ink); }
.quick-btn.is-on .quick-ic { border-color: var(--ink); background: var(--ink); color: #fff; }
.quick-btn.is-on .quick-label { font-weight: 700; }
.quick-btn.is-zero:not(.is-on) { color: var(--ink-4); }
.quick-btn:focus-visible { outline: none; }
.quick-btn:focus-visible .quick-ic { outline: 2px solid var(--ink); outline-offset: 2px; }
/* 359px 以下：文字は 0.875rem（14px）のまま。列の間を詰めて左右へ 12px 広げ、字間をわずかに詰めて隣のラベルと重ならないように */
@media (max-width: 359px) { .quick { gap: 0; margin: 0 -12px var(--sp-4); } .quick-label { letter-spacing: -0.04em; } }
@media (min-width: 560px) { .quick { grid-template-columns: repeat(5, 88px); gap: 8px; margin: 0 0 var(--sp-4); } }

/* 目的で探す（トップだけ）：目的と、その下の「食べたいもので探す」を同じ小さいサムネイル式で。左に代表の店の写真（正方形 52px、359px 以下は 44px）、右に名前と件数を縦に。
   リンク全体が押せる範囲。〜559px は2列、560〜820px は3列、821px〜 は5列。写真の無い項目は NO PHOTO のアイコンだけ（文字は出さない）。
   行間はどの幅でも 16。「食べたいもので探す」は同じセクションの中の2つめのまとまりなので、上は 32（行間より大きく、セクションの切れ目より小さい）、小見出しの下は 12 */
.purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) 10px; }
.purpose-btn { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; -webkit-touch-callout: none; }
.purpose-ph { flex: none; width: 52px; height: 52px; aspect-ratio: 1 / 1; }
.purpose-ph .ph-none-label { display: none; }
@media (hover: hover) and (pointer: fine) {
  .purpose-btn:hover .ph img { opacity: 0.86; }
  .purpose-btn:hover .purpose-name { text-decoration: underline; text-underline-offset: 3px; }
}
.purpose-btn:active .ph img { opacity: 0.8; transition-duration: 0.08s; }
.purpose-text { min-width: 0; }
.purpose-name { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.purpose-n { display: block; margin-top: var(--sp-1); font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.purpose-sub { margin-top: var(--sp-6); }
.purpose-sub-head { margin-bottom: var(--sp-3); font-size: 0.875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.04em; color: var(--ink-2); }
@media (max-width: 359px) { .purpose-ph { width: 44px; height: 44px; } }
@media (min-width: 560px) and (max-width: 820px) { .purpose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4) 12px; } }
@media (min-width: 821px) { .purpose-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4) 16px; } }

/* 種類の切り替え（すべて／カフェ／純喫茶） */
.kind-switch { display: flex; gap: 6px; margin: 0 0 var(--sp-4); }

/* 純喫茶のラベル（カード・詳細）：文字と同じ大きさの細い枠だけ */
.kind-mark {
  display: inline-block; margin-right: 6px; padding: 0 5px;
  border: 1px solid currentColor; border-radius: 2px;
  font-size: 0.875rem; font-weight: 600; line-height: 1.25; letter-spacing: 0.04em; color: var(--ink-2);
  vertical-align: baseline; /* 枠の高さ（約19.5px）を行の高さより低くして、行を押し広げない。文字は隣の文字と同じベースラインに */
}

/* 絞り込みの確定バー：パネルを開いている間だけ画面下部に重ねる */
.facet-apply {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: calc(var(--apply-h) + var(--safe-b)); padding: 0 16px var(--safe-b);
  background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--line);
}
.facet-apply .btn { flex: 0 1 auto; min-width: 0; padding: 0 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 359px) { .facet-apply { gap: 8px; padding: 0 12px var(--safe-b); } .facet-apply .btn { padding: 0 10px; } }
.facet-apply .btn:disabled { border-color: var(--ink-4); background: var(--ink-4); cursor: default; }
.facet-apply .text-btn { flex: none; color: var(--ink-2); }
.facet-apply .text-btn:disabled { color: var(--ink-4); text-decoration: none; cursor: default; }
/* バーの分だけ下に余白を足し、ページの最下部が隠れないように */
body.is-drafting .colophon { padding-bottom: calc(var(--apply-h) + var(--safe-b) + var(--sp-6)); }
body.is-drafting .toasts { bottom: calc(var(--apply-h) + var(--safe-b) + var(--sp-4)); }

.conds { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) 6px; margin: 0 0 var(--sp-4); }
.conds-label { margin-right: 2px; font-size: 0.875rem; color: var(--ink-3); }
.cond {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  min-height: 32px; padding: 0 6px 0 12px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--bg); font-size: 0.875rem;
}
.cond svg { width: 16px; height: 16px; }
.cond-all { border-color: transparent; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }

/* 0件のとき：外せる条件をひとつずつ */
.empty { padding: var(--sp-6) 0 0; text-align: center; }
.empty-title { font-size: 1rem; font-weight: 600; text-wrap: balance; word-break: auto-phrase; }
.recover { margin: var(--sp-4) 0; text-align: left; border-top: 1px solid var(--line); }
.recover button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 48px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line);
  background: none; font-size: 0.875rem; text-align: left;
}
@media (hover: hover) and (pointer: fine) { .recover button:hover { background: #fafafa; } }
.recover button:active { background: var(--soft); }
.recover-n { font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.recover .is-zero .recover-n { color: var(--ink-4); }

/* ---------- 回遊プラン ---------- */
/* トップのリンク：題と店の数を1行で。上下の細い線だけ（写真・色・背景は置かない）。押して進む行なので上下 16（押せる高さは 52px） */
.plan-link {
  display: flex; align-items: baseline; gap: 10px; padding: var(--sp-4) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.plan-links li + li .plan-link { border-top: 0; }
.plan-link-title { font-size: 0.875rem; font-weight: 600; line-height: 1.45; }
.plan-link-n { flex: none; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .plan-link:hover .plan-link-title { text-decoration: underline; text-underline-offset: 3px; } }
.plan-link:active { opacity: 0.55; }
/* プランのページ（?v=plans）：読みものの幅に1列。題 →（街の写真）→ リード → 止まり先（通し番号）。
   止まり先は2種類：街の立ち寄り先は名前の小さな見出しとひとことだけ、カフェは一覧と同じ店のカードとひとこと。
   止まり先どうしは余白で区切る。番号・ひとこと・次の店までの距離は小さな文字だけで、色や枠の飾りは付けない。
   題 → 16 → 写真 → 12 → リード → 24 → 止まり先（32 ずつ）。プランどうしはセクションの切れ目 */
.plan { max-width: 480px; }
.plan + .plan { margin-top: var(--sec-gap); }
.plan-title { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; word-break: auto-phrase; }
/* 街の写真：横長の1枚と、詳細と同じ小さなクレジット。画像が読めなければ写真もクレジットも出さない */
.plan-photo { margin: var(--sp-4) 0 0; }
.plan-photo .ph { aspect-ratio: 3 / 2; }
.plan-photo .photo-credit { padding: var(--sp-2) 0 0; }
.plan-photo .ph.is-empty, .plan-photo .ph.is-empty ~ .photo-credit { display: none; }
.plan-lead { margin-top: var(--sp-1); font-size: 0.875rem; line-height: 1.9; color: var(--ink-2); overflow-wrap: anywhere; }
.plan-photo + .plan-lead { margin-top: var(--sp-3); }
.plan-stops { margin: var(--sp-5) 0 0; padding: 0; list-style: none; }
.plan-stop + .plan-stop { margin-top: var(--sp-6); }
.plan-no { margin-bottom: var(--sp-1); font-size: 0.875rem; font-weight: 600; line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan-place { font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.04em; word-break: auto-phrase; }
.plan-note { margin-top: var(--sp-2); font-size: 0.875rem; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.plan-place + .plan-note { margin-top: var(--sp-1); }
/* 次の店までの距離：カフェが続くところだけ。上下の細い線の外に同じ余白（上 16、下は次の止まり先の 32 から 16 を引いて 16） */
.plan-next {
  margin: var(--sp-4) 0 calc(-1 * var(--sp-4)); padding: var(--sp-3) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.plan-foot { margin-top: var(--sp-6); font-size: 0.875rem; color: var(--ink-3); }
/* 特集のページ（?v=collections）：題・リードはプランと同じ文字（.plan-title / .plan-lead）。その下に事実の1行（エリアの「街の顔ぶれ」と同じ小さな字）、
   一覧と同じカードの並び、すべて見る。特集どうしはプランと同じ余白で区切る */
.collection + .collection { margin-top: var(--sec-gap); }
.collection-facts { margin-top: var(--sp-1); font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.collection-grid { margin-top: var(--sp-4); }
.collection-more { margin-top: var(--sp-4); }

/* ---------- このサイトについて（プライバシーポリシー・利用規約・写真の寄稿も同じ組み） ---------- */
/* 題はほかのページと同じ位置（--page-top）で、題の下は 24（すぐ小見出しが来るページでも同じ）。
   小見出しの上 32・下 8、段落どうしは 12。ページの終わりはフッターの余白（--sec-gap）に任せる */
.about-page { max-width: 34em; padding: var(--page-top) 0 0; font-size: 1rem; line-height: 1.9; color: var(--ink-2); }
.about-page h1 { margin-bottom: var(--sp-5); font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.about-page h2 { margin: var(--sp-6) 0 var(--sp-2); font-size: 1rem; font-weight: 600; color: var(--ink); }
.about-page h1 + h2 { margin-top: 0; }
.about-page p + p { margin-top: var(--sp-3); }
.about-tagline { font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.concept-promises { padding-left: 1.2em; list-style: disc; }
.about-page .about-meta { margin-top: var(--sp-6); font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- フッター ---------- */
/* ページの終わりからフッターの線まではセクションの切れ目（--sec-gap）。線の下は 12（リンクは高さ 44px で文字が中央なので、線から文字まで約 24）、
   権利の1行の下は 32（PC は 48）で、線の上より軽く、画面の下端で詰まらないように */
.colophon {
  max-width: var(--content-w); margin: var(--sec-gap) auto 0; padding: var(--sp-3) 16px calc(var(--sp-6) + var(--safe-b));
  border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-3);
}
.colophon-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-right: 16px;
  font-size: 0.875rem; color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: #bbb;
}
@media (hover: hover) and (pointer: fine) { .colophon-link:hover { color: var(--ink); text-decoration-color: currentColor; } }
.colophon-rights { display: block; font-size: inherit; line-height: 1.6; }

/* =========================================================
   詳細（?s=）
   ========================================================= */
#pDetail { max-width: none; padding: 0; }
.detail-nav { max-width: 1180px; margin: 0 auto; padding: 0 4px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 44px; padding: 0 12px 0 4px; border: 0; background: none;
  font-size: 0.875rem; color: var(--ink-2);
}
.back-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .back-btn:hover { color: var(--ink); } }
.back-btn:active { opacity: 0.55; }
.detail-photo { margin: 0; }
.detail-photo .ph { border-radius: 0; aspect-ratio: 4 / 3; }
/* 写真のクレジット：写真の直下に小さく控えめに。画像が読めず NO PHOTO になったら隠す */
.photo-credit { padding: var(--sp-2) 16px 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); text-align: right; overflow-wrap: anywhere; }
.photo-credit a { color: inherit; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .photo-credit a:hover { color: var(--ink); } }
.detail-photo .ph.is-empty ~ .photo-credit { display: none; }
/* 写真のない店の寄稿への1行：NO PHOTO の直下に、クレジットと同じ小ささ・位置で */
.detail-contribute { padding: var(--sp-2) 16px 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); text-align: right; }
.detail-contribute a { color: inherit; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .detail-contribute a:hover { color: var(--ink); } }
/* 写真のキャプション（品名と価格）：クレジットの上に同じ大きさ・同じ右寄せで1行。クレジットより一段濃く */
.photo-dish { display: block; color: var(--ink-2); }
/* 詳細の階層：写真 → 種別と店名・ひとこと → 要点（エリア・食べログ・喫煙・住所）、ハイライト（受賞・選出歴・名物）と地図への導線 → 特徴（ラベル）→ 紹介 → Instagram → 近くの厳選店。
   余白は3段：ひと組の中（種別 → 4 → 店名 → 12 → ひとこと、要点 → 16 → ハイライト）＜ 冒頭のまとまりどうし 24（写真 → 店名、店名の組 → 要点、要点の組 → ボタン）
   ＜ 見出しのある節どうし 48（.detail-sec。見出しの下は 16） */
.detail-body { max-width: 720px; margin: 0 auto; padding: var(--sp-5) 20px 0; }
.detail-head { margin-bottom: var(--sp-5); }
.detail-kind { font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); }
.detail-kind .kind-mark { margin-right: 0; }
.detail-name { margin-top: var(--sp-1); font-size: 1.625rem; font-weight: 700; line-height: 1.35; text-wrap: balance; word-break: auto-phrase; }
/* ひとこと（紹介文の第一文）：店名の下に静かに置くリード。紹介文と同じ色・行長・大きさ（1rem、標準設定で 16px）。アクセント色・背景・枠・太字は使わない */
.detail-lead { max-width: 34em; margin-top: var(--sp-3); font-size: 1rem; line-height: 1.85; letter-spacing: 0.02em; color: var(--ink-2); overflow-wrap: anywhere; text-wrap: pretty; }
/* Googleマップとシェア：同じ高さのボタンを並べ、2つが1行に収まらない幅ではシェアを次の行に全幅で */
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2) 8px; margin-top: var(--sp-5); }
.detail-actions .btn { flex: 1 1 auto; }
.btn-share svg { width: 18px; height: 18px; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; line-height: 1.7; color: var(--ink-3); }
.facts dd { margin: 0; font-size: 0.875rem; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.facts .pref { margin-left: 10px; font-size: 0.875rem; color: var(--ink-3); }
/* 特徴：値は1つずつチップ。軸名はチップの1行目の高さの中央に。チップの間は一覧の絞り込みと同じ行間8px・列間6px */
.facts-labels dt { padding-top: 0; line-height: 32px; }
.facts-labels dd { display: flex; flex-wrap: wrap; gap: var(--sp-2) 6px; }
/* リンクのチップ（特徴・名物）は下線を付けない */
a.lab-chip { text-decoration: none; }
.tabelog .score { margin-right: 12px; font-size: 1.25rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
/* Tripadvisor の評価：食べログの下に添える参考の数字。本文と同じ大きさ・太さで、桁だけそろえる */
.tripadvisor .score { margin-right: 12px; font-variant-numeric: tabular-nums; }
.ext { font-size: 0.875rem; text-underline-offset: 3px; }
/* 食べログ・Tripadvisor の確認時点：行の末尾にグレーで。収まらなければ1かたまりで次の行へ */
.checked { display: inline-block; font-size: 0.875rem; color: var(--ink-3); white-space: nowrap; }
/* 冒頭のハイライト：受賞・選出歴（1件1行）→ 名物 を、要点の下で1つの箇条書きに束ねる。小さな文字で事実だけを詰めて並べる。色・背景・枠・太字は使わない */
.detail-highlights { margin-top: var(--sp-4); font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
/* 行の印：1行目の中央に小さな点。折り返した行は文字の頭にそろえる */
.detail-highlights li { position: relative; padding-left: 12px; }
.detail-highlights li::before { content: ""; position: absolute; left: 1px; top: calc(0.85em - 1.5px); width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
/* 行頭のラベル（名物）は一段薄く */
.detail-signature-label { margin-right: 8px; color: var(--ink-3); }
/* 名物がチップの行：ラベルとチップを中央でそろえ、上下に4px空けて隣の行と押せる範囲が重ならないように。点はチップの中央の高さへ */
.detail-highlights li.has-chip { display: flex; flex-wrap: wrap; align-items: center; margin: var(--sp-1) 0; }
.detail-highlights li.has-chip::before { top: 14.5px; }
.detail-highlights .lab-chip { max-width: 100%; }
/* 節どうしは 48。PC でも右の列はスマホと同じくらいの幅なので、幅で変えない */
.detail-sec { margin-top: var(--sp-7); }
.detail-h { margin: 0 0 var(--sp-4); font-size: 1.0625rem; font-weight: 700; }
/* 紹介文：読みやすい行長（全角34字前後）と行間 */
.intro { max-width: 34em; font-size: 1rem; line-height: 2; letter-spacing: 0.02em; color: var(--ink-2); overflow-wrap: anywhere; text-wrap: pretty; }

/* Instagram：横スワイプのカルーセル。次の投稿が少しのぞく幅にして、スワイプできることを伝える */
.insta-head { display: flex; align-items: center; gap: 2px; margin-bottom: var(--sp-4); }
.insta-head .detail-h { flex: 1; margin-bottom: 0; }
/* 前後のボタンがある行は、ボタンの高さのぶん見出しの下が空く。下を 8 にして、見出しの文字から投稿までをほかの節と同じ約 16 に */
.insta-head:has(.ig-nav) { margin-bottom: var(--sp-2); }
.ig-count { margin-right: 6px; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ig-nav { width: 40px; height: 40px; }
.ig-nav:disabled { opacity: 0.3; cursor: default; }
.ig-next svg { transform: scaleX(-1); }
.ig-track {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(326px, 84%); gap: 12px; align-items: start;
  margin: 0 -20px; padding: 0 20px var(--sp-2); scroll-padding: 0 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ig-track::-webkit-scrollbar { display: none; }
.ig-track.is-single { grid-auto-columns: min(326px, 100%); }
.ig-slide { scroll-snap-align: start; min-width: 0; }
.ig-frame { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--soft); }
.ig-frame iframe { display: block; width: 100%; height: 540px; border: 0; background: var(--bg); } /* 高さは MEASURE で実寸に */
.ig-fallback { display: none; }
.ig-slide.is-failed .ig-fallback {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5;
  font-size: 0.875rem; color: var(--ink-2); text-underline-offset: 3px;
}
.ig-open { display: inline-block; margin-top: var(--sp-2); font-size: 0.875rem; color: var(--ink-3); }
.ig-slide.is-failed .ig-open { display: none; }
/* 埋め込みの上の透明な層：指の端末だけ。触れた指の横の動きはカルーセル、縦はページが受け取る。
   タップで今の投稿の層を外し（.is-live）、埋め込みそのものを操作できるようにする。操作中は枠を一段濃く */
.ig-shield { display: none; }
@media (pointer: coarse) {
  .ig-shield { display: block; position: absolute; inset: 0; z-index: 1; }
  .ig-slide.is-live .ig-shield, .ig-slide.is-failed .ig-shield { display: none; }
  .ig-slide.is-live .ig-frame { border-color: var(--ink-3); }
}

/* 近くの厳選店：詳細の末尾に、店のタイルを4件まで。列の数は本文の幅に合わせる
   （スマホは一覧と同じ2列、タブレット幅は4件を1行に、PC は右の列に収まる2列） */
.detail-nearby .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- トースト ---------- */
.toasts {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b) + var(--sp-4)); z-index: 100;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  width: fit-content; max-width: min(560px, 100%); padding: 8px 6px 8px 16px;
  background: var(--ink); color: #fff; border-radius: 8px;
  font-size: 0.875rem; line-height: 1.5; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.16);
  animation: toastin 0.18s ease-out;
}
.toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #aaa; }
.toast-close svg { width: 18px; height: 18px; }
.toast.is-leaving { opacity: 0; transition: opacity 0.18s; }
@keyframes toastin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   指で触る端末：見た目の大きさは変えず、押せる範囲を 40〜44px まで広げる
   ========================================================= */
@media (pointer: coarse) {
  /* チップは見た目32px。上下4px・左右3pxずつ押せる範囲を足して40px（行間8px・列間6pxなので隣と重ならない） */
  .kind-chip::after, .lab-chip::after, .cond::after, .area-link::after { content: ""; position: absolute; inset: -4px -3px; }
  .opt { min-height: 44px; }
  /* 選択肢の高さが 44px になるぶん、軸名も下げて1行目の文字の高さをそろえる（こだわり条件のチップの行は 32px のままなので元の 9px） */
  .facet-name { padding-top: 11px; }
  .lab-body .facet-name { padding-top: 9px; }
  .text-btn { min-height: 44px; }
  .toast-close, .ig-nav, .search-clear { width: 44px; height: 44px; }
  /* 並び順は 1rem（標準設定で 16px、iOS がフォーカス時に拡大しない大きさ）。縮めて見せることはしない。高さは元の min-height 44px のまま */
  .sort select { font-size: 1rem; }
}

/* =========================================================
   タブレット幅：グリッドを広げる
   ========================================================= */
@media (min-width: 560px) and (max-width: 820px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .area-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #nearList .tile-a { grid-template-columns: 160px minmax(0, 1fr); column-gap: 20px; }
  .detail-photo .ph { aspect-ratio: 16 / 10; }
  .detail-nearby .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================================================
   デスクトップ：中身は 1080px まで（左右 24px）
   ========================================================= */
@media (min-width: 821px) {
  /* 余白の4つの役割を1段ずつ上げる（ページの起点 48、カードの行間 48、ブロック 64、セクション 96） */
  :root { --page-top: var(--sp-7); --card-gap: var(--sp-7); --block-gap: var(--sp-8); --sec-gap: var(--sp-9); }
  .top-row { padding: 0 16px 0 24px; }
  .page { padding: 0 24px; }
  .colophon { padding-left: 24px; padding-right: 24px; padding-bottom: calc(var(--sp-7) + var(--safe-b)); }
  .menu {
    left: auto; right: max(16px, calc((100% - var(--content-w)) / 2 + 16px)); top: calc(100% + 4px);
    width: 248px; padding: 6px;
    border: 1px solid var(--line); border-radius: 10px; /* 中のリンク 4 + 余白 6 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  .menu a { min-height: 44px; padding: 0 12px; border-radius: 4px; font-size: 0.875rem; }
  .menu-scrim { background: none; }

  .tabs { gap: 28px; }
  .tab { flex: none; padding: 0; }
  .concept { padding-bottom: var(--sp-6); }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .area-links { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; flex-wrap: wrap; overflow: visible; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); column-gap: 16px; }
  .area-grid { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); column-gap: 12px; }
  .place-sheet-row { padding: 0 16px 0 24px; }
  .place-sheet-inner { padding-left: 24px; padding-right: 24px; }
  /* 場所で絞るのシート：都道府県の一列は幅に収まるので流さない。索引は幅に合わせて列を増やす */
  .pref-jump { margin: 0 -8px; }
  .pref-jump ul { padding: 0; flex-wrap: wrap; overflow: visible; }
  .area-index { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 32px; }
  .area-row { font-size: 1rem; }
  /* 現在地の並び：横組みのまま2列に。写真を少し大きく */
  #nearList { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  #nearList .tile-a { grid-template-columns: 160px minmax(0, 1fr); column-gap: 20px; }
  .search { max-width: 560px; }
  .search-areas { max-width: 320px; }
  .facet-summary { max-width: 360px; }
  .facet-apply { padding: 0 max(24px, calc((100% - 1080px) / 2)) var(--safe-b); }
  .toasts { left: 24px; right: auto; align-items: flex-start; }

  /* 詳細：大きな写真を左、情報を右に */
  .detail-nav { padding: var(--sp-2) 20px 0; }
  .detail-inner {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px;
    max-width: 1180px; margin: 0 auto; padding: var(--sp-1) 32px 0; align-items: start;
  }
  .detail-photo { position: sticky; top: calc(var(--head-h) + var(--safe-t) + var(--sp-4)); }
  .detail-photo .ph { border-radius: 3px; aspect-ratio: 4 / 3; }
  .photo-credit { padding: var(--sp-2) 0 0; }
  /* 寄稿への1行は写真と同じ升に重ね、写真の高さ（列幅の 3/4）だけ下げて写真の直下に置く。写真と一緒に貼り付く */
  .detail-photo { grid-area: 1 / 1; }
  .detail-contribute { grid-area: 1 / 1; position: sticky; top: calc(var(--head-h) + var(--safe-t) + var(--sp-4)); padding: calc(75% + var(--sp-2)) 0 0; pointer-events: none; }
  .detail-contribute a { pointer-events: auto; }
  .detail-body { padding: 0; max-width: none; }
  .ig-track { margin: 0; padding: 0 0 var(--sp-2); scroll-padding: 0; }
  .detail-name { font-size: 1.875rem; }
}

/* =========================================================
   一覧（?v=list）だけの組み：body[data-view="list"] で分ける。同じテンプレートのエリアのページ（?a=）には当てない。
   写真までの段を減らし、区切りは余白で取る。線・地の色は足さない
   ========================================================= */
body[data-view="list"] .list-head h1 { font-weight: 600; letter-spacing: 0.04em; }
html[lang="en"] body[data-view="list"] .list-head h1 { letter-spacing: 0.02em; }
/* 種類（すべて／カフェ／純喫茶）は切り替えなので、付け外しのチップ（駅）と見分けがつくよう文字だけにする。
   今の種類は濃い文字と下の線（場所で絞るのシートのタブと同じ示し方） */
body[data-view="list"] .kind-switch { gap: 20px; }
body[data-view="list"] .kind-switch .kind-chip {
  padding: 0 0 2px; border: 0; border-bottom: 1.5px solid transparent; border-radius: 0;
  background: none; color: var(--ink-3);
}
body[data-view="list"] .kind-switch .kind-chip.is-on { border-bottom-color: var(--ink); color: var(--ink); }
body[data-view="list"] .kind-switch .kind-chip.is-on .n { color: var(--ink-3); }
body[data-view="list"] .kind-switch .kind-chip.is-zero:not(.is-on) { color: var(--ink-4); }
@media (hover: hover) and (pointer: fine) {
  body[data-view="list"] .kind-switch .kind-chip:not(.is-on):hover { color: var(--ink); }
}
/* 上下の余白（題の上下、絞り込みの下、カードの行間、ページ送りの上）はエリアのページと共通の値。ここで変えるのは列の間だけ */
body[data-view="list"] #cafeList { column-gap: 16px; }
/* 一覧のカード：店名の下は2行。場所（エリア / 駅）を少し濃く、どんな店か（純喫茶の印・ラベル・価格帯）をその下に。
   どちらも切らずに折り返す（駅は1かたまりで次の行へ） */
.tile-place, .tile-what { display: block; font-size: 0.875rem; line-height: 1.5; overflow-wrap: anywhere; }
.tile-place { margin-top: var(--sp-1); color: var(--ink-2); }
.tile-what { color: var(--ink-3); }
@media (min-width: 821px) {
  body[data-view="list"] #cafeList { column-gap: 20px; }
  body[data-view="list"] #cafeList .tile-name { font-size: 1rem; }
}

/* =========================================================
   EN 表示（html[lang="en"]）のときだけ：英語のラベルが収まるように列幅と字間を合わせる。JA の見た目には触れない
   ========================================================= */
html[lang="en"] .facet { grid-template-columns: 68px 1fr; }
html[lang="en"] .facts > div { grid-template-columns: 92px 1fr; } /* Reservations / Atmosphere が1語で収まる幅 */
html[lang="en"] .concept-tagline { letter-spacing: 0.02em; }
html[lang="en"] .concept-fact { letter-spacing: 0; }
html[lang="en"] .checked { margin-left: 8px; }
/* 英訳のある紹介文は欧文の行間に。英訳の無い店は日本語のまま（lang="ja"）なので元の組みを保つ */
html[lang="en"] .intro:not([lang="ja"]) { line-height: 1.75; letter-spacing: 0; }
html[lang="en"] .detail-lead:not([lang="ja"]) { line-height: 1.65; letter-spacing: 0; }
html[lang="en"] .plan-lead, html[lang="en"] .plan-note { line-height: 1.65; }
html[lang="en"] .plan-place:not([lang="ja"]) { letter-spacing: 0.02em; }

/* =========================================================
   動き：どれも短く静かなフェード（opacity。開くものだけ 4px の transform を添える）。長さと緩急は --motion の1つ。
   止まっているときの見た目は変えない。表示を待たせず、押す・打つ操作も塞がない。
   動かすのは現れる側だけで、閉じる・消える側はこれまでどおりすぐ消す（表示の切り替えは hidden / display のまま）
   ========================================================= */
@keyframes fadein { from { opacity: 0; } }
@keyframes dropin { from { opacity: 0; transform: translateY(-4px); } }
/* ページやタブを切り替えた先の中身（詳細の店名・ひとこと・要点もこの中）と、「もっと見る」で足した店。
   app.js が .is-entering を付け、動きが終わったら外す。一覧の条件の変更・ページ送り・言語の切り替えでは付けない */
.is-entering { animation: fadein var(--motion); }
/* 絞り込みのパネルとメニュー：開いたときに、少し上からフェードで。メニューの後ろの幕と、場所で絞るのシートはフェードだけ */
.facets.is-open .facet-body, .menu { animation: dropin var(--motion); }
.menu-scrim, .place-sheet { animation: fadein var(--motion); }
/* 店のタイル：押している間、カード全体をごくわずかに薄く（写真は「店のタイル」の指定でもう一段）。離すと静かに戻る */
.tile-a { transition: opacity var(--motion); }
.tile-a:active { opacity: 0.92; transition-duration: 0.08s; }

/* 動きを減らす設定では、上の動きも含めて、アニメーションとトランジションをすべて止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   ダークモード（prefers-color-scheme: dark）：色の変数を暗色に差し替える。ライトの値と規則には触れない。
   地は真っ黒にせず静かな暗さ、文字は明るいグレーの階段（ink が最も明るく、ink-4 が最も控えめ）。
   全段が --bg と --soft の両方の地で 4.5:1 以上。色付きのアクセントは置かない。
   「--ink 地＋白文字」の反転部品は、文字を --bg にして反転の関係を保つ。写真（img）には加工をしない
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f2f2f2;        /* --bg 地で 16.5:1 */
    --ink-2: #b3b3b3;      /* --bg 地で 8.8:1 */
    --ink-3: #8c8c8c;      /* --bg 地で 5.5:1、--soft 地で 4.9:1 */
    --ink-4: #888888;      /* --bg 地で 5.2:1、--soft 地で 4.65:1 */
    --line: #333333;
    --soft: #1f1f1f;
    --bg: #141414;
  }
  /* 反転部品：明るい地（--ink）に暗い文字。.btn-primary のホバーは地を一段落とす（下の節） */
  .btn-primary, .area-link[aria-current="page"], .pager-btn[aria-current="page"],
  .lab-chip.is-on, .kind-chip.is-on, .quick-btn.is-on .quick-ic, .toast { color: var(--bg); }
  .lab-chip.is-on .n, .kind-chip.is-on .n { color: rgba(20, 20, 20, 0.72); }
  .toast-close { color: #5c5c5c; } /* 明るいトーストの上の閉じる（#aaa のままでは 2.1:1） */
  /* 下線：文字より控えめな線（ライトの #bbb と同じ役割）。ホバーで文字の色になる */
  .text-btn, .text-link, .sec-link, .area-link-all, .colophon-link { text-decoration-color: #555; }
  /* 半透明の地（ヘッダー・確定バー）は暗色の地に */
  .top { background: rgba(20, 20, 20, 0.97); }
  .facet-apply { background: rgba(20, 20, 20, 0.98); }
  /* 写真の縁：暗い地に溶けないよう、内側にごく薄い明るい線 */
  .ph::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
  /* 浮動部品の影：暗い地でも分かるよう濃く */
  .toast { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5); }
}
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #d4d4d4; }
  .recover button:hover { background: #1a1a1a; }
}
@media (prefers-color-scheme: dark) and (max-width: 820px) {
  .menu-scrim { background: rgba(0, 0, 0, 0.5); }
}
@media (prefers-color-scheme: dark) and (min-width: 821px) {
  .menu { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5); }
}

/* =========================================================
   強制カラーモード（forced-colors: active）：ブラウザが色をシステムカラーに置き換え、地の色と影は消える。
   黒地の反転・薄い線・地の色・影だけで示していたものを、システムカラーで示し直す。
   選択中は Highlight 地＋HighlightText、フォーカスは Highlight の枠、押せないものは GrayText。
   0件の選択肢（.is-zero）は押せるので GrayText にはしない（件数の「0」で分かる）。forced-color-adjust: none は使わない
   ========================================================= */
@media (forced-colors: active) {
  /* 境界：操作部品の枠 */
  .btn, .more-btn, .lab-chip, .kind-chip, .area-link, .cond, .quick-ic { border-color: ButtonBorder; }
  .area-link-all, .cond-all { border-color: Canvas; } /* 枠のない文字のリンクは枠を出さない */
  .search { border: 1px solid ButtonBorder; } /* 地の色だけで示していた欄に、このモードでだけ枠を足す */
  /* 並び順：色が固定の矢印の画像をやめ、システムが描く選択欄に戻す */
  .sort select { appearance: auto; background-image: none; }
  /* 境界：区切り線・浮動部品（影で示していたヘッダーの下端とトーストには線を足す） */
  .tabs, .facets-bar, .place-row, .place-sheet-head, .facet, .lab-facets, .recover, .recover button, .plan-link, .plan-next,
  .facts > div, .facts > div:last-child, .colophon, .menu, .facet-apply, .ig-frame { border-color: CanvasText; }
  .top { border-bottom: 1px solid CanvasText; }
  .toast { border: 1px solid CanvasText; }
  /* 写真の縁と NO PHOTO の枠：内側の影の代わりに線 */
  .ph::after, .ph.is-empty::after { display: block; border: 1px solid CanvasText; }
  /* 地の色で描いていた印（ハイライトの行頭の点） */
  .detail-highlights li::before { background-color: CanvasText; }

  /* 選択中 */
  .lab-chip.is-on, .kind-chip.is-on, .area-link[aria-current="page"], .pager-btn[aria-current="page"],
  .quick-btn.is-on .quick-ic, .lang-btn[aria-pressed="true"], .menu a[aria-current="page"] {
    border-color: Highlight; background-color: Highlight; color: HighlightText;
  }
  .lab-chip.is-on .n, .kind-chip.is-on .n { color: HighlightText; }
  /* 下線で示す選択（タブ・一覧の種類）：下線を Highlight で残し、選ばれていないものには線を出さない */
  .tab[aria-selected="true"]::after { background-color: Highlight; }
  body[data-view="list"] .kind-switch .kind-chip { border-bottom-color: Canvas; }
  body[data-view="list"] .kind-switch .kind-chip.is-on { border-bottom-color: Highlight; }
  /* Instagram の埋め込みを操作中（枠を一段濃くしていた） */
  .ig-slide.is-live .ig-frame { border-color: Highlight; }

  /* フォーカス */
  :focus-visible, .quick-btn:focus-visible .quick-ic { outline-color: Highlight; }
  .search:focus-within { outline: 2px solid Highlight; outline-offset: 2px; } /* 影は消えるので枠で */

  /* 押せないもの */
  .facet-apply .btn:disabled { border-color: GrayText; background-color: Canvas; color: GrayText; }
  .facet-apply .text-btn:disabled, .pager-btn.is-disabled, .ig-nav:disabled { color: GrayText; }
}
