/* 受付QR だけの見た目。色・文字・部品はデザインシステム（/ds/tokens.css・/ds/components.css）を使い、ここでは並べ方と受付だけの部品を足す。
   直書きの色は使わない（トークンだけ）。 */

[hidden] { display: none !important; }
body { overflow-wrap: anywhere; }   /* 長い英字の名前・特典の文も折り返す */
.gifts li > span:last-child { min-width: 0; }
a { color: var(--soft-ink); text-underline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.center-screen .login-card > p { text-align: center; }
.cushion-sub { align-self: center; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-m); }   /* クッションページの「このまま受付」（押しやすい大きさ） */

.page { max-width: 1280px; margin: 0 auto; padding: var(--sp-6) max(var(--sp-4), env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(var(--sp-4), env(safe-area-inset-left)); }
.page.narrow { max-width: 560px; }
.page .head { margin-bottom: var(--sp-5); }
.customer .head h1 { font-size: 28px; }

/* ---- お客さん ---- */
.lead { font-size: var(--fs-l); margin: 0 0 var(--sp-4); }
.back { margin-bottom: var(--sp-3); }
.consent h1 { font-family: var(--display); font-size: var(--fs-xl); margin: 4px 0 var(--sp-2); }
.consent h2 { font-size: var(--fs-m); margin: var(--sp-4) 0 var(--sp-1); padding-top: var(--sp-3); border-top: 1px solid var(--line); color: var(--soft-ink); }
.consent ul { margin: 0; padding-left: 1.2em; }
.consent p { margin: var(--sp-1) 0; }
.consent .btn { margin-top: var(--sp-2); }
/* ---- 歓迎の画面（はじめての人だけ）：森の市松の上にキャストの写真を流し、下から白いシート ---- */
body.welcome { background: repeating-conic-gradient(from 45deg, var(--forest-1) 0 25%, var(--forest-2) 0 50%) 0 0 / 56px 56px; }
.welcome .appbar { display: none; }
.welcome #app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; max-width: none; padding: 0; }
.welcome-hero { flex: 1; display: flex; align-items: center; overflow: hidden; padding: calc(24px + env(safe-area-inset-top)) 0 28px; }
.welcome-hero .track { display: flex; gap: 14px; width: max-content; padding: 12px 7px 22px; animation: photo-strip 48s linear infinite; }
.welcome-hero img { width: 124px; height: 186px; object-fit: cover; flex: none; border: 4px solid var(--panel); border-radius: var(--r-l); background: var(--panel); box-shadow: var(--shadow-photo); transform: rotate(-2.5deg); }
.welcome-hero img:nth-child(even) { transform: rotate(2deg) translateY(10px); }
@keyframes photo-strip { to { transform: translateX(calc(-50% - 7px)); } }
.welcome-sheet { width: 100%; max-width: 480px; margin: 0 auto; background: var(--panel); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lift); padding: 24px 24px calc(18px + env(safe-area-inset-bottom)); text-align: center; animation: sheet-up .55s cubic-bezier(.2, .8, .2, 1) both; }
.welcome-sheet .logo { width: 138px; margin: 0 auto 6px; display: block; }
.welcome-sheet .consent .btn { margin-top: var(--sp-5); box-shadow: var(--shadow-photo); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 600px) { .welcome-sheet { border-radius: 28px; margin-bottom: 40px; } .welcome-hero img { width: 150px; height: 225px; } }
@media (max-height: 640px) { .welcome-hero { padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 12px; } .welcome-hero img { width: 92px; height: 138px; } .welcome-sheet .logo { width: 110px; } }
@media (prefers-reduced-motion: reduce) { .welcome-hero { overflow-x: auto; } .welcome-hero .track, .welcome-sheet { animation: none; } }
.consent .foot { margin-top: var(--sp-3); font-size: var(--fs-s); color: var(--sub); }
/* ---- お客さんの画面（2026-11-12 デザインの見直し）：森の市松の地に白いカード ---- */
body.customer { background: repeating-conic-gradient(from 45deg, var(--forest-1) 0 25%, var(--forest-2) 0 50%) 0 0 / 56px 56px; }
.customer .head .eyebrow { color: var(--soft-ink); font-weight: 600; }
.ico { display: inline-grid; place-items: center; width: 1em; height: 1em; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; }
.back .btn { background: var(--panel); }
/* 進み具合 */
.steps-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 var(--sp-5); }
.steps-bar span { height: 4px; border-radius: var(--r-pill); background: var(--panel); }
.steps-bar span.on { background: var(--accent); }
/* 大きな選択肢 */
.customer .option { box-shadow: var(--shadow-photo); border-color: transparent; transition: transform .12s, box-shadow .12s; }
.customer .option:active { transform: scale(.98); }
.option.choice { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; }
.choice-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; }
.choice-ico.k1 { background: var(--k1); color: var(--k1-ink); } .choice-ico.k2 { background: var(--k2); color: var(--k2-ink); }
.choice-ico.k3 { background: var(--k3); color: var(--k3-ink); } .choice-ico.k4 { background: var(--k4); color: var(--k4-ink); }
.choice-text { display: grid; gap: 2px; min-width: 0; }
.choice-text small { color: var(--sub); font-size: 13px; }
.choice-go { font-size: 20px; color: var(--sub); }
/* 推しのカード（頭文字の丸・名前・時間） */
.options.cast-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.option.cast-card { position: relative; justify-items: center; align-content: center; text-align: center; gap: 6px; padding: 22px 12px 18px; min-height: 92px; }
.option.cast-card:has(.badge) { padding-top: 36px; }   /* 「前回の推し」の札と名前が重ならないように */
.cast-card b { font-family: var(--display); font-size: 18px; }
.cast-card .time { display: inline-flex; align-items: center; gap: 4px; color: var(--sub); font-size: 13px; font-variant-numeric: tabular-nums; }
.cast-card .badge { position: absolute; top: 8px; right: 8px; font-size: var(--fs-xs); font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: var(--k4); color: var(--k4-ink); white-space: nowrap; }
/* 受付のチケット */
.ticket-card { background: var(--panel); border-radius: var(--r-xl); box-shadow: var(--shadow-photo); overflow: hidden; text-align: left; }
.ticket-top { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.ticket-who { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.ticket-who b { font-family: var(--display); font-size: 22px; line-height: 1.3; }
.ticket-rows { margin: 0; padding: 14px 20px 18px; border-top: 2px dashed var(--line2); position: relative; }
.ticket-rows::before, .ticket-rows::after { content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--forest-2); }
.ticket-rows::before { left: -9px; } .ticket-rows::after { right: -9px; }
.ticket-rows div { display: flex; justify-content: space-between; gap: 12px; }
.ticket-rows dt { color: var(--sub); }
.ticket-rows dd { margin: 0; font-weight: 700; }
/* 下に固定する主ボタン */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--panel); box-shadow: var(--shadow-lift); }
.action-bar .btn { max-width: 528px; margin: 0 auto; display: block; }
.customer .page:has(.action-bar) { padding-bottom: 120px; }
/* 受付完了 */
.done { text-align: center; padding: var(--sp-2) 0 var(--sp-5); display: grid; gap: 6px; justify-items: center; }
.done-mark { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 40px; box-shadow: 0 0 0 8px var(--soft); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; margin-bottom: 6px; }
.done-mark .ico svg { stroke-width: 2.6; }
.done .big { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 4px 0 0; }
.done .done-sub { margin: 0 0 var(--sp-3); color: var(--sub); }
.done .ticket-card { width: 100%; }
.done .btn.ghost { background: var(--panel); margin-top: var(--sp-2); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.card-note { margin: 0 0 var(--sp-2); padding: 8px 12px; border-radius: var(--r-m); background: var(--soft); font-size: 13px; font-weight: 600; color: var(--soft-ink); }
/* ポイントカード：市松の帯の付いたカード。押した所は肉球、特典の所はプレゼント */
.pointcard { background: var(--panel); border-radius: var(--r-xl); box-shadow: var(--shadow-photo); overflow: hidden; margin-bottom: var(--sp-4); }
.pc-band { height: 12px; background: var(--checker); }
.pointcard header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.pointcard h2 { margin: 0; font-size: var(--fs-l); }
.pointcard .v { font-family: var(--display); color: var(--sub); font-size: var(--fs-l); white-space: nowrap; }
.pointcard .v b { font-size: 34px; color: var(--soft-ink); }
/* 1枚100個（2026-11-21 小野さん「最大１００まで」）：10個ずつ10段 */
.stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 4px 14px 16px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--line2); background: var(--bg); display: grid; place-items: center; color: var(--sub); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: -0.04em; }
.stamp.gift { border-color: var(--k2); color: var(--k2-ink); background: var(--k4); }
.stamp .ico { font-size: 14px; }
.stamp.on { background: var(--accent); border: 0; color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--soft); }
.stamp.on .ico { font-size: 16px; }
.stamp.on.gift { box-shadow: inset 0 0 0 2px var(--k2); }
.pc-body { padding: 0 20px 16px; }
.pc-body .hint { margin: 4px 0 0; }
.gifts, .rewards ul { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: 8px; font-size: 13px; }
.gifts li, .rewards li { display: flex; gap: 8px; align-items: center; }
.gift-ico { font-size: 18px; color: var(--k2-ink); }
.gift-photo { width: 64px; height: auto; aspect-ratio: 4 / 3; flex: none; border-radius: var(--r-tile); object-fit: cover; background: var(--bg); }   /* 特典の写真は4:3（2026-11-21） */
.rewards li.has-photo { display: grid; gap: 8px; }
.rewards li.has-photo .gift-photo { width: 100%; }
.rewards { background: var(--panel); border-radius: var(--r-xl); box-shadow: var(--shadow-photo); padding: 16px 20px; }
.rewards h2 { margin: 0 0 12px; font-size: var(--fs-l); display: flex; align-items: center; gap: 8px; }
.rewards .count { font-size: var(--fs-s); background: var(--k4); color: var(--k4-ink); border-radius: var(--r-pill); padding: 1px 8px; }
.rewards li { font-weight: 600; font-size: var(--fs-m); }
@media (prefers-reduced-motion: reduce) { .done-mark { animation: none; } .customer .option { transition: none; } }

