/* =============================================================
   でびゅガル - debut-girl.com スタイル
   白ピンク高級感 / ファッション誌風
   ============================================================= */

:root {
  /* ベース */
  --bg-primary:     #faf7f5;
  --bg-secondary:   #fff;
  --bg-tertiary:    #f3ece8;
  --bg-hero:        linear-gradient(180deg, #fff 0%, #fde8ef 40%, #f4e6fb 100%);

  /* テキスト (コントラスト強化) */
  --text-primary:   #251418;
  --text-secondary: #7a6068;
  --text-muted:     #b0989f;

  /* アクセント (彩度UP) */
  --accent:         #de3b76;
  --accent-hover:   #ec5a8e;
  --accent-light:   #fde8ee;
  --accent-text:    #b8275a;

  /* サブカラー */
  --sub-blue:       #8ba8e6;
  --sub-blue-light: #e5eefb;
  --sub-lavender:   #aa90e0;
  --sub-lavender-light: #efe8fb;

  /* ボーダー (やや濃く) */
  --border:         #e8dcd6;
  --border-hover:   #d8b8c4;
  --border-card:    #ecd9d4;

  /* セール */
  --sale:           #e84040;
  --sale-bg:        #fef0f0;
  --safe-green:     #1D9E75;

  /* フォント */
  --font-main:    'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-heading: 'Noto Serif JP', serif;
  --font-logo:    'Dela Gothic One', cursive;
  --font-price:   'Helvetica Neue', Arial, sans-serif;

  /* サイズ */
  --text-xs: 11px; --text-sm: 12px; --text-base: 14px; --text-md: 15px;
  --text-lg: 16px; --text-xl: 20px; --text-2xl: 24px; --text-3xl: 32px;

  /* 角丸 */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 14px; --radius-xl: 20px;
  --radius-pill: 9999px; --radius-circle: 50%;

  --header-h: 60px;
}

/* リセット */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-size: 16px; font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; letter-spacing: 0.04em; margin: 0; }

/* =============================================================
   開示バー / 年齢確認
   ============================================================= */
.disclosure-bar {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
  padding: 6px 16px;
  line-height: 1.4;
}

.age-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250, 248, 246, 0.96);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.age-overlay[hidden] { display: none; }
.age-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(232, 98, 140, 0.15);
  border: 1px solid var(--border-card);
}
.age-icon { font-size: 48px; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.age-modal h2 { font-size: 22px; margin-bottom: 12px; }
.age-modal p { color: var(--text-secondary); font-size: var(--text-base); margin: 0 0 18px; }
.age-checks { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.age-checks li { padding: 6px 0; color: var(--text-secondary); font-size: var(--text-sm); }
.age-confirm-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-size: var(--text-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: background 0.2s;
}
.age-confirm-btn:hover { background: var(--accent-hover); }
.age-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 12px; }

/* =============================================================
   ヘッダー
   ============================================================= */
.nav-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s, background 0.2s;
}
.nav-header.scrolled {
  box-shadow: 0 2px 12px rgba(232, 98, 140, 0.08);
  background: rgba(255, 255, 255, 0.98);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-logo);
  font-size: 22px;
  color: var(--accent-text);
  text-decoration: none;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.logo:hover { color: var(--accent-text); }
.logo-text { font-family: var(--font-logo); }
.logo-heart { color: var(--accent); animation: heartBeat 2s ease-in-out infinite; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--accent-light); color: var(--accent-text); }
.nav-link.is-active { background: var(--accent-light); color: var(--accent-text); font-weight: 500; }
.nav-search-btn {
  background: var(--accent-light);
  color: var(--accent-text);
  width: 36px; height: 36px;
  border-radius: var(--radius-circle);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-search-btn:hover { background: var(--accent); color: #fff; }
.nav-burger { display: none; background: transparent; border: none; padding: 8px; flex-direction: column; gap: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(232, 98, 140, 0.1);
    z-index: 999;
    gap: 4px;
  }
  .nav-burger { display: flex; }
  .nav-inner { gap: 12px; }
}

.dev-banner {
  background: #fef9e8;
  color: #8a6d10;
  padding: 8px 16px;
  font-size: var(--text-sm);
  text-align: center;
}
.dev-banner__pill {
  background: #f0c040;
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  margin-right: 6px;
}

/* =============================================================
   レイアウト
   ============================================================= */
.main-content { min-height: 60vh; padding-bottom: 60px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section-alt { background: var(--bg-tertiary); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin: 0 0 24px;
  letter-spacing: 0.04em;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--sub-lavender));
  border-radius: 2px;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head .section-title { margin-bottom: 0; }
.section-more { font-size: var(--text-sm); color: var(--accent-text); }

.page-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin: 32px 0 12px;
  letter-spacing: 0.04em;
}
.page-sub { color: var(--text-secondary); margin: 0 0 24px; }
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

