/* おおすみ弁当 かんたん予約 — 客用画面（ARCHITECTURE.md §6、spec §6-0・§10-3）
   本文 18px、価格・日時 20px 以上、ボタン 48px 以上（主ボタン 56px 全幅）。単位は rem。
   「文字を大きく」は html.fs-large（125%）。端末の文字サイズを大きくしたときも、rem の最小幅でグリッドが自然に2列・1列になる。 */

/* ------------------------------------------------------------------ 色のトークン */
:root {
  --primary: #C2410C;
  --primary-dark: #9A3412;
  --primary-ink: #FFFFFF;
  --primary-text: #C2410C;      /* 白地の上の主色の文字（5.2:1） */
  --primary-soft: #FFEDD5;
  --text: #1A1A1A;
  --muted: #57534E;
  --bg: #FFFFFF;
  --bg-sub: #FFF7ED;
  --card: #FFFFFF;
  --line: #E7E5E4;
  --line-strong: #78716C;
  --gray-bg: #F5F5F4;
  --gray-text: #44403C;
  --ok: #15803D;
  --ok-bg: #DCFCE7;
  --ok-ink: #14532D;
  --warn: #A16207;
  --warn-bg: #FEF9C3;
  --warn-border: #CA8A04;
  --warn-ink: #713F12;
  --err: #B91C1C;
  --err-bg: #FEE2E2;
  --phone: #15803D;
  --disabled-bg: #A8A29E;
  --sk: #E7E5E4;
  --focus: #1D4ED8;
  --toast-bg: #1A1A1A;
  --shadow: 0 1px 3px rgba(28, 25, 23, .08), 0 4px 14px rgba(28, 25, 23, .05);
  --radius: 14px;
  --head-h: 3.5rem;
  --kb-offset: 0px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #C2410C;
    --primary-dark: #EA580C;
    --primary-ink: #FFFFFF;
    --primary-text: #FDBA74;
    --primary-soft: #431407;
    --text: #F5F5F4;
    --muted: #D6D3D1;
    --bg: #1C1917;
    --bg-sub: #2A211C;
    --card: #24201D;
    --line: #44403C;
    --line-strong: #A8A29E;
    --gray-bg: #292524;
    --gray-text: #E7E5E4;
    --ok: #4ADE80;
    --ok-bg: #14532D;
    --ok-ink: #DCFCE7;
    --warn: #FDE047;
    --warn-bg: #3F2E06;
    --warn-border: #CA8A04;
    --warn-ink: #FEF9C3;
    --err: #FCA5A5;
    --err-bg: #450A0A;
    --phone: #15803D;
    --disabled-bg: #57534E;
    --sk: #3A3532;
    --focus: #93C5FD;
    --toast-bg: #000000;
    --shadow: 0 1px 3px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

/* 斎場弁当を含む注文・商品：落ち着いた灰紺 */
.theme-saijo, .is-saijo {
  --primary: #334155;
  --primary-dark: #1E293B;
  --primary-text: #334155;
  --primary-soft: #E2E8F0;
  --bg-sub: #F1F5F9;
}
@media (prefers-color-scheme: dark) {
  .theme-saijo, .is-saijo {
    --primary: #475569;
    --primary-dark: #64748B;
    --primary-text: #CBD5E1;
    --primary-soft: #1E293B;
    --bg-sub: #1E2530;
  }
}

/* ------------------------------------------------------------------ 基本 */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.fs-large { font-size: 125%; }
/* iPhone：設定アプリの「文字サイズ」を反映する（端末の文字を大きくしている方にも合わせる） */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html:not(.fs-large) { font: -apple-system-body; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-tap-highlight-color: rgba(194, 65, 12, .15);
}
html.sheet-open, html.sheet-open body { overflow: hidden; }
img { max-width: 100%; }
p { margin: .5rem 0; }
h1, h2, h3 { line-height: 1.35; }
a { color: var(--primary-text); font-weight: 700; }
button { font-family: inherit; }
table { border-collapse: collapse; }
small { font-size: .875rem; }
b { font-weight: 800; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.page-h1:focus, .date-head-text:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
/* 電話番号：ひとかたまりで次の行へ送る。それでも入らないときはハイフンの後ろ（<wbr>）で折る */
.tel-num { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: normal; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: 1rem; }
.warn-text { color: var(--err); font-weight: 700; display: flex; gap: .375rem; align-items: flex-start; }
.icon { flex: none; vertical-align: middle; }

/* ------------------------------------------------------------------ 骨組み */
.app { max-width: 40rem; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); }
main { display: block; padding-bottom: 2.5rem; }
.has-bottombar main { padding-bottom: calc(11.5rem + env(safe-area-inset-bottom)); }
.pad { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.stack > * + * { margin-top: 1rem; }

.screen-title { margin: 1rem 0 .75rem; }
.screen-title h1 { font-size: 1.375rem; margin: 0; }
.screen-sub { color: var(--muted); margin-top: .25rem; }
.sub-h { font-size: 1.125rem; margin: 1.25rem 0 .5rem; }
.sec-h { font-size: 1.25rem; margin: 1.5rem 0 .25rem; padding-left: .625rem; border-left: 5px solid var(--primary); }
.list-desc { color: var(--muted); margin: .25rem 0 .75rem; font-size: 1rem; }
.card-h { font-size: 1.125rem; margin: 0 0 .5rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------ ヘッダー（56px） */
.app-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: minmax(3rem, auto) minmax(0, 1fr) minmax(3rem, auto); align-items: center;
  container-type: inline-size; container-name: hdr;
  min-height: var(--head-h);
  padding: 0 max(.25rem, env(safe-area-inset-right)) 0 max(.25rem, env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top);
  background: var(--card); border-bottom: 1px solid var(--line);
}
.hdr-side { display: flex; min-width: 0; }
.hdr-right { justify-content: flex-end; }
.hdr-spacer { display: block; width: 3rem; height: 3rem; }
.hdr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .125rem;
  min-width: 3rem; min-height: 3rem; padding: 0 .5rem;
  background: none; border: none; border-radius: 10px;
  color: var(--primary-text); font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.hdr-btn:active { background: var(--bg-sub); }
/* 文字を大きくして幅が足りないとき（ルート文字の17文字分より狭い）は、［戻る］［電話］を絵だけにする（名前は aria-label） */
@container hdr (max-width: 17rem) {
  .hdr-btn-text { display: none; }
  .hdr-btn { padding: 0 .25rem; }
}
.hdr-title {
  display: flex; align-items: center; justify-content: center; gap: .375rem; min-width: 0;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem; text-align: center; line-height: 1.3;
  min-height: 3rem;
}
.hdr-logo {
  display: inline-grid; place-items: center; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-size: .95rem; font-weight: 800;
}

/* ------------------------------------------------------------------ 手順バー（32px） */
.stepbar {
  display: flex; align-items: center; gap: .75rem;
  min-height: 2rem; padding: .25rem 1rem;
  background: var(--bg-sub); color: var(--primary-text); font-size: 1rem; font-weight: 800;
  border-bottom: 1px solid var(--line);
}
.step-name { flex: 1; color: var(--text); }
.step-dots { display: flex; gap: .25rem; }
.step-dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); opacity: .45; }
.step-dots i.done { background: var(--primary); opacity: .6; }
.step-dots i.now { background: var(--primary); opacity: 1; width: 1.25rem; border-radius: 4px; }

