/* オーダー亭 — 木札 × 墨 × 朱 */
:root {
  --sumi: #1d1916;
  --sumi2: #2b2420;
  --sumi3: #3a312b;
  --yakisugi: #221b16;
  --washi: #f6efe2;
  --paper: #fbf6ea;
  --ink: #1d1916;
  --ink2: #574c43;
  --light: #f3e9d6;
  --light2: #cbbda8;
  --shu: #b3301c;
  --shu-ink: #a12a18;
  --shu-soft: #f7e1d6;
  --hinoki1: #f0dcb4;
  --hinoki2: #ddbd8a;
  --hinoki3: #c99f63;
  --hinoki: #e6cc9c;
  --grain: repeating-linear-gradient(90deg, rgba(110, 70, 25, .07) 0 1px, transparent 1px 6px), linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, transparent 40%, rgba(110, 70, 25, .16) 100%);
  --kuri: #7a4e26;
  --ok: #2f6b45;
  --warn: #e9b23e;
  --f-fuda: 'Yuji Syuku', 'Hiragino Mincho ProN', serif;
  --f-ui: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-num: 'Shippori Mincho B1', 'Hiragino Mincho ProN', serif;
  --f-mono: 'Spline Sans Mono', ui-monospace, monospace;
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 18px;
  --spring: cubic-bezier(.2, .9, .25, 1.08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --hd: 56px;
  --tab: 62px;
  --wood: linear-gradient(176deg, var(--hinoki1) 0%, var(--hinoki2) 55%, #d6b37c 100%);
  --wall: repeating-linear-gradient(90deg, rgba(0, 0, 0, .32) 0 2px, rgba(255, 255, 255, .018) 2px 3px, transparent 3px 92px), linear-gradient(180deg, #2a221c 0%, #1f1814 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #0f0c0a;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #e9a13e; outline-offset: 2px; }
.ic { width: 24px; height: 24px; flex: none; }
.nw { white-space: nowrap; }
.money small { font-size: .7em; margin-left: 1px; font-weight: 700; }
h1, h2, h3 { font-feature-settings: "palt"; }
[hidden] { display: none !important; }

/* ---------- 骨組み ---------- */
.app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  height: 100dvh;
  background: var(--sumi);
  overflow: hidden;
}
.hd {
  flex: none;
  display: flex; align-items: center; gap: 6px;
  min-height: calc(var(--hd) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 8px 0 12px;
  background: var(--sumi);
  border-bottom: 1px solid #000;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05);
  color: var(--light);
  position: relative; z-index: 5;
}
.hd-shop { display: flex; align-items: center; gap: 9px; min-height: 44px; flex: 1; min-width: 0; }
.hd-seal {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--shu); color: #fff6ea;
  font: 400 21px/1 var(--f-fuda);
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18);
}
.hd-txt { display: flex; flex-direction: column; min-width: 0; }
.hd-name { font-size: 11px; color: var(--light2); letter-spacing: .08em; line-height: 1.3; white-space: nowrap; }
.hd-table { font-size: 15px; font-weight: 700; color: var(--light); white-space: nowrap; line-height: 1.35; }
.mode { display: flex; background: var(--sumi2); border-radius: 12px; padding: 0; flex: none; }
.mode-b {
  position: relative;
  min-width: 48px; height: 44px; padding: 0 8px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--light2);
  border-radius: 12px;
  transition: background .2s, color .2s, transform .12s;
}
.mode-b:active { transform: scale(.94); }
.mode-b.is-on { background: var(--light); color: var(--ink); }
.mode-b.got { animation: got .7s var(--ease); }
.mode-n {
  position: absolute; top: 3px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--shu); color: #fff6ea;
  font: 700 11px/17px var(--f-mono); text-align: center;
}
.hd-gear { width: 44px; height: 44px; display: grid; place-items: center; color: var(--light); border-radius: 12px; flex: none; }
.hd-gear:active { background: var(--sumi2); }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--sumi); }
.page { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--sumi); }
.scroller { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.guest.page, .kds.page { position: absolute; inset: 0; }
.boot { color: var(--light2); text-align: center; padding-top: 40vh; }
.fade-in { animation: fadeIn .22s ease-out; }

/* ---------- 客席 ---------- */
.guest { position: relative; display: flex; flex-direction: column; background: var(--yakisugi); }
.g-pane { flex: 1; min-height: 0; }
.g-menu { position: relative; display: flex; flex-direction: column; background-color: var(--yakisugi); }
.g-menu::before { content: ''; position: absolute; inset: 0; background: var(--wall); pointer-events: none; }

.rail-wrap {
  position: relative; flex: none;
  background: linear-gradient(180deg, #2c231d, #241c17);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
  z-index: 2;
}
.rail-wrap::before {
  content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 9px;
  background: linear-gradient(180deg, #8d6236, #5d3d1f);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
}
.rail { position: relative; display: flex; gap: 9px; overflow-x: auto; padding: 18px 16px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail-f {
  position: relative; flex: none;
  width: 46px; height: 82px;
  display: flex; justify-content: center; padding-top: 10px;
  scroll-snap-align: center;
  transform-origin: 50% -6px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45));
  transition: transform .15s;
}
.rail-f::before {
  content: ''; position: absolute; inset: 0;
  background: var(--wood);
  clip-path: polygon(22% 0, 78% 0, 100% 10%, 100% 100%, 0 100%, 0 10%);
}
.rail-f::after { content: ''; position: absolute; top: -10px; left: 50%; width: 2px; height: 12px; background: #c9a36b; transform: translateX(-50%); }
.rail-v { position: relative; writing-mode: vertical-rl; text-orientation: upright; font: 400 19px/1.05 var(--f-fuda); color: var(--ink); letter-spacing: .06em; }
.rail-f.is-on::before { background: linear-gradient(176deg, #c23a22, #a52b18); }
.rail-f.is-on .rail-v { color: #fff6ea; }
.rail-f:active { transform: scale(.95); }
.rail-f.swing { animation: swing .9s var(--ease); }

.wall { position: relative; flex: 1; min-height: 0; padding: 16px 16px 110px; color: var(--light); }
.pick-b { position: relative; display: block; width: 100%; height: 196px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 22px rgba(0, 0, 0, .5); text-align: left; transition: transform .15s; }
.pick-b:active { transform: scale(.985); }
.pick-b img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.pick-board {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 14px 10px;
  background: var(--paper); color: var(--ink);
  border-radius: 4px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  border-left: 5px solid var(--shu);
}
.pick-k { font-size: 12px; font-weight: 700; color: var(--shu-ink); letter-spacing: .12em; }
.pick-n { font: 400 22px/1.3 var(--f-fuda); word-break: keep-all; }
.pick-p { font: 800 17px/1.3 var(--f-num); }

.cat { padding-top: 6px; }
.cat-h { display: flex; align-items: center; gap: 10px; margin: 24px 0 14px; }
.cat-h::before { content: ''; width: 10px; height: 10px; background: var(--shu); transform: rotate(45deg); flex: none; }
.cat-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(243, 233, 214, .35), transparent); }
.cat-h-t { font: 400 22px/1.3 var(--f-fuda); color: var(--light); letter-spacing: .06em; }

.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.dish-b { position: relative; display: block; width: 100%; aspect-ratio: 1; text-align: left; transition: transform .15s; }
.dish-b:active { transform: scale(.97); }
.dish-ph { position: absolute; inset: 0; border-radius: var(--r-s); overflow: hidden; background: #2d241e; box-shadow: 0 8px 16px rgba(0, 0, 0, .45); }
.dish-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transition: filter .3s; }
.dish-fuda {
  position: absolute; left: 7px; top: -5px;
  width: 32px; padding: 9px 0 10px;
  display: flex; justify-content: center;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5));
}
.dish-fuda::before, .dish-fuda::after { content: ''; position: absolute; inset: 0; background: var(--hinoki); clip-path: polygon(24% 0, 76% 0, 100% 9px, 100% 100%, 0 100%, 0 9px); }
.dish-fuda::after { background: var(--grain); pointer-events: none; }
.dish-fuda-v { position: relative; background-color: var(--hinoki); writing-mode: vertical-rl; text-orientation: upright; font: 400 16px/1.05 var(--f-fuda); color: var(--ink); letter-spacing: .02em; }
.dish-fuda--l { left: 16px; top: -2px; width: 40px; }
.dish-fuda--l .dish-fuda-v { font-size: 20px; }
.dish-price {
  position: absolute; right: 7px; bottom: 7px;
  padding: 2px 8px 3px; border-radius: 4px;
  background: var(--paper); color: var(--ink);
  font: 800 16px/1.35 var(--f-num);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.dish-tag { position: absolute; right: 7px; top: 7px; padding: 1px 8px; border-radius: 3px; background: var(--shu); color: #fff6ea; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.dish-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.dish-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--light); word-break: keep-all; overflow-wrap: normal; }
.dish-add {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--shu); color: #fff6ea;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .12);
  transition: transform .12s;
}
.dish-add:active { transform: scale(.88); }
.dish-add:disabled { background: #4a3f37; color: #a89a87; box-shadow: none; }
.dish.is-out .dish-ph img { filter: grayscale(1) brightness(.55); }
.stamp {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%) rotate(-12deg);
  padding: 4px 12px; border: 3px double var(--shu); border-radius: 4px;
  background: var(--paper); color: var(--shu-ink);
  font: 400 19px/1.2 var(--f-fuda); letter-spacing: .1em; white-space: nowrap;
}
.stamp--s { font-size: 15px; padding: 2px 6px; top: 46%; }

.kf-wall { margin-top: 20px; }
.kf-cap { font-size: 13px; color: var(--light2); margin-bottom: 14px; letter-spacing: .08em; }
.kf-row { display: flex; flex-wrap: wrap; gap: 20px 12px; padding-top: 6px; }
.kf {
  position: relative; isolation: isolate;
  width: 62px; min-height: 176px; padding: 20px 0 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5));
  transform-origin: 50% -4px;
  transition: transform .2s;
}
.kf::before, .kf::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hinoki); clip-path: polygon(26% 0, 74% 0, 100% 12px, 100% 100%, 0 100%, 0 12px); }
.kf::after { z-index: 1; background: var(--grain); pointer-events: none; }
.kf:active { transform: rotate(-3deg) scale(.97); }
.kf-nail { position: absolute; top: 6px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8b8178, #2b2420); }
.kf-v { background-color: var(--hinoki); writing-mode: vertical-rl; text-orientation: upright; font: 400 22px/1.05 var(--f-fuda); color: var(--ink); letter-spacing: .06em; }
.kf-p { font: 800 13px/1.2 var(--f-num); color: var(--ink); padding: 0 3px; background-color: var(--hinoki); }
.kf.is-out { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)) grayscale(.6) brightness(.8); }
.kf--big { min-height: 190px; width: 74px; pointer-events: none; }
.kf--big .kf-v { font-size: 28px; }
.wall-note { margin-top: 30px; font-size: 14px; line-height: 1.7; color: var(--light2); }

