/* バーガー備忘録 — 読者向けのページの CSS（001 research.md R13）

   写した元：デザインシステム「バーガー備忘録」
   https://claude.ai/artifact/ViEWLfGQfAXSiYb5TTbNhk
   （版 1793669048-7564、2026-11-03 に写す。レタスの層の上の角丸は版 1793677871-a643、ページの背景の plate-deep は版 1793682365-7b09 から、2026-11-03 に写す。002 の一覧・絞り込み・並び順・カード・ページ送り・関連レビュー・リンクのチップは版 1793685981-1af0 から、2026-11-03 に写す。003 のトップのページ（メニューの今いるページ・探す・イチオシ・評価の高いレビュー・書いている人）は版 1793692960-d949 から、2026-11-03 に写す。入力欄の文字の 16px は版 1793707812-8fb0 から、2026-11-03 に写す。004 のおすすめ投稿とプライバシーポリシー（PostForm・Notice・CallToAction・ポリシーの記事）は版 1793880025-e803 から、2026-11-05 に写す。画面のデザインが確定した版は 1793710512-a73d）
   - :root は project/tokens.json の色・書体・余白・角丸・大きさ
   - その後ろは project/components/bundle.css の部品のクラス（そのまま）
   - 最後の「実装で足したもの」は、デザインシステムの見本で style 属性に書いていたもの。
     読者のページの CSP は style 属性を許さない（contracts/csp.md）ので、クラスに移した

   デザインシステムの値を変えたら、ここに写し直す（/ui-design）。 */

:root {
  /* ---- 色 ---- */
  --plate: #fff8ec;
  --plate-deep: #f6e5c6;
  --ink: #2b1a10;
  --ink-soft: #6b4a2e;
  --ink-hover: #4a2e1c;
  --bun: #e7a24a;
  --bun-crumb: #f3c98a;
  --bun-crumb-hole: #e2ae67;
  --bun-light: #f4c27a;
  --bun-deep: #d4883a;
  --seed: #fff1d6;
  --seed-shade: #e6c48f;
  --lettuce: #6baa3c;
  --lettuce-ink: #13260a;
  --lettuce-deep: #4f8a2b;
  --lettuce-vein: #9ccc6e;
  --lettuce-soft: #e9f5dc;
  --lettuce-label: #3c5f22;
  --cheese: #f6c445;
  --cheese-light: #fde38f;
  --cheese-shade: #d39b26;
  --cheese-ink: #6b4a12;
  --cheese-soft: #fbe3a0;
  --patty: #5a3220;
  --patty-ink: #e8cdb4;
  --tomato: #c23a22;
  --tomato-deep: #a82f1a;
  --tomato-ink: #ffefe9;
  --on-tomato: #ffffff;
  --photo: #ead9c3;
  --focus-ring: var(--ink);
  --focus-halo: var(--plate);

  /* ---- 書体 ---- */
  --font-display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* ---- 余白 ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;
  --space-18: 72px;

  /* ---- 角丸 ---- */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  /* ---- 大きさ ---- */
  --touch-min: 44px;
  --content-max: 1120px;
  --article-max: 760px;
}


*, *::before, *::after { box-sizing: border-box; }

.bb {
  background: var(--plate-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}
.bb h1, .bb h2, .bb h3 { margin: 0; line-height: 1.25; }
.bb p { margin: 0; }
.bb img { max-width: 100%; height: auto; display: block; }
.bb a { color: inherit; }
.bb :focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-halo);
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .bb *, .bb *::before, .bb *::after { transition: none !important; animation: none !important; }
}

/* ---------- サイトの枠 ---------- */
.burger {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--space-4) var(--space-18);
  display: flex;
  flex-direction: column;
}

.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; }

