/* Layout: 1120px column on matte black; gold used only for rules, numerals and the one primary action per screen. */
:root {
  --bg: #f6f8ff;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --line: #e3e7f5;
  --line-strong: #c9d0ea;
  --gold: #ff4f7b; /* main pop accent (pink) */
  --gold-soft: #e0346a;
  --text: #1d2140;
  --text-2: #3d4363;
  --muted: #6b7194;
  --on-accent: #ffffff;
  --yellow: #ffc83d;
  --sky: #3aa0ff;
  --mint: #2ccfa6;
  --violet: #8b5cf6;
  --ok: #17a673;
  --warn: #e08a00;
  --off: #9aa0b8;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --font-latin: "Fredoka", "Zen Maru Gothic", system-ui, sans-serif;
  --font-body: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, label:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.4; text-wrap: balance; margin: 0; font-feature-settings: "palt" 1; letter-spacing: .01em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 18px; flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-en { font-family: var(--font-latin); font-size: 24px; letter-spacing: 0.22em; font-weight: 600; color: var(--gold); }
.logo-ja { font-size: 10px; letter-spacing: 0.3em; color: var(--muted); margin-top: 4px; }
.nav { margin-left: auto; display: flex; gap: 22px; overflow-x: auto; min-width: 0; max-width: 100%; scrollbar-width: none; }
.nav a { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; padding-block: 4px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-color: var(--gold); }
.search { position: relative; flex: 0 1 240px; min-width: 0; }
.search input { width: 100%; height: 36px; padding: 0 14px 0 34px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7194' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 12px center; color: var(--text); font: 13px var(--font-body); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--gold); }
.search-pop { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(58,77,160,.18); padding: 6px; }
.sp-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius); }
.sp-item:hover, .sp-item:focus-visible { background: var(--surface-2); }
.sp-item img, .sp-cap { width: 48px; height: 48px; border-radius: 3px; object-fit: cover; background: var(--bg); display: block; }
.sp-cap { background: linear-gradient(180deg, var(--gold) 0 49%, #fff 49% 51%, var(--yellow) 51%); border-radius: 50%; transform: scale(.7); }
.sp-name { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-price { font: 600 15px var(--font-latin); color: var(--gold); font-variant-numeric: lining-nums; }
.sp-none { margin: 0; padding: 12px; font-size: 13px; color: var(--muted); }
.sp-all { width: 100%; margin-top: 4px; padding: 10px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--gold-soft); font: 13px var(--font-body); cursor: pointer; }
.lang-switch { flex: none; min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; letter-spacing: .08em; color: var(--gold-soft); transition: border-color .2s, color .2s; }
.lang-switch:hover { border-color: var(--gold); color: var(--text); }
@media (max-width: 1100px) { .nav { gap: 16px; } }
@media (max-width: 960px) {
  .site-header .wrap { gap: 12px 16px; }
  .lang-switch { margin-left: auto; }
  .nav { order: 4; margin-left: 0; flex-basis: 100%; }
  .search { order: 3; flex-basis: 100%; }
  .search-pop { left: 0; right: auto; width: 100%; }
}

.sample-bar { background: var(--surface-2); color: var(--gold-soft); font-size: 12px; text-align: center; padding: 6px 16px; letter-spacing: 0.05em; }

/* ---------- common ---------- */
main { padding-block: 0 96px; }
.section { padding-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { font-family: var(--font-latin); font-style: italic; color: var(--gold); font-size: 15px; letter-spacing: 0.12em; display: block; margin-bottom: 6px; }
.section-head h2 { font-size: clamp(22px, 3vw, 28px); }
.more { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }
.more:hover { color: var(--gold); }
.lead { color: var(--muted); max-width: 40em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius);
  font: 500 14px/1 var(--font-body); letter-spacing: 0.06em; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--on-accent); font-weight: 700; }
.btn-gold:hover { background: var(--gold-soft); color: var(--on-accent); }

.chip { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.chip-ai::before { content: "AI "; color: var(--gold); font-family: var(--font-latin); font-style: italic; }

.breadcrumb { font-size: 12px; color: var(--muted); padding-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- capsule placeholder (shown when no image yet) ---------- */
.thumb { position: relative; aspect-ratio: 1 / 1; max-width: 100%; background: var(--surface); overflow: hidden; border-radius: var(--radius); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.capsule { position: absolute; inset: 0; display: grid; place-items: center; }
.capsule i {
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, #ff8aa7 0 49%, #fff 49% 51%, #ffe08a 51% 100%);
  box-shadow: inset 0 -10px 20px rgba(0,0,0,.08), inset 8px 10px 16px rgba(255,255,255,.7), 0 6px 0 rgba(0,0,0,.05);
}
.capsule span { position: absolute; bottom: 10px; font-size: 10px; letter-spacing: .2em; color: var(--off); font-family: var(--font-latin); }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card:hover .card-name { color: var(--gold-soft); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--gold); }
.card-name { font-size: 14px; font-weight: 500; line-height: 1.55; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-foot b { color: var(--text); font-weight: 500; }
.badge-new { position: absolute; top: 8px; left: 8px; font: italic 600 12px/1 var(--font-latin); letter-spacing: .14em; color: var(--on-accent); background: var(--gold); padding: 4px 8px; border-radius: 2px; }

/* ---------- hero + diagnosis ---------- */
.hero { padding-top: 56px; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 900px) { .hero { padding-top: 36px; gap: 28px; } }
.hero-intro { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.hero-text { position: relative; min-width: 0; padding-right: 260px; }
.hero-text .hero-planet { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 220px; }
.ph { display: inline-block; }
.br-pc { display: none; }
@media (min-width: 901px) {
  .hero-text { padding-right: 210px; }
  .hero-text .hero-planet { width: 180px; }
  .hero-text .hero-lead { white-space: nowrap; font-size: min(30px, calc((min(100vw, 1152px) - 32px - 210px) / 31.5)); }
}
@media (max-width: 900px) {
  .hero-intro { padding-bottom: 28px; }
  .hero-text { padding-right: 0; }
  .hero-text .hero-planet { position: relative; top: auto; right: auto; transform: none; float: right; width: 88px; margin: 6px 0 4px 14px; }
  .hero-stats { clear: both; }
}
.hero-lead { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.2vw, 36px); line-height: 1.55; letter-spacing: .01em; color: var(--text); }
.hero-sub { margin: 14px 0 0; font-size: clamp(14px, 1.4vw, 16px); color: var(--muted); letter-spacing: .04em; }
.hero-stats { margin: 32px 0 0; display: flex; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; gap: 6px; padding: 0 28px; border-left: 1px solid var(--line-strong); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dd { order: -1; margin: 0; font: 600 36px/1 var(--font-latin); color: var(--gold); font-variant-numeric: tabular-nums lining-nums; }
.hero-stats dt { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 520px) { .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero-stats div { padding: 0 10px; } .hero-stats dd { font-size: 28px; } .hero-stats dt { font-size: 11px; line-height: 1.4; } }

/* planet: a capsule with an orbit ring (the site's name, drawn) */
.hero-planet { position: relative; width: 220px; aspect-ratio: 1; max-width: 100%; }
.hero-planet i { position: absolute; display: block; }
.hero-planet .orb { inset: 20%; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.75), transparent 28%),
              linear-gradient(180deg, #ff86a3 0%, var(--gold) 47%, #fff 47% 53%, var(--yellow) 53%, #ffb020 100%);
  box-shadow: inset 0 -12px 22px rgba(0,0,0,.10), 0 14px 40px rgba(255,79,123,.25); }
.hero-planet .ring { left: -2%; right: -2%; top: 39%; height: 22%; border-radius: 50%; border: 4px solid var(--sky); transform: rotate(-16deg); z-index: 1; }
.hero-planet .ring-front { z-index: 3; clip-path: inset(50% 0 0 0); }
.hero-planet .moon { width: 7%; aspect-ratio: 1; border-radius: 50%; background: var(--mint); top: 12%; right: 10%; z-index: 4; box-shadow: 0 4px 10px rgba(44,207,166,.4); }
@media (prefers-reduced-motion: no-preference) {
  .hero-planet .moon { animation: orbit 14s linear infinite; transform-origin: -230% 520%; }
  @media (max-width: 760px) { .hero-planet .moon { animation: none; } }
}
@keyframes orbit { to { transform: rotate(360deg); } }

.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.quiz h2 { font-size: 20px; }
.quiz h2 small { display: block; font: italic 14px var(--font-latin); color: var(--gold); letter-spacing: .12em; margin-bottom: 4px; }
.quiz fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.quiz legend { font-size: 13px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.quiz legend b { color: var(--gold); font-family: var(--font-latin); font-size: 18px; margin-right: 8px; font-variant-numeric: lining-nums; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); transition: all .15s; }
.opt input:checked + span { border-color: var(--gold); color: var(--on-accent); background: var(--gold); font-weight: 700; }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.quiz-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 40px; }
.quiz.is-wizard .quiz-qs { display: block; min-height: 132px; }
.quiz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.quiz-step { font: 600 18px/1 var(--font-latin); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .08em; }
.quiz:not(.is-wizard) .quiz-step, .quiz:not(.is-wizard) .quiz-bar { display: none; }
.quiz-bar { height: 2px; background: var(--line); margin-top: -8px; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }
.quiz.is-wizard legend { font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--text); margin-bottom: 16px; }
.quiz.is-wizard legend b { display: none; }
.opts-lg .opt span { padding: 10px 22px; font-size: 15px; }
.quiz-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz-nav #quiz-back[hidden] + * { margin-left: auto; }
.quiz-nav .btn-gold { order: 3; margin-left: auto; }
.q-hint { margin: -6px 0 16px; font-size: 12px; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; align-items: start; }
.grp { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, background .2s; }
.grp.is-on { border-color: var(--gold); background: #fff2f6; }
.grp.is-open { grid-column: 1 / -1; }
.grp-main { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.grp-main input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; flex: none; cursor: pointer; }
.grp-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--gold-soft); font: 12px var(--font-body); cursor: pointer; border-bottom: 1px solid var(--line-strong); }
.grp-more::after { content: " ▾"; }
.grp-more[aria-expanded="true"]::after { content: " ▴"; }
.grp-subs { padding-top: 4px; display: flex; flex-direction: column; gap: 12px; }
.leaf-row { padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.025); border-radius: 0 var(--radius) var(--radius) 0; display: flex; flex-direction: column; gap: 8px; }
.leaf-label { font-size: 12px; color: var(--gold-soft); letter-spacing: .04em; }
.opts-sm .opt span { padding: 5px 12px; font-size: 12px; }
.quiz-qs > fieldset.enter-fwd { animation: q-in-fwd .28s ease both; }
.quiz-qs > fieldset.enter-back { animation: q-in-back .28s ease both; }
@keyframes q-in-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes q-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.btn-ghost { border-color: transparent; color: var(--muted); padding: 0 12px; }
.btn-ghost:hover { border-color: transparent; color: var(--text); }
.quiz .btn-gold { width: 100%; }
@media (min-width: 901px) { .quiz { padding: 32px 36px; } .quiz .btn-gold, .quiz-nav .btn { min-width: 200px; width: auto; } .quiz-nav .btn-ghost { min-width: 0; } }
.sortbar { display: flex; flex-wrap: wrap; gap: 6px; }
.sort { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 14px; font: 12px var(--font-body); cursor: pointer; transition: all .15s; }
.sort:hover { color: var(--text); border-color: var(--line-strong); }
.sort.is-on { background: var(--gold); border-color: var(--gold); color: var(--on-accent); font-weight: 700; }
.more-wrap { text-align: center; margin: 32px 0 0; }
.results-note { color: var(--muted); font-size: 13px; margin-top: -12px; margin-bottom: 24px; }
.match { color: var(--gold); }