/* ------------------------------------------------------------------ ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .5rem 1.125rem;
  border: 2px solid transparent; border-radius: 12px;
  font-size: 1.125rem; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none;
  cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  max-width: 100%; min-width: 0;
}
.btn > span { min-width: 0; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: var(--primary-ink); min-height: 3.5rem; font-size: 1.1875rem; }
.btn-primary:active { background: var(--primary-dark); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--disabled-bg); color: #FFFFFF; cursor: not-allowed; }
.btn-secondary { background: var(--card); color: var(--primary-text); border-color: currentColor; }
.btn-secondary:active { background: var(--bg-sub); }
.btn-secondary:disabled { color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.btn-phone { background: var(--phone); color: #FFFFFF; min-height: 3.5rem; }
.btn-phone:active { filter: brightness(.9); }
.btn-danger { background: var(--err); color: #FFFFFF; min-height: 3.5rem; }
@media (prefers-color-scheme: dark) { .btn-danger { background: #B91C1C; } }
.btn-sm { font-size: 1rem; padding: .375rem .875rem; }
.btn-xl { min-height: 4rem; font-size: 1.25rem; }
.btn-2line { flex-direction: column; gap: 0; }
.btn-2line small { font-weight: 600; font-size: .9rem; }
.btn-next { margin-top: 1.25rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.btn-row > * { flex: 1 1 9rem; }
.btn-stack { display: flex; flex-direction: column; gap: .625rem; margin-top: .75rem; }
.link-btn {
  background: none; border: none; padding: .25rem .25rem; min-height: 3rem;
  color: var(--primary-text); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.phone-foot { margin-top: 1.5rem; }
.phone-foot .btn, .phone-help .btn { width: 100%; }
.phone-help { margin-top: .75rem; }

/* ------------------------------------------------------------------ 下部固定バー */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: var(--kb-offset, 0px); z-index: 40;
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  padding: .5rem max(1rem, env(safe-area-inset-right)) calc(.375rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.bb-inner { max-width: 38rem; margin: 0 auto; }
.bb-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .125rem .375rem; border-radius: 10px; transition: background-color .3s; }
.bb-sum { flex: 1 1 auto; font-size: 1.125rem; }
.bb-sum .price { font-size: 1.25rem; }
.bb-view { min-height: 2.75rem; }
.bb-note { margin: .25rem 0 0; font-size: .875rem; color: var(--muted); text-align: center; }
.bottombar .btn-primary { margin-top: .25rem; }
.bottombar.bump .bb-row { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.kb-open .fixed-bottom { display: none; }

/* ------------------------------------------------------------------ お知らせ（トースト） */
.toast-wrap {
  position: fixed; left: 0; right: 0; z-index: 90;
  bottom: calc(var(--kb-offset, 0px) + 1rem + env(safe-area-inset-bottom));
  padding: 0 1rem; pointer-events: none;
}
/* 下部固定バー（注文かごの合計）があるときは、その上に出す。--bb-h は BottomBar が実際の高さを入れる
   （安全域の分も含む）。測れないときは大きめの既定値 */
.app.has-bottombar ~ .toast-wrap { bottom: calc(var(--bb-h, 12.5rem + env(safe-area-inset-bottom)) + .5rem); }
.kb-open .app.has-bottombar ~ .toast-wrap { bottom: calc(var(--kb-offset, 0px) + 1rem); }
.toast {
  position: relative; max-width: 36rem; margin: 0 auto; pointer-events: auto;
  background: var(--toast-bg); color: #FFFFFF; border: 1px solid #57534E; border-radius: 12px;
  padding: .875rem 3.25rem .875rem 1rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  animation: toast-in .2s ease-out;
}
.toast-text { margin: 0; font-size: 1.125rem; font-weight: 700; }
.toast-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.toast-btn {
  min-height: 3rem; padding: .25rem 1rem; border-radius: 10px;
  background: transparent; color: #FFFFFF; border: 2px solid #FFFFFF; font-size: 1.0625rem; font-weight: 800; cursor: pointer;
}
.toast-close {
  position: absolute; top: .25rem; right: .25rem; width: 3rem; height: 3rem;
  display: grid; place-items: center; background: none; border: none; color: #FFFFFF; cursor: pointer; border-radius: 10px;
}
.toast :focus-visible { outline-color: #93C5FD; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------ シート */
.sheet-layer { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); animation: fade-in .2s ease-out; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 40rem;
  max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--card); border-radius: 18px 18px 0 0;
  padding: 0 1rem calc(1.25rem + env(safe-area-inset-bottom));
  animation: sheet-up .22s ease-out;
}
.sheet:focus { outline: none; }
.sheet-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end;
  background: var(--card); padding: .375rem 0; margin: 0 -1rem; padding-right: .5rem; padding-left: .5rem;
}
.sheet-grip { position: absolute; left: 50%; top: .5rem; width: 2.75rem; height: .3125rem; margin-left: -1.375rem; border-radius: 3px; background: var(--line); }
.sheet-close {
  display: inline-flex; align-items: center; gap: .25rem; min-height: 3rem; padding: 0 .875rem;
  background: var(--gray-bg); color: var(--text); border: none; border-radius: 999px; font-size: 1rem; font-weight: 800; cursor: pointer;
}
.sheet-title { font-size: 1.375rem; margin: .25rem 0 .25rem; }
.sheet-body { padding-bottom: .5rem; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ 写真 */
.photo { position: relative; overflow: hidden; background: var(--sk); border-radius: 10px; flex: none; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-none {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .125rem;
  background: var(--gray-bg); color: var(--muted); font-size: .8125rem; font-weight: 700; text-align: center;
  border: 1px dashed var(--line-strong);
}
.card-photo { width: 96px; height: 96px; }
.top-photo { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 12px; }
.item-photo { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 14px; }
.sk-block { background: var(--sk); border-radius: 10px; }

/* ------------------------------------------------------------------ 帯・カード・注意 */
.band { padding: .875rem max(1rem, env(safe-area-inset-left)); font-size: 1.25rem; font-weight: 800; line-height: 1.5; }
.band p { margin: 0; }
/* アイコンと本文の2つだけを横に並べる（本文は1つの文として折り返す。時刻の途中では折らない） */
.band-main { display: flex; gap: .5rem; align-items: flex-start; }
.band-main > .icon { margin-top: .25rem; }
.band-text { flex: 1 1 auto; min-width: 0; }
.band-ok { background: var(--ok-bg); color: var(--ok-ink); border-bottom: 3px solid var(--ok); }
.band-time { font-size: 1.5rem; }
.band-time .nowrap { white-space: nowrap; }
.band-gray { background: var(--gray-bg); color: var(--gray-text); border-bottom: 3px solid var(--line-strong); }
.band-warn { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 3px solid var(--warn-border); }
.band-warn .btn { margin-top: .75rem; width: 100%; font-size: 1.125rem; }
.band-loading { background: var(--gray-bg); }
.band-loading .sk-line { height: 1.5rem; margin: 0; }
.band-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.band-actions .btn { flex: 1 1 8rem; font-size: 1rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); margin-top: 1rem; }
.stack > .card { margin-top: 1rem; }

.notice {
  display: flex; gap: .625rem; align-items: flex-start;
  margin: 1rem 0; padding: .875rem 1rem; border-radius: 12px; border: 2px solid;
}
.notice-icon { margin-top: .2rem; }
.notice-body { flex: 1; min-width: 0; }
.notice-body > p:first-child { margin-top: 0; }
.notice-body > p:last-child { margin-bottom: 0; }
.notice-body .btn { margin-top: .5rem; }
.notice-title { font-weight: 800; font-size: 1.125rem; margin: 0 0 .25rem; }
.notice-info { background: var(--bg-sub); border-color: var(--primary-soft); }
.notice-info .notice-icon { color: var(--primary-text); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.notice-warn .notice-icon { color: var(--warn); }
.notice-error { background: var(--err-bg); border-color: var(--err); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok); }
.notice-ok .notice-icon { color: var(--ok); }
.notice .btn-phone, .notice .btn-secondary { margin-top: .5rem; }

.badge { display: inline-block; padding: .125rem .625rem; border-radius: 999px; font-size: .875rem; font-weight: 800; }
.badge-rank { background: var(--primary-soft); color: var(--primary-text); margin-bottom: .125rem; }
.badge-top { background: var(--primary); color: var(--primary-ink); font-size: 1rem; margin-top: .75rem; }

.empty { text-align: center; padding: 1.5rem 0; }
.empty-title { font-size: 1.25rem; font-weight: 800; }
.empty .btn { margin-top: .75rem; }

.loading { display: flex; align-items: center; gap: .75rem; padding: 1.5rem 0; color: var(--muted); }
.spinner {
  width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--primary); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { padding: .25rem 0; }
.sk-line { height: 1.125rem; background: var(--sk); border-radius: 6px; margin: .625rem 0; }
.sk-line.short { width: 55%; }
.sk-inline { display: inline-block; min-width: 5rem; height: 1.1rem; background: var(--sk); border-radius: 6px; vertical-align: middle; }
.boot-text { color: var(--muted); }

/* ------------------------------------------------------------------ ホーム */
.screen-home .band { margin: 0; }
.cart-left { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; background: var(--bg-sub); }
.cart-left p { margin: 0; font-weight: 800; display: flex; gap: .375rem; align-items: center; }
.repeat-card { border: 2px solid var(--primary); }
.repeat-card .card-h { color: var(--primary-text); }
.repeat-lines { list-style: none; padding: 0; margin: .25rem 0; }
.repeat-lines li { padding: .125rem 0; font-weight: 700; }
.repeat-total { font-size: 1.375rem; font-weight: 800; margin: .25rem 0; }
.repeat-when { display: flex; gap: .375rem; align-items: flex-start; font-size: 1.25rem; font-weight: 800; color: var(--text); }
.repeat-when .icon { margin-top: .3rem; color: var(--primary-text); }
/* 受け取りの提案：「受け取り：明日 10/8(木) 12:15」を大きく、（いつもの時間・本日は満枠のため）は小さく。語ごとに折り返して崩れないように */
.repeat-when-body { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .25rem; min-width: 0; }
.repeat-when-main { min-width: 0; }
.repeat-when-tag { min-width: 0; font-size: 1rem; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.repeat-card .btn-primary { margin-top: .5rem; }
.repeat-card .link-btn { display: block; margin: .25rem auto 0; }
.repeat-blocked .btn { margin-top: .5rem; }
.ask { margin-top: .75rem; padding: .75rem; background: var(--bg-sub); border-radius: 10px; font-weight: 800; }
.top-card { position: relative; padding: .75rem; }
.top-photo-btn { display: block; width: 100%; padding: 0; border: none; background: none; cursor: pointer; }
.top-card .badge-top { position: absolute; top: 1.25rem; left: 1.25rem; margin: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .5rem; flex-wrap: wrap; }
.top-name { font-size: 1.375rem; margin: 0; }
.price-lg { font-size: 1.5rem; font-weight: 800; margin: 0; }
.btn-choose-lg { min-width: 7rem; }
.home-main-btns { display: flex; flex-direction: column; gap: .75rem; }
.howto-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .375rem; }
.howto-list li { display: flex; gap: .5rem; align-items: baseline; font-weight: 700; }
.howto-list .num { color: var(--primary-text); font-size: 1.25rem; }
.pending { border: 2px solid var(--ok); }
.pend-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .25rem 0; }
.pend-row p { margin: 0; font-size: 1.25rem; }
.shop-hours { font-size: 1rem; color: var(--muted); }
.shop-card .btn { margin-top: .5rem; }
.home-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.allergy { display: flex; gap: .375rem; align-items: flex-start; font-weight: 700; }
.foot-links { display: flex; flex-direction: column; gap: .25rem; margin: 1rem 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 3rem; }