/* ---------- ボタン・チップ ---------- */
.pill, .chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  font-family: inherit;
}
.bb .pill { background: var(--ink); color: var(--plate); }
.bb .pill:hover { background: var(--ink-hover); }
.bb .pill--outline { background: transparent; border: 2px solid var(--patty-ink); color: var(--plate); }
.bb .chip { background: var(--lettuce-soft); color: var(--lettuce-ink); padding: 0 18px; }
.bb .chip--small { min-height: 36px; padding: 0 14px; font-size: 0.8125rem; }
/* リンクのチップ（記事のジャンル・お店の種類・タグから絞り込んだ一覧へ）。44px、ホバーで地を plate に */
.bb a.chip:hover { background: var(--plate); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
ul.chip-row { margin: 0; padding: 0; list-style: none; }

/* ---------- 上バンズ（ヘッダー） ---------- */
.bun-top {
  position: relative;
  /* 焼き色：頂上が明るく、縁へ向かって濃くなる */
  background: radial-gradient(120% 150% at 50% 0%, var(--bun-light) 0%, var(--bun) 42%, var(--bun-deep) 100%);
  z-index: 4; /* 切り口がレタスの上に重なる */
  border-radius: 50% 50% 28px 28px / 200px 200px 28px 28px;
  padding: 92px var(--space-6) var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.bun-top--compact {
  border-radius: 50% 50% 28px 28px / 150px 150px 28px 28px;
  padding-top: 72px;
  padding-bottom: var(--space-8);
}
/* つや：頂上の左寄りに、横長の明るい楕円 */
.bun-top::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 20%;
  width: 26%;
  height: 26px;
  border-radius: 50%;
  background: var(--bun-light);
  opacity: 0.6;
  transform: rotate(-5deg);
  pointer-events: none;
}
.bun-top--compact::before { top: 12px; height: 20px; }
/* 切り口：焼き色との境は不ぞろい、気泡の穴、外側の縁は少しふくらんで下（上）の具材に重なる。横に繰り返す模様 */
.bun-crumb { position: absolute; left: 3px; right: 3px; height: 24px; overflow: hidden; pointer-events: none; }
.bun-crumb svg { display: block; width: 100%; height: 24px; }
.bun-top .bun-crumb { bottom: -12px; border-radius: 0 0 24px 24px; }
.bun-bottom .bun-crumb { top: -12px; border-radius: 24px 24px 0 0; }
.bun-crumb__body { fill: var(--bun-crumb); }
.bun-crumb__hole { fill: var(--bun-crumb-hole); }
/* ごま：光の当たる側と影の側、下に小さな落ち影 */
.seed {
  position: absolute;
  width: 16px;
  height: 8px;
  background: radial-gradient(ellipse at 35% 30%, var(--seed) 0%, var(--seed) 45%, var(--seed-shade) 100%);
  border-radius: 50%;
  box-shadow: 0 2px 0 -0.5px var(--bun-deep);
}
.bb .site-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.1;
  text-decoration: none;
  color: var(--ink);
}
.bun-top--compact .site-name { font-size: 2.5rem; }
.tagline { font-size: 1rem; font-weight: 500; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }

/* ---------- 下バンズ（フッター） ---------- */
.bun-bottom {
  /* 焼き色：切り口の側は明るく、底へ向かって濃くなる */
  background: linear-gradient(180deg, var(--bun) 0%, var(--bun) 35%, var(--bun-deep) 100%);
  position: relative;
  z-index: 1; /* 切り口がトマトの上に重なる */
  border-radius: 28px 28px 50% 50% / 28px 28px 120px 120px;
  padding: var(--space-10) var(--space-6) 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.bb .site-name--small { font-size: 1.75rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-5); font-size: 0.875rem; font-weight: 700; }
.footer-nav a { display: inline-flex; align-items: center; min-height: var(--touch-min); }
.copyright { font-size: 0.75rem; }

/* ---------- 具材の共通 ---------- */
.layer { position: relative; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: var(--space-4); }
.layer__title { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; }

