:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --surface: #fffcf7;
  --ink: #282018;
  --muted: #685649;
  --red: #8f3222;
  --red-dark: #752719;
  --sand: #f3e2cc;
  --line: #ded1c0;
  --display: "Hiragino Mincho ProN","Yu Mincho",YuMincho,serif;
  --body: -apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",YuGothic,Meiryo,sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); overflow-wrap: anywhere; }
::selection { background: #f0cfb6; color: var(--ink); }
a { color: inherit; text-underline-offset: .21em; }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 3px solid #38657a; outline-offset: 3px; }
button,input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
h1,h2,h3,p,dl { margin: 0; }
h1:focus { outline: none; }
h2 { font-size: 1.125rem; line-height: 1.35; }
.wrap { width: min(calc(100% - 32px), 44rem); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); background: var(--surface); }
.mast-inner { display: flex; justify-content: space-between; gap: 10px; min-height: 56px; align-items: center; }
.brand { font-size: .83rem; line-height: 1.4; font-weight: 750; text-decoration: none; }
.mast nav a { display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; padding-inline: 5px; font-size: .84rem; color: var(--muted); }
.mast nav a[aria-current] { color: var(--red-dark); font-weight: 750; }

.order-view { padding-block: 14px calc(104px + env(safe-area-inset-bottom)); }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,41%); gap: 4px; align-items: center; padding: 10px 14px 10px 17px; min-height: 112px; background: var(--sand); border-radius: 12px; }
.hero h1 { font: 750 clamp(1.62rem,6.3vw,2.6rem)/1.23 var(--display); color: var(--red-dark); text-wrap: balance; }
.hero-art { justify-self: end; width: 100%; max-width: 194px; height: auto; }
.menu-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-top: 23px; padding-bottom: 8px; }
.menu-head span,.muted { color: var(--muted); font-size: .88rem; }
.product-list { border-block: 1px solid var(--line); }
.product { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 66px; padding: 8px 3px; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product.active { background: #f6ecdf; }
.product h3 { font-size: 1rem; line-height: 1.42; font-weight: 720; }
.meta { display: flex; gap: 0 9px; flex-wrap: wrap; margin-top: 2px; color: var(--muted); font-size: .88rem; }
.price { color: var(--red-dark); font-weight: 750; }
.step { display: grid; grid-template-columns: 44px minmax(24px,1fr) 44px; place-items: center; width: 116px; border: 1px solid #d6c7b5; border-radius: 25px; background: var(--surface); }
.step button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 100%; background: transparent; color: var(--red-dark); }
.step button:not(:disabled):hover { background: #f2ddce; }
.step button:disabled { color: #827266; }
.step button::before,.step .plus::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.step .plus::after { width: 2px; height: 14px; }
.step output { font-weight: 750; font-variant-numeric: tabular-nums; }
.empty { padding: 16px 3px; color: var(--muted); }
.dock { position: fixed; inset: auto 0 0; z-index: 2; background: var(--surface); border-top: 1px solid var(--line); padding: 9px 0 calc(9px + env(safe-area-inset-bottom)); box-shadow: 0 -5px 18px #38241912; }
.dock-inner { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.dock-tally { display: grid; line-height: 1.22; white-space: nowrap; }
.dock-tally span { color: var(--muted); font-size: .88rem; }
.dock-tally strong,.total strong,.total output { color: var(--red-dark); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.action,.outline,.back { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; font-weight: 730; }
.action,.outline { padding: 8px 16px; border-radius: 7px; }
.action { background: var(--red); border: 1px solid var(--red); color: #fff; }
.action:hover:not(:disabled) { background: var(--red-dark); }
.action:disabled { border-color: #ded2c4; background: #efe6db; color: #625044; }
.dock .action { width: min(52%,15rem); }
.outline { border: 1px solid var(--line); background: var(--surface); color: var(--red-dark); }
.outline:hover { background: var(--sand); }
.outline:disabled { opacity: .62; }

.screen { padding-block: clamp(22px,6vw,43px) 48px; }
.page-title { font: 750 clamp(1.62rem,5.7vw,2.45rem)/1.28 var(--display); color: var(--red-dark); }
.lines { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines li small { display: block; color: var(--muted); font-size: .875rem; }
.lines li strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 9px 0; font-weight: 750; }
#orderForm { margin-top: 20px; }
#orderForm label { display: block; margin-bottom: 6px; font-weight: 730; }
#buyer { appearance: none; width: 100%; min-height: 49px; padding: 8px 12px; border: 1px solid #a98f78; border-radius: 7px; background: var(--surface); caret-color: var(--red-dark); }
.full { width: 100%; margin-top: 14px; }
.form-error { color: var(--red-dark); margin-top: 7px; font-size: .9rem; }
.back { margin-top: 8px; text-underline-offset: .23em; text-align: start; color: var(--red-dark); font-size: .92rem; }
.order-meta { margin-top: 5px; color: var(--muted); font-size: .92rem; }
.bank { margin-top: 14px; background: var(--sand); border-radius: 10px; padding: 14px; }
.bank dl { display: grid; grid-template-columns: 4.65em minmax(0,1fr); gap: 5px 7px; margin-top: 8px; }
.bank dt { color: var(--muted); font-size: .88rem; align-self: center; }
.bank dd { margin: 0; font-weight: 730; font-variant-numeric: tabular-nums; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.summary-status:not(:empty) { margin-top: 13px; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 9px 10px; margin-top: 15px; background: var(--sand); border-radius: 10px; }
.stats dt { font-size: .86rem; color: var(--muted); }
.stats dd { margin: 0; font-weight: 750; color: var(--red-dark); font-variant-numeric: tabular-nums; }
.table-panel { margin-top: 22px; }
.table-panel table { width: 100%; border-collapse: collapse; font-size: .94rem; margin-top: 5px; font-variant-numeric: tabular-nums; }
.table-panel th,.table-panel td { padding: 8px 3px; border-bottom: 1px solid var(--line); text-align: start; }
.table-panel th { color: var(--muted); font-size: .875rem; }
.table-panel :is(th,td):nth-child(n+2) { text-align: end; white-space: nowrap; }
.table-panel small { display: block; font-size: .85rem; color: var(--muted); }
@media (min-width: 641px) {
  .mast-inner { min-height: 63px; }
  .brand,.mast nav a { font-size: .94rem; }
  .order-view { padding-top: 22px; }
  .hero { min-height: 148px; padding-inline: 23px; }
  .hero h1 br { display: none; }
  .hero-art { max-width: 205px; }
  .product { min-height: 69px; padding-inline: 7px; }
  #checkoutView,#doneView { max-width: 35rem; }
}
@media (max-width: 352px) {
  .wrap { width: calc(100% - 24px); }
  .brand { font-size: .77rem; }
  .hero { padding-inline: 11px; }
  .step { width: 112px; }
  .dock-inner { gap: 8px; }
}

.closed-note { margin-top: 6px; color: var(--muted); font-size: .88rem; font-weight: 650; }