/* ---- 店用 ---- */
.store .attendance { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
/* 未案内は上にカードを横に並べ、案内済みは下に全幅の表（横に2列だと表が狭く、右の列が見切れた） */
.store .board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--sp-3); padding: 0 6px 6px; align-items: start; }
.ticket { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px var(--sp-4); background: var(--panel); display: grid; gap: 6px; }
.ticket.first { border-color: var(--k2); background: linear-gradient(90deg, var(--k4) 0 6px, var(--panel) 6px); }
.ticket.repeat { background: linear-gradient(90deg, var(--k1) 0 6px, var(--panel) 6px); }
.ticket .top { display: flex; align-items: center; gap: var(--sp-2); }
.ticket .top .grow { flex: 1; }
.ticket .oshi { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ticket .reward-line { margin: 0; font-size: 13px; font-weight: 600; color: var(--k2-ink); overflow-wrap: anywhere; }
.ticket .meta { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.ticket .acts { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin-top: 4px; }
.ticket .acts select { width: auto; min-width: 10em; max-width: 100%; }
.ticket .acts .btn:not(.ghost) { padding: 10px 26px; }
.store td.wrap { white-space: normal; min-width: 14em; }
.reward-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.reward-btns .btn { max-width: 18em; overflow: hidden; text-overflow: ellipsis; }
.reward-btns .used { align-self: center; font-size: 13px; color: var(--sub); overflow-wrap: anywhere; }
.style-help { color: var(--k2-ink); font-weight: 650; }
.style-free { color: var(--sub); font-weight: 650; }
.style-nomination { color: var(--soft-ink); font-weight: 650; }

/* 文字の表（名前・推しなど）は折り返す。数字・ボタンの列は折り返さない（パソコンでも右端のボタンが見切れていた） */
table.text td.wrap { white-space: normal; overflow-wrap: anywhere; min-width: 11em; }   /* 名前は11文字までは折らない。長い名前だけ折り返す */

/* ---- 店長用 ---- */
.period { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.period .input { width: auto; flex: 1 1 9.5em; max-width: 12em; }
.kpi .s { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.manager .shell > main { max-width: 1680px; margin-inline: auto; }   /* 広い画面で左に寄らない（2026-11-14 ユーザー「レスポンシブがよくないね」） */
.reward-rows { display: grid; max-width: 820px; margin: var(--sp-2) 0 var(--sp-3); border-top: 1px solid var(--line); }
/* 1行：写真（4:3）・何個目・特典・削除。行の境目に線（スマホでどの写真がどの特典か分かるように） */
.reward-row { display: grid; grid-template-columns: 96px auto minmax(0, 1fr) auto; grid-template-areas: "photo pos text del"; gap: 8px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.reward-row .photo { grid-area: photo; }
.reward-row .pos { grid-area: pos; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.reward-row .pos .input { width: 4.8em; text-align: right; }
.reward-row > .input { grid-area: text; }
.reward-row .del { grid-area: del; }
.reward-row .thumb { display: block; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-tile); overflow: hidden; outline-offset: 2px; }
.reward-row .thumb.empty { cursor: pointer; border: 1.5px dashed var(--line2); background: var(--bg); color: var(--sub); font-size: 12px; font-weight: 600; }
.reward-row .thumb.empty:hover { border-color: var(--accent); color: var(--soft-ink); }
.reward-row .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reward-row .thumb.loading { display: grid; place-items: center; cursor: progress; border: 1.5px dashed var(--accent); background: var(--soft); color: var(--soft-ink); font-size: 12px; font-weight: 600; }
.unsaved { align-self: center; font-size: 13px; font-weight: 600; color: var(--k2-ink); }   /* 保存していない変更（2026-11-21） */
@media (max-width: 600px) { .reward-row { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "photo pos del" "photo text text"; align-items: start; } }
/* 写真のモーダル（2026-11-21 ユーザー「新規タブじゃなくてモーダルで」「モーダルにも変更」） */
.photo-modal { border: 0; padding: 14px; border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--shadow-photo); width: min(92vw, 760px); }
.photo-modal::backdrop { background: color-mix(in srgb, var(--ink) 60%, transparent); }
.photo-modal .ttl { margin: 0 0 10px; font-weight: 700; overflow-wrap: anywhere; }
.photo-modal img { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 70vh; object-fit: contain; border-radius: var(--r-tile); background: var(--bg); }
.photo-modal .acts { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.photo-modal .grow { flex: 1; }
.invite { margin-top: var(--sp-3); display: grid; gap: 6px; }

/* ---- 狭い幅（600px 以下）：表を1件ずつのカードにする。各マスの左に列の名前（data-label） ---- */
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 3px 0; display: flex; justify-content: flex-end; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label); color: var(--sub); font-size: var(--fs-s); flex: none; text-align: left; margin-right: auto; }
  table.stack td:first-child { font-weight: 650; text-align: left; justify-content: flex-start; }
  table.stack td:first-child::before { display: none; }
  table.stack td:not([data-label])::before, table.stack td[data-label='']::before { display: none; }
  table.stack td.acts { justify-content: flex-end; padding-top: 8px; }
  table.stack td .sub { display: inline; margin-left: 6px; }
}
/* 店長用：狭い幅では左メニューの「名前・ログアウト」を隠す（ログアウトは設定の一番下にもある）。メニューを1列に収める */
@media (max-width: 860px) { .manager .side .me { display: none; } }

/* 店長：名寄せ（シフト表で見つからない名前の横で人を選ぶ。2026-11-14） */
.matches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.matches .err-text { margin: 0; }
.match > b { min-width: 6em; overflow-wrap: anywhere; }
.match > select.input { flex: 1 1 10em; width: auto; min-width: 0; max-width: 100%; }
td .sub.alias { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ================= 幾何学：市松とタイル（2026-11-14 ユーザー「B の方向で、受付QR 全体を作り直して」） =================
   角は小さく（--r-tile）、塊の目印は小さな四角（ミントとピンクを交互）、帯は市松。ホームページ・お客さんの森の市松と一続きにする。
   参考：上に横並びのタブ（Mobbin：Snowflake）、右上の目印つきの数字のタイル（Mobbin：hilos） */
.btn, .input, select.input, .seg, .toggle, .option, .empty, .count, .login-card, .card-note { border-radius: var(--r-tile); }
.seg button { border-radius: 4px; }
#toast { border-radius: var(--r-tile); }

/* カード：角の小さな白いタイル。見出しの頭に小さな四角 */
.card { border-radius: var(--r-tile); border-color: var(--line2); padding: 0; }
.card > header { padding: 14px 16px 12px; }
.card > header h2 { display: flex; align-items: center; gap: 10px; }
.card > header h2::before { content: ''; width: 10px; height: 10px; background: var(--brand); flex: none; }
.card:nth-child(even) > header h2::before { background: var(--brand-pink); }
.card > .body { padding: 4px 16px 16px; }
.card > .flush { border-radius: 0; border-width: 1px 0 0; border-color: var(--line2); }
.card > .flush:last-child { border-bottom-left-radius: var(--r-tile); border-bottom-right-radius: var(--r-tile); }

/* 数字のタイル：白い地、右上に小さな四角（ミント・ピンク・明るいミント・明るいピンクの順） */
.kpis .kpi:nth-child(n) { position: relative; background: var(--panel); color: var(--ink); border: 1px solid var(--line2); border-radius: var(--r-tile); overflow: hidden; }
.kpi::after { content: ''; position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: var(--brand); }
.kpis .kpi:nth-child(4n+2)::after { background: var(--brand-pink); }
.kpis .kpi:nth-child(4n+3)::after { background: var(--brand-light); }
.kpis .kpi:nth-child(4n+4)::after { background: var(--k2); }
.kpi .l { align-self: flex-start; text-align: left; color: var(--sub); padding-right: 22px; }
.kpi .v { font-family: var(--display); }
.kpi .s { color: var(--sub); opacity: 1; }
.kpi .meter { border-radius: 0; background: var(--raise); }
.kpi .meter i { border-radius: 0; background: var(--brand); opacity: 1; }

/* 店長：パソコンは左のサイドバー（2026-11-14 ユーザー「PCはサイドバーいるよ」）。白い地、選んでいる所はミントの地と左の線。名前とログアウトは下に */
@media (min-width: 861px) {
  .manager .side { background: var(--panel); border-right-color: var(--line2); }
  .manager .nav button { border-radius: var(--r-tile); }
  .manager .nav button .ico { font-size: 18px; }
  .manager .nav button.on { background: var(--soft); color: var(--soft-ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
  .manager .side .me { margin-top: auto; }
}
/* 店長：スマホ・タブレットは上に横並びのタブ。選んでいるタブはミントの下線。上の縁に市松 */
@media (max-width: 860px) {
  .manager .side { align-items: flex-end; gap: 12px; padding: 10px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); background: var(--panel); border-bottom-color: var(--line2); overflow-y: hidden; }
  .manager .side::before { display: block; position: absolute; top: 0; left: 0; right: 0; height: 6px; margin: 0; }
  .manager .brand { padding-bottom: 8px; }
  .manager .brand .wordmark { height: 30px; }
  .manager .nav { gap: 2px; }
  .manager .nav button { border-radius: 0; padding: 8px 10px 10px; font-size: 13px; background: none; border-bottom: 3px solid transparent; }
  .manager .nav button .ico { display: none; }
  .manager .nav button:hover { background: none; color: var(--ink); }
  .manager .nav button.on { background: none; color: var(--ink); font-weight: 700; border-bottom-color: var(--brand); }
}

/* 中央に主な一覧、右の細い列に今日の出勤（Mobbin：incident.io）。1399px 以下は縦に並べる（1280px だと受付の表が中央の列に収まらない） */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.split > * > .card:last-child { margin-bottom: 0; }
@media (max-width: 1399px) { .split { grid-template-columns: minmax(0, 1fr); } }
.people { list-style: none; margin: 0; padding: 0 16px 16px; display: grid; gap: 6px; }
.people li { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px 12px 10px 18px; border: 1px solid var(--line2); border-radius: var(--r-tile); }
.people li::before { content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 6px; background: var(--brand); }
.people li:nth-child(even)::before { background: var(--brand-pink); }
.people b { overflow-wrap: anywhere; min-width: 0; }
.people small { flex: none; color: var(--sub); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }

/* 設定：見出しの下に横並びのタブ、下に選んだ項目だけ（2026-11-14 ユーザー「上タブの方がいいのでは？」。左のサイドバーと縦の一覧が2列に重なっていた） */
.settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.subnav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line2); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav button { display: flex; align-items: center; gap: 8px; flex: none; border: 0; border-bottom: 3px solid transparent; background: none; margin-bottom: -1px; padding: 10px 14px 11px; color: var(--sub); cursor: pointer; font-size: var(--fs-m); white-space: nowrap; }
.subnav button:hover { color: var(--ink); }
.subnav button.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--brand); }
.subnav .dot { width: 8px; height: 8px; flex: none; background: var(--bad); }
.pane { min-width: 0; }
.pane > .card { margin-bottom: 0; }
@media (max-width: 860px) { .subnav button { padding: 9px 10px 10px; font-size: 13px; } }

/* 店用：右の列に今日の出勤。中身の幅を広げる */
.store .page { max-width: 1680px; }
.store .split .attendance .toggle { max-width: 100%; }

/* 店長：キャストはタイルを並べる（1行ずつの表をやめる）。左上に小さな四角 */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; padding: 0 16px 16px; }
.tile { position: relative; display: grid; gap: 8px; align-content: space-between; min-width: 0; padding: 14px 12px 12px; border: 1px solid var(--line2); border-radius: var(--r-tile); background: var(--panel); }
.tile::before { content: ''; position: absolute; top: 0; left: 0; width: 8px; height: 8px; background: var(--brand); }
.tile:nth-child(even)::before { background: var(--brand-pink); }
.tile > b { font-size: var(--fs-l); overflow-wrap: anywhere; }
.tile .alias { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-s); color: var(--sub); }
.tile > .btn { justify-self: start; }
.tile.off { border-style: dashed; background: var(--raise); }
.tile.off > b { color: var(--sub); }