/* ---------- レタス：見出しと店の基本情報 ---------- */
.layer--lettuce { z-index: 3; background: var(--lettuce); margin: 0 -12px; border-radius: 28px 28px 0 0; padding-top: var(--space-8); padding-bottom: 28px; }
.breadcrumb, .bb .breadcrumb a { color: var(--lettuce-ink); }
.breadcrumb { font-size: 0.8125rem; font-weight: 500; }
.burger-name { font-size: 1.0625rem; font-weight: 700; }
/* レタスのフリル：奥の濃い葉＋前の葉＋葉脈。横に繰り返す模様なので、幅が変わっても葉の大きさは同じ */
.lettuce-wave { position: absolute; left: 0; bottom: -38px; width: 100%; height: 40px; overflow: visible; pointer-events: none; }
.lettuce-wave__back { fill: var(--lettuce-deep); }
.lettuce-wave__front { fill: var(--lettuce); }
.lettuce-wave__vein { fill: none; stroke: var(--lettuce-vein); stroke-width: 1.5; stroke-linecap: round; }

.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-3); }
.facts div { background: var(--lettuce-soft); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); min-width: 0; }
.facts dt { font-size: 0.75rem; font-weight: 700; color: var(--lettuce-label); }
.facts dd { margin: var(--space-1) 0 0; font-size: 0.9375rem; font-weight: 700; overflow-wrap: anywhere; }

/* 提供・招待の表示（本文より前。色だけでなく文で伝える） */
.disclosure {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--plate);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
}
.disclosure__label {
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--plate);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- チーズ：評価 ---------- */
.layer--cheese { z-index: 2; background: var(--cheese); padding-top: var(--space-14); flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--space-8); }
/* チーズの垂れ：長さの違う垂れと先の滴、上の縁のつや、下の層に落ちる影。横に繰り返す模様 */
.cheese-drip { position: absolute; left: 0; bottom: -60px; width: 100%; height: 72px; pointer-events: none; }
.cheese-drip__body { fill: var(--cheese); }
.cheese-drip__shade { fill: var(--cheese-shade); }
.cheese-drip__glint { fill: var(--cheese-light); }

.score-total { flex: 1 1 15rem; display: flex; flex-direction: column; gap: var(--space-2); }
.score-total__heading { font-size: 1.125rem; font-weight: 700; }
/* 数字は本文の書体の太字。見出しの書体（Dela Gothic One）は小数点と「/ 5」がつぶれるため使わない */
.score-total__value { font-family: var(--font-body); font-weight: 700; font-size: 4.5rem; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums lining-nums; }
.score-total__value small { font-size: 1.75rem; font-weight: 700; margin-left: 0.15em; color: var(--cheese-ink); }
.score-total__value.is-unrated { font-size: 2.5rem; line-height: 1.2; }
.one-liner { font-size: 1.0625rem; font-weight: 700; line-height: 1.7; }

.score-rows { flex: 2 1 22rem; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.score-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) 14px; padding: 10px var(--space-4); background: var(--cheese-soft); border-radius: var(--radius-sm); }
.score-rows__label { flex: 0 0 6rem; font-weight: 700; font-size: 0.9375rem; }
.score-rows__dots { flex: 1 1 auto; display: flex; gap: var(--space-2); }
.score-rows__value { font-weight: 700; font-size: 0.875rem; font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.score-rows li.is-unrated .score-rows__value { color: var(--cheese-ink); }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--cheese-ink); }
.dot.is-on { background: var(--patty); border-color: var(--patty); }
.is-unrated .dot { border-style: dashed; }

/* ---------- パティ：食レポ本文 ---------- */
.layer--patty { z-index: 1; background: var(--patty); color: var(--plate); margin: 0 -6px; border-radius: var(--radius-xl); padding-top: 80px; gap: var(--space-6); }
.layer--patty.is-article { align-items: center; padding-left: var(--space-4); padding-right: var(--space-4); }
/* エラーのページ（404・500）はバンズの直後にパティが来るので、上の余白を詰める。
   キャンバスの枠「001 エラー」の style 属性を写す（CSP で style 属性は効かないため。2026-11-03） */
