/*
Theme Name: AFFINGER Child
Template: affinger
Description: AFFINGER6 対応
Version: 20240601
*/

/* ==========================================================
   共通スタイル
   ========================================================== */
.wp-block-st-blocks-my-button a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.st-mybtn-text { flex-grow: 1; text-align: center; }
/* .st-fa { margin-left: 10px; flex-shrink: 0; }

/* ==========================================================
   レビューボックス
   ========================================================== */
.review-box {
  background: #fdf3d3;
  border-radius: 12px;
  padding: 24px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  text-align: center;
}
.review-box .review-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  padding-left: 10px;
  border-left: 5px solid #f5c518;
  margin-bottom: 8px;
}
.review-box .score { font-size: 32px; font-weight: bold; color: #222; margin-bottom: 8px; }
.review-box .stars { font-size: 20px; margin-bottom: 12px; line-height: 1; }
.review-box p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0;
  text-align: left;
}

/* ==========================================================
   投稿ページ：関連記事グリッド
   ========================================================== */
.related-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.related-post-item {
  width: calc(33.333% - 10px);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  transition: transform .3s ease;
}
.related-post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
}
.related-post-item:hover { transform: scale(1.05); }
.related-post-title {
  font-size: 12px;
  line-height: 1.2;
  margin-top: 6px;
  color: #333;
  padding-left: 5px;
}
@media(max-width:767px) {
  .related-post-item { width: calc(50% - 10px); }
  .related-post-title {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-top: 4px !important;
  }
}

/* ==========================================================
   固定ページ：ギャラリー / 動画埋め込み
   ========================================================== */
.gallery-grid-left-align {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  justify-content: center;
  align-items: flex-start;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ==========================================================
   ライトボックス & フルスクリーンギャラリー（共通1枚表示）
   ========================================================== */
.lightbox,
.fullscreen-gallery {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  padding: 20px;
}
.lightbox-content,
.fullscreen-gallery-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img,
.fullscreen-gallery img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* ―― 閉じるボタン（×） ――――――――――――― */
.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  z-index: 11000;
  transition: background 0.3s ease;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
}

/* ―― ページ送りボタン（◀ ▶）―――――――――――― */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  z-index: 11000;
  transition: all 0.3s ease;
}
.prev-btn:hover { background-color: rgba(255, 255, 255, 0.8); color: black; transform: translate(-8px, -50%); }
.next-btn:hover { background-color: rgba(255, 255, 255, 0.8); color: black; transform: translate(8px, -50%); }

/* ページ送りボタンの位置（PC） */
@media (min-width: 768px) {
  .prev-btn { left: 12px; }
  .next-btn { right: 12px; }
}

/* ページ送りボタンの位置（スマホ） */
@media (max-width: 767px) {
  .prev-btn,
  .next-btn {
    font-size: 22px;
    padding: 8px;
    border-radius: 4px;
  }
  .prev-btn { left: 8px; }
  .next-btn { right: 8px; }
}

/* ==========================================================
   本文下説明文
   ========================================================== */
.msb-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 20px;
}

/* ▶︎ iframe 埋め込み 高さ比調整 ------------------------------------ */
.msb-embed {
  position: relative;
  width: 100%;
  padding-top: 78%;
  overflow: hidden;
  margin: 20px 0;
}
.msb-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
@media (min-width: 768px) {
  .msb-embed {
    padding-top: 60%;
  }
}

/* CTAボタンの余白調整 */
.wp-block-st-blocks-my-button {
  margin-top: 24px;
}


.related-post-title a {
    text-decoration: none; /* 下線を消す */
    color: inherit; /* 親要素の文字色を引き継ぐ（基本的にリンク色になる） */
}

/* ホバー時に色を変えたいなら追加で */
.related-post-title a:hover {
    opacity: 0.8; /* 少し薄くするなど */
}


/* ==========================================================
   slic slider
   ========================================================== */

/* WP Slick Slider全部に共通して、AFFINGERの疑似矢印を消す */
.wpsisac-slick-init .slick-prev::before,
.wpsisac-slick-init .slick-next::before {
    display: none !important;
    content: none !important;
}

/** スライダーの上にスペースを作る **/
.wpsisac-slick-init {
    margin-top: 100px; /* ← この数値で調整できる！ */
}

