/* 広告 */
.pr-notice {
  font-size: 0.85em;
  color: #888;
  margin-top: 20px;
  text-align: center;
}
.custom-banner {
  text-align: center;
  margin: 30px 0;
}

.custom-ad-top,
.custom-ad-middle,
.custom-ad-bottom {
  text-align: center;
  margin: 30px 0;
  font-size: 0.9em;
  color: #666;
}

.custom-ad-middle {
  text-align: center;
  margin: 30px 0;
}
.custom-ad-middle iframe {
  max-width: 100%;
  height: auto;
  aspect-ratio: 640 / 200;
}

/* サムネイル上のカテゴリ（非表示） */
.entry-card .cat-label {
  display: none;
}

/* 記事メタ情報内のカテゴリ */
.entry-card-category-meta {
  display: inline-block;
  background: #ddd;
  padding: 3px 5px;
  border-radius: 3px;
  margin-top: 8px;
  margin-right: 5px;
  font-size: 14px;
  color: #333;
}

.video-container {
  max-width: 900px;
  width: auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.video-wrapper video {
  width: 100%;
  display: block;
  /* 再生前はクリック禁止、再生後に許可 */
  pointer-events: none;
}

.video-wrapper.playing video {
  pointer-events: auto;
}

.play-button-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.play-icon {
  font-size: 60px;
  color: white;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 20px;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}

.play-button-overlay:hover .play-icon {
  transform: scale(1.1);
}

.video-wrapper.playing .play-button-overlay {
  display: none;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.gallery-image {
  width: 120px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.1);
}

/* 商品ページリンクボタン */
.buy-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.buy-button:hover {
  background-color: #0056b3;
}

/* モーダルウィンドウ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* 🔷 Apex作品ページ専用ギャラリー（画像が小さい対策） */
.apex-gallery .gallery {
  display: flex;
  flex-wrap: wrap; /* 🔁 折り返す */
  justify-content: center; /* 中央揃え */
  gap: 6px 10px; /* 縦横間隔 */
  padding: 0 10px;
  overflow: visible; /* 🔧 横スクロールバーを出さない */
}

.apex-gallery .gallery-image-container {
  flex: 0 0 auto;
  padding: 3px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apex-gallery .gallery-image {
  width: 90px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 🔷 Apexギャラリー矢印ボタン */
.apex-scroll-left,
.apex-scroll-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: none; /* ✅ 初期非表示：JSで必要時のみ表示 */
  transition: background 0.3s;
}

.apex-scroll-left:hover,
.apex-scroll-right:hover {
  background: rgba(0, 0, 0, 0.6);
}

.apex-scroll-left {
  left: 0;
}
.apex-scroll-right {
  right: 0;
}

/* Apexギャラリーのラッパーは relative にして矢印を配置 */
.apex-gallery-wrapper {
  position: relative;
  margin: 20px auto;
  padding: 0 30px; /* 矢印分の余白確保 */
  max-width: 1000px;
  box-sizing: border-box;
}

/* モバイル最適化 */

@media (max-width: 768px) {
  .gallery-image {
    width: 90px;
  }
  .modal-content {
    max-width: 95%;
    max-height: 80%;
  }

  /* APEX用 */
  .apex-gallery .gallery-image {
    width: 72px;
  }
  .apex-gallery .gallery {
    gap: 4px 8px;
  }
}

.category-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #fff;
  transition: transform 0.3s;
}

.category-entry:hover {
  transform: scale(1.05);
}

.category-entry-thumbnail {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

/* 女優リンクのスタイル調整 */
a.actress-link {
  text-decoration: none; /* アンダーライン消す */
  font-weight: bold; /* 太字 */
  font-size: 20px; /* 文字サイズ（調整OK） */
  color: #f70dd7; /* お好みのカラー */
  margin-right: 5px; /* 間隔 */
}

a.actress-link:hover {
  text-decoration: underline; /* ホバー時はアンダーライン出してもOK */
  color: #0073aa; /* ホバーカラー（Cocoonの青っぽいやつ） */
}

/* Font Awesome を無効化（必要に応じて） */
.star::before,
.star-half-o::before,
.star-o::before {
  content: none;
  font-family: inherit;
}

/* 通常の星（★） */
.star {
  color: gold;
  font-size: 1.4em;
  font-family: inherit;
}

/* 空の星（☆） */
.star.empty {
  color: #ccc;
  font-size: 1em; /* 少しだけ小さく */
  transform: translateY(1px); /* 微調整で縦位置を合わせる */
}

.genre-link {
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
  margin-right: 5px;
}
.genre-link:hover {
  text-decoration: underline;
}
.genre-text {
  color: #555;
  margin-right: 5px;
}

.custom-prev-thumb,
.custom-next-thumb {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.gallery-container {
  margin: 30px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.gallery-image-container {
  padding: 5px;
  transition: transform 0.3s ease;
}

.gallery-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.gallery-slider .gallery-image-container {
  display: flex;
  align-items: center; /* 上下中央揃え */
  justify-content: center; /* 横も中央揃え */
  height: 240px; /* ギャラリー全体の高さを統一 */
  overflow: hidden;
  padding: 5px;
}

.gallery-slider .gallery-image {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* 最近の投稿ウィジェット共通スタイル */
.custom-recent-posts,
.custom-thumbnail-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-thumbnail-title {
  font-size: 13px;
  line-height: 1.4;
  max-height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  white-space: normal;
}

/* 投稿アイテムのレイアウト */
.recent-post-item,
.custom-post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.recent-post-item a,
.custom-post-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: 100%;
}

/* サムネイル画像のスタイル */
.recent-thumb,
.custom-thumbnail-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-item a:hover .recent-thumb,
.custom-post-item a:hover .custom-thumbnail-img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* タイトルのスタイル */
.recent-post-title,
.custom-thumbnail-title {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* タイトルを3行まで表示 */
.custom-thumbnail-title {
  max-height: 4.2em; /* 1行の高さ × 3行 */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 3行まで表示 */
  -webkit-box-orient: vertical;
  white-space: normal;
}

/* ホバー時のタイトル色変更 */
.recent-post-item a:hover .recent-post-title,
.custom-post-item a:hover .custom-thumbnail-title {
  color: #ff3366;
}

.custom-thumbnail-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.custom-post-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: 100%;
}

.custom-thumbnail-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.custom-thumbnail-title {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* fanza-api */
.fanza-video-link-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 20px;
  background-color: #000;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.fanza-video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.fanza-video-link-wrapper:hover .fanza-video-thumbnail {
  transform: scale(1.03);
}

.fanza-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
  cursor: pointer;
}

.fanza-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.fanza-video-link-wrapper:hover .fanza-play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.fanza-play-icon {
  font-size: 52px;
  color: white;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

.fanza-video-note {
  font-size: 0.9em;
  color: #666;
}
