:root {
  --bg: #0e0d10;
  --surface: #17151a;
  --surface-2: #201d24;
  --line: #2d2932;
  --ink: #f2ede4;
  --sub: #a39a90;
  --gold: #c9a45c;
  --gold-hi: #e2c585;
  --gold-ink: #17120a;
  --radius: 14px;
  /* ページの横幅と左右の余白。画面が広いときは下の @media で広げる */
  --wrap: 1080px;
  --gutter: 16px;
  --side-w: 216px;
  --side-gap: 32px;
}
* { 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", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
}
body.is-locked { overflow: hidden; }
a { color: var(--gold); }
img { max-width: 100%; }
.np { display: inline-block; white-space: nowrap; }

/* ヘッダー */
.pr { margin: 0; padding: 6px 16px; background: #000; color: #8d857c; font-size: 11px; text-align: center; letter-spacing: .04em; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(14, 13, 16, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font-size: 14px; font-weight: 900; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.site-header nav a { color: var(--sub); text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--gold-hi); }
main { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter) 56px; }

/* 左メニュー */
.layout { display: block; }
.side { display: none; }
.side-m { margin: 12px 0 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.side-m > summary { padding: 12px 16px; font-weight: 700; cursor: pointer; }
.side-m-body { padding: 4px 16px 12px; max-height: 60vh; overflow-y: auto; }
.nav-block { margin: 12px 0; }
.nav-title { margin: 0 0 6px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.nav-title a { color: var(--gold); text-decoration: none; }
.nav-block ul { list-style: none; margin: 0; padding: 0; }
.nav-block li a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--sub); font-size: 14px; text-decoration: none; }
.nav-block li a:hover { background: var(--surface-2); color: var(--ink); }
.nav-block li a[aria-current="page"] { background: var(--surface-2); color: var(--gold-hi); font-weight: 700; }
.nav-block li span { color: var(--sub); font-size: 11px; }

/* 折りたたみ */
.fold { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; }
.fold-title { font-weight: 700; }
.fold-hint { color: var(--sub); font-size: 12px; }
.fold-body { padding: 0 18px 18px; }
.pair-box { margin: 16px 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pair-title { margin: 0 0 8px; color: var(--sub); font-size: 12px; letter-spacing: .1em; }

/* 見出し */
h1 { font-size: clamp(24px, 5.2vw, 40px); line-height: 1.35; letter-spacing: .01em; text-wrap: balance; margin: 12px 0 16px; }
h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(19px, 3.6vw, 24px); line-height: 1.4; text-wrap: balance; margin: 48px 0 16px; }
h2::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--gold); }
h3 { font-size: 17px; margin: 24px 0 8px; }
.eyebrow { margin: 0; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.lead, .note { color: var(--sub); }
.note { font-size: 13px; }
.crumbs { font-size: 12px; color: var(--sub); margin: 14px 0 4px; }
.crumbs a { color: var(--sub); }

/* トップの大見出し */
.hero {
  margin: 16px 0 8px;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(201, 164, 92, .24), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--bg));
}
.hero { position: relative; overflow: hidden; }
/* 見出しの後ろに新作のパッケージを薄く敷く（1画面目から絵がある状態にする） */
.hero-bg { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(4, 1fr); opacity: .32; filter: saturate(.85); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 13, 16, .55) 0%, rgba(14, 13, 16, .82) 60%, rgba(14, 13, 16, .94) 100%); }
.hero > *:not(.hero-bg) { position: relative; z-index: 2; }
.hero h1 { margin-top: 8px; }
.hero-lead { margin: 0; max-width: 36em; color: var(--sub); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink);
  font: inherit; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 164, 92, .25); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(201, 164, 92, .35); }
.btn-ghost { background: transparent; color: var(--gold-hi); border-color: rgba(201, 164, 92, .5); box-shadow: none; }
.more { margin: 14px 0 0; text-align: right; font-size: 14px; }
.more a { text-decoration: none; }
.more a::after { content: " →"; }

