:root {
	--primary: #1a2332;
	--fg: #111827;
	--fg2: #4b5563;
	--surface: #ffffff;
	--surface2: #f9fafb;
	--hover: #f3f4f6;
	--active: #e5e7eb;
	--border: #e5e7eb;
	--border-light: #f3f4f6;
	--control-line: #858c98;
	--accent: #2563eb;
	--accent-subtle: #eff6ff;
	--error: #b91c1c;
	--error-subtle: #fef2f2;
	--success: #047857;
	--success-subtle: #ecfdf5;
	--warning: #92400e;
	--warning-subtle: #fffbeb;
	--warning-line: #f59e0b;
	--wa: #075e54;
	--line: #06703a;
	--shop: var(--primary);
	--shop-tint: #f3f4f6;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
	font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", Helvetica, Arial, sans-serif;
	font-size: 14px; line-height: 20px; color: var(--fg); background: var(--surface2);
	-webkit-font-smoothing: antialiased;
}
:root:lang(ar) body { font-family: ui-sans-serif, -apple-system, "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif; }
:lang(ja) :is(p, li, dt, dd, h1, h2, h3, span) { word-break: auto-phrase; overflow-wrap: break-word; }
p, dd, dt, span, h1, h2, h3 { overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }

.t12 { font-size: 12px; line-height: 16px; }
.t14 { font-size: 14px; line-height: 20px; }
/* The card row's Stripe line on the confirmation (lead 10-30): the scale's t12 step, apart from the line above. */
.stripe-line { margin-top: 4px; }
.t16 { font-size: 16px; line-height: 24px; }
.t18 { font-size: 18px; line-height: 28px; }
.t20 { font-size: 20px; line-height: 28px; }
.b { font-weight: 700; }
.sb { font-weight: 600; }
.muted { color: var(--fg2); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.self-center { align-self: center; }
.stack { display: flex; flex-direction: column; }
.g4 { gap: 4px; } .g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; text-align: center; }
.btn-lg { min-height: 48px; font-size: 16px; line-height: 24px; padding: 0 20px; }
.btn-full { display: flex; width: 100%; }
.btn-primary { background: var(--shop); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--control-line); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-line { background: var(--line); color: #fff; }
.btn-text { color: var(--accent); padding: 0 12px; }
.btn-icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 8px; color: var(--fg); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: default; }
.btn-text.start { align-self: flex-start; margin-inline-start: -12px; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.chip-ok { background: var(--success-subtle); color: var(--success); }
.chip-wait { background: var(--warning-subtle); color: var(--warning); }
.chip-grey { background: var(--hover); color: #374151; }
.chip-bad { background: var(--error-subtle); color: var(--error); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field[hidden] { display: none; }
.label { font-size: 14px; line-height: 20px; font-weight: 600; }
.label .opt { font-weight: 400; color: var(--fg2); }
.hint { font-size: 12px; line-height: 16px; color: var(--fg2); }
.input { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--control-line); background: var(--surface); font-size: 16px; line-height: 24px; }
textarea.input { padding: 12px; min-height: 96px; resize: vertical; }
.input::placeholder { color: #6b7280; }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.select { position: relative; display: block; min-width: 0; }
.select > select.input { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; }
.select > svg { position: absolute; inset-inline-end: 12px; top: 50%; margin-top: -10px; pointer-events: none; color: #374151; }
.field-error { font-size: 12px; line-height: 16px; color: var(--error); font-weight: 600; }

.choice { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; position: relative; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--shop); background: var(--shop-tint); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dot { width: 20px; height: 20px; flex: none; border: 2px solid #6b7280; background: #fff; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
input:checked + .dot { border-color: var(--shop); }
input:checked + .dot::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--shop); }
.choice-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.choice-title { font-size: 16px; line-height: 24px; font-weight: 600; }
.choice-sub { font-size: 14px; line-height: 20px; color: var(--fg2); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid.one { grid-template-columns: 1fr; }
/* A way of receiving the cart's items can't take is hidden; one left is the order's,
   shown as text: no box, no dot, not a choice (founder 10-31). */
.choice[hidden] { display: none; }
.choice-grid.fixed { grid-template-columns: 1fr; }
.choice-grid.fixed .choice, .choice-grid.fixed .choice:has(input:checked) { min-height: 0; padding: 0; background: none; box-shadow: none; cursor: default; }
.choice-grid.fixed .dot { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* The preferred day and time side by side only while each select's longest option fits
   whole (flex-basis: its content); where they don't (390px, 「11月10日（火）」 and
   「時間の指定なし」), they stack, each the full width. Nothing is cut (ui-craft T2). */
.pick-two { display: flex; flex-wrap: wrap; gap: 12px; }
.pick-two > .select { flex: 1 1 auto; }
.choice.off { background: var(--surface2); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--border); }
.choice.off .choice-title { color: var(--fg2); }
.off-why { display: none; align-items: center; gap: 4px; color: var(--warning); }
.choice.off .off-why { display: flex; }
.choice.off .on-why { display: none; }

.card-head { display: flex; flex-direction: column; gap: 4px; }
.h1 { font-size: 20px; line-height: 28px; font-weight: 700; }
.h2 { font-size: 16px; line-height: 24px; font-weight: 700; }
.list > * + * { border-top: 1px solid var(--border-light); }
.note { display: flex; gap: 12px; padding: 12px; border-radius: 8px; background: var(--warning-subtle); color: var(--warning); align-items: flex-start; }
.note-info { background: var(--hover); color: var(--fg); }
.note-error { background: var(--error-subtle); color: var(--error); }
.note > :not(svg) { flex: 1; min-width: 0; }
/* A link in running text (the 特商法 page, the privacy policy, the PPC's material): it may
   be a long sentence in some languages, so it wraps, and keeps a 44px target. */
.link { display: inline-block; align-self: flex-start; padding-block: 12px; line-height: 20px; color: var(--accent); font-weight: 600; text-align: start; }
.link > svg { display: inline-block; vertical-align: -2px; margin-inline-start: 4px; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 0; }
/* Japanese labels wrap at phrases inside 96px, as in the mockups; other languages'
   labels ("Cancellations and returns") get the room their longest word needs, up to 40%. */
.kv:not(:lang(ja)) { grid-template-columns: fit-content(40%) minmax(0, 1fr); }
.kv:not(:lang(ja)) > dt { min-width: 96px; hyphens: auto; }
.kv > dt { padding-inline-end: 12px; color: var(--fg2); }
.kv > dt, .kv > dd { padding-block: 12px; }
.kv > dd + dt, .kv > dd + dt + dd { border-top: 1px solid var(--border-light); }
.kv-tight > dt, .kv-tight > dd { padding-block: 8px; }
.kv > :nth-child(-n+2) { padding-top: 0; }
.kv > :nth-last-child(-n+2) { padding-bottom: 0; }
.kv dt.sb { color: var(--fg); }
.pre { white-space: pre-line; }

.b-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface2); }
.b-page > main { flex: 1; width: 100%; }
.b-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.b-head-in { max-width: 560px; margin: 0 auto; padding: 8px 16px; min-height: 64px; display: flex; align-items: center; gap: 12px; }
.b-head-in.has-back { padding-inline-start: 4px; }
.shop-logo { width: 40px; height: 40px; border-radius: 8px; background: var(--shop); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 24px; font-weight: 700; flex: none; }
.b-main { max-width: 560px; margin: 0 auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.b-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.item { display: flex; flex-direction: column; gap: 12px; padding-block: 12px; }
.item:first-child { padding-top: 0; }
.item:last-child { padding-bottom: 0; }
.item-main { display: flex; align-items: center; gap: 12px; }
.item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item-name { font-size: 16px; line-height: 24px; font-weight: 600; }
.item.soldout .item-name { color: var(--fg2); }
.line { display: flex; flex-direction: column; gap: 12px; }
.line-extra { flex-direction: row; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.line-extra > .field { flex: 1; min-width: 0; }
.qty { display: flex; align-items: center; gap: 8px; flex: none; }
.qty-btn { width: 44px; height: 44px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--control-line); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--fg); }
.qty-btn:disabled { opacity: .4; cursor: default; }
/* Without the script the quantity is a number field; with it, the field becomes hidden and
   the steppers drive a plain number between them, as in the mockups. */
.qty-n { width: 72px; min-height: 44px; text-align: center; font-size: 16px; line-height: 24px; font-weight: 700; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); -moz-appearance: textfield; appearance: textfield; }
.qty-v { width: 24px; text-align: center; font-size: 16px; line-height: 24px; font-weight: 700; }
.qty-n::-webkit-inner-spin-button, .qty-n::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { position: relative; display: inline-flex; }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--control-line); background: var(--surface); font-size: 14px; line-height: 20px; white-space: nowrap; cursor: pointer; }
input:checked + .seg-btn { box-shadow: inset 0 0 0 2px var(--shop); background: var(--shop-tint); font-weight: 600; }
input:focus-visible + .seg-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.another { align-self: flex-start; margin-inline-start: -12px; }
.add-btn { display: none; }
.js .item[data-empty] .add-btn { display: inline-flex; }
.js .item[data-empty] .qty, .js .item[data-empty] .item-opts, .js .item[data-empty] .another { display: none; }
.another, .copy-btn { display: none; }
.js .another, .js .copy-btn { display: inline-flex; }
.js .item[data-empty] .another { display: none; }
html:not(.js) .qty-btn { display: none; }
.b-main > form { display: flex; flex-direction: column; gap: 12px; }
.max-hint { display: none; }
.item[data-at-max] .max-hint { display: block; }
/* An item the cart can't take (no way of receiving in common): its line, and no 「追加する」. */
.mode-conflict { display: none; align-items: flex-start; gap: 4px; font-size: 14px; line-height: 20px; color: var(--warning); }
.mode-conflict > svg { flex: none; margin-top: 2px; }
.item[data-conflict] .mode-conflict { display: flex; }
.js .item[data-conflict] .add-btn { display: none; }

