/* ============================================
   tsuma-navi.com メインスタイルシート
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:     #0f0f14;
  --bg-secondary:   #1a1a24;
  --bg-tertiary:    #24243a;
  --text-primary:   #e8e8ed;
  --text-secondary: #9090a0;
  --text-muted:     #5e5e72;
  --accent:         #ff4466;
  --accent-hover:   #ff6680;
  --accent-sale:    #ffcc00;
  --border:         #2a2a3d;
  --border-hover:   #3d3d56;
  --tag-bg:         #24243a;
  --tag-text:       #b0b0c8;
  --safe-green:     #1D9E75;
  --safe-blue:      #378ADD;
  --font-main:      'M PLUS Rounded 1c', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-price:     'Helvetica Neue', Arial, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, button, select, textarea { font-family: inherit; font-size: 16px; }

/* --- 年齢確認ゲート --- */
.age-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.age-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.age-shield { margin-bottom: 16px; display: flex; justify-content: center; }
.age-modal h2 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.age-modal > p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.age-checks { display: inline-block; text-align: left; margin-bottom: 20px; }
.age-check { font-size: 13px; color: var(--text-secondary); padding: 3px 0; }
.age-check::before { content: ''; }
.age-confirm-btn {
  display: block; width: 100%;
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.age-confirm-btn:hover { background: var(--accent-hover); }
.age-sub { font-size: 11px; color: var(--text-muted); margin-top: 10px; }

/* --- ヘッダー --- */
.nav-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav-header.scrolled {
  background: rgba(15, 15, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  font-size: 22px; font-weight: 400;
  letter-spacing: 0.02em; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.logo .brand { color: var(--text-primary); }
.logo .accent { color: var(--accent); font-weight: 500; }
.logo img { height: 28px; width: auto; display: block; }
@media (max-width: 720px) { .logo img { height: 24px; } }

.nav-links { display: flex; gap: 20px; }
.nav-links a {
  font-size: 13px; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-search-btn {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); cursor: pointer;
  transition: border-color 0.2s;
}
.nav-search-btn:hover { border-color: var(--border-hover); }

/* 信頼バー */
.trust-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; padding: 8px 16px;
  background: rgba(18, 18, 26, 0.6);
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted);
}

/* --- メイン --- */
.main-content {
  max-width: 1200px; margin: 0 auto;
  min-height: 60vh;
}
.page-content { animation: pageIn 0.4s ease; }

/* --- セクション --- */
.section { padding: 32px 20px; }
.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 18px; font-weight: 500; letter-spacing: 0.04em; }
.section-more {
  font-size: 13px; color: var(--text-secondary);
  transition: color 0.2s;
}
.section-more:hover { color: var(--accent); }

/* --- カード --- */
.work-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  color: inherit;
  display: block;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 68, 102, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
/* 全カード共通: 正方形のフレーム。画像のアスペクトはそのまま中央配置で、
   縦長は左右、横長は上下に背景色が見える "letterbox" スタイル。 */
.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-tertiary);
}
.card-img-inner {
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-inner img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  display: block;
}
.work-card:hover .card-img-inner img { transform: scale(1.05); }
/* 画像無し or 読み込み失敗時のプレースホルダー */
.card-img__placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  width: 100%; height: 100%;
  color: var(--text-muted);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.05em;
}
.card-img__placeholder svg { opacity: 0.5; }
.card-img-inner--empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary);
}
.card-img-inner--empty::before {
  content: 'NO IMAGE';
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.card-info { padding: 12px; }
.card-title {
  font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 4px;
  min-height: 2.6em;
}
.card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.card-price {
  font-size: 14px; color: var(--accent);
  font-weight: 500; font-family: var(--font-price);
  margin-top: 4px;
}
.price-original {
  text-decoration: line-through;
  color: var(--text-muted); font-size: 12px;
  margin-right: 6px;
}
.price-sale { color: var(--accent-sale); font-weight: 700; }
.price-off {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-price);
}

/* --- グリッド --- */
.grid-5,
.grid-4,
.grid-3 {
  display: grid;
  gap: 14px; padding: 0 20px;
}
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* --- ランクバッジ --- */
.rank-badge {
  position: absolute; top: 6px; left: 6px;
  background: rgba(255,68,102,0.9); color: #fff;
  font-size: 11px; font-weight: 500;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

/* --- セールバッジ --- */
.sale-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--accent-sale); color: var(--bg-primary);
  font-size: 10px; font-weight: 500;
  padding: 2px 8px; border-radius: 4px;
}

