/* ========================================
   共通リセット & ベース
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1a1a2e;
  --bg-card: #16213e;
  --bg-surface: #0f3460;
  --accent: #e94560;
  --accent-hover: #ff6b81;
  --text: #eee;
  --text-muted: #a0a0b8;
  --text-dim: #6c6c80;
  --border: #2a2a4a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   レイアウト
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
}

/* ========================================
   ヘッダー (sticky、検索バートリガー)
   ======================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span {
  color: var(--accent);
}

/* ヘッダー検索バー (タップトリガー、入力不可) */
.header-search {
  flex: 1;
  position: relative;
}

.header-search-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 40px 9px 14px;
  font-size: 1rem;
  background: var(--bg-surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: border-color 0.2s;
}

.header-search-trigger:hover {
  border-color: var(--accent);
}

.header-search .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
}

/* ========================================
   検索オーバーレイ (フルスクリーン)
   ======================================== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  justify-content: center;
  align-items: flex-start;
}

.search-overlay.open {
  display: flex;
}

.search-overlay-panel {
  width: 100%;
  max-width: 560px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
}

.search-overlay-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 201;
}

.search-overlay-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.2s;
}
.search-overlay-close:hover {
  background: var(--bg-surface);
  color: var(--text);
}

.search-overlay-input {
  flex: 1;
  padding: 10px 16px;
  font-size: 1rem;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  outline: none;
  font-family: var(--font);
}
.search-overlay-input:focus {
  border-color: var(--accent);
}
.search-overlay-input::placeholder {
  color: var(--text-dim);
}

.search-overlay-body {
  flex: 1;
  padding: 16px 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* オーバーレイ内タブ */
.overlay-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.overlay-tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  background: none;
}

.overlay-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.overlay-tab:hover:not(.active) {
  color: var(--text);
}

/* オーバーレイ内フィルター */
.overlay-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.overlay-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

/* オーバーレイ内コード検索 */
.overlay-code-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.overlay-code-search label {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.overlay-code-search input {
  padding: 10px 12px;
  font-size: 1rem;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  font-family: var(--font);
  text-transform: uppercase;
}

.overlay-code-search input:focus {
  border-color: var(--accent);
}

.overlay-code-search .code-prefix {
  width: 100px;
  text-align: center;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.overlay-code-search .code-sep {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.4rem;
}

.overlay-code-search .code-number {
  width: 90px;
  text-align: center;
  font-weight: 700;
}

.overlay-code-search .btn-search {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.overlay-code-search .btn-search:hover {
  background: var(--accent-hover);
}

/* オーバーレイ内タブコンテンツ */
.overlay-tab-content {
  display: none;
}
.overlay-tab-content.active {
  display: block;
}

/* 検索候補リスト */
.search-suggestions {
  margin-top: 8px;
}
.search-suggestion-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.15s;
  text-decoration: none;
}
.suggestion-item:hover {
  background: var(--bg-card);
  color: var(--text);
}

.suggestion-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--bg-surface);
}

.suggestion-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.suggestion-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 「全件を見る」リンク */
.search-results-all {
  padding: 12px 8px;
  text-align: center;
}
.search-results-all .see-all-link {
  font-size: 0.9rem;
  font-weight: 700;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========================================
   年齢確認 (トップ)
   ======================================== */
.age-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 24px;
}

.age-gate h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.age-gate h1 span {
  color: var(--accent);
}