.notice { margin: 20px 0 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.notice p { margin: 0; color: var(--sub); }
.notice .notice-title { margin-bottom: 4px; color: var(--ink); font-weight: 700; }

.guides { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.guides li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guides a { color: var(--ink); font-weight: 700; text-decoration: none; }
.guides a:hover { color: var(--gold-hi); }
.guides p { margin: 6px 0 0; color: var(--sub); font-size: 13px; }

/* カップ別の入口（写真を敷いて文字を重ねる） */
.cup-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.cup-links a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 2;
  padding: 12px 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s;
}
.cup-links a:hover { border-color: var(--gold); transform: translateY(-2px); }
.cup-links a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 13, 16, .12) 0%, rgba(14, 13, 16, .6) 50%, rgba(14, 13, 16, .95) 100%); }
.cup-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: .78; }
.cup-links a:hover .cup-photo { opacity: .9; }
.cup-letter { position: absolute; top: 4px; left: 13px; z-index: 1; font-size: 40px; font-weight: 900; line-height: 1.1; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .95)); }
.cup-name { position: relative; z-index: 1; font-size: 15px; font-weight: 700; line-height: 1.35; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.cup-count { position: relative; z-index: 1; color: var(--gold-hi); font-size: 12px; line-height: 1.4; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
/* トップのいちばん上の入口（ここがメインの探し方） */
.pick h2 { margin-top: 28px; }
.pick .cup-links { margin-top: 14px; }
.pick h3 { margin: 22px 0 6px; color: var(--sub); font-size: 14px; }
.cup-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.cup-tabs a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--sub); text-decoration: none; font-size: 13px; white-space: nowrap; }
.cup-tabs a[aria-current="page"] { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border-color: transparent; color: var(--gold-ink); font-weight: 700; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 8px 0 18px; font-size: 14px; color: var(--sub); }
.controls select { margin-left: 6px; padding: 6px 10px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }

