@charset "UTF-8";

/* ========================================
  TOP ムービー
======================================== */
/* ムービーがある場合、トピックス下の余白をムービーへ移動 */
.p-top-topics:has(+ .p-top-movie) {
  padding-bottom: 0;
}

.p-top-movie {
  position: relative;
  padding-top: 8.75rem;
  padding-bottom: 15rem;
}

.p-top-movie__head {
  text-align: center;
}

.p-top-movie__slider {
  max-width: 75rem;
  margin: 6.25rem auto 0;
}

.p-top-movie__slider.is-single {
  max-width: 55rem;
}

.p-top-movie__slide {
  padding: 0 0.875rem;
}

/* li自体を拡縮するとSplideの位置計算がずれるため中身に適用 */
.p-top-movie__slide > * {
  transition: transform 0.3s ease;
}

.p-top-movie__video {
  border-radius: 0.625rem;
  overflow: hidden;
}

.p-top-movie__video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.p-top-movie__slider:not(.is-single) .p-top-movie__slide:not(.is-active) > * {
  transform: scale(0.85);
}

.p-top-movie__caption {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.p-top-movie__slider .splide__arrow {
  width: 3rem;
  height: 3rem;
  background-color: #FFA14E;
  opacity: 1;
}

.p-top-movie__slider .splide__arrow svg {
  fill: #fff;
}

.p-top-movie__slider .splide__pagination {
  bottom: -2.5rem;
}

.p-top-movie__slider .splide__pagination__page.is-active {
  background-color: #00B87A;
}

@media screen and (max-width: 767px) {
  .p-top-movie {
    padding-top: 5.625rem;
    padding-bottom: 18rem;
  }

  .p-top-movie__slider {
    margin-top: 5rem;
  }

  .p-top-movie__slide {
    padding: 0;
  }

  .p-top-movie__caption {
    font-size: 0.875rem;
  }

  .p-top-movie__slider .splide__arrow {
    width: 2.25rem;
    height: 2.25rem;
  }
}