/* 店用：受付のカードもタイルに。はじめての人はピンク、リピートはミントの四角 */
.ticket { position: relative; border-radius: var(--r-tile); border-color: var(--line2); }
.ticket.first, .ticket.repeat { background: var(--panel); }
.ticket.first, .ticket.repeat { padding-left: calc(var(--sp-4) + 4px); }
.ticket.first::before, .ticket.repeat::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--brand-pink); }
.ticket.repeat::before { background: var(--brand); }

/* お客さん：丸をやめて角の小さな四角に */
.choice-ico, .stamp, .done-mark { border-radius: var(--r-tile); }
.option.choice, .option.cast-card, .ticket-card, .pointcard, .rewards { border-radius: var(--r-tile); }
.cast-card .badge { border-radius: 2px; }
.steps-bar span { border-radius: 0; }
.ticket-rows::before, .ticket-rows::after { border-radius: 2px; transform: rotate(45deg); width: 14px; height: 14px; top: -8px; }
.ticket-rows::before { left: -7px; } .ticket-rows::after { right: -7px; }
.done-mark { transform: rotate(45deg); }
.done-mark .ico { transform: rotate(-45deg); }
.rewards .count { border-radius: 2px; }
.welcome-hero img { border-radius: var(--r-tile); }
.welcome-sheet { border-radius: 12px 12px 0 0; }
@media (min-width: 600px) { .welcome-sheet { border-radius: 12px; } }
.pointcard .pc-band { background: var(--checker); }
.rewards { position: relative; overflow: hidden; }
.rewards::before { content: ''; display: block; height: 8px; margin: -16px -20px 14px; background: var(--checker-pink); }
/* ページ見出しの上の小さな文字の頭に、2×2 の市松（ミントとピンク） */
.head .eyebrow { display: flex; align-items: center; gap: 8px; }
.head .eyebrow::before { content: ''; width: 12px; height: 12px; flex: none; background: conic-gradient(var(--brand) 0 25%, var(--brand-pink) 0 50%, var(--brand) 0 75%, var(--brand-pink) 0); }
.store .appbar, .customer .appbar { background: var(--panel); border-bottom-color: var(--line2); }

