.home-slider,
#mv {
  position: relative;
}

.embla {
  overflow: hidden;
  width: 100%;
}

.embla__slide {
  background: #000;
  flex: 0 0 100%;
  position: relative;
}

.embla__container {
  display: flex;
  height: calc(100vh - 66px);
}

.mv__media {
  inset: 0;
  position: absolute;
}

.mv__media img {
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  width: 100%;
}

.embla__slide.is-selected .mv__media img {
  animation: mvZoomFade 3s ease-out forwards;
}

@keyframes mvZoomFade {
  from {
    transform: scale(1.08);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.mv__overlay {
  display: grid;
  inset: 0;
  place-items: end;
  position: absolute;
}

.mv__text {
  height: unset;
  max-width: 88%;
  opacity: 0;
  padding: 0 10px 7.28vw;
  transform: translateY(50px);
}

.mv__text .home-slider-cont-title {
  margin-bottom: 45px;
  max-width: 510px;
}

.mv__text .home-slider-cont-title img {
  width: 100%;
}

.embla__slide.text-shown .mv__text {
  opacity: 1;
  transform: translateY(0);
}

.embla__slide.text-animate .mv__text {
  animation: mvTextUp 700ms ease-out forwards;
}

@keyframes mvTextUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv__media img {
    opacity: 1;
    transform: scale(1);
  }

  .mv__text {
    opacity: 1;
    transform: none;
  }
}

.home-slider-cont-title {
  text-shadow: 0 0 10px rgba(0, 0, 0, .25);
}

.home-slider-cont-title {
  margin-bottom: 40px;
}

.home-slider-cont-text-wrap-inner-bottom {
  padding-left: 10px;
}

.home-slider-cont-certify {
  right: 24px;
  width: unset;
  z-index: 100;
}

.mv {
  position: relative;
}

.mv__guide {
  align-items: center;
  bottom: 10px;
  color: #fff;
  display: flex;
  gap: 20px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  user-select: none;
  z-index: 5;
}

/* 矢印 */
.mv__arrow {
  appearance: none;
  cursor: pointer;
  opacity: .9;
}

.mv__arrow:hover {
  opacity: 1;
}

/* 01 02 03 */
.mv__step-wrap {
  align-items: center;
  display: flex;
  gap: 6px;
  padding: 0;
  position: relative;
}

.mv__step {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: .75rem;
  letter-spacing: .06em;
  opacity: .6;
  padding: 0;
}

.mv__step.is-active {
  opacity: 1;
}

/* 区間線 */
.mv__segment {
  background: rgba(255, 255, 255, .3);
  height: 2px;
  overflow: hidden;
  position: relative;
  width: 30px;
}

.mv__segmentFill {
  background: #fff;
  inset: 0;
  position: absolute;
  transition: width 350ms ease;
  width: 0;
}

#mv .home-slider-cont-text-wrap a {
  padding: 10px 50px;
  text-align: center;
  width: 220px;
}

#mv .link-icon-green::before {
  height: 40px;
  width: 40px;
}

#mv .home-slider-cont-text-wrap .link-icon-green::after {
  height: 10px;
  right: -40px;
  width: 10px;
}

#mv .link-icon-green:hover::after {
  transform: translate(5px, -5px) rotate(45deg);
}

@media screen and (max-width: 899px) {
  #mv {
    position: static;
  }

  .home-slider {
    position: relative;
  }

  .embla__slide.text-shown .mv__text {
    display: flex;
    flex-direction: column;
  }

  .mv__text {
    padding: 30px 0 60px;
  }

  .mv__guide {
    bottom: 1rem;
    gap: 10px;
    left: 0;
    position: absolute;
    transform: unset;
  }

  .mv__arrow {
    opacity: 0;
  }

  .home-slider-cont-certify {
    bottom: -2rem;
  }

  .home-slider-cont-text-wrap a {
    margin: 0;
  }
}

@media screen and (max-width: 768px) {
  .embla__container {
    height: calc(85vh - 150px);
  }

  .mv__text {
    padding-bottom: 16vw;
  }

  .mv__text {
    height: 100%;
  }

  .mv__text .home-slider-cont-title {
    margin-bottom: 30px;
    max-width: 92%;
  }

  .home-slider-cont-certify {
    bottom: -30px;
  }

  .home-slider-cont-text-wrap-inner-bottom {
    margin: 0 auto;
    padding-left: 0;
    padding-right: 10px;
  }

  .home-slider-cont-text-wrap a {
    width: fit-content;
  }
}

@media screen and (max-width: 650px) {
  .home-slider-cont-text-wrap a {
    margin: 0 auto;
  }
}