/* =============================================================
   ヒーロー
   ============================================================= */
.hero {
  background: var(--bg-hero);
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hero-catch {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.hero-sub { color: var(--text-secondary); margin: 0 0 32px; }

@media (max-width: 768px) {
  .hero { padding: 36px 0 32px; }
  .hero-title { font-size: 26px; }
}

/* =============================================================
   反転カードスライダー
   ============================================================= */
.flip-slider {
  overflow-x: auto;
  padding: 16px 0 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.flip-slider::-webkit-scrollbar { display: none; }
.flip-slider-track {
  display: flex;
  gap: 20px;
  padding: 0 20px;
}
/* PC: 3枚センター固定 */
@media (min-width: 1024px) {
  .flip-slider-track { justify-content: center; }
}
@media (max-width: 1023px) {
  .flip-slider-track { justify-content: flex-start; }
}
.flip-card {
  /* PC ~3枚 / tablet ~2.5枚 / SP ~1.5枚 */
  width: clamp(220px, 30vw, 340px);
  perspective: 1200px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  /* 縦長ポートレート 3:4 強め */
  aspect-ratio: 3 / 4;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(232, 98, 140, 0.18);
}
.flip-card-front {
  background: linear-gradient(135deg, #fdf4f8, #f0e8ff);
  border: 1px solid #f0dce4;
}
.flip-card-back {
  transform: rotateY(180deg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
}
.flip-portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top; /* 顔が上の方にある率が高いので上寄せ */
  display: block;
}
.flip-portrait-fallback {
  background: linear-gradient(135deg, #fdf4f8, #f4e8fc);
  display: flex; align-items: center; justify-content: center;
}
.flip-portrait-fallback .actress-initial {
  font-family: var(--font-logo);
  font-size: 90px;
  color: var(--accent);
}
.flip-package {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.flip-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(58,42,48,0.4) 50%, rgba(58,42,48,0.85) 100%);
  color: #fff;
}
.flip-date {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.9;
  margin-bottom: 4px;
}
.flip-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
  .flip-name { font-size: 18px; }
}
.flip-back-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

/* =============================================================
   女優カード
   ============================================================= */
.actress-grid {
  display: grid;
  /* 長方形の枠に高さだけ合わせて両脇開く: auto-fit で幅が伸び縮みする */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .actress-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
}

.actress-pop {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  perspective: 1200px;
}
.actress-flip {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
}
.actress-flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
}
.actress-pop:hover .actress-flip-inner { transform: rotateY(180deg); }
.actress-pop.flipped .actress-flip-inner { transform: rotateY(180deg); }
.actress-flip-front,
.actress-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  box-shadow: 0 6px 20px rgba(232, 98, 140, 0.10);
  transition: box-shadow 0.2s;
}
.actress-pop:hover .actress-flip-front,
.actress-pop:hover .actress-flip-back {
  box-shadow: 0 14px 32px rgba(232, 98, 140, 0.18);
}
.actress-flip-back { transform: rotateY(180deg); }

.actress-portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.actress-portrait-fallback {
  background: linear-gradient(135deg, var(--accent-light), var(--sub-lavender-light));
  display: flex; align-items: center; justify-content: center;
}
.actress-portrait-fallback .actress-initial {
  font-family: var(--font-logo);
  font-size: 72px;
  color: var(--accent);
}
.actress-package {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.actress-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(58,42,48,0.4) 50%, rgba(58,42,48,0.85) 100%);
  color: #fff;
}
.actress-debut {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.92;
  margin-bottom: 4px;
}
.actress-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
@media (max-width: 480px) {
  .actress-name { font-size: 16px; }
}

