/* ==========================================================================
   Rouji Sushi — washi paper, sumi ink and a red seal, after the printed menu.
   ========================================================================== */

:root {
  --paper: #efe7d8;
  --paper-2: #e6dcc8;
  --paper-3: #f6f1e6;
  --ink: #1d1a17;
  --ink-2: #3a332c;
  --muted: #6e6255;
  --line: rgba(29, 26, 23, 0.14);
  --line-strong: rgba(29, 26, 23, 0.28);
  --red: #c4242b;
  --red-dark: #a21b21;
  --red-soft: rgba(196, 36, 43, 0.1);
  --green: #3f6b3a;

  --f-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-brush: "Yuji Syuku", "Shippori Mincho", serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(48, 32, 16, 0.45);
  --shadow-sm: 0 6px 18px -10px rgba(48, 32, 16, 0.35);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 120px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("../img/paper.jpg");
  background-size: 600px auto;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.deco { position: absolute; pointer-events: none; user-select: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-body); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgba(196, 36, 43, 0.8); }
.btn-red:hover { background: var(--red-dark); }
.btn-ink { background: var(--ink); color: var(--paper-3); }
.btn-ink:hover { background: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper-3); }
.btn-sm { min-height: 40px; padding: 0 1.05em; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; font-size: 0.88rem; }
.link-red { color: var(--red); text-decoration: none; font-weight: 500; }
.link-red:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(239, 231, 216, 0.82);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, 0.5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-jp { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.3em; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-2); position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang-switch button { border: 0; background: transparent; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; cursor: pointer; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper-3); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--ink); transition: transform 0.25s var(--ease), top 0.25s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero: the menu-tag wall (お品書き) ---------- */
:root { --wood-light: #efdfbd; --wood-dark: #5a3e24; }
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: 10px; }
.hero-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.06; max-width: 11ch; text-wrap: balance; }
.hero-lede { max-width: 34ch; margin: 22px 0 30px; font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-status { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 26px 0 0; font-size: 0.92rem; color: var(--ink-2); }
.hero-status a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.hero-status a:hover { color: var(--red); }
[data-open-status].is-open { color: var(--green); }
[data-open-status].is-closed { color: var(--red); }

.hero-wall { position: relative; padding-top: 6px; }
/* The rail runs out to the edge of the window */
.wall-rail {
  position: absolute; top: 0; left: -8px; height: 12px; border-radius: 6px 0 0 6px;
  right: calc(-1 * max(var(--gutter), (100vw - 1200px) / 2 + var(--gutter)));
  background: linear-gradient(180deg, #7a5634, var(--wood-dark) 60%, #3f2a16);
  box-shadow: 0 8px 12px -8px rgba(30, 18, 6, 0.7);
  transform-origin: left center;
}
.wall-rail::before { content: ""; position: absolute; left: -6px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8d6a45, #3f2a16); }
.wall-tags { list-style: none; margin: 0; padding: 0 0 26px 10px; display: flex; gap: clamp(10px, 1.6vw, 22px); align-items: flex-start; }
.wall-tags li { --drop: 26px; }
.wall-tags li:nth-child(2n) { --drop: 46px; }
.wall-tags li:nth-child(3n) { --drop: 34px; }
.wall-tag {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 74px; margin-top: var(--drop); padding: 24px 0 14px; border: 0; border-radius: 3px; cursor: pointer; color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(120, 82, 36, 0.07) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, #dcc394, var(--wood-light) 45%, #e0c99c);
  box-shadow: inset 0 0 0 1px rgba(90, 60, 24, 0.22), 0 14px 18px -14px rgba(60, 38, 12, 0.7);
  transform-origin: 50% calc(-1 * var(--drop));
  transition: translate 0.35s var(--ease), rotate 0.35s var(--ease);
}
/* cord from the rail, and the hole it passes through */
.wall-tag::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1.5px; height: calc(var(--drop) + 4px); margin-bottom: -10px; background: var(--wood-dark); translate: -50% 0; transition: height 0.35s var(--ease), background-color 0.2s; }
.wall-tag::after { content: ""; position: absolute; left: 50%; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45); translate: -50% 0; }
.wall-tag:hover, .wall-tag:focus-visible { rotate: -2.5deg; }
.wall-tag[aria-pressed="true"] { translate: 0 12px; }
.wall-tag[aria-pressed="true"]::before { height: calc(var(--drop) + 16px); background: var(--red); }
.tag-text { writing-mode: vertical-rl; }
.tag-jp { display: block; font-family: var(--f-brush); font-size: 1.6rem; line-height: 1.15; letter-spacing: 0.06em; }
.tag-fr { display: block; margin-block-start: 4px; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); }
.tcy { text-combine-upright: all; }
.tag-price { display: grid; place-items: center; align-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 0.98rem; line-height: 1; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22); }
.tag-price small { font-size: 0.55rem; font-weight: 600; letter-spacing: 0.08em; margin-top: 2px; }

