/* つまみ処 ちびちび — 黒板の墨緑 × あめ色 */
:root {
  --board: #1d2b24;
  --board2: #24352d;
  --board3: #2c4036;
  --chalk: #eef0e6;
  --chalk2: #c9cfc0;
  --amber: #d99a3e;
  --amber2: #f1bf6e;
  --wood: #6b4423;
  --paper: #f6f0e1;
  --ink: #2a2620;
  --line: rgba(238, 240, 230, .22);
  --hand: 'Yomogi', 'Zen Maru Gothic', sans-serif;
  --body: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--chalk); font-family: var(--body); line-height: 1.8; font-size: 15px;
  background-color: var(--board);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.05), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,.04), transparent 50%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.012) 0 2px, transparent 2px 7px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ヘッダー：木の枠のついた黒板 */
.board-top {
  display: flex; align-items: center; gap: 18px; padding: 12px 22px;
  border-bottom: 6px solid var(--wood); box-shadow: 0 2px 0 #4a2f18;
  background: var(--board2); position: sticky; top: 0; z-index: 20;
}
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; }
.logo .noren { font-size: 12px; background: var(--amber); color: var(--board); padding: 1px 7px; border-radius: 3px; font-weight: 700; letter-spacing: .1em; }
.logo b { font-family: var(--hand); font-size: 28px; font-weight: 400; letter-spacing: .08em; color: var(--chalk); text-shadow: 0 0 1px rgba(255,255,255,.5); }
.gnav { display: flex; gap: 18px; font-size: 14px; }
.gnav a { text-decoration: none; color: var(--chalk2); border-bottom: 1px dashed transparent; }
.gnav a:hover { color: var(--amber2); border-bottom-color: var(--amber2); }
.dish {
  position: relative; width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, #fffaf0 0 46%, #e9dcc0 47% 60%, var(--amber) 61% 100%);
  color: var(--ink); text-decoration: none; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.dish .t { font-size: 13px; font-weight: 700; }
.dish .n {
  position: absolute; right: -6px; top: -4px; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
  background: var(--chalk); color: var(--board); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}

/* ヒーロー：黒板の今日のお品書き */
.hero { max-width: 1160px; margin: 0 auto; padding: 44px 22px 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; }
.chalkbox { border: 2px solid var(--line); border-radius: 6px; padding: 30px 30px 26px; position: relative; }
.chalkbox::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: -14px; height: 8px; background: var(--wood); border-radius: 3px; }
.hero .small { font-family: var(--hand); color: var(--amber2); font-size: 18px; margin: 0; }
.hero h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: 1.2; margin: 6px 0 14px; letter-spacing: .06em; }
.hero h1 span { display: inline-block; border-bottom: 3px solid var(--amber); }
.hero .lead { color: var(--chalk2); margin: 0 0 18px; }
.today { list-style: none; padding: 0; margin: 0 0 22px; font-family: var(--hand); font-size: 19px; }
.today li { display: flex; gap: 10px; align-items: baseline; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.today li i { font-style: normal; color: var(--amber2); flex: none; }
.today li span { margin-left: auto; color: var(--chalk2); font-size: 15px; }
.go { display: inline-block; font-family: var(--hand); font-size: 20px; background: var(--amber); color: var(--board); text-decoration: none; padding: 8px 28px; border-radius: 999px; box-shadow: 0 3px 0 #8f6123; }
.hero-plates { position: relative; aspect-ratio: 1 / 1; }
.hero-plates a { position: absolute; border-radius: 50%; overflow: hidden; border: 10px solid #f3ead7; box-shadow: 0 0 0 4px var(--amber), 0 14px 26px rgba(0,0,0,.45); }
.hero-plates a img { width: 100%; height: 100%; object-fit: cover; }
.hero-plates .p1 { width: 72%; height: 72%; left: 0; top: 4%; }
.hero-plates .p2 { width: 44%; height: 44%; right: 0; bottom: 4%; }
.hero-cap { font-size: 12px; color: var(--chalk2); margin: 8px 0 0; text-align: right; }

/* お品書き（絞り込み＋一覧） */
.menu { max-width: 1160px; margin: 0 auto; padding: 40px 22px 30px; }
.menu-h { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.menu-h h2 { font-family: var(--hand); font-weight: 400; font-size: 36px; margin: 0; letter-spacing: .1em; }
.menu-h .count { color: var(--amber2); font-family: var(--hand); font-size: 18px; margin: 0; }
.fuda { display: flex; flex-wrap: wrap; gap: 8px 6px; margin: 18px 0 30px; padding: 14px 16px; background: var(--board2); border-top: 3px solid var(--wood); border-bottom: 3px solid var(--wood); }
.fuda button {
  background: none; border: none; color: var(--chalk); font-family: var(--hand); font-size: 18px; cursor: pointer;
  padding: 2px 10px 4px; border-radius: 4px; position: relative;
}
.fuda button i { font-style: normal; font-size: 13px; color: var(--chalk2); margin-left: 4px; }
.fuda button.on { color: var(--amber2); }
.fuda button.on::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--amber2); border-radius: 2px; transform: rotate(-1.5deg); }
.fuda button:focus-visible { outline: 2px dashed var(--amber2); }

.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.plate { text-decoration: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
.plate .rim {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; display: block;
  border: 9px solid #f3ead7; box-shadow: 0 0 0 3px var(--amber), 0 10px 18px rgba(0,0,0,.4); transition: transform .25s;
}
.plate .rim img { width: 100%; height: 100%; object-fit: cover; }
.plate:hover .rim { transform: rotate(-4deg) scale(1.02); }
.plate .kind { margin-top: 14px; font-size: 12px; color: var(--chalk2); }
.plate .nm { font-size: 15px; font-weight: 700; line-height: 1.5; margin-top: 2px; }
.plate .pr { font-family: var(--hand); color: var(--amber2); font-size: 22px; margin-top: 4px; }
.plate .pr small { font-family: var(--body); font-size: 11px; margin-left: 4px; color: var(--chalk2); }
.plates.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* お約束 */
.yakusoku { max-width: 1160px; margin: 20px auto 50px; padding: 0 22px; }
.yakusoku h2 { font-family: var(--hand); font-weight: 400; font-size: 32px; margin: 0 0 18px; letter-spacing: .1em; }
.yk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.yk div { background: var(--paper); color: var(--ink); border-radius: 50% 50% 14px 14px / 26px 26px 14px 14px; padding: 26px 22px 20px; }
.yk h3 { margin: 0 0 6px; font-size: 17px; color: var(--wood); }
.yk p { margin: 0; font-size: 14px; }

/* フッター */
.board-end { border-top: 6px solid var(--wood); background: #16211b; padding: 34px 22px 18px; }
.fin { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; font-size: 13px; }
.fname { font-family: var(--hand); font-size: 24px; margin: 0; }
.tag, .co { color: var(--chalk2); margin: 4px 0; }
.ship { color: var(--amber2); margin: 6px 0 0; }
.f2 { display: flex; flex-direction: column; gap: 4px; }
.f2 a { color: var(--chalk2); }
.copy { text-align: center; font-size: 11px; color: var(--chalk2); margin: 24px 0 0; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--amber); color: var(--board); padding: 10px 22px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: .3s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 商品ページ */
.page { max-width: 1160px; margin: 0 auto; padding: 22px 22px 50px; }
.crumb { font-size: 12px; color: var(--chalk2); margin-bottom: 18px; }
.crumb a { color: var(--chalk2); }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.main-img { border-radius: 50%; overflow: hidden; border: 12px solid #f3ead7; box-shadow: 0 0 0 4px var(--amber), 0 14px 26px rgba(0,0,0,.45); aspect-ratio: 1/1; }
.main-img img { width: 100%; height: 100%; object-fit: cover; }
.main-img.sq { border-radius: 14px; background: #fff; }
.main-img.sq img { object-fit: contain; }
.cap { font-size: 12px; color: var(--chalk2); margin: 12px 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs button { width: 62px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 50%; overflow: hidden; background: #fff; cursor: pointer; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on { border-color: var(--amber2); }
.pinfo .kind { font-size: 13px; color: var(--chalk2); }
.pinfo h1 { font-size: 24px; line-height: 1.5; margin: 4px 0 8px; }
.price { font-family: var(--hand); font-size: 34px; color: var(--amber2); }
.price small { font-family: var(--body); font-size: 13px; color: var(--chalk2); }
.desc { white-space: pre-line; }
.opt { margin: 14px 0; }
.opt .t { font-size: 14px; margin-bottom: 6px; }
.vals { display: flex; flex-wrap: wrap; gap: 8px; }
.vals button { background: var(--board3); border: 1px solid var(--line); color: var(--chalk); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.vals button.on { background: var(--amber); color: var(--board); border-color: var(--amber); font-weight: 700; }
.varies { font-size: 13px; color: var(--amber2); }
.buy { display: flex; gap: 12px; align-items: center; margin: 18px 0 8px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 40px; background: none; border: none; color: var(--chalk); font-size: 18px; cursor: pointer; }
.qty input { width: 40px; height: 40px; text-align: center; background: none; border: none; color: var(--chalk); font-size: 16px; }
.btn { display: inline-block; background: var(--amber); color: var(--board); border: none; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center; box-shadow: 0 3px 0 #8f6123; }
.btn.line { background: none; color: var(--chalk); border: 1px solid var(--chalk2); box-shadow: none; }
.btn.block { display: block; width: 100%; }
.msg { color: var(--amber2); font-size: 14px; min-height: 1.4em; }
.ship-l { padding-left: 1.2em; font-size: 13px; color: var(--chalk2); }
.label { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 18px 18px 14px; margin-top: 18px; }
.label h2 { font-size: 16px; margin: 0 0 10px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.label table { width: 100%; border-collapse: collapse; font-size: 13px; }
.label th, .label td { border: 1px solid #b8ac90; padding: 6px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.label th { width: 7.5em; background: #ece3cd; font-weight: 700; }
.lnote { font-size: 12px; margin: 10px 0 0; color: #5b5244; }
.warn { font-size: 13px; color: var(--amber2); }
.note { font-size: 13px; color: var(--chalk2); margin-top: 12px; }
.more { margin-top: 50px; }
.more h2 { font-family: var(--hand); font-weight: 400; font-size: 28px; }
.empty { text-align: center; padding: 60px 0; }

/* 小皿（カート） */
.ptitle { max-width: 1160px; margin: 0 auto; padding: 30px 22px 0; }
.ptitle h1 { font-family: var(--hand); font-weight: 400; font-size: 34px; margin: 0; letter-spacing: .1em; }
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.row { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.row img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 4px solid #f3ead7; }
.row .nm { font-weight: 700; text-decoration: none; }
.row .op { font-size: 13px; color: var(--chalk2); }
.row .warnc { color: var(--amber2); }
.row .qty { display: inline-flex; margin: 6px 0; }
.row .qty button, .row .qty input { height: 32px; }
.rm { background: none; border: none; color: var(--chalk2); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0; }
.sub { font-family: var(--hand); font-size: 20px; color: var(--amber2); white-space: nowrap; }
.sum { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 20px; }
.sum dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0 0 12px; }
.sum dt, .sum dd { margin: 0; }
.sum dd { text-align: right; }
.sum .total { font-weight: 700; font-size: 17px; border-top: 1px solid #b8ac90; padding-top: 8px; }
.sum .free { font-size: 12px; }
.sum .btn.line { color: var(--ink); border-color: var(--ink); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal.show { display: flex; }
.modal .box { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 24px; max-width: 440px; width: 100%; }
.modal h2 { margin-top: 0; font-size: 19px; }
.modal .btn.line { color: var(--ink); border-color: var(--ink); }

/* 法務ページ */
.legal { max-width: 860px; margin: 0 auto; padding: 20px 22px 60px; }
.legal .lead { color: var(--amber2); }
.toku { margin: 0; }
.toku > div { display: grid; grid-template-columns: 11em 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.toku dt { font-family: var(--hand); font-size: 17px; color: var(--amber2); }
.toku dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.legal h2 { font-family: var(--hand); font-weight: 400; color: var(--amber2); font-size: 21px; margin: 28px 0 6px; }
.legal p, .legal li { font-size: 14px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-plates { max-width: 420px; margin: 0 auto; width: 100%; }
  .plates, .plates.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd, .cart { grid-template-columns: 1fr; }
  .yk { grid-template-columns: 1fr; }
  .fin { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .board-top { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .gnav { order: 3; width: 100%; gap: 14px; font-size: 13px; }
  .logo b { font-size: 24px; }
  .dish { width: 54px; height: 54px; }
  .hero, .menu, .page, .yakusoku, .legal, .ptitle { padding-left: 16px; padding-right: 16px; }
  .chalkbox { padding: 22px 18px 20px; }
  .plates, .plates.small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .plate .rim { border-width: 6px; }
  .plate .nm { font-size: 13px; }
  .fuda button { font-size: 16px; padding: 2px 7px 4px; }
  .toku > div { grid-template-columns: 1fr; gap: 2px; }
  .row { grid-template-columns: 64px 1fr; }
  .row img { width: 64px; height: 64px; }
  .row .sub { grid-column: 2; }
  .label th { width: 6em; }
  .board-end { padding-left: 16px; padding-right: 16px; }
}

:root{--review-accent:var(--amber);--review-line:var(--line);--review-ink:var(--ink);--review-paper:var(--paper)}
/* Purchase reviews inherit each shop's type, colors and buttons. */
.reviews-section{margin-block:48px;padding-block:24px;max-width:100%}
.reviews-section[hidden],.rv[hidden],.rv-sheet[hidden]{display:none!important}
.reviews-section h2{font-size:1.35rem;margin-bottom:20px}
.rv-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.stars{white-space:nowrap;letter-spacing:.08em;opacity:.8}.stars .on{color:var(--review-accent);opacity:1}
.rv-avg{font-size:1.5rem;font-weight:bold}.rv-count,.rv-meta{font-size:.85rem;opacity:.75}
.rv-list{list-style:none;padding:0;margin:0}.rv{padding:22px 0;border-top:1px solid var(--review-line)}
.rv-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.rv-badge{font-size:.7rem;border:1px solid currentColor;padding:2px 6px;border-radius:3px;opacity:.8}
.rv h4{margin:12px 0 8px;font-size:1rem}.rv p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin:8px 0}
.rv-meta,.rv-item{margin-top:8px}.rv-item{font-size:.85rem;overflow-wrap:anywhere}
.rv-more{margin-top:20px;cursor:pointer;font:inherit}.product-review-rating{display:inline-flex;gap:10px;align-items:center;margin:10px 0;font-size:.9rem}
.card-w{min-width:0;display:flex;flex-direction:column}.card-w>a{flex:1}.card-rv{background:transparent;color:inherit;border:1px solid var(--review-line);padding:10px 6px;font:inherit;font-size:.8rem;cursor:pointer;display:flex;gap:7px;justify-content:center;align-items:center;flex-wrap:wrap;width:100%}
.rv-sheet{position:fixed;inset:0;z-index:10000;background:#0008;display:flex;align-items:center;justify-content:center;padding:16px;color:var(--review-ink)}
.rv-sheet-box{width:640px;max-width:100%;max-height:85vh;overflow:auto;background:var(--review-paper);padding:24px;border:1px solid var(--review-line);border-radius:8px}
.rv-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.rv-sheet-head h3{font-size:1.1rem;overflow-wrap:anywhere}
.rv-sheet-x{font:inherit;font-size:1.8rem;line-height:1;background:transparent;color:inherit;border:0;cursor:pointer;padding:0 4px}.rv-sheet-go{margin-top:16px;display:inline-block}
@media(max-width:480px){.rv-sheet-box{padding:18px}.reviews-section{margin-block:28px}.card-rv{font-size:.72rem}}