.actress-back-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.actress-initial {
  font-family: var(--font-logo);
  font-size: 28px;
  color: var(--accent);
}
.actress-initial-large {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--sub-lavender-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-logo);
  font-size: 80px;
  color: var(--accent);
  margin: 0 auto;
}
.actress-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(232,98,140,0.3);
}

/* =============================================================
   作品カード
   ============================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.card-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.card-row > .work-card { flex: 0 0 200px; width: 200px; }

.work-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(232, 98, 140, 0.12);
  border-color: var(--border-hover);
}
.card-img {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 36px;
  background: linear-gradient(135deg, var(--accent-light), var(--sub-lavender-light));
}
.rank-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-logo);
  font-size: var(--text-sm);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.sale-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--sale);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.fav-btn {
  position: absolute; bottom: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--accent);
  border: 1px solid var(--border-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.fav-btn:hover { background: var(--accent); color: #fff; transform: scale(1.1); }
.fav-btn.is-fav { background: var(--accent); color: #fff; }

.card-info { padding: 12px; }
.card-title {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--font-main);
}
.card-meta { font-size: var(--text-xs); color: var(--text-secondary); margin: 0 0 6px; }
.card-price { font-family: var(--font-price); font-size: var(--text-sm); margin: 0; }
.price-original { color: var(--text-muted); text-decoration: line-through; margin-right: 6px; font-size: var(--text-xs); }
.price-sale { color: var(--sale); font-weight: 600; }
.price-normal { color: var(--text-primary); }

/* =============================================================
   チップ
   ============================================================= */
.chip-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.chip {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: var(--accent-light); color: var(--accent-text); border-color: var(--accent); }
.chip-more { color: var(--accent-text); font-weight: 500; }
.chip-grid-large .chip { padding: 12px 22px; font-size: var(--text-base); }

/* =============================================================
   CTAボタン
   ============================================================= */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232, 98, 140, 0.2);
}
.btn-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 98, 140, 0.28);
}
.btn-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-cta-large { padding: 18px 40px; font-size: var(--text-lg); }
.btn-cta .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}
.cta-bottom { text-align: center; padding: 24px 16px; }