.wall-dish { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: end; gap: 24px; margin: 8px 0 0; min-height: 250px; }
.wall-dish img { order: 2; width: 100%; max-height: 290px; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(40, 24, 8, 0.32)); animation: dish-swap 0.45s var(--ease) both; }
.wall-dish figcaption { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 10px; border-top: 1.5px solid var(--ink); }
.wd-name { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.wd-meta { font-size: 0.88rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wd-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
@keyframes dish-swap { from { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* The one page-load moment: the rail slides in, the tags drop and swing to rest */
.fx .hero-copy { animation: rise 0.8s 0.1s var(--ease) both; }
.fx .wall-rail { animation: rail-in 0.7s 0.15s var(--ease) both; }
.fx .wall-tag { animation: tag-drop 1.15s calc(0.45s + var(--i) * 0.08s) ease-out backwards; }
@keyframes rail-in { from { transform: scaleX(0); } }
@keyframes tag-drop {
  0% { opacity: 0; transform: translateY(-36px) rotate(-8deg); }
  40% { opacity: 1; transform: translateY(3px) rotate(5deg); }
  62% { transform: rotate(-3deg); }
  80% { transform: rotate(1.4deg); }
  100% { transform: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Promise strip ---------- */
.promise { border-block: 1px solid var(--line); background: rgba(246, 241, 230, 0.55); }
.promise-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise-item { display: flex; align-items: center; gap: 14px; padding: 22px 18px; }
.promise-item + .promise-item { border-left: 1px solid var(--line); }
.promise-jp { font-family: var(--f-brush); font-size: 1.7rem; color: var(--red); line-height: 1; flex: none; }
.promise-item p { margin: 0; font-size: 0.92rem; line-height: 1.35; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; letter-spacing: 0.01em; }
.section-sub { margin: 14px auto 0; color: var(--muted); max-width: 40em; }
.vertical-jp { writing-mode: vertical-rl; font-family: var(--f-display); letter-spacing: 0.4em; color: var(--muted); font-size: 0.95rem; }

/* ---------- Signatures ---------- */
.sig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sig-card {
  position: relative; display: flex; flex-direction: column;
  background: rgba(246, 241, 230, 0.75); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.sig-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sig-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.7), transparent 65%); }
.sig-media img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(40, 24, 8, 0.28)); transition: transform 0.5s var(--ease); }
.sig-card:hover .sig-media img { transform: scale(1.04) rotate(-1deg); }
.sig-card.is-photo .sig-media { overflow: hidden; }
.sig-card.is-photo .sig-media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; filter: none; }
.sig-card.is-photo:hover .sig-media img { transform: scale(1.04); }
.sig-pcs { position: absolute; top: 14px; left: 14px; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; text-align: center; font-size: 0.66rem; line-height: 1.05; letter-spacing: 0.06em; background: var(--paper-3); }
.sig-pcs strong { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.sig-body { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sig-jp { font-family: var(--f-display); color: var(--red); font-size: 0.85rem; letter-spacing: 0.12em; }
.sig-name { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; }
.sig-desc { margin: 0; font-size: 0.9rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sig-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.price { font-family: var(--f-display); font-weight: 800; color: var(--red); font-size: 1.25rem; white-space: nowrap; }
.price small { font-size: 0.7em; font-weight: 600; margin-left: 2px; }

/* ---------- Menu toolbar ---------- */
.section-menu { padding-bottom: 80px; }
.menu-toolbar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(239, 231, 216, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
  padding: 12px 0 0;
}
/* Tabs get their own row so every category stays visible; search and filters sit underneath. */
.menu-toolbar-inner { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.group-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.group-tabs::-webkit-scrollbar, .cat-chips::-webkit-scrollbar { display: none; }
.group-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; background: transparent; padding: 8px 14px; border-radius: 999px;
  cursor: pointer; font-size: 0.93rem; color: var(--ink-2); white-space: nowrap;
}
.group-tab:hover { border-color: var(--line-strong); }
.group-tab[aria-selected="true"] { background: var(--ink); color: var(--paper-3); }
.menu-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 14px; height: 40px; background: var(--paper-3); color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.92rem; width: 150px; color: var(--ink); }
.search:focus-within { border-color: var(--ink); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; user-select: none; white-space: nowrap; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background 0.2s; }
.toggle-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--green); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--red); outline-offset: 2px; }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 12px; }
.cat-chip { flex: none; text-decoration: none; font-size: 0.84rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; background: rgba(246, 241, 230, 0.6); }
.cat-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.cat-chip.is-active { color: var(--red); border-color: var(--red); background: var(--red-soft); }

