:root {
  color-scheme: light;
  --paper: #fff9ee;
  --white: #fffdf8;
  --ink: #2d1b10;
  --muted: #6a5042;
  --line: #e8d7c0;
  --dark: #803017;
  --accent: #a33712;
  --orange: #f4a64d;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
h2 { font-size: 1.32rem; }
a { color: var(--dark); }
.wrap { width: min(100% - 40px, 1050px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 15px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 900; line-height: 1.2; }
.brand span, .brand small { display: block; }
.brand span { font-size: 1.2rem; }
.brand small { margin-top: 4px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.place-link { font-weight: 700; font-size: .9rem; text-underline-offset: 4px; }
.hero { border-radius: 24px; margin: 26px 0 20px; min-height: 286px; background: #ee9b3f; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: 28px clamp(24px, 7vw, 80px); gap: 18px; }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 4.25rem); letter-spacing: -.045em; line-height: 1.05; font-weight: 950; }
.eyebrow { font-size: .93rem; font-weight: 800; margin-bottom: 13px; }
.hero-note { color: #392016; font-weight: 750; margin-top: 14px; }
.food { width: 244px; aspect-ratio: 244 / 186; flex-shrink: 0; background: #fff2db url("/menu-art.webp") no-repeat 0 -300px / 845px auto; border: 3px solid #ffe2ac; border-radius: 32% 27% 30% 28%; box-shadow: 5px 7px 0 #b4582390; transform: rotate(5deg); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .62fr); align-items: start; gap: 26px; padding-top: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.section-heading span { color: var(--muted); font-size: .88rem; }
.menu-details { color: var(--muted); margin-bottom: 16px; }
.menu-details a { display: inline-block; margin-top: 5px; }
.menu-category { color: var(--dark); margin-top: 14px; font-size: 1.08rem; }
.menu-category:first-child { margin-top: 0; }
.rice-size { display: block; width: 100%; margin-top: 8px; }
.product-list { display: grid; gap: 9px; }
.product, .order-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.product { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product h3, .product h4 { font-size: 1.02rem; font-weight: 800; }
.product p { font-size: .9rem; color: var(--muted); margin-top: 5px; }
.cost { color: var(--dark); font-weight: 850; display: block; margin-top: 5px; white-space: nowrap; }
.quantity { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.counter { width: 1.65rem; text-align: center; font-weight: 800; }
button, input, select { font: inherit; color: inherit; }
button, input, select, a { touch-action: manipulation; }
button { cursor: pointer; font-weight: 750; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8b2d0e; outline-offset: 3px; }
.step { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; color: var(--accent); font-size: 1.3rem; }
.step.add { background: var(--accent); border-color: var(--accent); color: white; }
.checkout, .panel, .location, .receipt { border: 1px solid var(--line); background: var(--white); border-radius: 16px; padding: 20px; }
.checkout { position: sticky; top: 14px; }
.basket { margin: 13px 0; color: var(--muted); }
.summary { margin: 0; padding: 0; list-style: none; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; }
.summary li span:last-child { white-space: nowrap; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.total strong { font-size: 1.4rem; color: var(--dark); }
form { display: grid; gap: 11px; margin-top: 14px; }
label { display: grid; gap: 5px; font-size: .93rem; font-weight: 750; min-width: 0; }
label.check { display: flex; align-items: center; gap: 8px; }
input:not([type="checkbox"]), select { width: 100%; border: 1px solid #bfa58d; min-height: 44px; background: #fff; border-radius: 7px; padding: 7px 9px; font-size: 1rem; }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23763117' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 12px 8px; background-position: right 10px center; }
input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--accent); }
.two { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.primary, .secondary { min-height: 44px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--accent); }
.primary { background: var(--accent); color: #fff; }
.secondary { background: var(--paper); color: var(--dark); }
.help { font-size: .88rem; color: var(--muted); }
.notice { background: #faebd4; border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.error { color: #9d1a13; font-weight: 700; }
.location { margin-top: 22px; }
.location p { margin: 8px 0; }
.location a + a { margin-left: 16px; }
.foot { padding: 20px 0 28px; color: var(--muted); font-size: .88rem; }
.mobile-total { display: none; }
dialog { width: min(calc(100% - 30px), 480px); max-height: calc(100% - 40px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); padding: 20px; }
dialog::backdrop { background: #2d1b10a6; }
dialog h2 { margin-bottom: 10px; }
dialog .help { margin: 10px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.receipt { margin-top: 16px; }
.receipt p, .receipt dl { margin: 12px 0; }
.receipt dt { font-size: .9rem; color: var(--muted); }
.receipt dd { margin: 0 0 8px; font-weight: 850; }
.admin { display: grid; gap: 18px; padding-block: 24px; }
.admin h1 { font-size: 1.7rem; }
.orders { display: grid; gap: 10px; margin-top: 12px; }
.order-card p { margin-block: 3px; }
.order-card .actions { margin-top: 10px; }
.order-state { font-size: .92rem; font-weight: 800; color: var(--dark); }
.order-card.new { border-left: 5px solid var(--accent); }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .hero { margin-top: 14px; min-height: 198px; padding: 17px; border-radius: 16px; }
  .food { width: 120px; background-size: 418px auto; background-position: 0 -148px; box-shadow: 3px 4px 0 #b4582390; }
  .eyebrow { font-size: .8rem; margin-bottom: 9px; }
  .hero-note { font-size: .88rem; margin-top: 10px; }
  .layout { display: block; }
  .checkout { position: static; margin-top: 18px; scroll-margin: 10px; }
  .foot { padding-bottom: 86px; }
  .mobile-total { display: block; position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); left: 14px; right: 14px; text-align: center; background: var(--accent); color: #fff; text-decoration: none; border-radius: 10px; padding: 12px; box-shadow: 0 3px 12px #2d1b1050; font-weight: 800; }
}
@media (max-width: 440px) {
  .product:has(.rice-size) { flex-wrap: wrap; }
  .product:has(.rice-size) > div:first-child { width: 100%; }
}
@media (max-width: 350px) { .food { width: 99px; background-size: 350px auto; background-position: 0 -123px; } .hero h1 { font-size: 1.85rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.mobile-total.near-checkout { display: none; }
fieldset { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; margin: 0; }
fieldset legend { font-size: .93rem; font-weight: 750; }
fieldset .check + .check { margin-top: 6px; }
input[type="radio"] { width: 18px; height: 18px; margin: 2px; accent-color: var(--accent); }
#card-field { min-height: 82px; max-width: 100%; margin-bottom: 10px; }
.payment-tag { font-weight: 800; color: var(--dark); }
.location .line-link { display: inline-block; border: 1px solid #087842; background: #087842; color: #fff; border-radius: 9px; padding: 8px 12px; font-weight: 750; text-decoration: none; }
.notification-controls { align-items: center; margin-bottom: 8px; }
.notification-controls .help { flex: 1 1 220px; }
.line-setup-actions { margin-block: 10px; }
#line-code-box p { margin-bottom: 8px; }
#line-candidate-name { margin-bottom: 8px; overflow-wrap: anywhere; }

.policy-link { display: inline-block; margin-top: 12px; }
.policy-terms { margin: 8px 0 0; padding-left: 1.25em; }
.policy-terms li + li { margin-top: 6px; }
.confirm-policy { margin-block: 12px; }
.confirm-policy h3 { font-size: 1rem; }

.sold-out { color: var(--dark); background: var(--paper); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.product-controls { justify-content: flex-end; flex-shrink: 0; }
@media (max-width: 560px) {
  .product:has(.product-controls) { flex-wrap: wrap; }
  .product-controls { width: 100%; }
}