.layer--patty.is-error { padding-top: var(--space-10); }

.article {
  width: 100%;
  max-width: var(--article-max);
  background: var(--plate);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-10) clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  line-height: 2;
  font-size: 1rem;
}
.article h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-top: var(--space-2); }
.article figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.article img, .article .photo { border-radius: var(--radius-md); width: 100%; }
.article figcaption { font-size: 0.8125rem; line-height: 1.6; color: var(--ink-soft); }
.article__pair { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.article__pair > * { flex: 1 1 12.5rem; min-width: 0; }
.article blockquote { margin: 0; padding: 18px 22px; background: var(--cheese); border-radius: var(--radius-md); font-size: 1.0625rem; font-weight: 700; line-height: 1.7; }
.article__lead-photo { border-radius: var(--radius-md); overflow: hidden; }
/* 写真（img）。width・height の属性で場所を取り、幅に合わせて縮める。枠の縦横比（.photo）に合わせて切り抜く */
.article img { display: block; height: auto; max-width: 100%; }
.article img.photo { object-fit: cover; }

.photo { background: var(--photo); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700; aspect-ratio: 4 / 3; }
.photo--square { aspect-ratio: 1 / 1; }

/* ---------- トマト：お店データと地図 ---------- */
.layer--tomato { background: var(--tomato); color: var(--on-tomato); margin: 0 -10px; border-radius: 28px; flex-direction: row; flex-wrap: wrap; gap: var(--space-8); }
.bb .layer--tomato a { color: var(--on-tomato); }
.tomato__col { flex: 1 1 20rem; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.shop-data { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); font-size: 0.9375rem; }
.shop-data dt { font-weight: 700; color: var(--tomato-ink); }
.shop-data dd { margin: 0; overflow-wrap: anywhere; }
.external-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch-min); font-weight: 700; }
.external-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.map { aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--tomato-deep); max-width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map--placeholder { display: flex; align-items: center; justify-content: center; color: var(--tomato-ink); font-size: 0.8125rem; font-weight: 700; }

/* ---------- 一覧のページ ---------- */
.index-intro { font-size: 1rem; font-weight: 500; max-width: 40rem; }
.empty-note { background: var(--plate); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-6); font-weight: 500; }
.empty-note--action { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.empty-note__title { font-size: 1.125rem; font-weight: 700; }

/* FilterForm：キーワードと絞り込み（レタスの層）。GET で送るフォームなので、スクリプトなしで動く */
.filter { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto; gap: var(--space-3); align-items: end; }
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 700; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-3);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--plate);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* iPhone の Safari が押したときに拡大しないよう 16px 以上（003 の完了の確認で直した） */
}
.bb .filter__submit { min-height: 48px; justify-content: center; cursor: pointer; }
/* 選んでいる条件（条件があるときだけ）。条件は文字の札、外すのは「条件をすべて外す」 */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.active-filters__label { font-size: 0.875rem; font-weight: 700; }
.bb .clear-link { display: inline-flex; align-items: center; min-height: var(--touch-min); font-size: 0.875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 一覧の結果（パティの層）：件数・並び順・カード・ページ送り */
.results { width: 100%; display: flex; flex-direction: column; gap: var(--space-5); }
.results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.results__count { font-size: 1.125rem; font-weight: 700; }
.results__range { font-size: 0.875rem; font-weight: 500; color: var(--patty-ink); margin-left: var(--space-2); }
.sort-note { font-size: 0.8125rem; font-weight: 500; color: var(--patty-ink); }

/* SortSwitch：新着順／評価順。リンク 2 つ（今の並びに aria-current） */
.sort-switch { display: inline-flex; gap: var(--space-1); padding: var(--space-1); border: 2px solid var(--patty-ink); border-radius: var(--radius-pill); }
.bb .sort-switch__item { display: inline-flex; align-items: center; min-height: var(--touch-min); padding: 0 var(--space-5); border-radius: var(--radius-pill); color: var(--plate); text-decoration: none; font-weight: 700; font-size: 0.875rem; }
.bb .sort-switch__item:hover { background: var(--ink-hover); }
.bb .sort-switch__item[aria-current="true"] { background: var(--plate); color: var(--ink); }

/* ReviewCard：一覧・関連レビュー・（003）トップで同じカード。タイトルのリンクをカード全体に広げる */
.card-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--space-5); }
.review-card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--plate); color: var(--ink); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.15s ease; }
.review-card:hover { transform: translateY(-2px); }
.review-card:has(.review-card__link:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-halo); }
.review-card__photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.review-card__body { flex: 1 1 auto; padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.review-card__badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.review-card__genre, .review-card__sponsored { border-radius: var(--radius-pill); padding: 2px 10px; font-size: 0.75rem; font-weight: 700; }
.review-card__genre { background: var(--cheese); color: var(--ink); }
.review-card__sponsored { background: var(--ink); color: var(--plate); letter-spacing: 0.08em; }
.review-card__title { font-size: 1.125rem; font-weight: 700; line-height: 1.45; }
.bb .review-card__link { color: inherit; text-decoration: none; }
.review-card__link::after { content: ""; position: absolute; inset: 0; }
.bb .review-card__link:focus-visible { outline: none; box-shadow: none; }
.review-card__shop { font-size: 0.875rem; }
.review-card__foot { margin-top: auto; padding-top: var(--space-2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-1) var(--space-3); font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); }
.review-card__score { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.review-card__score b { font-size: 1.25rem; font-variant-numeric: tabular-nums lining-nums; }
.review-card__score.is-unrated b { font-size: 0.9375rem; }

/* Pager：前・次と「2 / 3 ページ」。最初・最後のページでは前・次のリンクを出さない */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3); }
.pager__status { font-size: 0.9375rem; font-weight: 700; min-width: 7em; text-align: center; }

