/* 多言語QRメニュー — studio ONEDAY オリジナルデザイン
   紙のような生成り地 × 藍（インク）× 柿色のアクセント */
:root {
  --paper: #F6F1E7;
  --card: #FFFDF8;
  --ink: #1F2A44;
  --ink-soft: #4A5368;
  --muted: #7D8494;
  --line: #E4DCCB;
  --accent: #D9572B;
  --accent-dark: #B44520;
  --gold: #B98B3E;
  --ok: #3F7A57;
  --radius: 14px;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo",
          "Noto Sans KR", "Malgun Gothic", "PingFang SC", "Microsoft YaHei", "PingFang TC", "Microsoft JhengHei",
          "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif KR", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
}
body.has-cart { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

/* ヘッダー */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #FFF8EC; box-shadow: 0 2px 10px rgba(31,42,68,.18); }
.top-inner { max-width: 640px; margin: 0 auto; padding: 14px 16px 10px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.shop-kicker { font-size: 11px; letter-spacing: .22em; color: var(--gold); font-weight: 700; }
.shop h1 { font-family: var(--serif); font-size: 21px; line-height: 1.3; font-weight: 700; margin-top: 2px; }
.shop-sub { font-size: 12px; color: #C9CEDB; margin-top: 2px; }
.shop-sub:empty { display: none; }
.lang-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,248,236,.1); border: 1px solid rgba(255,248,236,.35); color: #FFF8EC;
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.lang-btn:active { background: rgba(255,248,236,.2); }

.cats { max-width: 640px; margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; color: #E8E3D6; text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(232,227,214,.28); white-space: nowrap;
}
.cats a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 確認モード */
.review-banner { max-width: 640px; margin: 12px auto 0; padding: 10px 14px; background: #FFF4C8; border: 1px dashed #C9A227; border-radius: 10px; font-size: 12.5px; color: #5B4A0F; margin-inline: 16px; }
@media (min-width: 672px) { .review-banner { margin-inline: auto; } }
.unverified { text-decoration: underline dotted #C9A227 2px; text-underline-offset: 3px; background: #FFF4C8; }
.unverified.ai { text-decoration-color: #4A7FB0; background: #E4EEF8; }
.cats .unverified { background: transparent; color: inherit; }

/* メニュー */
.menu { max-width: 640px; margin: 0 auto; padding: 8px 16px 24px; }
.loading, .error { padding: 48px 0; text-align: center; color: var(--muted); }
.error { color: var(--accent-dark); }
.sec { padding-top: 18px; scroll-margin-top: 120px; }
.sec-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; font-weight: 700; margin: 4px 0 12px; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--c); color: #FFF8EC; font-size: 16px; transform: rotate(-4deg);
}
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.card.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.photo { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.22) 0 18%, transparent 19%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 6px, transparent 6px 12px),
    var(--c);
}
.ph span {
  font-family: var(--serif); font-size: 34px; font-weight: 700; color: #FFF8EC;
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 2px solid rgba(255,248,236,.75); border-radius: 50%; transform: rotate(-8deg);
}
.body { min-width: 0; display: flex; flex-direction: column; }
.name { font-size: 16px; font-weight: 700; line-height: 1.35; }
.name-ja { font-size: 12px; color: var(--muted); margin-top: 1px; }
.desc { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tags:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #EFE8DA; color: var(--ink-soft); }
.chili { font-size: 10px; margin-right: 2px; letter-spacing: -1px; }
.tag-spicy { background: #FBE3DA; color: #B3361A; }
.tag-popular { background: #FCE9C9; color: #8A5A10; }
.tag-recommended { background: var(--accent); color: #fff; }
.tag-hokkaido { background: #DCE9F2; color: #24506E; }
.tag-raw { background: #E6EEE6; color: #3F6047; }
.tag-alcohol { background: #E7E5F1; color: #43407A; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-size: 17px; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.add {
  display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 14px;
  background: var(--ink); color: #FFF8EC; border: 0; border-radius: 999px; font-size: 13.5px; font-weight: 700;
}
.add:active { background: #000; }
.stepper { display: inline-flex; align-items: center; background: var(--accent); border-radius: 999px; color: #fff; }
.stepper button { width: 40px; height: 38px; border: 0; background: transparent; color: #fff; font-size: 20px; font-weight: 700; }
.stepper output { min-width: 24px; text-align: center; font-weight: 800; font-size: 16px; }

/* 選択肢（塩/タレ など） */
.card.has-opts .row { flex-wrap: wrap; align-items: flex-start; }
.card.has-opts .ctl { width: 100%; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.optrow { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 3px 3px 12px; }
.optlabel { font-size: 13px; font-weight: 700; white-space: nowrap; }
.add-sm { min-height: 34px; width: 38px; padding: 0; justify-content: center; font-size: 16px; }
.optrow .stepper button { width: 34px; height: 34px; font-size: 18px; }
.s-opt { font-style: normal; display: inline-block; margin-left: 8px; padding: 0 10px; border-radius: 8px; background: var(--ink); color: #FFF8EC; font-size: 0.8em; vertical-align: 0.15em; }
.tag-classic { background: #E8E1D2; color: #5A4A2A; }

.foot { max-width: 640px; margin: 0 auto; padding: 8px 16px 32px; font-size: 12px; color: var(--muted); }
.foot .credit { margin-top: 10px; letter-spacing: .04em; }
.foot strong { color: var(--ink-soft); }

/* 下部の注文バー */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 70%, rgba(246,241,231,0)); }
.cartbar-inner { max-width: 616px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #FFF8EC; border-radius: 18px; padding: 8px 8px 8px 16px; box-shadow: 0 8px 24px rgba(31,42,68,.28); }
.cart-sum { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cart-count { font-size: 12px; color: #C9CEDB; }
.cart-total { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.btn-primary { margin-left: auto; min-height: 50px; padding: 0 18px; border: 0; border-radius: 13px; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; }
.btn-primary:active { background: var(--accent-dark); }

/* 店員さんに見せる画面（日本語・大きく） */
.staff { position: fixed; inset: 0; z-index: 50; background: #FFFDF8; overflow-y: auto; display: flex; flex-direction: column; }
.staff[hidden] { display: none; }
.staff-head { position: sticky; top: 0; background: var(--ink); color: #FFF8EC; padding: 10px 16px; }
.staff-back { background: transparent; border: 1px solid rgba(255,248,236,.4); color: #FFF8EC; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.staff-hint { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--gold); }
.staff-body { max-width: 720px; width: 100%; margin: 0 auto; padding: 20px 18px 8px; flex: 1; }
.staff-label { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .15em; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 6px; }
.staff-title { font-family: var(--serif); font-size: 26px; line-height: 1.3; margin: 10px 0 14px; }
.staff-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.staff-list li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name qty" "alt sub";
  column-gap: 14px; row-gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.s-name { grid-area: name; font-size: 26px; font-weight: 800; line-height: 1.3; }
.s-qty { grid-area: qty; font-size: 30px; font-weight: 900; color: var(--accent-dark); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-sub { grid-area: sub; font-size: 16px; color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.s-alt { grid-area: alt; font-size: 13px; color: var(--muted); }
.staff-list li.done { background: #EEF5EF; }
.staff-list li.done .s-name, .staff-list li.done .s-qty { text-decoration: line-through; text-decoration-thickness: 3px; color: var(--ok); }
.staff-list li.done .s-name::before { content: "入力済 "; font-size: 13px; font-weight: 800; color: #fff; background: var(--ok); border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: middle; text-decoration: none; display: inline-block; }
.staff-empty { cursor: default !important; font-size: 18px; color: var(--muted); display: block !important; }
.staff-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 4px; border-bottom: 3px solid var(--ink); font-size: 20px; font-weight: 700; }
.staff-total strong { font-size: 38px; font-weight: 900; font-variant-numeric: tabular-nums; }
.staff-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); background: #F3EEE2; padding: 10px 12px; border-radius: 10px; }
.staff-langinfo { margin-top: 8px; font-size: 12px; color: var(--muted); }
.staff-foot { max-width: 720px; width: 100%; margin: 0 auto; padding: 8px 18px calc(24px + env(safe-area-inset-bottom)); }
.btn-ghost { width: 100%; min-height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }

/* 言語シート */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20,26,40,.45); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: var(--card); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; text-align: center; }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang-list button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 700; }
.lang-list button[aria-pressed="true"] { background: var(--ink); color: #FFF8EC; border-color: var(--ink); }
.check { color: var(--gold); }

@media (max-width: 360px) {
  .card { grid-template-columns: 76px 1fr; }
  .photo { width: 76px; height: 76px; }
  .s-name { font-size: 22px; }
}
@media print { .cartbar, .lang-btn { display: none; } }
