:root {
  --scroll-position-mv: 0px;
}

#top.wrapper {
  overflow: visible;
}

#top .bg_area {
  overflow: visible;
}

#top .bg_area .bg_slider_wrapper {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

#top #mv {
  height: 200vh;
  background: none;
  max-height: none;
}

#top #mv>div {
  width: 100%;
  height: 100vh;
  position: sticky;
  top: 0;
  background: url(../img/top/mv_bg2.svg) no-repeat bottom left;
  background-size: calc(100% + var(--scroll-position-mv, 0px)) auto;
}

@media (max-width: 768px) {
  #top #mv {
    height: 100svh;
    min-height: 540px;
    max-height: 800px;
  }

  #top #mv>div {
    height: 100%;
  }
}

#top #mv h2 {
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}


#top #about {
  position: relative;

}

#top #about::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
}

#top #about.scroll-revealed::before {
  animation: 1s forwards fadeOut 0s;
}

@media (max-width: 768px) {
  #top #about::before {
    opacity: 0;
    height: 0;
  }

  #top #about.scroll-revealed::before {
    animation: none;
  }
}

#top #about .inner>* {
  opacity: 0;
}

#top #about h2.scroll-revealed {
  animation: 1s forwards fadeIn 0s;
}

#top #about .txt.scroll-revealed {
  animation: 1s forwards fadeIn 0.5s;
}


@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    height: 100%;
  }

  99% {
    height: 100%;
  }

  100% {
    height: 0;
    opacity: 0;
  }
}

.animate-letter {
  line-height: 1;
}

.animate-letter span {
  display: inline-block;
  line-height: 1;
}

.animate-letter>span {
}

.animate-letter>span>span {
  overflow: hidden;
}

.animate-letter>span>span>span {
  display: inline-block;
  transform: translateX(100%);
  opacity: 0;
  line-height: initial;
}

.animate-letter.scroll-revealed>span>span>span {
  animation: 0.5s forwards letterIn 0s;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

@keyframes letterIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

#top #about .inner h2>span {
  margin-top: -0.2em;
}

.sec_ttl.animate-letter>span {
  display: block;
}

.sec_ttl.animate-letter span {
  margin-bottom: 0;
}

.fadeInup.scrollAnimation{
	opacity: 0;
}

.fadeInup.scrollin,
.fadeInup.loadAnimation{
	animation-name:fadeInup;
 	animation-duration:0.8s;
	animation-fill-mode:forwards;
}

@keyframes fadeInup {
  from {
  	transform: translateY(20px);
  	opacity: 0;
  }
  to {
	transform: translateX(0);
	opacity: 1;
  }
}


.mask-wrap,
.mask-inner{
    opacity: 0;
    display: inline-block;
}

.mask-wrap.scrollin,
.mask-wrap.loadAnimation{
	animation-name:bgextendAnimeBase;
	animation-duration:0.4s;
	animation-fill-mode:forwards;
	position: relative;
	/* overflow: hidden; */
}

.mask-inner.scrollin,
.mask-inner.loadlAnimation{
	animation-name:bgextendAnimeSecond;
	animation-duration:0.4s;
	animation-delay: 0.55s;
	animation-fill-mode:forwards;
	opacity: 0;
}

.mask-wrap.scrollin::before,
.mask-wrap.loadAnimation::before{
	animation-name:bgLRextendAnime;
	animation-duration:0.75s;
	animation-fill-mode:forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #073A69;
    z-index: 3;
    display: inline-block;
}

@keyframes bgextendAnimeBase{
	from {
		opacity:1;
	}
	to {
		opacity:1;  
	}
}

@keyframes bgextendAnimeSecond{
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}


@keyframes bgLRextendAnime{
	0% {
		transform-origin:left;
		transform:scaleX(0);
	}
	50% {
		transform-origin:left;
		transform:scaleX(1);
	}
	50.001% {
		transform-origin:right;
	}
	100% {
		transform-origin:right;
		transform:scaleX(0);
	}
}
