/* 月夜のへやぎ — 夜の部屋：紫〜藍の夜空 × ラベンダー × 月の淡い黄 */
:root {
  --night-1: #120f2a;
  --night-2: #221b4d;
  --night-3: #3a2c6e;
  --lav: #c8b6ff;
  --lav-2: #9d88e8;
  --moon: #f5e6a8;
  --moon-2: #e9cf74;
  --ink: #f1edff;
  --ink-2: #c4bce6;
  --ink-3: #8f86b8;
  --glass: rgba(255, 255, 255, .065);
  --glass-2: rgba(255, 255, 255, .11);
  --line: rgba(200, 182, 255, .2);
  --r: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  color: var(--ink); line-height: 1.85; font-size: 15px;
  background: var(--night-1) linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 38%, #2b2160 70%, var(--night-1) 100%) fixed;
  min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* 星：body直下の疑似要素（backdrop-filterの中ではない） */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .75;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 60%, transparent),
    radial-gradient(1px 1px at 28% 62%, #e8e0ff 60%, transparent),
    radial-gradient(1.6px 1.6px at 47% 9%, #fff8d6 60%, transparent),
    radial-gradient(1px 1px at 63% 41%, #fff 60%, transparent),
    radial-gradient(1.3px 1.3px at 79% 22%, #e8e0ff 60%, transparent),
    radial-gradient(1px 1px at 91% 70%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 6% 83%, #fff8d6 60%, transparent),
    radial-gradient(1px 1px at 38% 90%, #fff 60%, transparent),
    radial-gradient(1px 1px at 72% 86%, #e8e0ff 60%, transparent),
    radial-gradient(1.5px 1.5px at 55% 55%, #fff 60%, transparent);
  background-size: 520px 520px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 1em; height: 1em; }
.in { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* 上の帯・ヘッダー */
.topline { text-align: center; font-size: 12px; color: var(--moon); padding: 7px 16px; letter-spacing: .04em; background: rgba(0,0,0,.25); }
.topline svg { vertical-align: -2px; margin-right: 6px; }
.topline .sep { margin: 0 6px; color: var(--ink-3); }
.hd { position: sticky; top: 0; z-index: 20; background: rgba(18, 15, 42, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hd .in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand .moon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--moon); font-size: 22px; background: radial-gradient(circle at 35% 35%, rgba(245,230,168,.25), rgba(200,182,255,.08)); box-shadow: 0 0 22px rgba(245,230,168,.25); }
.brand .tx { display: flex; flex-direction: column; line-height: 1.2; }
.brand b { font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.brand small { font-size: 10px; letter-spacing: .3em; color: var(--lav); }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.nav a:hover { color: var(--moon); }
.bag { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--glass-2); border: 1px solid var(--line); }
.bag .n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--moon); color: var(--night-1); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ヒーロー */
.hero { position: relative; padding: 70px 0 60px; overflow: hidden; }
.hero .in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .bigmoon { position: absolute; right: -80px; top: -60px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff6cf, var(--moon) 45%, var(--moon-2) 100%); box-shadow: 0 0 120px 30px rgba(245,230,168,.18); opacity: .9; }
.hero .bigmoon::after { content: ''; position: absolute; inset: -6px -60px 30px 70px; border-radius: 50%; background: var(--night-2); }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .25em; color: var(--lav); border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; background: var(--glass); }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.45; font-weight: 700; margin: 22px 0 18px; letter-spacing: .04em; }
.hero h1 em { font-style: normal; color: var(--moon); text-shadow: 0 0 24px rgba(245,230,168,.35); }
.hero p.lead { color: var(--ink-2); max-width: 30em; }
.hero .cta { display: inline-flex; margin-top: 28px; }
.windows { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: end; z-index: 1; }
.windows img { width: 100%; aspect-ratio: 3/4.4; object-fit: cover; border-radius: 999px 999px 18px 18px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.windows img:nth-child(2) { transform: translateY(-28px); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 99px; font-weight: 700; letter-spacing: .06em; background: linear-gradient(135deg, var(--moon), var(--moon-2)); color: #241a4a; box-shadow: 0 8px 24px rgba(233,207,116,.25); }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--glass-2); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.block { display: flex; width: 100%; }

/* 見出し */
.sec { padding: 56px 0; }
.ttl { text-align: center; margin-bottom: 26px; }
.ttl .en { font-size: 11px; letter-spacing: .4em; color: var(--lav); }
.ttl h2 { font-size: 26px; font-weight: 700; letter-spacing: .08em; }
.ttl .stars { color: var(--moon); font-size: 12px; letter-spacing: .6em; }

/* 絞り込み（ピル） */
.filters { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 30px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills .lb { font-size: 12px; color: var(--ink-3); align-self: center; margin-right: 4px; }
.pill { padding: 7px 16px; border-radius: 99px; font-size: 13.5px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); transition: .15s; }
.pill .c { font-size: 11px; margin-left: 6px; color: var(--ink-3); }
.pill:hover { border-color: var(--lav); color: var(--ink); }
.pill.on { background: var(--lav); color: #1e1645; border-color: var(--lav); font-weight: 700; }
.pill.on .c { color: #3d3170; }
.pills.sub .pill.on { background: var(--moon); border-color: var(--moon); }
.count { text-align: center; color: var(--ink-3); font-size: 13px; margin: -14px 0 22px; }

/* 商品カード：上がアーチ窓の形、すりガラス */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { display: block; padding: 12px 12px 16px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(245,230,168,.5); }
.arch { position: relative; border-radius: 999px 999px 14px 14px; overflow: hidden; aspect-ratio: 4/5; background: #2a2156; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.ssn { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; gap: 4px; align-items: center; font-size: 11px; padding: 2px 10px; border-radius: 99px; background: rgba(18,15,42,.78); color: var(--moon); white-space: nowrap; }
.meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 12px; font-size: 11.5px; }
.meta .cat { color: var(--lav); }
.meta .who { color: var(--ink-3); }
.card .nm { font-size: 14px; font-weight: 500; line-height: 1.55; margin-top: 4px; min-height: 3.1em; }
.card .pr { margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--moon); }
.card .pr small { font-size: 10.5px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }

/* お店の約束 */
.promise .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { padding: 28px 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pcard .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--moon); background: rgba(245,230,168,.1); margin-bottom: 14px; }
.pcard h3 { font-size: 17px; margin-bottom: 8px; }
.pcard p { font-size: 14px; color: var(--ink-2); }

/* フッター */
.ft { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(10, 8, 26, .6); padding: 44px 0 20px; font-size: 13.5px; color: var(--ink-2); }
.ft .in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.fbrand { display: flex; gap: 8px; align-items: center; color: var(--moon); font-size: 18px; }
.fbrand b { color: var(--ink); font-size: 17px; }
.fcol p { margin-top: 8px; }
.fcol .co { font-size: 12px; color: var(--ink-3); }
.fcol h4 { font-size: 12px; letter-spacing: .2em; color: var(--lav); margin-bottom: 8px; }
.fcol a { display: block; padding: 3px 0; }
.fcol a:hover { color: var(--moon); }
.copy { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 34px; }

/* 商品ページ */
.crumb { font-size: 12px; color: var(--ink-3); padding: 20px 0; }
.crumb a:hover { color: var(--moon); }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pd .photo { position: sticky; top: 86px; }
.mainimg { border-radius: 999px 999px 22px 22px; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 4/5; }
.mainimg img { width: 100%; height: 100%; object-fit: cover; }
.mainimg.sub img { object-fit: contain; }
.cap { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumbs button { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #fff; opacity: .7; }
.thumbs button.on { border-color: var(--moon); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 2px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--lav); background: var(--glass); }
.tag.m { color: var(--moon); }
.pinfo h1 { font-size: 24px; line-height: 1.5; margin: 14px 0 10px; }
.price { font-size: 30px; font-weight: 700; color: var(--moon); }
.price small { font-size: 13px; color: var(--ink-2); font-weight: 400; margin-left: 8px; }
.desc { margin: 18px 0; color: var(--ink-2); white-space: pre-line; }
.opt { margin-top: 18px; }
.opt .t { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.opt .t span { color: var(--ink); font-weight: 700; }
.vals { display: flex; flex-wrap: wrap; gap: 8px; }
.vals button { padding: 7px 14px; border-radius: 99px; font-size: 13px; border: 1px solid var(--line); background: var(--glass); }
.vals button.on { background: var(--lav); color: #1e1645; border-color: var(--lav); font-weight: 700; }
.buy { display: flex; gap: 12px; margin-top: 24px; align-items: center; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--glass); }
.qty button { width: 40px; height: 44px; font-size: 18px; }
.qty input { width: 40px; text-align: center; background: none; border: 0; color: var(--ink); font: inherit; font-size: 16px; }
.buy .btn { flex: 1; padding: 13px 18px; }
.msg { color: #ffb3c7; font-size: 13px; min-height: 1.6em; margin-top: 8px; }
.ship { list-style: none; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ship li { padding-left: 1.3em; position: relative; }
.ship li::before { content: '✦'; position: absolute; left: 0; color: var(--moon); font-size: 10px; top: 4px; }
.box { margin-top: 22px; }
.box h3 { font-size: 15px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.box h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 10px var(--moon); }
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.spec th { width: 7.5em; color: var(--lav); font-weight: 500; background: rgba(200,182,255,.06); }
.sizes th, .sizes td { white-space: nowrap; text-align: center; }
.sizes thead th { background: rgba(200,182,255,.1); color: var(--lav); font-weight: 500; }
.sizes tbody th { color: var(--moon); }
.unit { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.note-box { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.note-box p + p { margin-top: 6px; }
.note-box .warn { color: var(--moon); }
.related { margin-top: 64px; }

/* かご */
.ptitle { text-align: center; padding: 44px 16px 8px; }
.ptitle h1 { font-size: 26px; letter-spacing: .1em; }
.ptitle p { font-size: 11px; letter-spacing: .4em; color: var(--lav); }
.cart { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; padding-top: 20px; }
.row { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 12px; }
.row img { width: 84px; height: 100px; object-fit: cover; border-radius: 40px 40px 10px 10px; }
.row .nm { font-weight: 700; font-size: 14px; }
.row .op { font-size: 12px; color: var(--ink-2); }
.row .qty { display: inline-flex; margin-top: 6px; }
.row .qty button { width: 34px; height: 34px; }
.row .qty input { width: 30px; }
.row .rm { font-size: 12px; color: var(--ink-3); text-decoration: underline; margin-top: 6px; }
.row .sub { font-weight: 700; color: var(--moon); white-space: nowrap; }
.sum { padding: 22px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line); position: sticky; top: 86px; }
.sum dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; }
.sum .total { font-size: 18px; font-weight: 700; color: var(--moon); border-top: 1px solid var(--line); padding-top: 10px; }
.sum .free { font-size: 12px; color: var(--ink-2); margin: 12px 0 16px; }
.empty { text-align: center; padding: 60px 0; }
.empty p { margin-bottom: 20px; color: var(--ink-2); }
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px; background: rgba(8,6,20,.7); }
.modal.show { display: grid; }
.modal .mbox { max-width: 400px; width: 100%; padding: 30px 26px; border-radius: var(--r); background: #2a2159; border: 1px solid var(--line); text-align: center; }
.modal h3 { font-size: 18px; margin-bottom: 10px; color: var(--moon); }
.modal p { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; transition: .25s; z-index: 60; background: var(--moon); color: #241a4a; font-weight: 700; padding: 11px 24px; border-radius: 99px; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 法務ページ */
.legal { max-width: 820px; margin: 0 auto; padding: 20px 20px 40px; }
.legal .lead { padding: 14px 18px; border-radius: 14px; background: rgba(245,230,168,.1); color: var(--moon); font-size: 14px; margin-bottom: 20px; }
.legal table { background: var(--glass); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.legal th { width: 11em; color: var(--lav); font-weight: 500; }
.legal h2 { font-size: 16px; margin: 28px 0 8px; color: var(--moon); }
.legal p, .legal li { font-size: 14px; color: var(--ink-2); }
.legal ul { padding-left: 1.4em; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero .in { grid-template-columns: 1fr; }
  .windows { max-width: 520px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { padding: 8px 8px 12px; }
  .card .nm { font-size: 13px; }
  .card .pr { font-size: 16px; }
  .meta { flex-direction: column; gap: 0; }
  .promise .cols, .ft .in { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .pd .photo { position: static; }
  .cart { grid-template-columns: 1fr; }
  .sum { position: static; }
  .row { grid-template-columns: 64px 1fr; }
  .row img { width: 64px; height: 80px; }
  .row .sub { grid-column: 2; }
  .hero { padding: 40px 0 36px; }
  .hero .bigmoon { width: 200px; height: 200px; right: -110px; top: -50px; }
  .in { padding: 0 16px; }
  .legal th { width: 7em; }
  .topline .sep, .topline span:last-child { display: none; }
}
.pd > *, .cart > *, .hero .in > * { min-width: 0; }

/* 口コミ（購入者の口コミだけ。0件なら何も出さない） */
[hidden] { display: none !important; }
.card-w { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-w > .card { flex: 1; }
.card-w:hover > .card { transform: translateY(-4px); border-color: rgba(245,230,168,.5); }
.card-rv { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 32px); padding: 3px 12px 3px 10px; border-radius: 99px; background: rgba(18,15,42,.82); border: 1px solid rgba(245,230,168,.35); font-size: 12px; line-height: 1.5; color: var(--ink); white-space: nowrap; transition: transform .2s; }
.card-w:hover .card-rv { transform: translate(-50%, -4px); }
.card-rv .rv-stars { font-size: 11px; letter-spacing: 0; }
.card-rv .n { font-weight: 700; color: var(--moon); }
.card-rv .c { color: var(--ink-2); }
.card-rv:hover .c { color: var(--moon); text-decoration: underline; }
.rv-stars { color: rgba(200,182,255,.28); letter-spacing: .04em; font-size: 15px; white-space: nowrap; }
.rv-stars .on { color: var(--moon); text-shadow: 0 0 8px rgba(245,230,168,.4); }
#reviews { margin-top: 64px; }
.rv-summary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 22px; }
.rv-summary .rv-stars { font-size: 22px; }
.rv-avg { font-size: 26px; font-weight: 700; color: var(--moon); line-height: 1; }
.rv-count { font-size: 13px; color: var(--ink-2); }
.rv-list { list-style: none; max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.rv { padding: 20px 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.rv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-badge { font-size: 11px; padding: 1px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--lav); background: rgba(200,182,255,.08); letter-spacing: .04em; }
.rv h4 { font-size: 16px; font-weight: 700; line-height: 1.6; margin-top: 8px; overflow-wrap: anywhere; }
.rv-item { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.rv-item a { text-decoration: underline; color: var(--lav); }
.rv-item a:hover { color: var(--moon); }
.rv p { font-size: 14px; color: var(--ink-2); margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-meta { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.rv-more { display: flex; margin: 24px auto 0; }
.pd-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--ink-2); margin: -2px 0 8px; }
.pd-rating .n { font-weight: 700; color: var(--moon); }
.pd-rating a { text-decoration: underline; }
.pd-rating a:hover { color: var(--moon); }
.rv-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(8,6,20,.7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.rv-sheet-box { width: 100%; max-width: 620px; max-height: 86vh; overflow: auto; padding: 24px 24px 26px; border-radius: var(--r); background: #241c52; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.rv-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.rv-sheet-head h3 { font-size: 16px; line-height: 1.6; }
.rv-sheet-x { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--line); font-size: 20px; line-height: 1; }
.rv-sheet-x:hover { color: var(--moon); border-color: var(--moon); }
.rv-sheet .rv-summary { justify-content: flex-start; margin-bottom: 14px; }
.rv-sheet .rv { padding: 16px 18px; background: rgba(255,255,255,.05); }
.rv-sheet-go { display: flex; margin-top: 20px; }
@media (max-width: 760px) {
  .card-rv { top: 14px; max-width: calc(100% - 20px); padding: 2px 8px 2px 7px; gap: 3px; font-size: 11px; }
  .card-rv .rv-stars { font-size: 9px; }
  #reviews { margin-top: 48px; }
  .rv { padding: 16px 16px; }
  .rv-more { width: 100%; }
  .rv-sheet { align-items: flex-end; padding: 0; }
  .rv-sheet-box { border-radius: 24px 24px 0 0; max-height: 88vh; padding: 20px 16px 24px; }
}
