/* movie page styles */

main.movie {
  padding: 10% 0 80px;
  background-image: url('/sumikkogurashi-movie/image/movie/movie_bg_tenki.png?ver=1');
  background-repeat: repeat;
  background-size: contain;
}

@supports (background-image: url('/sumikkogurashi-movie/image/movie/movie_bg_tenki.webp')) {
  main.movie {
    background-image: url('/sumikkogurashi-movie/image/movie/movie_bg_tenki.webp?ver=1');
  }
}

.movie__header {
  width: 88%;
  margin: 0 auto 56px;
  position: relative;
}

.movie__header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.movie__header-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

.movie__header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 40px;
}

.movie__header-title {
  width: 60%;
  max-width: 520px;
  height: auto;
  display: block;
}

.movie__section {
  position: relative;
  margin: 40px auto 72px;
  width: 88%;
  overflow: hidden;
}

.movie__section-inner {
  /* position: relative; */
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 6% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3%;
}

.movie__section-bg {
  /* position: absolute; */
  position: relative;
  inset: 0;
  z-index: 0;
}

.movie__section-bg-img {
  width: 100%;
  height: auto;
}

.movie__title {
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

.movie__title-img {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .movie__title-img {
    width: 80%;
  }

  .movie__title-caption {
    width: 90%;
  }
}


.movie__video {
  position: relative;
  z-index: 1;
  width: 90%;
}

.movie__video-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.movie__video-bg {
  position: absolute;
  /* inset: -3%; */
  top: -5px;
  right: -5px;
  bottom: -5px;
  left: -5px;

}

.movie__video-bg picture,
.movie__video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie__video-inner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.movie__video-thumb {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.movie__video-thumb picture,
.movie__video-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.movie__video-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.movie__video-btn {
  width: 16%;
  transition: transform 0.2s ease;
}

.movie__video-link:focus-visible .movie__video-btn,
.movie__video-link:hover .movie__video-btn {
  transform: scale(1.08);
}

.movie__modal {
  border: none;
  border-radius: 0;
  display: none;
  padding: 0px;
  background: rgba(255, 255, 255, 0.95);
  max-width: 880px;
  position: relative;
}

.movie__modal-content {
  width: 100%;
}

.movie__modal-player {
  position: relative;
  width: 100%;
  background: #000;
  /* border-radius: 16px; */
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.movie__modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie__modal .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
}

.movie__modal .close-modal::before,
.movie__modal .close-modal::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 2px;
  background: #fff;
  transform-origin: center;
}

.movie__modal .close-modal::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.movie__modal .close-modal::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


@media (max-width: 768px) {
  main.movie {
    padding: 80px 0 60px;
    background-size: contain;
  }

  .movie__header {
    margin-bottom: 36px;
  }

  .movie__header-inner {
    padding: 40px 0 20px;
  }

  .movie__header-title {
    width: 78%;
  }

  .movie__section {
    margin: 27px auto 36px;
  }

  .movie__section-inner {
    padding: 11% 5%;
    gap: 6%;
  }

  .movie__section--release {
    margin: 0px auto 72px;
  }

  .movie__notice-content {
    width: 80%;
  }

  .movie__modal {
    padding: 16px;
    width: 88%;
  }
}