.share-btn-x {
  display: inline-flex; align-items: center;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  text-decoration: none;
  margin-left: 8px;
}
.share-btn-x:hover { background: #333; color: #fff; }
.fav-toggle {
  background: var(--bg-secondary);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  transition: background 0.15s, color 0.15s;
}
.fav-toggle:hover, .fav-toggle.is-fav { background: var(--accent); color: #fff; }

/* =============================================================
   ピックアップ
   ============================================================= */
.pickup-box {
  text-align: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #fdf4f8, #f4f0fd);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
}
.pickup-result { margin-top: 24px; perspective: 1000px; }
.pickup-result.spinning .pickup-link { animation: pickupSpin 1s ease-in-out; }
.pickup-result.revealed .pickup-link { animation: bounceIn 0.5s ease; }
@keyframes pickupSpin {
  0%   { transform: rotateY(0deg) scale(1); }
  50%  { transform: rotateY(360deg) scale(0.9); }
  100% { transform: rotateY(720deg) scale(1); }
}
.pickup-link {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  max-width: 320px;
  transform-style: preserve-3d;
}
.pickup-img { width: 100%; max-width: 240px; border-radius: var(--radius-md); margin: 0 auto 8px; }
.pickup-title { font-size: var(--text-sm); color: var(--text-primary); }

/* =============================================================
   ランキング
   ============================================================= */
.period-tabs { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.period-tab {
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.period-tab:hover { color: var(--accent-text); }
.period-tab.is-active { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 500; }

.ranking-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 768px) { .ranking-top { grid-template-columns: repeat(1, 1fr); } }
.rank-big .work-card { transform: scale(1); }
.rank-big .card-img { aspect-ratio: 16 / 10; }
.ranking-list { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.rank-item {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 59, 118, 0.12);
  border-color: var(--border-hover);
}
.rank-num {
  font-family: var(--font-logo);
  font-size: 36px;
  color: var(--accent);
  min-width: 72px;
  text-align: center;
  line-height: 1;
}
.rank-row { display: flex; gap: 18px; align-items: center; flex: 1; text-decoration: none; color: inherit; }
.rank-thumb {
  /* 1〜3位の work_card と同じ 16:11 landscape に揃える */
  width: 280px;
  aspect-ratio: 16 / 11;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 20, 24, 0.08);
}
.rank-info { flex: 1; min-width: 0; }
.rank-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-meta { font-size: var(--text-sm); color: var(--text-secondary); }
@media (max-width: 600px) {
  .rank-thumb { width: 160px; aspect-ratio: 16 / 11; height: auto; }
  .rank-num { font-size: 22px; min-width: 44px; }
  .rank-title { font-size: var(--text-base); }
  .rank-item { gap: 12px; padding: 12px 8px; }
}

/* =============================================================
   ソートタブ / ツールバー
   ============================================================= */
.list-toolbar { margin: 16px 0 24px; }
.sort-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.sort-tab {
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: var(--text-sm);
}
.sort-tab.is-active { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 500; }

.archive-strip { margin: 0 0 20px; }
.archive-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.archive-pill {
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--text-primary);
  text-decoration: none;
}
.archive-pill:hover { background: var(--accent-light); color: var(--accent-text); }
.archive-pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.archive-pill-cal {
  margin-left: auto;
  background: var(--accent-light);
  color: var(--accent-text);
  border-color: var(--border-hover);
  font-weight: 500;
}
.archive-pill-cal:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* =============================================================
   パンくず / ページネーション
   ============================================================= */
.breadcrumb { max-width: 1200px; margin: 16px auto 0; padding: 0 20px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--text-xs); color: var(--text-secondary); }
.breadcrumb li::after { content: '›'; margin-left: 6px; color: var(--text-muted); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); }

.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 32px 0; }
.page-link {
  padding: 8px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
}
.page-link:hover { background: var(--accent-light); color: var(--accent-text); border-color: var(--accent); }
.page-link.is-current { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-ellipsis { padding: 8px 4px; color: var(--text-muted); }

/* =============================================================
   作品詳細 / 女優詳細
   ============================================================= */
.work-detail, .actress-detail { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.work-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 32px 0;
}
@media (max-width: 768px) { .work-main { grid-template-columns: 1fr; gap: 20px; } }
.work-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-tertiary); }
.work-img img { width: 100%; height: auto; }
.work-title { font-family: var(--font-heading); font-size: var(--text-2xl); margin: 0 0 12px; line-height: 1.4; }
.work-actress { color: var(--text-secondary); margin: 0 0 16px; }
.work-actress a { color: var(--accent-text); margin-right: 8px; }
.work-meta { display: grid; grid-template-columns: 80px 1fr; gap: 6px 16px; margin: 0 0 24px; font-size: var(--text-sm); }
.work-meta dt { color: var(--text-secondary); }
.work-meta dd { margin: 0; }
.tag {
  display: inline-block;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  margin: 2px 4px 2px 0;
  text-decoration: none;
}
.tag:hover { background: var(--accent-light); color: var(--accent-text); }

.actress-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0;
}
@media (max-width: 768px) { .actress-header { grid-template-columns: 1fr; gap: 20px; text-align: center; } }
.actress-portrait { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; background: var(--bg-tertiary); }
.actress-portrait img { width: 100%; height: 100%; object-fit: cover; }
.actress-h1 { font-family: var(--font-heading); font-size: var(--text-3xl); margin: 0 0 8px; letter-spacing: 0.04em; }
.actress-debut-month { color: var(--accent-text); font-weight: 500; margin: 0 0 16px; }
.actress-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

