/* ハンガン テイクアウト：見た目（色はお店のレジの画面と同じ） */

:root {
  --ink: #241D14; --ink2: #6E6252; --ink3: #9A8B73;
  --paper: #FBF5E9; --paper2: #F3EAD6; --card: #FFFFFF;
  --line: #E5D9BE; --line2: #D3C3A0;
  --navy: #17456A; --navy2: #0E3452; --navySoft: #E3ECF4;
  --red: #CE4327; --red2: #B5361C; --redSoft: #FBE4DD;
  --gold: #E8A93C; --goldSoft: #FDF3E0;
  --green: #227A52; --greenSoft: #E2F1E8;
  --tile: #FFFFFF;
  /* 白い文字をのせる色（暗い画面でも同じ） */
  --btn: #C63F24; --btn2: #A93219;
  --solidNavy: #17456A; --solidGreen: #227A52;
  --scrim: rgba(28, 21, 14, .52);
  --shadow: 0 1px 2px rgba(36, 29, 20, .06), 0 12px 28px -18px rgba(36, 29, 20, .45);
  --r: 16px; --top: 58px; --tabs: 62px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F4ECDD; --ink2: #C9BCA6; --ink3: #9A8B73;
    --paper: #16120D; --paper2: #0F0C08; --card: #221C15;
    --line: #3A3127; --line2: #4B4033;
    --navy: #8DB8DE; --navy2: #B6D3EC; --navySoft: #1B2A38;
    --red: #E8573A; --red2: #F07255; --redSoft: #3A1E17;
    --gold: #F0B656; --goldSoft: #33291A;
    --green: #4DB483; --greenSoft: #16301F;
    --tile: #F7F3EA;
    --scrim: rgba(0, 0, 0, .62);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F4ECDD; --ink2: #C9BCA6; --ink3: #9A8B73;
  --paper: #16120D; --paper2: #0F0C08; --card: #221C15;
  --line: #3A3127; --line2: #4B4033;
  --navy: #8DB8DE; --navy2: #B6D3EC; --navySoft: #1B2A38;
  --red: #E8573A; --red2: #F07255; --redSoft: #3A1E17;
  --gold: #F0B656; --goldSoft: #33291A;
  --green: #4DB483; --greenSoft: #16301F;
  --tile: #F7F3EA;
  --scrim: rgba(0, 0, 0, .62);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---- 土台 ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper2);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: anywhere;
}
body.lock { overflow: hidden; }
h1, h2, h3 { font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 900; line-height: 1.35; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a[href^="tel:"] { white-space: nowrap; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, a, label, input, select, textarea { touch-action: manipulation; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--goldSoft); color: var(--ink); }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: "Roboto Condensed", "Noto Sans JP", system-ui, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.app { position: relative; max-width: 560px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--paper); }
@media (min-width: 600px) {
  .app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px -30px rgba(36, 29, 20, .4); }
}
main { display: block; padding: 0 16px calc(var(--tabs) + var(--sb) + 28px); }
body.has-bar main { padding-bottom: calc(var(--tabs) + var(--sb) + 96px); }

/* ---- 読みこみ中 ---- */
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
.spin.sm { display: inline-block; width: 18px; height: 18px; border-width: 2.5px; border-color: currentColor; border-top-color: transparent; vertical-align: -3px; }
.spin.light { margin: 14px auto 6px; border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 0; color: var(--ink2); font-size: 14px; }
.boot p { margin: 0; }
.nojs { margin: 0; padding: 24px 16px; text-align: center; font-size: 15px; background: var(--goldSoft); }

