/*
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（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%;
}


/* ==========================================================
   表組の調整
   ========================================================== */

.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;
  }
}
