/*
Theme Name: ona honpo child
Template: astra
Version: 1.0
*/

body {
  background-color: #111;
  color: #f2f2f2;
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
}

/* ヘッダー */
.site-header {
  background-color: #000;
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-logo img {
  max-width: 260px;
  height: auto;
}

/* ジャンル切替ボタン */
.genre-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px auto;
  flex-wrap: wrap;
}
.genre-tabs button {
  background-color: #222;
  color: #f2f2f2;
  border: 2px solid #FFD700;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.genre-tabs button.active,
.genre-tabs button:hover {
  background-color: #FFD700;
  color: #111;
}

/* セクション見出し */
.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FFD700;
  background: linear-gradient(to right, #222, #111);
  padding: 16px 20px 16px 48px;
  margin-bottom: 24px;
  border-left: 8px solid #FF4500;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  line-height: 1.4;
}
.section-title::before {
  content: "★";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #FF4500;
  font-size: 1.5rem;
}

/* スライダー調整 */
.swiper {
  padding: 0 16px 30px;
  margin-bottom: 20px;
  overflow-x: hidden;
}
.swiper-slide {
  width: auto;
  display: flex;
  justify-content: center;
}
.swiper-pagination {
  margin-top: 20px;
  text-align: center;
  z-index: 10;
}
.swiper-pagination-bullet {
  background: #FFD700;
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: #FF4500;
}
.swiper-button-prev,
.swiper-button-next {
  color: #FFD700;
  background: rgba(0, 0, 0, 0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  top: 45%;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;
}

/* 記事カード */
.content-card {
  background-color: #1c1c1c;
  border: 1px solid #333;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  width: 160px;
}
.content-card:hover {
  transform: scale(1.03);
}
.content-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
}
.content-card h3 {
  font-size: 0.9rem;
  color: #f2f2f2;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* カード幅調整 */
@media (min-width: 1024px) {
  .content-card {
    width: 260px;
  }
}
@media (max-width: 768px) {
  .content-card {
    width: 140px;
  }
  .site-logo img {
    max-width: 180px;
  }
}

/* もっと見る */
.more-link {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.more-link a {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #111;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}
.more-link a:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  transform: translateY(-2px);
}

/* アーカイブページ用 */
.archive-av .filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-color: #111;
  z-index: 10;
  position: relative;
}
.filter-group {
  display: flex;
  flex-direction: column;
  z-index: 10;
  position: relative;
}
.filter-group label {
  color: #f2f2f2;
  margin-bottom: 0.3rem;
  font-size: 14px;
}
.filter-group select {
  height: 40px;
  font-size: 16px;
  padding: 0 0.5rem;
  border-radius: 4px;
  border: none;
  z-index: 10;
  position: relative;
}
.filter-submit button {
  height: 40px;
  font-size: 16px;
  background-color: #FFD700;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  padding: 0 1.2rem;
  cursor: pointer;
  z-index: 10;
  position: relative;
}
@media screen and (max-width: 768px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group,
  .filter-submit {
    width: 100%;
  }
}
.archive-av .av-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.av-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
}
.av-card:hover {
  opacity: 0.85;
}
.av-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.av-title {
  padding: 10px;
  color: #f2f2f2;
  font-size: 14px;
  text-align: center;
}
/* ドロップダウンが押せない対策 */
.filter-group select {
  pointer-events: auto;
  z-index: 100;
  position: relative;
  background-color: #fff;
  color: #000;
}
/* セレクトボックスの上に被ってる要素を無効化 */
.filter-form * {
  pointer-events: auto !important;
  z-index: 9999 !important;
  position: relative !important;
}

/* セレクトボックスを最前面に強制 */
.filter-group select {
  position: relative !important;
  z-index: 10000 !important;
}


/* 修正：SPで絞り込みボタンを中央に */
@media screen and (max-width: 768px) {
  .filter-submit {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
}
/* PC表示時の絞り込みボタン位置調整 */
@media (min-width: 769px) {
  .filter-submit {
    align-self: flex-end;
    margin-top: -0.8em; /* 高さをドロップダウンに合わせて調整 */
  }
}
/* AV個別ページの背景・文字色調整 */
.av-single-container {
  background-color: #111; /* ダーク背景に変更 */
  padding: 2rem;
  color: #f2f2f2;
}

/* セクション見出し */
.av-single .section-title {
  background: linear-gradient(to right, #222, #111);
  color: #FFD700;
  padding: 12px 20px;
  border-left: 6px solid #FF4500;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  position: relative;
}
.av-single .section-title::before {
  content: "★";
  position: absolute;
  left: 12px;
  color: #FF4500;
}

/* 情報リスト */
.av-meta li strong {
  color: #FFD700;
}
.av-meta li {
  margin-bottom: 0.5em;
}

/* ギャラリー画像 */
.av-gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* 関連記事 */
.av-related-posts ul.av-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1rem;
}
.av-related-posts ul.av-related-list li {
  background-color: #1c1c1c;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  width: 140px;
}
.av-related-posts ul.av-related-list li a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 0.9rem;
}
.av-related-posts ul.av-related-list li a:hover {
  color: #FFD700;
}