/* ---------- Menu sections ---------- */
.menu-sections { padding-top: 32px; }
.menu-cat { padding: 40px 0 28px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 130px); }
.menu-cat:last-child { border-bottom: 0; }
.menu-cat-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-bottom: 26px; }
.menu-cat-img { width: 108px; height: 108px; border-radius: 50%; object-fit: contain; background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%); filter: drop-shadow(0 10px 12px rgba(40, 24, 8, 0.25)); }
.menu-cat-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.menu-cat-title .amp { color: var(--red); font-style: italic; font-family: Georgia, serif; margin-right: 0.15em; }
.menu-cat-jp { display: block; font-family: var(--f-display); color: var(--red); font-size: 0.85rem; letter-spacing: 0.25em; margin-bottom: 2px; }
.menu-cat-note { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.pcs-seal { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 10px 8px; font-size: 0.7rem; line-height: 1; position: relative; }
.pcs-seal::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 1px; background: var(--ink); }
.pcs-seal b { font-family: var(--f-display); font-size: 1rem; }
.pcs-compact { display: none; }

.menu-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 48px; }
.dish { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dotted var(--line-strong); }
.dish-thumb { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(40, 24, 8, 0.22)); }
.dish-thumb.is-photo, .menu-cat-img.is-photo { object-fit: cover; border-radius: 50%; }
.dish-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin: 0 4px; box-shadow: 0 0 0 4px var(--red-soft); }
.dish-main { min-width: 0; }
.dish-line { display: flex; align-items: baseline; gap: 8px; }
.dish-name { font-weight: 500; font-size: 1.02rem; margin: 0; }
.dish-jp { font-family: var(--f-display); color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; }
.dish-leader { flex: 1; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-4px); min-width: 12px; }
.dish .price { font-size: 1.05rem; }
.dish-desc { margin: 3px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.dish-tags { display: inline-flex; gap: 4px; vertical-align: middle; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 0.7rem; padding: 1px 7px; border-radius: 999px; font-weight: 500; letter-spacing: 0.02em; }
.tag .icon { width: 0.95em; height: 0.95em; }
.tag-veg { color: var(--green); background: rgba(63, 107, 58, 0.12); }
.tag-spicy { color: var(--red); background: var(--red-soft); }
.tag-pcs { color: var(--ink-2); background: rgba(29, 26, 23, 0.07); }
.add-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
  display: grid; place-items: center; cursor: pointer; flex: none; position: relative;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.add-btn:hover { background: var(--ink); color: var(--paper-3); }
.add-btn:active { transform: scale(0.92); }
.add-btn.has-qty { background: var(--red); border-color: var(--red); color: #fff; }
.add-btn .qty { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.72rem; display: grid; place-items: center; font-weight: 600; }
.sig-foot .add-btn { width: auto; height: 42px; padding: 0 16px; border-radius: 999px; display: inline-flex; gap: 6px; font-size: 0.9rem; font-weight: 500; }
.menu-empty { text-align: center; color: var(--muted); padding: 48px 0; }
mark { background: rgba(196, 36, 43, 0.16); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Story ---------- */
.story { background: linear-gradient(180deg, transparent, rgba(230, 220, 200, 0.6) 30%, rgba(230, 220, 200, 0.6) 70%, transparent); }
.story-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-visual { position: relative; }
.story-visual img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.story-vert { position: absolute; right: -36px; top: 8px; color: var(--red); }
.story-copy .section-title { margin-bottom: 18px; }
.story-copy p { color: var(--ink-2); }


/* ---------- Visit ---------- */
.visit-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.visit-card { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.visit-card .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.visit-list { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 18px; }
.visit-list li { display: flex; gap: 14px; }
.visit-list .icon { color: var(--red); width: 22px; height: 22px; margin-top: 2px; }
.visit-list strong { display: block; font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.visit-list span, .visit-list a { display: block; font-size: 1.02rem; }
.visit-list a:not(.link-red) { text-decoration: none; }
.visit-list a:not(.link-red):hover { color: var(--red); }
.visit-list .link-red { font-size: 0.9rem; margin-top: 2px; }
.visit-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.visit-map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--paper-2); }
.visit-map iframe { position: relative; width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.35) sepia(0.15); }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-decoration: none; color: var(--red); font-weight: 500; }
.map-fallback img { width: min(320px, 70%); opacity: 0.7; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(246, 241, 230, 0.82); padding: 64px 0 28px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start; position: relative; }
.footer-brand img { width: 140px; height: auto; background: var(--paper); border-radius: 18px; padding: 10px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h3 { font-family: var(--f-display); font-weight: 600; color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer-cols p { margin: 0 0 6px; font-size: 0.93rem; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(246, 241, 230, 0.14); font-size: 0.84rem; position: relative; }
.footer-bottom p { margin: 0; }
.footer-jp { font-family: var(--f-display); letter-spacing: 0.25em; color: rgba(246, 241, 230, 0.5); }

/* ---------- Cart ---------- */
.cart-fab {
  position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 10px 0 20px;
  border-radius: 999px; border: 0; background: var(--ink); color: var(--paper-3); cursor: pointer;
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.6); animation: rise 0.4s var(--ease) both;
}
.cart-fab[hidden] { display: none; }
.cart-fab .icon { width: 22px; height: 22px; }
.cart-fab-label { font-weight: 500; }
.cart-fab-count { min-width: 26px; height: 26px; border-radius: 999px; background: var(--red); display: grid; place-items: center; font-size: 0.82rem; font-weight: 600; padding: 0 6px; }
.cart-fab-total { font-family: var(--f-display); font-weight: 800; background: var(--paper-3); color: var(--ink); height: 40px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; }
.cart-fab.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }

.cart-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 12, 0.45); opacity: 0; transition: opacity 0.3s; }
.cart-backdrop.is-open { opacity: 1; }
.cart {
  position: fixed; z-index: 51; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--paper-3); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.35s var(--ease); visibility: hidden;
  box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.4);
}
.cart.is-open { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px dotted var(--line-strong); }
.cart-line-name { font-weight: 500; }
.cart-line-unit { font-size: 0.82rem; color: var(--muted); }
.cart-line-price { font-family: var(--f-display); font-weight: 800; text-align: right; }
.qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; grid-column: 2; justify-self: end; }
.qty-ctrl button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.qty-ctrl button:hover { background: var(--paper-2); }
.qty-ctrl span { min-width: 22px; text-align: center; font-weight: 600; font-size: 0.92rem; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 0 20px; }
.cart-form { margin-top: 18px; display: grid; gap: 12px; }
.cart-form[hidden] { display: none; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; margin: 0; }
.seg label { position: relative; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 4px; border-radius: 999px; font-size: 0.86rem; }
.seg input:checked + span { background: var(--ink); color: var(--paper-3); }
.seg input:focus-visible + span { outline: 2px solid var(--red); }
.field { display: grid; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field[hidden] { display: none; }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 20px max(16px, env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--paper); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.cart-total strong { font-family: var(--f-display); font-size: 1.5rem; color: var(--red); }
.cart-hint { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.cart-foot .btn-text { justify-self: center; }
body.cart-locked { overflow: hidden; }

.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--header-h) + 12px); transform: translate(-50%, -12px);
  background: var(--ink); color: var(--paper-3); padding: 10px 18px; border-radius: 999px; font-size: 0.9rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .search { flex: 1; }
  .search input { width: 100%; }
  html { scroll-padding-top: calc(var(--header-h) + 170px); }
  .menu-cat { scroll-margin-top: calc(var(--header-h) + 170px); }
}
@media (max-width: 960px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper-3); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.25s var(--ease);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.4);
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-wall { margin-top: 10px; }
  .wall-tags { overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .wall-tags::-webkit-scrollbar { display: none; }
  .wall-tags li { flex: none; }
  .sig-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-items { grid-template-columns: 1fr; }
  .story-inner, .visit-inner { grid-template-columns: 1fr; }
  .story-vert { display: none; }
  .promise-inner { grid-template-columns: repeat(2, 1fr); }
  .promise-item:nth-child(3) { border-left: 0; }
  .promise-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  }
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand-jp { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1rem; }
  .header-order span { display: none; }
  .header-order { width: 40px; padding: 0; }
  .header-actions { gap: 8px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .promise-inner { grid-template-columns: 1fr; }
  .promise-item + .promise-item { border-left: 0; border-top: 1px solid var(--line); }
  .promise-item { padding: 14px 4px; }
  .wall-tag { width: 64px; }
  .tag-jp { font-size: 1.4rem; }
  .wall-dish { grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0; }
  .wall-dish img { max-height: 170px; }
  .wd-name { font-size: 1.2rem; }
  .wd-meta { -webkit-line-clamp: 2; }
  .wd-buy { flex-direction: column; align-items: flex-start; }
  .menu-cat-head { grid-template-columns: auto 1fr; gap: 14px; }
  .menu-cat-img { width: 76px; height: 76px; }
  .pcs-seal { display: none; }
  .pcs-compact { display: inline-block; grid-column: 2; justify-self: start; font-size: 0.78rem; letter-spacing: 0.06em; border: 1px solid var(--ink); border-radius: 999px; padding: 2px 10px; margin-top: -6px; }
  .dish-jp { display: none; }
  .lang-switch button[aria-pressed="true"] { display: none; }
  .lang-switch { padding: 2px; }
  .sig-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .sig-grid::-webkit-scrollbar { display: none; }
  .sig-card { flex: 0 0 82%; scroll-snap-align: center; }
  .sig-card.reveal { opacity: 1; transform: none; }
  .dish { grid-template-columns: auto 1fr auto; gap: 12px; }
  .dish-thumb { width: 52px; height: 52px; }
  .dish-line { flex-wrap: wrap; }
  .dish-leader { display: none; }
  .dish .price { margin-left: auto; }
  .menu-tools { gap: 10px; }
      .footer-cols { grid-template-columns: 1fr 1fr; }
  .cart-fab-label { display: none; }
  .cart-fab { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Texture & motion layer
   ========================================================================== */

/* Paper grain over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 .1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Seigaiha (wave) pattern used as bands */
:root {
  --seigaiha: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'><g fill='%23efe7d8' stroke='%23c4242b' stroke-opacity='.35' stroke-width='.9'><g id='s'><circle cx='0' cy='10' r='9.5'/><circle cx='0' cy='10' r='7'/><circle cx='0' cy='10' r='4.5'/><circle cx='0' cy='10' r='2'/></g><use href='%23s' x='40'/><use href='%23s' x='20' y='10'/><use href='%23s' x='20' y='-10'/></g></svg>");
}
.promise { position: relative; }
.promise::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--seigaiha) repeat-x; background-size: 28px 14px; opacity: 0.9;
}
.promise::after { bottom: -15px; }
.site-footer::before { top: 0; }