.age-gate .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.age-gate .warning {
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 32px;
  max-width: 480px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.age-gate .stats {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}
.age-gate .stats strong {
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 14px 48px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ========================================
   ホームコンテンツ (初期表示)
   ======================================== */
.home-content {
  margin-top: 8px;
}

.home-section {
  margin-bottom: 32px;
}

.home-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.see-all-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.see-all-link:hover {
  color: var(--accent-hover);
}

/* ランキングリスト (簡素版) */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}

.ranking-item:hover {
  background: var(--bg-surface);
}

.ranking-rank {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 24px;
  text-align: center;
}

.ranking-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.ranking-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.ranking-pts {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* プロモカード */
.promo-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 600px) {
  .promo-cards {
    flex-direction: row;
  }
}

.promo-card {
  flex: 1;
  padding: 16px 20px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s;
}

.promo-card:hover {
  transform: translateY(-2px);
  color: #fff;
}

.promo-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.promo-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.promo-date {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
}

.promo-fanza {
  background: linear-gradient(135deg, #e94560, #c62a40);
}

.promo-mgs {
  background: linear-gradient(135deg, #0ea5e9, #0077b6);
}

/* ========================================
   検索ページ: タブ (メインページ用)
   ======================================== */
.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.search-tab {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.search-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.search-tab:hover:not(.active) {
  color: var(--text);
}

/* ========================================
   フィルター (メインページ本体用、フォールバック)
   ======================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.filter-select {
  padding: 8px 12px;
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.quick-filter {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-filter:hover,
.quick-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ========================================
   作品コード検索 (メインページ本体用)
   ======================================== */
.code-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.code-search label {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.code-search input {
  padding: 10px 12px;
  font-size: 1rem;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  font-family: var(--font);
  text-transform: uppercase;
}

.code-search input:focus {
  border-color: var(--accent);
}

.code-search .code-prefix {
  width: 100px;
  text-align: center;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.code-search .code-sep {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.4rem;
}

.code-search .code-number {
  width: 90px;
  text-align: center;
  font-weight: 700;
}

.code-search .btn-search {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.code-search .btn-search:hover {
  background: var(--accent-hover);
}

/* ========================================
   グリッド (2列モバイル / 4列PC)
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* ========================================
   女優カード
   ======================================== */
.actress-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.actress-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.actress-card .card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-surface);
}

.actress-card .card-body {
  padding: 10px;
}

.actress-card .card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
}

.actress-card .card-kana {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.actress-card .card-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.actress-card .card-stats .cup {
  color: var(--accent);
  font-weight: 700;
}

/* ========================================
   作品カード
   ======================================== */
.work-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.work-card .card-img {
  width: 100%;
  aspect-ratio: 7/10;
  object-fit: cover;
  background: var(--bg-surface);
}

.work-card .card-body {
  padding: 10px;
}

.work-card .card-cid {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.work-card .card-title {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card .card-actress {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.work-card .card-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ========================================
   もっと見るボタン
   ======================================== */
.load-more {
  text-align: center;
  margin-top: 32px;
}

.load-more .btn {
  padding: 12px 48px;
}

/* ========================================
   結果ヘッダ
   ======================================== */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.results-header .count {
  color: var(--text-muted);
}
.results-header .count strong {
  color: var(--text);
}

/* ========================================
   女優ページ: プロフィール
   ======================================== */
.actress-profile {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.actress-profile .profile-img {
  width: 140px;
  min-width: 140px;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-surface);
}

.actress-profile .profile-info {
  flex: 1;
}

.actress-profile .profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.actress-profile .profile-kana {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.actress-profile .profile-aliases {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.actress-profile .profile-aliases span {
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.profile-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 0.85rem;
}

.profile-stats dt {
  color: var(--text-dim);
}

.profile-stats dd {
  color: var(--text);
  font-weight: 600;
}

.profile-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-surface);
  border-radius: 20px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.profile-links a:hover {
  background: var(--accent);
  color: #fff;
}

.actress-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.actress-section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.actress-section-header .work-count {
  color: var(--accent);
  font-weight: 700;
}

/* 女優ページ内フィルタ */
.actress-work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.type-filter {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.type-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ========================================
   作品ページ
   ======================================== */
.work-detail {
  max-width: 800px;
  margin: 0 auto;
}

.work-hero {
  position: relative;
  margin-bottom: 24px;
}

.work-hero .package-img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.work-meta {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.work-meta .work-cid {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.work-meta .work-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
}

.work-info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.work-info-grid dt {
  color: var(--text-dim);
}
.work-info-grid dd {
  color: var(--text);
}

/* 購入リンク */
.purchase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.purchase-link {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.purchase-link.fanza-dvd {
  background: #e85d04;
  color: #fff;
}
.purchase-link.fanza-dvd:hover {
  background: #f17a2b;
  color: #fff;
}

.purchase-link.fanza-stream {
  background: #0077b6;
  color: #fff;
}
.purchase-link.fanza-stream:hover {
  background: #0096e0;
  color: #fff;
}

.purchase-link.fanza-monthly {
  background: #6a0dad;
  color: #fff;
}
.purchase-link.fanza-monthly:hover {
  background: #8b2fc9;
  color: #fff;
}

/* 出演女優リスト */
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cast-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.cast-item:hover {
  border-color: var(--accent);
}

.cast-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
}

.cast-item .cast-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* サンプル動画 */
.sample-video {
  margin-bottom: 24px;
}

.sample-video video {
  width: 100%;
  border-radius: var(--radius);
}

/* サンプル画像 */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.sample-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  .sample-images {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 960px) {
  .sample-images {
    grid-template-columns: repeat(5, 1fr);
  }
}

.sample-images img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.sample-images img:hover {
  opacity: 0.8;
}

/* ========================================
   タブコンテンツ切り替え (メインページ)
   ======================================== */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ========================================
   データ確認テーブル
   ======================================== */
.data-review-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.data-review-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-review-title {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.data-review-copy {
  max-width: 760px;
  color: var(--text-muted);
}

.data-review-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-stat-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(233,69,96,0.12) 0%, rgba(22,33,62,0.95) 100%);
  box-shadow: var(--shadow);
}

.review-stat-label {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-stat-value {
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 800;
}

.data-review-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-review-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(15,52,96,0.45);
}

.data-review-tab {
  flex: 1;
  padding: 15px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.data-review-tab.active {
  background: rgba(233,69,96,0.12);
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.data-review-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.review-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.data-review-content {
  display: none;
}

.data-review-content.active {
  display: block;
}

.table-frame {
  overflow-x: auto;
}

.review-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.review-table th,
.review-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.review-table th {
  position: sticky;
  top: 0;
  background: #142746;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-table tbody tr:nth-child(even) {
  background: rgba(15,52,96,0.18);
}

.review-table tbody tr:hover {
  background: rgba(233,69,96,0.08);
}

.table-url {
  max-width: 340px;
  color: var(--text-dim);
  word-break: break-all;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.review-badge.ok {
  background: rgba(54,179,126,0.18);
  color: #83e6b3;
}

.review-badge.warn {
  background: rgba(255,184,77,0.18);
  color: #ffd27d;
}

.review-badge.muted {
  background: rgba(160,160,184,0.16);
  color: #d1d1de;
}

/* ========================================
   レスポンシブ: モバイル調整
   ======================================== */
@media (max-width: 599px) {
  .actress-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .actress-profile .profile-img {
    width: 120px;
    min-width: 120px;
  }

  .profile-stats {
    justify-items: center;
  }

  .profile-links {
    justify-content: center;
  }

  .code-search {
    flex-wrap: wrap;
  }

  .site-logo {
    font-size: 1.2rem;
  }

  .overlay-code-search {
    flex-wrap: wrap;
  }

  .data-review-stats {
    grid-template-columns: 1fr;
  }

  .data-review-title {
    font-size: 1.45rem;
  }
}

/* ========================================
   プレースホルダー画像
   ======================================== */
.placeholder-img {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}