/* ==========================================================
   下部フローティングバナー
   ========================================================== */

@media screen and (max-width: 768px) {
  #sp-fixed-banner {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 9999;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  }

  #sp-fixed-banner img {
    width: 100%;
    height: auto;
    display: block;
  }

  .close-banner {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
  }
}

@media screen and (min-width: 960px) {
  #scrollad {
    display: none !important;
  }
}


/* ==========================================================
   ★星評価部分だけスペースを詰める
   ========================================================== */

.has-st-icon-lightbulb [class*="star"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  letter-spacing: 0 !important;
}

.tight-star .st-fa {
  font-size: 1.5em !important;
  margin:0 !important;
}


/* ==========================================================
   行間を詰める
   ========================================================== */

.no-gap{
  margin:0 !important;
  line-height:1.5;
}


/* ==========================================================
   表組の調整（統合版）
   - tight-table（table）
   - movie-meta-table（table：PCのみ 3:7）
   - movie-info-card（flex：カード）
   ========================================================== */

/* ------------------------------
   1) tight-table（4:6レイアウト＆余白なし）
------------------------------ */
.tight-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tight-table th,
.tight-table td {
  padding: 4px 8px;          /* 必要最小限の余白 */
  font-size: 14px;           /* 読みやすく小さめ */
  vertical-align: top;
  text-align: left;
  border: none;
}

/* 4:6 のカラム幅指定 */
.tight-table th {
  width: 40%;
  font-weight: bold;
  background: #f9f9f9;       /* 見出しに薄グレー背景（お好みで） */
}

.tight-table td {
  width: 60%;
}


/* ------------------------------
   2) movie-meta-table（table）
   - スマホ：4:6（現状の見え方を維持）
   - PC：3:7
   - 左見出しは改行しない
   - 左見出し：薄いグレー背景＋太字
------------------------------ */
.movie-meta-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* thの改行防止（HTMLにstyleがあってもCSSでも担保） */
.movie-meta-table th {
  white-space: nowrap;
  vertical-align: middle;

  /* 追加：見出しを薄いグレー＋太字 */
  background: #f9f9f9;
  font-weight: 700;
}

/* 長いジャンルなどはtd側で適宜折り返し（はみ出し防止） */
.movie-meta-table td {
  overflow-wrap: anywhere;
}

/* デフォルト（スマホ〜タブレット）：4:6 */
.movie-meta-table th { width: 40%; }
.movie-meta-table td { width: 60%; }

/* PC（大きめ画面）だけ：3:7 */
@media (min-width: 1024px) {
  .movie-meta-table th { width: 30%; }
  .movie-meta-table td { width: 70%; }
}


/* ------------------------------
   3) movie-info-card（カードUI：flex）
   - スマホ：縦積み
   - 600px〜：横並び
------------------------------ */
.movie-info-card {
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  font-size: 14px;
  width: 100%;
  margin: 20px auto;
  overflow: hidden;
  padding: 10px 15px;
  box-sizing: border-box;
}

.movie-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding: 6px 0;
}

.movie-info-label,
.movie-info-value {
  width: 100%;
  display: block;
  color: #444;
}

.movie-info-label {
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  margin-right: 0;
}

.movie-info-value {
  margin-top: 4px;
  padding-left: 1em; /* スマホ時のインデント */
}

.paizuri-highlight {
  color: #e91e63;
  font-weight: bold;
}

@media (min-width: 600px) {
  .movie-info-row {
    flex-wrap: nowrap;
  }

  .movie-info-label,
  .movie-info-value {
    width: auto;
    display: inline;
  }

  .movie-info-label {
    margin-right: 8px;
  }

  .movie-info-value {
    margin-top: 0;
    padding-left: 0;
  }
}


/* ==========================================================
   ドロップダウンメニュー左寄せ
   ========================================================== */

@media (min-width: 768px) {
  .sub-menu {
    text-align: left !important;
  }

  .sub-menu li a {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 16px !important;
  }
}


/* ==========================================================
   冒頭テキストのテキスト装飾
   ========================================================== */

.fanza-lead a{
  text-decoration: none;   /* アンダーバー消す */
  color: #ee7948;          /* 目立つ色 */
  font-weight: 700;        /* ちょい強め（不要なら消してOK） */
}