.when { display: contents; }
.when:not(.when-first), .email-req, .email-req-online, .email-req-digital, .email-req-paid, .phone-opt { display: none; }
@supports selector(:has(a)) {
	form:not(:has(input[name="fulfilment"][value="delivery"]:checked, input[name="fulfilment"][value="visit"]:checked)) .addr { display: none; }
	form:has(input[name="fulfilment"]:checked) .when { display: none; }
	form:has(input[name="fulfilment"][value="pickup"]:checked) .when-pickup,
	form:has(input[name="fulfilment"][value="delivery"]:checked) .when-delivery,
	form:has(input[name="fulfilment"][value="visit"]:checked) .when-visit { display: contents; }
	form:has(input[name="fulfilment"][value="online"]:checked, input[name="fulfilment"][value="digital"]:checked) .choice-cash { display: none; }
	form:has(input[name="fulfilment"][value="online"]:checked, input[name="fulfilment"][value="digital"]:checked) .email-opt { display: none; }
	form:has(input[name="fulfilment"][value="online"]:checked, input[name="fulfilment"][value="digital"]:checked) .phone-opt { display: inline; }
	/* A download takes no preferred day and time (lead walk 10-30). */
	form:has(input[name="fulfilment"][value="digital"]:checked) .pref-time { display: none; }
	/* A prepaid method on a sheet that sells in Japan: the 13条 notice comes by email (convika-m83c). */
	form[data-paid-email]:has(input[name="paymentMethod"][value="card"]:checked, input[name="paymentMethod"][value="bank_transfer"]:checked, input[name="paymentMethod"][value="payment_link"]:checked) .email-opt { display: none; }
	/* One line under the email (convika-zls1): each line shows unless a choice it needs
	   is not made (.email-req online or digital, .email-req-online, .email-req-digital,
	   .email-req-paid a prepaid method) or a
	   choice it excludes is (.email-unless-*), so the line for both shows alone. */
	.email-req, .email-req-online, .email-req-digital, .email-req-paid { display: block; }
	form:not(:has(input[name="fulfilment"][value="online"]:checked, input[name="fulfilment"][value="digital"]:checked)) .email-req,
	form:not(:has(input[name="fulfilment"][value="online"]:checked)) .email-req-online,
	form:not(:has(input[name="fulfilment"][value="digital"]:checked)) .email-req-digital,
	form:not(:has(input[name="paymentMethod"][value="card"]:checked, input[name="paymentMethod"][value="bank_transfer"]:checked, input[name="paymentMethod"][value="payment_link"]:checked)) .email-req-paid,
	form:has(input[name="fulfilment"][value="online"]:checked, input[name="fulfilment"][value="digital"]:checked) .email-unless-req,
	form:has(input[name="paymentMethod"][value="card"]:checked, input[name="paymentMethod"][value="bank_transfer"]:checked, input[name="paymentMethod"][value="payment_link"]:checked) .email-unless-paid { display: none; }
}
/* The privacy notes above the bar: the policies' label on its own line, then the links
   in one row (Convika's, the shop's), each a 44px target, wrapping only for a long name. */