/* 大きなモニター（2026-11-14 ユーザー「レスポンシブもっと高インチの物にも対応して」）：画面全体を大きく表示する。
   1920px 以上は 1.15 倍、2400px 以上は 1.3 倍、3200px 以上（4K）は 1.6 倍。拡大した分、左のサイドバーの高さは画面の高さに戻す */
@media (min-width: 1920px) { body { --z: 1.15; zoom: var(--z); } }
@media (min-width: 2400px) { body { --z: 1.3; } }
@media (min-width: 3200px) { body { --z: 1.6; } }
@media (min-width: 861px) { .manager .side { height: calc(100vh / var(--z, 1)); } }
/* 拡大した大きい画面でも、ログインなどの真ん中のカードを画面の真ん中に（100vh は拡大の分だけ大きく効くので割り戻す。2026-11-16 ユーザー「ログインの画面真ん中じゃなくね？」） */
.center-screen { min-height: calc(100vh / var(--z, 1) - 150px); }

/* 押したときの手応えと、通信中の印（2026-11-14 ユーザー「押してもボタンクリックしても反応悪い時ある」） */
.btn, .option, .toggle, .subnav button, .nav button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active:not(:disabled), .toggle:active, .subnav button:active, .nav button:active { transform: translateY(1px); }
.btn[aria-busy='true'] { opacity: 1; cursor: progress; background-image: repeating-linear-gradient(45deg, transparent 0 8px, var(--line) 8px 16px); background-size: 23px 23px; animation: busy-stripes .6s linear infinite; }
@keyframes busy-stripes { to { background-position: 23px 0; } }
html.loading { cursor: progress; }
html.loading body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100; background: var(--checker-pink); animation: busy-band .5s linear infinite; }
@keyframes busy-band { to { background-position: 12px 0; } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy='true'], html.loading body::before { animation: none; } }
/* 席：QR の URL はコピーできる欄に（2026-11-14） */
.qr-link { display: flex; gap: 8px; align-items: center; min-width: 0; }
.qr-link .input { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: var(--fs-s); color: var(--sub); }
.card > .body + .flush { margin-top: 4px; }

