:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efede8;
  --ink: #1b1b1f;
  --ink-2: #5d5c63;
  --ink-3: #8c8b92;
  --line: #e2e0da;
  --brand: #1b1b1f;
  --accent: #d6336c;
  --sale: #e03131;
  --atl: #c2410c;
  --low: #1971c2;
  --new: #2b8a3e;
  --chip: #f1efe9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16161a;
    --surface: #1f1f24;
    --surface-2: #26262c;
    --ink: #ececf0;
    --ink-2: #b4b3bb;
    --ink-3: #85848d;
    --line: #313138;
    --brand: #ececf0;
    --accent: #f06595;
    --sale: #ff6b6b;
    --atl: #ff922b;
    --low: #4dabf7;
    --new: #51cf66;
    --chip: #2a2a31;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16161a; --surface: #1f1f24; --surface-2: #26262c; --ink: #ececf0; --ink-2: #b4b3bb;
  --ink-3: #85848d; --line: #313138; --brand: #ececf0; --accent: #f06595; --sale: #ff6b6b;
  --atl: #ff922b; --low: #4dabf7; --new: #51cf66; --chip: #2a2a31; --shadow: 0 1px 2px rgba(0,0,0,.3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px; line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, select { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sp { display: none; }
@media (max-width: 600px) { .sp { display: inline; } }
[hidden] { display: none !important; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; min-width: 0; }
.lname { font-weight: 800; font-size: 22px; letter-spacing: .02em; color: var(--brand); }
.tag { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.gnav { display: flex; gap: 4px; font-size: 14px; }
.gnav a { text-decoration: none; padding: 6px 10px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.gnav a:hover { background: var(--surface-2); color: var(--ink); }
.gnav { align-items: center; }
.seg { display: inline-flex; padding: 2px; margin-right: 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); }
.gnav .seg a { padding: 3px 12px; color: var(--ink-2); }
.gnav .seg a.on { background: var(--ink); color: var(--bg); font-weight: 700; }
.gnav .seg a:not(.on):hover { background: var(--surface-2); }
.navwait { color: var(--accent) !important; }
.wcount { display: inline-block; margin-left: 4px; min-width: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
@media (max-width: 720px) {
  .tag { display: none; }
  .gnav { gap: 2px; }
  .gnav a { padding: 6px 7px; }
  .gnav .seg a { padding: 3px 10px; }
}
@media (max-width: 400px) { .navwlabel { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 28px 0 8px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(22px, 4.6vw, 32px); line-height: 1.3; letter-spacing: .01em; }
.hero p { margin: 0; color: var(--ink-2); font-size: 14px; }
.herolead { max-width: 720px; }
.features { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.features b { font-size: 14px; }
.features span { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.hero .upd { margin-top: 10px; color: var(--ink-3); font-size: 12px; }
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; gap: 6px; }
  .features li { flex-direction: row; align-items: baseline; gap: 10px; padding: 8px 12px; }
  .features b { flex: none; font-size: 13px; }
}
.notice { margin-top: 12px !important; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 13px !important; }
.waitbanner { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent);
  color: #fff; font-weight: 600; cursor: pointer; }
.waitbanner small { font-weight: 400; opacity: .9; margin-left: 6px; }

/* ---------- FANZA公式バナー ---------- */
.adbox { margin: 18px auto 0; text-align: center; }
.adlabel { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: .05em; margin-bottom: 2px; }
#fanza-banner { margin: 0 auto; }
.adbox img { display: inline-block; max-width: 100%; height: auto; }
.listsec + .adbox { margin-top: 28px; }
#fanza-banner.fb-300x250 { width: 300px; min-height: 250px; }
#fanza-banner.fb-728x90 { width: 728px; min-height: 90px; }

/* ---------- shelves ---------- */
.shelf { margin: 26px 0 0; }
.shelfhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shelf h2, .listhead h2, .sh, .related h2, .relhead { margin: 0; font-size: 18px; }
.relhead { font-weight: 700; }
.shelfname { display: flex; align-items: baseline; }
.cnt { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sub { margin: 2px 0 10px; color: var(--ink-3); font-size: 12px; }
.seeall { background: none; border: 0; color: var(--accent); font-size: 13px; cursor: pointer; padding: 4px 0; white-space: nowrap; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 158px; gap: 10px; overflow-x: auto;
  scroll-snap-type: x proximity; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: thin; }
.rail .card { scroll-snap-align: start; }

/* ---------- list ---------- */
.listsec { margin-top: 34px; scroll-margin-top: 64px; }
.listhead { display: flex; align-items: baseline; }
.controls { margin: 10px 0 14px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.selects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.selects label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.selects select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 8px; font-size: 13px; max-width: 46vw; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; }
.morewrap { text-align: center; margin: 20px 0 8px; }
.more { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 36px; cursor: pointer; font-size: 14px; }

/* ---------- card ---------- */
.card { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* videoa: 表裏が並んだ横長ジャケットの右半分（表紙）だけを見せる */
.thumb.cover { aspect-ratio: 7 / 10; }
.thumb.cover img { object-position: right center; }
.pct { position: absolute; left: 6px; top: 6px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700;
  padding: 1px 6px; border-radius: 6px; }
.rank { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 11px;
  padding: 0 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.rank::before { content: "#"; opacity: .7; }
.cbody { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ttl { font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ttl:hover { text-decoration: underline; }
.acts { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 12px; font-weight: 600; }
.acts a { color: var(--accent); text-decoration: none; }
.acts a:hover { text-decoration: underline; }
.maker { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maker a { text-decoration: none; }
.maker a:hover { text-decoration: underline; }
.price { font-size: 13px; font-variant-numeric: tabular-nums; }
.price b { font-size: 17px; }
.card:has(.pct) .price b { color: var(--sale); }
.price s { color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
.flag { font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 4px; border: 1px solid currentColor; line-height: 17px; }
.flag.drop { color: var(--atl); }
.flag.atl { color: #fff; background: var(--atl); border-color: var(--atl); }
.flag.low { color: var(--low); }
.flag.new { color: var(--new); }
.spark { width: 100%; height: 22px; }
.spark path { fill: none; stroke: var(--sale); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sparkcap { font-size: 10.5px; color: var(--ink-3); margin-top: -2px; font-variant-numeric: tabular-nums; }
.note { font-size: 11px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tags a { font-size: 10.5px; text-decoration: none; background: var(--chip); color: var(--ink-2); border-radius: 4px; padding: 0 6px; }
.tags a:hover { color: var(--ink); }
.wait { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); color: #888; font-size: 17px; line-height: 32px; padding: 0; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.wait.on { color: #fff; background: var(--accent); }

/* ---------- genre / maker ---------- */
.crumbs { font-size: 12px; color: var(--ink-3); padding-top: 16px; }
.crumbs a { text-decoration: none; }
.ph { font-size: clamp(20px, 4vw, 28px); margin: 6px 0 6px; line-height: 1.35; }
.lead { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 0 0 8px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
.stats dt { font-size: 11px; color: var(--ink-3); }
.stats dd { margin: 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sh { margin: 28px 0 12px !important; }
.related { margin: 36px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 13px; }
.chips a span { color: var(--ink-3); font-size: 11px; margin-left: 4px; }
.chips a:hover { border-color: var(--ink-3); }
.morelink { font-size: 13px; margin-top: 12px; }
.morelink a { color: var(--accent); text-decoration: none; }
.idx { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 20px; }
.idx a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.idx .n { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idx .c { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.idx a:hover { border-color: var(--ink-3); }

.crosslink { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 0;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-size: 15px; }
.crosslink b { color: var(--accent); }
.crosslink span { font-size: 20px; color: var(--ink-3); }
.crosslink:hover { border-color: var(--ink-3); }

/* ---------- doc pages ---------- */
.doc { max-width: 760px; padding-bottom: 20px; }
.doc h2 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 14px; color: var(--ink-2); }
.kv div { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv dt { width: 8em; flex: none; color: var(--ink-3); }
.kv dd { margin: 0; }
.mail { font-weight: 600; }
.cform { display: grid; gap: 14px; max-width: 560px; margin: 8px 0 16px; }
.cform label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.cform input, .cform select, .cform textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; }
.cform textarea { resize: vertical; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .send { justify-self: start; background: var(--ink); color: var(--bg); border: 0; border-radius: 999px;
  padding: 11px 36px; font-size: 15px; font-weight: 700; cursor: pointer; }
.cmsg { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--sale) 12%, var(--surface));
  color: var(--sale) !important; font-weight: 600; }

/* ---------- footer ---------- */
footer.site { margin-top: 56px; padding: 26px 0 40px; border-top: 1px solid var(--line); background: var(--surface-2); }
.fnav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-bottom: 12px; }
.fnav a { text-decoration: none; color: var(--ink-2); }
.fnote { font-size: 12px; color: var(--ink-3); margin: 4px 0; }
.credit { margin: 14px 0 6px; }
.copy { font-size: 12px; color: var(--ink-3); margin: 0; }

/* ---------- age gate ---------- */
.agegate { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 12, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: center; padding: 16px; }
.agebox { background: var(--surface); border-radius: 16px; padding: 28px 24px; max-width: 380px; width: 100%; text-align: center; }
.agelogo { font-weight: 800; font-size: 26px; margin: 0; }
.agebox .agetitle { font-size: 16px; font-weight: 700; margin: 6px 0 10px; }
.agebox p { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.agebox .ageq { color: var(--ink); font-weight: 600; font-size: 15px; margin-top: 14px; }
.agebtns { display: flex; gap: 10px; margin-top: 14px; }
.agebtns > * { flex: 1; padding: 11px 0; border-radius: 999px; font-size: 15px; text-decoration: none; cursor: pointer; }
.agebtns .primary { background: var(--ink); color: var(--bg); border: 0; font-weight: 700; }
.agebtns .ghost { border: 1px solid var(--line); color: var(--ink-2); }
body.gated { overflow: hidden; }