/* --- 横スクロール + インジケーター --- */
.scroll-wrapper {
  position: relative;
  overflow: hidden;
}
.scroll-wrapper .scroll-row {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 0 20px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.scroll-wrapper .scroll-row > * { width: 280px; flex-shrink: 0; }

/* ランキング横スクロール内のカード:
   - 画像 165px 固定
   - タイトル 2行固定 (短くても min-height で2行分確保 / 長ければ ellipsis)
   - 女優名 1行分確保 (空でも高さキープ)
   - 価格 1行
   → 全カード同じ高さに揃う、stretch 不要 */
.scroll-wrapper .scroll-row .work-card .card-info { padding: 8px 10px; }
.scroll-wrapper .scroll-row .work-card .card-title {
  font-size: 12px; line-height: 1.4;
  -webkit-line-clamp: 2;
  min-height: 2.8em;
  margin-bottom: 2px;
}
.scroll-wrapper .scroll-row .work-card .card-meta {
  font-size: 11px;
  min-height: 1.2em;
  margin-bottom: 2px;
}
.scroll-wrapper .scroll-row .work-card .card-price { font-size: 12px; }

/* 右端のフェード */
.scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 64px;
  height: calc(100% - 12px);
  background: linear-gradient(to right, transparent 0%, var(--bg-primary) 85%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}
/* 矢印 */
.scroll-wrapper::before {
  content: '›';
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-60%);
  font-size: 28px; font-weight: 300;
  color: var(--text-muted);
  z-index: 3;
  pointer-events: none;
  animation: scrollHint 1.5s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(-60%) translateX(0); opacity: 0.6; }
  50%      { transform: translateY(-60%) translateX(5px); opacity: 1; }
}
.scroll-wrapper.scrolled-end::after,
.scroll-wrapper.scrolled-end::before {
  opacity: 0;
}

@media (max-width: 768px) {
  .scroll-wrapper::after { width: 48px; }
  .scroll-wrapper::before { right: 8px; font-size: 24px; }
}

/* 旧 .scroll-row 単独使用への互換（必要なら .scroll-wrapper でラップ推奨） */
.scroll-row:not(.scroll-wrapper .scroll-row) {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 0 20px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.scroll-row:not(.scroll-wrapper .scroll-row) > * { min-width: 180px; flex-shrink: 0; }

/* --- タグ --- */
.tag {
  display: inline-block;
  background: var(--tag-bg); color: var(--tag-text);
  font-size: 12px; padding: 4px 10px; border-radius: 4px;
  transition: background 0.2s;
  margin-right: 4px; margin-bottom: 4px;
}
.tag:hover { background: var(--border-hover); }

/* --- CTAボタン --- */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-weight: 500; padding: 14px 24px;
  border-radius: 10px; border: none;
  font-size: 15px; min-height: 48px;
  cursor: pointer; transition: background 0.2s;
}
.btn-cta:hover { background: var(--accent-hover); color: #fff; }
.btn-cta--block { display: flex; width: 100%; }
.btn-cta__price {
  font-family: var(--font-price);
  font-size: 13px;
  background: rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 4px;
}

/* --- 広告枠 --- */
.ad-slot {
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: 8px; padding: 14px;
  text-align: center; margin: 16px 20px;
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.ad-slot__tag {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* --- フッター --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 20px; text-align: center;
  margin-top: 48px;
}
.footer-links { margin-bottom: 12px; }
.footer-links a {
  font-size: 13px; color: var(--text-secondary);
  margin: 0 10px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-credit { margin-top: 20px; }
.api-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 16px;
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 10px;
}
.footer-credit p { font-size: 11px; color: var(--text-muted); line-height: 1.8; }
.footer-copy { font-size: 11px; color: var(--text-muted); margin-top: 16px; }

/* --- アニメーション --- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.25s; }
.fade-up.d3 { animation-delay: 0.4s; }
.fade-up.d4 { animation-delay: 0.55s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.live-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
  margin-right: 6px; vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(255,68,102,0.5); }
  50%     { opacity:0.6; box-shadow:0 0 0 6px rgba(255,68,102,0); }
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .grid-5,
  .grid-4,
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav-links { display: none; }
  .trust-bar { gap: 10px; flex-wrap: wrap; font-size: 10px; }
  .section-title { font-size: 16px; }
}

/* ============================================
   追加ルール（一覧/詳細/ランキング/共通UI）
   ============================================ */

/* dev banner */
.dev-banner {
  background: #2a1a14;
  color: #ffd0a8;
  border-bottom: 1px solid #6b3a1c;
  padding: 8px 20px;
  font-size: 11px;
  text-align: center;
}
.dev-banner__pill {
  background: #ff8844;
  color: #1a1a14;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  letter-spacing: 0.04em;
}
.dev-banner code {
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 3px;
}

/* breadcrumb */
.breadcrumb { color: var(--text-muted); font-size: 11px; margin: 8px 20px 16px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 4px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-hover); }

/* page heading */
.page-heading { font-size: 22px; font-weight: 500; margin: 0 20px 4px; letter-spacing: 0.04em; }
.page-lead { color: var(--text-secondary); font-size: 14px; margin: 0 20px 16px; }

/* list header / sort bar */
.list-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin: 0 20px 12px;
}
.list-header__count { color: var(--text-secondary); font-size: 13px; margin: 0; }