/* 記事の下の関連レビュー（トマトの層の中、お店データの下） */
.tomato__related { flex: 1 1 100%; display: flex; flex-direction: column; gap: var(--space-4); }

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
  .bun-top { border-radius: 50% 50% 24px 24px / 140px 140px 24px 24px; }
  .bun-top--compact .site-name { font-size: 2rem; }
  .layer__title { font-size: 1.5rem; }
  .score-rows__label { flex-basis: 5rem; }
  .filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filter .field--keyword, .bb .filter__submit { grid-column: 1 / -1; }
}

/* ---------- トップのページ（003） ---------- */
/* メニューの今いるページ（aria-current="page"）。塗りの ink から、plate の地に ink の縁取りへ。明るさと形の両方で分かる */
.bb .main-nav .pill[aria-current="page"] { background: var(--plate); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.bb .main-nav .pill[aria-current="page"]:hover { background: var(--plate); }

/* 層の見出しと「もっと見る」を 1 行に（スマホ幅では折り返す） */
.layer__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }

/* SearchBox：トップの検索欄（レタスの層）。キーワードだけを GET で一覧へ送る */
.search-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: end; max-width: 40rem; }
.bb .search-box__submit { min-height: 48px; justify-content: center; cursor: pointer; }

/* Featured：今月のイチオシ（チーズの層）。タイトルのリンクを枠全体に広げる */
.featured { position: relative; flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-6) var(--space-8); align-items: center; border-radius: var(--radius-lg); }
.featured:has(.featured__link:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 4px; box-shadow: 0 0 0 7px var(--focus-halo); }
.featured__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.featured__body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.featured .review-card__genre { background: var(--plate); }
.featured__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.35; }
.bb .featured__link { color: inherit; text-decoration: none; }
.featured__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.bb .featured__link:focus-visible { outline: none; box-shadow: none; }
.featured__shop { font-size: 1rem; font-weight: 700; }
.featured__meta { font-size: 0.875rem; font-weight: 500; color: var(--cheese-ink); }
.featured__score { font-size: 1rem; font-weight: 700; }
.featured__score b { font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; margin: 0 0.1em; }
.featured__score.is-unrated b { font-size: 1.75rem; }
.featured__more { align-self: flex-start; }