/* A prepaid order's consent by the button (convika-zls1): the lead, its two items as
   bullets in the start gutter, and 8px before the line after the group (4px inside). */
.consent { padding-bottom: 4px; }
.consent-list { list-style: disc; padding-inline-start: 16px; }
.consent-list li + li { margin-top: 4px; }
.privacy-links { display: flex; flex-wrap: wrap; column-gap: 24px; padding-top: 16px; }
.privacy-links > span { flex-basis: 100%; }
.b-bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); }
.b-bar-in { max-width: 560px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.total { display: flex; flex-direction: column; gap: 0; flex: none; }
.b-bar .btn { flex: 1; }
.b-foot { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wordmark { font-weight: 700; color: #374151; letter-spacing: .01em; }
.done-head { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; text-align: center; }
.done-ico { width: 48px; height: 48px; border-radius: 999px; background: var(--hover); color: #374151; display: flex; align-items: center; justify-content: center; }
.order-no { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: .02em; }
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tl:last-child { padding-bottom: 0; }
.tl-dot { width: 20px; height: 20px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 2px #9ca3af; z-index: 1; }
.tl-dot.past { background: #374151; box-shadow: none; }
.tl-dot.now { box-shadow: inset 0 0 0 2px var(--warning-line); }
.tl-dot.now::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--warning-line); }
/* 「このあと」 under the steps: a hairline with the section's 16px gap on both sides. */
.next-line { border-top: 1px solid var(--border-light); padding-top: 16px; }
.tl:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 9.5px; top: 20px; bottom: 0; width: 1px; background: var(--border); }
.closed-box { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 32px 16px; }
.legal-rows > dd { white-space: pre-line; }
.turnstile { min-height: 65px; display: flex; justify-content: center; }
.receipt { gap: 16px; }
.receipt-to { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.receipt-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 12px 0; border-top: 2px solid #111827; border-bottom: 2px solid #111827; }
@media print { .b-head, .b-foot, .no-print { display: none !important; } body { background: #fff; } .receipt { box-shadow: none; border: none; } }