.sort-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sort-bar__label { color: var(--text-muted); }
.sort-bar__link {
  padding: 4px 10px; border-radius: 4px;
  color: var(--text-secondary);
}
.sort-bar__link.is-active { background: var(--bg-tertiary); color: var(--text-primary); }

.empty-state { text-align: center; padding: 48px 0; color: var(--text-muted); }

/* pagination */
.pagination {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin: 32px 20px 16px;
}
.pagination__link {
  display: inline-block; min-width: 36px; text-align: center;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-price);
  font-size: 13px;
}
.pagination__link:hover { border-color: var(--accent); color: var(--text-primary); }
.pagination__link--current { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.pagination__ellipsis { color: var(--text-muted); padding: 8px 4px; }

/* hero (home) */
.hero {
  padding: 60px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -60%; left: -30%;
  width: 160%; height: 220%;
  background: radial-gradient(ellipse at 40% 50%, rgba(255,68,102,0.07) 0%, transparent 55%);
  animation: heroGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroGlow {
  0%   { transform: translate(0,0) scale(1); opacity: 0.6; }
  50%  { transform: translate(3%,-2%) scale(1.05); opacity: 1; }
  100% { transform: translate(-2%,3%) scale(0.98); opacity: 0.7; }
}
.hero-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--bg-tertiary); color: var(--accent);
  font-size: 12px; padding: 5px 16px; border-radius: 20px;
  margin-bottom: 16px; letter-spacing: 0.04em;
}
.hero h1 { font-size: 28px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.search-box form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.search-input {
  flex: 1; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; color: var(--text-primary);
  font-size: 15px; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,68,102,0.15);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; width: 48px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: 22px; }
}

/* safety banner */
.safe-banner {
  display: flex; align-items: flex-start; gap: 14px;
  background: #141420; border: 1px solid #1e2e28;
  border-radius: 10px; padding: 16px 20px;
  margin: 0 20px 16px;
}
.safe-banner strong { font-size: 14px; font-weight: 500; display: block; margin-bottom: 4px; }
.safe-banner p { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin: 0; }
@media (max-width: 768px) {
  .safe-banner { flex-direction: column; gap: 8px; margin: 0 12px 12px; }
}

/* genre / maker / series tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 20px;
}
@media (max-width: 720px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
.tile {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px; font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile__arrow { color: var(--text-muted); }

/* actress circles */
.actress-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 0 20px;
}
@media (max-width: 720px) { .actress-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .actress-grid { grid-template-columns: repeat(3, 1fr); } }
.actress-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.actress-item__avatar {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  background: var(--bg-tertiary); border: 1px solid var(--border);
}
.actress-item__avatar img { width: 100%; height: 100%; object-fit: cover; }
.actress-item__initial {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 500;
  color: var(--accent); background: var(--bg-secondary);
}
.actress-item__name { font-size: 12px; color: var(--text-secondary); }

.actress-group { margin: 24px 0; padding: 0 20px; }
.actress-group__head {
  font-size: 18px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 12px;
}

.actress-hero {
  display: flex; gap: 16px; align-items: center;
  margin: 16px 20px 24px;
}
.actress-hero__avatar {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  background: var(--bg-tertiary); border: 1px solid var(--border);
}
.actress-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* work detail */
.work-detail__hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  padding: 0 20px;
  margin-bottom: 32px;
}
@media (max-width: 760px) {
  .work-detail__hero { grid-template-columns: 1fr; }
}
.work-detail__package {
  border-radius: 10px; overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-detail__package img {
  max-width: 100%;
  height: auto;
  display: block;
}
.work-detail__title { font-size: 22px; font-weight: 500; margin-bottom: 16px; }
.work-detail__facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 13px;
  margin: 0 0 20px;
}
.work-detail__facts > div { display: contents; }
.work-detail__facts dt { color: var(--text-muted); }
.work-detail__facts dd { margin: 0; color: var(--text-primary); }
.cta-note { color: var(--text-muted); font-size: 11px; margin: 10px 0 0; }
.cta-block { margin: 32px 20px; }
.badge-sale {
  display: inline-block;
  background: var(--accent-sale); color: #1a1a14;
  font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  margin-left: 6px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 20px;
}
@media (max-width: 720px) { .sample-grid { grid-template-columns: repeat(2, 1fr); } }
.sample-grid__cell {
  display: block;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}