/* RankingList：評価の高いレビュー（トマトの層）。順位の短いリスト。写真は出さない */
.ranking { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.ranking li { position: relative; display: flex; align-items: center; gap: var(--space-4); min-height: var(--touch-min); padding: var(--space-3) var(--space-4); background: var(--tomato-deep); border-radius: var(--radius-md); }
.ranking li:has(.ranking__link:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-halo); }
.ranking__no { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--plate); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.ranking__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.bb .ranking__link { color: var(--on-tomato); text-decoration: none; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ranking__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.bb .ranking__link:focus-visible { outline: none; box-shadow: none; }
.ranking__score { flex: 0 0 auto; font-size: 0.875rem; font-weight: 700; }
.ranking__score b { font-size: 1.375rem; font-variant-numeric: tabular-nums lining-nums; }
.ranking-note { font-size: 0.8125rem; font-weight: 500; color: var(--tomato-ink); }
.bb .layer--tomato .pill--outline { border-color: var(--tomato-ink); color: var(--on-tomato); align-self: flex-start; }

/* Profile：書いている人（トマトの層）。自己紹介は改行を保つ */
.profile { display: flex; gap: var(--space-4); align-items: flex-start; }
.profile__icon { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--photo); }
.profile__body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.profile__name { font-size: 1.125rem; font-weight: 700; }
.profile__bio { font-size: 0.9375rem; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured__title { font-size: 1.5rem; }
  .search-box { grid-template-columns: minmax(0, 1fr); }
  .profile__icon { width: 72px; height: 72px; }
}

/* ---------- おすすめ投稿とプライバシーポリシー（004） ---------- */
/* 誤りの色は tomato（plate の上で 5.1:1）。色だけで伝えず、必ず文と「！」の印を添える */

/* PostForm：おすすめ投稿のフォーム（パティの層の紙の上）。POST で送る。確認（Turnstile）に JavaScript が要るので、スクリプトなしでは送れないことを文で伝える（004 plan.md の「デザイン」の読み替え） */
.post-form { width: 100%; max-width: var(--article-max); background: var(--plate); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-10) clamp(20px, 4vw, 48px); display: flex; flex-direction: column; gap: var(--space-6); }
.post-form__promise { background: var(--lettuce-soft); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); font-size: 0.875rem; font-weight: 500; line-height: 1.7; }
.post-form__promise-title { font-size: 0.9375rem; font-weight: 700; }
.post-form__promise ul { margin: 0; padding-left: 1.25em; }
.bb .post-form a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 種類（おすすめの店／お問い合わせ）：見える丸のラジオボタンを持つ札。選んだ札は cheese-soft の地と太い縁 */
.choice-group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.choice-group legend { padding: 0; margin-bottom: var(--space-2); font-size: 0.875rem; font-weight: 700; }
.choice-group__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.choice { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 56px; padding: var(--space-3) var(--space-4); border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--plate); cursor: pointer; }
.choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); }
.choice__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.choice__title { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.choice__desc { font-size: 0.8125rem; font-weight: 500; line-height: 1.5; color: var(--ink-soft); }
.choice:has(input:checked) { background: var(--cheese-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px var(--focus-halo); }
.bb .choice input:focus-visible { outline: none; box-shadow: none; }

/* 欄：2 列（スマホ幅では 1 列）。理由・本文は横いっぱい */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.form-grid .field--wide { grid-column: 1 / -1; }
.post-form .field { gap: 6px; }
.post-form .field label { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.field textarea {
  width: 100%;
  min-height: 12rem;
  padding: var(--space-3);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--plate);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* iPhone の Safari が押したときに拡大しないよう 16px 以上 */
  line-height: 1.8;
  resize: vertical;
}
.req, .opt { display: inline-flex; align-items: center; border-radius: var(--radius-pill); padding: 0 8px; font-size: 0.75rem; font-weight: 700; line-height: 1.6; }
.req { background: var(--ink); color: var(--plate); }
.opt { box-shadow: inset 0 0 0 1px var(--ink-soft); color: var(--ink-soft); }
.field__hint { font-size: 0.8125rem; font-weight: 500; line-height: 1.6; color: var(--ink-soft); }
.field__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-1) var(--space-3); }
.field__count { margin-left: auto; font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums lining-nums; }
.field__count.is-over { color: var(--tomato); }
.field__error { display: flex; gap: 6px; align-items: flex-start; font-size: 0.875rem; font-weight: 700; line-height: 1.6; color: var(--tomato); }
.field__error svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--tomato); box-shadow: inset 0 0 0 1px var(--tomato); }

