/* アサイーボウル店 QR注文：共通スタイル（スマホ・タブレット前提、大きい文字） */
:root {
  --bg: #faf7f4;
  --card: #ffffff;
  --ink: #23182b;
  --sub: #6b5e72;
  --line: #e7dfe6;
  --acai: #4b1f5c;
  --acai-2: #6d3482;
  --acai-soft: #f2e9f5;
  --berry: #c2185b;
  --ok: #1e7d4f;
  --ok-soft: #e3f4ea;
  --warn: #b25b00;
  --warn-soft: #fff1df;
  --ng: #b3261e;
  --ng-soft: #fde8e6;
  --takeout: #0d5c8c;
  --takeout-soft: #e1f0fa;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(35, 24, 43, .06), 0 4px 16px rgba(35, 24, 43, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 18px; line-height: 1.6;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--acai-2); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.yen::before { content: "¥"; margin-right: 1px; }
.muted { color: var(--sub); }
.small { font-size: 15px; }

/* ---------- ヘッダー ---------- */
.top {
  background: var(--acai); color: #fff; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.seat { background: #fff; color: var(--acai); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 17px; white-space: nowrap; }
.seat.takeout { color: var(--takeout); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 20px; border-radius: 14px; border: 2px solid transparent;
  font-weight: 700; font-size: 18px; background: var(--acai); color: #fff; text-decoration: none;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.big { min-height: 64px; font-size: 21px; }
.btn.ghost { background: #fff; color: var(--acai); border-color: var(--acai); }
.btn.ok { background: var(--ok); }
.btn.warn { background: var(--warn); }
.btn.ng { background: #fff; color: var(--ng); border-color: var(--ng); }
.btn.paypay { background: #ff0033; }
.btn.takeout { background: var(--takeout); }
.btn:focus-visible, .qty button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #f0a; outline-offset: 2px; }

/* ---------- メニュー ---------- */
.notice { background: var(--warn-soft); color: #6b3700; border-radius: 12px; padding: 12px 16px; margin: 16px 0; font-weight: 600; }
.notice.ng { background: var(--ng-soft); color: var(--ng); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
h2.sec { font-size: 20px; margin: 24px 0 10px; color: var(--acai); }
.menu { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .menu { grid-template-columns: 1fr 1fr; } }
.item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.item.off { opacity: .6; }
.photo {
  aspect-ratio: 16 / 9; background:
    linear-gradient(135deg, rgba(75,31,92,.92), rgba(194,24,91,.75)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 15px; letter-spacing: .1em;
}
.photo.drink { background: linear-gradient(135deg, #2f5d50, #7aa889); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.item .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item .name { font-weight: 800; font-size: 19px; line-height: 1.4; }
.item .desc { color: var(--sub); font-size: 15px; }
.item .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.item .price { font-weight: 800; font-size: 22px; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: 15px; font-weight: 700; }
.badge.left { background: var(--acai-soft); color: var(--acai); }
.badge.few { background: var(--warn-soft); color: var(--warn); }
.badge.out { background: var(--ng-soft); color: var(--ng); }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--acai); background: #fff; color: var(--acai);
  font-size: 26px; font-weight: 700; line-height: 1;
}
.qty button.plus { background: var(--acai); color: #fff; }
.qty button:disabled { opacity: .35; }
.qty output { min-width: 36px; text-align: center; font-size: 22px; font-weight: 800; }

/* ---------- カート ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.cartbar .wrap { padding: 0; }
.spacer { height: 110px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 10, 25, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: #fff; width: 100%; max-width: 760px; max-height: 92vh; overflow: auto;
  border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}
.sheet h3 { margin: 0 0 12px; font-size: 22px; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .n { font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 22px; font-weight: 800; margin: 16px 0; }
.choice { display: grid; gap: 10px; margin: 12px 0 18px; }
.choice label {
  display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 700;
}
.choice input { width: 24px; height: 24px; accent-color: var(--acai); }
.choice label:has(input:checked) { border-color: var(--acai); background: var(--acai-soft); }
.choice .s { display: block; font-weight: 400; font-size: 15px; color: var(--sub); }

/* ---------- 注文後 ---------- */
.done { text-align: center; padding: 24px 0 8px; }
.done .lbl { color: var(--sub); font-weight: 700; }
.code { font-size: 64px; font-weight: 900; letter-spacing: .04em; color: var(--acai); line-height: 1.1; margin: 4px 0 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.steps div { border-radius: 14px; padding: 14px 6px; background: #efe9ee; color: #9c8fa1; font-weight: 800; text-align: center; font-size: 18px; }
.steps div.on { background: var(--acai); color: #fff; }
.steps div.now { box-shadow: 0 0 0 4px rgba(194,24,91,.35); }
.ready-msg { font-size: 24px; font-weight: 900; color: var(--ok); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 14px 0; }

/* ---------- テスト決済 ---------- */
.testband { background: repeating-linear-gradient(45deg, #ffe100 0 18px, #222 18px 36px); padding: 6px; border-radius: 14px; }
.testband > div { background: #fff; border-radius: 10px; padding: 16px; text-align: center; }
.testband strong { color: var(--ng); font-size: 24px; }

/* ---------- スタッフ ---------- */
body.staff { font-size: 18px; }
.staff .top { background: #2a1233; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a, .tabs button { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 700; text-decoration: none; font-size: 16px; }
.tabs .on { background: #fff; color: #2a1233; }
.swrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.stock-pill { background: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 800; box-shadow: var(--shadow); }
.stock-pill.out { background: var(--ng-soft); color: var(--ng); }
.board { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .board { grid-template-columns: repeat(3, 1fr); } }
.col h2 { font-size: 19px; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.col h2 .n { background: #2a1233; color: #fff; border-radius: 999px; min-width: 32px; padding: 0 10px; text-align: center; font-size: 16px; }
.ocard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; border-left: 8px solid var(--acai-2); }
.ocard.takeout { border-left-color: var(--takeout); }
.ocard.fresh { animation: fresh 1.2s ease-in-out 3; }
@keyframes fresh { 50% { box-shadow: 0 0 0 6px rgba(194,24,91,.45); } }
.ocard .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ocard .oc { font-size: 30px; font-weight: 900; }
.tbl { font-size: 20px; font-weight: 900; padding: 4px 12px; border-radius: 10px; background: var(--acai-soft); color: var(--acai); }
.tbl.takeout { background: var(--takeout); color: #fff; }
.ocard ul { margin: 8px 0; padding: 0; list-style: none; font-size: 20px; }
.ocard li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.ocard li { gap: 10px; }
.ocard li b { font-size: 22px; white-space: nowrap; }
.ocard .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.paytag { font-weight: 800; padding: 2px 10px; border-radius: 8px; font-size: 16px; }
.paytag.unpaid { background: var(--warn-soft); color: var(--warn); }
.paytag.paid { background: var(--ok-soft); color: var(--ok); }
.ocard .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ocard .acts .btn { min-height: 56px; font-size: 18px; padding: 8px; }
.ocard .acts .wide { grid-column: 1 / -1; }
.later { margin-top: 20px; }
.later summary { font-weight: 800; font-size: 18px; cursor: pointer; padding: 8px 0; }
.mini { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; background: #fff; border-radius: 12px; padding: 10px 14px; margin: 6px 0; box-shadow: var(--shadow); }
.modal-bg { position: fixed; inset: 0; background: rgba(20,10,25,.5); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 20px; padding: 20px; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; }
.modal h3 { margin: 0 0 6px; font-size: 22px; }
.bigsum { font-size: 40px; font-weight: 900; }
.field { display: grid; gap: 6px; margin: 12px 0; }
.field input, .field select, .field textarea { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 20px; background: #fff; width: 100%; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button { min-height: 52px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 800; }
.change { font-size: 32px; font-weight: 900; color: var(--ok); }
.change.short { color: var(--ng); font-size: 22px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 360px; margin: 16px auto; }
.pinpad button { height: 76px; border-radius: 16px; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 30px; font-weight: 800; }
.pindots { text-align: center; font-size: 34px; letter-spacing: .4em; min-height: 52px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi .k { color: var(--sub); font-weight: 700; font-size: 15px; }
.kpi .v { font-size: 28px; font-weight: 900; }
.kpi .s { color: var(--sub); font-size: 15px; }
table.t { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.t td.r, table.t th.r { text-align: right; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2a1233; color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 60; font-weight: 700; max-width: calc(100% - 32px); }
.toast.err { background: var(--ng); }

/* メニュー管理 */
.medit { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin: 12px 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .medit { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; } .medit .full { grid-column: 1 / -1; } }
.medit .field { margin: 0; }
.medit .field input, .medit .field select { font-size: 18px; padding: 10px 12px; }
.medit .flags { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.medit .flags label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.medit .flags input { width: 24px; height: 24px; }

/* QR印刷 */
.qrgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 16px 0 40px; }
.qrcard { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 16px; text-align: center; break-inside: avoid; }
.qrcard .t { font-size: 26px; font-weight: 900; }
.qrcard .t.takeout { color: var(--takeout); }
.qrcard svg { width: 100%; height: auto; max-width: 220px; }
.qrcard .u { font-size: 11px; color: var(--sub); word-break: break-all; }
.qrcard .h { font-size: 15px; font-weight: 700; }
@media print {
  .noprint, .top { display: none !important; }
  body { background: #fff; }
  .qrgrid { grid-template-columns: repeat(3, 1fr); gap: 10mm; }
  .qrcard { border-width: 1px; }
}

/* 持ち帰りの受け取り時間 */
.ocard .pick { margin: 6px 0 2px; font-weight: 800; color: var(--takeout); font-size: 16px; }
.ocard .pick.set { background: var(--takeout-soft); border-radius: 8px; padding: 4px 10px; display: inline-block; }
.ocard .pick b { font-size: 22px; }
.photo-edit .pe-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-edit .pe-img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.photo-edit .pe-btn { min-height: 44px; padding: 6px 14px; font-size: 16px; }
