/* swiperはライブラリの上書きが必要なため:where利用なし
    また、worpressのデフォルトmarginがあるため、適宜!importantを利用
     */
.c-mv-001 {
  overflow: hidden;
  position: relative;
  height: calc(100vh - 8.4rem);
  .swiper {
    height: calc(100vh - 8.4rem);
    overflow: hidden;
    @media (max-width: 781px) {
      height: calc(100vh - 8.8rem);
    }
  }
  .swiper-wrapper {
    height: 100% !important;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 9999px;
    backdrop-filter: blur(10px);

    user-select: none;
    @media (max-width: 781px) {
      width: 3.2rem;
      height: 3.2rem;
    }
  }
  .swiper-button-next:after,
  .swiper-button-prev:after {
    color: #fff;
    user-select: none;
    text-align: center;
    height: 1.6rem;
    font-size: 1.6rem;
    @media (max-width: 781px) {
      height: 1.2rem;
      font-size: 1.2rem;
    }
  }
  .swiper-slide {
    display: grid;
    place-items: center;
    overflow: hidden;
    figure,
    img {
      width: 100%;
      height: 100%;
      width: 100%;
      object-fit: cover;
      object-position: center;
    }
  }
  .swiper-pagination-bullet {
    margin: 0 0.4rem !important;
    &.swiper-pagination-bullet-active {
      background: var(--wp--preset--color--text);
    }
  }

  .swiper-slide-active img,
  .swiper-slide-duplicate-active img,
  .swiper-slide-prev img {
    animation: zoomUp 7s linear 0s normal both;
  }
}
.editor-styles-wrapper {
  .swiper {
    max-height: none !important;
  }
}
@keyframes zoomUp {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}
.c-mv-001 {
  &:before {
    content: "";
    position: absolute;
    top: 0;
    opacity: 0;
    right: -1rem;
    width: 20%;
    height: 100%;
    background: rgb(105 49 49 / 70%);
    transition-delay: 0.5s;
    transition: all 2s ease-in-out;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 150% 100%);
    z-index: 3;
  }
  &:after {
    content: "";
    transition: all 1s ease-in-out;
    opacity: 0;
    left: -1rem;
    position: absolute;
    top: 0;
    content: "";
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    z-index: 2;
    width: 70%;
  }
  &.js-display {
    &:before {
      right: 0;
      opacity: 1;
    }
    &:after {
      opacity: 1;
      left: 0;
    }
  }
  .editor-styles-wrapper & {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    &:before,
    &:after {
      display: none !important;
    }
  }
}
.c-mv-001__main-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  z-index: 5;
  text-align: left;
  font-size: var(--wp--preset--spacing--xl);
  width: 90%;
  max-width: 100rem;
  opacity: 0;
  transition: all 1s ease-in-out 1s;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.9);
  @media (max-width: 781px) {
    font-size: var(--wp--preset--spacing--lg);
    text-align: center;
    transform: translate(-50%, -100%);
  }
  .js-display & {
    opacity: 1;
  }
  .editor-styles-wrapper & {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
.c-mv-001__sub-copy {
  font-size: var(--wp--preset--font-size--base);
  position: relative;
  transition-delay: 2s;
  left: -3rem;
  transition: all 1s ease-in-out;

  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.9);
  .js-display & {
    opacity: 1;
    left: 0;
  }
  .editor-styles-wrapper & {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
.c-mv-001__button-area {
  position: absolute;
  bottom: var(--wp--preset--spacing--lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 100%;
  opacity: 0;
  transition: all 1s ease-in-out 2s;
  transition-delay: 1s;
  .js-display & {
    opacity: 1;
  }
  .editor-styles-wrapper & {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