/* ボット判定（Cloudflare Turnstile）の置き場所。部品は相手が描く（300×65。幅が足りないスマホでは 150×140 の compact） */
.bot-check { display: flex; flex-direction: column; gap: var(--space-2); }
.bot-check__label { font-size: 0.875rem; font-weight: 700; }
.bot-check__widget { width: 300px; max-width: 100%; height: 65px; display: flex; align-items: center; justify-content: center; padding: 0 var(--space-3); border: 2px dashed var(--ink-soft); border-radius: var(--radius-sm); background: var(--photo); color: var(--ink-soft); font-size: 0.8125rem; font-weight: 700; text-align: center; line-height: 1.4; }

/* 送るボタン。送れないときは photo の地と ink-soft の文字（5.8:1）にし、理由を文で添える */
.post-form__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.bb .post-form__submit { min-height: 52px; padding: 0 var(--space-10); font-size: 1rem; cursor: pointer; justify-content: center; }
.bb .pill[disabled], .bb .pill[aria-disabled="true"] { background: var(--photo); color: var(--ink-soft); cursor: not-allowed; }
.post-form__note { font-size: 0.8125rem; font-weight: 500; line-height: 1.6; color: var(--ink-soft); }

/* Notice：送れない・直すことがあるときの知らせ。plate の地に tomato の 3px の縁と「！」の印 */
.notice { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--plate); color: var(--ink); border: 3px solid var(--tomato); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.notice__icon { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 2px; color: var(--tomato); }
.notice__body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: 0.9375rem; font-weight: 500; line-height: 1.7; }
.notice__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.notice ul { margin: 0; padding-left: 1.25em; }
.notice li + li { margin-top: var(--space-1); }

