/* =========================
   MOVIE
========================= */

.movie-section {
   padding: 50px 8% 30px;
}

.movie-swiper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.swiper {
  overflow: visible;
  --swiper-pagination-color: #ff6a00;
  --swiper-pagination-bullet-inactive-color: #333;
  --swiper-pagination-bullet-inactive-opacity: 1;
}

/* スライド */
.swiper-slide {
  position: relative; /* 必須 */
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

/* 真ん中のスライド */
.swiper-slide-active {
  opacity: 1;
}

/* 画像 */
.thumb {
  width: 95%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  transition: transform 0.8s ease;

  /* 再生ボタン中央配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* タイトル */
.movie-name {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
}

/* 再生ボタン */
.play-btn {
  width: 60px;           /* PC用 */
  height: 60px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
  position: relative;
}

/* 三角形 */
.play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 18px solid black;   /* 三角の幅 */
  border-top: 10px solid transparent; /* 上下の余白 */
  border-bottom: 10px solid transparent;
  
  /* 丸の中央に寄せる */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* =========================
   ポップアップ
========================= */
.video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

/* 動画枠 */
.popup-inner {
  width: 70%;           /* PCは70% */
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: visible;    /* クローズボタンはみ出し許可 */
}

/* iframe */
.popup-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* クローズボタン */
.popup-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* =========================
   PAGINATION（棒固定）
========================= */

.swiper-pagination {
  position: absolute;
  left: 0;
  text-align: left;
}

.swiper-pagination-bullet {
  width: 40px !important;
  height: 4px !important;
  border-radius: 3px !important;
  background: #333 !important;
  opacity: 1 !important;
  margin-right: 10px;
}

.swiper-pagination-bullet-active {
  background: #ff6a00 !important;
  width: 70px !important;
}

/* =========================
   レスポンシブ（スマホ）
========================= */
@media (max-width: 768px) {
  /* ポップアップ幅 */
  .popup-inner {
    width: 90%;
  }

  /* クローズボタン */
  .popup-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
    top: -10px;
    right: -10px;
  }

  /* 再生ボタン */
  .play-btn {
    width: 50px;
    height: 50px;
  }

  .play-btn::after {
    border-left: 14px solid black;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .movie-name {
    font-size: 16px;
  }

}


/* =========================
   タブレット対応
========================= */

@media (min-width: 769px) and (max-width: 1024px) {
  /* MOVIE スライド */
  .thumb {
    width: 90%;
  }
  .movie-name {
    font-size: 18px;
  }
}