
/* ============================================================
   リセット・ベーススタイル
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: #f8f9fa;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

a {
  color: #0066cc;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ============================================================
   ヘッダー
   ============================================================ */
header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header.scroll-down {
  transform: translateY(-100%);
}

header.scroll-up {
  transform: translateY(0);
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  text-align: center;
}

header h1 a {
  color: #fff;
  transition: opacity 0.2s;
}

header h1 a:hover {
  opacity: 0.9;
}

/* ナビゲーション */
header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

header nav a {
  color: #ccc;
  font-size: 0.95rem;
  padding: 8px 0;
  transition: color 0.3s;
  white-space: nowrap;
}

header nav a:hover {
  color: #e60023;
}

/* 検索フォーム */
.search-form {
  display: flex;
  align-items: center;
  width: auto;
  min-width: 250px;
}

.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 9999px;
  overflow: hidden;
  padding: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  background: transparent;
  color: #333;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 16px;
  transition: color 0.2s;
  height: 40px;
}

.search-btn:hover {
  color: #e60023;
}

.search-box:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ============================================================
   メインコンテンツ
   ============================================================ */
main {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px;
  min-height: calc(100vh - 200px);
}

section {
  margin-bottom: 40px;
}

section h2 {
  border-left: 4px solid #0066cc;
  padding-left: 12px;
  margin-bottom: 20px;
}

/* ============================================================
   カード・グリッド
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.card p {
  padding: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  flex-grow: 1;
  display: flex;
  align-items: center;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ============================================================
   ギャラリー
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery a:hover {
  transform: scale(1.05);
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   動画セクション
   ============================================================ */
.video-wrap {
  margin: 32px 0;
  text-align: center;
}

.video-wrap iframe {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

.cta-wrap {
  text-align: center;
  margin: 24px 0;
}

.btn-cta-video {
  display: inline-block;
  background: linear-gradient(135deg, #e60023 0%, #cc001f 100%);
  color: #fff;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-cta-video:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 0, 35, 0.4);
  text-decoration: none;
  color: #fff;
}

/* ============================================================
   パンくずリスト
   ============================================================ */
.breadcrumb {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: #e60023;
}

/* ============================================================
   ページネーション
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 50px 0;
  flex-wrap: wrap;
  padding: 20px;
  background: linear-gradient(to right, #f8f9fa, #fff, #f8f9fa);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  color: #0066cc;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.page-link:hover:not(.current) {
  background: #f0f7ff;
  border-color: #0066cc;
  color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.page-link.current {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: #fff;
  border-color: #0052a3;
  cursor: default;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.page-link.current:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.page-link.prev, .page-link.next {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: auto;
  padding: 8px 14px;
}

/* ============================================================
   ランキング
   ============================================================ */
.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rank {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e60023;
  text-align: center;
  line-height: 1;
}

.card {
  position: relative;
}

.card .rank {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e60023;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

/* ============================================================
   リスト
   ============================================================ */
.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 12px;
}

.post-list a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  color: inherit;
}

.post-list a:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-list img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ============================================================
   関連セクション
   ============================================================ */
.related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #ecf0f1;
}

.related h2 {
  font-size: 1.3rem;
  border-left: 4px solid #0066cc;
  padding-left: 12px;
}

/* ============================================================
   女優・レーベルリスト
   ============================================================ */
.actress-list, .label-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.actress-list li, .label-list li {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.actress-list a, .label-list a {
  display: block;
  padding: 16px;
  font-weight: 500;
  transition: all 0.3s;
}

.actress-list li:hover, .label-list li:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.actress-list a:hover, .label-list a:hover {
  background: #f0f0f0;
}

/* ============================================================
   フッター
   ============================================================ */
footer {
  background: #2c3e50;
  color: #bdc3c7;
  text-align: center;
  padding: 32px 16px;
  margin-top: 60px;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

/* ============================================================
   女優カード
   ============================================================ */
.actress-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.actress-card a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.actress-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.actress-no-photo {
  width: 100%;
  height: 220px;
  background: #ecf0f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

.actress-card-info {
  padding: 16px;
}

.actress-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2c3e50;
}

.actress-works-count {
  font-size: 0.82rem;
  color: #0066cc;
  font-weight: 500;
  margin: 0;
}

/* 女優個別ページ */
.actress-profile {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.actress-profile .actress-photo {
  width: 200px;
  height: 260px;
  border-radius: 8px;
  flex-shrink: 0;
}

.actress-profile .actress-no-photo {
  width: 200px;
  height: 260px;
  border-radius: 8px;
  flex-shrink: 0;
}

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

.actress-profile-info h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* ============================================================
   レスポンシブデザイン
   ============================================================ */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  header nav {
    gap: 16px;
  }
  
  .search-form {
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  
  header {
    padding: 12px;
  }
  
  header h1 {
    margin-bottom: 12px;
  }
  
  header nav {
    gap: 12px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
  }
  
  header nav a {
    padding: 6px 0;
    font-size: 0.85rem;
  }
  
  .search-form {
    min-width: 200px;
    margin-top: 10px;
    width: 100%;
    order: 999;
  }
  
  main {
    margin: 16px auto;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .post-list a {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 8px;
  }
  
  .ranking-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 8px;
  }
  
  .rank {
    font-size: 1.4rem;
  }
  
  .actress-list, .label-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  
  .page-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .video-container {
    padding-bottom: 56.25%;
  }
  
  .btn-cta-video {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .actress-profile {
    flex-direction: column;
  }

  .actress-profile .actress-photo,
  .actress-profile .actress-no-photo {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1rem; }
  
  header {
    padding: 12px 8px;
  }
  
  header h1 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  header nav {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding-top: 8px;
  }
  
  header nav a {
    padding: 8px 0;
    text-align: center;
    font-size: 0.8rem;
    white-space: normal;
  }
  
  .search-form {
    width: 100%;
    min-width: unset;
    margin-top: 8px;
    order: 999;
  }
  
  .search-box {
    height: 36px;
  }
  
  .search-input {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .search-btn {
    padding: 0 10px;
    height: 36px;
    font-size: 14px;
  }
  
  main {
    padding: 0 12px;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
  
  .post-list a {
    grid-template-columns: 1fr;
  }
  
  .post-list img {
    display: none;
  }
  
  .btn-cta-video {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  
  .actress-list, .label-list {
    grid-template-columns: 1fr;
  }
  
  .pagination {
    gap: 4px;
    padding: 12px;
  }
  
  .page-link {
    padding: 6px 8px;
    font-size: 0.75rem;
    min-width: 32px;
    height: 32px;
  }
}