/* CallToAction：トップのトマトの層の下に置く、おすすめ投稿への案内（入力欄は置かない） */
.cta { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); padding: var(--space-6); background: var(--tomato-deep); color: var(--on-tomato); border-radius: var(--radius-md); }
.cta__body { flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.cta__title { font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.cta__text { font-size: 0.9375rem; font-weight: 500; line-height: 1.7; }
.cta__note { font-size: 0.8125rem; font-weight: 500; line-height: 1.6; color: var(--tomato-ink); }
/* 皿の色のボタン（トマトの層の上で目立たせる）。トマトの層のリンクの色より強く指定する */
.bb .pill--plate, .bb .layer--tomato a.pill--plate { background: var(--plate); color: var(--ink); }
.bb .pill--plate:hover, .bb .layer--tomato a.pill--plate:hover { background: var(--plate-deep); }

/* プライバシーポリシー：記事の紙に見出し・段落・箇条書き・項目の一覧 */
.article ul, .article ol { margin: 0; padding-left: 1.5em; }
.article li + li { margin-top: var(--space-1); }
.policy-meta { font-size: 0.875rem; font-weight: 700; color: var(--lettuce-ink); }
.policy-terms { margin: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.policy-terms div { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); background: var(--plate-deep); border-radius: var(--radius-sm); }
.policy-terms dt { font-weight: 700; line-height: 1.6; }
.policy-terms dd { margin: 0; line-height: 1.9; }
.bb .article a { font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 600px) {
  .form-grid, .choice-group__options { grid-template-columns: minmax(0, 1fr); }
  .post-form__actions { align-items: stretch; }
  .bb .post-form__submit { width: 100%; }
  .bot-check__widget { width: 150px; height: 140px; }
  .cta { padding: var(--space-5); }
  .bb .cta .pill { width: 100%; justify-content: center; }
}

/* ---------- 実装で足したもの ---------- */
/* ページの外側の余白を消す（地の色は .bb の plate） */
body.bb { margin: 0; }
/* 上バンズ（compact）のごまの位置と向き（デザインシステムの BunTop の見本の値） */
.bun-top--compact .seed--1 { top: 40px; left: 30%; transform: rotate(-20deg); }
.bun-top--compact .seed--2 { top: 26px; left: 46%; transform: rotate(10deg); }
.bun-top--compact .seed--3 { top: 34px; left: 62%; transform: rotate(28deg); }
/* 上バンズ（トップの大きい形）のごまの位置と向き（デザインシステムの BunTop の見本の大きい形の値。003） */
.bun-top:not(.bun-top--compact) .seed--1 { top: 58px; left: 24%; transform: rotate(-24deg); }
.bun-top:not(.bun-top--compact) .seed--2 { top: 36px; left: 35%; transform: rotate(18deg); }
.bun-top:not(.bun-top--compact) .seed--3 { top: 24px; left: 47%; transform: rotate(-8deg); }
.bun-top:not(.bun-top--compact) .seed--4 { top: 30px; left: 59%; transform: rotate(30deg); }
.bun-top:not(.bun-top--compact) .seed--5 { top: 52px; left: 71%; transform: rotate(-16deg); }
/* 一覧のパティの層の上の余白（画面のデザインの「002 一覧」の style 属性 padding-top:64px を写したもの） */
.layer--patty.is-index { padding-top: 64px; }
/* お店データの見出し（ShopData の見本の style 属性 font-size:1.25rem を写したもの。スマホの .layer__title より後に置く） */
.layer__title--small { font-size: 1.25rem; }
/* 画面には出さず読み上げだけに渡す文（ShopData の見本の style 属性を写したもの） */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* トマトの層の中のカード（関連レビュー）の文字の色。.bb .layer--tomato a（白）がカードのタイトルのリンクに
   効いて plate の地で読めなくなるので、カードの中はカードの文字の色に戻す（002 の実装で足したもの） */
.bb .layer--tomato .review-card a { color: inherit; }
/* チーズの層（イチオシ）の見出しを横いっぱいにする（画面のデザインの「003 トップ」の style 属性 flex: 1 1 100% を写したもの） */
.layer--cheese > .layer__title { flex: 1 1 100%; }
/* イチオシがないときの新着のパティの層の上の余白（画面のデザインの「003 トップ・欄が欠ける」の style 属性 padding-top:64px を写したもの。.is-index と同じ値） */
.layer--patty.is-flush { padding-top: 64px; }
/* 確認の部品の置き場所は、スクリプトが動くまで隠す（hidden の属性。.bot-check__widget の display より強く指定する。004 の実装で足したもの） */
.bot-check__widget[hidden] { display: none; }
/* 確認の部品を描いた後は、置き場所の点線・地・大きさを外して部品（Cloudflare が描く 300×65 か compact の 150×140）だけにする。
   幅を部品に合わせて、置き場所と同じく左に寄せる（横いっぱいに伸びて中央に寄らないように。004 の完了の確認で直した） */
.bot-check__widget.is-rendered { width: auto; height: auto; padding: 0; border: 0; background: none; align-self: flex-start; }
/* 誤りの要約のリンクで欄へ移ったとき、欄の上のラベルと誤りの文（スマホ幅で 2〜3 行）が画面の上に隠れないように余白を取る（004 の完了の確認で直した） */
.field input, .field select, .field textarea { scroll-margin-top: 8rem; }
.choice-group { scroll-margin-top: var(--space-4); }