/* ------------------------------------------------------------------ メニュー */
.search { position: relative; margin: .5rem 0 0; }
.search input {
  width: 100%; min-height: 3.5rem; padding: .5rem 4rem .5rem 2.75rem;
  font-size: 1.125rem; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--text);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-clear {
  position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); min-height: 3rem; min-width: 3rem;
  background: none; border: none; color: var(--primary-text); font-weight: 800; font-size: 1rem; cursor: pointer;
}
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .5rem; }
.cat-btn {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 .125rem;
  min-height: 3.5rem; padding: .375rem .5rem; border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--text); font-size: 1.0625rem; font-weight: 800; cursor: pointer; text-align: center;
}
.cat-btn small { color: var(--muted); font-weight: 700; }
.cat-btn.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.cat-btn.is-on small { color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 3rem; padding: .25rem 1rem; border: 2px solid var(--line-strong); border-radius: 999px;
  background: var(--card); color: var(--text); font-size: 1.0625rem; font-weight: 800; cursor: pointer;
}
.chip.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chips-lg .chip { min-height: 3.25rem; font-size: 1.125rem; }
.now-band {
  position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top)); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap;
  padding: .375rem 1rem; margin-top: .75rem; background: var(--bg-sub); border-bottom: 2px solid var(--primary-soft);
}
.now-label { font-size: 1rem; }
.filter-row { margin-top: .25rem; }
.result-count { color: var(--muted); font-weight: 700; margin-top: 1rem; }
.menu-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }

