:root { --red: #d40000; --deep-red: #940000; --ink: #292929; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #ece7df; font-family: "Noto Sans JP", sans-serif; }
button { font: inherit; }
.phone { width: min(100%, 442px); min-height: 100dvh; margin: auto; padding-bottom: 82px; background: #fff; }
header { padding: 29px 20px 0; }
header img { display: block; width: min(100%, 365px); margin: auto; }
.language-nav { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 23px; border-block: 1px solid #ddd; }
.language-nav button { min-height: 38px; border: 0; border-right: 1px solid #ddd; color: #4d4d4d; background: #fff; font-size: 12px; }
.language-nav button:last-child { border-right: 0; }
.language-nav .active { color: var(--red); font-weight: 700; }
#cart-complete {display:block;width:100%;min-height:48px;margin-top:12px;border:0;border-radius:8px;background:var(--red);color:#fff;font-weight:700}
#cart-complete:disabled {background:#aaa}
#cart-complete-note {font-size:12px;line-height:1.6;text-align:center}
.global-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 18px 13px 23px; }
.global-tabs a { padding: 6px 12px; color: #fff; background: var(--red); font-size: 12px; font-weight: 700; text-decoration: none; }
.global-tabs a:hover { background: var(--deep-red); }
.menu-section { padding: 0 13px 30px; }
.menu-section h1 { margin: 0 0 15px; font-size: 20px; letter-spacing: -.06em; }.menu-section h1 small, .food-card h2 small, .drink-card h2 small, .drink-row h2 small { display: block; margin-top: 2px; color: #777; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.menu-section h1::before { content: "■"; margin-right: 6px; color: #111; font-size: 15px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.food-card { overflow: hidden; border: 4px solid var(--red); border-radius: 17px; background: #fff; }
.food-photo { aspect-ratio: 1; background-image: url("assets/musashiya-reference.png"); background-repeat: no-repeat; background-size: auto 630px; }
.food-photo.photo-one { background-position: 24% 15%; }
.food-photo.photo-two { background-position: 22% 36%; }
.food-photo.photo-three { background-position: 22% 58%; }
.food-card h2 { min-height: 49px; margin: 8px 9px 4px; font-size: 17px; font-weight: 500; letter-spacing: -.07em; line-height: 1.35; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px 9px; }
.card-actions button, .row-order, .detail-order { border: 0; color: #fff; background: var(--red); cursor: pointer; font-size: 15px; font-weight: 700; }
.card-actions button { min-height: 38px; }
.card-actions button:hover, .row-order:hover, .detail-order:hover { background: var(--deep-red); }
.drink-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.drink-card { overflow: hidden; border: 4px solid var(--red); border-radius: 17px; background: #fff; }
.drink-photo { display: grid; aspect-ratio: 1; place-items: center; background: #fffdf9; }
.drink-icon { position: relative; display: block; width: 45%; height: 70%; border: 5px solid #e2bc22; border-radius: 8px 8px 14px 14px; background: linear-gradient(90deg, #f7d857, #e4aa08); }
.drink-icon::before { content: ""; position: absolute; top: -20px; left: -5px; width: calc(100% + 10px); height: 25px; border-radius: 50% 50% 12px 12px; background: #fff; }
.drink-icon::after { content: ""; position: absolute; top: 20%; right: -50%; width: 48%; height: 42%; border: 5px solid #e2bc22; border-left: 0; border-radius: 0 18px 18px 0; }
.drink-icon.sour { width: 34%; height: 72%; border-color: #d8d8d8; background: linear-gradient(#fff4b7 0 30%, #f3dd51 31% 68%, #d5efd3 69%); }
.drink-icon.sour::before { top: 9%; left: 20%; width: 62%; height: 62%; border: 0; border-radius: 50%; background: rgb(255 255 255 / 55%); }
.drink-icon.sour::after { display: none; }
.drink-card h2 { min-height: 49px; margin: 8px 9px 4px; font-size: 17px; font-weight: 500; letter-spacing: -.07em; line-height: 1.35; }
.drink-list { display: grid; }
.drink-row { display: grid; grid-template-columns: 1fr auto 86px; align-items: center; gap: 8px; padding: 9px 8px; border-bottom: 2px dotted #333; }
.drink-row h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.05em; }
.drink-row span { font-size: 17px; }
.row-order { min-height: 35px; }
.empty-message { padding: 35px 0; color: #777; text-align: center; }
.menu-footer { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.menu-footer a { padding: 11px 5px; border-right: 1px solid #ddd; color: #4d4d4d; font-size: 11px; text-align: center; text-decoration: none; }
.menu-footer a:nth-child(3n) { border-right: 0; }
.menu-footer a:nth-child(-n + 3) { border-bottom: 1px solid #ddd; }
.menu-footer a:hover { color: #fff; background: var(--red); }
footer { display: flex; justify-content: center; gap: 13px; padding: 20px 9px; color: #555; font-size: 12px; }
footer a { color: #1472d5; text-underline-offset: 3px; }
#detail-dialog, #age-dialog { width: min(400px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgb(0 0 0 / 28%); }
#detail-dialog::backdrop, #age-dialog::backdrop { background: rgb(0 0 0 / 44%); }
#detail-dialog form { position: relative; }
.close-button { position: absolute; z-index: 1; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #555; background: #fff; font-size: 25px; line-height: 1; }
.detail-photo { aspect-ratio: 1.25; background-image: url("assets/musashiya-reference.png"); background-repeat: no-repeat; background-size: auto 630px; }
.detail-photo.photo-one { background-position: 24% 15%; }.detail-photo.photo-two { background-position: 22% 36%; }.detail-photo.photo-three { background-position: 22% 58%; }.detail-photo.drink { display: grid; place-items: center; background-image: none; background-color: #fffdf9; }
.detail-copy { padding: 18px 20px 21px; }.detail-copy > p:first-child { margin: 0; color: var(--red); font-size: 11px; font-weight: 700; }.detail-copy h1 { margin: 5px 0 2px; font-size: 23px; letter-spacing: -.06em; }.detail-copy h1 small, .order-flow h2 small, .choice-row button small, .topping-grid button b small { display: block; margin-top: 3px; color: #777; font-size: 10px; font-weight: 500; letter-spacing: 0; }.detail-copy strong { color: var(--red); font-size: 18px; }.detail-copy > p:nth-of-type(2) { color: #555; font-size: 13px; line-height: 1.8; }.detail-order { width: 100%; min-height: 48px; margin-top: 10px; }
#age-dialog form { padding: 25px; }#age-dialog h2 { margin: 0; font-size: 21px; }#age-dialog p { color: #7d250d; font-size: 13px; line-height: 1.65; }#age-dialog label { display: block; margin: 10px 0; font-size: 15px; }#age-dialog small { display: block; min-height: 18px; color: #b10000; font-size: 12px; font-weight: 700; }#age-dialog form > div { display: flex; justify-content: end; gap: 9px; margin-top: 18px; }#age-dialog form > div button { padding: 9px 14px; border: 0; background: #e8e8e8; }#age-dialog #age-order { color: #fff; background: var(--red); }#age-dialog #age-order:disabled { background: #c5a8a8; }
.order-card { position: fixed; z-index: 4; bottom: 14px; left: 50%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; width: min(calc(100% - 28px), 414px); min-height: 58px; padding: 9px 15px; border: 0; border-radius: 15px; color: #fff; background: var(--red); box-shadow: 0 8px 20px rgb(113 0 0 / 31%); font-weight: 700; transform: translateX(-50%); cursor: pointer; }.order-card span { font-size: 16px; }.order-card b { padding: 3px 8px; border-radius: 99px; background: #fff; color: var(--red); font-size: 13px; }.order-card strong { font-size: 19px; }
#cart-dialog { width: min(400px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgb(0 0 0 / 28%); }#cart-dialog::backdrop { background: rgb(0 0 0 / 44%); }.cart-sheet > header { position: relative; display: block; padding: 22px 22px 15px; border-bottom: 1px solid #e4e4e4; }.cart-sheet > header p { margin: 0; color: var(--red); font-size: 12px; font-weight: 700; }.cart-sheet > header h2 { margin: 2px 0 0; font-size: 23px; }.cart-sheet > header .close-button { top: 18px; right: 17px; border: 1px solid #ddd; }.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 22px; border-bottom: 1px solid #ececec; }.cart-line > div:first-child { display: grid; gap: 3px; }.cart-line > div:first-child b { font-size: 15px; }.cart-line > div:first-child span { color: #777; font-size: 12px; }.cart-line-actions { display: flex; align-items: center; gap: 7px; }.cart-line-actions button { width: 28px; height: 28px; border: 1px solid #ccc; border-radius: 50%; background: #fff; font-weight: 700; }.cart-line-actions strong { min-width: 16px; text-align: center; }.cart-line-actions .cart-remove { width: auto; padding: 0 7px; border-radius: 5px; color: #b10000; font-size: 11px; }.cart-empty { padding: 28px 22px; color: #777; text-align: center; }.cart-sheet > footer { display: flex; align-items: baseline; justify-content: space-between; padding: 17px 22px 5px; color: #222; font-size: 15px; }.cart-sheet > footer strong { color: var(--red); font-size: 25px; }.cart-note { margin: 0; padding: 0 22px 22px; color: #666; font-size: 12px; }
#customize-dialog { width: min(420px, calc(100% - 22px)); max-height: calc(100dvh - 20px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgb(0 0 0 / 28%); }#customize-dialog::backdrop { background: rgb(0 0 0 / 52%); }.order-flow > header { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; min-height: 72px; padding: 10px 58px 10px 16px; color: #fff; background: var(--red); }.order-flow > header .flow-back { border: 0; color: #fff; background: transparent; font-weight: 700; }.order-flow > header div { text-align: center; }.order-flow > header p { margin: 0; font-size: 11px; font-weight: 700; }.order-flow > header h2 { margin: 2px 0 0; font-size: 18px; letter-spacing: -.05em; }.order-flow > header .close-button { top: 18px; right: 14px; background: #fff; }.flow-body { padding: 30px 25px 25px; overflow: auto; }.flow-body h1 { margin: 0 0 24px; font-size: 22px; text-align: center; }.quantity-step { min-height: 450px; text-align: center; }.quantity-picker { display: flex; align-items: center; justify-content: center; gap: 35px; }.quantity-picker button { width: 58px; height: 58px; border: 3px solid #222; border-radius: 12px; background: #fff; font-size: 35px; font-weight: 700; line-height: 1; }.quantity-picker strong { min-width: 34px; font-size: 48px; }.quantity-step > p { margin: 12px 0 32px; color: #666; font-size: 13px; }.flow-next { width: 100%; min-height: 52px; border: 0; border-radius: 10px; color: #fff; background: var(--red); font-size: 17px; font-weight: 700; }.flow-apply { margin: -8px 0 20px; color: #777; font-size: 12px; text-align: center; }.flow-section { margin-bottom: 22px; }.flow-section h3 { margin: 0 0 9px; font-size: 15px; }.flow-section h3 small { color: #777; font-size: 11px; font-weight: 400; }.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.choice-row button { min-height: 48px; border: 2px solid #ddd1c5; border-radius: 9px; background: #fff; font-size: 13px; }.choice-row button.selected { border-color: var(--red); color: var(--red); background: #fff4f4; font-weight: 700; }.topping-help { margin: 0 0 12px; padding: 11px; border-left: 4px solid var(--red); background: #fff3c9; font-size: 12px; font-weight: 700; line-height: 1.6; }.topping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.topping-grid button { display: grid; gap: 3px; min-height: 63px; padding: 9px; border: 2px solid #ccc; border-radius: 8px; background: #fff; text-align: left; }.topping-grid button.selected { border-color: var(--red); background: #fff4f4; }.topping-grid button span { color: var(--red); font-size: 12px; font-weight: 700; }.upsell-step { text-align: center; }.upsell-step h1 { font-size: 20px; line-height: 1.5; }.upsell-step > p { margin: -12px 0 18px; font-size: 13px; font-weight: 700; line-height: 1.65; }.upsell-offer { display: grid; gap: 8px; overflow: hidden; max-width: 255px; margin: auto; padding: 12px; border: 4px solid var(--red); border-radius: 15px; color: #fff; background: var(--red); }.upsell-offer .food-photo { border-radius: 8px; background-color: #fff; }.upsell-offer b { font-size: 19px; }.upsell-offer strong { font-size: 22px; }.upsell-offer button { min-height: 43px; border: 3px solid #222; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 700; }.flow-skip { width: 100%; min-height: 48px; margin-top: 22px; border: 0; border-radius: 9px; color: #fff; background: #222; font-size: 15px; font-weight: 700; }
.toast { position: fixed; z-index: 5; bottom: 20px; left: 50%; width: max-content; max-width: calc(100% - 40px); padding: 12px 16px; border-radius: 999px; color: #fff; background: #242424; font-size: 13px; transform: translateX(-50%); }
.cart-line > div:first-child em { color: #555; font-size: 12px; font-style: normal; font-weight: 700; }.cart-line > div:first-child small { color: #666; font-size: 11px; line-height: 1.55; }.cart-note small { display: block; margin-top: 3px; }
@media (max-width: 420px) { .food-card h2, .drink-card h2 { font-size: 15px; }.drink-row { grid-template-columns: 1fr auto 72px; }.drink-row h2, .drink-row span { font-size: 15px; }.row-order { font-size: 14px; }footer { gap: 9px; font-size: 11px; } }


/* Uploaded product photos: keep every card stable regardless of source image ratio. */
.food-photo[style*="background-image"],
.detail-photo[style*="background-image"] {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.food-card .food-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
}
.detail-photo[style*="background-image"] {
  aspect-ratio: 4 / 3;
}


[hidden] { display: none !important; }
.sold-out-badge { display: block; margin-top: 6px; color: #8b2c17; font-weight: 700; font-size: 14px; }
button:disabled { opacity: .6; cursor: not-allowed; }
.new-card-toolbar { display:flex; justify-content:flex-end; padding:8px 14px; }
.new-card-toolbar button { min-height:44px; padding:8px 12px; border:1px solid #ccc; border-radius:8px; color:#555; background:#fff; font:inherit; font-size:12px; }
.new-card-panel { padding:24px; }
.new-card-panel h2 { font-size:20px; }
.new-card-panel p { line-height:1.7; }
.new-card-panel > div { display:flex; gap:12px; justify-content:flex-end; }
.new-card-panel button { min-height:44px; padding:10px 16px; border:1px solid #ccc; border-radius:8px; background:#fff; }
#new-card-confirm { background:var(--theme-primary,#222); color:white; }
#cart-status:not(:empty){margin:16px 20px;padding:12px;background:#fff3c9;font-size:13px;line-height:1.7}
.choice-row{grid-template-columns:repeat(auto-fit,minmax(min(125px,100%),1fr))}
.choice-row button{min-width:0;padding:10px;overflow-wrap:anywhere}
.choice-row button span{display:block;margin-top:4px}
.order-flow>header{position:sticky;top:0;z-index:1}
.flow-section h3{overflow-wrap:anywhere}

/* Stored drink photos are shared by featured cards and compact rows. */
.drink-photo { position: relative; }
.drink-photo > .drink-product-image { position: absolute; width: 100%; height: 100%; object-fit: contain; background: #fffdf9; z-index: 1; }
.drink-row h2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.drink-row .drink-product-image { width: 48px; height: 64px; flex: 0 0 48px; object-fit: contain; }
.drink-row .drink-name { min-width: 0; overflow-wrap: anywhere; font-size: inherit; }

/* Missing product photos must not show another dish. Uploaded photos take priority. */
.food-photo:not([style*="background-image"]), .detail-photo:not([style*="background-image"]), .drink-photo { background-image: url("assets/product-placeholder.svg"); background-position: center; background-size: contain; background-repeat: no-repeat; background-color: #f2f2f0; }

.detail-allergy{margin:18px 0;padding:14px;background:#f5f5f3;border-radius:8px}.detail-allergy h2{margin:0 0 8px;font-size:15px}.detail-allergy p{margin:0;font-size:14px;line-height:1.7}
