/* コンエアージャパン 法人様ご注文サイト（Conair.com の配色：ラベンダーパープル × ほぼ黒 × 白） */
:root {
  --purple: #ba78ed;
  --purple-deep: #8a4fd8;
  --purple-soft: #f4ecfd;
  --ink: #1a1816;
  --ink-2: #444444;
  --muted: #7a746e;
  --line: #e7e3df;
  --bg: #ffffff;
  --bg-2: #f7f6f4;
  --sky: #c2eaff;
  --pink: #ff0061;
  --ok: #1f8a5b;
  --warn-bg: #fff4e5;
  --warn: #b45309;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Outfit", "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font-family: inherit; }
.hidden { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--ink); color: #fff; text-decoration: none; transition: transform .08s, opacity .15s; white-space: nowrap; }
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn.purple { background: var(--purple); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.sm { padding: 7px 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--purple-deep); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero { background: var(--purple); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-hero::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--sky); opacity: .55; }
.login-hero h1 { font-size: 46px; line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -.02em; position: relative; z-index: 1; }
.login-hero p { font-size: 17px; max-width: 420px; position: relative; z-index: 1; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 26px; margin: 0 0 6px; }
.login-form .sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple-deep); box-shadow: 0 0 0 3px var(--purple-soft); }
.err { color: var(--pink); font-size: 13px; min-height: 20px; }

/* logo */
.logo { font-weight: 800; font-size: 30px; letter-spacing: -.04em; text-decoration: none; color: var(--ink); line-height: 1; display: inline-flex; align-items: baseline; gap: 6px; }
.logo small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* header */
.topbar { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 7px 12px; font-weight: 500; }
.topbar b { color: var(--purple); }
.header { background: var(--purple); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 0 16px; gap: 8px; height: 42px; }
.search input { border: 0; outline: none; font: inherit; flex: 1; min-width: 0; background: transparent; }
.search svg { width: 18px; height: 18px; flex-shrink: 0; }
.head-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.head-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; background: none; border: 0; color: var(--ink); }
.head-link:hover { background: rgba(255,255,255,.35); }
.head-link svg { width: 20px; height: 20px; }
.cart-badge { background: var(--ink); color: #fff; font-size: 11px; border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.catnav { background: var(--purple); border-top: 1px solid rgba(0,0,0,.08); }
.catnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; }
.catnav button.on { border-bottom-color: var(--ink); }
.head-link { white-space: nowrap; }
.account-chip { font-size: 13px; font-weight: 600; text-align: right; line-height: 1.25; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .account-chip { display: none; } }
.account-chip span { display: block; font-weight: 400; font-size: 12px; }