.debut-work {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: 24px;
}
@media (max-width: 768px) { .debut-work { grid-template-columns: 1fr; } }
.debut-img { border-radius: var(--radius-md); overflow: hidden; }
.debut-title { font-family: var(--font-heading); font-size: var(--text-xl); margin: 0 0 16px; }
.debut-meta { display: grid; grid-template-columns: 80px 1fr; gap: 6px 16px; margin: 0 0 20px; font-size: var(--text-sm); }
.debut-meta dt { color: var(--text-secondary); }
.debut-meta dd { margin: 0; }

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 768px) { .sample-grid { grid-template-columns: repeat(3, 1fr); } }
.sample-grid img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 16/11; object-fit: cover; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* =============================================================
   カレンダー
   ============================================================= */
.cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.cal-current { font-family: var(--font-heading); font-size: var(--text-xl); }
.cal-nav-link { color: var(--text-primary); text-decoration: none; font-size: var(--text-sm); }
.cal-nav-link:hover { color: var(--accent-text); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--border);
  padding: 1px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cal-head {
  background: var(--bg-tertiary);
  padding: 8px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}
.cal-cell {
  background: var(--bg-secondary);
  min-height: 80px;
  padding: 8px;
  cursor: default;
  position: relative;
}
.cal-cell.cal-empty { background: var(--bg-tertiary); }
.cal-cell.has-debut { cursor: pointer; }
.cal-cell.has-debut:hover { background: var(--accent-light); }
.cal-cell.is-selected { background: var(--accent-light); outline: 2px solid var(--accent); }
.cal-day { font-size: var(--text-sm); color: var(--text-primary); }
.cal-dot { color: var(--accent); font-size: 10px; margin-right: 2px; }
.cal-extra { font-size: 10px; color: var(--text-secondary); margin-left: 4px; }
.cal-day-list-wrap {
  margin-top: 32px;
  scroll-margin-top: 80px; /* sticky-nav 分のオフセット */
}
.cal-day-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(222, 59, 118, 0.08);
  animation: dayBlockReveal 0.4s ease-out;
}
@keyframes dayBlockReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cal-day-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin: 0 0 16px;
  color: var(--accent-text);
  display: flex; align-items: center; gap: 8px;
}
.cal-day-title::before { content: '♡'; color: var(--accent); }
.cal-day-back {
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: var(--text-xs);
  border: none;
  cursor: pointer;
}
.cal-day-back:hover { background: var(--accent-light); color: var(--accent-text); }
.cal-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 16px 0 0;
}

/* 日付クリック時のトースト通知 (画面右下に出現) */
.cal-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 14px 12px 16px;
  box-shadow: 0 12px 32px rgba(37, 20, 24, 0.18);
  z-index: 9500;
  font-size: var(--text-sm);
  max-width: calc(100vw - 32px);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.cal-toast.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cal-toast-icon { color: var(--accent); font-size: 18px; line-height: 1; }
.cal-toast-msg { color: var(--text-primary); flex: 1; min-width: 0; }
.cal-toast-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.cal-toast-btn:hover { background: var(--accent-hover); }
.cal-toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.cal-toast-close:hover { color: var(--text-primary); }

@media (max-width: 600px) {
  .cal-toast {
    right: 8px; bottom: 8px; left: 8px;
    padding: 10px 12px;
  }
  .cal-toast-msg { font-size: var(--text-xs); }
}
.cal-cell.is-selected {
  background: var(--accent);
  outline: none;
}
.cal-cell.is-selected .cal-day,
.cal-cell.is-selected .cal-dot,
.cal-cell.is-selected .cal-extra { color: #fff; }

@media (max-width: 600px) {
  .cal-cell { min-height: 56px; padding: 4px; font-size: 11px; }
  .cal-head { padding: 6px 0; font-size: var(--text-xs); }
}

/* =============================================================
   検索 / お問い合わせ
   ============================================================= */
.search-form {
  display: flex; gap: 8px;
  max-width: 600px;
  margin: 16px 0 24px;
}
.search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 16px;
}
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.search-form button {
  background: var(--accent); color: #fff;
  padding: 12px 24px;
  border: none; border-radius: var(--radius-md);
  font-size: var(--text-md); font-weight: 500;
}
.search-count { color: var(--text-secondary); margin: 0 0 16px; font-size: var(--text-sm); }

