/* 全体設定：レスポンシブ対応 */
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}

/* 女優一覧グリッド */
.actress-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  justify-content: center;
}
.actress-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  width: 180px;
  text-align: center;
  background-color: #fafafa;
}
.actress-card img {
  border-radius: 4px;
}

/* 女優詳細 */
.actress-detail {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.actress-profile {
  flex: 1;
}

/* 作品一覧グリッド */
.works-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.work-card {
  width: 220px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  background-color: #f9f9f9;
  text-align: center;
}
.work-card img {
  border-radius: 4px;
  margin-bottom: 8px;
}

/* 作品詳細 */
.work-detail {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.work-info {
  flex: 1;
}

/* 小さい女優カード */
.actress-card-small {
  width: 100px;
  text-align: center;
}
.actress-card-small img {
  border-radius: 6px;
}

/* 関連作品 */
.related-works {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}
.related-card {
  width: 100px;
  text-align: center;
}

/* ボタン */
.btn-affiliate {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background-color: #ff4444;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.btn-affiliate:hover {
  background-color: #cc0000;
}

/* ジャンルタグ */
.genre-tags {
  margin: 10px 0;
  text-align: center;
  flex-wrap: wrap;
}
.genre-tags a {
  display: inline-block;
  padding: 5px 10px;
  margin: 2px;
  background-color: #eee;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border: 1px solid #ccc;
  transition: 0.2s;
}
.genre-tags a:hover {
  background-color: #ddd;
}
.genre-tags a.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
.genre-tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  font-size: 0.85em;
  padding: 4px 8px;
  margin: 2px 4px;
  border-radius: 4px;
}

/* ページネーション */
.pagination {
  margin-top: 20px;
  text-align: center;
}

/* クリック数表示（任意） */
.click-count {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* 📱 スマホ向けメディアクエリ */
@media (max-width: 768px) {
  .actress-detail,
  .work-detail {
    flex-direction: column;
    align-items: center;
  }

  .actress-profile,
  .work-info {
    width: 100%;
  }

  .actress-card,
  .work-card {
    width: 100%;
    max-width: 320px;
  }

  .related-card {
    width: 45%;
  }

  .genre-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-affiliate {
    width: 100%;
    text-align: center;
  }
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #f8f8f8;
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 10px;
  }

  .main-nav.show ul {
    display: flex;
  }
}