/* page */
.page { padding: 28px 0 80px; min-height: 60vh; }
.page h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 18px; }
.page h2 { font-size: 20px; margin: 28px 0 12px; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* hero band */
.band { background: var(--sky); border-radius: 20px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.band h2 { margin: 0 0 4px; font-size: 24px; }
.band p { margin: 0; color: var(--ink-2); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; }
.card .img { aspect-ratio: 1; background: var(--bg-2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.card .img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.card .tag { position: absolute; top: 10px; left: 10px; background: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 3px 10px; }
.card .tag.spare { background: var(--ink); color: #fff; }
.card .body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.card .name { font-weight: 600; font-size: 15px; line-height: 1.45; }
.card .code { font-size: 12px; color: var(--muted); }
.card .price { font-size: 20px; font-weight: 700; margin-top: auto; padding-top: 6px; }
.card .price small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.card .actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.swatches { display: flex; gap: 6px; align-items: center; margin: 2px 0; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ccc; cursor: pointer; padding: 0; outline-offset: 2px; }
.swatch.on { outline: 2px solid var(--ink); }
.swatch-label { font-size: 12px; color: var(--ink-2); margin-left: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 40px; }
.stepper button { background: none; border: 0; width: 34px; height: 100%; cursor: pointer; font-size: 18px; color: var(--ink); }
.stepper input { width: 44px; border: 0; text-align: center; font: inherit; font-weight: 600; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.card .actions .btn { flex: 1; padding: 10px 12px; font-size: 14px; }

/* reorder strip */
.strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.strip .mini { flex: 0 0 250px; display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px; background: #fff; }
.strip .mini img { width: 64px; height: 64px; object-fit: contain; background: var(--bg-2); border-radius: 10px; }
.strip .mini .t { font-size: 13px; font-weight: 600; line-height: 1.35; }
.strip .mini .c { font-size: 12px; color: var(--muted); }

/* layout two col */
.two { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.panel { border: 1.5px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; }
.panel.sticky { position: sticky; top: 130px; }
.panel h3 { margin: 0 0 14px; font-size: 18px; }
.sumrow { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sumrow.total { border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 20px; font-weight: 800; }
.sumrow .muted { color: var(--muted); }
.note { font-size: 12px; color: var(--muted); }

/* cart lines */
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 88px; height: 88px; object-fit: contain; background: var(--bg-2); border-radius: 12px; }
.line .t { font-weight: 600; }
.line .c { font-size: 12px; color: var(--muted); }
.line .r { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.line .amt { font-weight: 700; font-size: 17px; }

/* alerts */
.alert { border-radius: 12px; padding: 10px 14px; font-size: 13px; margin: 8px 0; display: flex; gap: 8px; align-items: flex-start; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--purple-soft); color: #5b2ba3; }
.alert.ok { background: #e9f7ef; color: var(--ok); }
.alert.err { background: #ffe8f0; color: #b00045; }

/* dest choices */
.dests { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dest { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; font-size: 13px; position: relative; background: #fff; text-align: left; font-family: inherit; color: var(--ink); }
.dest.on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.dest b { font-size: 14px; display: block; margin-bottom: 2px; }
.dest .chip { position: absolute; top: 10px; right: 10px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--bg-2); }
.chip.received { background: var(--purple-soft); color: #5b2ba3; }
.chip.confirmed { background: var(--sky); color: #0b4a6e; }
.chip.shipped { background: #e1f5ea; color: var(--ok); }
.chip.cancelled { background: #eee; color: #777; }
.chip.sat { background: var(--sky); }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }

/* orders */
.order { border: 1.5px solid var(--line); border-radius: 16px; margin-bottom: 14px; overflow: hidden; }
.order-head { background: var(--bg-2); padding: 12px 18px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.order-head b { display: block; color: var(--ink); font-size: 14px; }
.order-head .right { margin-left: auto; display: flex; gap: 8px; }
.order-body { padding: 14px 18px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.thumbs { display: flex; gap: 8px; }
.thumbs img { width: 56px; height: 56px; object-fit: contain; background: var(--bg-2); border-radius: 10px; }
.timeline { display: flex; gap: 0; margin: 18px 0 8px; }
.timeline .st { flex: 1; text-align: center; font-size: 12px; position: relative; color: var(--muted); }
.timeline .st::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--line); margin: 0 auto 6px; position: relative; z-index: 1; }
.timeline .st::after { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline .st:first-child::after { display: none; }
.timeline .st.on { color: var(--ink); font-weight: 700; }
.timeline .st.on::before, .timeline .st.on::after { background: var(--purple-deep); }
table.items { width: 100%; border-collapse: collapse; font-size: 14px; }
table.items th, table.items td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.items th { font-size: 12px; color: var(--muted); font-weight: 600; }
table.items td.n, table.items th.n { text-align: right; white-space: nowrap; }
.comments { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; }
.bubble.customer { align-self: flex-end; background: var(--purple-soft); }
.bubble.staff { align-self: flex-start; background: var(--bg-2); }
.bubble .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* done */
.done { text-align: center; max-width: 620px; margin: 30px auto; }
.done .check-big { width: 72px; height: 72px; border-radius: 50%; background: var(--purple); display: inline-flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 12px; }
.done .no { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; text-align: left; }
.kv div { background: var(--bg-2); border-radius: 12px; padding: 12px 16px; font-size: 12px; color: var(--muted); }
.kv b { display: block; font-size: 18px; color: var(--ink); }

/* drop zone */
.drop { border: 2px dashed var(--purple); border-radius: 18px; padding: 34px; text-align: center; background: var(--purple-soft); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.steps div { background: var(--bg-2); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.steps div::before { counter-increment: s; content: counter(s); display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-right: 8px; font-size: 13px; }

/* footer */
.footer { background: var(--ink); color: #cfcac5; padding: 34px 0; font-size: 13px; }
.footer .logo { color: #fff; font-size: 24px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.mobile-only { display: none; }

/* 受注確認書（印刷用） */
.doc { max-width: 800px; margin: 0 auto; background: #fff; padding: 48px; border: 1px solid var(--line); font-family: "Noto Sans JP", sans-serif; color: #000; }
.doc h1 { text-align: center; font-size: 26px; letter-spacing: .3em; margin: 0 0 28px; }
.doc .row { display: flex; justify-content: space-between; gap: 20px; }
.doc .to { font-size: 18px; border-bottom: 1px solid #000; padding-bottom: 4px; }
.doc .from { text-align: right; font-size: 13px; position: relative; padding-right: 10px; }
.doc .stamp { position: absolute; right: -10px; top: 20px; width: 84px; height: 84px; opacity: .85; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 13px; }
.doc th, .doc td { border: 1px solid #000; padding: 6px 8px; }
.doc th { background: #f1f1f1; }
.doc .sign { display: flex; justify-content: flex-end; gap: 0; margin-top: 24px; }
.doc .sign div { width: 90px; height: 90px; border: 1px solid #000; font-size: 11px; text-align: center; padding-top: 4px; }

@media print {
  body * { visibility: hidden; }
  .doc, .doc * { visibility: visible; }
  .doc { position: absolute; left: 0; top: 0; border: 0; padding: 20px; }
}

@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; }
  .panel.sticky { position: static; }
  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 28px 22px; min-height: 220px; }
  .login-hero h1 { font-size: 32px; }
  .login-hero::after { width: 240px; height: 240px; right: -80px; bottom: -80px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-row { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .head-links { gap: 0; }
  .search { order: 3; max-width: none; flex-basis: 100%; height: 40px; }
  .logo { font-size: 24px; }
  .account-chip, .head-link .lbl { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card .name { font-size: 13px; }
  .card .price { font-size: 17px; }
  .card .actions { flex-direction: column; align-items: stretch; }
  .stepper { justify-content: space-between; }
  .line { grid-template-columns: 64px 1fr; }
  .line img { width: 64px; height: 64px; }
  .line .r { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .form2 { grid-template-columns: 1fr; }
  .page h1 { font-size: 24px; }
  .kv { grid-template-columns: 1fr; }
  .order-head { gap: 14px; }
  .order-head .right { margin-left: 0; width: 100%; }
  .doc { padding: 20px; }
  .doc .row { flex-direction: column; }
  .mobile-only { display: block; }
  table.items { font-size: 13px; }
}

/* 代理ログイン中の帯（取引先本人の画面と見間違えないように目立たせる） */
.proxybar { background: #ff0061; color: #fff; font-size: 13px; padding: 8px 16px; text-align: center; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.proxybar button { background: #fff; color: #1a1816; border: 0; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 12px; cursor: pointer; }
