:root {
  --bg: #fdf8f6;
  --paper: #ffffff;
  --ink: #4a3b4f;
  --muted: #8d7d93;
  --line: #f3e2ea;
  --accent: #ec6f9b;
  --accent-deep: #d94f82;
  --accent-soft: #fde9f1;
  --lav: #b9a3e8;
  --lav-soft: #f1ebfd;
  --mint-soft: #e5f6ef;
  --gold: #e0a93c;
  --shadow: 0 6px 20px rgba(236, 111, 155, .12);
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #251f2b; --paper: #302838; --ink: #f6eef6; --muted: #c4b5c9; --line: #463b4f;
    --accent: #ff8fb6; --accent-deep: #ff7aa8; --accent-soft: #46303e; --lav: #c8b5f5; --lav-soft: #3a3150;
    --mint-soft: #2d3d38; --gold: #f2c46a; --shadow: 0 6px 20px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 14%, transparent) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.75;
}
a { color: inherit; }
.demo-bar { background: linear-gradient(90deg, var(--accent-soft), var(--lav-soft)); color: var(--ink); font-size: 12px; text-align: center; padding: 7px 16px; letter-spacing: .02em; }

/* ヘッダー */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1120px; margin: 0 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; background: #fbf8f4; box-shadow: var(--shadow); }
.brand-text { font-size: 19px; letter-spacing: .03em; }
.nav { display: flex; gap: 6px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); padding: 4px 12px; border-radius: 999px; }
.nav a:hover { color: var(--accent-deep); background: var(--accent-soft); }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }

