/* MAZODOM — 黒×オレンジ（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; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; color: var(--fg); line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-x { background: var(--accent); color: var(--on-accent); border-radius: 5px; padding: 3px 6px; margin-left: 2px; }
.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 {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 0; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(90deg, #2a1600, #161616); border: 1px solid #3a2a10;
}
.monthly-banner strong { color: var(--accent); }
.monthly-banner .sub { color: var(--muted); font-size: 0.9rem; }

/* 棚（セクション）。画面外の棚は描画を後回しにして最初の表示を速くする */
.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; }
.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; }
.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); }

/* 出演者などのチップ一覧 */
.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; }

/* 一覧ページの見出し */
.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; }
.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; }
.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; }
.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; }
.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 { font-size: 1.2rem; padding: 2px 0 4px; }
  .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; }
}
