/* XEROSX — 黒×オレンジ（Pornhub の配色）で、本屋のように「表紙で選べる」棚を作る */
:root {
  --bg: #000;
  --surface: #161616;
  --surface-2: #222;
  --line: #2c2c2c;
  --fg: #fff;
  --muted: #a3a3a3;
  --accent: #ff9000;
  --accent-deep: #d97800;
  --on-accent: #000;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65; font-size: 16px;
  overflow-wrap: anywhere; line-break: strict;
  font-feature-settings: "palt" 0;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffb14d; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
/* 角の丸みは Figma のスムージング 100% 相当（squircle）。未対応ブラウザは通常の 8px 丸角 */
.card, .cover, .buy-box, .jacket-wrap, .empty, .monthly-banner, .age-box, .btn, .chip, .tags a { corner-shape: squircle; }
h1 { font-size: 1.5rem; line-height: 1.35; margin: 0 0 10px; letter-spacing: 0.01em; }
h2 { font-size: 1.15rem; margin: 0; }
h3 { font-size: 0.95rem; margin: 0; font-weight: 600; }
main { max-width: 1180px; margin: 0 auto; padding: 16px 16px 40px; }

/* 上部の広告表記・ヘッダー */
.disclosure { font-size: 0.75rem; color: var(--muted); margin: 0; padding: 5px 16px; background: #0b0b0b; }
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 10px 16px;
}
.brand { display: inline-flex; align-items: center; color: var(--accent); line-height: 1; padding: 4px 0; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; height: 20px; width: auto; flex: none; }
.nav { display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--fg); font-size: 0.92rem; padding: 9px 10px; border-radius: 6px; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--surface-2); color: var(--accent); text-decoration: none; }
.nav a.nav-accent { color: var(--accent); font-weight: 700; }

/* トップの導入と導線チップ */
.hero { padding: 18px 0 8px; }
.hero h1 { font-size: 1.45rem; }
.hero .lead { color: var(--muted); margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); color: var(--fg);
  font-size: 0.9rem; border: 1px solid var(--line);
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.chip-accent:hover { background: #ffa733; color: var(--on-accent); }
.chip[aria-current="page"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.page-head .sort { margin-top: 10px; }
.monthly-banner { margin: 14px 0 0; max-width: 700px; }
.monthly-banner > a { display: block; }
.monthly-banner img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.monthly-banner .sub { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }

/* 棚（セクション）。画面外の棚は描画を後回しにして最初の表示を速くする */
.shelf { margin: 26px 0 0; }
.shelf-lazy { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.shelf-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--accent); }
.shelf-head .count { color: var(--muted); font-size: 0.85rem; }
.shelf-head .more { margin-left: auto; font-size: 0.88rem; }
.shelf-lead { color: var(--muted); margin: 0 0 12px; }
.shelf-stale { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; font-size: 0.9rem; }
.work-shelves { margin: 12px 0 0; font-size: 0.88rem; color: var(--muted); }
.work-shelves a { display: inline-block; margin: 2px 8px 2px 0; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.work-shelves a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
/* 年が少ないときは左に寄せる（1 列 30px まで。多いときは幅に合わせて縮む） */
.timeline { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 30px)); justify-content: start; gap: 3px; max-width: 640px; }
.timeline li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 120px; font-size: 0.7rem; min-width: 0; }
.timeline .tl-n { color: var(--muted); line-height: 1.4; }
.timeline .tl-bar { width: 100%; max-width: 22px; border-radius: 3px 3px 0 0; background: var(--accent); flex: 0 0 auto; }
.timeline .tl-year { color: var(--muted); line-height: 1.6; white-space: nowrap; }
.timeline .tl-quiet { visibility: hidden; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; margin: 0; }

/* 作品カード：表紙で選ぶ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  content-visibility: auto; contain-intrinsic-size: auto 330px; /* 長い一覧（出演者 130 本など）で画面外のカードを描画しない */
}
.card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255, 144, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.6); transform: translateY(-2px); }
.card-link { color: var(--fg); display: block; }
.card-link:hover { text-decoration: none; color: var(--fg); }
/* 表紙は DUGA ジャケット 240×340 と同じ比率。読み込み中は薄い流れ模様で「空」と区別する */
.cover {
  aspect-ratio: 240 / 340; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(100deg, #0e0e0e 35%, #1c1c1c 50%, #0e0e0e 65%); background-size: 240% 100%;
  animation: shimmer 1.6s linear infinite;
}
.cover img { width: 100%; height: 100%; object-fit: contain; background: #0a0a0a; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -40% 0; } }
.card-body { padding: 10px 10px 12px; }
.card h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.9rem; line-height: 1.45; min-height: 2.9em; margin: 0 0 4px;
}
.card .meta { color: var(--muted); font-size: 0.8rem; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 0; font-variant-numeric: tabular-nums; }
.price-row .price { color: var(--accent); font-weight: 800; font-size: 1.05rem; }
.price-row .prev { color: var(--muted); font-size: 0.8rem; text-decoration: line-through; }
.price-row .ptype { color: var(--muted); font-size: 0.75rem; }
.types { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.types td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.types td:last-child { text-align: right; font-weight: 700; }
.record-note { color: var(--muted); font-size: 0.8rem; margin: 6px 0 0; }
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 0.8rem; padding: 3px 8px; border-radius: 6px; line-height: 1.2;
}
.badge-rank { background: #000; color: var(--accent); border: 1px solid var(--accent); min-width: 2.2em; text-align: center; }
.badge-rank.top { background: var(--accent); color: var(--on-accent); }
.badge-sale { background: var(--accent); color: var(--on-accent); }

/* 出演者などのチップ一覧 */
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); font-size: 0.88rem; }
.tags a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.tags .n { color: var(--muted); font-size: 0.8rem; margin-left: 4px; }
/* 出演者の一覧: 最新作のジャケット（DUGA 提供・表示時に円で切り抜くだけ）を名前の前に、出演本数を塗りつぶしの印で */
.tags.people a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 4px; }
.tags.people .face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top center; background: var(--surface-2); flex: none; }
.tags.people .n { background: var(--accent); color: var(--on-accent); padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; margin-left: 0; line-height: 1.4; }