.fanza-lead a:hover,
.fanza-lead a:focus{
  opacity: .5;            /* ホバー時に軽く反応（不要なら消してOK） */
}


/* ==========================================================
   タイトル下：広告表示＋日付
   ========================================================== */
/* 広告＋日付：確実に縦中央揃え */
.st-meta-line{
  display:flex !important;
  align-items:center !important;   /* ← 縦中央の核 */
  gap:10px;
  margin:6px 0 8px;
  font-size:13px;
}

/* 広告バッジ：ふっくら維持＆縦中央 */
.st-ad-mark{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center;
  padding:4px 10px;
  border:1px solid #ddd;
  border-radius:4px;
  line-height:1.2;
}

/* 日付側：itiran-date-singular が吐くブロック要素を全部“1行の部品”扱いにする */
.st-meta-line .st-date{
  display:flex !important;         /* ← inline-flex だと中のブロックに負けることがある */
  align-items:center !important;   /* ← ここで確実に縦中央 */
  gap:6px;
  line-height:1.2;
}

/* 日付の中にある p/div/span/time を全部 1 行化（余白ゼロ） */
.st-meta-line .st-date p,
.st-meta-line .st-date div,
.st-meta-line .st-date span,
.st-meta-line .st-date time{
  display:inline-flex !important;
  align-items:center !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1.2 !important;
}

/* 時計アイコンが沈む場合の保険 */
.st-meta-line .st-date i,
.st-meta-line .st-date svg{
  display:inline-flex !important;
  align-items:center !important;
}


/* ==========================================================
   タグを枠付きバッジ表示
   ========================================================== */
.st-tag-badges{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;          /* 左右・上下の間隔を詰める */
  margin: 8px 0 0 !important;
}

.st-tag-badges .st-tag-badge{
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;          /* アイコンと文字の間隔 */
  padding: 4px 8px !important;  /* 左右を詰める */
  border: 1px solid #ddd !important;
  border-radius: 2px !important; /* ← 四角（0でもOK） */
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  margin: 0 !important;
  background: #fff;
}

/* タグアイコン（AFFINGERのSVG想定） */
.st-tag-badges .st-tag-badge i,
.st-tag-badges .st-tag-badge svg{
  font-size: 12px;
  width: 1em;
  height: 1em;
}

/* ホバー */
.st-tag-badges .st-tag-badge:hover{
  background: #f7f7f7;
  opacity: 1 !important;
  text-decoration: none !important;
}

/* ==========================================================
   カード+テキスト
   ========================================================== */
/* スマホ（768px以下）だけ適用 */
@media screen and (max-width: 768px) {
  /* カード+テキスト */
  #st-header-under-widgets-box
  .post-card-list .post-card-title {
    font-size: 0.9em;
    line-height: 0.5 !important;
  }
}


/* ==========================================================
   検索フォーム下のテキストリンク（PC）
   ========================================================== */

/* サイドバーウィジェット内のカスタムHTML専用の調整 */
.side-topad .widget_text .search-link {
  /* 左揃え（デフォルトなので指定なしでもOK） */
  text-align: left;
  margin-top: 4px;
  margin-bottom: 16px;
  padding-left: 16px;  /* やや左にスペースを空ける */
}

/* リンクの見た目 */
.side-topad .widget_text .search-link .cta-link {
  color: #f4a583;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

/* hover時に薄くする（明るい色に） */
.side-topad .widget_text .search-link .cta-link:hover {
  color: #f8c7ad;
}


/* ==========================================================
   検索フォーム下のテキストリンク（モバイル）
   ========================================================== */
/* スマホ検索メニュー内のカスタムHTML（このウィジェット専用） */
#st_custom_html_widget-4 .search-link {
  /* 左揃え（デフォルトですが念のため） */
  text-align: left;
  margin-top: 4px;      /* 上の検索フォームとの距離を少しだけ */
  margin-bottom: 16px;  /* 下の要素とは少し離す */
  padding-left: 8px;    /* 少し左にスペース */
}

/* リンクの見た目 */
#st_custom_html_widget-4 .search-link .cta-link {
  color: #f4a583;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

/* hover時に薄くする（色を明るくする） */
#st_custom_html_widget-4 .search-link .cta-link:hover {
  color: #f8c7ad;
}
