/* ============================================================
   ke_labelleverte_slider.css
   kumamotoevent.com - 映画『美しき緑の星』特別上映案内スライダー
   ============================================================ */

.ke-movie-feature-section {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, rgba(8, 27, 49, 0.4) 0%, rgba(13, 37, 65, 0.7) 50%, rgba(8, 27, 49, 0.4) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  position: relative;
}

.ke-movie-header {
  margin-bottom: 24px;
}

.ke-movie-header-lead {
  color: #c5d3e2;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.ke-movie-slider-wrapper {
  position: relative;
  background: #061424;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

/* スライダー表示領域（比率 5:2 維持） */
.ke-movie-slider-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 2;
  background-color: #040d18;
  overflow: hidden;
}

/* スライドコンテナ */
.ke-movie-slider-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 各スライド */
.ke-movie-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
  z-index: 1;
}

.ke-movie-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* 画像リンク（全体クリック可能） */
.ke-movie-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.ke-movie-slide-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.ke-movie-slide-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #040d18;
  transition: filter 0.3s ease;
}

.ke-movie-slide-link:hover .ke-movie-slide-image-wrap img,
.ke-movie-slide-link:focus-visible .ke-movie-slide-image-wrap img {
  filter: brightness(1.04);
}

.ke-movie-slide-link:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: -2px;
}

/* 操作コントロールバー（画像外配置で作品タイトルを隠さない） */
.ke-movie-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(4, 13, 24, 0.95);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.ke-movie-slider-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ke-movie-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f0f4f8;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  padding: 0;
}

.ke-movie-ctrl-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #fff;
  transform: translateY(-1px);
}

.ke-movie-ctrl-btn:active {
  transform: translateY(0);
}

.ke-movie-ctrl-btn:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* インジケータードット */
.ke-movie-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px;
}

.ke-movie-dot {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.ke-movie-dot:hover {
  background: rgba(212, 175, 55, 0.6);
}

.ke-movie-dot.is-active {
  background: #d4af37;
  width: 36px;
}

.ke-movie-dot:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* CTAリンクボタン */
.ke-movie-cta-wrap {
  display: flex;
  align-items: center;
}

.ke-movie-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  background: linear-gradient(135deg, #d4af37 0%, #b89327 100%);
  color: #040d18 !important;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ke-movie-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.ke-movie-cta-btn:active {
  transform: translateY(0);
}

.ke-movie-cta-btn::after {
  transition: transform 0.2s ease;
}

.ke-movie-cta-btn:hover::after {
  transform: translateX(3px);
}

/* 動きを減らす設定（prefers-reduced-motion） */
@media (prefers-reduced-motion: reduce) {
  .ke-movie-slide {
    transition: none !important;
  }
  .ke-movie-ctrl-btn,
  .ke-movie-dot,
  .ke-movie-cta-btn,
  .ke-movie-cta-btn::after {
    transition: none !important;
  }
}

/* レスポンシブ（タブレット・スマホ対応） */
@media (max-width: 768px) {
  .ke-movie-feature-section {
    padding: 40px 0 36px;
  }

  .ke-movie-slider-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 12px 16px;
  }

  .ke-movie-slider-nav {
    justify-content: center;
  }

  .ke-movie-cta-wrap {
    justify-content: center;
  }

  .ke-movie-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .ke-movie-feature-section {
    padding: 32px 0 28px;
  }

  .ke-movie-header {
    margin-bottom: 16px;
  }

  .ke-movie-ctrl-btn {
    width: 42px;
    height: 42px; /* タップ領域確保 */
  }

  .ke-movie-dot {
    width: 22px;
  }

  .ke-movie-dot.is-active {
    width: 30px;
  }
}
