:root {
  --bg: #fff; --fg: #1d1a22; --muted: #66626e; --faint: #9a96a2;
  --card: #fff; --line: #ece8ef; --tag: #f6f2f7;
  --accent: #f0306c; --accent-soft: #fff0f5; --accent-fg: #fff;
  --grad: linear-gradient(90deg, #ff3d7f, #ff8a3d);
  --hot: #ff4d4f; --new: #f5a300; --soon: #3b82f6; --chart: #8b5cf6; --shelf: #10b981;
  --up: #0f9d58; --gold: #e3a008; --silver: #8d96a3; --bronze: #b8743d;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 4px 14px rgba(20, 20, 40, .05);
  --radius: 12px; --head-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0e13; --fg: #ececf1; --muted: #a2a2b0; --faint: #74748a;
          --card: #17171f; --line: #282834; --tag: #22222c;
          --accent: #ff5c8a; --accent-soft: #3a1622; --accent-fg: #14070c;
          --up: #3ccf8e; --shadow: 0 1px 2px rgba(0, 0, 0, .4); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 15px/1.65 system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; }
a { color: inherit; }
img { max-width: 100%; }
main { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; }
h1 { font-size: 1.6rem; line-height: 1.35; margin: 16px 0 8px; letter-spacing: .01em; }
h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.lead, .empty { color: var(--muted); font-size: .92rem; margin: 4px 0 12px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }

/* ---------------------------------------------------------------- PR / header */
.pr { margin: 0; padding: 3px 16px; font-size: .75rem; color: var(--muted); background: var(--accent-soft); text-align: center; }
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
              backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px);
              border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 8px 24px; }
