/* ==========================================================================
   AV検定 — デザインシステム
   黒 × ピンク。ゴールドは段位・合格証だけに使い、格を分ける。
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-elev: #131317;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --pink: #ff2d78;
  --pink-deep: #c2185b;
  --pink-soft: rgba(255, 45, 120, 0.14);
  --pink-glow: rgba(255, 45, 120, 0.45);

  --gold: #e8c87e;
  --gold-soft: rgba(232, 200, 126, 0.14);

  --text: #f5f5f7;
  --text-sub: #9a9aa5;
  --text-dim: #6b6b76;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.55);

  --header-h: 58px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景の淡いピンク光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60vw 40vh at 15% -5%, rgba(255, 45, 120, 0.13), transparent 70%),
    radial-gradient(50vw 35vh at 90% 8%, rgba(194, 24, 91, 0.10), transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 20px; }

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, #fff 10%, var(--pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-sub);
  white-space: nowrap;
  transition: 0.18s;
}
.nav a:hover { color: var(--text); background: var(--card-hover); }
.nav a.is-active { color: var(--pink); background: var(--pink-soft); }

/* ---------- セクション ---------- */
section { padding: 46px 0; position: relative; z-index: 1; }

.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.sec-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding-left: 14px;
  border-left: 4px solid var(--pink);
  line-height: 1.3;
}
.sec-sub { color: var(--text-sub); font-size: 0.83rem; }
.sec-more { margin-left: auto; font-size: 0.83rem; color: var(--pink); white-space: nowrap; }
.sec-more:hover { text-decoration: underline; }

/* ---------- ヒーロー：人物ガチャ（カバーフロー） ---------- */
.hero { padding: 34px 0 30px; }
.hero-lead { text-align: center; margin-bottom: 22px; }
.hero-lead h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4.6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.hero-lead h1 .accent {
  background: linear-gradient(100deg, var(--pink), #ff7ba8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead p { margin: 0; color: var(--text-sub); font-size: 0.92rem; }

.coverflow {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 26px calc(50% - 105px) 34px;
  scrollbar-width: none;
  perspective: 1400px;
}
.coverflow::-webkit-scrollbar { display: none; }

.cf-item {
  flex: 0 0 210px;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.3s;
  transform: scale(0.82) rotateY(0deg);
  opacity: 0.55;
}
.cf-item img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.cf-item.is-center {
  transform: scale(1.06);
  opacity: 1;
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink), 0 12px 48px var(--pink-glow);
}
.cf-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 14px 13px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}
.cf-name { font-weight: 700; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-sub { font-size: 0.74rem; color: var(--text-sub); letter-spacing: 0.03em; white-space: nowrap; }

.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  transition: 0.2s;
}
.btn:hover { background: var(--card-hover); border-color: var(--pink); }

.btn-primary {
  background: linear-gradient(100deg, var(--pink), var(--pink-deep));
  border-color: transparent;
  box-shadow: 0 6px 26px var(--pink-glow);
}
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 8px 34px var(--pink-glow); }