/* 看板 */
.hero {
  position: relative; margin: 6px 0 8px; border-radius: 32px; overflow: hidden;
  background: #fbf8f4 url("./assets/hero.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
  min-height: clamp(380px, 52vw, 560px);
  display: grid; place-items: start center; text-align: center;
}
.hero-inner { padding: clamp(36px, 6vw, 64px) 20px 32px; max-width: 34em; color: #4a3b4f; }
.hero-kicker { color: #d94f82; letter-spacing: .18em; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
.hero h1 { font-size: clamp(28px, 5.4vw, 48px); line-height: 1.35; margin: 0 0 14px; font-weight: 900; text-shadow: 0 2px 0 #fff, 0 0 18px #fff; }
.hero-lead { margin: 0 auto 18px; font-size: clamp(14px, 1.8vw, 16px); background: rgba(255, 255, 255, .78); border-radius: 18px; padding: 8px 14px; display: inline-block; }
.hero-colors { display: flex; justify-content: center; gap: 8px; margin: 0 0 20px; }
.hero-colors span { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .12); }
.btn { display: inline-block; background: linear-gradient(135deg, #f58bb0, #c79bf0); color: #fff; text-decoration: none; padding: 12px 26px; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700; box-shadow: 0 6px 16px rgba(236, 111, 155, .35); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--accent-deep); border: 2px solid var(--accent); box-shadow: none; }

/* 見出し */
section h2 { font-size: 22px; font-weight: 900; margin: 44px 0 8px; display: flex; align-items: center; gap: 10px; }
section h2::after { content: "♡"; color: var(--accent); font-size: 18px; }
.sec-no { font-size: 12px; color: #fff; background: var(--lav); border-radius: 999px; padding: 2px 10px; letter-spacing: .08em; }
.sec-lead { color: var(--muted); margin: 0 0 16px; }
.fine { font-size: 12px; color: var(--muted); }

/* 買いどき暦 */
.cal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cal-item { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.cal-item.now { border-color: var(--accent); background: linear-gradient(160deg, var(--paper) 60%, var(--accent-soft)); }
.cal-badge { justify-self: start; font-size: 11px; background: var(--accent-soft); color: var(--accent-deep); padding: 2px 12px; border-radius: 999px; font-weight: 700; }
.cal-item.now .cal-badge { background: var(--accent); color: #fff; }
.cal-name { font-weight: 700; }
.cal-date { font-size: 13px; color: var(--muted); }
.cal-note { font-size: 13px; }

/* 迷ったらこれ */
.picks { background: linear-gradient(135deg, var(--accent-soft), var(--lav-soft) 60%, var(--mint-soft)); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.picks-title { margin: 0 0 10px; font-weight: 900; font-size: 17px; color: var(--accent-deep); }
.picks-title span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.picks-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pick { display: grid; gap: 4px; text-decoration: none; background: var(--paper); border-radius: 18px; padding: 10px; height: 100%; box-shadow: var(--shadow); transition: transform .15s; }
.pick:hover { transform: translateY(-3px); }
.pick img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 12px; }
.pick-kind { justify-self: start; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 10px; }
.pick-name { font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-price { font-weight: 900; color: var(--accent-deep); display: flex; gap: 6px; align-items: baseline; }
.pick-price small { color: var(--gold); font-size: 12px; }

/* 絞り込み */
.filters { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 12px; margin-bottom: 18px; box-shadow: var(--shadow); }
.filter-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.filter-label { font-size: 13px; color: var(--accent-deep); font-weight: 700; min-width: 3em; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 4px 13px; font: inherit; font-size: 13px; cursor: pointer; transition: transform .12s; }
.chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.chip.on { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 700; }
.sw { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .1); display: inline-block; }
.toggles { align-items: center; font-size: 14px; gap: 14px; }
.toggles label { display: inline-flex; align-items: center; gap: 6px; }
.toggles input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.toggles select { font: inherit; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.reset { margin-left: auto; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; }
.reset:hover { color: var(--accent-deep); }
.count { margin: 0; font-size: 13px; color: var(--muted); }

/* 品のカード */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-btn { all: unset; display: flex; flex-direction: column; height: 100%; width: 100%; cursor: pointer; }
.card-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.thumb { position: relative; aspect-ratio: 4 / 3; background:
  radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), transparent 45%),
  linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #ffffff)); }
.thumb.photo { background: #fff; aspect-ratio: 1; }
.thumb.photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb-kind { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: #d94f82; font-size: 11px; padding: 2px 10px; border-radius: 999px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.thumb-demo { position: absolute; right: 10px; top: 10px; font-size: 10px; letter-spacing: .15em; background: rgba(74,59,79,.55); color: #fff; padding: 2px 8px; border-radius: 999px; }
.card-body { padding: 12px 14px 12px; flex: 1; }
.card-shop { margin: 0; font-size: 11px; color: var(--muted); }
.card-name { margin: 2px 0 6px; font-size: 15px; line-height: 1.5; font-weight: 700; }
body.live .card-name { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.swatches { display: flex; gap: 5px; margin-bottom: 6px; }
.review { margin: 0 0 4px; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.stars { --r: 0; position: relative; display: inline-block; color: var(--line); letter-spacing: 1px; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0; width: calc(var(--r) / 5 * 100%); overflow: hidden; color: var(--gold); white-space: nowrap; }
.rc { color: var(--muted); white-space: nowrap; }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-size: 20px; font-weight: 900; color: var(--accent-deep); }
.price .was { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price .off { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 9px; border-radius: 999px; }
.meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; }
.meta > span { padding: 1px 9px; border-radius: 999px; }
.pt { color: #a86d0c; background: #fff3d6; font-weight: 700; }
.end { color: var(--muted); background: var(--bg); }
.end.soon { color: #fff; background: var(--accent); font-weight: 700; }
.ship { color: #2f8a63; background: var(--mint-soft); }
.card-btn .go { display: block; margin: 0 12px 14px; text-align: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f58bb0, #c79bf0); border-radius: 999px; padding: 8px 0; box-shadow: 0 4px 10px rgba(236, 111, 155, .3); }
.card:hover .go { filter: brightness(1.05); }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }

/* このサイトについて */
.about { background: var(--paper); border: 2px dashed var(--accent); border-radius: var(--radius); padding: 4px 20px 16px; margin-top: 44px; }
.about-list { padding-left: 1.2em; color: var(--muted); font-size: 14px; }
.about-list li::marker { content: "♡ "; color: var(--accent); }

.site-footer { padding: 24px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1120px; margin: 0 auto; font-size: 13px; color: var(--muted); }

.detail { border: 0; border-radius: var(--radius); padding: 24px; max-width: min(520px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); }
.detail::backdrop { background: rgba(74, 59, 79, .45); }
.detail h3 { margin: 6px 0 4px; }
.detail-tag { margin: 0; font-size: 11px; letter-spacing: .1em; color: var(--accent-deep); }
.detail-shop { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.noscript { text-align: center; padding: 16px; }

@media (max-width: 600px) {
  .site-header { padding: 12px 16px; }
  .nav { gap: 2px; font-size: 12px; }
  .nav a { padding: 4px 8px; }
  main { padding: 0 16px 40px; }
  .hero { border-radius: 24px; background-size: 170% auto; background-position: center bottom; min-height: 440px; }
  .reset { margin-left: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .picks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: 10px 10px 10px; }
  .card-btn .go { margin: 0 10px 12px; font-size: 12px; }
  .price .now { font-size: 17px; }
}

/* 推し色で選ぶ（トップの入口） */
.iro-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.iro-link { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 700; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.iro-link:hover { transform: translateY(-2px); border-color: var(--c); }
.iro-link .sw { width: 22px; height: 22px; }

/* 推し色ごとの頁 */
.crumbs { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.crumbs a { color: var(--muted); }
.color-hero { position: relative; margin: 12px 0 8px; padding: 28px 22px 20px; border-radius: 32px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--oshi) 22%, var(--paper)), var(--paper) 70%); border: 2px solid color-mix(in srgb, var(--oshi) 35%, var(--line)); box-shadow: var(--shadow); }
.color-dot { display: block; width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 50%; background: var(--oshi); box-shadow: 0 0 0 5px #fff, 0 4px 12px rgba(0,0,0,.15); }
.color-hero h1 { margin: 6px 0 10px; font-size: clamp(24px, 4.6vw, 36px); font-weight: 900; }
.color-intro { max-width: 36em; margin: 0 auto 8px; }
.color-nav { justify-content: center; margin-top: 12px; }
.color-nav .chip { text-decoration: none; }
.color-page h2::after { color: var(--oshi); }

/* セール情報 */
.sub-h { font-size: 16px; font-weight: 900; margin: 18px 0 10px; color: var(--accent-deep); }
.sale-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sale-item { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: grid; gap: 3px; box-shadow: var(--shadow); }
.sale-item.now { border-color: var(--accent); background: linear-gradient(160deg, var(--paper) 55%, var(--accent-soft)); }
.sale-item.now .cal-badge { background: var(--accent); color: #fff; }
.sale-link { justify-self: start; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.sale-checked { font-size: 11px; color: var(--muted); }
.sale-empty { color: var(--muted); font-size: 14px; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; }
