:root{
  --accent:#2563eb;--accent-h:#1d4ed8;--accent-soft:#eaf1fe;--ink:#1c2333;--muted:#6b7280;--line:#e6e9ee;--ground:#f5f6f8;
  --rose:#e11d48;--rose-soft:#fff1f2;--amber:#b45309;--amber-soft:#fef3c7;
  --card:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06);--pop:0 12px 32px rgba(16,24,40,.14);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--ground);color:var(--ink);font-family:"Noto Sans JP",system-ui,sans-serif;font-feature-settings:"palt";letter-spacing:.01em;-webkit-font-smoothing:antialiased;font-size:14px}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
img{display:block}
.mock-bar{background:#111827;color:#e5e7eb;font-size:12px;padding:6px 20px;display:flex;gap:16px;align-items:center}
.mock-bar b{color:#fff}
.mock-bar a{color:#93c5fd;text-decoration:underline}

/* ── header ── */
.hdr{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 1px 0 rgba(16,24,40,.06),0 1px 10px rgba(16,24,40,.05)}
.hdr-row{height:64px;display:flex;align-items:center;gap:20px;padding:0 24px;max-width:1440px;margin:0 auto}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:20px;letter-spacing:0}
.logo .mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#ef4444,#f97316);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:16px}
.logo small{display:block;font-size:10px;color:var(--muted);font-weight:500;line-height:1}
.search{flex:1;display:flex;align-items:center;height:42px;border:1.5px solid #d9dee5;border-radius:10px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.18)}
.search select{border:0;background:#f5f6f8;height:100%;padding:0 12px;font:inherit;color:var(--muted);border-right:1px solid var(--line);outline:none}
.search input{flex:1;border:0;outline:0;height:100%;padding:0 14px;font:inherit;font-size:14px}
.search button{height:100%;padding:0 18px;white-space:nowrap;background:var(--accent);color:#fff;font-weight:600;display:flex;align-items:center;gap:6px}
.search button:hover{background:var(--accent-h)}
.hdr-act{display:flex;align-items:center;gap:6px}
.hact{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 10px;border-radius:8px;font-size:11px;color:var(--muted);position:relative;min-width:64px}
.hact:hover{background:#f3f5f8;color:var(--ink)}
.hact svg{width:22px;height:22px}
.hact .badge{position:absolute;top:2px;right:12px;min-width:18px;height:18px;border-radius:9px;background:var(--rose);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px}
.hact.cart .badge{background:var(--accent)}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--accent);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:14px}
.nav-row{border-top:1px solid var(--line);background:#fff}
.nav-in{max-width:1440px;margin:0 auto;padding:0 24px;height:44px;display:flex;align-items:center;gap:4px}
.nav-in a,.nav-in button{padding:0 12px;height:32px;display:flex;align-items:center;gap:6px;border-radius:8px;font-weight:500;color:#374151;font-size:13.5px}
.nav-in a:hover,.nav-in button:hover{background:#f3f5f8;color:var(--ink)}
.nav-in a.on{background:var(--accent-soft);color:var(--accent-h);font-weight:600}
.nav-in .sep{width:1px;height:20px;background:var(--line);margin:0 6px}
.nav-in .right{margin-left:auto;display:flex;gap:4px}
.nav-in svg{width:16px;height:16px}

/* ── layout ── */
.wrap{max-width:1440px;margin:0 auto;padding:20px 24px 60px}
.crumb{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center;margin-bottom:12px}
.crumb a:hover{color:var(--accent)}
h1{font-size:22px;font-weight:700;margin:0 0 14px}
h2{font-size:16px;font-weight:700;margin:0;display:flex;align-items:center;gap:8px}
h2 svg{width:18px;height:18px;color:var(--muted)}
.sec{margin-top:28px}
.sec-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sec-h .more{white-space:nowrap;font-size:13px;color:var(--accent);font-weight:500;display:flex;align-items:center;gap:4px}
.sec-h .more:hover{text-decoration:underline}

/* ── banner ── */
.banner{background:#fff;border-radius:12px;box-shadow:var(--card);padding:14px 18px;display:flex;align-items:center;gap:14px}
.banner .ico{width:36px;height:36px;border-radius:10px;background:var(--accent-soft);color:var(--accent-h);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.banner .ico svg{width:18px;height:18px}
.banner .t{font-weight:600}
.banner .d{font-size:12px;color:var(--muted)}
.banner .x{margin-left:auto;color:var(--muted);padding:6px;border-radius:6px}
.banner .x:hover{background:#f3f5f8}
.chip{display:inline-flex;align-items:center;height:20px;padding:0 9px;border-radius:999px;font-size:11.5px;font-weight:500;background:#eef2f7;color:#374151}
.chip.info{background:var(--accent-soft);color:var(--accent-h)}
.chip.ok{background:#e7f6ee;color:#15803d}
.chip.warn{background:#fff4e5;color:#b45309}

/* ── hero tiles ── */
.hero{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin-top:16px}
.tile-card{background:#fff;border-radius:12px;box-shadow:var(--card);padding:18px;display:flex;flex-direction:column;gap:8px;position:relative;overflow:hidden;transition:box-shadow .15s,transform .15s}
.tile-card:hover{box-shadow:var(--pop);transform:translateY(-1px)}
.tile-card .k{font-size:12px;color:var(--muted);font-weight:500}
.tile-card .v{font-size:26px;font-weight:700;line-height:1.1}
.tile-card .v small{font-size:13px;font-weight:500;color:var(--muted);margin-left:4px}
.tile-card .ico{position:absolute;right:14px;top:14px;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent-h)}
.tile-card .ico svg{width:18px;height:18px}
.tile-card.blue{background:linear-gradient(135deg,#2563eb,#1e40af);color:#fff}
.tile-card.blue .k,.tile-card.blue .v small{color:rgba(255,255,255,.75)}
.tile-card.blue .ico{background:rgba(255,255,255,.18);color:#fff}
.tile-card .cta{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.tile-card .cta svg{width:14px;height:14px}

/* ── product cards ── */
.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.shelf.compact{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.pc{background:#fff;border-radius:12px;box-shadow:var(--card);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s,transform .15s;position:relative}
.pc:hover{box-shadow:var(--pop);transform:translateY(-2px)}
.pc .img{aspect-ratio:1/1;background:#f3f5f8;display:flex;align-items:center;justify-content:center;position:relative}
.pc .img svg,.pc .img img{width:78%;height:78%;object-fit:contain}
.pc .fav{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;background:#fff;box-shadow:var(--card);display:flex;align-items:center;justify-content:center;color:#9aa3af;transition:color .15s,transform .15s}
.pc .fav:hover{color:var(--rose);transform:scale(1.08)}
.pc .fav.on{color:var(--rose)}
.pc .fav svg{width:16px;height:16px}
.pc .rank{position:absolute;top:10px;left:10px;width:26px;height:26px;border-radius:8px;background:#fff;box-shadow:var(--card);font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;color:#4b5563}
.pc .rank.r1{background:var(--amber-soft);color:var(--amber)}.pc .rank.r2{background:#e5e7eb}.pc .rank.r3{background:#ffedd5;color:#9a3412}
.pc .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.pc .mk{font-size:11.5px;color:var(--muted);font-weight:500}
.pc .nm{font-weight:600;font-size:14px;line-height:1.35;color:var(--ink)}
.pc .nm:hover{color:var(--accent)}
.pc .sw{display:flex;gap:5px;align-items:center}
.pc .sw i{width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.08)}
.pc .sw small{font-size:11px;color:var(--muted);margin-left:2px}
.pc .pr{display:flex;align-items:baseline;gap:4px;margin-top:2px}
.pc .pr b{font-size:17px;font-weight:700}
.pc .pr small{font-size:11px;color:var(--muted)}
.pc .foot{margin-top:auto;display:flex;gap:8px;padding-top:6px}

/* ── buttons ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 16px;border-radius:8px;font-size:13px;font-weight:600;white-space:nowrap;border:1px solid transparent;transition:background .15s,border-color .15s,box-shadow .15s,color .15s}
.btn svg{width:15px;height:15px}
.btn-p{background:var(--accent);color:#fff;box-shadow:0 1px 2px rgba(37,99,235,.25)}
.btn-p:hover{background:var(--accent-h);box-shadow:0 2px 6px rgba(37,99,235,.32)}
.btn-s{background:#fff;border-color:#d9dee5;color:var(--ink);box-shadow:0 1px 2px rgba(16,24,40,.04)}
.btn-s:hover{background:#f8fafc;border-color:#b9c3cf}
.btn-s:hover svg{color:var(--accent-h)}
.btn-g{background:transparent;color:#374151}
.btn-g:hover{background:#f3f5f8}
.btn-d{background:#fff;border-color:#f3b4b4;color:#dc2626}
.btn-d:hover{background:#fef2f2}
.btn-sm{height:30px;padding:0 12px;font-size:12px}
.btn-lg{height:44px;padding:0 22px;font-size:14px}
.btn-block{width:100%}
.btn-icon{width:32px;height:32px;border-radius:8px;border:1px solid #e3e7ec;background:#fff;color:#6b7280;display:inline-flex;align-items:center;justify-content:center}
.btn-icon:hover{background:#f3f5f8;color:var(--ink);border-color:#b9c3cf}
.btn-icon.danger:hover{background:#fef2f2;color:#dc2626;border-color:#f3b4b4}
.btn-icon svg{width:15px;height:15px}

/* ── search page ── */
.split{display:grid;grid-template-columns:240px 1fr;gap:20px;align-items:start}
.filters{background:#fff;border-radius:12px;box-shadow:var(--card);padding:16px;position:sticky;top:124px}
.filters h3{font-size:12px;font-weight:600;color:var(--muted);margin:14px 0 8px;letter-spacing:.04em}
.filters h3:first-child{margin-top:0}
.filters label{display:flex;align-items:center;gap:8px;height:30px;font-size:13.5px;cursor:pointer;border-radius:6px;padding:0 6px}
.filters label:hover{background:#f5f7fa}
.filters input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent)}
.filters .sw{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid rgba(0,0,0,.1)}
.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.toolbar .cnt{font-size:13px;color:var(--muted)}
.toolbar .cnt b{color:var(--ink);font-size:15px}
.toolbar select{margin-left:auto;height:34px;border:1px solid #d9dee5;border-radius:8px;padding:0 10px;font:inherit;background:#fff}
.seg{display:inline-flex;border:1px solid #d9dee5;border-radius:8px;overflow:hidden;background:#fff}
.seg button{width:34px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.seg button.on{background:var(--accent-soft);color:var(--accent-h)}
.seg svg{width:16px;height:16px}

/* ── detail ── */
.detail{display:grid;grid-template-columns:1fr 1.15fr;gap:28px;background:#fff;border-radius:12px;box-shadow:var(--card);padding:24px}
.gallery .main{aspect-ratio:1/1;background:#f3f5f8;border-radius:12px;display:flex;align-items:center;justify-content:center}
.gallery .main svg{width:72%;height:72%}
.gallery .thumbs{display:flex;gap:8px;margin-top:10px}
.gallery .thumbs div{width:64px;height:64px;border-radius:8px;background:#f3f5f8;border:2px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}
.gallery .thumbs div.on{border-color:var(--accent)}
.gallery .thumbs svg{width:70%;height:70%}
.dt .mk{font-size:12px;color:var(--muted);font-weight:500}
.dt h1{font-size:20px;margin:4px 0 6px}
.dt .meta{display:flex;gap:14px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.dt .meta b{color:var(--ink);font-weight:500}
.dt .price{margin:14px 0 4px;display:flex;align-items:baseline;gap:6px}
.dt .price b{font-size:26px;font-weight:700}
.dt .price small{color:var(--muted);font-size:12px}
.dt .lbl{font-size:12px;font-weight:600;color:var(--muted);margin:18px 0 8px;display:flex;justify-content:space-between}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swatch{display:flex;align-items:center;gap:8px;padding:6px 10px 6px 6px;border:1.5px solid #e3e7ec;border-radius:999px;font-size:13px;cursor:pointer;background:#fff}
.swatch i{width:22px;height:22px;border-radius:50%;border:1px solid rgba(0,0,0,.08)}
.swatch:hover{border-color:#b9c3cf}
.swatch.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-h);font-weight:600}
.matrix{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.mcell{border:1px solid #e3e7ec;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:6px;background:#fff}
.mcell .sz{font-size:12px;font-weight:600;color:#374151;display:flex;justify-content:space-between}
.mcell .sz small{color:var(--muted);font-weight:500}
.qty{display:flex;align-items:center;border:1px solid #d9dee5;border-radius:8px;overflow:hidden;height:32px}
.qty button{width:28px;height:100%;color:var(--muted)}
.qty button:hover{background:#f3f5f8;color:var(--ink)}
.qty input{width:100%;min-width:0;border:0;text-align:center;font:inherit;font-weight:600;outline:0;height:100%}
.mcell.has{border-color:var(--accent);background:var(--accent-soft)}
.dt .sum{margin-top:18px;padding:14px 16px;background:#f8fafc;border-radius:10px;display:flex;align-items:center;gap:16px}
.dt .sum .n{font-size:13px;color:var(--muted)}
.dt .sum .n b{color:var(--ink);font-size:16px;margin:0 2px}
.dt .sum .btn{margin-left:auto}
.dt .spec{margin-top:22px;border-top:1px solid var(--line);padding-top:14px;display:grid;grid-template-columns:110px 1fr;row-gap:8px;font-size:13px}
.dt .spec dt{color:var(--muted);margin:0}
.dt .spec dd{margin:0;font-weight:500}

/* ── drawer ── */
.ov{position:fixed;inset:0;background:rgba(16,24,40,.35);z-index:80;opacity:0;transition:opacity .2s}
.ov.on{opacity:1}
.drw{position:fixed;top:0;right:0;bottom:0;width:420px;max-width:100vw;background:#fff;z-index:81;box-shadow:-12px 0 40px rgba(16,24,40,.18);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .22s cubic-bezier(.2,.7,.2,1)}
.drw.on{transform:none}
.drw .hd{height:60px;display:flex;align-items:center;gap:10px;padding:0 20px;border-bottom:1px solid var(--line);font-weight:700;font-size:16px}
.drw .hd svg{width:18px;height:18px;color:var(--muted)}
.drw .hd .x{margin-left:auto}
.drw .bd{flex:1;overflow:auto;padding:8px 14px}
.crow{display:flex;gap:12px;align-items:center;padding:10px 6px;border-radius:10px;border-bottom:1px solid #eef0f3}
.crow:hover{background:#f8fafc}
.crow .th{width:56px;height:56px;border-radius:10px;background:#f3f5f8;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.crow .th svg{width:70%;height:70%}
.crow .tx{flex:1;min-width:0}
.crow .tx .nm{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crow .tx .sb{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center;margin-top:2px}
.crow .tx .sb i{width:10px;height:10px;border-radius:50%;display:inline-block;border:1px solid rgba(0,0,0,.1)}
.crow .ops{display:flex;gap:6px}
.crow .fav.on{color:var(--rose);border-color:#fecdd3;background:var(--rose-soft)}
.drw .ft{border-top:1px solid var(--line);padding:14px 20px;display:flex;flex-direction:column;gap:10px}
.drw .ft .tot{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
.drw .ft .tot b{color:var(--ink);font-size:18px}
.empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:48px 0;color:var(--muted)}
.empty .ico{width:52px;height:52px;border-radius:14px;background:#f1f4f8;display:flex;align-items:center;justify-content:center;color:#9aa3af}
.empty .ico svg{width:24px;height:24px}
.empty b{color:#4b5563;font-weight:600}
.empty small{font-size:12px;color:#9aa3af}

/* ── checkout ── */
.steps{display:flex;align-items:center;gap:0;margin:8px 0 22px}
.step{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);font-weight:500}
.step i{width:28px;height:28px;border-radius:50%;background:#e5e7eb;color:#6b7280;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;font-style:normal}
.step.on{color:var(--ink);font-weight:600}.step.on i{background:var(--accent);color:#fff}
.step.done i{background:#dcfce7;color:#15803d}
.steps .ln{flex:1;height:2px;background:var(--line);margin:0 14px;max-width:120px}
.co{display:grid;grid-template-columns:1fr 360px;gap:20px;align-items:start}
.card{background:#fff;border-radius:12px;box-shadow:var(--card);padding:18px 20px}
.card h3{margin:0 0 12px;font-size:15px;font-weight:700;display:flex;align-items:center;gap:8px}
.card h3 svg{width:16px;height:16px;color:var(--muted)}
.stores{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.store{border:1.5px solid #e3e7ec;border-radius:10px;padding:12px 14px;display:flex;align-items:center;gap:10px;cursor:pointer;background:#fff}
.store:hover{border-color:#b9c3cf}
.store.on{border-color:var(--accent);background:var(--accent-soft)}
.store .ck{width:18px;height:18px;border-radius:5px;border:1.5px solid #c9d1db;display:flex;align-items:center;justify-content:center;background:#fff}
.store.on .ck{background:var(--accent);border-color:var(--accent);color:#fff}
.store .ck svg{width:12px;height:12px}
.frm{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.frm label{font-size:12px;font-weight:600;color:#374151;display:flex;flex-direction:column;gap:6px}
.frm input,.frm select,.frm textarea{height:36px;border:1px solid #d9dee5;border-radius:8px;padding:0 11px;font:inherit;background:#fff}
.frm textarea{height:84px;padding:8px 11px;resize:vertical}
.frm input:focus,.frm select:focus,.frm textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.18)}
.frm .full{grid-column:1/-1}
.orow{display:flex;justify-content:space-between;font-size:13px;padding:6px 0;border-bottom:1px dashed var(--line)}
.orow:last-child{border:0}
.orow .mu{color:var(--muted)}
.done{background:#fff;border-radius:14px;box-shadow:var(--card);padding:48px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.done .ok{width:64px;height:64px;border-radius:50%;background:#dcfce7;color:#15803d;display:flex;align-items:center;justify-content:center}
.done .ok svg{width:30px;height:30px}
.done h1{margin:6px 0 0}
.done p{color:var(--muted);margin:0}

/* ── misc ── */
.hist{background:#fff;border-radius:12px;box-shadow:var(--card);overflow:hidden}
.hrow{display:grid;grid-template-columns:150px 1fr 120px 100px 110px;gap:12px;align-items:center;padding:12px 18px;border-bottom:1px solid #eef0f3;font-size:13px}
.hrow:hover{background:#f8fafc}
.hrow.h{background:#f8fafc;color:#64748b;font-size:12px;font-weight:600}
.hrow .n{font-weight:600}
.hrow .m{color:var(--muted);font-size:12px}
#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);background:#111827;color:#fff;padding:10px 16px;border-radius:10px;font-size:13px;opacity:0;transition:opacity .2s,transform .2s;z-index:99;display:flex;align-items:center;gap:8px;box-shadow:var(--pop)}
#toast.on{opacity:1;transform:translateX(-50%)}
#toast svg{width:16px;height:16px;color:#86efac}
.foot{max-width:1440px;margin:0 auto;padding:20px 24px;color:var(--muted);font-size:12px;display:flex;gap:16px;border-top:1px solid var(--line)}
@media (max-width:1000px){.hero{grid-template-columns:1fr 1fr}.split{grid-template-columns:1fr}.filters{position:static}.detail,.co{grid-template-columns:1fr}.search select{display:none}.hact span{display:none}.hact{min-width:40px}}
