:root {
  --bg: #0b0b0e; --panel: #14141a; --panel2: #1b1b23; --line: #2a2a35;
  --text: #ececf1; --gold: #c9a96a; --muted: #9a9aab; --accent: #e5527a; --accent2: #f3a5bb;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 "Yu Gothic UI", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
}
body.lock { overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.notice { background: #2a1620; color: var(--accent2); font-size: 12px; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; background: rgba(11, 11, 14, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 18px; white-space: nowrap; letter-spacing: .04em; color: var(--gold); }
.tag { font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.searchbox { flex: 1; display: flex; gap: 8px; min-width: 0; }
.searchbox input { flex: 1; min-width: 0; }

input[type="search"], select {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font: inherit; width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible, .check:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--line); background: var(--accent); color: #fff; padding: 10px 16px; }
button:hover { filter: brightness(1.1); }
.ghost { background: transparent; color: var(--text); }
.reset { width: 100%; background: transparent; color: var(--accent2); border-color: var(--accent); }

.layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 20px 16px 48px; }
.filters { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; align-self: start; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters h2 { font-size: 15px; margin: 0 0 8px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0; }
legend { color: var(--muted); font-size: 12px; padding: 0 6px 0 0; }
.checks { display: grid; gap: 2px; }
.check, .radio { display: flex; gap: 8px; align-items: center; padding: 6px 4px; border-radius: 6px; cursor: pointer; min-height: 36px; }
.check:hover { background: var(--panel2); }
.check span { flex: 1; }
.check em { font-style: normal; color: var(--muted); font-size: 12px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.count { margin: 0; font-weight: 700; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.sort select { width: auto; padding: 8px 10px; }

.urlbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.urlbox .ghost { padding: 6px 12px; font-size: 13px; }
#copyMsg { color: var(--muted); font-size: 12.5px; }
.urlfield { flex: 1 1 100%; min-width: 0; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 12.5px; }
.urlfield[hidden] { display: none; }
.active { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.active[hidden] { display: none; }
.active button { background: var(--panel2); border-color: var(--accent); color: var(--accent2); padding: 6px 12px; border-radius: 999px; font-size: 13px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cover {
  aspect-ratio: 3 / 2; display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, hsl(var(--h) 45% 22%), hsl(calc(var(--h) + 40) 50% 12%));
}
.cover span { font-size: 44px; font-weight: 700; color: hsl(var(--h) 70% 82% / .9); }
.cover small { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.meta h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.sub { margin: 0; color: var(--muted); font-size: 12.5px; }
.tags { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tags span { font-size: 11px; color: var(--accent2); background: var(--panel2); border-radius: 4px; padding: 1px 6px; }
.row { margin: auto 0 0; display: flex; justify-content: space-between; align-items: baseline; }
.row b { font-size: 16px; }
.row time { color: var(--muted); font-size: 12px; }

.buy { margin: 6px 0 0; }
.buy-off { display: inline-block; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: default; user-select: none; }
.buy-on { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; }
.buy-on:hover { filter: brightness(1.1); }
.buy-on:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.pr { margin-left: 6px; font-size: 10px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 3px; padding: 0 4px; }
.pr-notice { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
.pr-notice[hidden] { display: none; }
.empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.empty[hidden] { display: none; }
.empty-title { color: var(--text); font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.empty .reset { width: auto; margin-top: 12px; }

.only-mobile { display: none; }

/* ---- トップ: 特集・選び方・詳細検索入口 ---- */
.home { max-width: 1280px; margin: 0 auto; padding: 24px 16px 0; display: grid; gap: 32px; }
.hero { background: linear-gradient(135deg, #1d1219, #14141a 60%); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; }
.hero-kicker { margin: 0 0 8px; color: var(--gold); font-size: 12px; letter-spacing: .08em; }
.hero-tagline { margin: 0 0 12px; color: var(--gold); font-size: 17px; letter-spacing: .12em; }
.hero h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.35; }
.hero-lead { margin: 0 0 16px; color: var(--text); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { margin: 0; color: var(--muted); font-size: 12px; max-width: 52em; }
.btn { display: inline-block; font: inherit; text-decoration: none; text-align: center; cursor: pointer; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 10px 18px; }
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.ghost-btn { background: transparent; color: var(--accent2); }
.sec-title { font-size: 18px; margin: 0 0 12px; }
.bust-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.bcard { width: 100%; display: grid; gap: 4px; text-align: left; background: linear-gradient(135deg, #2a1620, var(--panel) 70%); border: 1px solid var(--accent); border-radius: 12px; padding: 18px; color: var(--text); }
.bcard:hover { filter: brightness(1.15); }
.bname { font-size: 24px; font-weight: 700; }
.bnum { color: var(--accent2); font-weight: 700; }
.bnote { color: var(--muted); font-size: 12.5px; }
.ways-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.way { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.way h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--panel2); color: var(--text); border-color: var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.chip:hover { border-color: var(--accent); }
.chip em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 2px; }
#traits, #ways { scroll-margin-top: 90px; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fcard { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.fcard:hover { border-color: var(--accent); }
.fcard h3 { margin: 0; font-size: 16px; }
.fcard p { margin: 0; color: var(--muted); font-size: 13px; }
.fcard dl { margin: 0; font-size: 12.5px; }
.fcard dt { color: var(--accent2); margin-top: 6px; }
.fcard dd { margin: 0; color: var(--muted); }
.fcard .btn { margin-top: auto; }
.finder-entry { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 16px 20px; }
.finder-entry .sec-title, .finder-entry .sub { margin-bottom: 4px; }
.finder-title { max-width: 1280px; margin: 32px auto 0; padding: 0 16px; font-size: 20px; scroll-margin-top: 90px; }
.feature-banner { max-width: 1280px; margin: 12px auto 0; padding: 12px 16px; background: #2a1620; border: 1px solid var(--accent); border-radius: 12px; width: calc(100% - 32px); }
.feature-banner[hidden] { display: none; }
.feature-banner .sub { margin: 2px 0; }
.fb-title { margin: 0 0 4px; font-weight: 700; color: var(--accent2); }
.feature-banner .ghost { margin-top: 8px; padding: 6px 12px; }
html { scroll-behavior: smooth; }
#features, #ways, #bust { scroll-margin-top: 90px; }

@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; }
  .hero { padding: 24px 18px; }
  .hero h2 { font-size: 22px; }
  .finder-title { scroll-margin-top: 140px; }
  .btn { width: 100%; }
  .chip { width: auto; }
  .topbar h1 { flex: 1 0 auto; }
  .searchbox { order: 3; flex: 1 0 100%; }
  .only-mobile { display: inline-block; }
  .layout { grid-template-columns: 1fr; padding-top: 12px; }
  .filters {
    position: fixed; inset: 0; z-index: 30; max-height: none; border-radius: 0; border: 0;
    transform: translateY(100%); transition: transform .2s; padding: 16px; padding-bottom: 32px;
  }
  .filters.open { transform: none; }
  .grid { grid-template-columns: 1fr; }
  .card { flex-direction: row; }
  .cover { width: 96px; aspect-ratio: auto; flex: none; }
  .cover span { font-size: 28px; }
  .cover small { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* 年齢確認ゲート(age-gate.js) */
#ageGate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 11, 14, .98); }
.age-box { max-width: 420px; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; text-align: center; }
.age-box h2 { margin: 0 0 12px; font-size: 20px; color: var(--gold); }
.age-box p { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.age-actions { display: flex; flex-direction: column; gap: 10px; }
.age-actions button { width: 100%; padding: 14px 16px; font-size: 16px; }
.age-no { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.age-note { margin: 16px 0 0 !important; font-size: 12px !important; }