.card-list { display: flex; flex-direction: column; gap: .625rem; container-type: inline-size; }
.item-card {
  display: grid; grid-template-columns: 96px 1fr; gap: .75rem; align-items: start;
  padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  box-shadow: var(--shadow); cursor: pointer;
}
.item-card:active { background: var(--bg-sub); }
.card-body { min-width: 0; display: flex; flex-direction: column; }
.card-name { font-size: 1.125rem; margin: 0; font-weight: 800; }
.card-formal { margin: 0; font-size: .9375rem; color: var(--muted); }
.card-price { margin: .125rem 0 0; }
.card-price .price, .price { font-size: 1.25rem; font-weight: 800; }
.card-sub { margin: 0; font-size: .9375rem; color: var(--muted); }
.card-incart { margin: .25rem 0 0; color: var(--ok); font-weight: 800; display: flex; align-items: center; gap: .25rem; }
.card-soldout { margin: .25rem 0 0; color: var(--err); font-weight: 800; display: flex; align-items: center; gap: .25rem; }
.card-actions { display: flex; justify-content: flex-end; margin-top: .375rem; }
.btn-choose {
  min-width: 6rem; min-height: 3rem; background: var(--primary); color: var(--primary-ink); border-radius: 10px;
}
.btn-choose:disabled { background: var(--disabled-bg); color: #FFFFFF; cursor: not-allowed; }
.item-card.is-soldout { background: var(--gray-bg); cursor: default; }
.item-card.is-soldout .card-photo img { filter: grayscale(1); opacity: .6; }
.item-card.is-reserve { border-style: dashed; }
.sk-card { cursor: default; }
.sk-card .photo { width: 96px; height: 96px; }
.double { margin-top: .5rem; }
.double-q { font-weight: 800; margin: .5rem 0; }
.double-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.list-h { font-size: 1.1875rem; margin: 0; }
.double .btn-block { margin-top: .75rem; }

@container (max-width: 22rem) {
  .item-card { grid-template-columns: 72px 1fr; }
  .card-photo, .sk-card .photo { width: 72px; height: 72px; }
}

/* ------------------------------------------------------------------ 商品シート（C3） */
.item-photo-wrap { margin-top: .25rem; }
.item-formal { margin: .25rem 0 0; color: var(--muted); }
.item-price { margin: .25rem 0; }
.item-price small { color: var(--muted); }
.item-detail { margin: .5rem 0; }
.item-contents { margin: .25rem 0; padding-left: 1.25rem; }
.item-servings { font-weight: 800; }
.item-note { color: var(--muted); }
.field { border: none; padding: 0; margin: 1.25rem 0 0; min-width: 0; }
.field-label { display: block; font-weight: 800; font-size: 1.125rem; margin-bottom: .375rem; padding: 0; }
.req { font-size: .9375rem; color: var(--err); margin-left: .25rem; }
.field-hint { color: var(--muted); font-size: 1rem; margin: .25rem 0 .5rem; }
.field-error { color: var(--err); font-weight: 800; font-size: 1rem; display: flex; gap: .375rem; align-items: flex-start; margin: .375rem 0 0; }
.rice-phone { margin-top: 1rem; font-weight: 700; color: var(--text); }
.choice-list { display: flex; flex-direction: column; gap: .5rem; }
.choice {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem;
  min-height: 3.5rem; padding: .5rem 1rem; border: 2px solid var(--line-strong); border-radius: 12px;
  background: var(--card); cursor: pointer;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-mark { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--card); }
.choice input:checked + .choice-mark { border-color: var(--primary); box-shadow: inset 0 0 0 5px var(--primary); }
.choice.is-on { border-color: var(--primary); background: var(--bg-sub); }
.choice:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-label { font-weight: 700; }
.choice-price { font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.stepper { display: inline-flex; align-items: stretch; gap: .375rem; max-width: 100%; }
.step-btn {
  width: 3.5rem; flex: 0 1 3.5rem; min-width: 44px; min-height: 3.5rem; display: grid; place-items: center;
  border: 2px solid var(--primary-text); border-radius: 12px; background: var(--card); color: var(--primary-text); cursor: pointer;
}
.step-btn:disabled { border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.step-input {
  width: 4.5rem; flex: 0 1 4.5rem; min-width: 0; min-height: 3.5rem; text-align: center; font-size: 1.375rem; font-weight: 800;
  border: 2px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--text);
}
.btn-add { margin-top: 1.25rem; min-height: 3.75rem; }
.btn-add b { font-size: 1.25rem; }
.limit-box { margin-top: 1rem; padding: 1rem; border: 2px solid var(--warn-border); background: var(--warn-bg); border-radius: 12px; }
.limit-title { font-weight: 800; margin-top: 0; }
.item-reserve .btn, .item-soldout .btn { margin-top: .75rem; }

/* ------------------------------------------------------------------ 注文かご（C4） */
.cart-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.cart-row { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; background: var(--card); box-shadow: var(--shadow); }
.cart-row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.cart-name { font-size: 1.125rem; font-weight: 800; margin: .375rem 0 0; }
.cart-remove { flex: none; color: var(--err); }
.cart-rice { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }
.cart-rice-choices { margin-top: .5rem; }
.cart-qty { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.cart-sub { margin: 0; text-align: right; }
.cart-sub small { display: block; color: var(--muted); }
.cart-total { margin-top: 1.25rem; padding: 1rem; background: var(--bg-sub); border-radius: 12px; }
.total-lg { font-size: 1.375rem; font-weight: 800; margin: 0; }
.total-lg small, .total-xl small { font-size: 1rem; font-weight: 700; color: var(--muted); }

/* ------------------------------------------------------------------ 受け取り日時（C5） */
.day-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.day-btn {
  flex: 1 1 8.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-height: 3.5rem; padding: .375rem .5rem; border: 2px solid var(--line-strong); border-radius: 12px;
  background: var(--card); color: var(--text); font-size: 1.125rem; font-weight: 800; cursor: pointer; text-align: center;
}
.day-btn.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.day-btn.is-off { background: var(--gray-bg); color: var(--muted); border-style: dashed; border-color: var(--line); }
.day-reason { font-size: .875rem; font-weight: 700; }
.day-more { flex-direction: row; gap: .25rem; color: var(--primary-text); border-color: currentColor; }
.day-more.is-on { color: var(--primary-ink); }
.day-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: .5rem; margin-top: .5rem; }
.day-list .day-btn { flex: none; }
.date-head { margin: 1rem 0 .5rem; padding: .375rem .75rem; border-left: 6px solid var(--primary); background: var(--bg-sub); border-radius: 0 10px 10px 0; }
.date-head-text { font-size: 1.375rem; margin: 0; }
.date-head.flash-1, .date-head.flash-0 { animation: date-flash 1.2s ease-out; }
@keyframes date-flash { from { background: var(--warn-bg); } to { background: var(--bg-sub); } }
.earliest { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; font-size: 1.125rem; margin: .5rem 0; }
.earliest b { font-size: 1.25rem; }
.session { margin-top: 1rem; }
.session-h { font-size: 1.125rem; margin: 0 0 .5rem; }
.session-closed { padding: .75rem 1rem; background: var(--gray-bg); color: var(--gray-text); border-radius: 10px; font-weight: 700; margin: 0; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.25rem), 1fr)); gap: .5rem; }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-height: 3.5rem; padding: .25rem; border: 2px solid var(--line-strong); border-radius: 12px;
  background: var(--card); color: var(--text); cursor: pointer;
}
.slot-time { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.slot-tag { font-size: .8125rem; font-weight: 800; color: var(--primary-text); line-height: 1.2; }
.slot-few .slot-tag { color: var(--warn); }
@media (prefers-color-scheme: light) { .slot-few .slot-tag { color: #854D0E; } }
.slot-full { background: var(--gray-bg); border-style: dashed; border-color: var(--line); color: var(--muted); cursor: pointer; }
.slot-full .slot-tag { color: var(--muted); }
.slot.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 3px var(--primary-soft); }
.slot.is-on .slot-tag { color: var(--primary-ink); }
.slot.sk-block, .day-btn.sk-block { border: none; }
.time-notes { margin-top: 1.25rem; color: var(--muted); font-size: 1rem; }
.time-notes p { margin: .25rem 0; }
.time-submit { margin-top: 1rem; }

/* ------------------------------------------------------------------ 入力（C6・C11） */
.input {
  width: 100%; min-height: 3.5rem; padding: .5rem .875rem;
  font-size: 1.25rem; font-family: inherit; color: var(--text);
  background: var(--card); border: 2px solid var(--line-strong); border-radius: 12px;
  -webkit-appearance: none; appearance: none;
}
.input.is-error { border-color: var(--err); border-width: 3px; }
.input.is-ok { border-color: var(--ok); }
.textarea { min-height: 6rem; line-height: 1.5; resize: vertical; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 3rem; }
.input-ok { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--ok); }
.input-short { max-width: 9rem; letter-spacing: .3em; font-size: 1.5rem; font-weight: 800; }
.done-typing { margin-top: .5rem; min-height: 3rem; border: 2px solid var(--line-strong); background: var(--gray-bg); color: var(--text); text-decoration: none; }
.done-typing.is-hidden { display: none; }
.check {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center;
  margin-top: 1.25rem; min-height: 3.5rem; padding: .5rem .75rem; border-radius: 12px; background: var(--bg-sub); cursor: pointer; font-weight: 700;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border: 2px solid var(--line-strong); border-radius: 8px; background: var(--card); color: transparent; }
.check input:checked + .check-box { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.check:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.error-summary { border: 3px solid var(--err); background: var(--err-bg); padding: .75rem 1rem; border-radius: 12px; }
.error-summary p { font-weight: 800; margin: 0; }
.error-summary ul { margin: .25rem 0 0; padding-left: 1.25rem; }
.error-summary a { color: var(--err); }
/* ハニーポット：表示しない（display:none の欄は端末の自動入力に埋められない） */
.hp-field { display: none !important; }
.no-row { display: flex; align-items: center; gap: .5rem; }
.input-no { max-width: 8rem; font-size: 1.5rem; font-weight: 800; letter-spacing: .15em; text-align: center; }
.no-suffix { font-size: 1.25rem; font-weight: 800; }
.date-chosen { font-size: 1.25rem; font-weight: 800; margin-top: .5rem; }
.day-row-wrap .day-btn { flex: 1 1 7rem; }

/* ------------------------------------------------------------------ 確認（C7）・送れなかったとき（C8） */
.not-yet { display: flex; gap: .375rem; align-items: center; font-weight: 800; color: var(--primary-text); background: var(--bg-sub); padding: .5rem .75rem; border-radius: 10px; }
.pickup-box { position: relative; margin-top: 1rem; padding: 1rem; border: 3px solid var(--primary); border-radius: 16px; background: var(--card); }
.pickup-cap { margin: 0; font-size: 1rem; color: var(--muted); font-weight: 700; }
.pickup-when { margin: .125rem 0 .5rem; font-size: 1.75rem; font-weight: 800; line-height: 1.3; }
.place { display: flex; gap: .375rem; align-items: flex-start; font-size: 1rem; }
.place .icon { margin-top: .2rem; color: var(--primary-text); }
.confirm-lines { margin-top: 1rem; }
.lines-table { width: 100%; }
.lines-table th, .lines-table td { padding: .625rem .25rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.lines-table th { font-weight: 700; }
.ln-name { display: block; font-weight: 800; }
.ln-rice { display: block; font-size: 1rem; color: var(--muted); font-weight: 700; }
.ln-qty { white-space: nowrap; text-align: right !important; font-weight: 700; }
.ln-price { white-space: nowrap; text-align: right !important; font-size: 1.125rem; font-weight: 800; }
.confirm-total { margin-top: 1rem; padding: 1rem; background: var(--bg-sub); border-radius: 12px; }
.total-xl { font-size: 1.5rem; font-weight: 800; margin: 0; }
.who { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.who p { margin: 0; font-size: 1.125rem; }
.promises { margin: 1rem 0; padding-left: 1.25rem; font-size: 1rem; color: var(--muted); }
.promises li { margin: .25rem 0; }
.send-area { margin-top: 1rem; }
.btn-send { min-height: 4.5rem; flex-direction: column; gap: 0; padding: .5rem 1rem; }
.send-1 { font-size: 1.25rem; }
.send-2 { font-size: 1.0625rem; font-weight: 700; }
.sending { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem; border: 3px solid var(--primary); border-radius: 14px; text-align: center; font-weight: 800; }
.sending p { margin: 0; }
.problem { margin: 1rem 0; padding: 1rem; border: 3px solid var(--warn-border); background: var(--warn-bg); border-radius: 14px; }
.problem-h { display: flex; gap: .5rem; align-items: flex-start; font-size: 1.375rem; margin: 0; }
.problem-h .icon { margin-top: .3rem; color: var(--warn); }
.problem-body { font-size: 1.125rem; }
.price-diff { padding: .5rem .75rem; background: var(--card); border: 2px solid var(--warn-border); border-radius: 10px; }
.price-diff p { margin: 0; }
.legal-links { font-size: 1rem; text-align: center; margin-top: 1rem; }
/* 主ボタンの直前の同意の一文（規約「［お支払いへ進む］を押した時点で同意」と合わせる） */
.consent-note { font-size: 1rem; margin: 1rem 0 .5rem; color: var(--text); }
.consent-note a { font-weight: 700; }
/* 最終確認（特定商取引法の最終確認画面の表示事項） */
.final-terms { margin-top: 1rem; padding: .75rem 1rem; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.final-terms-h { font-size: 1.125rem; margin: 0 0 .25rem; }
.terms-list { margin: 0; }
.terms-row { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: .25rem .75rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.terms-row:first-child { border-top: none; }
.terms-row dt { font-weight: 800; color: var(--muted); font-size: 1rem; }
.terms-row dd { margin: 0; font-weight: 700; }
@container (max-width: 20rem) { .terms-row { grid-template-columns: minmax(0, 1fr); } }
.final-terms { container-type: inline-size; }
.dup-warn .btn { margin-top: .5rem; }

/* ------------------------------------------------------------------ 受け取り票（C9・C10） */
.done-head { text-align: center; margin: 1.25rem 0 .75rem; }
.done-check { display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--ok); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .done-check { background: #15803D; } }
.done-title { font-size: 1.5rem; font-weight: 800; margin: .5rem 0 0; }
.done-head.is-calm .done-title { color: var(--text); }
.ticket { margin-top: 1rem; padding: 1rem; text-align: center; border: 3px solid var(--primary); border-radius: 18px; background: var(--bg-sub); }
.ticket-cap { margin: 0; font-size: 1rem; font-weight: 800; color: var(--muted); }
.ticket-no { margin: .25rem 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ticket-date { font-size: 1.5rem; font-weight: 800; }
.ticket-num { font-size: 4rem; font-weight: 900; letter-spacing: .02em; color: var(--text); }
.ticket-num-share { font-size: 2rem; }
.ticket-name { margin: .25rem 0 0; font-size: 1.375rem; font-weight: 800; }
.come-at { margin: 1rem 0 .5rem; font-size: 1.5rem; font-weight: 800; line-height: 1.4; text-align: center; }
.how p { margin: .5rem 0; }
.status-steps { list-style: none; margin: 0; padding: 0; }
.status-steps li { position: relative; display: flex; align-items: center; gap: .625rem; padding: .5rem .5rem; border-radius: 10px; color: var(--muted); }
.status-steps li + li::before { content: ""; position: absolute; left: 1.375rem; top: -.5rem; height: 1rem; border-left: 2px solid var(--line); }
.ss-mark { display: inline-grid; place-items: center; flex: none; width: 1.875rem; height: 1.875rem; border-radius: 50%; border: 2px solid var(--line-strong); font-size: .9375rem; font-weight: 800; background: var(--card); }
.status-steps li.is-done { color: var(--text); }
.status-steps li.is-done .ss-mark { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .status-steps li.is-done .ss-mark { background: #15803D; border-color: #15803D; } }
.status-steps li.is-now { color: var(--text); font-weight: 800; background: var(--bg-sub); box-shadow: inset 0 0 0 2px var(--primary); }
.status-steps li.is-now .ss-mark { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.ss-label { flex: 1; }
.ss-now { flex: none; padding: .125rem .5rem; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: .875rem; font-weight: 800; }
.status-end { display: flex; gap: .5rem; align-items: flex-start; padding: .875rem 1rem; background: var(--gray-bg); color: var(--gray-text); border-radius: 12px; border-left: 6px solid var(--line-strong); font-weight: 800; }
.status-end p { margin: 0; }
/* お店の承諾待ち・確定・成立しなかった（2026-10-07 承諾制） */
.done-head.is-waiting { padding: 1rem; border: 3px solid var(--warn-border); background: var(--warn-bg); color: var(--warn-ink); border-radius: 18px; }
.done-head.is-waiting .done-title { color: var(--warn-ink); }
.done-wait { background: var(--warn-border); color: #FFFFFF; }
.done-sub { margin: .5rem 0 0; font-size: 1.125rem; font-weight: 700; }
.accept-deadline { display: flex; gap: .375rem; align-items: flex-start; justify-content: center; margin: .75rem 0 0; font-size: 1rem; font-weight: 800; text-align: left; }
.accept-deadline svg { flex: none; margin-top: .2em; }
.done-head.is-waiting .muted { color: var(--warn-ink); margin: .5rem 0 0; }
.done-head.is-accepted .done-title { color: var(--ok-ink); }
.done-head.is-accepted { padding: 1rem; background: var(--ok-bg); border-radius: 18px; }
/* 成立しなかった（お断り・時間切れ・期限までにお支払いなし）は灰色（事前決済の設計 §19） */
.done-head.is-ng { padding: 1rem; text-align: left; border: 3px solid var(--line-strong); background: var(--gray-bg); color: var(--text); border-radius: 18px; }
.done-head.is-ng .done-title { text-align: center; margin-top: 0; }
.ng-box p { margin: .625rem 0; font-size: 1.125rem; }
.ng-box .muted { font-size: 1rem; }
.ng-reason { padding: .5rem .75rem; background: var(--card); border-radius: 10px; }
.ticket-wait { display: flex; gap: .375rem; align-items: center; justify-content: center; margin: .5rem 0 0; font-size: 1.125rem; font-weight: 800; color: var(--warn-ink); background: var(--warn-bg); border-radius: 10px; padding: .375rem .5rem; }
.ticket.is-void { border-color: var(--line-strong); }
.ticket.is-void .ticket-num { color: var(--muted); text-decoration: line-through; }
.come-at-sub { display: block; font-size: 1rem; font-weight: 700; color: var(--muted); }
.pend-wait { margin-left: .25rem; font-size: 1rem; font-weight: 800; color: var(--warn-ink); }
.large-hint { display: flex; gap: .375rem; align-items: flex-start; color: var(--text); font-weight: 700; }
.large-hint svg { flex: none; margin-top: .2em; }
.updated { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; color: var(--muted); font-size: 1rem; margin-top: 1rem; }
.receipt-btns { margin-top: 1.25rem; }
.btn-line::before { content: "LINE"; display: inline-block; padding: .125rem .375rem; border-radius: 6px; background: #06C755; color: #000000; font-size: .8125rem; font-weight: 900; }
.reassure { margin-top: 1rem; padding: .75rem 1rem; background: var(--bg-sub); border-radius: 12px; font-size: 1rem; }
.find-note { margin-top: 1rem; font-weight: 700; }
.change-from { margin: .25rem 0; font-size: 1.125rem; color: var(--muted); text-decoration: line-through; }
.change-arrow { margin: 0; font-size: 1.25rem; color: var(--primary-text); }
.change-to { margin: .25rem 0; font-size: 1.5rem; font-weight: 800; }
.cancel-q { font-size: 1.25rem; font-weight: 800; }
.shot-help .btn { justify-content: center; }
.shot-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; margin-top: .75rem; padding: .75rem; background: var(--bg-sub); border-radius: 12px; }
.shot-col { display: flex; gap: .5rem; align-items: flex-start; }
.shot-col p { margin: 0; font-size: 1rem; }
.shot-body > .muted { grid-column: 1 / -1; margin: 0; font-size: .9375rem; }
.shot-fig { width: 5rem; height: 5rem; flex: none; color: var(--text); }
.shot-fig .fig-on { fill: var(--primary); }
.shot-fig .fig-off { fill: var(--line-strong); }
.shot-fig .fig-t { fill: var(--text); font-weight: 700; }
.a2hs { margin-top: 1.25rem; padding: .75rem 1rem; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 1rem; }
.a2hs-title { font-weight: 800; margin-top: 0; }
.a2hs-steps { margin: .25rem 0 0; padding-left: 1.5rem; }
.share-status { font-size: 1.25rem; text-align: center; }

/* ------------------------------------------------------------------ 先払い（PAY.JP）：C7 の支払い方法・CP1・C9 の表示・領収書
   docs/事前決済と承諾の設計.md §19 */
.pay-choice { margin-top: 1rem; }
.pay-choice .sub-h { margin-top: 0; }
.pay-opt .choice-label { display: flex; flex-direction: column; font-size: 1.125rem; }
.pay-opt-sub { font-size: .9375rem; font-weight: 700; color: var(--muted); }
.pay-kind { margin-top: .5rem; padding-left: 1rem; border-left: 4px solid var(--primary-soft); }
.pay-only { padding: .75rem 1rem; border: 2px solid var(--primary); border-radius: 12px; background: var(--bg-sub); }
.pay-only-main { margin: 0; font-size: 1.125rem; }
.pay-only .muted { margin: .25rem 0 0; }
.pay-notes { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .375rem; font-size: 1rem; }
.pay-notes li { padding-left: 1.25rem; position: relative; }
.pay-notes li::before { content: "・"; position: absolute; left: 0; }
.pay-notes li.pay-nocharge { padding-left: 0; }
.pay-notes li.pay-nocharge::before { content: none; }
.pay-nocharge { display: flex; gap: .375rem; align-items: flex-start; margin: .5rem 0 0; font-weight: 800; color: var(--ok-ink); background: var(--ok-bg); border-radius: 10px; padding: .5rem .75rem; }
.pay-nocharge svg { flex: none; margin-top: .15em; }
.pay-box { margin-top: .5rem; padding: 1rem; border: 3px solid var(--primary); border-radius: 18px; background: var(--bg-sub); text-align: center; }
.pay-amount { margin: 0; font-size: 2rem; font-weight: 900; }
.pay-amount small { font-size: 1rem; font-weight: 700; }
.pay-for { margin: .25rem 0 0; font-weight: 700; }
.pay-deadline { display: flex; gap: .375rem; align-items: flex-start; justify-content: center; margin: .75rem 0 0; font-size: 1.125rem; font-weight: 700; }
.pay-deadline svg { flex: none; margin-top: .2em; }
.pay-deadline.is-over { color: var(--err); font-weight: 800; }
.pay-box .pay-nocharge { justify-content: center; text-align: left; }
.btn-col { flex-direction: column; gap: 0; }
.btn-sub { display: block; font-size: .9375rem; font-weight: 700; }
.pay-abandon { margin: 0; border: 2px solid var(--line-strong); }
.pay-abandon .card-h { margin-top: 0; }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pay-steps li { display: flex; gap: .625rem; align-items: flex-start; padding: .625rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 1rem; }
.pay-step-no { display: inline-grid; place-items: center; flex: none; width: 1.875rem; height: 1.875rem; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 900; }
.reply-by { margin: .75rem 0 0; font-size: 1.375rem; font-weight: 800; }
.reply-by b { font-size: 1.75rem; }
.reply-left { font-size: 1.125rem; font-weight: 700; margin-left: .25rem; white-space: nowrap; }
/* 受け取り票：返金があったときの内訳（お支払い・ご返金・差し引き） */
.pay-breakdown { font-size: 1rem; }
.done-elapsed { margin: .25rem 0 0; font-size: 1.0625rem; font-weight: 700; }
.notify-open { margin-top: 1rem; }
.notify-form { margin-top: 1rem; padding: .75rem 1rem; border: 2px solid var(--warn-border); border-radius: 12px; background: var(--card); display: grid; gap: .5rem; }
.notify-form .field-hint { margin: 0; }
.notify-rec { margin-left: .5rem; padding: .125rem .5rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: .875rem; font-weight: 800; }
.notify-done { display: flex; gap: .375rem; align-items: center; margin: 1rem 0 0; font-weight: 800; color: var(--ok-ink); background: var(--ok-bg); border-radius: 10px; padding: .5rem .75rem; }
.paid-badge { display: inline-block; margin: .75rem 0 0; padding: .375rem .875rem; border-radius: 999px; background: var(--ok); color: #FFFFFF; font-size: 1.25rem; font-weight: 900; }
@media (prefers-color-scheme: dark) { .paid-badge { background: #15803D; } }
.ticket-paid { display: flex; gap: .375rem; align-items: center; justify-content: center; margin: .5rem 0 0; font-size: 1.125rem; font-weight: 800; color: var(--ok-ink); background: var(--ok-bg); border-radius: 10px; padding: .375rem .5rem; }
.ng-money { padding: .5rem .75rem; background: var(--card); border-radius: 10px; }
.cancel-money { display: flex; gap: .375rem; align-items: flex-start; padding: .5rem .75rem; background: var(--bg-sub); border-radius: 10px; font-weight: 700; }
.cancel-money svg { flex: none; margin-top: .15em; }
/* 領収書 */
.receipt-doc { margin-top: .5rem; }
.rc-paper { margin: 1rem 0; padding: 1.25rem 1rem; border: 2px solid var(--line-strong); border-radius: 6px; background: #FFFFFF; color: #1A1A1A; }
.rc-title { margin: 0 0 1rem; text-align: center; font-size: 1.5rem; letter-spacing: .2em; }
.rc-to { margin: 0; font-size: 1.25rem; font-weight: 700; border-bottom: 1px solid #1A1A1A; padding-bottom: .25rem; }
.rc-name { font-size: 1.375rem; font-weight: 800; }
.rc-amount { margin: 1rem 0 .25rem; text-align: center; font-size: 2rem; font-weight: 900; border-bottom: 3px double #1A1A1A; }
.rc-amount small { font-size: 1rem; }
.rc-but { margin: .25rem 0 1rem; font-size: 1rem; }
.rc-meta, .rc-tax { margin: 0; display: grid; gap: .125rem; }
.rc-meta div, .rc-tax div { display: flex; justify-content: space-between; gap: .75rem; padding: .125rem 0; }
.rc-meta dt, .rc-tax dt { font-weight: 700; color: #44403C; }
.rc-meta dd, .rc-tax dd { margin: 0; font-weight: 700; text-align: right; }
.rc-lines { margin: .75rem 0; color: #1A1A1A; }
.rc-lines thead th { font-size: .9375rem; color: #44403C; text-align: left; border-bottom: 1px solid #78716C; }
.rc-tax { border-top: 1px solid #78716C; padding-top: .375rem; }
.rc-paper .lines-table th, .rc-paper .lines-table td { border-bottom-color: #D6D3D1; }
.rc-paper .ln-rice { color: #57534E; }
.rc-note { margin: .375rem 0 0; font-size: .9375rem; }
.rc-issuer { margin-top: 1rem; text-align: right; font-size: 1rem; }
.rc-issuer p { margin: 0; }
@media print {
  html.printing-receipt body * { visibility: hidden !important; }
  html.printing-receipt .rc-paper, html.printing-receipt .rc-paper * { visibility: visible !important; }
  html.printing-receipt .rc-paper { position: absolute; left: 0; top: 0; width: 100%; margin: 0; border: 1px solid #000000; }
  html.printing-receipt body { background: #FFFFFF; }
  .no-print { display: none !important; }
}

/* ------------------------------------------------------------------ まとめ注文・ご予約（C12）・お店の情報（C17） */
.intro-list { padding-left: 1.25rem; margin: .5rem 0; }
.intro-list li { margin: .25rem 0; }
.kind-card { min-height: 5.5rem; }
.kind-card.is-focus { border: 3px solid var(--primary); }
.kind-h { font-size: 1.375rem; margin: 0; }
.kind-price { font-size: 1.25rem; font-weight: 800; margin: .125rem 0; }
.kind-note { color: var(--muted); margin: 0 0 .5rem; }
.kind-facts { list-style: none; padding: 0; margin: .25rem 0 .75rem; display: grid; gap: .25rem; }
.kind-facts li { display: flex; gap: .375rem; align-items: baseline; flex-wrap: wrap; }
.kind-facts .icon { color: var(--primary-text); align-self: center; }
.kind-items { list-style: none; padding: 0; margin: 0 0 .75rem; }
.kind-items li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 .5rem; border-bottom: 1px solid var(--line); padding: .25rem 0; }
.kind-items li p { flex-basis: 100%; margin: 0 0 .25rem; }
.kind-card.is-calm { --primary: #334155; --primary-text: #334155; }
@media (prefers-color-scheme: dark) { .kind-card.is-calm { --primary: #475569; --primary-text: #CBD5E1; } }
.hours-table { width: 100%; margin: .5rem 0; }
.hours-table th, .hours-table td { padding: .5rem .25rem; border-bottom: 1px solid var(--line); text-align: center; }
.hours-table thead th { font-size: 1rem; }
.hours-table td.open { color: var(--ok); font-weight: 800; }
.hours-table td.closed { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 3rem; display: flex; align-items: center; font-weight: 800; cursor: pointer; padding: .5rem 0; }
.faq details p { margin: 0 0 .75rem; }

/* ------------------------------------------------------------------ その他 */
.ts-box { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 120; }
.noscript { max-width: 40rem; margin: 2rem auto; padding: 0 1rem; }

/* 斎場：飾りを減らす */
.is-saijo .reassure, .is-saijo .done-check { display: none; }

/* ------------------------------------------------------------------ 動きを減らす */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .spinner { border-top-color: var(--primary); border-right-color: var(--primary); }
}

/* ------------------------------------------------------------------ 広い画面 */
@media (min-width: 48rem) {
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