/* Scroll progress line under the header */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #e2574c); transform-origin: left; transform: scaleX(0); }

/* Brush stroke under centred section titles, drawn when the heading scrolls in */
.section-head .section-title::after, .story-copy .section-title::after, .visit-card .section-title::after {
  content: ""; display: block; width: 132px; height: 14px; margin: 16px auto 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16'><path d='M3 10c22-6 44-7 66-4s38 6 62 3 46-6 66-3' fill='none' stroke='%23c4242b' stroke-width='5' stroke-linecap='round'/><path d='M40 13c30-3 70-2 110-4' fill='none' stroke='%23c4242b' stroke-opacity='.45' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat center / contain;
  clip-path: inset(0 100% 0 0); transition: clip-path 1s 0.2s var(--ease);
}
.story-copy .section-title::after, .visit-card .section-title::after { margin-left: 0; }
.fx .is-drawn .section-title::after, html:not(.fx) .section-title::after { clip-path: inset(0 0 0 0); }

/* ---------- Status ---------- */
@keyframes spin { to { rotate: 360deg; } }
[data-open-status].is-soon { color: #b5651d; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 34px 0 6px; user-select: none; }
.marquee-row { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: none; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-half { display: flex; flex: none; align-items: center; }
.mq-word { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 4.6vw, 3.6rem); letter-spacing: 0.04em; padding: 0 0.45em; white-space: nowrap; color: var(--ink); }
.mq-dot { color: var(--red); font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Signature cards: tilt + glare ---------- */
.sig-grid { perspective: 1200px; }
.sig-card { transform-style: preserve-3d; }
.sig-card.is-tilting { transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-4px); transition: transform 0.08s linear, box-shadow 0.35s var(--ease); }
.sig-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.55), transparent 45%);
}
.sig-card.is-tilting::after { opacity: 1; }
.sig-media, .dish-thumb, .pr-item, .mini-card, .upsell-chip { cursor: pointer; }
.dish-open { all: unset; cursor: pointer; }
.dish-open:hover { color: var(--red); }
.dish-open:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.dish { cursor: pointer; transition: background-color 0.2s; border-radius: 8px; }
.dish:hover { background: rgba(246, 241, 230, 0.6); }
.dish:hover .dish-thumb { transform: scale(1.08) rotate(-3deg); }
.dish-thumb { transition: transform 0.35s var(--ease); }