.btn-gold {
  background: linear-gradient(100deg, var(--gold), #c9a55c);
  border-color: transparent;
  color: #2a2010;
}

.btn-lg { padding: 15px 38px; font-size: 1.02rem; }

/* ---------- 横スクロールレーン ---------- */
.lane-wrap { position: relative; }
.lane {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.lane::-webkit-scrollbar { display: none; }
.lane > * { scroll-snap-align: start; flex: 0 0 auto; }

.lane-nav {
  position: absolute;
  top: 50%;
  translate: 0 -60%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(8px);
  color: var(--text);
  display: grid;
  place-items: center;
  z-index: 5;
  transition: 0.2s;
}
.lane-nav:hover { background: var(--pink); border-color: var(--pink); }
.lane-nav.prev { left: -14px; }
.lane-nav.next { right: -14px; }
@media (max-width: 880px) { .lane-nav { display: none; } }

/* ---------- 女優カード ---------- */
.actress-card { width: 132px; text-align: center; }
.actress-card .thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: 0.24s;
}
.actress-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.actress-card:hover .thumb {
  border-color: var(--pink);
  box-shadow: 0 6px 24px var(--pink-glow);
  transform: translateY(-3px);
}
/* 実データの女優名には「河北彩花（河北彩伽）」のような別名表記が入る。
   折り返すとカードごとに高さが変わり、横一列の下端が揃わなくなるので1行に固定する。 */
.actress-card .name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actress-card .sub { font-size: 0.71rem; color: var(--text-dim); }

.heart { color: var(--pink); font-size: 0.76rem; display: inline-flex; align-items: center; gap: 3px; }

/* ランキングの王冠 */
.rank-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #1a1208;
  background: linear-gradient(140deg, var(--gold), #b8934a);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.rank-badge.r2 { background: linear-gradient(140deg, #e2e2ea, #9a9aa8); }
.rank-badge.r3 { background: linear-gradient(140deg, #d59a6a, #a06a3c); }
.rank-badge.rn { background: rgba(255, 255, 255, 0.14); color: var(--text); }

/* ---------- 検定カード ---------- */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 15px;
}
.quiz-card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 45, 120, 0.09), var(--card));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.25s;
}
.quiz-card::after {
  content: "";
  position: absolute;
  inset: -40% -60% auto auto;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, var(--pink-glow), transparent 68%);
  opacity: 0;
  transition: 0.35s;
}
.quiz-card:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: var(--shadow); }
.quiz-card:hover::after { opacity: 0.6; }
.quiz-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--pink-soft);
  border: 1px solid rgba(255, 45, 120, 0.3);
  color: var(--pink);
  margin-bottom: 13px;
}
.quiz-card h3 { margin: 0 0 6px; font-size: 1.04rem; font-weight: 800; }
.quiz-card p { margin: 0; font-size: 0.8rem; color: var(--text-sub); line-height: 1.6; }
.quiz-card .meta { margin-top: 13px; font-size: 0.73rem; color: var(--text-dim); }

/* ---------- 級バッジ ---------- */
.grade-list { display: flex; flex-wrap: wrap; gap: 11px; }
.grade-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  min-width: 104px;
  transition: 0.2s;
}
.grade-chip:hover { border-color: var(--pink); background: var(--pink-soft); transform: translateY(-3px); }
.grade-chip .g-label { font-size: 1.16rem; font-weight: 800; }
.grade-chip .g-cond { font-size: 0.7rem; color: var(--text-dim); }
.grade-chip.is-dan { border-color: rgba(232, 200, 126, 0.4); background: var(--gold-soft); }
.grade-chip.is-dan .g-label { color: var(--gold); }
.grade-chip.is-dan:hover { border-color: var(--gold); }

/* ---------- 検定プレイ画面 ---------- */
.quiz-stage { max-width: 660px; margin-inline: auto; padding: 30px 0 70px; }

