/* 会員さまのお店（2026-11-04）：白地に紫（VINDIATE の色）。スマホを先に考えた形。文字は大きめ・押すところは広め */
:root { --ink: #1E1B24; --sub: #5F5A68; --line: #E7E2EE; --bg: #FAF9FC; --card: #FFFFFF; --brand: #5B2D8E; --brand2: #7A4BB0; --brandbg: #F3EEFA;
  --ok: #1E7A46; --okbg: #E9F6EE; --ng: #B42318; --ngbg: #FDECEC; --gold: #A8741A; --focus: #F59E0B; --r: 12px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif; font-size: 18px; line-height: 1.6; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--sub); }
.small { font-size: 15px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* 上の帯 */
.hd { position: sticky; top: 0; z-index: 30; background: #FFF; border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: var(--ink); flex: none; }
.logo strong { font-size: 22px; letter-spacing: .14em; color: var(--brand); }
.logo span { font-size: 13px; letter-spacing: .12em; color: var(--sub); }
.search { flex: 1 1 auto; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; height: 42px; border: 1.5px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: 0 16px; background: var(--bg); }
.search button { height: 42px; padding: 0 16px; border: 0; border-radius: 0 999px 999px 0; background: var(--brand); color: #FFF; font-weight: 700; }
.hd-nav { display: flex; gap: 4px; flex: none; }
.hd-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 52px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; text-decoration: none; color: var(--ink); font-size: 13px; }
.hd-btn:hover { background: var(--brandbg); }
.hd-btn .ic { font-size: 21px; line-height: 1; display: flex; }
.hd-btn .ic svg { width: 24px; height: 24px; }   /* 2026-11-04 TAKAさん「スマートフォン用の表示に、変な表記」：絵文字（機種で見え方が変わる）をやめ、線の絵にそろえた */
.badge { position: absolute; top: 3px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ng); color: #FFF; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cats { border-top: 1px solid var(--line); background: #FFF; }
.cats-in { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; max-width: 1180px; margin: 0 auto; }
.chip { flex: none; border: 1.5px solid var(--line); background: #FFF; border-radius: 999px; padding: 6px 14px; font-size: 16px; white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #FFF; font-weight: 700; }
@media (max-width: 720px) {
  .hd-in { flex-wrap: wrap; height: auto; padding: 8px 16px; row-gap: 8px; }   /* 2026-11-04：左右の余白が消えて、文字が画面の端にくっついていた（.wrap の余白を上書きしていた） */
  .search { order: 3; flex-basis: 100%; }
  .hd-nav { margin-left: auto; }
  .hd-btn { min-width: 46px; height: 48px; gap: 2px; }
  .hd-btn .lb { font-size: 12px; }   /* 2026-11-04：絵だけだと何のボタンか分からないので、小さく名前も出す */
}

/* 中身 */
main { padding: 20px 0 64px; min-height: 60vh; }
.sec { margin: 0 0 32px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.sec-h h2 { font-size: 22px; margin: 0; }
.sec-h h2 .en { font-size: 14px; letter-spacing: .14em; color: var(--brand2); margin-right: 8px; font-weight: 700; }
.crumb { font-size: 15px; color: var(--sub); margin: 0 0 12px; }
.crumb a { color: var(--sub); }
.news { background: #FFF; border: 1px solid var(--line); border-radius: var(--r); }
.news details { border-top: 1px solid var(--line); }
.news details:first-child { border-top: 0; }
.news summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; gap: 14px; align-items: baseline; }
.news summary::-webkit-details-marker { display: none; }
.news .d { color: var(--sub); font-size: 15px; flex: none; }
.news .b { padding: 0 16px 14px; white-space: pre-wrap; color: var(--sub); }
.hero { border-radius: 16px; background: linear-gradient(120deg, #5B2D8E, #8C5CC4); color: #FFF; padding: 28px 24px; margin: 0 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.hero h1 { margin: 0; font-size: 22px; }
.hero p { margin: 4px 0 0; opacity: .92; }
.hero .hero-btn { background: #FFF; color: var(--brand); border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; text-decoration: none; }

/* 商品の並び */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.pc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.pc:hover { box-shadow: 0 6px 22px rgba(60, 30, 100, .10); }
.pc-img { position: relative; aspect-ratio: 1 / 1; background: var(--brandbg); display: block; border: 0; padding: 0; width: 100%; }
.pc-img a { text-decoration: none; }
main:focus { outline: none; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: var(--brand); font-weight: 700; font-size: 17px; background: linear-gradient(160deg, #F6F1FC, #E9DEF6); }
.tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #FFF; color: var(--brand); border: 1px solid var(--brand); }
.tag.new { background: var(--ng); color: #FFF; border-color: var(--ng); }
.tag.rec { background: var(--gold); color: #FFF; border-color: var(--gold); }
.tag.cool { background: #1F5FAE; color: #FFF; border-color: #1F5FAE; }
.fav { position: absolute; top: 6px; right: 6px; width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); font-size: 22px; color: #B9B2C4; display: flex; align-items: center; justify-content: center; }
.fav.on { color: #D6336C; }
.pc-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-name { font-weight: 700; font-size: 17px; line-height: 1.45; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
.pc-name:hover { color: var(--brand); text-decoration: underline; }
.pc-catch { font-size: 15px; color: var(--sub); line-height: 1.5; }
.price { font-size: 21px; font-weight: 700; }
.price small { font-size: 14px; font-weight: 400; color: var(--sub); margin-left: 2px; }
.pt { font-size: 14px; color: var(--gold); font-weight: 700; }
.pc-buy { margin-top: auto; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pc-buy .qty { justify-content: space-between; }
.pc-buy .qty input { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #FFF; flex: none; }
.qty button { width: 34px; height: 40px; border: 0; background: var(--bg); font-size: 20px; }
.qty input { width: 40px; height: 40px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; background: var(--brand); color: #FFF; min-height: 44px; }
.btn:hover { background: var(--brand2); }
.btn:disabled { background: #BDB6C8; cursor: default; }
.btn.wide { width: 100%; }
.btn.big { font-size: 19px; min-height: 54px; }
.btn.line { background: #FFF; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.line:hover { background: var(--brandbg); }
.btn.pink { background: #D6336C; }
.pc-buy .btn { padding: 8px 6px; font-size: 17px; white-space: nowrap; }

/* 一覧の上 */
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; }
.bar select { height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; background: #FFF; }
.empty { background: #FFF; border: 1px dashed var(--line); border-radius: var(--r); padding: 40px 16px; text-align: center; color: var(--sub); }

/* 商品の詳しい画面 */
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 820px) { .item { grid-template-columns: 1fr; gap: 18px; } }
.gal-main { aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: var(--brandbg); border: 1px solid var(--line); position: relative; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; background: #FFF; }
.gal-th { display: flex; gap: 8px; margin-top: 10px; }
.gal-th button { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); padding: 0; background: #FFF; }
.gal-th button.on { border-color: var(--brand); }
.gal-th img { width: 100%; height: 100%; object-fit: cover; }
.item h1 { font-size: 24px; margin: 4px 0 8px; line-height: 1.4; }
.item .catch { color: var(--sub); margin: 0 0 14px; }
.item .price { font-size: 30px; }
.buybox { background: #FFF; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.buybox .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.desc { background: #FFF; border: 1px solid var(--line); border-radius: 16px; padding: 18px; white-space: pre-wrap; line-height: 1.9; }
.note { font-size: 15px; color: var(--sub); }

/* カート・お手続き */
.steps { display: flex; gap: 0; margin: 0 0 20px; counter-reset: s; }
.steps li { list-style: none; flex: 1; text-align: center; font-size: 15px; color: var(--sub); padding: 8px 4px; border-bottom: 3px solid var(--line); }
.steps li.on { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.steps li.fin { color: var(--ink); border-color: var(--brand2); }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } }
.box { background: #FFF; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.box + .box { margin-top: 16px; }
.box h3 { margin: 0 0 12px; font-size: 19px; }
.cl { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cl:first-of-type { border-top: 0; }
.cl .th { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--brandbg); }
.cl .th img { width: 100%; height: 100%; object-fit: cover; }
.cl .th .noimg { font-size: 13px; padding: 4px; }
.cl .nm { font-weight: 700; }
.cl .ctl { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.linkbtn { border: 0; background: none; color: var(--brand); text-decoration: underline; padding: 4px; font-size: 16px; }
.sum { position: sticky; top: 140px; }
.sum dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0 0 12px; }
.sum dt { color: var(--sub); }
.sum dd { margin: 0; text-align: right; }
.sum .tot { font-size: 22px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.opt + .opt { margin-top: 8px; }
.opt.on { border-color: var(--brand); background: var(--brandbg); }
.opt input { margin-top: 5px; accent-color: var(--brand); }
.opt b { display: block; }
select.in, input.in { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: #FFF; }
.addr { line-height: 1.8; }
.alert { border-radius: 12px; padding: 12px 14px; background: var(--ngbg); color: var(--ng); font-weight: 700; }
.alert.ok { background: var(--okbg); color: var(--ok); }
.alert.info { background: var(--brandbg); color: var(--brand); }
.done { text-align: center; background: #FFF; border: 1px solid var(--line); border-radius: 16px; padding: 36px 20px; max-width: 640px; margin: 0 auto; }
.done .big { font-size: 48px; color: var(--ok); }

/* 購入履歴 */
.ord { background: #FFF; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ord + .ord { margin-top: 12px; }
.ord-h { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; }
.st { font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--brandbg); color: var(--brand); }
.st.ok { background: var(--okbg); color: var(--ok); }
.st.ng { background: var(--ngbg); color: var(--ng); }
.ord ul { margin: 8px 0; padding-left: 18px; }
.ord-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 会員情報 */
.kv { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 10px 14px; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* 下の帯・知らせ */
.ft { background: #2A2233; color: #DDD3EA; padding: 28px 0; font-size: 15px; }
.ft a { color: #FFF; }
.ft-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2A2233; color: #FFF; padding: 12px 18px; border-radius: 12px; z-index: 50; box-shadow: 0 8px 26px rgba(0,0,0,.25); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast a { color: #FFD9F0; font-weight: 700; }
.toast.ng { background: var(--ng); }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; background: #FFF; border-top: 1px solid var(--line); padding: 10px 16px; display: none; z-index: 25; box-shadow: 0 -4px 18px rgba(0,0,0,.06); }
@media (max-width: 720px) { .cartbar.show { display: flex; justify-content: space-between; align-items: center; gap: 10px; } main { padding-bottom: 90px; } }

/* ログイン */
.auth { max-width: 460px; margin: 40px auto; background: #FFF; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
.auth h1 { font-size: 22px; margin: 0 0 6px; }
.auth label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin: 14px 0 0; }
.auth label .muted { font-weight: 400; }
.auth .btn { margin-top: 20px; }
.auth .sep { border-top: 1px solid var(--line); margin: 24px 0 16px; }
.pwwrap { position: relative; }
.pwwrap input { padding-right: 72px; }
.pwwrap button { position: absolute; right: 6px; top: 6px; height: 34px; border: 0; border-radius: 8px; background: var(--brandbg); color: var(--brand); font-size: 15px; padding: 0 10px; }
/* サロン店さま（卸価格）の印 */
.salon-badge { display: inline-block; margin-top: 8px; background: #FFF; color: var(--gold); font-weight: 700; font-size: 15px; padding: 3px 12px; border-radius: 999px; }
body.salon .price small { color: var(--gold); font-weight: 700; }
body.salon .logo span::after { content: '・サロン'; color: var(--gold); font-weight: 700; }

/* 2026-11-06 TAKAさん「下部にある表示も「スマートフォン」では、崩れています」：
   知らせ（カートに入れました）の幅が画面の半分に縮み、「カートを見る」が縦に1文字ずつ並んでいた。下の「カートに〇個」の帯とも重なっていた */
.toast { width: max-content; }
.toast a { white-space: nowrap; flex: none; }
.toast > span, .toast > div { flex: 1 1 auto; min-width: 0; }
@media (max-width: 720px) {
  .toast { left: 16px; right: 16px; width: auto; max-width: none; transform: none; bottom: 84px; }
}

/* ── 2026-11-06 TAKAさん「「お店にログインする」画面、きれいでおしゃれに」：ログイン・パスワードを決める・決め直す の画面 */
body.authpage { min-height: 100vh; display: flex; flex-direction: column; background: #2A1240; color: var(--ink); position: relative; overflow-x: hidden; }
.ap-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(1100px 620px at 8% -8%, #7B3FB5 0%, rgba(123,63,181,0) 62%), radial-gradient(900px 560px at 112% 8%, #D9719E 0%, rgba(217,113,158,0) 58%),
              radial-gradient(800px 600px at 50% 120%, #A85BC9 0%, rgba(168,91,201,0) 60%), linear-gradient(160deg, #24103A 0%, #45206E 52%, #6A3790 100%); }
.ap-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 62%); }
.ap-orb.o1 { width: 340px; height: 340px; left: -90px; top: 38%; }
.ap-orb.o2 { width: 220px; height: 220px; right: 6%; top: 6%; opacity: .35; }
.ap-orb.o3 { width: 160px; height: 160px; right: 18%; bottom: 8%; opacity: .3; }
@media (prefers-reduced-motion: no-preference) { .ap-orb { animation: apFloat 14s ease-in-out infinite alternate; } .ap-orb.o2 { animation-duration: 18s; } .ap-orb.o3 { animation-duration: 11s; } }
@keyframes apFloat { from { transform: translateY(0); } to { transform: translateY(-26px); } }
.ap-brand, .ap-main, .ap-foot { position: relative; z-index: 1; }
.ap-brand { text-align: center; padding: 42px 16px 6px; }
.ap-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: #FFF; }
.ap-word { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif; font-size: 40px; letter-spacing: .34em; padding-left: .34em; font-weight: 600; line-height: 1.1; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.ap-sub { margin-top: 10px; font-size: 15px; letter-spacing: .32em; padding: 6px 0 0 .32em; border-top: 1px solid rgba(255,255,255,.45); opacity: .9; }
.ap-main { flex: 1; padding: 18px 16px 28px; }
.auth.ap-card { max-width: 460px; margin: 10px auto 0; border: 0; border-radius: 24px; padding: 34px 30px 28px; background: rgba(255,255,255,.97);
  box-shadow: 0 30px 80px rgba(14,4,32,.45), 0 0 0 1px rgba(255,255,255,.4) inset; }
.ap-kicker { margin: 0 0 2px; font-size: 13px; letter-spacing: .3em; color: #B05A93; font-weight: 700; }
.auth.ap-card h1 { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif; font-size: 30px; font-weight: 600; letter-spacing: .08em; margin: 0 0 8px; }
.ap-lead { margin: 0 0 6px; color: var(--sub); font-size: 16px; line-height: 1.8; }
.auth.ap-card label { font-size: 16px; margin-top: 18px; color: #3B3346; }
.auth.ap-card .in { height: 56px; font-size: 19px; border-radius: 14px; border: 1.5px solid #DCD3E8; background: #FCFAFE; padding: 0 16px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.auth.ap-card .in:focus { outline: none; border-color: #8E4FC0; box-shadow: 0 0 0 4px rgba(142,79,192,.18); background: #FFF; }
.auth.ap-card .pwwrap button { top: 9px; height: 38px; border-radius: 10px; }
.btn.ap-go { margin-top: 24px; min-height: 60px; border: 0; border-radius: 999px; font-size: 20px; letter-spacing: .12em; color: #FFF;
  background: linear-gradient(135deg, #5B2D8E 0%, #8E3FA8 55%, #D0609A 100%); box-shadow: 0 12px 28px rgba(91,45,142,.38); transition: transform .15s, box-shadow .15s; }
.btn.ap-go:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(91,45,142,.45); }
.btn.ap-go:disabled { opacity: .65; transform: none; }
.ap-note { margin: 12px 0 0; font-size: 14px; color: var(--sub); text-align: center; }
.ap-first { margin-top: 24px; border-top: 1px solid #EEE7F5; padding-top: 14px; }
.ap-first summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: 17px; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ap-first summary::-webkit-details-marker { display: none; }
.ap-first summary::before { content: '＋'; display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--brandbg); align-items: center; justify-content: center; font-size: 15px; }
.ap-first[open] summary::before { content: '－'; }
.ap-foot { text-align: center; color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .2em; padding: 6px 16px 26px; }
@media (max-width: 600px) { .ap-brand { padding-top: 30px; } .ap-word { font-size: 32px; } .auth.ap-card { padding: 28px 20px 22px; border-radius: 20px; } .auth.ap-card h1 { font-size: 26px; } }