/* ---- 上の帯 ---- */
.ribbon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 7px 16px; background: var(--gold); color: #241D14; font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.5; }
.ribbon button { padding: 3px 12px; border: 0; border-radius: 999px; background: rgba(36, 29, 20, .14); color: #241D14; font-size: 12px; font-weight: 700; }
.top {
  position: sticky; top: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: calc(var(--top) + var(--st)); padding: var(--st) 16px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports (background: color-mix(in srgb, red 50%, blue)) and ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top { background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.brand img { width: 34px; height: 34px; flex: none; border-radius: 9px; display: block; }
.brand span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand small { font-size: 10.5px; font-weight: 700; color: var(--ink2); letter-spacing: .04em; }
.brand b { font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 900; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.on { background: var(--greenSoft); color: var(--green); }
.pill.on i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pill.on i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s ease-out infinite; }
.pill.rest { background: var(--paper2); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---- 下のタブ ---- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs) + var(--sb)); padding-bottom: var(--sb);
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px -14px rgba(36, 29, 20, .5);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink2); text-decoration: none; font-size: 11px; font-weight: 700; }
.tab .ic { width: 24px; height: 24px; }
.tab.on { color: var(--red); }
.tab.on .ic { stroke-width: 2.3; }
.tab.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
.badge { position: absolute; top: 6px; left: calc(50% + 5px); }
.badge.num { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--btn); color: #fff; font-size: 11.5px; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.badge.dot { top: 9px; left: calc(50% + 7px); width: 10px; height: 10px; border-radius: 50%; background: var(--solidGreen); box-shadow: 0 0 0 2px var(--card); }

.cartbar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabs) + var(--sb) + 10px); z-index: 31;
  width: calc(100% - 24px); max-width: 536px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 18px 0 12px; border-radius: 16px;
  background: var(--btn); color: #fff; text-decoration: none;
  box-shadow: 0 12px 26px -12px rgba(150, 40, 20, .75);
  animation: barIn .22s ease-out;
}
.cartbar:active { background: var(--btn2); }
.cartbar .n { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; background: #fff; color: #C63F24; font-size: 16px; }
.cartbar .t { flex: 1; font-weight: 700; font-size: 15.5px; }
.cartbar > .num:last-child { font-size: 19px; }

#toast { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs) + var(--sb) + 14px); z-index: 70; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
body.has-bar #toast { bottom: calc(var(--tabs) + var(--sb) + 80px); }
#toast .t { max-width: 520px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); animation: toastIn .22s ease-out; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px;
  background: var(--btn); color: #fff;
  font-weight: 700; font-size: 15px; line-height: 1.3; text-align: center; text-decoration: none;
  transition: transform .1s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); background: var(--btn2); }