/* サンプル画像スライダー (詳細ページ) */
.sample-slider {
  position: relative;
  padding: 0 20px;
  overflow: hidden;
}
.sample-slider__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-bottom: 8px;
}
.sample-slider__cell {
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  background: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sample-slider__cell img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 720px) { .sample-slider__cell { width: 110px; } }

/* 詳細ページ「この女優の他の作品」横スクロール — コンパクト */
.hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 20px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
}
.hscroll__cell {
  flex-shrink: 0;
  width: 140px;
}
.hscroll__cell .card-title { font-size: 11px; line-height: 1.35; }
.hscroll__cell .card-meta  { font-size: 10px; }
.hscroll__cell .card-price { font-size: 11px; }
.hscroll__cell .card-info  { padding: 8px 8px 10px; }
.sample-movie {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  margin: 0 20px;
}
.sample-movie video,
.sample-movie iframe {
  width: 100%;
  aspect-ratio: 644 / 414;
  background: #000;
  border-radius: 6px;
  border: 0;
  display: block;
}

.info-table {
  width: calc(100% - 40px);
  margin: 0 20px;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.info-table th, .info-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { color: var(--text-muted); width: 160px; font-weight: 500; }

/* ranking */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 16px 20px 24px;
}
.tabs__tab {
  padding: 10px 16px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.tabs__tab.is-active { color: var(--text-primary); border-bottom-color: var(--accent); }

.ranking-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; padding: 0 20px;
  margin-bottom: 24px;
}
@media (max-width: 720px) { .ranking-top { grid-template-columns: 1fr; } }
.ranking-top__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.ranking-top__card .work-card { flex: 1; }
.ranking-top__rank { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.ranking-list { padding: 0 20px; }
.ranking-list ol { list-style: none; padding: 0; margin: 0; }
.ranking-list__row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}
.ranking-list__row:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
}
.ranking-list__row:hover .ranking-list__thumb { transform: scale(1.04); }
.ranking-list__thumb { transition: transform 0.3s ease; }
.ranking-list__rank {
  font-family: var(--font-price);
  font-size: 22px;
  color: var(--text-muted);
  width: 40px; text-align: center;
}
.ranking-list__link { display: flex; gap: 14px; flex: 1; align-items: center; color: inherit; }
.ranking-list__thumb {
  width: 240px; height: 135px;
  object-fit: cover; border-radius: 4px;
  background: var(--bg-tertiary);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .ranking-list__thumb { width: 160px; height: 90px; }
}
.ranking-list__meta { flex: 1; min-width: 0; }
.ranking-list__title { margin: 0 0 4px; font-size: 13px; font-weight: 500; }
.ranking-list__sub { margin: 0; color: var(--text-secondary); font-size: 11px; display: flex; gap: 8px; flex-wrap: wrap; }
.ranking-list__price { color: var(--accent); font-family: var(--font-price); font-weight: 600; }

/* search page */
.search-page__form {
  display: flex; max-width: 600px;
  margin: 16px 20px 24px;
}
.search-page__form input {
  flex: 1; background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 10px 0 0 10px;
  outline: none;
}
.search-page__form button {
  background: var(--accent); color: #fff; border: 0;
  padding: 0 20px;
  border-radius: 0 10px 10px 0;
  font-weight: 600;
}

/* static pages */
.static-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.static-page h1 { font-size: 24px; font-weight: 500; margin-bottom: 20px; }
.static-page h2 { font-size: 18px; font-weight: 500; margin: 32px 0 16px; }
.static-page p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.static-page ul { color: var(--text-secondary); margin: 0 0 12px 1.4em; }

.safe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.safe-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.safe-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.safe-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.safe-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; font-size: 18px;
}
.safe-card-icon.green { background: #0f2a1e; color: var(--safe-green); }
.safe-card-icon.blue { background: #0f1a2a; color: var(--safe-blue); }
@media (max-width: 768px) { .safe-grid { grid-template-columns: 1fr; } }

.contact-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px; text-align: center;
}
.contact-block__mail { font-size: 18px; margin: 0 0 16px; }
.contact-block__mail a { color: var(--accent); }
.contact-block__note { color: var(--text-muted); font-size: 11px; margin: 0; }

/* --- サブカテゴリチップ --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 20px;
}
.cat-chip {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.cat-chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.cat-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.cat-count {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}
.cat-chip.sale { border-color: rgba(255, 204, 0, 0.3); }
.cat-chip.sale .cat-count { color: var(--accent-sale); font-weight: 500; }
.cat-chip.sale:hover { border-color: var(--accent-sale); }

@media (max-width: 768px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px;
  }
  .cat-chip { padding: 12px; }
  .cat-name { font-size: 13px; }
}
