/* KeyCenter storefront — design tokens & components
   Components: .btn(--primary|--dark|--ghost|--danger|--line|--sm|--lg|--block) .card(__head|__body|__foot) .alert(--success|--warning|--error|--info)
   .badge(--ok|--warn|--bad|--info|--muted|--accent) .field .label .input .select .textarea .help .check .table(.table--stack) .pgrid .pcard
   .ico(--red|--blue|--violet|--teal|--indigo|--pink|--green|--amber|--slate) .navbar .mega .price .kv .pager .empty .prose .steps .items
   .code-input .section .page-head .crumbs .layout-2 .side-nav .stats .stat .trust .catlist */

:root {
  --ink: #0f1720; --ink-2: #1e2a37; --text: #1d2430; --sub: #5d6775; --faint: #8f98a3;
  --line: #e6e9ee; --line-2: #f0f2f5; --bg: #f6f7f9; --card: #fff;
  --accent: #ff9900; --accent-h: #f28c00; --accent-soft: #fff5e6; --accent-ink: #8a4b00;
  --link: #0a5bb5; --ok: #15803d; --ok-soft: #ecf8f0; --warn: #a15c00; --warn-soft: #fff6e8;
  --bad: #c62828; --bad-soft: #fdeeee; --info: #1d5fae; --info-soft: #eef4fc;
  --r: 14px; --r-md: 10px; --r-sm: 8px;
  --sh-1: 0 1px 2px rgba(15, 23, 32, .04), 0 1px 3px rgba(15, 23, 32, .05);
  --sh-2: 0 14px 30px -12px rgba(15, 23, 32, .2), 0 2px 6px rgba(15, 23, 32, .05);
  --sh-3: 0 24px 48px -16px rgba(15, 23, 32, .28), 0 4px 12px rgba(15, 23, 32, .06);
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px; --gut: 20px; --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 15px; font-weight: 400; line-height: 1.8; letter-spacing: .02em; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: anywhere; line-break: strict; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; transition: color .15s; }
a:hover { color: #08468c; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .6em; color: var(--ink); font-weight: 700; letter-spacing: .03em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
small, .small { font-size: .82rem; }
.muted { color: var(--sub); } .faint { color: var(--faint); }
.text-ok { color: var(--ok); } .text-bad { color: var(--bad); }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.only-sm { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: fixed; z-index: 100; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 8px 14px; background: #fff; border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--center { justify-content: center; }
.stack > * + * { margin-top: 16px; }
.grow { flex: 1 1 auto; min-width: 0; }
.lead { font-size: 1rem; color: var(--sub); line-height: 1.9; }

/* ---------- icon tiles (category colour coding) ---------- */
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: none; background: var(--line-2); color: var(--sub); }
.ico .i { width: 21px; height: 21px; }
.ico--sm { width: 32px; height: 32px; border-radius: 9px; }
.ico--sm .i { width: 17px; height: 17px; }
.ico--lg { width: 56px; height: 56px; border-radius: 15px; }
.ico--lg .i { width: 28px; height: 28px; }
.ico--red { background: #fdecec; color: #d93a3a; }
.ico--blue { background: #e9f2fd; color: #1f6fd1; }
.ico--violet { background: #f1ecfd; color: #7247d6; }
.ico--teal { background: #e3f6f3; color: #0f8f7e; }
.ico--indigo { background: #eceffd; color: #4353c9; }
.ico--pink { background: #fdebf4; color: #d63384; }
.ico--green { background: #e8f6ec; color: #1f8a4c; }
.ico--amber { background: #fff3df; color: #c87400; }
.ico--slate { background: #eef1f4; color: #4b5866; }

/* ---------- header ---------- */
.notice-bar { background: var(--ink-2); color: #e9edf2; font-size: .82rem; text-align: center; padding: 7px var(--gut); }
.hd { background: var(--ink); color: #fff; position: relative; z-index: 41; }
.hd__in { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.logo:hover { color: #fff; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo__txt { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.hd__search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; height: 44px; background: #fff; border-radius: 999px; padding: 0 5px 0 16px; transition: box-shadow .2s; }
.hd__search:focus-within { box-shadow: 0 0 0 4px rgba(255, 153, 0, .35); }
.hd__search-ico { width: 18px; height: 18px; color: var(--faint); }
.hd__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--text); outline: none; letter-spacing: .02em; }
.hd__search input::placeholder { color: #9aa2ac; }
.hd__search button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.hd__search button:hover { background: var(--accent-h); }
.hd__search button .i { width: 17px; height: 17px; }
.hd__nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hd__link { color: #e8ecf1; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; font-size: .86rem; line-height: 1.2; transition: background .15s, color .15s; }
.hd__link:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.hd__bal { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hd__bal b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.hd .btn--primary { border-radius: 999px; box-shadow: none; }

/* category nav + mega menu */
.navbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(15, 23, 32, .02); }
.navbar__in { display: flex; align-items: center; gap: 12px; height: 56px; }
.navbar__all { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-md); background: var(--ink); color: #fff; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; flex: none; transition: background .15s; }
.navbar__all:hover, .mega-wrap.is-open .navbar__all { background: var(--ink-2); }
.navbar__caret { transition: transform .2s var(--ease); opacity: .7; }
.mega-wrap.is-open .navbar__caret { transform: rotate(180deg); }
.navbar__cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.navbar__cats::-webkit-scrollbar { display: none; }
.navbar__cats a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 8px; border-radius: var(--r-md); font-size: .84rem; color: var(--text); white-space: nowrap; transition: background .15s, color .15s; }
.navbar__cats a:first-child { padding-left: 12px; }
.navbar__cats a:hover { background: var(--bg); color: var(--ink); }
.navbar__cats a.is-on { background: var(--bg); color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.navbar__cats .ico { width: 24px; height: 24px; border-radius: 7px; }
.navbar__cats .ico .i { width: 14px; height: 14px; }
.navbar__links { display: flex; gap: 2px; flex: none; padding-left: 12px; border-left: 1px solid var(--line); }
.navbar__links a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: var(--r-md); color: var(--sub); font-size: .82rem; }
.navbar__links a:hover, .navbar__links a.is-on { color: var(--ink); background: var(--bg); }
.mega-wrap { position: static; }
.mega { position: absolute; left: 50%; top: 100%; width: min(var(--wrap) - 2 * var(--gut), calc(100vw - 2 * var(--gut))); transform: translate(-50%, 8px); display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-3); overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s, transform .22s var(--ease), visibility .18s; }
.mega-wrap.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega__main { padding: 22px 24px 24px; }
.mega__title { font-size: .76rem; font-weight: 700; color: var(--sub); letter-spacing: .08em; margin: 0 0 12px; display: flex; justify-content: space-between; }
.mega__title span { font-weight: 500; letter-spacing: .02em; }
.mega__cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mega__cats a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; color: var(--ink); transition: background .15s; }
.mega__cats a:hover { background: var(--bg); color: var(--ink); }
.mega__cats b { display: block; font-size: .88rem; line-height: 1.45; }
.mega__cats small { color: var(--sub); font-size: .74rem; }
.mega__side { background: #fafbfc; border-left: 1px solid var(--line); padding: 22px 22px 24px; display: flex; flex-direction: column; }
.mega__links { list-style: none; margin: 0 0 16px; padding: 0; }
.mega__links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); font-size: .86rem; }
.mega__links a:hover { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.mega__links .i { color: var(--sub); }
.mega__cta { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.mega__cta:hover { color: #fff; background: var(--ink-2); }
.mega__cta .i { color: var(--accent); width: 24px; height: 24px; }
.mega__cta b { display: block; font-size: .88rem; }
.mega__cta small { color: #a9b5c2; font-size: .74rem; }

/* ---------- main / footer ---------- */
main { min-height: 60vh; padding: 28px 0 64px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { color: var(--sub); margin: 0; }
.crumbs { font-size: .8rem; color: var(--faint); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--sub); }
.crumbs a:hover { color: var(--ink); }
.section { margin-top: 44px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section__head h2 { margin: 0; font-size: 1.18rem; display: flex; align-items: center; gap: 12px; }
.section__head a { font-size: .84rem; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.section__head a .i { width: 15px; height: 15px; }
.ft { background: #fff; border-top: 1px solid var(--line); font-size: .85rem; color: var(--sub); margin-top: 8px; }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 28px; }
.ft h4 { font-size: .82rem; margin-bottom: 12px; color: var(--ink); letter-spacing: .06em; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin: 8px 0; }
.ft a { color: var(--sub); }
.ft a:hover { color: var(--ink); }
.ft__brand p { margin: 12px 0 0; line-height: 1.9; }
.ft__base { border-top: 1px solid var(--line-2); padding: 16px 0 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .76rem; color: var(--faint); }
.ft .logo { color: var(--ink); }
.ft .logo img { width: 28px; height: 28px; }
.tabbar { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; color: var(--text); font: inherit; font-size: .92rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.btn:hover { color: var(--ink); background: #fafbfc; border-color: #d3d8df; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible, .select:focus-visible, .textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: 0 6px 14px -6px rgba(255, 153, 0, .6); }
.btn--primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: var(--ink); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--link); }
.btn--ghost:hover { background: var(--info-soft); border-color: transparent; color: var(--link); }
.btn--danger { color: var(--bad); border-color: #f1c9c9; }
.btn--danger:hover { background: var(--bad-soft); border-color: #e8a9a9; color: var(--bad); }
.btn--line { background: #06c755; border-color: #06c755; color: #fff; }
.btn--line:hover { background: #05b14c; border-color: #05b14c; color: #fff; }
.btn--sm { height: 36px; padding: 0 14px; font-size: .84rem; border-radius: var(--r-sm); }
.btn--lg { height: 54px; font-size: 1rem; padding: 0 28px; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 7px; color: var(--ink); }
.label .req { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: .68rem; vertical-align: 1px; }
.input, .select, .textarea { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d6dbe1; border-radius: var(--r-md); background: #fff; font: inherit; font-size: 16px; color: var(--text); letter-spacing: .02em; transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: #a6aeb8; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.textarea--mono { font-family: var(--mono); font-size: 13px; }
.input:hover, .select:hover, .textarea:hover { border-color: #c3c9d1; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 4px rgba(10, 91, 181, .12); }
.input[readonly] { background: var(--bg); color: var(--sub); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b7480 50%), linear-gradient(135deg, #6b7480 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.help { font-size: .8rem; color: var(--sub); margin-top: 7px; line-height: 1.7; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; line-height: 1.7; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.pw { position: relative; }
.pw .input { padding-right: 70px; }
.pw__toggle { position: absolute; right: 7px; top: 8px; height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--link); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.pw__toggle:hover { background: var(--info-soft); }
.code-input { font-family: var(--mono); font-size: 28px; letter-spacing: .5em; text-align: center; height: 62px; padding-left: .5em; border-radius: 12px; }
.form-narrow { max-width: 460px; margin: 0 auto; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card__head { padding: 16px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__head h2, .card__head h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.card__body { padding: 22px; }
.card__body + .card__head { border-top: 1px solid var(--line-2); }
.card__foot { padding: 14px 22px; border-top: 1px solid var(--line-2); background: #fafbfc; border-radius: 0 0 var(--r) var(--r); }
.card + .card { margin-top: 16px; }
.alert { display: flex; gap: 11px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r-md); border: 1px solid; font-size: .9rem; margin-bottom: 18px; line-height: 1.7; }
.alert .i { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert--success { background: var(--ok-soft); border-color: #c6e8d1; color: #14532d; }
.alert--warning { background: var(--warn-soft); border-color: #f5ddb3; color: #7c4300; }
.alert--error { background: var(--bad-soft); border-color: #f4c7c7; color: #8f1d1d; }
.alert--info { background: var(--info-soft); border-color: #cfdff4; color: #164a87; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1; letter-spacing: .02em; white-space: nowrap; background: var(--line-2); color: var(--sub); }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--muted { background: var(--line-2); color: var(--sub); }
.badge--accent { background: var(--accent-soft); color: var(--accent-ink); }
.kv { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px 18px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; min-width: 0; }
.empty { text-align: center; padding: 48px 16px; color: var(--sub); }
.empty .i { width: 40px; height: 40px; margin: 0 auto 12px; color: #c3c9d1; }
.divider { border: 0; border-top: 1px solid var(--line-2); margin: 22px 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 700; font-size: .76rem; letter-spacing: .04em; color: var(--sub); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #fafbfc; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.hero__main { padding: 46px 46px 40px; }
.hero h1 { font-size: 2.05rem; line-height: 1.4; margin-bottom: 14px; letter-spacing: .04em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(255, 153, 0, .32) 62%); }
.hero p { color: var(--sub); margin-bottom: 28px; font-size: .96rem; line-height: 1.95; max-width: 34em; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .78rem; font-weight: 700; margin-bottom: 18px; }
.hero__eyebrow .i { width: 14px; height: 14px; }
.hero__stats { display: flex; gap: 32px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.hero__stats b { display: block; font-size: 1.4rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.3; }
.hero__stats span { font-size: .76rem; color: var(--sub); }
.hero__points { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; background: #fdf8f0; border-left: 1px solid #f1e6d6; }
.hero__side-t { margin: 0 0 18px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); }
.hero__steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 18px; }
.hero__points .hero__steps li { counter-increment: st; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding: 0; }
.hero__steps li::before { content: counter(st); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid #ecd9bd; color: var(--accent-ink); font-weight: 700; font-size: .88rem; display: grid; place-items: center; }
.hero__steps b { color: var(--ink); font-size: .95rem; line-height: 1.5; }
.hero__steps span { color: #5f574c; font-size: .84rem; line-height: 1.75; }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; list-style: none; padding: 0; }
.trust li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.trust b { display: block; font-size: .86rem; color: var(--ink); line-height: 1.45; }
.trust li > div > span { font-size: .75rem; color: var(--sub); line-height: 1.45; display: block; }

/* ---------- categories ---------- */
.catlist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.catlist a { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); height: 100%;
  transition: border-color .18s, box-shadow .22s var(--ease), transform .22s var(--ease); }
.catlist a:hover { color: var(--ink); border-color: #d5dae1; box-shadow: var(--sh-2); transform: translateY(-2px); }
.catlist b { display: block; font-size: .9rem; line-height: 1.5; }
.catlist small { color: var(--sub); font-size: .76rem; }
.catlist .chev { margin-left: auto; width: 16px; height: 16px; color: #b3bac3; transition: transform .2s var(--ease), color .2s; }
.catlist a:hover .chev { transform: translateX(3px); color: var(--ink); }
.catlist--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- product grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.pgrid > li { min-width: 0; }
.pcard { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; color: var(--text);
  transition: border-color .18s, box-shadow .24s var(--ease), transform .24s var(--ease); }
.pcard:hover { color: var(--text); border-color: #d5dae1; box-shadow: var(--sh-2); transform: translateY(-3px); }
.pcard__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-width: 0; padding-right: 30px; }
.pcard__cat { font-size: .74rem; color: var(--sub); line-height: 1.4; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__name { font-size: .92rem; font-weight: 700; line-height: 1.65; color: var(--ink); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.95em; letter-spacing: .02em; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 23px; }
.pcard__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pcard__stock { font-size: .74rem; color: var(--sub); line-height: 1.5; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.pcard__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, .14); }
.pcard--low .pcard__stock::before { background: #e59400; box-shadow: 0 0 0 3px rgba(229, 148, 0, .16); }
.pcard--out { opacity: .6; }
.pcard--out .pcard__stock::before { background: #c3c9d1; box-shadow: none; }
.pcard__go { position: absolute; right: 14px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--sub); transition: background .2s, color .2s, transform .2s var(--ease); }
.pcard__go .i { width: 15px; height: 15px; }
.pcard:hover .pcard__go { background: var(--accent); color: var(--ink); transform: translateX(2px); }
.price { font-weight: 700; color: var(--ink); font-size: 1.25rem; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: 0; }
.price small { font-size: .66rem; font-weight: 500; color: var(--sub); margin-left: 3px; letter-spacing: .02em; }
.price--lg { font-size: 2.1rem; }
.stars { color: #e39a00; letter-spacing: 1px; font-size: .85rem; }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.pd__head { display: flex; gap: 16px; align-items: flex-start; }
.pd__title { font-size: 1.42rem; margin-bottom: 12px; line-height: 1.55; }
.pd__desc { white-space: pre-line; font-size: .94rem; line-height: 2; color: var(--text); }
.buybox { position: sticky; top: 76px; border-radius: 18px; }
.buybox .card__body { padding: 26px; }
.buybox .price--lg { margin: 6px 0 4px; }
.buybox__tax { font-size: .8rem; color: var(--sub); }
.qty { display: flex; align-items: stretch; width: 160px; height: 48px; border: 1px solid #d6dbe1; border-radius: var(--r-md); overflow: hidden; background: #fff; }
.qty button { width: 48px; border: 0; background: var(--bg); font-size: 1.2rem; cursor: pointer; color: var(--ink); transition: background .15s; }
.qty button:hover { background: var(--line); }
.qty input { width: 100%; min-width: 0; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input:focus { outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sum { margin: 18px 0; padding: 14px 16px; background: var(--bg); border-radius: var(--r-md); font-size: .88rem; }
.sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum span:last-child { font-variant-numeric: tabular-nums; }
.sum .sum__total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.facts { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line-2); font-size: .84rem; color: var(--sub); display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: center; }
.facts .i { width: 17px; height: 17px; color: var(--ok); }

/* ---------- account ---------- */
.layout-2 { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; position: sticky; top: 76px; box-shadow: var(--sh-1); }
.side-nav a, .side-nav__btn { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.side-nav a:hover, .side-nav__btn:hover { background: var(--bg); color: var(--ink); }
.side-nav a.is-on { background: var(--ink); color: #fff; }
.side-nav a.is-on .i { color: var(--accent); }
.side-nav .i { color: var(--sub); }
.side-nav__btn { color: var(--sub); }
.side-nav hr { border: 0; border-top: 1px solid var(--line-2); margin: 8px 4px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh-1); }
.stat__label { font-size: .8rem; color: var(--sub); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.stat__value { font-size: 1.65rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.25; letter-spacing: 0; }
.stat--accent { background: radial-gradient(130% 120% at 100% 0%, #2a3b50 0%, var(--ink) 65%); border-color: var(--ink); }
.stat--accent .stat__label { color: #a9b5c2; }
.stat--accent .stat__value { color: #fff; }
.stat--accent .btn { margin-top: 12px; }
.items { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.items__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: .82rem; }
.items ol { margin: 0; padding: 0; list-style: none; max-height: 440px; overflow: auto; counter-reset: it; }
.items li { counter-increment: it; display: flex; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.items li:nth-child(even) { background: #fcfcfd; }
.items li:last-child { border-bottom: 0; }
.items li::before { content: counter(it); color: var(--faint); min-width: 2.2em; text-align: right; font-size: 12px; }
.items li span { flex: 1; min-width: 0; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font: inherit; font-family: var(--font); font-size: 11px; font-weight: 700; padding: 3px 9px; cursor: pointer; color: var(--sub); line-height: 1.6; transition: color .15s, border-color .15s; }
.copy:hover { color: var(--ink); border-color: #c9ced4; }
.copy.is-done { color: var(--ok); border-color: #bfe0cc; }
.copy .i { width: 13px; height: 13px; }
.thread { display: grid; gap: 10px; }
.msg { padding: 12px 16px; border-radius: 12px; background: var(--bg); font-size: .9rem; max-width: 92%; }
.msg--customer { background: var(--info-soft); justify-self: end; }
.msg--vendor, .msg--admin, .msg--system { background: #fff; border: 1px solid var(--line); }
.msg__meta { font-size: .74rem; color: var(--sub); margin-bottom: 3px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border: 1px solid #d6dbe1; border-radius: var(--r-md); background: #fff; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.amounts span:hover { border-color: #b9c0c9; }
.amounts input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fafbfc; }
.amounts input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating input { position: absolute; opacity: 0; }
.rating label { font-size: 28px; color: #d7dbe0; cursor: pointer; line-height: 1; transition: color .12s; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: #e39a00; }

/* ---------- auth ---------- */
.auth { max-width: 470px; margin: 12px auto 0; }
.auth.card { border-radius: 20px; box-shadow: var(--sh-2); }
.auth .card__body { padding: 34px; }
.auth h1 { font-size: 1.35rem; text-align: center; margin-bottom: 6px; }
.auth__lead { text-align: center; color: var(--sub); font-size: .88rem; margin-bottom: 24px; }
.auth__alt { text-align: center; font-size: .88rem; margin-top: 20px; color: var(--sub); }
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 26px; counter-reset: st; }
.steps li { flex: 1; text-align: center; font-size: .74rem; color: var(--faint); position: relative; counter-increment: st; padding-top: 34px; }
.steps li::before { content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--faint); font-weight: 700; display: grid; place-items: center; font-size: .74rem; z-index: 1; }
.steps li + li::after { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.steps li.is-on, .steps li.is-done { color: var(--ink); font-weight: 700; }
.steps li.is-on::before { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.steps li.is-done::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li.is-done + li::after, .steps li.is-on::after { background: var(--ink); }

/* ---------- content pages ---------- */
.prose { font-size: .95rem; line-height: 2; }
.prose h2 { font-size: 1.08rem; margin: 2.2em 0 .7em; padding-left: 12px; border-left: 3px solid var(--accent); line-height: 1.55; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: .98rem; margin: 1.7em 0 .5em; }
.prose ol, .prose ul { padding-left: 1.5em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose .note { background: var(--bg); border-radius: var(--r-md); padding: 14px 18px; margin: 1.3em 0; font-size: .9rem; }
.prose .date { color: var(--sub); text-align: right; margin-top: 2.4em; font-size: .85rem; }
.prose table.spec { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1em; font-size: .9rem; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.prose table.spec th, .prose table.spec td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.prose table.spec tr:last-child th, .prose table.spec tr:last-child td { border-bottom: 0; }
.prose table.spec th { width: 30%; background: #fafbfc; font-weight: 700; color: var(--ink); border-right: 1px solid var(--line); }
.prose details.faq { border: 1px solid var(--line); border-radius: var(--r-md); margin: 0 0 10px; background: #fff; transition: box-shadow .2s; }
.prose details.faq[open] { box-shadow: var(--sh-1); }
.prose details.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; color: var(--ink); }
.prose details.faq summary::-webkit-details-marker { display: none; }
.prose details.faq summary::before { content: "Q"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .8rem; margin-right: 12px; vertical-align: 1px; }
.prose details.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.prose details.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.prose details.faq > div { padding: 0 18px 16px 54px; color: var(--text); }
.legal-nav { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.legal-nav a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); }
.legal-nav a:hover { background: var(--bg); }
.legal-nav a.is-on { background: var(--bg); font-weight: 700; color: var(--ink); }

/* ---------- support ---------- */
.support { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.qrbox { text-align: center; }
.qrbox img { width: 220px; height: 220px; object-fit: contain; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: #fff; }

/* ---------- pager ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: .85rem; color: var(--text); }
.pager span.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover { border-color: #c9ced4; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pgrid, .catlist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd { grid-template-columns: minmax(0, 1fr) 340px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navbar__links { display: none; }
  .mega__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hd__search { display: none; }
  .mega-wrap { display: none; }
  .navbar__in { height: 52px; }
  .navbar__cats { mask-image: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__main { padding: 30px 26px 26px; }
  .hero__points { padding: 26px; border-left: 0; border-top: 1px solid #f3e6d6; }
  .pd, .layout-2, .support { grid-template-columns: 1fr; }
  .buybox, .side-nav { position: static; }
  .side-nav { display: flex; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a, .side-nav__btn { flex: none; width: auto; white-space: nowrap; }
  .side-nav hr, .side-nav form { display: none; }
  /* マイページ menu on phones: Amazon-style pill buttons, 3 per row (マイページ itself is in the tab bar) */
  .side-nav--acct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; background: none; border: 0; box-shadow: none; }
  .side-nav.side-nav--acct hr, .side-nav--acct .i, .side-nav--acct > a:first-child { display: none; }
  .side-nav--acct a, .side-nav--acct .side-nav__btn { justify-content: center; height: 40px; padding: 0 8px; border: 1px solid #d5d9de; border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap; box-shadow: 0 1px 1px rgba(15, 23, 32, .04); }
  .side-nav--acct a:hover, .side-nav--acct .side-nav__btn:hover { background: #f7f8f9; }
  .side-nav--acct a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .side-nav.side-nav--acct form { display: contents; }
  .side-nav--acct .side-nav__btn { color: var(--sub); }
  .ft__grid { grid-template-columns: 1fr 1fr; }
  .ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; --r: 12px; }
  body { font-size: 14.5px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.28rem; }
  .hide-sm { display: none !important; } .only-sm { display: initial; }
  .hd__in { height: 56px; gap: 10px; }
  .logo img { width: 30px; height: 30px; }
  .logo__txt { font-size: 17px; }
  .hd__link span { display: none; }
  .hd__link { padding: 8px; }
  main { padding: 18px 0 44px; }
  .hero { border-radius: 16px; }
  .hero h1 { font-size: 1.45rem; }
  .hero__main { padding: 24px 20px 22px; }
  .hero__points { padding: 22px 20px; gap: 16px; }
  .hero__stats { gap: 18px; margin-top: 22px; }
  .hero__stats b { font-size: 1.15rem; }
  .trust { gap: 8px; }
  .trust li { padding: 12px; gap: 10px; }
  .trust .ico { width: 34px; height: 34px; }
  .section { margin-top: 32px; }
  .catlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catlist a { padding: 12px; gap: 10px; }
  .catlist .ico { width: 34px; height: 34px; border-radius: 9px; }
  .catlist b { font-size: .84rem; }
  .catlist .chev { display: none; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { padding: 13px; }
  .pcard:hover { transform: none; }
  .pcard__top { margin-bottom: 10px; gap: 8px; padding-right: 0; }
  .pcard__top .ico { width: 30px; height: 30px; border-radius: 8px; }
  .pcard__top .ico .i { width: 16px; height: 16px; }
  .pcard__name { font-size: .85rem; }
  .pcard__go { display: none; }
  .price { font-size: 1.1rem; }
  .price--lg { font-size: 1.8rem; }
  .pcard__foot { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .card__body { padding: 18px; }
  .card__head, .card__foot { padding: 13px 18px; }
  .buybox .card__body { padding: 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { font-size: .8rem; margin-top: 10px; }
  .auth .card__body { padding: 26px 20px; }
  .table--stack thead { display: none; }
  .table--stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 16px; border: 0; text-align: right; }
  .table--stack td::before { content: attr(data-label); color: var(--sub); font-size: .8rem; text-align: left; flex: none; }
  .ft__grid { gap: 22px; padding-top: 30px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 7px; font-size: 10.5px; color: var(--sub); }
  .tabbar a.is-on { color: var(--ink); font-weight: 700; }
  .tabbar a.is-on .i { color: var(--accent-h); }
  .tabbar .i { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.ico--brand { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bi { width: 22px; height: 22px; flex: none; }
.ico--sm .bi { width: 18px; height: 18px; } .ico--lg .bi { width: 30px; height: 30px; }
.navbar__cats .ico .bi { width: 15px; height: 15px; }
.btn--line .bi, .btn .bi { width: 20px; height: 20px; }

/* ---------- mailbox (Outlook/Hotmail OAuth2 reader) ---------- */
.item-acts { display: inline-flex; gap: 6px; flex: none; }
.copy--mail { color: #0f5fb8; border-color: #cfe0f5; background: #f3f8fe; }
.copy--mail:hover { color: #0a4a91; border-color: #9fc2ea; }
.copy--mail .i { width: 13px; height: 13px; }
.mail-hint { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f3f8fe; border: 1px solid #d9e7f7; font-size: .84rem; }
.mail-hint p { margin: 0; color: #2b4a6f; line-height: 1.75; }
.mailbox { max-width: 860px; margin: 0 auto; }
.mailbox__head { padding: 18px 20px; }
.mailbox__top { display: flex; gap: 14px; align-items: center; }
.mailbox__title { font-size: 1.2rem; margin: 0; }
.mailbox__addr { margin: 2px 0 0; font-size: .85rem; color: var(--sub); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mailbox__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.mailbox__tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.mailbox__status { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; }
.mailbox__status .i { color: var(--ok); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.seg a { padding: 6px 12px; border-radius: 8px; font-size: .82rem; font-weight: 700; color: var(--sub); white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--sub); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: #d3d8df; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:checked + span { color: var(--ok); }
.otp { margin-top: 14px; padding: 18px 20px; border-color: #f3d29f; background: linear-gradient(160deg, #fffaf3, #fff5e6); }
.otp__label { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--accent-ink); }
.otp__ago { margin-left: auto; font-weight: 500; color: var(--sub); }
.otp__row { display: flex; align-items: center; gap: 14px; margin: 8px 0 4px; flex-wrap: wrap; }
.otp__code { font-size: 2.2rem; font-weight: 700; letter-spacing: .18em; color: var(--ink); }
.otp__subj { margin: 0; }
.mails { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mail { padding: 0; overflow: hidden; }
.mail summary { list-style: none; cursor: pointer; padding: 14px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.mail summary::-webkit-details-marker { display: none; }
.mail summary:hover { background: #fafbfc; }
.mail__from { font-size: .82rem; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.mail__date { font-size: .78rem; color: var(--faint); text-align: right; white-space: nowrap; }
.mail__subject { grid-column: 1 / -1; font-weight: 700; color: var(--ink); font-size: .92rem; }
.mail__codes { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 4px; }
.code-chip { font-family: var(--mono); font-size: .9rem; font-weight: 700; padding: 3px 10px; border-radius: 8px; border: 1px dashed #e8b96a; background: var(--accent-soft); color: var(--accent-ink); cursor: pointer; letter-spacing: .08em; }
.code-chip:hover, .code-chip.is-done { border-style: solid; }
.mail__body { padding: 0 18px 18px; white-space: pre-wrap; font-size: .86rem; line-height: 1.8; color: var(--text); border-top: 1px solid var(--line-2); padding-top: 14px; max-height: 420px; overflow: auto; }
@media (max-width: 640px) {
  .mailbox__tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .otp__code { font-size: 1.8rem; }
  .items li { flex-wrap: wrap; }
  .item-acts { margin-left: auto; }
}

/* ---------- Japanese line breaking ---------- */
/* .bx = BudouX phrases joined by <wbr>: wrap only between phrases; overflow-wrap rescues very long tokens */
.bx { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, .pcard__name, .bcard__title { text-wrap: balance; }
p, li, dd, small { text-wrap: pretty; }

/* breadcrumbs: always one line, the current page shrinks with an ellipsis */
.crumbs { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.crumbs > * { flex: none; }
.crumbs > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  /* categories: app-style single-column list instead of a cramped 2-column grid */
  .catlist { grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
  .catlist li + li a { border-top: 1px solid var(--line-2); }
  .catlist a { border: 0; border-radius: 0; padding: 13px 14px; gap: 12px; box-shadow: none; transform: none !important; }
  .catlist a:hover { box-shadow: none; background: #fafbfc; }
  .catlist a > span:nth-child(2) { display: flex; flex: 1; min-width: 0; align-items: baseline; justify-content: space-between; gap: 10px; }
  .catlist b { font-size: .9rem; }
  .catlist small { flex: none; }
  .catlist .chev { display: block; }
  .catlist .ico { width: 36px; height: 36px; }

  /* product cards: the category label repeats the section title — drop it, keep the icon */
  .pcard__cat { display: none; }
  .pcard__name { min-height: 0; -webkit-line-clamp: 4; margin-bottom: 10px; }
  .pcard__meta { min-height: 0; margin-bottom: 10px; }
  .pcard__meta:empty { display: none; }

  /* product detail heading: smaller icon so the title gets the width */
  .pd__head { gap: 12px; align-items: flex-start; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
  .pd__head .pd__title { padding-top: 6px; }
  .pcard__name { font-size: .84rem; }
  .pd__head .ico--lg { width: 44px; height: 44px; border-radius: 12px; }
  .pd__head .ico--lg .i, .pd__head .ico--lg .bi { width: 24px; height: 24px; }
  .pd__title { font-size: 1.18rem; margin-bottom: 0; }
  .pd .card__body > .row.mb-1 { margin-bottom: 12px; }
  .page-head > .row:first-child { flex-wrap: nowrap; align-items: center; gap: 12px; }
  .page-head > .row:first-child > div { min-width: 0; }
  .page-head h1 { font-size: 1.15rem; }
  .page-head .ico--lg { width: 44px; height: 44px; border-radius: 12px; }
  .page-head .ico--lg .i, .page-head .ico--lg .bi { width: 24px; height: 24px; }

  .section__head h2 { font-size: 1.05rem; gap: 10px; }
  .section__head h2 .ico { width: 28px; height: 28px; }
  .hero__points li { padding: 12px 14px; }
  .trust b { font-size: .82rem; }
}

/* ---- mobile v13: roomier layout — full-width row cards, wider gutters used for content, steadier type ---- */
@media (max-width: 640px) {
  :root { --gut: 12px; }
  body { font-size: 15px; }
  .pgrid { grid-template-columns: 1fr; gap: 8px; }
  .pcard { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ico name price" "ico meta stock"; column-gap: 12px; row-gap: 4px; align-items: center; padding: 12px 14px; border-radius: 14px; }
  .pcard__top { grid-area: ico; margin: 0; padding: 0; align-self: start; }
  .pcard__top .ico { width: 40px; height: 40px; border-radius: 11px; }
  .pcard__top .ico .i, .pcard__top .ico .bi { width: 20px; height: 20px; }
  .pcard__name { grid-area: name; font-size: .95rem; line-height: 1.5; margin: 0; -webkit-line-clamp: 3; min-height: 0; letter-spacing: .01em; }
  .pcard__meta { grid-area: meta; margin: 0; min-height: 0; gap: 4px; }
  .pcard__meta .badge { font-size: .68rem; padding: 2px 7px; }
  .pcard__foot { display: contents; }
  .pcard__foot .price { grid-area: price; justify-self: end; align-self: start; font-size: 1.05rem; white-space: nowrap; text-align: right; }
  .pcard__foot .price small { display: block; font-size: .62rem; text-align: right; }
  .pcard__stock { grid-area: stock; justify-self: end; font-size: .7rem; }
  .pcard__stock::before { width: 6px; height: 6px; }
  .section__head h2 { font-size: 1.1rem; }
  .wrap { padding-left: var(--gut); padding-right: var(--gut); }
}

/* ---- delivery choice + Japanese address form (package products) ---- */
.delivery { border: 0; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.delivery legend { padding: 0; margin-bottom: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.opt input { margin-top: 4px; accent-color: var(--accent-2, #f28c00); flex: none; }
.opt span { display: grid; gap: 2px; min-width: 0; }
.opt b { font-size: .92rem; color: var(--ink); }
.opt small { font-size: .76rem; color: var(--sub); line-height: 1.5; }
.opt:has(input:checked) { border-color: var(--accent); background: #fffaf1; }
.shipform { margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.shipform .field { margin-bottom: 12px; }
.zip { display: flex; align-items: center; gap: 8px; }
.zip span { font-weight: 700; color: var(--sub); }
.zip .input { max-width: 160px; letter-spacing: .06em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.help--err { color: #c0392b; }
.shipbox { display: grid; gap: 4px; line-height: 1.7; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.steps-v { list-style: none; counter-reset: s; margin: 16px 0; padding: 0; display: grid; gap: 14px; }
.steps-v li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
.steps-v li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.steps-v b { font-size: .95rem; color: var(--ink); }
.steps-v span { font-size: .88rem; color: var(--text); line-height: 1.8; }
.guide-trouble { border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 16px; }
.guide-trouble summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: .93rem; color: var(--ink); list-style: none; }
.guide-trouble summary::-webkit-details-marker { display: none; }
.guide-trouble[open] { background: var(--bg); }
.guide-trouble > div { padding: 0 16px 16px; font-size: .88rem; line-height: 1.8; }
.guide-trouble ol { margin: 8px 0; padding-left: 1.4em; }

/* ---- still floral backdrop: a fixed, separately composited layer — content scrolls over it, no repaint on scroll ---- */
html { background: #fbf8f0; }
body { background: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #fbf8f0 url(/img/bg-pattern.svg) 0 0 / 360px 360px repeat; transform: translateZ(0); }

/* ---- 注文履歴: order cards (details), delivered rows, detail dialog ---- */
.olist { display: grid; gap: 10px; }
.ocard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.ocard[open] { border-color: #dfe3e8; }
.ocard__sum { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; border-radius: var(--r); }
.ocard__sum::-webkit-details-marker { display: none; }
.ocard__sum:hover { background: #fcfcfd; }
.ocard__sum:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.ocard__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ocard__name { font-size: .95rem; color: var(--ink); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--faint); }
.ocard__side { display: flex; align-items: center; gap: 16px; flex: none; }
.ocard__sum-r { display: grid; text-align: right; line-height: 1.35; }
.ocard__sum-r b { color: var(--ink); font-size: .95rem; }
.ocard__sum-r small { color: var(--faint); font-size: .74rem; }
.ocard__chev { width: 18px; height: 18px; color: var(--faint); flex: none; transition: transform .2s var(--ease); }
.ocard[open] .ocard__chev { transform: rotate(180deg); }
.ocard__body { padding: 0 18px 16px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.ocard__note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-sm); background: #fafbfc; color: var(--sub); font-size: .85rem; }
.ocard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: .85rem; }
.ocard__foot a { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }

.oi-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.oi-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--sub); }
.oi-bar__acts { display: inline-flex; gap: 6px; }
.oi { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.oi li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.oi li:last-child { border-bottom: 0; }
.oi__n { width: 1.8em; flex: none; text-align: right; color: var(--faint); font-size: .75rem; }
.oi__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.oi__login { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink); }
.oi__tags { display: inline-flex; gap: 4px; flex: none; }
.oi__acts { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.oi__open { height: 28px; padding: 0 12px; font-size: .78rem; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: .68rem; font-weight: 700; line-height: 18px; background: var(--line-2); color: var(--sub); letter-spacing: .02em; }
.tag--2fa { background: #eef6f1; color: #2f7a4f; }
.tag--mail { background: #eef4fc; color: #2a5f9e; }

.od { width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--text); box-shadow: var(--sh-3); overflow: hidden; }
.od[open] { display: flex; flex-direction: column; }
.od::backdrop { background: rgba(15, 23, 32, .42); }
.od__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line-2); font-size: .85rem; font-weight: 700; color: var(--sub); }
.od__x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--sub); cursor: pointer; }
.od__x:hover { background: var(--line-2); color: var(--ink); }
.od__bar, .od__foot { flex: none; }
.od__body { padding: 18px 20px; overflow: auto; flex: 1 1 auto; min-height: 0; } /* not flex:1 — Safari collapses a 0% basis inside an auto-height dialog */
.od__foot { display: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
.od__head { margin-bottom: 14px; }
.od__eyebrow { margin: 0; font-size: .75rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od__login { margin: 2px 0 0; font-size: 1.02rem; font-weight: 700; color: var(--ink); word-break: break-all; }
.od__otp { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 16px 16px; border-radius: 12px; background: #f6faf7; border: 1px solid #dcebe1; overflow: hidden; }
.od__otp-main { display: grid; }
.od__otp-label { font-size: .74rem; font-weight: 700; color: #2f7a4f; }
.od__otp-code { font-size: 1.9rem; font-weight: 700; letter-spacing: .12em; color: var(--ink); line-height: 1.25; }
.od__otp-side { display: grid; justify-items: end; gap: 6px; }
.od__otp-left { font-size: .75rem; color: var(--sub); }
.od__otp-left b { font-variant-numeric: tabular-nums; }
.od__otp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #e3efe7; }
.od__otp-bar span { display: block; height: 100%; width: 100%; background: #4f9a6c; transition: width 1s linear; }
.od__otp.is-low .od__otp-bar span { background: #d08a2a; }
.od__fields { margin: 0; border: 1px solid var(--line); border-radius: 12px; }
.od__f { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.od__f:last-child { border-bottom: 0; }
.od__f dt { font-size: .72rem; font-weight: 700; color: var(--faint); margin-bottom: 2px; }
.od__f dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.od__v { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); word-break: break-all; line-height: 1.6; }
.od__v--long { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--sub); font-size: 12px; }
.od__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.od__acts .btn { flex: 1 1 auto; justify-content: center; }
body.has-od { overflow: hidden; }

@media (max-width: 640px) {
  .ocard__sum { gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
  .ocard__sum .ico { display: none; }
  .ocard__main { flex-basis: calc(100% - 30px); }
  .ocard__side { width: 100%; justify-content: space-between; order: 3; }
  .ocard__chev { order: 2; }
  .ocard__sum-r { display: flex; align-items: baseline; gap: 8px; }
  .ocard__body { padding: 12px 12px 14px; }
  .oi li { gap: 8px; padding: 9px 10px; }
  .oi__main { flex-direction: column; align-items: flex-start; gap: 2px; }
  .oi__login { max-width: 100%; }
  .hide-xs { display: none !important; }
  .od { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .od__body { padding: 16px; }
  .od__foot { display: block; }
  .od__acts .btn { flex-basis: 100%; }
  .od__otp-code { font-size: 1.6rem; }
}
.od__x:focus:not(:focus-visible) { outline: none; }

/* ---- PayPay top-up ---- */
.pp-mark { display: inline-block; margin-right: 6px; padding: 0 9px; border-radius: 7px; background: #ff0033; color: #fff; font-size: .82em; line-height: 1.55; letter-spacing: .01em; vertical-align: 2px; }
.btn--pp { background: #ff0033; border-color: #ff0033; color: #fff; }
.btn--pp:hover { background: #e6002e; border-color: #e6002e; color: #fff; }
.pp { padding: 0; overflow: hidden; }
.pp__amount { padding: 26px 24px 20px; text-align: center; border-bottom: 1px solid var(--line-2); }
.pp__label { font-size: .8rem; font-weight: 700; color: var(--sub); letter-spacing: .06em; }
.pp__yen { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 6px; }
.pp__yen b { font-size: 2.6rem; line-height: 1.2; color: var(--ink); letter-spacing: .01em; }
.pp__break { margin: 0; font-size: .86rem; color: var(--sub); }
.pp__break span { color: var(--faint); }
.pp__warn { display: flex; gap: 10px; align-items: flex-start; margin: 16px 24px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-soft); border: 1px solid #f3dfbf; color: #6b4300; font-size: .86rem; line-height: 1.7; }
.pp__warn .i { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--warn); }
.pp__warn p { margin: 0; }
.pp__timer { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 6px 10px; margin: 14px 24px 0; font-size: .84rem; color: var(--sub); }
.pp__timer b { font-size: 1.05rem; color: var(--ink); }
.pp__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.pp__bar span { display: block; height: 100%; width: 100%; background: #4f9a6c; transition: width 1s linear; }
.pp.is-low .pp__bar span { background: #d08a2a; }
.pp__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px 24px; }
.pp__qr { display: grid; justify-items: center; gap: 8px; font-size: .78rem; color: var(--sub); text-align: center; }
.pp__qr img { width: 220px; height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.pp__qr-empty { display: grid; place-items: center; width: 220px; height: 220px; border: 1px dashed #cfd5dc; border-radius: 12px; color: var(--faint); font-size: .85rem; }
.pp__steps ol { margin: 14px 0 12px; padding-left: 1.3em; display: grid; gap: 6px; font-size: .9rem; }
.pp__steps ol:first-child { margin-top: 0; }
.pp__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--line-2); background: #fafbfc; }
.pp__foot form { margin: 0; }
.pp__dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #4f9a6c; vertical-align: 1px; animation: pp-pulse 1.6s ease-in-out infinite; }
@keyframes pp-pulse { 50% { opacity: .25; } }
.pp-done { padding: 36px 24px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.pp-done h2 { margin: 10px 0 0; }
.pp-done p { line-height: 1.9; }
.paymethods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.paymethod { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text); box-shadow: var(--sh-1); }
.paymethod:hover { border-color: #c9ced4; color: var(--text); }
.paymethod.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.paymethod > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.paymethod b { color: var(--ink); }
.paymethod small { color: var(--sub); }
.paymethod .pp-mark { margin: 0; font-size: .8rem; font-weight: 700; }
@media (max-width: 640px) {
  .pp__amount { padding: 22px 16px 16px; }
  .pp__yen b { font-size: 2.2rem; }
  .pp__warn, .pp__timer { margin-left: 16px; margin-right: 16px; }
  .pp__body { grid-template-columns: 1fr; padding: 18px 16px; }
  .pp__qr { order: 2; }
  .pp__foot { padding: 12px 16px; }
  .paymethods { grid-template-columns: 1fr; }
}