/* 管理者のログイン：Google のボタンを真ん中に（2026-11-16 Google に変更） */
.login-card .gbtn { display: flex; justify-content: center; min-height: 44px; }
.login-card .err-text:empty { display: none; }

/* 席：お店の QR の画像（2026-11-16 ユーザー「お客さん用のQRコードも欲しい」）。左に画像、右に URL と保存。狭い幅では縦に */
.qr-store { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.qr-img { width: 144px; height: 144px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--panel); }
.qr-store .stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 560px) { .qr-store { grid-template-columns: minmax(0, 1fr); justify-items: start; } .qr-link { flex-wrap: wrap; } }

/* 公式 LINE の友だち追加（友だちでない人だけ。2026-11-21）。特典のカードと同じ白い札 */
.friend { background: var(--panel); border-radius: var(--r-tile); box-shadow: var(--shadow-photo); padding: 16px 20px; display: grid; gap: 10px; }
.friend p { margin: 0; font-weight: 700; text-align: center; }

/* 店舗マニュアル（/manual。2026-12-05 ユーザー「店舗マニュアルみたいな」「パソコンでも見れるようなページ」）。CSP のため app.css に置く */
.manual { display: grid; gap: var(--sp-4); padding-bottom: var(--sp-6); }
.manual-hero { text-align: center; padding: var(--sp-4) 0 var(--sp-2); }
.manual-hero h1 { font-family: var(--display); font-size: 30px; margin: 0 0 6px; }
.manual-hero p { margin: 0; color: var(--sub); }
.manual .m-sec { background: var(--panel); border-radius: var(--r-tile); box-shadow: var(--shadow-photo); overflow: hidden; }
.manual .m-sec::before { content: ''; display: block; height: 8px; background: var(--checker); }
.manual .m-sec.pink::before { background: var(--checker-pink); }
.manual .m-sec > .in { padding: 18px 20px 20px; }
.manual .m-sec h2 { font-family: var(--display); font-size: 21px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.manual .m-sec h2 .no { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-tile); background: var(--accent); color: var(--accent-ink); font-size: 16px; }
.manual .m-sec.pink h2 .no { background: var(--brand-pink); }
.manual .m-sec .lead { margin: 0 0 14px; color: var(--sub); font-size: var(--fs-s); }
.manual .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
.manual .steps > li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; line-height: 1.7; }
.manual .steps > li::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--soft-ink); font-weight: 700; font-size: 14px; margin-top: 1px; }
.manual .steps small { display: block; color: var(--sub); font-size: var(--fs-s); line-height: 1.6; }
.manual .ui { display: inline-block; padding: 1px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; line-height: 1.7; white-space: nowrap; }
.manual .ui.ghost { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.manual .ui.danger { background: var(--panel); color: var(--bad); box-shadow: inset 0 0 0 1px var(--line2); }
.manual .url { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--bg); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.manual .flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.manual .flow li { background: var(--k3); color: var(--k3-ink); border-radius: var(--r-tile); padding: 10px 6px; text-align: center; font-weight: 700; font-size: 13px; line-height: 1.45; display: grid; align-content: center; }
.manual .flow li.shop { background: var(--k4); color: var(--k4-ink); }
.manual .flow li.goal { background: var(--accent); color: var(--accent-ink); }
.manual .flow small { display: block; font-weight: 600; font-size: 11px; opacity: .85; margin-top: 2px; }
.manual .legend { margin: 10px 0 0; font-size: var(--fs-s); color: var(--sub); display: flex; gap: 14px; flex-wrap: wrap; }
.manual .legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--k3); }
.manual .legend span.shop::before { background: var(--k4); }
.manual .rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.manual .rules li { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; line-height: 1.6; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.manual .rules li:last-child { border-bottom: 0; padding-bottom: 0; }
.manual .rules b { color: var(--soft-ink); }
.manual .qa { margin: 0; display: grid; gap: 12px; }
.manual .qa dt { font-weight: 700; }
.manual .qa dt::before { content: 'Q. '; color: var(--brand-pink); }
.manual .qa dd { margin: 2px 0 0; color: var(--ink); line-height: 1.7; }
.manual .note { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-tile); background: var(--k4); color: var(--k4-ink); font-size: var(--fs-s); font-weight: 600; line-height: 1.6; }
@media (max-width: 560px) {
  .manual .flow { grid-template-columns: 1fr; }
  .manual .flow li { text-align: left; padding: 9px 12px; display: block; }
  .manual .flow small { display: inline; margin: 0 0 0 6px; }
  .manual .rules li { grid-template-columns: 1fr; gap: 2px; }
}
.manual-hero a, .manual-foot a { color: var(--soft-ink); }
.manual-foot { text-align: center; margin: 0; font-size: var(--fs-s); }
.appbar .manual-link { font-size: var(--fs-s); white-space: nowrap; }
/* スタッフ向けマニュアルの写真（2026-12-05 ユーザー「画面のスクショとかも入れないとわかりにくくね？」） */
.manual .say { margin: 2px 0 12px; font-size: 17px; font-weight: 700; line-height: 1.7; }
.manual .tip { margin: 10px 0 0; color: var(--sub); font-size: var(--fs-s); line-height: 1.6; }
.manual .shot { margin: 0; }
.manual .shot img { display: block; width: 100%; height: auto; border-radius: var(--r-tile); border: 1px solid var(--line2); }
.manual .shot.small { max-width: 360px; margin: 0 auto 14px; }
.manual .phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.manual .shot.phone img { border-radius: 16px; box-shadow: var(--shadow-photo); }
.manual .shot figcaption { text-align: center; font-weight: 700; font-size: var(--fs-s); color: var(--soft-ink); margin-top: 6px; }
.manual .steps + .shot, .manual .shot + .shot { margin-top: 14px; }