/* ---------- ranking ---------- */
.rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: r; }
@media (max-width: 900px) { .rank { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.rank a { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rank-no { font: 600 italic 56px/0.9 var(--font-latin); color: var(--gold); font-variant-numeric: lining-nums; }
@media (max-width: 900px) {
  .rank a { flex-direction: row; align-items: center; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .rank .thumb { width: 72px; flex: none; }
  .rank-no { font-size: 40px; width: 36px; flex: none; }
}

/* ---------- genres ---------- */
.genres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 760px) { .genres { grid-template-columns: repeat(2, minmax(0, 1fr)); } .genres a:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.genres a { background: var(--bg); padding: 26px 20px; display: flex; flex-direction: column; gap: 4px; transition: background .2s; }
.genres a:hover { background: var(--surface); }
.genres .ja { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.genres .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- calendar ---------- */
.month { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding-block: 36px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .month { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.month-label b { display: block; font: 600 44px/1 var(--font-latin); color: var(--gold); font-variant-numeric: tabular-nums; }
.month-label span { font-size: 13px; color: var(--muted); }
.month-label .now { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--on-accent); background: var(--gold); padding: 1px 8px; border-radius: 2px; }
.month .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .month .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- item page ---------- */
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: 32px; }
@media (max-width: 820px) { .item { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.item h1 { font-size: clamp(24px, 3.4vw, 34px); margin-top: 6px; }
.price { margin-top: 20px; display: flex; align-items: baseline; gap: 10px; }
.price small { font-size: 13px; color: var(--muted); }
.price b { font: 600 48px/1 var(--font-latin); color: var(--gold); font-variant-numeric: tabular-nums; }
.price span { font-size: 13px; color: var(--muted); }
.spec { margin: 28px 0 0; display: grid; grid-template-columns: 7em minmax(0, 1fr); border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd a { border-bottom: 1px solid var(--line-strong); }
.spec dd a:hover { color: var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.desc { margin-top: 24px; color: var(--text-2); }
.name-ja { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.stores .s-addr [lang="ja"] { display: block; }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media (max-width: 640px) { .panel { padding: 20px; } }
.stock-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.stock-tools select { min-height: 46px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 14px; font: 14px var(--font-body); }
.stock-status { font-size: 13px; color: var(--muted); margin-top: 14px; min-height: 1.6em; }
.stores { list-style: none; padding: 0; margin: 16px 0 0; }
.stores li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.stores li.is-off { opacity: .5; }
.stores .s-name { font-weight: 500; }
.stores .s-addr { font-size: 12px; color: var(--muted); grid-column: 1; }
.stores .s-right { grid-row: 1 / span 2; grid-column: 2; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.stores .s-dist { font: 600 20px/1 var(--font-latin); color: var(--gold); font-variant-numeric: tabular-nums; }
.pill { font-size: 11px; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill.in_stock { color: var(--ok); }
.pill.few { color: var(--warn); }
.pill.out_of_stock { color: var(--off); }
.fine { font-size: 12px; color: var(--muted); margin-top: 16px; }

.buy { margin-top: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; background: linear-gradient(120deg, #fff1f5, #fff9e6); }
@media (max-width: 720px) { .buy { grid-template-columns: minmax(0, 1fr); } }
.buy h3 { font-size: 20px; }
.buy p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.buy .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.buy.is-emph { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.pr { font-size: 10px; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; margin-left: 8px; vertical-align: middle; font-family: var(--font-body); font-weight: 400; }

/* ---------- prose pages ---------- */
.page-head { padding-top: 56px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-head .lead { margin-top: 12px; }
.prose { max-width: 42em; }
.prose h2 { font-size: 20px; margin-top: 48px; margin-bottom: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose p, .prose li { color: var(--text-2); }
.faq { max-width: 46em; margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; font-family: var(--font-latin); font-style: italic; color: var(--gold); margin-right: 10px; font-size: 18px; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--gold); font: 300 24px var(--font-latin); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px 32px; color: var(--text-2); }

.empty { color: var(--muted); padding: 32px 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 12px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--gold); }
.site-footer .disclosure { flex-basis: 100%; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 900px) { .quiz-nav { flex-wrap: nowrap; } .quiz-nav .btn-gold { width: auto; flex: 1 1 auto; } }
.archive { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.archive h2 { font-size: 20px; margin-bottom: 16px; }
.archive-list { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-list a { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; color: var(--muted); }
.archive-list a:hover { border-color: var(--gold); color: var(--text); }

/* ================= Pop theme details ================= */
body { font-weight: 500; }
h1, h2, h3 { font-weight: 900; letter-spacing: .02em; }
.site-header { background: var(--surface); border-bottom: 0; box-shadow: 0 2px 0 var(--line); }
.logo-en { font-family: var(--font-latin); font-weight: 700; letter-spacing: .06em; font-size: 26px; }
.logo-en .lw0 { color: var(--gold); }
.logo-en .lw1 { color: var(--sky); }
.logo-ja { color: var(--muted); letter-spacing: .16em; }
.nav a { color: var(--text-2); font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.lang-switch { background: var(--yellow); border-color: var(--yellow); color: var(--text); font-weight: 700; }
.lang-switch:hover { background: #ffd666; color: var(--text); border-color: #ffd666; }
.search input { background-color: var(--surface-2); border-color: transparent; border-width: 2px; }
.search input:focus { border-color: var(--sky); background-color: #fff; }
.sp-all { color: var(--sky); font-weight: 700; }

.btn { border-radius: 999px; font-weight: 700; border-width: 2px; border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--on-accent); box-shadow: 0 5px 0 #d93763; margin-bottom: 5px; transition: transform .12s, box-shadow .12s, background .2s; }
.btn-gold:hover { background: #ff6a90; border-color: #ff6a90; color: var(--on-accent); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 1px 0 #d93763; }
.btn-ghost { background: transparent; box-shadow: none; }

/* hero */
.hero-intro { border-bottom: 0; padding-bottom: 8px; }
.hero-lead { font-weight: 900; color: var(--text); }
.hero-sub { color: var(--text-2); font-weight: 700; }
.hero-stats { gap: 12px; }
.hero-stats div, .hero-stats div:first-child { border-left: 0; padding: 12px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 0 var(--line); }
.hero-stats div:nth-child(1) dd { color: var(--gold); }
.hero-stats div:nth-child(2) dd { color: var(--sky); }
.hero-stats div:nth-child(3) dd { color: var(--mint); }
.hero-stats dd { font-weight: 700; }
.hero-stats dt { color: var(--muted); font-weight: 700; }
@media (max-width: 520px) { .hero-stats { gap: 8px; } .hero-stats div, .hero-stats div:first-child { padding: 10px 12px; } }

/* quiz */
.quiz { border: 0; box-shadow: 0 10px 30px rgba(58,77,160,.10), 0 2px 0 var(--line); }
.quiz h2 small { font-family: var(--font-latin); font-style: normal; font-weight: 700; color: var(--sky); }
.quiz-step { color: var(--sky); font-weight: 700; }
.quiz-bar { height: 8px; border-radius: 999px; background: var(--surface-2); margin-top: -4px; }
.quiz-bar i { border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--yellow)); }
.opt span { background: var(--surface); border: 2px solid var(--line); color: var(--text-2); font-weight: 700; }
.opt input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
.opts-lg .opt span { padding: 12px 26px; font-size: 16px; }
.grp { border: 2px solid var(--line); background: var(--surface); }
.grp-more { color: var(--sky); border-bottom: 2px dotted var(--sky); font-weight: 700; }
.leaf-row { border-left: 0; background: #f0f7ff; border-radius: 12px; }
.leaf-label { color: var(--sky); font-weight: 700; }
.quiz-nav { border-top: 2px dashed var(--line); }

/* section heads get a little capsule */
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: linear-gradient(180deg, var(--gold) 0 46%, #fff 46% 54%, var(--yellow) 54%); box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.section:nth-of-type(3n+1) .section-head h2::before { background: linear-gradient(180deg, var(--sky) 0 46%, #fff 46% 54%, var(--mint) 54%); }
.section:nth-of-type(3n+2) .section-head h2::before { background: linear-gradient(180deg, var(--violet) 0 46%, #fff 46% 54%, var(--gold) 54%); }
.more { color: var(--sky); font-weight: 700; }
.more:hover { color: var(--gold); }

/* cards */
.thumb { background: var(--surface); box-shadow: 0 4px 0 var(--line); }
.card { transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card:hover .card-name { color: var(--gold); }
.card-meta { color: var(--sky); font-weight: 700; }
.card-name { font-weight: 700; color: var(--text); }
.card-foot b { color: var(--gold); font-family: var(--font-latin); font-weight: 700; font-size: 15px; }
.badge-new { background: var(--yellow); color: var(--text); font-family: var(--font-latin); font-style: normal; font-weight: 700; border-radius: 999px; padding: 4px 10px; letter-spacing: .08em; }

/* ranking */
.rank-no { font-family: var(--font-latin); font-style: normal; font-weight: 700; }
.rank li:nth-child(5n+1) .rank-no { color: var(--gold); }
.rank li:nth-child(5n+2) .rank-no { color: var(--sky); }
.rank li:nth-child(5n+3) .rank-no { color: var(--mint); }
.rank li:nth-child(5n+4) .rank-no { color: var(--violet); }
.rank li:nth-child(5n+5) .rank-no { color: var(--warn); }

/* genres: colorful tiles */
.genres { background: transparent; border: 0; gap: 12px; }
.genres a { border-radius: var(--radius); padding: 22px 20px; color: var(--text); box-shadow: 0 4px 0 rgba(0,0,0,.05); transition: transform .15s; }
.genres a:hover { transform: translateY(-3px); }
.genres a:nth-child(5n+1) { background: #ffe3eb; }
.genres a:nth-child(5n+2) { background: #dff0ff; }
.genres a:nth-child(5n+3) { background: #dcf7ef; }
.genres a:nth-child(5n+4) { background: #fff3cc; }
.genres a:nth-child(5n+5) { background: #ece5ff; }
.genres .ja { font-weight: 900; }
.genres .n { color: var(--text-2); }

/* item page */
.price b { color: var(--gold); font-weight: 700; }
.spec dt { font-weight: 700; }
.chip { background: var(--surface-2); border-color: transparent; color: var(--text-2); font-weight: 700; }
.chip-ai::before { color: var(--sky); font-style: normal; font-weight: 700; }
.panel { border: 0; box-shadow: 0 10px 30px rgba(58,77,160,.08), 0 2px 0 var(--line); }
.stores .s-dist { color: var(--sky); font-weight: 700; }
.stock-tools select { background: var(--surface-2); border: 2px solid var(--line); border-radius: 999px; }
.buy { border: 2px solid #ffd0dc; }
.pr { border-radius: 4px; }
.eyebrow { color: var(--sky); font-style: normal; font-weight: 700; }

/* misc */
.sort { border-width: 2px; font-weight: 700; color: var(--text-2); background: var(--surface); }
.sort.is-on { background: var(--sky); border-color: var(--sky); color: #fff; }
.month-label b { color: var(--gold); font-weight: 700; }
.month-label .now { background: var(--yellow); color: var(--text); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.month { border-top: 2px dashed var(--line); }
.faq summary::before { color: var(--gold); font-style: normal; font-weight: 700; }
.faq summary::after { color: var(--sky); }
.site-footer { background: var(--surface); border-top: 0; box-shadow: 0 -2px 0 var(--line); }
.sample-bar { background: var(--yellow); color: var(--text); }
.archive-list a { background: var(--surface); border-width: 2px; border-radius: 999px; font-weight: 700; }
.sp-price { color: var(--gold); font-weight: 700; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, label:focus-within { outline-color: var(--sky); }
@media (prefers-reduced-motion: reduce) { .card:hover, .genres a:hover { transform: none; } }

/* 作品名がたくさんある段 */
.leaf-row .opt small { margin-left: 6px; font-size: 11px; color: var(--muted); font-family: var(--font-latin); font-weight: 600; }
.leaf-row .opt input:checked + span small { color: rgba(255,255,255,.85); }
.leaf-filter { width: 100%; max-width: 360px; height: 38px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: 500 14px var(--font-body); color: var(--text); }
.leaf-filter:focus { outline: none; border-color: var(--sky); }
.opts.is-clipped:not(.is-filtering) .opt.is-extra { display: none; }
.opts.is-filtering .opt:not(.is-hit) { display: none; }
.leaf-all { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--sky); font: 700 13px var(--font-body); cursor: pointer; border-bottom: 2px dotted var(--sky); }
.leaf-none { margin: 0; font-size: 13px; color: var(--muted); }

/* 推しの名前の入力 */
.oshi-in { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.oshi-in input { width: 100%; max-width: 420px; height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: 500 15px var(--font-body); color: var(--text); }
.oshi-in input:focus { outline: none; border-color: var(--gold); }

/* 商品ページ：発売週・ハート */
.rel-note { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--sky); background: #e8f3ff; border-radius: 999px; padding: 1px 10px; }
.heart { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 2px solid #ffd0dc; background: #fff; color: var(--gold); font: 700 14px var(--font-body); cursor: pointer; transition: background .2s, transform .15s; }
.heart i { font-style: normal; font-size: 18px; line-height: 1; }
.heart b { font-family: var(--font-latin); font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.heart:hover { background: #fff2f6; }
.heart.is-on { background: var(--gold); border-color: var(--gold); color: #fff; }
.heart.is-on b { color: #fff; }
.heart.pop i { animation: heart-pop .5s ease; }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.hearts { font-style: normal; color: var(--gold); font-weight: 700; }

/* ラインナップ */
.lineup-sec { padding-top: 48px; }
.lineup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; counter-reset: ln; }
.lineup li { counter-increment: ln; background: var(--surface); border-radius: 12px; padding: 10px 14px; font-weight: 700; box-shadow: 0 2px 0 var(--line); display: flex; gap: 10px; align-items: baseline; }
.lineup li::before { content: counter(ln); font-family: var(--font-latin); color: var(--sky); font-weight: 700; min-width: 1.2em; }

/* 入荷情報 */
.arrivals { margin-top: 24px; }
.arr-stats { margin: 16px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.arr-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 16px; min-width: 120px; }
.arr-stats dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.arr-stats dd { margin: 2px 0 0; font: 700 20px/1.3 var(--font-latin); color: var(--text); }
.arr-h { font-size: 17px; margin-top: 24px; }
.arr-fast { list-style: none; margin: 10px 0 0; padding: 0; }
.arr-fast li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.af-lag { font: 700 15px var(--font-latin); color: var(--gold); text-align: center; background: #fff2f6; border-radius: 999px; padding: 2px 6px; }
.af-name { font-weight: 700; font-size: 14px; min-width: 0; }
.af-name small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.arr-prefs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.arr-prefs li { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; font-size: 12px; }
.arr-prefs b { font-size: 14px; }
.arr-prefs span { color: var(--sky); font-weight: 700; }
.arr-prefs small { color: var(--muted); }

/* フリマ */
.buy.flea { background: #f2f8ff; border-color: #cfe5ff; }

/* 入荷速報 */
.badge-feed { position: absolute; z-index: 1; top: 8px; left: 8px; font: 700 12px/1 var(--font-body); color: #fff; background: var(--mint); padding: 5px 10px; border-radius: 999px; }
.badge-feed.is-new { background: var(--sky); }
.feed-note { font-size: 12px; font-weight: 700; color: var(--ok); }
@media (max-width: 520px) {
  .arr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .arr-stats div { min-width: 0; padding: 8px 10px; }
  .arr-stats dd { font-size: 16px; }
  .arr-fast li { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; }
  .item-actions .btn-gold { flex: 1 1 100%; }
}

/* 性別・年代：横いっぱいに均等に並べる（余分なすき間を作らない） */
.opts.opts-lg { display: flex; flex-wrap: nowrap; gap: 8px; }
.opts-lg .opt { flex: 1 1 0; min-width: 0; }
.opts-lg .opt span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 52px; padding: 8px 6px; text-align: center; line-height: 1.3; }
@media (max-width: 520px) {
  .opts.opts-age { flex-wrap: wrap; }
  .opts-age .opt { flex: 1 1 30%; }
  .opts-lg .opt span { font-size: 15px; }
}
/* 性別・年代のボタンを少し小さく */
.opts-lg .opt span { min-height: 42px; padding: 6px 6px; font-size: 14px; }
@media (min-width: 901px) { .opts.opts-lg { max-width: 640px; } }
@media (max-width: 520px) { .opts-lg .opt span { min-height: 40px; font-size: 14px; } }

/* ===== 診断をコンパクトに（ボタン・枠・余白を小さく） ===== */
.quiz { padding: 20px 22px; gap: 14px; }
@media (min-width: 901px) { .quiz { padding: 22px 28px; } }
.quiz-head h2, .quiz h2 { font-size: 17px; }
.quiz-step { font-size: 15px; }
.quiz-bar { height: 6px; margin-top: -2px; }
.quiz.is-wizard .quiz-qs { min-height: 96px; }
.quiz.is-wizard legend { font-size: 16px; margin-bottom: 10px; }
.q-hint { font-size: 11.5px; margin: -4px 0 10px; }
.opt span { padding: 5px 12px; font-size: 12.5px; border-width: 1.5px; }
.opts-lg .opt span { min-height: 36px; padding: 4px 6px; font-size: 13.5px; }
.opts-sm .opt span { padding: 3px 10px; font-size: 11.5px; }
.groups { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.grp { padding: 10px 12px; gap: 6px; border-width: 1.5px; border-radius: 12px; }
.grp-main { font-size: 15px; gap: 8px; }
.grp-main input { width: 16px; height: 16px; }
.grp-more { font-size: 11.5px; }
.grp-subs { gap: 8px; }
.opts { gap: 6px; }
.leaf-row { padding: 10px 12px; gap: 6px; }
.leaf-label { font-size: 11.5px; }
.leaf-filter { height: 32px; font-size: 13px; max-width: 300px; }
.oshi-in { margin-top: 12px; font-size: 13px; gap: 6px; }
.oshi-in input { height: 36px; font-size: 14px; max-width: 360px; }
.quiz-nav { margin-top: 2px; padding-top: 12px; gap: 10px; }
.quiz-nav .btn { min-height: 38px; font-size: 13.5px; padding: 0 16px; }
.quiz-nav .btn-gold { box-shadow: 0 4px 0 #d93763; margin-bottom: 4px; }
@media (min-width: 901px) { .quiz .btn-gold, .quiz-nav .btn { min-width: 160px; } .quiz-nav .btn-ghost { min-width: 0; } }
@media (max-width: 520px) { .opts-lg .opt span { min-height: 36px; font-size: 13.5px; } }
/* 選んだボタンの周りの四角い枠は出さない（キーボード操作のときだけ丸い枠） */
label.opt:focus-within { outline: none; }
.opt input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
/* 系統の枠：名前と「さらに詳しく選ぶ」を1行に並べて低くする */
.grp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 8px; }
.grp-more { align-self: center; justify-self: end; white-space: nowrap; }
.grp-subs { grid-column: 1 / -1; }
.grp-main { white-space: nowrap; }
/* 「さらに詳しく」で出る項目：小さめのボタンにして、たくさんあっても見やすく */
.grp-subs .opt span { padding: 4px 10px; font-size: 12px; line-height: 1.35; border-width: 1.5px; }
.grp-subs .opts { gap: 5px; }
.grp-subs .opts-sm .opt span { padding: 3px 8px; font-size: 11.5px; line-height: 1.3; }
.grp-subs .opts-sm { gap: 4px; }
.leaf-row .opt small { margin-left: 3px; font-size: 10px; }
.leaf-row { padding: 8px 10px; gap: 6px; }
/* 名前と「さらに詳しく」が1行に入らないときは、ボタンを下の行へ（重ならないように） */
.grp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.grp-main { flex: 0 1 auto; min-width: 0; }
.grp-more { margin-left: auto; }
.grp-subs { flex: 1 1 100%; min-width: 0; }
.grp-main { margin-right: auto; justify-self: start; }
/* 種類から探す：白いタイルに色の帯 */
.types a { background: var(--surface) !important; border-top: 5px solid var(--gold); }
.types a:nth-child(5n+2) { border-top-color: var(--sky); }
.types a:nth-child(5n+3) { border-top-color: var(--mint); }
.types a:nth-child(5n+4) { border-top-color: var(--yellow); }
.types a:nth-child(5n+5) { border-top-color: var(--violet); }
@media (max-width: 520px) { .genres { gap: 8px; } .genres a { padding: 14px 14px; } .genres .ja { font-size: 14.5px; } .genres .n { font-size: 11px; } }
