/* 雑誌のような落ち着いた見た目：生成りの地に墨色、店名はセリフ体、強調色は1色、角丸は小さく影なし。情報の並べ方は一覧・表のまま */
[hidden] { display: none !important; }
:root {
  --bg: #f6f4ef; --paper: #fffdf9; --ink: #1d1c1a; --muted: #6e6a62; --faint: #9a958b; --line: #e3dfd6; --line-strong: #1d1c1a;
  --accent: #9b4a2c; --accent-soft: #f3e6df; --sage: #e4e6dc; --ok: #3f6b4a; --warn: #a3671b; --off: #8a857c; --error: #a1281c;
  --serif: "Iowan Old Style", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif CJK TC", "Songti TC", "Source Han Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Noto Sans CJK JP", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --radius: 2px;
  font-family: var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; font-size: 15px; }
button, a.primary, a.ghost { font-family: inherit; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 9; background: var(--paper); padding: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; background: rgba(246, 244, 239, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; }
h1 { font: 400 21px/1.15 var(--serif); margin: 0; letter-spacing: .01em; }
.tagline { margin: 2px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.lang { display: flex; gap: 2px; flex-shrink: 0; }
.lang button { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); padding: 6px 6px; min-height: 36px; font-size: 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

main { max-width: 1120px; margin: 0 auto; padding: 16px 20px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
#start { text-align: left; padding: 40px 24px; }
#start p { font: 400 20px/1.5 var(--serif); margin: 0 0 20px; max-width: 28em; }
.panel p { color: var(--muted); }
.primary, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius); text-decoration: none; cursor: pointer; margin: 4px 8px 4px 0; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.primary:hover { background: #000; }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.ghost:hover { background: var(--paper); }
.linkish { background: none; border: 0; color: var(--ink); padding: 8px 0; cursor: pointer; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
#status { margin: 12px 0; color: var(--muted); min-height: 1em; font-size: 14px; }
#status.error { color: var(--error); }

/* 絞り込みのバー */
.filterbar { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: 4px 0; }
.fb-row { display: flex; align-items: center; gap: 14px; }
.fb-row + .fb-row { border-top: 1px solid var(--line); }
.fb-label { flex-shrink: 0; width: 4.5em; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.chip { flex-shrink: 0; min-height: 34px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer; font-size: 13px; }
.chip:hover { border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* 件数と並び替えのタブ */
.listhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 20px; border-bottom: 1px solid var(--line); }
#count { margin: 0 0 10px; font: 400 17px/1.3 var(--serif); }
.sorttabs { display: flex; gap: 16px; }
.sorttabs button { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 8px 0;
  min-height: 40px; font-size: 13px; color: var(--muted); cursor: pointer; }
.sorttabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.mapbox { margin: 10px 0; font-size: 13px; }
.mapbox summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.map { width: 100%; height: 240px; border: 0; background: var(--sage); display: block; filter: grayscale(.35); }

/* 一覧の行 */
.cards { list-style: none; margin: 0; padding: 0; }
.card { border-bottom: 1px solid var(--line); }
.card-link { color: inherit; text-decoration: none; display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 16px 0; }
.card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.photo { display: block; background: var(--sage); object-fit: cover; }
.card .photo { width: 104px; height: 104px; border-radius: var(--radius); }
.card-body { position: relative; min-width: 0; }
.rank { position: absolute; right: 0; top: 2px; font: 400 12px var(--serif); color: var(--faint); }
.card h3 { margin: 0 28px 4px 0; font: 400 18px/1.3 var(--serif); color: var(--ink); }
.area { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.dist { color: var(--ink); white-space: nowrap; }
.score { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.stars { position: relative; display: inline-block; width: 60px; height: 3px; background: var(--line); }
.stars i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.score b { color: var(--ink); font: 400 15px var(--serif); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; }
.tag { color: var(--muted); font-size: 12px; }
.tag + .tag::before { content: "/"; margin-right: 10px; color: var(--line); }
.more { text-align: center; padding: 16px; }
.sk { height: 137px; background: var(--paper); animation: sh 1.4s ease-in-out infinite; }
@keyframes sh { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
#empty { margin-top: 16px; }

/* 詳細 */
.crumbs { margin-bottom: 8px; }
.detail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 24px; }
.detail > * { margin-left: 20px; margin-right: 20px; }
.d-head { margin: 0; padding: 24px 20px 16px; }
.detail h2 { font: 400 28px/1.25 var(--serif); margin: 0 0 6px; }
.detail .score b { font-size: 20px; }
.detail .hero { width: calc(100% - 40px); aspect-ratio: 3 / 2; height: auto; border-radius: var(--radius); }
.blurb { margin: 16px 20px 8px; font: 400 16px/1.6 var(--serif); }
.sec { margin-top: 32px; margin-bottom: 10px; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
.info { width: calc(100% - 40px); border-collapse: collapse; font-size: 13px; }
.info th, .info td { border-bottom: 1px solid var(--line); padding: 10px 0; text-align: left; vertical-align: top; }
.info th { width: 32%; font-weight: 400; color: var(--muted); padding-right: 12px; }
.info td { word-break: break-word; }
.info a { color: var(--ink); text-underline-offset: 3px; }
.ratings { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.ratings li { display: grid; grid-template-columns: 70px 1fr 28px; align-items: center; gap: 12px; }
.bar { height: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }
.ratings b { font-weight: 400; font-family: var(--serif); text-align: right; }
.detail .map { width: calc(100% - 40px); height: 240px; }
.actions { display: flex; flex-wrap: wrap; margin-top: 16px !important; }
.note { font-size: 12px; color: var(--muted); }
footer { padding: 32px 20px 48px; font-size: 12px; color: var(--muted); max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }
@media (min-width: 640px) {
  .card-link { grid-template-columns: 168px 1fr; gap: 20px; padding: 20px 0; }
  .card .photo { width: 168px; height: 126px; }
  .card h3 { font-size: 20px; }
  h1 { font-size: 24px; }
}
#status:empty { margin: 0; min-height: 0; }

/* 詳細のパネル（Notion のサイドピーク風）。PCは一覧を残して右から、スマホは下からのシート */
.peek { position: fixed; z-index: 20; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.peek .detail { border: 0; background: none; }
.peek-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; align-items: center; padding: 8px 10px;
  background: rgba(255, 253, 249, .96); border-bottom: 1px solid var(--line); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none;
  color: var(--ink); cursor: pointer; border-radius: var(--radius); }
.iconbtn:hover { background: var(--sage); }
.iconbtn .icon { width: 20px; height: 20px; }
.grip { display: none; }
#scrim { position: fixed; inset: 0; z-index: 19; background: rgba(29, 28, 26, .32); }
.card.is-open .card-link { background: var(--paper); box-shadow: inset 2px 0 0 var(--ink); }
@media (max-width: 899px) {
  .peek { left: 0; right: 0; bottom: 0; height: 90dvh; border-radius: 10px 10px 0 0; border-top: 1px solid var(--line);
    animation: up .22s ease-out; }
  .peek-bar { justify-content: space-between; border-radius: 10px 10px 0 0; }
  .grip { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin-left: calc(50% - 28px); }
  body.peek-open { overflow: hidden; }
}
@media (min-width: 900px) {
  :root { --peek-w: min(520px, 44vw); }
  .peek { top: 0; right: 0; bottom: 0; width: var(--peek-w); border-left: 1px solid var(--line); animation: in .2s ease-out; }
  #scrim { display: none; }
  body.peek-open main, body.peek-open footer { max-width: none; margin-left: 0; margin-right: var(--peek-w); }
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes in { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .peek { animation: none; } }

/* 営業状態のバッジ：色は状態表示だけに使う */
.hours { margin: 2px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; letter-spacing: .02em; }
.badge .icon { width: 13px; height: 13px; vertical-align: 0; }
.b-open { color: var(--ok); }
.b-soon { color: var(--warn); }
.b-closed { color: var(--off); }
.b-unknown { color: var(--faint); }
.today { color: var(--muted); }
.info .raw { display: block; margin-top: 2px; white-space: pre-line; }
.info .src { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.info .hours { margin: 0; }

/* 閉店の可能性：赤ではなく落ち着いた錆色。報告ボタンは控えめに */
.b-gone { color: var(--accent); }
.report { margin: 24px 20px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.report .ghost { display: inline-flex; align-items: center; gap: 6px; }
.report .note { margin: 8px 0 0; }

/* 写真の列：横にスワイプ（scroll-snap）、出典は写真の下に小さく */
.gallery { margin: 0 20px; }
.g-track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: start; }
.g-slide figure { margin: 0; }
.gallery .hero { width: 100%; margin: 0; }
.g-slide figcaption { font-size: 11px; color: var(--faint); margin-top: 4px; }
.g-slide figcaption a { color: inherit; }
.g-meta { margin: 2px 0 0; text-align: right; font-size: 11px; color: var(--muted); min-height: 1em; }
.reviews { margin: 0 20px; }
.rv-sum { font: 400 15px var(--serif); margin: 0 0 8px; }
.rv-list { list-style: none; margin: 0 0 12px; padding: 0; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 12px; color: var(--faint); }
.rv-body { margin: 0; line-height: 1.6; white-space: pre-line; }