.q-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.q-bar { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.q-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink));
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.q-count { font-size: 0.82rem; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.q-timer { font-size: 0.86rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }

.q-prompt { font-size: 1.22rem; font-weight: 800; text-align: center; margin: 0 0 20px; line-height: 1.5; }

/* FANZA の女優画像は 125x125 が上限（APIで取れる最大）。
   以前は height:300px で 2.4倍に引き伸ばしていたため露骨にボケていた。
   顔写真は等倍の2倍（250px）までに抑え、
   足りない余白は同じ画像をぼかした背景で埋めて、枠の大きさは保つ。 */
.q-media { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.q-media figure { margin: 0; text-align: center; }
.q-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* 顔写真（女優画像）: 引き伸ばしすぎない + ぼかし背景で額装する */
.q-media.is-portrait figure {
  position: relative;
  width: 250px;
  height: 250px;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.q-media.is-portrait figure::before {
  content: "";
  position: absolute;
  inset: -30px;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.25) brightness(0.75);
  z-index: -1;
}
.q-media.is-portrait img {
  height: 250px;
  width: 250px;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 目元だけの上級問題。125px の一部を切り出すので拡大率を欲張らない */
.q-media.is-masked figure { width: 260px; height: 190px; }
.q-media.is-masked img {
  height: 250px;
  width: 250px;
  clip-path: inset(26% 16% 46% 16%);
  transform: scale(1.55);
  transform-origin: center 33%;
}
.q-media figcaption { font-size: 0.8rem; color: var(--text-sub); margin-top: 7px; }

.q-choices { display: grid; gap: 11px; }
.q-choice {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 19px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.18s;
}
.q-choice:hover:not(:disabled) { border-color: var(--pink); background: var(--pink-soft); transform: translateX(4px); }
.q-choice .key {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.09);
}
.q-choice.is-correct {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.15);
  animation: pop 0.42s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.q-choice.is-correct .key { background: #2ecc71; color: #06240f; }
.q-choice.is-wrong { border-color: #e74c3c; background: rgba(231, 76, 60, 0.13); }
.q-choice:disabled { cursor: default; }

@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

/* 解説 + 作品導線 */
.q-explain {
  margin-top: 20px;
  padding: 19px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  animation: slideUp 0.35s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.q-verdict { font-weight: 800; font-size: 1.02rem; margin-bottom: 6px; }
.q-verdict.ok { color: #2ecc71; }
.q-verdict.ng { color: #e74c3c; }
.q-explain p { margin: 0 0 14px; font-size: 0.9rem; color: var(--text-sub); }

.related-head {
  font-size: 0.78rem;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 9px;
  letter-spacing: 0.04em;
}
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.related-item { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: 0.2s; }
.related-item:hover { border-color: var(--pink); transform: translateY(-2px); }
.related-item img { aspect-ratio: 16 / 11; object-fit: cover; }
.related-item .t {
  font-size: 0.68rem;
  padding: 6px 7px;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 結果 ---------- */
.result-card {
  max-width: 560px;
  margin: 0 auto 26px;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(165deg, rgba(255, 45, 120, 0.13), var(--bg-elev));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.result-card.is-pass { border-color: var(--gold); background: linear-gradient(165deg, var(--gold-soft), var(--bg-elev)); }
.result-rank { font-size: 3.6rem; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.result-rank.rank-S { color: var(--gold); text-shadow: 0 0 26px rgba(232, 200, 126, 0.6); }
.result-rank.rank-A { color: var(--pink); text-shadow: 0 0 26px var(--pink-glow); }
.result-score { font-size: 1.06rem; color: var(--text-sub); }
.result-score strong { color: var(--text); font-size: 1.5rem; }
.result-verdict { margin-top: 12px; font-size: 1.2rem; font-weight: 800; }

.result-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- レーダー ---------- */
.radar-wrap { max-width: 400px; margin-inline: auto; }
.radar { width: 100%; height: auto; overflow: visible; }
.radar-label { fill: var(--text-sub); font-size: 13px; font-weight: 600; }
.radar-link .radar-label { fill: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.radar-link:hover .radar-label { fill: var(--pink); }
.radar-legend { display: flex; gap: 16px; justify-content: center; font-size: 0.78rem; margin-top: 4px; }
.lg { display: inline-flex; align-items: center; gap: 6px; color: var(--text-sub); }
.lg::before { content: ""; width: 14px; height: 3px; border-radius: 2px; }
.lg-main::before { background: var(--pink); }
.lg-base::before { background: var(--gold); }

/* ---------- 女優詳細 ---------- */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
@media (max-width: 700px) { .profile { grid-template-columns: 1fr; } }
/* FANZA の女優画像は 125x125 が上限。3:4 の枠に cover で伸ばすと
   1.8倍以上に拡大されて劣化するので、正方形のまま額装し、
   余白は同じ画像のぼかしで埋める（枠の見た目の大きさは保つ）。 */
.profile-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.profile-photo::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.25) brightness(0.7);
  z-index: -1;
}
.profile-photo img { display: block; width: 100%; height: auto; }
.profile h1 { margin: 0 0 3px; font-size: 1.75rem; font-weight: 900; }
.profile .ruby { color: var(--text-sub); font-size: 0.86rem; }
.spec-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.spec-list li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.spec-list li b { color: var(--pink); font-weight: 700; }
.type-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--pink), var(--pink-deep));
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--pink-glow);
}

/* ---------- スキ！ボタン ---------- */
.like-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text-sub);
  font-size: 0.72rem;
  font-weight: 700;
  transition: 0.2s;
  flex: 0 0 auto;
}
.like-btn .like-icon { font-size: 1.35rem; line-height: 1; color: var(--text-dim); transition: 0.2s; }
.like-btn:hover { border-color: var(--pink); background: var(--pink-soft); }
.like-btn.is-liked { border-color: var(--pink); background: var(--pink-soft); color: var(--pink); }
.like-btn.is-liked .like-icon { color: var(--pink); animation: heartPop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ---------- タイプ投票 ---------- */
.vote-box {
  margin-top: 18px;
  padding: 15px 17px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.vote-head { font-size: 0.83rem; font-weight: 700; color: var(--pink); margin-bottom: 10px; }
.vote-options { display: flex; gap: 8px; flex-wrap: wrap; }
.vote-opt {
  position: relative;
  overflow: hidden;
  padding: 8px 17px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  transition: 0.18s;
}
/* 得票率を背景バーで見せる */
.vote-opt::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: var(--pink-soft);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.vote-opt > * { position: relative; }
.vote-opt:hover { border-color: var(--pink); color: var(--text); }
.vote-opt.is-active { border-color: var(--pink); color: var(--pink); }
.vote-opt .v-pct { font-size: 0.74rem; opacity: 0.85; margin-left: 5px; }
.vote-total { font-size: 0.73rem; color: var(--text-dim); margin-top: 9px; }

/* ---------- 作品カード ---------- */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 15px; }
.content-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: 0.22s; }
.content-card:hover { border-color: var(--pink); transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5); }
.content-card img { aspect-ratio: 16 / 11; object-fit: cover; }
.content-card .body { padding: 10px 11px 12px; }
.content-card .title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card .meta { font-size: 0.7rem; color: var(--text-dim); margin-top: 6px; display: flex; gap: 8px; }
.stars { color: var(--gold); }

/* ---------- タブ / チップ ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  padding: 8px 19px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: 0.18s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.is-active {
  background: linear-gradient(100deg, var(--pink), var(--pink-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px var(--pink-glow);
}

/* ---------- 日本地図 ---------- */
.japan-map { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 820px) { .japan-map { grid-template-columns: 1fr; } }
.map-svg { width: 100%; height: auto; }
.map-region {
  fill: var(--pink-soft);
  stroke: rgba(255, 45, 120, 0.45);
  stroke-width: 1.4;
  cursor: pointer;
  transition: 0.22s;
}
.map-region:hover { fill: var(--pink); filter: drop-shadow(0 0 14px var(--pink-glow)); }
/* 該当する女優が1人もいない地方。押せないことが見て分かるようにする */
.is-empty .map-region { cursor: default; stroke: var(--line); }
.is-empty .map-region:hover { fill: var(--pink-soft); filter: none; }
.is-empty .map-label { fill: var(--text-dim); }
.map-legend li.is-empty { opacity: 0.45; }
.map-label { fill: var(--text); font-size: 12px; font-weight: 700; pointer-events: none; text-anchor: middle; }
.map-count { fill: var(--text-sub); font-size: 10px; pointer-events: none; text-anchor: middle; }
.map-legend { font-size: 0.8rem; color: var(--text-sub); }
.map-legend ol { padding-left: 0; list-style: none; margin: 0; }
.map-legend li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.map-legend .bar { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--pink-deep), var(--pink)); }