/* 一覧ページの見出し */
.page-head { padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.page-head h1 { margin: 0 0 4px; }
.page-head .meta, .page-head small { color: var(--muted); font-size: 0.9rem; margin: 0; }
.crumbs { color: var(--muted); font-size: 0.82rem; margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* 作品ページ */
.work-main { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 24px; align-items: start; }
.jacket-wrap { position: sticky; top: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.jacket-wrap img { width: 100%; }
.work-info h1 { font-size: 1.35rem; }
.work-sub { color: var(--muted); margin: 0 0 14px; font-size: 0.95rem; }
.buy-box { background: var(--surface); border: 1px solid #3a2a10; border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
.buy-price { margin: 0 0 10px; font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.buy-price small { font-size: 0.85rem; color: var(--muted); font-weight: 400; margin-left: 8px; text-decoration: line-through; }
.buy-note { color: var(--muted); font-size: 0.8rem; margin: 10px 0 0; }
.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent); padding: 11px 18px; border-radius: 8px;
  font-weight: 800; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.2;
}
.btn:hover { background: #ffa733; color: var(--on-accent); text-decoration: none; }
.btn-big { display: block; width: 100%; text-align: center; padding: 14px 18px; font-size: 1.1rem; }
.btn.secondary { background: #333; color: var(--fg); }
.btn.secondary:hover { background: #444; }
.pr { font-size: 0.68rem; color: var(--muted); border: 1px solid var(--muted); border-radius: 3px; padding: 0 4px; margin-left: 6px; vertical-align: middle; font-weight: 400; white-space: nowrap; }
.btn .pr { color: rgba(0, 0, 0, 0.7); border-color: rgba(0, 0, 0, 0.5); }
.facts { display: grid; grid-template-columns: 6.5em 1fr; gap: 6px 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .list { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }
.counterpart { font-size: 0.85rem; color: var(--muted); }
.fav-row { margin: 10px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fav-btn { font-size: 0.95rem; padding: 9px 14px; }
.fav-btn.on { background: #3a2a10; color: var(--accent); border: 1px solid var(--accent); }
.fav-note { color: var(--muted); font-size: 0.8rem; }
.fav-count { color: var(--accent); font-weight: 700; }
.fav-actresses li { display: inline-flex; align-items: center; gap: 6px; }
.badge-new { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; }
.sample-movie video { width: 100%; max-width: 720px; background: #000; border-radius: var(--radius); corner-shape: squircle; }
.section { margin: 26px 0 0; }
.section h2 { padding-left: 10px; border-left: 4px solid var(--accent); margin: 0 0 12px; }
.section .shelf-head h2 { padding-left: 0; border-left: 0; } /* 箱側（.shelf-head）の線だけ残す。両方に付くと縦線が 2 本になる */
.price-svg { color: var(--accent); display: block; }
.price-range { color: var(--muted); font-size: 0.85rem; }
.rank-history { color: var(--muted); font-size: 0.9rem; }
.samples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.samples-grid img { border-radius: 6px; background: #0a0a0a; }
.caption p { color: #ddd; }

/* 月額ページ */
.monthly { max-width: 820px; }
.monthly-hero h1 { font-size: 1.6rem; line-height: 1.4; }
.monthly-hero .lead { color: #ddd; margin: 0 0 16px; }
.monthly-cta { max-width: 520px; }
.fact-grid { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.fact-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); corner-shape: squircle; padding: 14px; }
.fact-grid strong { display: block; color: var(--accent); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.fact-grid span { color: var(--muted); font-size: 0.85rem; }
.compare { width: 100%; border-collapse: collapse; margin: 12px 0; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.compare td strong { color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col h3 { margin: 0 0 6px; color: var(--accent); }
.two-col ul { margin: 0; padding-left: 1.2em; color: #ddd; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 0 14px 44px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 0.92rem; }
.notice { background: var(--surface); border: 1px solid #3a2a10; border-radius: var(--radius); corner-shape: squircle; padding: 16px 18px; }
.notice h2 { margin-top: 0; }
.notice ul { margin: 0; padding-left: 1.2em; color: #ddd; }
.buy-alt { color: var(--muted); font-size: 0.85rem; margin: 8px 0 0; }
/* 月額の案内（番組レーベルの作品ページ・出演者ページ）。本文と同じ文字色で、左に印の線 */
.sale-note { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--accent); border-radius: 6px; background: var(--surface-2); font-size: 0.9rem; font-weight: 700; }
.campaigns { margin: 0 0 12px; }
.campaigns td + td { white-space: nowrap; padding-left: 10px; }  /* 本数と終了日は途中で折り返さない（スマホ幅） */
.monthly-note { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; background: var(--surface-2); font-size: 0.9rem; }
.monthly-note p { margin: 0; }
.monthly-note p + p { margin-top: 6px; }
.monthly-note-head { font-weight: 700; }
.monthly-note a { text-decoration: underline; display: inline-flex; align-items: center; min-height: 40px; }  /* 指で押せる高さ */
.monthly-note p + p:last-child { margin-top: 0; }
.monthly p { color: #ddd; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } .compare th, .compare td { padding: 6px 6px; font-size: 0.9rem; } }

/* 文章ページ */
.prose { max-width: 760px; }
.prose p, .prose li { color: #ddd; }
.prose h2 { margin: 22px 0 8px; padding-left: 10px; border-left: 4px solid var(--accent); }

/* 出会い系の枠・フッター */
.partner-slot { max-width: 1180px; margin: 16px auto; padding: 0 16px; }
.partner-slot:empty { display: none; }
.partner-slot .partner-label { margin: 0 0 6px; font-size: 0.8rem; color: var(--muted); }
.partner-slot img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: var(--radius); }
.site-footer { border-top: 1px solid var(--line); padding: 18px 16px 28px; color: var(--muted); font-size: 0.85rem; }
.site-footer .credit a { color: var(--muted); }
.site-footer p { margin: 0 0 6px; }

/* 年齢確認 */
body.gated { overflow: hidden; }
.age-gate { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.94); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.age-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; max-width: 440px; text-align: center; }
.age-box h2 { border: 0; padding: 0; margin: 0 0 10px; font-size: 1.3rem; }
.age-box p { color: #ddd; }
.age-buttons { display: flex; gap: 10px; justify-content: center; }
.age-buttons .btn { font-size: 1rem; }

@media (max-width: 640px) {
  main { padding: 12px 12px 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card h3 { font-size: 0.88rem; }
  .work-main { grid-template-columns: 1fr; gap: 16px; }
  .jacket-wrap { position: static; max-width: 320px; margin: 0 auto; }
  .hero h1 { font-size: 1.25rem; }
  /* スマホはロゴとメニューを 2 段に分ける（メニューは横スクロール） */
  .topbar { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px 4px; }
  .brand { padding: 4px 0 6px; }
  .brand-mark { height: 17px; }
  .nav { width: 100%; margin-left: 0; }
  .nav a { font-size: 0.9rem; padding: 7px 9px; min-height: 36px; }
  .nav a:first-child { padding-left: 0; }
  .facts { grid-template-columns: 5.5em 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transition: none; transform: none; }
  .cover { animation: none; }
}
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 8px; }
.pager-pos { color: var(--muted); font-variant-numeric: tabular-nums; }
.list-summary { font-variant-numeric: tabular-nums; }
.drop-date { color: var(--muted); font-size: 0.75rem; margin: 2px 0 0; }
.revisit { color: var(--muted); font-size: 0.85rem; margin: 16px 0 0; text-align: center; }

/* 月額ページ（2026-11-02 作り直し）: 表紙の壁 → 見出し → 申込。表紙は DUGA API の画像を縮小表示のみ */
.monthly-hero { position: relative; }
.monthly-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-height: 260px; overflow: hidden; margin: 0 0 14px; border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.monthly-wall img { width: 100%; aspect-ratio: 240 / 340; height: auto; object-fit: cover; border-radius: 4px; background: var(--surface); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; margin: 0 0 4px; }
.monthly-hero h1 { margin: 0 0 8px; }
.label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.label-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); corner-shape: squircle; padding: 8px; }
.label-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 0 8px; }
.label-thumbs img { width: 100%; aspect-ratio: 240 / 340; height: auto; object-fit: cover; border-radius: 4px; background: #0a0a0a; }
.label-thumbs a:hover img { outline: 2px solid var(--accent); }
.label-card strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.label-card span { color: var(--muted); font-size: 0.8rem; }
.faq { margin: 0; }
.faq dt { font-weight: 700; color: var(--fg); padding-left: 1.6em; position: relative; }
.faq dt::before { content: "Q"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.faq dd { margin: 4px 0 14px; color: #ddd; padding-left: 1.6em; }
.faq dd:last-child { margin-bottom: 0; }
.monthly-close .monthly-banner { margin: 0 0 14px; }
@media (max-width: 640px) { .monthly-wall { grid-template-columns: repeat(4, 1fr); max-height: 250px; } .label-grid { grid-template-columns: repeat(2, 1fr); } }