/* ---------- Fly to basket ---------- */
.fly-ghost { position: fixed; z-index: 80; pointer-events: none; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3)); }
span.fly-ghost { border-radius: 50%; background: var(--red); width: 22px !important; height: 22px !important; }

/* ---------- Filters ---------- */
.filter-chips { display: flex; align-items: center; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper-3); cursor: pointer; font-size: 0.88rem; white-space: nowrap; transition: all 0.2s; }
.filter-chip .icon { width: 1em; height: 1em; }
.filter-chip[data-filter="veg"][aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.filter-chip[data-filter="spicy"][aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.sort-select select { height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper-3); padding: 0 32px 0 14px; font: inherit; font-size: 0.88rem; color: var(--ink); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%231d1a17' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }

/* ---------- Planner ---------- */
.planner-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border-radius: 22px; overflow: hidden;
  background: var(--paper-3); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.planner-controls { position: relative; padding: clamp(24px, 4vw, 44px); background: var(--ink); color: var(--paper-3); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.planner-controls::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; border-radius: 50%; background: var(--seigaiha); background-size: 28px 14px; opacity: 0.12; filter: invert(1); pointer-events: none; }
.planner-label { font-size: 0.92rem; color: rgba(246, 241, 230, 0.72); }
.people-ctrl { display: flex; align-items: center; gap: 18px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(246, 241, 230, 0.4); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: all 0.2s; }
.round-btn:hover { background: var(--red); border-color: var(--red); }
.people-out { font-family: var(--f-display); font-weight: 800; font-size: 3.6rem; line-height: 1; min-width: 2ch; text-align: center; }
.range { width: 100%; accent-color: var(--red); }
.people-icons { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; align-items: center; color: var(--red); }
.people-icons .icon { width: 20px; height: 20px; animation: pop-in 0.35s calc(var(--i) * 0.03s) var(--ease) both; }
.people-icons span { font-size: 0.85rem; color: rgba(246, 241, 230, 0.8); margin-left: 4px; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.3); } }
.style-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.style-chips button { border: 1px solid rgba(246, 241, 230, 0.35); background: transparent; color: inherit; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 0.92rem; }
.style-chips button[aria-checked="true"] { background: var(--paper-3); color: var(--ink); border-color: var(--paper-3); }
.planner-note { margin: auto 0 0; font-size: 0.8rem; color: rgba(246, 241, 230, 0.55); }
.planner-result { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.pr-for { margin: 0; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff8; animation: rise 0.5s calc(var(--k) * 0.08s) var(--ease) both; transition: transform 0.2s; }
.pr-item:hover { transform: translateX(4px); }
.pr-item img { width: 84px; height: 60px; object-fit: contain; }
.pr-name { display: block; font-weight: 500; }
.pr-meta { font-size: 0.82rem; color: var(--muted); }
.pr-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.pr-total strong { display: block; font-family: var(--f-display); font-size: 1.8rem; color: var(--red); line-height: 1.1; }
.pr-total > div span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Guide ---------- */
.guide-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: stretch; }
.guide-tabs { display: flex; flex-direction: column; gap: 4px; }
.guide-tabs button { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 16px; border: 0; border-left: 2px solid var(--line); background: transparent; cursor: pointer; font-size: 1.02rem; color: var(--ink-2); transition: all 0.25s var(--ease); }
.guide-tabs button:hover { border-left-color: var(--ink); padding-left: 20px; }
.guide-tabs button[aria-selected="true"] { border-left-color: var(--red); color: var(--ink); font-weight: 500; background: linear-gradient(90deg, var(--red-soft), transparent); padding-left: 20px; }
.gt-jp { font-family: var(--f-display); color: var(--red); font-size: 0.72rem; letter-spacing: 0.12em; }
.guide-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: var(--paper-3); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-sm); min-height: 340px; }
.gp-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.gp-kanji { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-brush); font-size: clamp(5rem, 12vw, 9rem); color: rgba(196, 36, 43, 0.1); line-height: 1; writing-mode: vertical-rl; }
.gp-media img { position: relative; width: 82%; max-height: 82%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(40, 24, 8, 0.3)); }
.gp-name { margin: 6px 0 12px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.gp-text { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 18px; }
.guide-panel.is-swapping .gp-media img { animation: guide-img 0.6s var(--ease) both; }
.guide-panel.is-swapping .gp-kanji { animation: rise 0.6s var(--ease) both; }
.guide-panel.is-swapping .gp-body > * { animation: rise 0.5s var(--ease) both; }
.guide-panel.is-swapping .gp-body > :nth-child(2) { animation-delay: 0.05s; }
.guide-panel.is-swapping .gp-body > :nth-child(3) { animation-delay: 0.1s; }
.guide-panel.is-swapping .gp-body > :nth-child(4) { animation-delay: 0.15s; }
@keyframes guide-img { from { opacity: 0; transform: scale(0.85) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* ---------- How to order ---------- */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; counter-reset: step; }
.how-steps::before { content: ""; position: absolute; top: 80px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px); opacity: 0.5; }
.how-step { position: relative; text-align: center; padding: 0 12px; }
.how-num { display: block; font-family: var(--f-brush); font-size: 1.8rem; line-height: 1; color: var(--red); margin-bottom: 12px; }
.how-icon { width: 76px; height: 76px; padding: 20px; border-radius: 50%; background: var(--paper-3); border: 1.5px solid var(--ink); color: var(--red); position: relative; box-shadow: 0 0 0 8px var(--paper); transition: transform 0.4s var(--ease); }
.how-step:hover .how-icon { transform: rotate(-8deg) scale(1.06); }
.how-step h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; margin: 16px 0 6px; }
.how-step p { margin: 0 auto; color: var(--muted); max-width: 22em; }
.how-step.reveal:nth-child(2) { transition-delay: 0.12s; }
.how-step.reveal:nth-child(3) { transition-delay: 0.24s; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq-head { text-align: left; margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq-head .section-title::after { margin-left: 0; }
.faq-head .section-sub { margin-left: 0; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item h3 { margin: 0; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.faq-q:hover { color: var(--red); }
.faq-plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; transition: transform 0.35s var(--ease), background-color 0.2s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq-plus::after { rotate: 90deg; transition: rotate 0.35s var(--ease); }
.faq-item.is-open .faq-plus { transform: rotate(180deg); background: var(--red); border-color: var(--red); color: #fff; }
.faq-item.is-open .faq-plus::after { rotate: 0deg; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 22px; color: var(--ink-2); max-width: 46em; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- Dish dialog ---------- */
.dish-modal { width: min(920px, calc(100vw - 32px)); max-height: min(88vh, 760px); padding: 0; border: 0; border-radius: 24px; background: var(--paper-3); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); overflow: hidden; }
.dish-modal[open] { animation: modal-in 0.35s var(--ease); }
.dish-modal.is-closing { animation: modal-out 0.22s ease-in both; }
.dish-modal::backdrop { background: rgba(20, 16, 12, 0.55); backdrop-filter: blur(4px); animation: fade-in 0.3s; }
.dish-modal.is-closing::backdrop { opacity: 0; transition: opacity 0.22s; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
.dm-inner { display: grid; grid-template-columns: 1fr 1fr; max-height: inherit; overflow-y: auto; position: relative; }
.dm-top { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 2; }
.dm-top .icon-btn { background: var(--paper-3); }
.dm-media { position: relative; display: grid; place-items: center; min-height: 360px; background: radial-gradient(circle at 50% 55%, #fff, var(--paper-2) 70%); overflow: hidden; }
.dm-media img { position: relative; width: 84%; max-height: 82%; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(40, 24, 8, 0.35)); animation: guide-img 0.6s var(--ease) both; }
.dm-ring { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: url("../img/deco/ink-circle.webp") center / contain no-repeat; opacity: 0.35; animation: spin 60s linear infinite; }
.dm-media.is-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.dm-body { padding: 56px 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.dm-cat { margin: 0; color: var(--red); font-size: 0.85rem; letter-spacing: 0.08em; font-family: var(--f-display); }
.dm-name { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
.dm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-desc { margin: 0; color: var(--ink-2); }
.dm-buy { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.dm-buy .price { font-size: 1.8rem; }
.dm-qty { grid-column: auto; }
.dm-incart { margin: -4px 0 0; font-size: 0.82rem; color: var(--green); text-align: center; }
.dm-pairs { margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.dm-pairs-title { margin: 0 0 10px; font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.dm-pairs-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff8; transition: transform 0.2s, box-shadow 0.2s; }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.mini-card img { width: 72px; height: 54px; object-fit: contain; }
.mini-name { font-size: 0.8rem; line-height: 1.25; }
.mini-card .price { font-size: 0.92rem; }
.mini-card .add-btn, .upsell-chip .add-btn { width: 30px; height: 30px; position: absolute; top: 6px; right: 6px; }
.mini-card .add-btn .icon, .upsell-chip .add-btn .icon { width: 0.9em; height: 0.9em; }

/* ---------- Basket extras ---------- */
.upsell { margin-top: 18px; }
.upsell-title { margin: 0 0 8px; font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.upsell-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.upsell-chip { position: relative; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 40px 8px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff8; }
.upsell-chip img { grid-row: span 2; width: 48px; height: 40px; object-fit: contain; }
.upsell-chip .mini-name { font-size: 0.8rem; }
.upsell-chip .price { font-size: 0.85rem; }
.upsell-chip .add-btn { top: 50%; translate: 0 -50%; }
.reorder-btn { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: var(--radius); border: 1.5px dashed var(--red); background: var(--red-soft); cursor: pointer; color: var(--ink); }
.reorder-btn .icon { width: 28px; height: 28px; color: var(--red); }
.reorder-btn strong { display: block; }
.reorder-btn small { color: var(--muted); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; z-index: 44; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper-3); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(16px); pointer-events: none; transition: all 0.3s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--paper-3); }

/* ---------- Responsive (new components) ---------- */
@media (max-width: 960px) {
  .planner-card { grid-template-columns: 1fr; }
  .guide-wrap { grid-template-columns: 1fr; }
  .guide-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 4px; }
  .guide-tabs::-webkit-scrollbar { display: none; }
  .guide-tabs button { flex: none; border-left: 0; border-bottom: 2px solid var(--line); padding: 10px 14px; }
  .guide-tabs button:hover, .guide-tabs button[aria-selected="true"] { padding-left: 14px; border-bottom-color: var(--red); }
  .faq-inner { grid-template-columns: 1fr; gap: 12px; }
  .faq-head { position: static; text-align: center; }
  .faq-head .section-title::after { margin-left: auto; }
  .dm-inner { grid-template-columns: 1fr; }
  .dm-media { min-height: 260px; }
}
@media (max-width: 600px) {
  .guide-panel { grid-template-columns: 1fr; gap: 8px; text-align: center; min-height: 0; }
  .gp-media { max-width: 260px; margin: 0 auto; width: 100%; }
  .how-steps { grid-template-columns: 1fr; gap: 36px; }
  .how-steps::before { display: none; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .group-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; }
  .filter-chip, .sort-select select { height: 36px; font-size: 0.84rem; }
  /* One compact row on phones so the sticky bar doesn't eat the screen: search, icon filters, sort */
  .menu-tools { flex-wrap: nowrap; gap: 6px; }
  .menu-tools .search { flex: 1 1 auto; min-width: 0; padding: 0 10px; height: 36px; }
  .filter-chips { flex: none; gap: 6px; overflow: visible; }
  .filter-chip { width: 36px; padding: 0; justify-content: center; }
  .filter-chip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sort-select select { padding: 0 26px 0 12px; background-position: right 8px center; }
  .cat-chips { padding: 8px 0 10px; }
  .pr-item { grid-template-columns: 64px 1fr auto; }
  .pr-item img { width: 64px; }
  .people-out { font-size: 3rem; }
  /* Dish dialog becomes a bottom sheet */
  .dish-modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dish-modal[open] { animation: sheet-in 0.4s var(--ease); }
  .dish-modal.is-closing { animation: sheet-out 0.22s ease-in both; }
  .dm-body { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
  .dm-pairs-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .to-top { display: none; }
  .marquee { padding-top: 26px; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .section-head .section-title::after, .story-copy .section-title::after, .visit-card .section-title::after { clip-path: none; }
}

/* ───────── Live content from /admin: notice banner, offers, sold out, delivery info ───────── */
.site-notice { margin: 0; padding: 9px var(--gutter); background: var(--red); color: #fff; text-align: center; font-size: 0.9rem; font-weight: 500; line-height: 1.4; }
.offers { padding-bottom: 0; }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px)); justify-content: center; gap: 22px; }
.offer-card { display: flex; flex-direction: column; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.offer-media { aspect-ratio: 4 / 3; background: var(--paper-2); }
.offer-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 14px; flex: 1; }
.offer-price { align-self: flex-start; background: var(--red); color: #fff; font-weight: 600; font-size: 0.95rem; padding: 3px 11px; border-radius: 999px; }
.offer-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; }
.offer-text { margin: 0; color: var(--ink-2); line-height: 1.5; white-space: pre-line; }
.offer-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; }
.offer-until { font-size: 0.82rem; color: var(--muted); }
.tag-soldout { color: var(--red-dark); background: var(--red-soft); }
.dish.is-soldout .dish-name, .dish.is-soldout .price { opacity: 0.55; }
.add-btn.is-soldout { width: auto; border-radius: 999px; padding: 0 10px; font-size: 0.72rem; color: var(--muted); border-color: var(--line); background: transparent; cursor: default; pointer-events: none; white-space: nowrap; }
.cart-delivery { margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; color: var(--ink-2); }