/* ---------- コメント ---------- */
.comment-card {
  display: block;
  width: 290px;
  flex: 0 0 auto;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  transition: 0.2s;
}
a.comment-card:hover { border-color: var(--pink); box-shadow: 0 0 20px var(--pink-glow); }
.comment-card .who { color: var(--pink); font-weight: 700; font-size: 0.76rem; margin-bottom: 5px; }
.comment-card .txt { color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.comment-card .when { color: var(--text-dim); font-size: 0.68rem; margin-top: 7px; }
.fact-number { color: var(--text); font-size: 1.5rem; font-weight: 900; margin-right: 3px; }

/* ---------- フッター ---------- */
.footer { margin-top: 50px; padding: 34px 0 60px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.83rem; color: var(--text-sub); margin-bottom: 18px; }
.footer-nav a:hover { color: var(--pink); }
.footer small { color: var(--text-dim); font-size: 0.74rem; line-height: 1.8; display: block; }

/* ---------- 年齢認証 ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 7, 0.96);
  backdrop-filter: blur(10px);
  padding: 20px;
}
.age-gate[hidden] { display: none; }
.age-box {
  max-width: 430px;
  padding: 38px 30px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.age-box h2 { margin: 0 0 12px; font-size: 1.3rem; }
.age-box p { color: var(--text-sub); font-size: 0.87rem; margin: 0 0 22px; }
.age-actions { display: flex; gap: 11px; justify-content: center; }

/* ---------- パンくず ---------- */
.crumb { font-size: 0.76rem; color: var(--text-dim); padding: 14px 0 0; }
.crumb a:hover { color: var(--pink); }
.crumb span { margin: 0 6px; }

/* ---------- ユーティリティ ---------- */
.empty { padding: 44px; text-align: center; color: var(--text-dim); font-size: 0.9rem; }
.center { text-align: center; }
.mt-lg { margin-top: 30px; }

/* ---------- 広告枠 ---------- */
.ad-slot {
  margin: 34px 0;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
  /* 読み込み前に高さが0だと、差し込まれた瞬間にページが飛ぶ（CLS悪化）ので確保する */
  min-height: 120px;
}
.ad-label {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.dmm-widget { display: flex; justify-content: center; }
/* ウィジェットは iframe なので中身の配色は変えられない（白固定）。
   角を丸めて枠に収め、黒背景から浮きすぎないようにする。 */
.dmm-widget img, .dmm-widget iframe { max-width: 100%; border-radius: 10px; overflow: hidden; }

/* ---------- 固定ページ（運営者情報・規約など） ---------- */
.doc { max-width: 760px; font-size: 0.92rem; line-height: 1.9; color: var(--text-sub); }
.doc h1 { color: var(--text); font-size: 1.6rem; margin: 8px 0 20px; }
.doc h2 { color: var(--text); font-size: 1.12rem; margin: 34px 0 10px; padding-left: 12px; border-left: 3px solid var(--pink); }
.doc h3 { color: var(--text); font-size: 0.96rem; margin: 20px 0 6px; }
.doc a { color: var(--pink); text-decoration: underline; }
.doc ul { padding-left: 20px; }
.doc li { margin: 5px 0; }
.doc-table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 9px 14px; text-align: left; font-weight: 400; }
.doc-table th { color: var(--text); white-space: nowrap; background: var(--card); }
.doc-updated { color: var(--text-dim); font-size: 0.8rem; margin-top: 30px; }

/* ---------- お問い合わせフォーム ---------- */
.contact-form { display: grid; gap: 18px; margin-top: 24px; }
.contact-form label { display: block; font-size: 0.86rem; color: var(--text); font-weight: 600; }
.contact-form label > input, .contact-form label > select, .contact-form label > textarea { display: block; width: 100%; margin-top: 7px; box-sizing: border-box; }
.contact-form .req { color: var(--pink); font-size: 0.72rem; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-glow);
}
/* ハニーポット。display:none だと賢いボットが検知するので画面外に飛ばす */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 0.86rem; color: var(--pink); }

.footer-sub { margin-top: -6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