.intro { max-width: 740px; margin: 8px 0 20px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.intro p { margin: 4px 0; color: var(--sub); font-size: 14px; }

/* 検索 */
.hero-search { display: flex; gap: 8px; max-width: 520px; margin-top: 20px; }
.hero-search input, .filter input, .search-box input, .search-box select { min-width: 0; padding: 12px 16px; font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.hero-search input { flex: 1; }
.search-box { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.search-box input { flex: 1 1 240px; }

/* 絞り込み */
.filter { margin: 16px 0 20px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.filter-row input { flex: 1 1 240px; }
.filter-row .btn { white-space: nowrap; }
.filter-group { margin-top: 14px; }
.filter-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 8px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.filter-name span { color: var(--sub); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.chips button.chip { font: inherit; cursor: pointer; }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border-color: transparent; color: var(--gold-ink); font-weight: 700; }
.chip[aria-pressed="true"] span { color: var(--gold-ink); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.filter-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.filter-status .note { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.filter-sort { color: var(--sub); font-size: 13px; }
.filter-sort select { margin-left: 6px; padding: 6px 10px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
#q-more { text-align: center; }
#q-more .btn { cursor: pointer; }
.search-results { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.search-results a { display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.search-results a:hover { border-color: var(--gold); }
.search-results img { grid-row: span 2; width: 48px; height: 48px; object-fit: cover; border-radius: 50%; background: var(--surface-2); }
.sr-name { font-weight: 700; line-height: 1.4; }
.sr-meta { color: var(--sub); font-size: 12px; line-height: 1.4; }

/* ジャンル */
.genre-group { margin: 14px 0; }
.genre-group-name { margin: 0 0 8px; color: var(--sub); font-size: 12px; letter-spacing: .1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap; transition: border-color .15s; }
.chip:hover { border-color: var(--gold); }
.chip span { color: var(--sub); font-size: 12px; }
.chip[aria-current="page"] { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border-color: transparent; color: var(--gold-ink); font-weight: 700; }
.chip[aria-current="page"] span { color: var(--gold-ink); }
.profile-chips { margin: 0 0 18px; }

/* 女優カード */
.actress-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.actress-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%;
  padding: 18px 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; text-align: center; transition: border-color .15s, transform .15s;
}
.actress-grid a:hover { border-color: var(--gold); transform: translateY(-2px); }
.actress-grid a { padding: 0 0 14px; overflow: hidden; }
.a-visual { position: relative; display: block; width: 100%; aspect-ratio: 147 / 200; margin-bottom: 30px; background: var(--surface-2); }
.a-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.a-face { position: absolute; left: 50%; bottom: -26px; width: 64px; height: 64px; transform: translateX(-50%); object-fit: cover; border-radius: 50%; background: var(--surface-2); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold); }
.a-visual.no-cover { display: grid; place-items: center; }
.a-visual.no-cover .a-face { position: static; width: 104px; height: 104px; transform: none; }
.a-name { margin-top: 4px; padding: 0 8px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.a-meta { font-size: 12px; color: var(--sub); line-height: 1.5; }

/* 作品カード */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: rgba(201, 164, 92, .6); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 147 / 200; background: var(--surface-2); overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
/* タイトルと出演者は行数をそろえる（長いものでカードが伸びて 中が空いてしまうため） */
.card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.card-title:hover { color: var(--gold-hi); }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; font-size: 12px; }
.rating .count { color: var(--sub); }
.stars { position: relative; display: inline-block; font-size: 12px; letter-spacing: 1px; line-height: 1; color: #3e3843; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; top: 0; left: 0; width: var(--rate); overflow: hidden; white-space: nowrap; color: var(--gold); }
.card-meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; font-size: 12px; color: var(--sub); }
.card-meta .price { color: var(--gold-hi); font-weight: 700; }
.card-cast { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; font-size: 12px; line-height: 1.6; }
.card-cast a { text-decoration: none; }
.card-cta { display: block; margin-top: auto; padding: 9px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; white-space: nowrap; }
.rank { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(14, 13, 16, .85); color: var(--gold-hi); font-size: 14px; font-weight: 900; }
.rank-1 .rank { border-color: transparent; background: linear-gradient(135deg, #f2d98f, #c9a45c); color: var(--gold-ink); }
.rank-2 .rank { border-color: transparent; background: linear-gradient(135deg, #ececf0, #a9a9b3); color: #16161a; }
.rank-3 .rank { border-color: transparent; background: linear-gradient(135deg, #e2b48a, #a8703f); color: #1a0f06; }
.badge-sale { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 6px; background: linear-gradient(135deg, #ff6b57, #d9465f); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.list-price { color: var(--sub); font-size: 11px; }
.sale-end { margin: 0; color: #ff8d7c; font-size: 11px; }
.badge-new { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 6px; background: #d9465f; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }

/* 女優カードを横に滑らせる帯（人数が少なくても行が空かないように） */
ul.actress-rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(150px, 170px); max-width: 100%; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
ul.actress-rail > li { scroll-snap-align: start; }

/* FANZAの最新情報 */
.promo-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.promo { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid rgba(201, 164, 92, .45); border-radius: var(--radius); background: linear-gradient(135deg, rgba(201, 164, 92, .16), var(--surface) 60%); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.promo:hover { border-color: var(--gold); transform: translateY(-2px); }
.promo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.promo-badge { padding: 2px 9px; border-radius: 6px; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.promo-title { font-weight: 700; line-height: 1.5; }
.promo-lead { color: var(--sub); font-size: 13px; line-height: 1.6; }
.promo-until { color: var(--gold-hi); font-size: 12px; }

/* グッズ・同人のカード（写真の形がそろわないので全体を見せる） */
.shop-card .card-media { aspect-ratio: 1 / 1; }
.shop-doujin .card-media { aspect-ratio: 4 / 3; }
.shop-card .card-media img { object-fit: contain; }
.shop-card:hover .card-media img { transform: none; }

/* 横に滑らせる新作の帯 */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 170px); gap: 14px; max-width: 100%; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail .card { scroll-snap-align: start; }

/* 女優ページ */
.profile {
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; margin: 12px 0 8px; padding: 24px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(201, 164, 92, .18), transparent 55%), var(--surface);
  border: 1px solid var(--line); border-radius: 20px;
}
.profile-photo img { display: block; width: 150px; height: 150px; object-fit: cover; border-radius: 50%; background: var(--surface-2); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold); }
.profile h1 { margin: 4px 0 2px; }
.ruby { margin: 0 0 14px; color: var(--sub); font-size: 13px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.stats li { display: flex; flex-direction: column; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); line-height: 1.5; }
.stats span { font-size: 11px; color: var(--sub); letter-spacing: .08em; }
.stats strong { font-size: 15px; }
/* 女優ページの最新作（パッケージを大きく見せて 買う気になってもらう） */
.profile-work { display: grid; gap: 8px; align-content: start; }
.profile-jacket { position: relative; display: block; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.profile-jacket img { display: block; width: 100%; height: auto; }
.profile-work-title { margin: 0; color: var(--sub); font-size: 13px; line-height: 1.55; }
.profile-work .btn { width: 100%; white-space: normal; }

/* 作品ページ */
.work { display: grid; gap: 20px; margin: 12px 0 8px; }
.work-media { position: relative; display: block; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.work-media img { display: block; width: 100%; height: auto; }
.work-title { margin: 6px 0 10px; font-size: clamp(19px, 3vw, 26px); line-height: 1.45; }
.work-rating { font-size: 14px; margin: 0 0 10px; }
.work-stats { margin-bottom: 14px; }
.work-stats .sale-end { color: #ff8d7c; }
.work-cast { margin: 0 0 12px; font-size: 14px; line-height: 1.8; }
.work-chips { margin: 0 0 18px; }
.btn-big { width: 100%; padding: 16px 24px; font-size: 17px; white-space: normal; }

.sticky-cta { position: sticky; bottom: 0; z-index: 10; margin-top: 24px; padding: 12px 0 16px; background: linear-gradient(to top, var(--bg) 60%, transparent); }
.sticky-cta .btn { width: 100%; white-space: normal; }

/* 記事 */
.prose { max-width: 740px; }
.prose table { width: 100%; margin: 16px 0; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.prose th { background: var(--surface-2); white-space: nowrap; }
.prose strong { color: var(--gold-hi); }

/* フッター */
footer { margin-top: 24px; padding: 28px 16px 36px; border-top: 1px solid var(--line); background: #0a090b; color: var(--sub); font-size: 12px; text-align: center; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
footer a { color: var(--sub); }
.credit { margin: 10px 0; }

/* 18歳確認 */
.agegate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .9); }
.agegate[hidden] { display: none; }
.agegate-box { width: 100%; max-width: 420px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.agegate-box p { margin: 0 0 16px; }
.agegate-actions { display: flex; flex-direction: column; gap: 10px; }
.agegate-actions a { color: var(--sub); font-size: 14px; }

@media (max-width: 767px) {
  /* スマホではメニューを1行にして横に滑らせる（ヘッダーを低く保つ） */
  .site-header nav { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  /* 最初の画面に写真が来るように 見出しのまわりを詰める */
  .hero { margin: 12px 0 4px; padding: 22px 18px 22px; }
  .hero h1 { margin: 4px 0 0; font-size: clamp(22px, 6.6vw, 28px); }
  .hero-lead { display: none; }
  .hero-search { margin-top: 16px; }
  .hero-actions { gap: 8px; margin-top: 12px; }
  .hero-actions .btn { flex: 1 1 0; padding: 11px 10px; }
  .pick h2 { margin-top: 26px; }
  h2 { margin-top: 34px; }
}
@media (min-width: 640px) {
  .profile { grid-template-columns: auto 1fr; gap: 32px; padding: 32px; }
  .profile-work { grid-column: 1 / -1; grid-template-columns: 220px 1fr; align-items: center; column-gap: 20px; }
  .profile-work .btn { grid-column: 2; width: auto; justify-self: start; }
  .work { grid-template-columns: minmax(260px, 42%) 1fr; gap: 28px; align-items: start; }
  .btn-big { width: auto; }
}
@media (min-width: 1024px) {
  .hero-bg { grid-template-columns: repeat(8, 1fr); }
  .profile { grid-template-columns: auto 1fr 300px; }
  .profile-work { grid-column: auto; grid-template-columns: 1fr; }
  .profile-work .btn { grid-column: auto; width: 100%; justify-self: stretch; }
}
@media (min-width: 1024px) {
  /* 画面が広いときは横幅も広げて 左右のあきすぎをおさえる */
  :root { --wrap: 1400px; --gutter: 24px; --side-w: 212px; --side-gap: 32px; }
  .layout { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: var(--side-gap); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); align-items: start; }
  .layout > main { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
  .side { display: block; position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; padding: 12px 0 24px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .side-m { display: none; }
  /* 広くなったぶんは 1列に並ぶ枚数を増やして埋める */
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(165px, 13vw, 190px), 1fr)); }
  .actress-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(158px, 12.5vw, 185px), 1fr)); }
  .rail { grid-auto-columns: 200px; }
  ul.actress-rail { grid-auto-columns: 185px; }
  .prose { max-width: 820px; }
  /* 見出しの右のあきに 検索とボタンを置く */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); column-gap: clamp(32px, 4vw, 64px); align-items: center; padding-top: clamp(32px, 3.4vw, 48px); padding-bottom: clamp(32px, 3.4vw, 48px); }
  .hero > .eyebrow { grid-column: 1; grid-row: 1; }
  .hero > h1 { grid-column: 1; grid-row: 2; }
  .hero > .hero-lead { grid-column: 1; grid-row: 3; }
  .hero > .hero-search { grid-column: 2; grid-row: 1 / 3; align-self: end; max-width: none; margin-top: 0; }
  .hero > .hero-actions { grid-column: 2; grid-row: 3; margin-top: 14px; }
}
@media (min-width: 1200px) {
  /* カップの数だけ列を作って 1行に収める（最後の行に1枚だけ残らないように） */
  .cup-links { grid-template-columns: repeat(var(--cups, 6), minmax(0, 1fr)); }
  /* 1行に詰めるので 縦横比ではなく高さで決める（比のままだと列よりはみ出す） */
  .cup-links a { aspect-ratio: auto; min-height: 104px; padding: 10px 12px; }
  .cup-letter { left: 11px; font-size: clamp(28px, 2.5vw, 40px); }
  .cup-name { font-size: 14px; }
}
@media (min-width: 1600px) {
  :root { --wrap: 1620px; --gutter: 32px; --side-w: 236px; --side-gap: 40px; }
}
@media (min-width: 768px) {
  .rail { grid-auto-columns: 190px; }
  .sticky-cta { display: none; }
}