.btn .ic { width: 20px; height: 20px; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn.ghost:active { background: var(--paper2); }
.btn.sm { min-height: 38px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; gap: 6px; }
.btn.sm .ic { width: 17px; height: 17px; }
.btn.big { width: 100%; min-height: 54px; border-radius: 16px; font-size: 16.5px; }
.btn.light { background: #fff; color: #B5361C; box-shadow: 0 6px 16px -8px rgba(80, 20, 0, .6); }
.btn.light:active { background: #FFF1EA; }
.btn.navy { background: var(--solidNavy); color: #fff; }
.btn.navy:active { background: #0E3452; }
.btn.link { min-height: 0; padding: 6px 4px; background: none; color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn.link:active { background: none; }
.btn[disabled], .btn[disabled]:active { background: var(--line2); color: var(--ink2); box-shadow: none; transform: none; }

/* ---- ホーム ---- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 14px 0 0; padding: 22px 20px 20px; min-height: 252px;
  border-radius: 22px; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(255, 196, 84, .95) 0%, rgba(255, 196, 84, 0) 52%),
    linear-gradient(140deg, #A9321A 0%, #C63F24 45%, #E0662F 100%);
  box-shadow: 0 18px 36px -24px rgba(150, 40, 20, .9);
}
.hero p { position: relative; z-index: 1; max-width: 54%; margin: 0 0 16px; font-size: 13.5px; line-height: 1.65; }
.hero .kicker { display: inline-block; max-width: none; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.hero h1 { position: relative; z-index: 1; margin: 0 0 8px; font-size: 25px; line-height: 1.32; letter-spacing: .01em; }
.hero .btn { position: relative; z-index: 1; }
.hero-mascot { position: absolute; right: -10px; bottom: -6px; z-index: 0; width: auto; height: 128px; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(80, 20, 0, .35)); }

.status { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.status.on { background: var(--greenSoft); border-color: transparent; }
.sic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--solidGreen); color: #fff; }
.status.off .sic { background: var(--ink2); color: var(--card); }
.status b { display: block; font-size: 16px; line-height: 1.45; }
.status p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink2); }
.status .big { font-size: 22px; line-height: 1; color: var(--green); }
.status .smsg { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card); color: var(--ink); font-size: 13px; }

.active { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--solidNavy); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.active.ready { background: var(--solidGreen); animation: pop .5s ease-out; }
.a-no { min-width: 66px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .16); font-size: 28px; line-height: 1.1; text-align: center; }
.a-txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.a-txt b { font-size: 15.5px; }
.a-txt small { font-size: 12.5px; opacity: .92; }
.a-go .ic { width: 20px; height: 20px; }

.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.sec h2 { margin: 0; font-size: 19px; }
.sec .more { flex: none; color: var(--red2); font-size: 13.5px; font-weight: 700; text-decoration: none; }

.hscroll { display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar { display: none; }
.pcard { display: flex; flex: 0 0 148px; flex-direction: column; padding: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: left; box-shadow: var(--shadow); transition: transform .1s ease; }
.pcard:active, .mcard:active { transform: scale(.98); }
.pcard .ph { width: 100%; aspect-ratio: 1; }
.pcard .t { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 9px 12px 12px; }
.pcard .t b { font-size: 14px; line-height: 1.4; }
.pcard .t small { font-size: 11.5px; color: var(--ink2); line-height: 1.4; }
.pcard .price { margin-top: auto; padding-top: 4px; }
.pcard.so .ph img, .mcard.so .ph img { filter: grayscale(1); opacity: .55; }
.pcard.so .price { color: var(--ink2); }

.card { margin: 14px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.card h2 { margin: 0 0 10px; font-size: 17px; }
.how { margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how li { position: relative; margin: 0 0 12px; padding-left: 40px; counter-increment: how; }
.how li:last-child { margin-bottom: 0; }
.how li::before { content: counter(how); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: #fff; font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: 15px; }
.how b { display: block; font-size: 15px; line-height: 1.5; }
.how span { display: block; font-size: 13.5px; color: var(--ink2); }

.hint-card { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-right: 44px; background: var(--navySoft); border-color: transparent; }
.hint-card > .ic { width: 26px; height: 26px; margin-top: 1px; color: var(--navy); }
.hint-card b { display: block; margin-bottom: 6px; font-size: 14.5px; line-height: 1.5; }
.hint-card span { font-size: 13px; color: var(--ink2); }
.hint-card span .ic { width: 16px; height: 16px; vertical-align: -3px; }

.dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; margin: 0; }
.dl dt { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.dl dt .ic { width: 17px; height: 17px; color: var(--red); }
.dl dd { margin: 0; font-size: 14px; }
.dl dd small { color: var(--ink2); font-size: 12.5px; }
.dl dd a { font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.foot { margin: 30px 0 4px; color: var(--ink2); font-size: 12.5px; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 10px; }
.foot a { color: var(--ink2); }
.foot p { margin: 6px 0; }

/* ---- お知らせ ---- */
.alert { margin: 12px 0 0; padding: 12px 14px; border-left: 4px solid var(--gold); border-radius: 12px; background: var(--goldSoft); color: var(--ink); font-size: 14px; line-height: 1.65; }
.alert.red { border-left-color: var(--red); background: var(--redSoft); }
.alert.green { border-left-color: var(--green); background: var(--greenSoft); }
.alert small { color: var(--ink2); }
.hint { margin: 10px 0 0; color: var(--ink2); font-size: 13px; line-height: 1.65; }
.hint.center { text-align: center; }
.msg { margin: 6px 0 0; color: var(--red2); font-size: 13px; font-weight: 700; }
.fine { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: var(--ink2); font-size: 12px; line-height: 1.6; }
.fine .ic { width: 14px; height: 14px; margin-top: 2px; }

/* ---- メニュー ---- */
.ctabs {
  position: sticky; top: calc(var(--top) + var(--st)); z-index: 20;
  display: flex; gap: 8px; margin: 0 -16px; padding: 8px 16px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.ctabs::-webkit-scrollbar { display: none; }
.ctab { flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.ctab.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.cat { padding-top: 18px; scroll-margin-top: calc(var(--top) + var(--st) + 60px); }
.cat-h { display: flex; align-items: baseline; gap: 8px; }
.cat-h h2 { margin: 0; font-size: 20px; }
.cat-h .cnt { color: var(--ink2); font-size: 12.5px; }
.cat-sub { margin: 2px 0 10px; color: var(--ink2); font-size: 13px; }
.cat .note { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: var(--paper2); color: var(--ink2); font-size: 12.5px; }
.filters { display: flex; gap: 8px; margin: 8px -16px 10px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

.list { padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-main { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; }
.row-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.row-txt b { font-size: 15px; line-height: 1.4; }
.row.so .row-main { opacity: .55; }
.row.so .thumb img { filter: grayscale(1); }
.price { font-size: 16px; color: var(--ink); }
.add { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--btn); color: #fff; box-shadow: 0 6px 14px -8px rgba(150, 40, 20, .8); transition: transform .1s ease; }
.add:active { transform: scale(.92); background: var(--btn2); }
.add .ic { width: 22px; height: 22px; stroke-width: 2.6; }
.add i { position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--gold); color: #241D14; font-style: normal; font-size: 12px; line-height: 17px; text-align: center; border: 2px solid var(--card); }
.so-badge { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--paper2); color: var(--ink2); font-size: 12px; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mcard { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: left; box-shadow: var(--shadow); transition: transform .1s ease; }
.mcard .ph { width: 100%; aspect-ratio: 1; }
.mc-txt { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 9px 12px 12px; }
.mc-txt b { font-size: 14.5px; line-height: 1.4; }
.mc-txt .price { margin-top: auto; padding-top: 2px; }
.mcard .so-badge { position: absolute; top: 8px; left: 8px; background: rgba(36, 29, 20, .86); color: #fff; }
.incart { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--btn); color: #fff; font-style: normal; font-size: 14px; box-shadow: 0 0 0 2px #fff; }

.spice { display: inline-flex; align-items: center; gap: 2px; }
.spice i { width: 7px; height: 11px; border-radius: 50% 50% 45% 45% / 35% 35% 65% 65%; background: var(--line2); }
.spice i.on { background: var(--red); }
.spice em { margin-left: 6px; color: var(--ink2); font-size: 11.5px; font-style: normal; font-weight: 700; }

/* 写真のわく（ラーメンの袋は白い台に、フードは写真いっぱい） */
.ph, .thumb, .sh-ph { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--paper2); }
.thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; }
.white { background: var(--tile); }
.thumb.white { box-shadow: inset 0 0 0 1px var(--line); }
.white img { position: absolute; top: 7%; left: 7%; width: 86%; height: 86%; object-fit: contain; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.emo { background: var(--goldSoft); line-height: 1; }
.thumb.emo { font-size: 34px; }
.ph.emo { font-size: 60px; }
.sh-ph.emo { font-size: 88px; }
.nori { background: var(--greenSoft); }
.nori::after { content: ""; width: 62%; aspect-ratio: 1; border-radius: 12%; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 46%), repeating-linear-gradient(115deg, #17301F 0 3px, #1D3A27 3px 6px); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.sh-ph.nori::after { width: 30%; }

/* ---- 下から出る画面 ---- */
.scrim { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim); }
.scrim.anim { animation: fadeIn .2s ease-out; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: 22px 22px 0 0; background: var(--card); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.sheet.anim { animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1); }
.x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #241D14; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.x .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.sheet > .x { position: sticky; top: 10px; z-index: 3; margin: 10px 10px -54px auto; }
.x.sm { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; background: transparent; color: var(--ink2); box-shadow: none; }
.x.sm .ic { width: 18px; height: 18px; }
.sh-ph { width: 100%; aspect-ratio: 4 / 3; }
.sh-ph.emo, .sh-ph.nori { aspect-ratio: 16 / 7; }
.sh-body { padding: 16px 18px 18px; }
.sh-body h3 { margin: 0 0 6px; font-size: 21px; }
.sh-sub { margin: 6px 0 0; color: var(--ink2); font-size: 13px; }
.sh-price { margin: 6px 0 0; font-size: 22px; }
.sh-h { margin: 18px 0 8px; color: var(--ink2); font-size: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.chip small { color: var(--ink2); font-size: 12px; }
.chip .ic { width: 17px; height: 17px; }
.chip.on { border-color: var(--red); background: var(--redSoft); color: var(--red2); }
.chip.on small { color: var(--red2); }
.chip[disabled] { opacity: .5; }
.chip.sm { flex: none; min-height: 36px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; white-space: nowrap; }
.chip.sm small { font-size: 11.5px; }
.filters .chip.on { border-color: var(--btn); background: var(--btn); color: #fff; }
.filters .chip.on small { color: #fff; opacity: .85; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line2); border-radius: 999px; background: var(--card); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.stepper button:active { background: var(--paper2); }
.stepper button[disabled] { opacity: .35; }
.stepper span { min-width: 36px; font-size: 20px; text-align: center; }
.stepper.sm button { width: 38px; height: 38px; }
.stepper.sm .ic { width: 18px; height: 18px; }
.stepper.sm span { min-width: 24px; font-size: 16px; }
.sh-foot { position: sticky; bottom: 0; z-index: 2; padding: 12px 16px calc(12px + var(--sb)); border-top: 1px solid var(--line); background: var(--card); }
.sh-foot .btn .num::before { content: ""; display: inline-block; width: 1px; height: 1em; margin: 0 12px; background: rgba(255, 255, 255, .55); vertical-align: -2px; }

/* ---- カート ---- */
.pt { margin: 20px 0 12px; font-size: 24px; }
.h2 { margin: 26px 0 10px; font-size: 17px; }
.card.lines { padding: 2px 14px; }
.cline { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; }
.cline > .thumb { grid-column: 1; grid-row: 1 / 3; width: 56px; height: 56px; }
.cl-txt { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
.cl-txt b { display: block; font-size: 14.5px; line-height: 1.45; word-break: auto-phrase; }
.cl-txt > .num { color: var(--ink2); font-size: 13px; }
.cl-err { display: block; color: var(--red2); font-size: 13px; font-weight: 700; }
.cl-sub { grid-column: 3; grid-row: 1; justify-self: end; font-size: 16px; }
.cline > .stepper { grid-column: 3; grid-row: 2; justify-self: end; }
.cline.bad > .thumb { opacity: .5; }
.cline.bad > .btn { grid-column: 3; grid-row: 1 / 3; }
.more-add { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; padding: 12px; border: 1.5px dashed var(--line2); border-radius: 12px; color: var(--ink2); font-size: 14px; font-weight: 700; text-decoration: none; }
.more-add .ic { width: 18px; height: 18px; }
.card.sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14.5px; }
.card.sum .disc { color: var(--green); }
.card.sum .total { align-items: baseline; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.card.sum .total .num { font-size: 24px; }
.tax { margin: 4px 0 0; color: var(--ink2); font-size: 12.5px; text-align: right; }

.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line2); border-radius: 14px; background: var(--card); cursor: pointer; }
.opt.on { border-color: var(--red); background: var(--redSoft); }
.opt:has(input:checked) { border-color: var(--red); background: var(--redSoft); }
.opt input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--btn); }
.opt > span { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.opt b { font-size: 15.5px; line-height: 1.4; }
.opt small { color: var(--ink2); font-size: 13px; }
.opt small .num { color: var(--ink); font-size: 14px; }
.opt select { align-self: flex-start; min-width: 140px; height: 44px; margin-top: 8px; padding: 0 12px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--card); }
.opt select:disabled { opacity: .5; }

.field { margin: 0 0 14px; }
.field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.field input, .field textarea { display: block; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--card); line-height: 1.5; }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field textarea:focus, .opt select:focus { border-color: var(--navy); outline: 0; box-shadow: 0 0 0 3px var(--navySoft); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink3); }
.field.err input, .field.err textarea { border-color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.6; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--btn); }
.check a { font-weight: 700; white-space: nowrap; }
.check.err span { color: var(--red2); }

.paybox { margin: 22px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.pb-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pb-total span { font-weight: 700; }
.pb-total b { font-size: 30px; line-height: 1.1; }
.terms { margin: 10px 0 6px; padding: 0; list-style: none; }
.terms li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.6; }
.terms b { color: var(--ink2); }
.btn.pay { margin-top: 10px; min-height: 58px; font-size: 17px; }
.btn.pay .num { font-size: 19px; }

/* ---- 注文の状況 ---- */
.ohead { position: relative; overflow: hidden; margin: 14px 0 0; padding: 22px 20px 24px; border-radius: 22px; background: linear-gradient(160deg, #1D5683 0%, #17456A 45%, #0E3452 100%); color: #fff; text-align: center; box-shadow: var(--shadow); }
.ohead.ready { background: linear-gradient(160deg, #2E9E68 0%, #227A52 55%, #1A6343 100%); animation: pop .55s ease-out; }
.ohead.gray { background: linear-gradient(160deg, #6A5F50 0%, #574E42 55%, #463E33 100%); }
.otest { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 700; }
.ohead .lab { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; opacity: .9; }
.ohead .no { margin: 6px 0 4px; font-size: 76px; line-height: 1; letter-spacing: .02em; }
.ohead .omsg { margin: 6px 0 0; font-size: 17px; font-weight: 700; line-height: 1.55; }
.ohead .sub { display: inline-block; margin: 12px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 14px; font-weight: 700; }
.ohead-mascot { position: absolute; top: 8px; right: 6px; width: auto; height: 62px; pointer-events: none; animation: bob 1.8s ease-in-out infinite; }
.ohead.gray .ohead-mascot { animation: none; }

.steps { display: flex; margin: 18px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; color: var(--ink2); }
.steps li::before { content: ""; position: absolute; top: 15px; left: -50%; z-index: 0; width: 100%; height: 3px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.now::before { background: var(--solidGreen); }
.steps .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--line2); border-radius: 50%; background: var(--card); color: var(--ink2); font-size: 15px; }
.steps .dot .ic { width: 18px; height: 18px; stroke-width: 3; }
.steps li.done .dot { border-color: var(--solidGreen); background: var(--solidGreen); color: #fff; }
.steps li.now .dot { border-color: var(--solidGreen); color: var(--green); box-shadow: 0 0 0 4px var(--greenSoft); }
.steps b { font-size: 12.5px; }
.steps li.now b { color: var(--ink); }

.bell { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin: 12px 0 0; padding: 8px 14px; border: 1.5px dashed var(--line2); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.bell .ic { width: 20px; height: 20px; }
.bell.on { border-style: solid; border-color: var(--green); background: var(--greenSoft); color: var(--green); }

.oline { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.oline small { color: var(--ink2); font-size: 13px; }
.oline.disc { color: var(--green); }
.oline.total { align-items: baseline; padding-top: 12px; border-bottom: 0; font-size: 17px; font-weight: 700; }
.oline.total .num { font-size: 22px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
main > .btn.big { margin-top: 18px; }

/* ---- 注文の記録 ---- */
.hist { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.hrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.hrow:last-child { border-bottom: 0; }
.hrow:active { background: var(--paper2); }
.h-no { min-width: 52px; color: var(--navy); font-size: 22px; text-align: center; }
.h-txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.h-txt b { font-size: 14.5px; }
.h-txt small { color: var(--ink2); font-size: 12.5px; }
.hrow > .ic { width: 18px; height: 18px; color: var(--ink3); }
.tag { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--paper2); color: var(--ink2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.st-pay_wait { background: var(--goldSoft); color: var(--ink); }
.tag.st-paid { background: var(--navySoft); color: var(--navy); }
.tag.st-ready { background: var(--greenSoft); color: var(--green); }
.tag.st-canceled { background: var(--redSoft); color: var(--red2); }

/* ---- お店の情報・きまり ---- */
.shop-hero { position: relative; overflow: hidden; min-height: 176px; margin: 14px 0 0; padding: 22px 20px; border-radius: 22px; background: linear-gradient(140deg, #1D5683 0%, #17456A 50%, #0E3452 100%); color: #fff; }
.shop-hero .kicker { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; opacity: .8; }
.shop-hero h1 { position: relative; z-index: 1; margin: 4px 0 8px; font-size: 22px; }
.shop-hero p { position: relative; z-index: 1; max-width: 58%; margin: 0; font-size: 13.5px; opacity: .94; }
.shop-hero img { position: absolute; right: -8px; bottom: -6px; width: auto; height: 112px; pointer-events: none; }
.lrow { overflow: hidden; margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.lrow a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lrow a:last-child { border-bottom: 0; }
.lrow a:active { background: var(--paper2); }
.lrow .ic { width: 18px; height: 18px; color: var(--ink3); }
main > .btn.ghost.big { margin-top: 14px; }

.back { display: inline-flex; align-items: center; gap: 4px; margin: 12px 0 0 -6px; padding: 8px 12px 8px 6px; border: 0; border-radius: 10px; background: none; color: var(--ink2); font-size: 14.5px; font-weight: 700; }
.back .ic { width: 20px; height: 20px; }
.doc { margin: 6px 0 0; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.doc h1 { margin: 0 0 12px; font-size: 21px; }
.doc h2 { margin: 22px 0 6px; padding-left: 10px; border-left: 4px solid var(--red); font-size: 16px; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.8; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin: 0 0 10px; }
.doc a { font-weight: 700; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th { width: 34%; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink2); font-weight: 700; text-align: left; vertical-align: top; }
.doc td { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.doc td small { color: var(--ink2); }
.doc .upd { margin: 18px 0 0; color: var(--ink2); font-size: 12.5px; text-align: right; }
@media (max-width: 440px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: auto; }
  .doc th { padding: 12px 0 2px; border-bottom: 0; font-size: 13px; }
  .doc td { padding: 0 0 12px; }
}

.empty { padding: 36px 16px 20px; text-align: center; }
.empty img { display: block; width: 168px; height: auto; margin: 0 auto 12px; }
.empty p { margin: 0 0 16px; color: var(--ink2); font-size: 14.5px; }
.empty b { color: var(--ink); font-size: 16.5px; }

/* ---- 見本のお支払い ---- */
.demo-pay { margin: 22px 0 0; padding: 24px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); text-align: center; box-shadow: var(--shadow); }
.dp-shop { margin: 0; color: var(--ink2); font-weight: 700; }
.dp-total { margin: 6px 0 10px; font-size: 44px; line-height: 1.1; }
.demo-pay p { font-size: 13.5px; color: var(--ink2); }
.demo-pay .btns { flex-direction: column; }
.demo-pay .btn.link { align-self: center; }

/* ---- 動き ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes barIn { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.95); } 55% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spin { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}