/* 注文かごバー */
.cartbar { position: absolute; left: 12px; right: 12px; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 10px); z-index: 4; pointer-events: none; }
.cartbar.is-on { pointer-events: auto; animation: barIn .35s var(--spring); }
.cartbar-b {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 58px; padding: 7px 10px 7px 12px;
  border-radius: 14px; background: var(--shu); color: #fff6ea;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
  text-align: left; transition: transform .12s;
}
.cartbar-b:active { transform: scale(.98); }
.cartbar-b.bump { animation: bump .45s var(--spring); }
.cartbar-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.cartbar-n { position: absolute; top: -5px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--paper); color: var(--shu-ink); font: 700 12px/20px var(--f-mono); text-align: center; }
.cartbar-t { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.cartbar-l { font-size: 12px; opacity: 1; }
.cartbar-p { font: 800 19px/1.25 var(--f-num); }
.cartbar-go { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.cartbar-go .ic { width: 20px; height: 20px; }

/* 客席のタブ */
.gtabs {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr);
  min-height: calc(var(--tab) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--sumi); border-top: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  position: relative; z-index: 3;
}
.gtab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; color: var(--light2); font-size: 11px; font-weight: 700; letter-spacing: .04em; transition: color .2s; }
.gtab .ic { transition: transform .25s var(--spring); }
.gtab:active .ic { transform: scale(.85); }
.gtab.is-on { color: var(--light); }
.gtab.is-on::before { content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--shu); }
.gtab-dot { position: absolute; top: 9px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: #e2553b; box-shadow: 0 0 0 2px var(--sumi); animation: pulse 1.4s infinite; }

/* 注文履歴 */
.g-orders { background: var(--washi); padding-bottom: 28px; }
.osum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 18px; background: var(--sumi2); color: var(--light); }
.osum-l { font-size: 13px; color: var(--light2); }
.osum-v { display: flex; align-items: center; gap: 8px; font: 800 22px/1.3 var(--f-num); }
.osum-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--light2); }
.osum-go { flex: none; }
.tl { position: relative; padding: 18px 16px 0 16px; }
.tl::before { content: ''; position: absolute; left: 86px; top: 26px; bottom: 0; width: 2px; background: #d9c8a8; }
.tl-o { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 26px; padding-bottom: 22px; }
.tl-o::before { content: ''; position: absolute; left: 64px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--shu); box-shadow: 0 0 0 4px var(--washi); }
.tl-o--ready::before { background: var(--ok); }
.tl-o--served::before { background: #8d7f70; }
.tl-time { display: flex; flex-direction: column; text-align: right; }
.tl-time time { font: 700 16px/1.4 var(--f-mono); color: var(--ink); }
.tl-no { font: 500 12px/1.4 var(--f-mono); color: var(--ink2); }
.tl-items { background: var(--paper); border-radius: 10px; box-shadow: 0 1px 0 #e3d6bf, 0 4px 12px rgba(80, 55, 25, .08); }
.tl-i { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "q p"; align-items: center; gap: 0 10px; padding: 11px 12px; border-bottom: 1px dashed #e0d2b9; }
.tl-i:last-child { border-bottom: 0; }
.tl-n { grid-area: n; font-size: 15px; font-weight: 700; line-height: 1.45; word-break: keep-all; overflow-wrap: normal; }
.tl-m { display: block; font-size: 13px; font-weight: 400; color: var(--ink2); }
.tl-q { grid-area: q; font: 500 13px/1.4 var(--f-mono); color: var(--ink2); }
.pill { grid-area: p; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill--cooking { background: #f4dca2; color: #4a3410; }
.pill--ready { background: var(--ok); color: #f5fbf6; animation: popIn .4s var(--spring); }
.pill--served { background: transparent; color: var(--ink2); box-shadow: inset 0 0 0 1.5px #b9a98f; }
.tl-note { margin: 4px 16px 0; font-size: 14px; color: var(--ink2); }

/* 会計 */
.g-co { background: var(--yakisugi); padding: 16px 0 32px; color: var(--light); }
.kanjo { position: relative; margin: 0 16px 34px; padding: 24px 18px 22px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.kanjo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 7px, var(--paper) 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 7px, var(--paper) 0) 0 0 / 14px 10px repeat-x;
}
.kanjo-h { text-align: center; font: 400 28px/1.2 var(--f-fuda); letter-spacing: .4em; padding-left: .4em; }
.kanjo-sub { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 14px; font-size: 13px; color: var(--ink2); }
.kanjo-ls { border-top: 2px solid var(--ink); }
.kanjo-ls li { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dotted #bcaa8c; }
.kanjo-n { font-size: 15px; font-weight: 700; line-height: 1.45; word-break: keep-all; overflow-wrap: normal; }
.kanjo-m { display: block; font-size: 13px; font-weight: 400; color: var(--ink2); }
.kanjo-q { font: 500 13px/1 var(--f-mono); color: var(--ink2); }
.kanjo-a { font: 800 16px/1 var(--f-num); text-align: right; min-width: 70px; }
.kanjo-t { margin: 14px 0 0; }
.kanjo-t > div { display: flex; justify-content: space-between; align-items: baseline; }
.kanjo-t dt { font-size: 15px; font-weight: 700; }
.kanjo-t dd { margin: 0; font: 800 28px/1.3 var(--f-num); }
.kanjo-tax dt, .kanjo-tax dd { font-size: 13px !important; font-weight: 500 !important; color: var(--ink2); font-family: var(--f-ui) !important; }

.wk { margin: 0 16px; }
.wk-h { font: 400 24px/1.3 var(--f-fuda); color: var(--light); letter-spacing: .1em; margin-bottom: 12px; }
.wk-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wk-l { font-size: 15px; font-weight: 700; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin-bottom: 10px; background: #14100d; border-radius: 14px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.seg-b { min-height: 44px; padding: 0 6px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--light2); background: #14100d; transition: background .2s, color .2s; }
.seg-b[aria-checked="true"] { background: var(--light); color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.seg--s .seg-b { font-size: 13px; }
.seg.is-off { opacity: .45; }
.asg { margin: 6px 0 14px; padding: 14px 12px 4px; background: #14100d; border-radius: 14px; }
.asg-cap { font-size: 14px; line-height: 1.65; color: var(--light2); margin-bottom: 10px; }
.asg-r { padding: 10px 0 12px; border-top: 1px solid #2f2721; }
.asg-n { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: var(--light); word-break: keep-all; overflow-wrap: normal; }
.asg-a { font: 800 15px/1.4 var(--f-num); flex: none; }
.asg-ps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.asg-p { width: 44px; height: 44px; border-radius: 50%; font: 700 16px/1 var(--f-mono); color: var(--light); background: #14100d; box-shadow: inset 0 0 0 2px var(--pc); transition: transform .15s var(--spring), background .15s; }
.asg-p[aria-pressed="true"] { background: var(--pc); color: #fff; transform: scale(1.04); }
.asg-p:active { transform: scale(.9); }
.asg-who { font-size: 13px; color: var(--light2); margin-left: 4px; }
.wk-ps { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 10px; margin-top: 14px; }
.wk-p { position: relative; display: flex; flex-direction: column; padding: 10px 10px 10px 14px; background: var(--hinoki); color: var(--ink); border-radius: 4px; box-shadow: 0 5px 10px rgba(0, 0, 0, .45); animation: popIn .35s var(--spring) both; }
.wk-p::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--pc); border-radius: 4px 0 0 4px; }
.wk-p-l { font-size: 12px; font-weight: 700; color: #3d2f22; }
.wk-p-v { font: 800 20px/1.3 var(--f-num); }
.wk-note { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--light2); }
.co-foot { margin: 22px 16px 0; }
.co-go { width: 100%; }
.co-demo { margin-top: 8px; text-align: center; font-size: 13px; color: var(--light2); }

/* 数量 */
.qty { display: flex; align-items: center; gap: 2px; background: #efe4cf; border-radius: 26px; padding: 2px; }
.qty-b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--paper); box-shadow: 0 1px 2px rgba(60, 40, 20, .25); transition: transform .12s; }
.qty-b:active { transform: scale(.88); }
.qty-b:disabled { color: #a3968a; box-shadow: none; background: transparent; }
.qty-v { min-width: 40px; text-align: center; font: 700 18px/1 var(--f-mono); }
.qty--s .qty-b { width: 44px; height: 44px; }
.qty--s .qty-v { min-width: 26px; font-size: 16px; }
.qty--s { flex-direction: column-reverse; gap: 0; border-radius: 24px; }
.qty--wood { background: #14100d; }
.qty--wood .qty-b { background: var(--sumi3); color: var(--light); box-shadow: none; }
.qty--wood .qty-b:disabled { background: transparent; color: #7d7064; }
.qty--wood .qty-v { color: var(--light); min-width: 52px; }
.qty--paper .qty-v { min-width: 52px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 700; text-align: center; transition: transform .12s, filter .2s; word-break: keep-all; }
.btn:active { transform: scale(.97); }
.btn:disabled { filter: grayscale(.8) brightness(.9); opacity: .7; }
.btn--shu { background: var(--shu); color: #fff6ea; box-shadow: 0 6px 14px rgba(120, 25, 10, .35), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn--wood { background: var(--hinoki2); color: var(--ink); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.btn--sumi { background: var(--sumi); color: var(--light); }
.osum .btn--sumi { background: var(--light); color: var(--ink); min-height: 44px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #a99878; }
.btn--ghost-l { background: transparent; color: var(--light); box-shadow: inset 0 0 0 1.5px #6e6155; }

/* 空の状態 */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 28px 30px; color: var(--light); }
.empty--paper, .washi .empty { color: var(--ink); }
.empty-img { width: 176px; height: 176px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); margin-bottom: 20px; }
.empty-t { font: 400 22px/1.4 var(--f-fuda); margin-bottom: 6px; }
.empty-s { font-size: 14px; line-height: 1.7; margin-bottom: 20px; color: var(--ink2); }
.g-co .empty-s, .wall .empty-s { color: var(--light2); }
.g-co .empty { color: var(--light); }

/* ページの上のバー */
.pbar { flex: none; display: flex; align-items: center; gap: 4px; min-height: 54px; padding: 0 12px 0 4px; background: var(--washi); border-bottom: 1px solid #e0d2b9; position: relative; z-index: 2; }
.pbar-back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); }
.pbar-back:active { background: #eadfca; }
.pbar-t { flex: 1; font-size: 18px; font-weight: 900; letter-spacing: .02em; }
.pbar-sub { font-size: 13px; color: var(--ink2); font-weight: 700; white-space: nowrap; }
.washi { background: var(--washi); color: var(--ink); }
.pg-cart, .pg-set, .pg-about { background: var(--washi); }

/* 注文かご */
.cart-body { flex: 1; min-height: 0; padding-bottom: 20px; }
.cls { padding: 6px 0; }
.cl { position: relative; overflow: hidden; border-bottom: 1px dashed #dccdb1; }
.cl-under { position: absolute; top: 0; right: 0; bottom: 0; width: 96px; display: flex; }
.cl-del { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--shu); color: #fff6ea; font-size: 12px; font-weight: 700; }
.cl-top { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--washi); transition: transform .28s var(--ease); touch-action: pan-y; }
.cl-th { width: 66px; height: 66px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(60, 40, 20, .25); }
.cl-th img { width: 100%; height: 100%; object-fit: cover; }
.cl-mini { display: grid; place-items: center; width: 100%; height: 100%; background: var(--wood); }
.cl-mini span { writing-mode: vertical-rl; text-orientation: upright; font: 400 15px/1 var(--f-fuda); color: var(--ink); }
.cl-txt { flex: 1; min-width: 0; }
.cl-n { display: block; text-align: left; font-size: 15px; font-weight: 700; line-height: 1.45; min-height: 30px; word-break: keep-all; overflow-wrap: normal; }
.cl-m { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.cl-out { font-size: 13px; color: var(--shu-ink); font-weight: 700; }
.cl-a { font: 800 17px/1.4 var(--f-num); margin-top: 2px; }
.cl-hint { padding: 12px 16px 0; font-size: 14px; line-height: 1.7; color: var(--ink2); }
.cl-alc { margin: 12px 16px 0; padding: 10px 12px; border-radius: 10px; background: var(--shu-soft); color: #7a1f10; font-size: 14px; line-height: 1.6; }
.cart-foot { flex: none; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--sumi); color: var(--light); }
.cf-sum { display: flex; flex-direction: column; line-height: 1.3; }
.cf-l { font-size: 13px; color: var(--light2); }
.cf-p { font: 800 22px/1.3 var(--f-num); }
.cf-go { flex: 1; min-height: 54px; }

/* シート */
.layer { position: relative; z-index: 50; }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: rgba(10, 6, 3, .55); opacity: 0; transition: opacity .3s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 430px;
  max-height: 90dvh; display: flex; flex-direction: column;
  background: var(--washi); color: var(--ink);
  border-radius: var(--r-l) var(--r-l) 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  transform: translateY(105%);
  transition: transform .34s var(--ease);
  overflow: hidden;
}
.sheet-wrap.is-open .scrim { opacity: 1; }
.sheet-wrap.is-open .sheet { transform: none; }
.sheet-grip { position: absolute; top: 0; left: 0; right: 0; height: 26px; display: flex; justify-content: center; padding-top: 8px; z-index: 3; touch-action: none; cursor: grab; }
.sheet:focus { outline: none; }
.stage.is-covered > * { visibility: hidden; }
.sheet--item { top: calc(env(safe-area-inset-top) + 18px); max-height: none; }
.sheet--item .is { max-height: none; height: 100%; }
.sheet-x { position: absolute; top: 10px; right: 10px; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(29, 25, 22, .82); color: var(--light); }
.sheet-x:active { transform: scale(.92); }
.sheet-grip span { width: 40px; height: 5px; border-radius: 3px; background: rgba(60, 45, 30, .35); }
.sheet--item .sheet:focus { outline: none; }
.sheet-x { position: absolute; top: 10px; right: 10px; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(29, 25, 22, .82); color: var(--light); }
.sheet-x:active { transform: scale(.92); }
.sheet-grip span { background: rgba(255, 255, 255, .85); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.is { display: flex; flex-direction: column; min-height: 0; max-height: 90dvh; }
.is-hero { position: relative; flex: none; height: 210px; background: #2d241e; overflow: hidden; }
.is-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.is-hero--wood { display: grid; place-items: center; background: var(--wall); padding-top: 10px; }
.is-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 20px; }
.is-name { font: 800 23px/1.35 var(--f-num); word-break: keep-all; overflow-wrap: normal; }
.is-desc { margin-top: 6px; font-size: 15px; line-height: 1.75; color: #3f352d; }
.is-st { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--ink2); }
.is-st .ic { width: 18px; height: 18px; color: var(--shu); }
.og { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.og-l { display: flex; align-items: baseline; justify-content: space-between; width: 100%; padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.og-l small { font-size: 12px; color: var(--ink2); font-weight: 500; }
.og-ch { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { min-height: 44px; padding: 0 16px; border-radius: 22px; background: #fffaf0; color: var(--ink); box-shadow: inset 0 0 0 1.5px #cdbb9c; font-size: 15px; font-weight: 700; transition: background .18s, color .18s, transform .12s; }
.ch:active { transform: scale(.95); }
.ch[aria-pressed="true"] { background: var(--sumi); color: var(--light); box-shadow: none; }
.ch-p { margin-left: 6px; font-size: 13px; color: var(--kuri); }
.ch[aria-pressed="true"] .ch-p { color: #f0d9b0; }
.is-alc { margin-top: 18px; padding: 10px 12px; border-radius: 10px; background: var(--shu-soft); color: #7a1f10; font-size: 14px; line-height: 1.6; }
.is-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #efe5d2; border-top: 1px solid #e0d2b9; }
.is-go { flex: 1; min-height: 54px; border-radius: 14px; background: var(--shu); color: #fff6ea; font-size: 15px; font-weight: 700; padding: 0 12px; box-shadow: 0 6px 14px rgba(120, 25, 10, .35); transition: transform .12s; }
.is-go:active { transform: scale(.97); }
.is-go-p { margin-left: 8px; font: 800 17px/1 var(--f-num); }
.cs { display: flex; flex-direction: column; max-height: 86dvh; min-height: 0; }
.cs-h { flex: none; display: flex; align-items: baseline; justify-content: space-between; padding: 26px 18px 10px; font-size: 19px; font-weight: 900; border-bottom: 1px solid #e0d2b9; }
.cs-sub { font-size: 13px; color: var(--ink2); }
.cs-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 14px; }
.cs-foot { flex: none; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--sumi); color: var(--light); }
.age, .call { padding: 34px 20px calc(22px + env(safe-area-inset-bottom)); }
.age-h, .call-h { font: 800 21px/1.4 var(--f-num); margin-bottom: 8px; }
.age-p, .call-p { font-size: 15px; line-height: 1.75; color: #3f352d; }
.age-s { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--ink2); }
.age-b, .call-b { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.call-b { flex-direction: row; }
.call-b .btn { flex: 1; padding: 0 10px; }
.call .og-ch { margin-top: 16px; }
.call-go { width: 100%; margin-top: 20px; }

/* トースト */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tab) + 84px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; max-width: 430px; margin: 0 auto; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 11px 8px 11px 16px; border-radius: 14px; background: #2b2420; color: var(--light); font-size: 14px; line-height: 1.55; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .26s var(--spring), opacity .2s; pointer-events: auto; }
.toast.is-in { transform: none; opacity: 1; }
.toast-t { padding-right: 8px; }
.toast--shu { background: #8f2312; }
.toast--ok { background: #245236; }
.toast-a { flex: none; min-height: 40px; padding: 0 12px; border-radius: 10px; color: #ffd9a8; font-weight: 700; white-space: nowrap; }
.toast-a:active { background: rgba(255, 255, 255, .1); }

html[data-mode="both"] .toasts { top: calc(env(safe-area-inset-top) + 64px); bottom: auto; flex-direction: column-reverse; }
.kds-newpill { position: absolute; left: 50%; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 14px); transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--shu); color: #fff6ea; font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); animation: barIn .35s var(--spring); white-space: nowrap; }
.kds-newpill .ic { width: 18px; height: 18px; transform: rotate(90deg); }

/* 伝票が飛ぶ */
.fly { position: fixed; left: 0; top: 0; z-index: 90; width: 48px; height: 60px; padding: 12px 8px; display: flex; flex-direction: column; gap: 7px; background: var(--paper); border-top: 5px solid var(--shu); box-shadow: 0 8px 18px rgba(0, 0, 0, .5); pointer-events: none; }
.fly span { height: 3px; background: #c8b795; border-radius: 2px; }
.fly span:nth-child(2) { width: 70%; }
.dot-fly { position: fixed; left: 0; top: 0; z-index: 90; width: 16px; height: 16px; border-radius: 50%; background: #e2553b; box-shadow: 0 0 0 3px rgba(255, 240, 220, .6); pointer-events: none; }

/* ---------- 厨房 ---------- */
.kds { position: relative; display: flex; flex-direction: column; background: #15110e; color: var(--light); }
.kds.ping { animation: ping .8s ease-out; }
.kds-top { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.kds-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kst { display: flex; flex-direction: column; align-items: flex-start; padding: 7px 10px; border-radius: 10px; background: #241d18; }
.kst-v { font: 700 22px/1.2 var(--f-mono); color: var(--light); }
.kst-l { font-size: 11px; font-weight: 700; color: var(--light2); white-space: nowrap; }
.kst.is-warn .kst-v { color: #f3c056; }
.kst.is-late .kst-v { color: #ff9a80; }
.kds-snd { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #241d18; color: var(--light); flex: none; }
.kds-calls { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
.kds-calls:empty { display: none; }
.kds-calls > :last-child { margin-bottom: 8px; }
.call-b { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--shu); color: #fff6ea; }
.call-b--pay { background: #245236; }
.call-b.is-new { animation: callIn .6s var(--spring); }
.call-t { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; line-height: 1.4; }
.call-t b { font-size: 16px; }
.call-ago { font: 500 12px/1.4 var(--f-mono); color: #ffe6d6; }
.call-b--pay .call-ago { color: #dff2e5; }
.call-ok { min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; flex: none; }
.call-ok:active { transform: scale(.95); }
.kds-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.kds-tickets { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.kds-filter { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 2px 12px 10px; scrollbar-width: none; }
.kds-filter::-webkit-scrollbar { display: none; }
.kf-b { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 14px; border-radius: 22px; background: #241d18; color: var(--light2); font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.kf-b .ic { width: 18px; height: 18px; }
.kf-b[aria-selected="true"] { background: var(--light); color: var(--ink); }
.kf-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #3a312b; color: var(--light); font: 700 12px/22px var(--f-mono); text-align: center; }
.kf-b[aria-selected="true"] .kf-n { background: var(--shu); color: #fff6ea; }
.kds-list { flex: 1; min-height: 0; padding: 4px 12px 24px; display: flex; flex-direction: column; gap: 16px; }
.slip { position: relative; flex: none; background: #f7f0e1; color: var(--ink); border-radius: 3px 3px 0 0; box-shadow: 0 8px 18px rgba(0, 0, 0, .55); margin-bottom: 8px; }
.slip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(-45deg, transparent 6px, #f7f0e1 0) 0 0 / 12px 8px repeat-x, linear-gradient(45deg, transparent 6px, #f7f0e1 0) 0 0 / 12px 8px repeat-x; }
.slip.is-new { animation: slipIn .6s var(--spring); }
.slip.is-new .slip-h { animation: flash 1.6s ease-out; }
.slip.is-leaving { animation: slipOut .28s ease-in forwards; }
.slip-h { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; background: var(--sumi2); color: var(--light); border-radius: 3px 3px 0 0; transition: background .4s; }
.slip-t { font-size: 17px; font-weight: 900; }
.slip-no { font: 500 13px/1 var(--f-mono); color: var(--light2); }
.slip-age { margin-left: auto; font: 700 19px/1 var(--f-mono); }
.slip.is-warn .slip-h { background: var(--warn); color: #241a08; }
.slip.is-warn .slip-no { color: #3d2c0c; }
.slip.is-late .slip-h { background: var(--shu); color: #fff6ea; animation: late 1.6s ease-in-out infinite; }
.slip.is-late .slip-no { color: #fff6ea; }
.slip.is-ready .slip-h { background: var(--ok); color: #f2faf4; }
.slip.is-ready .slip-no { color: #f2faf4; }
.slip-ls li { border-bottom: 1px dashed #d8c9ad; }
.slip-l { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 54px; padding: 8px 12px; text-align: left; transition: background .15s; }
.slip-l:active { background: #efe3ca; }
.slip-q { font: 700 24px/1 var(--f-mono); color: var(--shu-ink); }
.slip-n { position: relative; display: flex; flex-direction: column; line-height: 1.35; }
.slip-nn { font-size: 16px; font-weight: 900; word-break: keep-all; overflow-wrap: normal; }
.slip-m { font-size: 14px; font-weight: 700; color: var(--shu-ink); }
.slip-st { font-size: 11px; font-weight: 700; color: var(--ink2); padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px #b9a98f; white-space: nowrap; }
.slip-nn { position: relative; align-self: flex-start; }
.slip-nn::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 3px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.slip-l.is-done .slip-nn::after { transform: scaleX(1); }
.slip-l.is-done .slip-nn, .slip-l.is-done .slip-m { color: #675c52; }
.slip-l.is-done .slip-q { color: #675c52; }
.slip-l:disabled { cursor: default; }
.slip-more { padding: 8px 12px 0; font-size: 13px; color: var(--ink2); }
.slip-f { padding: 10px 12px 12px; }
.slip-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 10px; background: var(--sumi); color: var(--light); font-size: 15px; font-weight: 700; transition: transform .12s, background .2s; }
.slip-go:active { transform: scale(.97); }
.slip-go.is-hot, .slip-go--serve { background: var(--ok); color: #f2faf4; }
.slip-go.is-hot { animation: hot 1.4s ease-in-out infinite; }
.slip-go:disabled { background: #d9ccb4; color: #4a4038; }
.kds-sec { display: flex; align-items: baseline; gap: 8px; margin: 8px 2px -4px; font-size: 14px; font-weight: 700; color: var(--light2); letter-spacing: .08em; }
.kds-empty { padding: 48px 20px; text-align: center; }
.kds-empty--s { padding: 26px 20px; }
.kds-empty-t { font: 400 21px/1.4 var(--f-fuda); color: var(--light); }
.kds-empty-s { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--light2); }
.kds-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--sumi); border-top: 1px solid #000; }
.kds-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--light2); font-size: 11px; font-weight: 700; }
.kds-tab.is-on { color: var(--light); }
.kds-tab.is-on::before { content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--shu); }
.kds-so { flex: 1; min-height: 0; padding: 4px 16px 28px; }
.so-cap { font-size: 14px; line-height: 1.7; color: var(--light2); margin: 4px 0 6px; }
.so-g { margin-top: 18px; }
.so-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--light); padding-bottom: 6px; border-bottom: 1px solid #3a312b; }
.so-h .ic { width: 20px; height: 20px; color: #ff9a80; }
.so-r { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 0; border-bottom: 1px solid #2a221d; text-align: left; }
.so-n { flex: 1; font-size: 15px; font-weight: 700; word-break: keep-all; overflow-wrap: normal; }
.so-s { font-size: 13px; font-weight: 700; color: #9ed9b2; white-space: nowrap; }
.so-r[aria-checked="false"] .so-s { color: #ff9a80; }
.so-r[aria-checked="false"] .so-n { color: var(--light2); }
.sw { position: relative; width: 50px; height: 30px; flex: none; border-radius: 15px; background: #4a3f37; transition: background .2s; }
.sw span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff8ee; box-shadow: 0 2px 4px rgba(0, 0, 0, .4); transition: transform .25s var(--spring); }
[aria-checked="true"] > .sw { background: var(--ok); }
[aria-checked="true"] > .sw span { transform: translateX(20px); }

/* ---------- 並べる ---------- */
.both { display: flex; flex-direction: column; background: #0f0c0a; }
.both-g, .both-k { position: relative; flex: 1 1 50%; min-height: 0; display: flex; flex-direction: column; }
.both-g > .guest, .both-k > .kds { flex: 1; min-height: 0; }
.both-lab { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px; min-height: 28px; background: #2c231d; color: var(--light); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.both-lab--k { background: #15110e; border-top: 1px solid #2f2721; }
.both-lab-s { color: var(--light2); font-weight: 500; }
.both-sync { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 0 12px; background: #0f0c0a; color: var(--light2); font-size: 13px; font-weight: 700; border-top: 1px solid #000; }
.both-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 0 0 rgba(95, 208, 138, .6); animation: sync 1.8s infinite; flex: none; }
.both-k.got { animation: gotK .8s var(--ease); }
.guest.is-compact .rail { padding: 16px 12px 8px; gap: 8px; }
.guest.is-compact .rail-f { width: 40px; height: 62px; padding-top: 8px; }
.guest.is-compact .rail-v { font-size: 16px; }
.guest.is-compact .wall { padding: 12px 12px 86px; }
.guest.is-compact .pick { display: none; }
.guest.is-compact .cat-h { margin: 14px 0 10px; }
.guest.is-compact .cat:first-child .cat-h { margin-top: 2px; }
.guest.is-compact .dishes { grid-template-columns: 1fr 1fr 1fr; gap: 12px 8px; }
.guest.is-compact .dish-fuda { left: 4px; width: 26px; padding: 8px 0; }
.guest.is-compact .dish-fuda-v { font-size: 13px; }
.guest.is-compact .dish-price { font-size: 13px; right: 4px; bottom: 4px; padding: 1px 5px; }
.guest.is-compact .dish-tag { display: none; }
.guest.is-compact .dish-name { font-size: 13px; }
.guest.is-compact .dish-row { align-items: flex-start; }
.guest.is-compact .dish-add { width: 36px; height: 36px; }
.guest.is-compact .dish-add .ic { width: 20px; height: 20px; }
.guest.is-compact .stamp { font-size: 14px; padding: 2px 6px; }
.guest.is-compact .cartbar { bottom: 8px; left: 8px; right: 8px; }
.guest.is-compact .cartbar-b { min-height: 46px; padding-top: 4px; padding-bottom: 4px; }
.guest.is-compact .cartbar-ic { width: 34px; height: 34px; }
.guest.is-compact .kf-row { gap: 14px 8px; }
.kds.is-compact .kds-top { padding: 8px 10px 6px; }
.kds.is-compact .kst { flex-direction: row; align-items: baseline; gap: 6px; padding: 5px 8px; }
.kds.is-compact .kst-v { font-size: 17px; }
.kds.is-compact .kds-filter { display: none; }
.kds.is-compact .kds-calls > :not(:first-child) { display: none; }
.kds.is-compact .call-b { padding: 3px 4px 3px 10px; }
.kds.is-compact .kds-calls > :first-child { margin-bottom: 6px; }
.kds.is-compact .kds-list { flex-direction: row; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 12px 16px; gap: 12px; }
.kds.is-compact .slip { width: 252px; scroll-snap-align: start; }
.kds.is-compact .slip-no { display: none; }
.kds.is-compact .slip-t { font-size: 16px; }
.kds.is-compact .slip-l { min-height: 46px; padding: 6px 10px; }
.kds.is-compact .slip-nn { font-size: 15px; }
.kds.is-compact .slip-f { padding: 8px 10px 10px; }
.kds.is-compact .slip-go { min-height: 44px; font-size: 14px; }
.kds.is-compact .kds-sec { flex: none; align-self: stretch; margin: 0; padding: 12px 6px; border-radius: 8px; background: #241d18; justify-content: center; }
.kds.is-compact .kds-sec-t { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .2em; }
.kds.is-compact .kds-sec-n { display: none; }
.kds.is-compact .kds-empty { padding: 20px; width: 100%; }

/* ---------- 会計の完了 ---------- */
.pg-done { background: var(--yakisugi); }
.pg-done .pbar { background: var(--sumi); border-color: #000; }
.pg-done .pbar-t, .pg-done .pbar-back { color: var(--light); }
.done-wrap { flex: 1; min-height: 0; background: var(--wall); }
.done { padding: 22px 16px 32px; }
.done-card { position: relative; padding: 26px 20px 22px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); animation: popIn .5s var(--spring) both; }
.hanko { position: absolute; top: 16px; right: 16px; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--shu), inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--shu); transform: rotate(-12deg); animation: hanko .5s .25s var(--spring) both; }
.hanko span { font: 400 18px/1 var(--f-fuda); color: var(--shu-ink); letter-spacing: .04em; }
.done-l { font-size: 13px; font-weight: 700; color: var(--ink2); letter-spacing: .1em; }
.done-no { font: 700 54px/1.1 var(--f-mono); letter-spacing: .06em; margin: 2px 0 8px; }
.done-s { font-size: 14px; line-height: 1.7; color: #3f352d; padding-right: 8px; }
.done-t { margin: 16px 0 0; border-top: 2px solid var(--ink); }
.done-t > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dotted #bcaa8c; }
.done-t dt { font-size: 14px; font-weight: 700; }
.done-t dd { margin: 0; font: 800 17px/1.4 var(--f-num); text-align: right; }
.done-ps { display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 12px; }
.done-ps li { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.done-ps li span:last-child { font: 800 15px/1.5 var(--f-num); }
.done-demo { margin-top: 14px; font-size: 13px; color: var(--ink2); }
.done-b { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ---------- 設定・アプリについて ---------- */
.set { flex: 1; min-height: 0; padding: 4px 16px 36px; }
.set-g { margin-top: 22px; }
.set-h { font-size: 13px; font-weight: 700; color: var(--kuri); letter-spacing: .1em; margin-bottom: 10px; }
.set-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.set-tb { min-height: 46px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1.5px #d6c5a6; font-size: 14px; font-weight: 700; word-break: keep-all; }
.set-tb[aria-checked="true"] { background: var(--sumi); color: var(--light); box-shadow: none; }
.set-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; border-bottom: 1px solid #e3d6bf; text-align: left; }
.set-l { font-size: 15px; font-weight: 700; }
.set-p { font-size: 14px; line-height: 1.75; color: #3f352d; }
.set-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; border-bottom: 1px solid #e3d6bf; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; }
.set-link .ic { color: var(--kuri); }
.set-link--shu, .set-link--shu .ic { color: var(--shu-ink); }
.set-about { margin-top: 24px; border-top: 1px solid #e3d6bf; }
.set-about span { flex: 1; }
.set-chev { width: 20px; height: 20px; }
.about { flex: 1; min-height: 0; padding: 22px 18px 40px; background: var(--washi); }
.about-hd { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.about-ic { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.about-n { font: 400 28px/1.3 var(--f-fuda); }
.about-v { font-size: 13px; color: var(--ink2); }
.about-p { font-size: 14px; line-height: 1.8; color: #3f352d; margin-top: 10px; }
.about-h { font-size: 15px; font-weight: 900; margin: 22px 0 8px; }
.about-tech li { position: relative; padding: 6px 0 6px 18px; font-size: 14px; line-height: 1.6; border-bottom: 1px dotted #cdbb9c; }
.about-tech li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; background: var(--shu); transform: rotate(45deg); }
.about-cta { width: 100%; margin-top: 26px; }

/* ---------- スプラッシュ・案内 ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #0f0c0a url('/app-development/apps/a043/img/grill.webp') center bottom / cover no-repeat; transition: opacity .3s; }
.splash::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 12, 10, .92) 0%, rgba(15, 12, 10, .7) 55%, rgba(15, 12, 10, .2) 100%); }
.splash.is-out { opacity: 0; }
.splash-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: -18vh; animation: splashIn .7s var(--spring) both; }
.splash-ic { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.splash-n { font: 400 36px/1.2 var(--f-fuda); color: var(--light); letter-spacing: .12em; margin-top: 10px; }
.splash-s { font-size: 14px; color: var(--light2); letter-spacing: .1em; }
.onb { position: fixed; inset: 0; z-index: 95; margin: 0 auto; max-width: 430px; display: flex; flex-direction: column; background: var(--sumi); color: var(--light); transition: opacity .3s; animation: fadeIn .3s; }
.onb.is-out { opacity: 0; pointer-events: none; }
.onb-skip { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 2; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--sumi); color: var(--light); font-size: 14px; font-weight: 700; }
.onb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.onb-track::-webkit-scrollbar { display: none; }
.onb-s { flex: none; width: 100%; display: flex; flex-direction: column; scroll-snap-align: start; }
.onb-ph { flex: 1; min-height: 0; background-size: cover; background-position: center; }
.onb-tx { flex: none; padding: 24px 24px 8px; background: var(--sumi); }
.onb-no { font: 500 13px/1 var(--f-mono); color: var(--light2); }
.onb-t { font: 400 28px/1.35 var(--f-fuda); margin: 10px 0 8px; word-break: keep-all; }
.onb-p { font-size: 15px; line-height: 1.8; color: #e2d6c2; }
.onb-ft { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px calc(20px + env(safe-area-inset-bottom)); }
.onb-dots { display: flex; gap: 8px; }
.onb-dots span { width: 8px; height: 8px; border-radius: 4px; background: #5a4e45; transition: width .3s var(--ease), background .3s; }
.onb-dots span.is-on { width: 24px; background: var(--shu); }
.onb-next { min-width: 128px; }

.fatal { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px; background: var(--sumi); color: var(--light); font-size: 15px; line-height: 1.8; }
.fatal-t { font-size: 20px; font-weight: 700; }
.fatal a { color: #ffd9a8; text-decoration: underline; }
.noscript { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 32px; background: var(--sumi); color: var(--light); }

/* ---------- 動き ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes swing { 0% { transform: rotate(0); } 20% { transform: rotate(7deg); } 45% { transform: rotate(-5deg); } 68% { transform: rotate(2.5deg); } 85% { transform: rotate(-1deg); } 100% { transform: rotate(0); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.045); } 100% { transform: scale(1); } }
@keyframes barIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes slipIn { 0% { transform: translateY(-30px) rotate(-2deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes slipOut { to { transform: translateX(60px) rotate(4deg); opacity: 0; } }
@keyframes flash { 0%, 30% { box-shadow: inset 0 0 0 999px #d9442a; } 100% { box-shadow: inset 0 0 0 999px transparent; } }
@keyframes late { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0); } 50% { box-shadow: inset 0 -3px 0 0 rgba(255, 220, 200, .7); } }
@keyframes hot { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 69, .5); } 50% { box-shadow: 0 0 0 6px rgba(47, 107, 69, 0); } }
@keyframes ping { 0% { box-shadow: inset 0 0 0 0 rgba(217, 68, 42, .0); } 20% { box-shadow: inset 0 0 0 4px rgba(217, 68, 42, .8); } 100% { box-shadow: inset 0 0 0 0 rgba(217, 68, 42, 0); } }
@keyframes callIn { from { transform: translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes got { 0% { transform: scale(1); } 30% { transform: scale(1.18); background: var(--shu); color: #fff6ea; } 100% { transform: scale(1); } }
@keyframes gotK { 0% { box-shadow: inset 0 0 0 0 rgba(217, 68, 42, 0); } 25% { box-shadow: inset 0 0 0 3px rgba(217, 68, 42, .9); } 100% { box-shadow: inset 0 0 0 0 rgba(217, 68, 42, 0); } }
@keyframes sync { 0% { box-shadow: 0 0 0 0 rgba(95, 208, 138, .6); } 70% { box-shadow: 0 0 0 8px rgba(95, 208, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 208, 138, 0); } }
@keyframes hanko { from { transform: rotate(-30deg) scale(1.6); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
@keyframes splashIn { from { transform: translateY(14px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

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

/* ---------- 広い画面：中央の列に収める ---------- */
@media (min-width: 600px) {
  body { background: #0f0c0a repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 120px), linear-gradient(180deg, #241c17, #120e0b); }
  .app { left: 50%; right: auto; width: 430px; transform: translateX(-50%); box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
  .splash { left: 50%; right: auto; width: 430px; transform: translateX(-50%); }
}