.contact-form { max-width: 600px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: var(--text-sm); margin-bottom: 4px; color: var(--text-primary); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.form-row .req { color: var(--sale); }
.form-error { color: var(--sale); font-size: var(--text-xs); margin-top: 4px; }
.form-success { background: #e8f8ee; color: var(--safe-green); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }

.static-page { padding: 32px 20px; max-width: 800px; }
.static-page h2 { font-family: var(--font-heading); font-size: var(--text-xl); margin: 32px 0 12px; color: var(--accent-text); }
.static-page p { line-height: 1.8; margin: 0 0 12px; }
.static-page ul { padding-left: 1.4em; line-height: 1.8; }

/* =============================================================
   広告枠
   ============================================================= */
.ad-slot {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  margin: 24px 0;
}
.ad-label { font-size: var(--text-xs); }

/* =============================================================
   フッター
   ============================================================= */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
.footer-logo {
  font-family: var(--font-logo);
  font-size: 22px;
  color: var(--accent-text);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 16px; }
.footer-links a { color: var(--text-primary); text-decoration: none; font-size: var(--text-sm); padding: 6px 0; }
.footer-links a:hover { color: var(--accent-text); }
.footer-credit { padding: 24px 0; border-top: 1px solid var(--border); margin-top: 24px; }
.footer-credit p { font-size: 11px; color: var(--text-secondary); line-height: 1.6; margin: 12px 0 0; }
.api-badge { margin-bottom: 8px; }
.footer-copy { color: var(--text-muted); font-size: var(--text-xs); margin-top: 16px; }

/* =============================================================
   スクロールインジケーター
   ============================================================= */
.scroll-wrapper { position: relative; }
.scroll-wrapper.scrolled-start::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 12px;
  width: 24px;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
  pointer-events: none; z-index: 1;
}
.scroll-wrapper.scrolled-end::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 12px;
  width: 24px;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
  pointer-events: none; z-index: 1;
}
.section-alt .scroll-wrapper.scrolled-start::before { background: linear-gradient(90deg, var(--bg-tertiary), transparent); }
.section-alt .scroll-wrapper.scrolled-end::after   { background: linear-gradient(-90deg, var(--bg-tertiary), transparent); }

/* =============================================================
   アニメーション (カードバウンス・ハート等)
   ============================================================= */
.card-bounce {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
}
.card-bounce.visible {
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.85) translateY(20px); }
  60%  { opacity: 1; transform: scale(1.04) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.heart-particles {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}
.heart-particle {
  position: absolute; top: -30px;
  color: #f0a0c0;
  animation: heartFall linear forwards;
}
@keyframes heartFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.burst-heart {
  position: fixed;
  color: #f0a0c0;
  pointer-events: none;
  z-index: 100;
  animation: burstAnim 0.8s ease-out forwards;
}
@keyframes burstAnim {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.5); opacity: 0; }
}

.cursor-sparkle {
  position: fixed; pointer-events: none;
  z-index: 9997;
  color: #f0c860;
  animation: sparkleFade 0.5s ease-out forwards;
}
@keyframes sparkleFade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(180deg); }
}

img.lazy { filter: blur(8px); transition: filter 0.5s ease; }
img.lazy.loaded { filter: blur(0); }

/* ローディングハート (仕様7-5) */
.loading-heart {
  display: inline-block;
  width: 32px; height: 32px;
  position: relative;
  vertical-align: middle;
  animation: heartSpin 1s ease-in-out infinite;
}
.loading-heart::before {
  content: '♡';
  font-size: 28px;
  color: var(--accent);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
@keyframes heartSpin {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(90deg) scale(0.9); }
  50%  { transform: rotate(180deg) scale(1); }
  75%  { transform: rotate(270deg) scale(0.9); }
  100% { transform: rotate(360deg) scale(1); }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .flip-card:hover .flip-card-inner { transform: none; }
}