header.site > .bar-in { min-height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: .72rem; font-weight: 900;
        background: var(--grad); color: #fff; letter-spacing: 0; }
nav.main { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
nav.main::-webkit-scrollbar, .cats .bar-in::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
nav.main a { text-decoration: none; color: var(--muted); font-size: .9rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
nav.main a:hover { color: var(--fg); background: var(--tag); }
nav.main a[aria-current="page"] { color: var(--fg); font-weight: 700; background: var(--tag); }
.cats { border-bottom: 1px solid var(--line); }
.cats .bar-in { gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.cats a { white-space: nowrap; text-decoration: none; font-size: .85rem; color: var(--muted);
          border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 14px; }
.cats a:hover { color: var(--fg); }
.cats a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.head-search { display: flex; margin-left: 8px; }
/* スマホは1段目にロゴ、その下にメニューを全部見せる (横スクロールで隠れないように). 高くなるので上に固定しない.
   メニューは文字の長さに合わせて詰めて並べる (4列の格子だと9項目で3段になり、最初の作品が画面の下に押し出されるため. 詰めると2段) */
@media (max-width: 720px) {
  header.site { position: static; }
  header.site > .bar-in { flex-direction: column; align-items: stretch; padding: 8px 12px 10px; gap: 8px; }
  nav.main { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; }
  nav.main a { flex: 1 1 auto; text-align: center; padding: 7px 8px; font-size: .82rem; background: var(--tag); color: var(--fg); }
  nav.main a[aria-current="page"] { background: var(--accent); color: #fff; }
  .head-search { display: none; }
}
.head-search input { font: inherit; font-size: .85rem; width: 170px; padding: 7px 12px; border: 1px solid var(--line);
                     border-radius: 99px; background: var(--card); color: var(--fg); }

/* ---------------------------------------------------------------- intro (1行の紹介) */
.intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 18px 0 2px; }
.intro h1 { font-size: 1.15rem; margin: 0; }
.intro p { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .82rem; color: var(--muted); }
.intro b { color: var(--fg); font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
                box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------------------------------------------------------------- section heads, tabs */
.sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.sec h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.sec:not(.has-ico) h2::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: var(--grad); }
.sec p { margin: 2px 0 0 14px; font-size: .85rem; color: var(--muted); }
.sec.has-ico p { margin-left: 44px; }
.ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.ico svg { width: 20px; height: 20px; fill: #fff; }
.ico-hot { background: linear-gradient(135deg, #ff7a45, var(--hot)); }
.ico-new { background: linear-gradient(135deg, #ffc93c, var(--new)); }
.ico-soon { background: linear-gradient(135deg, #60a5fa, var(--soon)); }
.ico-chart { background: linear-gradient(135deg, #a78bfa, var(--chart)); }
.ico-shelf { background: linear-gradient(135deg, #34d399, var(--shelf)); }
.more { display: inline-block; padding: 8px 0; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.more-wrap { text-align: right; margin: 12px 0 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--head-h); z-index: 10;
        background: var(--bg); padding: 12px 0 8px; margin: 8px 0 0; }
.tabs button { font: inherit; font-size: .88rem; white-space: nowrap; cursor: pointer; color: var(--fg);
               background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 9px 16px; }
.tabs button:hover { border-color: var(--faint); }
.tabs button.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
@media (max-width: 720px) { .tabs { position: static; } }
h3.day { font-size: .95rem; margin: 28px 0 10px; color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.grid + .grid { margin-top: 16px; }
/* 上位3作品は大きく */
.podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.podium .card { border-width: 2px; }
.podium .card:nth-child(1) { border-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.podium .card:nth-child(2) { border-color: color-mix(in srgb, var(--silver) 60%, transparent); }
.podium .card:nth-child(3) { border-color: color-mix(in srgb, var(--bronze) 60%, transparent); }
.podium .rank { min-width: 38px; height: 38px; font-size: 1.1rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.podium h3 { font-size: 1rem; }
.podium .gain { font-size: .9rem; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid + .grid { margin-top: 10px; }
  .podium .card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 561px) and (max-width: 760px) { .podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium .card:first-child { grid-column: 1 / -1; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
        box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 20, 40, .08), 0 10px 24px rgba(20, 20, 40, .08); }
.thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tag); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; } /* 切り抜きは画像の改変になりうる (DLsite アフィリエイトの注意事項) ので縦横比を保って全体を出す */
.thumb .noimg { display: grid; place-items: center; height: 100%; font-size: .8rem; color: var(--muted); }
.rank { position: absolute; left: 8px; top: 8px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px;
        display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff;
        background: rgba(15, 15, 25, .72); font-variant-numeric: tabular-nums; }
.rank.r1 { background: var(--gold); } .rank.r2 { background: var(--silver); } .rank.r3 { background: var(--bronze); }
.kind { position: absolute; left: 8px; bottom: 8px; font-size: .8rem; font-weight: 600; color: #fff;
        background: rgba(15, 15, 25, .66); padding: 1px 8px; border-radius: 99px; }
.card .info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card h3 { font-size: .92rem; margin: 0; line-height: 1.45; font-weight: 700;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.circle { margin: 0; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.circle a { text-decoration: none; } .circle a:hover { text-decoration: underline; }
.gain { margin: 0 0 2px; align-self: flex-start; font-size: .82rem; font-weight: 800; color: var(--hot);
        background: color-mix(in srgb, var(--hot) 11%, transparent); padding: 1px 8px; border-radius: 6px; }
.gain::before { content: "▲ "; font-size: .7em; }
.stats { margin: 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.stats span:first-child { color: var(--fg); font-weight: 600; }
.stats .up { color: var(--up); font-weight: 700; }
.sub { margin: 0; font-size: .8rem; color: var(--faint); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; }
.flag { display: inline-block; font-size: .8rem; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--muted); }
.flag.sale-flag { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: auto 0 0; padding-top: 6px; }
.tags a, .tags span { background: var(--tag); border-radius: 6px; padding: 4px 9px; font-size: .8rem; text-decoration: none; color: var(--muted); }
.tags a:hover { color: var(--fg); }
.tags.big { gap: 8px; }
.tags.big a { font-size: .9rem; padding: 5px 12px; background: var(--card); border: 1px solid var(--line); color: var(--fg); }
.tags small { color: var(--faint); }
@media (max-width: 560px) { .card .info { padding: 8px 9px 10px; } .card h3 { font-size: .88rem; } }

/* ---------------------------------------------------------------- price */
.price { margin: 4px 0 2px; font-size: .95rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.price .now { font-weight: 800; font-variant-numeric: tabular-nums; }
.price .now.sale { color: var(--accent); }
.price .tbd { font-size: .85rem; font-weight: 700; color: var(--muted); }
.price s { color: var(--faint); font-size: .78rem; }
.price .off { background: var(--accent); color: var(--accent-fg); font-size: .75rem; font-weight: 800; border-radius: 4px; padding: 0 5px; }
.price.big { font-size: 1.5rem; margin: 0 0 10px; }
.price.big s { font-size: .95rem; } .price.big .off { font-size: .8rem; padding: 1px 7px; }

/* ---------------------------------------------------------------- work page */
.crumbs { font-size: .8rem; color: var(--muted); margin: 14px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.work { display: grid; grid-template-columns: minmax(0, 560px) minmax(360px, 1fr); gap: 28px; margin-top: 12px; align-items: start; }
.cover img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.cover .noimg { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--tag); color: var(--muted); }
.detail h1 { margin: 2px 0 4px; font-size: 1.45rem; }
.kind-line { margin: 0; font-size: .82rem; color: var(--muted); }
.by { margin: 0 0 14px; } .by a { color: var(--accent); font-weight: 600; text-decoration: none; }
.tiles { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tiles span { display: block; font-size: .74rem; color: var(--muted); }
.tiles b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.tiles small { font-size: .72rem; font-weight: 400; color: var(--muted); margin-left: 2px; }
.buybox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.buy { display: block; text-align: center; background: var(--grad); color: #fff; padding: 12px 20px;
       border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 1rem; }
.buy:hover { filter: brightness(1.06); }
/* FANZA でも売っている作品のリンク. DLsite のボタンより控えめに (縁取りだけ) */
.buy.alt { background: var(--card); color: var(--fg); border: 1.5px solid var(--line); margin-top: 8px; font-weight: 700; font-size: .92rem; padding: 10px 16px; }
.buybox .credit { margin: 4px 0 0; font-size: .7rem; text-align: center; }
/* スマホの作品ページは、価格と購入ボタンを画面の下に固定する (どこを読んでいても押せるように) */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
            padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card);
            border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20, 20, 40, .08); }
  .buybar .price { margin: 0; flex: 1; min-width: 0; }
  .buybar .buy { flex: none; padding: 11px 22px; margin: 0; }
  body:has(.buybar) footer.site { padding-bottom: 80px; }
}
.facts { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: .88rem; }
.facts th, .facts td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 400; width: 40%; padding-right: 12px; }
.spark { display: block; width: 100%; max-width: 720px; height: auto; background: var(--card);
         border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.spark .bars rect { fill: var(--accent); }
.spark .grid { stroke: var(--line); stroke-width: 1; }
.spark text { fill: var(--muted); font-size: 11px; }
.sales-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; max-width: 720px; }
.sales-stats div { flex: 1 1 140px; background: var(--card); border: 1px solid var(--line);
                   border-radius: var(--radius); padding: 10px 14px; }
.sales-stats span { display: block; font-size: 12px; color: var(--muted); }
.sales-stats b { font-size: 20px; }
@media (max-width: 760px) {
  /* minmax(0, 1fr): サンプル画像の小さい画像の列などが長くても、列が画面より広がらないように */
  .work { grid-template-columns: minmax(0, 1fr); gap: 16px; } .detail h1 { font-size: 1.15rem; }
  /* スマホ: 作品名を画像より上に出し、画像とサンプルの列を小さめにして、最初の画面で何の作品か分かるように */
  .work { display: flex; flex-direction: column; align-items: stretch; gap: 10px; } .work .detail { display: contents; }
  .work .kind-line, .work h1, .work .by { order: -1; margin-top: 0; margin-bottom: 0; }
  .work .gallery { min-width: 0; width: 100%; } .work .gallery .g-main { margin: 0 -16px; } .work .gallery .g-main img { max-height: 60vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 0; }
  .work .thumb-btn { width: 60px; height: 60px; }
  .work .cover { margin: 0 -16px; } .work .cover img { border-radius: 0; max-height: 60vh; width: auto; max-width: 100%; margin: 0 auto; }
  .tiles b { font-size: 1.05rem; } .tiles small { display: none; }
}

/* ---------------------------------------------------------------- finder */
.filter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 12px; margin-top: 14px; }
.filter h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 12px 0 4px; font-size: 1rem; }
.filter h2 small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.mode { font-size: .85rem; font-weight: 400; display: flex; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { font: inherit; font-size: .84rem; cursor: pointer; color: var(--fg); background: var(--bg);
        border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; }
.chip:hover { border-color: var(--faint); }
.chip small { color: var(--muted); font-size: .72rem; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.on small { color: inherit; opacity: .75; }
#f-gsearch { font: inherit; width: 100%; max-width: 360px; padding: 7px 12px; border-radius: 8px;
             border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.link { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 4px 0; }
.bar { scroll-margin-top: calc(var(--head-h) + 8px); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 16px 0 12px; padding: 10px 0;
       position: sticky; top: var(--head-h); background: var(--bg); z-index: 3; border-bottom: 1px solid var(--line); }
.bar #f-count { font-weight: 800; margin-right: auto; font-size: 1.05rem; }
.bar select { font: inherit; font-size: .85rem; padding: 5px 8px; border-radius: 8px;
              border: 1px solid var(--line); background: var(--card); color: var(--fg); }
@media (max-width: 720px) { .bar { position: static; } }
.next { display: block; margin: 24px auto; font: inherit; font-weight: 600; padding: 10px 32px; border-radius: 99px;
        border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.next:hover { border-color: var(--faint); }

/* ---------------------------------------------------------------- lists, footer, misc */
main ul { padding-left: 1.2em; } main li { margin: 4px 0; }
.credit { font-size: .8rem; color: var(--muted); margin-top: 16px; }
footer.site { border-top: 1px solid var(--line); background: var(--card); margin-top: 24px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 28px 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px 32px;
           font-size: .84rem; color: var(--muted); }
.foot-in p { margin: 8px 0 0; }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.foot-in nav a { text-decoration: none; } .foot-in nav a:hover { color: var(--fg); text-decoration: underline; }
.foot-in .logo { color: var(--fg); }
.foot-in .sister { grid-column: 1 / -1; font-size: .85rem; }
.foot-in .sister a { color: var(--fg); }
.foot-in .fine { grid-column: 1 / -1; font-size: .74rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } }

#agegate { position: fixed; inset: 0; background: rgba(8, 8, 14, .94); z-index: 100;
           display: flex; align-items: center; justify-content: center; padding: 16px; }
#agegate[hidden] { display: none; }
[hidden] { display: none !important; }
.gate { background: var(--card); color: var(--fg); padding: 28px 24px; border-radius: 16px; max-width: 420px; text-align: center; }
.gate button, .gate .no { font: inherit; font-weight: 700; padding: 10px 28px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; margin: 4px; }
.gate button { background: var(--accent); color: var(--accent-fg); border: 0; }
.gate .no { text-decoration: none; display: inline-block; color: var(--muted); }

/* ---------------------------------------------------------------- ranking page */
.tabs.period { position: static; padding-bottom: 0; }
.tabs.period button { font-size: .95rem; font-weight: 700; padding: 6px 20px; }
.note { font-size: .8rem; color: var(--muted); background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; margin: 8px 0 14px; }

/* ---------------------------------------------------------------- circle page: 代表作 */
.best { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.best li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
           border-radius: var(--radius); padding: 10px 14px; }
.best .rank { position: static; flex: none; }
.best a { flex: 1; min-width: 0; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best a:hover { color: var(--accent); }
.best b { flex: none; font-variant-numeric: tabular-nums; }
.facts td a { color: var(--accent); text-decoration: none; } .facts td a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- work page: gallery / intro */
.gallery .g-main { display: block; }
.gallery .g-main img { width: 100%; max-height: 640px; object-fit: contain; background: var(--tag);
                       border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.g-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; scrollbar-width: thin; }
.thumb-btn { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px;
             overflow: hidden; cursor: pointer; background: var(--tag); }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--tag); }
.thumb-btn.on { border-color: var(--accent); }
.g-note { font-size: .74rem; color: var(--faint); margin: 4px 0 0; }
.intro-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.catch { margin: 0 0 12px; font-size: 1rem; line-height: 1.8; font-weight: 600; }
.excl { display: inline-block; margin: 0 0 10px; font-size: .75rem; font-weight: 700; color: #fff;
        background: var(--grad); border-radius: 6px; padding: 2px 10px; }
.intro-box .facts { margin-bottom: 4px; }

/* ---------------------------------------------------------------- 体験版・試聴 */
.try { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 9px 12px;
       border: 1px solid var(--soon); border-radius: 10px; color: var(--soon); font-weight: 700; text-decoration: none; }
.try:hover { background: color-mix(in srgb, var(--soon) 8%, transparent); }
.try small { font-weight: 400; color: var(--muted); }
.try-mark { font-size: .7rem; color: #fff; background: var(--soon); border-radius: 4px; padding: 0 6px; }
.flag.try-flag { border-color: var(--soon); color: var(--soon); }

/* ---------------------------------------------------------------- 作品紹介: 独自の紹介文と引用 */
.about { margin: 0 0 12px; line-height: 1.9; }
.intro-box .catch { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }
.quote { margin: 0 0 12px; }
.quote blockquote { margin: 0; padding: 12px 14px; background: var(--tag); border-radius: 10px; font-size: .9rem; line-height: 1.8; color: var(--fg); }
.quote .cont { color: var(--faint); }
.quote figcaption { font-size: .74rem; color: var(--faint); margin-top: 4px; text-align: right; }
.quote figcaption a { color: inherit; }
/* 引用・画像の出典が DLsite であることを見た目でも分ける (FANZA の作品には引用を出さない) */
.src-dlsite { position: relative; border-left: 3px solid #1c5fa8; padding-left: 10px; }
.src-tag { display: inline-block; margin: 0 0 6px; font-size: .7rem; font-weight: 700; color: #fff;
           background: #1c5fa8; border-radius: 4px; padding: 1px 7px; letter-spacing: .02em; }
.official { margin: 0 0 12px; }
.official summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--accent); padding: 4px 0; list-style: none; }
.official summary::-webkit-details-marker { display: none; }
.official summary::after { content: " ▼"; font-size: .7em; }
.official[open] summary::after { content: " ▲"; }
.official .quote { margin-top: 6px; }
.desc-images { margin: 0 0 12px; }
/* どの画像も同じ大きさの枠 (680×480px、スマホは幅に合わせて同じ比率で縮む) に、縦横比を保って収める.
   画像ごと・作品ごとに大きさがばらばらでも見た目がそろい、切り替えてもページの高さが変わらない */
.desc-images .main { display: grid; place-items: center; width: min(100%, 680px); aspect-ratio: 680 / 480; margin: 0 auto;
                     background: var(--tag); border-radius: 10px; overflow: hidden; }
.desc-images .main { position: relative; }
.desc-images .main img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.desc-images.tall .main { display: block; overflow-y: auto; overscroll-behavior: contain; }
.desc-images.tall .main img { position: static; height: auto; object-fit: initial; }
/* 縦長の画像: 枠の下端をぼかし、「▼ 続きを見る」を重ねて、枠の中に続きがあることを分かるようにする */
.desc-images .stage { position: relative; width: min(100%, 680px); margin: 0 auto; }
.desc-images .stage .main { width: 100%; }
.desc-images .cont-down { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; border: 0;
                          border-radius: 0 0 10px 10px; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700;
                          color: var(--fg); padding: 40px 0 0;
                          background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--tag) 96%, transparent) 70%); }
.desc-images.tall:not(.end) .cont-down { display: block; }
.desc-images .thumbs { display: flex; justify-content: center; gap: 6px; overflow-x: auto; margin-top: 8px; }
.desc-images figcaption { font-size: .74rem; color: var(--faint); text-align: right; margin-top: 4px; }
.desc-images figcaption a { color: inherit; }
#finder .word { font: inherit; width: 100%; padding: 12px 16px; margin: 4px 0 8px; border: 1px solid var(--line);
                border-radius: var(--radius); background: var(--card); color: var(--fg); }
.bar .sale-only { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; padding: 6px 0; cursor: pointer; }
/* スマホのトップ: 紹介の行・タブ・見出しを詰めて、開いた直後の画面に作品が入るようにする */
@media (max-width: 720px) {
  .intro { margin: 10px 0 0; gap: 2px 10px; }
  .intro h1 { font-size: 1rem; }
  .intro p { font-size: .78rem; gap: 0 10px; }
  .tabs { padding: 6px 0 4px; margin: 4px 0 0; }
  .tabs button { padding: 7px 13px; font-size: .84rem; }
  .sec { margin: 18px 0 10px; }
  .sec h2 { font-size: 1.1rem; }
  .sec p { font-size: .78rem; }
  .ico { width: 28px; height: 28px; } .ico svg { width: 16px; height: 16px; }
  .sec.has-ico p { margin-left: 38px; }
}
.nf-search input { font: inherit; width: 100%; max-width: 560px; padding: 12px 16px; margin: 8px 0 16px; border: 1px solid var(--line);
                   border-radius: var(--radius); background: var(--card); color: var(--fg); }
.flag.low-flag { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table.trend { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.trend th, table.trend td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.trend th { font-size: .8rem; color: var(--muted); font-weight: 600; }
table.trend td.n { text-align: right; font-variant-numeric: tabular-nums; }
table.trend td.best { white-space: normal; min-width: 180px; }
table.trend a { color: var(--accent); text-decoration: none; } table.trend a:hover { text-decoration: underline; }
/* ★お気に入り: カードの右上の★、作品ページ・サークルページのボタン、トップのお知らせ */
.card { position: relative; }
.card .fav { position: absolute; right: 8px; top: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0;
             background: rgba(15, 15, 25, .55); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.card .fav.on { background: var(--accent); }
.fav-btn { font: inherit; font-size: .9rem; font-weight: 700; margin-top: 10px; padding: 9px 16px; border-radius: 99px; cursor: pointer;
           border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.fav-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.buybox .fav-btn { width: 100%; }
.fav-note { margin: 10px 0 0; }
.fav-note a { display: block; padding: 10px 14px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent);
              font-weight: 700; text-decoration: none; }
/* ランキングの期間・カテゴリのタブ (それぞれのページへのリンク) */
.link-tabs a { white-space: nowrap; text-decoration: none; font-size: .88rem; color: var(--fg); background: var(--card);
               border: 1px solid var(--line); border-radius: 99px; padding: 9px 16px; }
.link-tabs a.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
.tabs.period.link-tabs a { font-size: .95rem; font-weight: 700; padding: 7px 20px; }
/* 作品ページ上部の、このサイトの記録からの要点 */
.points { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.points li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .86rem; }
.points b { color: var(--accent, inherit); }
/* レビューの声: 観点ごとの件数と傾向 */
.voices { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.voices li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.voices .asp { font-weight: 700; }
.voices .asp small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.voices .vbar { grid-column: 1 / -1; grid-row: 2; height: 10px; border-radius: 99px; overflow: hidden; display: flex; gap: 2px; }
.voices .vbar i { display: block; height: 100%; }
.voices .vbar i.p, .voices-note .key.p { background: #2fae63; }
.voices .vbar i.g, .voices-note .key.g { background: #e0524f; }
.voices .vbar i.o, .voices-note .key { background: #b8bcc6; }
.voices-note .key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin: 0 2px 0 6px; }
.voices-note .key:first-child { margin-left: 0; }
.voices .mood { font-size: .8rem; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.voices .mood.good { background: rgba(30, 150, 80, .14); color: #1f8a4c; }
.voices .mood.bad { background: rgba(210, 50, 50, .14); color: #c93a3a; }
.voices .mood.mid { background: var(--line); color: inherit; }
.voices-note { font-size: .78rem; color: var(--muted); margin: 0 0 18px; }

/* 買い時の目安 (作品ページ上部) */
.buytime { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; border: 1px solid var(--line); background: var(--card); }
.buytime b { display: table; margin: 0 0 4px; padding: 1px 10px; border-radius: 99px; font-size: .8rem; background: var(--line); }
.buytime.good { border-color: rgba(30, 150, 80, .4); }
.buytime.good b { background: #2fae63; color: #fff; }
.buytime.wait b { background: #e9a23b; color: #fff; }
/* ---------------------------------------------------------------- 読みもの (guide/) */
.guide { max-width: 760px; margin: 0 auto; line-height: 1.9; }
.guide h1 { font-size: 1.5rem; line-height: 1.5; margin: 8px 0 4px; }
.guide-date { font-size: .8rem; color: var(--muted); margin: 0 0 20px; }
.guide-stat { background: var(--card, #fff); border: 1px solid var(--line, #e5e5e5); border-radius: 10px; padding: 10px 14px; }
.guide h2 { font-size: 1.2rem; margin: 32px 0 10px; padding-left: 10px; border-left: 4px solid var(--accent); line-height: 1.5; }
.guide h3 { font-size: 1.02rem; margin: 22px 0 6px; }
.guide p { margin: 0 0 14px; }
.guide ul { margin: 0 0 14px; padding-left: 1.3em; }
.guide li { margin: 4px 0; }
.guide a { color: var(--accent); }
.guide .grid { margin: 8px 0 18px; }
.guide-note { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.guide-table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.6; }
.guide-table th, .guide-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide-table th { background: var(--tag); white-space: nowrap; }
.guide-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-list a { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: inherit; }
.guide-list a:hover { border-color: var(--accent); }
.guide-list b { display: block; margin-bottom: 4px; line-height: 1.5; }
.guide-list span { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.guide-more { max-width: 760px; margin: 0 auto 24px; }
.guide-more a { color: var(--accent); }

/* 大型セール */
.camp-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.camp-banner b { background: var(--grad); color: #fff; font-size: .78rem; padding: 2px 8px; border-radius: 999px; }
.camp-banner span { font-weight: 700; flex: 1 1 auto; }
.camp-banner em { font-style: normal; font-size: .85rem; color: var(--accent); }
.camp-head { margin: 8px 0 20px; }
.camp-head h1 { margin: 0 0 6px; }
.camp-head .lead { margin: 8px 0 0; }
.camp-status { margin: 4px 0 10px; }
.camp-status.on b { background: var(--grad); color: #fff; font-size: .78rem; padding: 2px 8px; border-radius: 999px; margin-right: 8px; }
.camp-go { max-width: 320px; margin: 0 0 12px; }
/* 自腹レビュー */
.myreview { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px; }
.myreview .my-stars { color: #f5a524; font-size: 1.1rem; letter-spacing: 2px; margin: 0; }
.myreview .my-meta { font-size: .8rem; color: var(--muted); margin: 2px 0 8px; }
.myreview ul { padding-left: 1.2em; margin: 6px 0; }
.flag.my-flag { background: var(--accent-soft); color: var(--accent); }

/* 作品一覧の並べ替え・絞り込み (listtools.js) */
.lt-bar { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 10px; font-size: .9rem; }
.lt-bar select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); }
.lt-sale { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.lt-count { color: var(--muted); margin-left: auto; }
.tabs.lt-tabs { position: static; padding-top: 0; margin-bottom: 8px; }
.lt-moved .rank { display: none; }

/* レビューの声のまとめ (voices_summary) */
.voices-sum { margin: 0 0 12px; line-height: 1.8; }
.voices-ai { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); }

.card[hidden] { display: none; }
