/* アニメーション */

/* 写真が横からすっと出てくるやつ */
.in_hidari,
.in_migi,
.in_ue {
  opacity: 0;
}
.in_hidari.is-active {
  animation: slideIn_L 1s cubic-bezier(0.25, 1, 0.5, 1) 1 forwards;
}
@keyframes slideIn_L {
  0% {
    transform: translateX(-450px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
  }
  40%,
  100% {
    opacity: 1;
  }
}
.in_migi.is-active {
  animation: slideIn_R 1s cubic-bezier(0.25, 1, 0.5, 1) 1 forwards;
}
@keyframes slideIn_R {
  0% {
    transform: translateX(450px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
  }
  40%,
  100% {
    opacity: 1;
  }
}
.in_ue.is-active {
  animation: slideIn_T 1s cubic-bezier(0.25, 1, 0.5, 1) 1 forwards;
}
@keyframes slideIn_T {
  0% {
    transform: translateY(120px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
  }
  40%,
  100% {
    opacity: 1;
  }
}

.is-animated.is-active {
  animation: zoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.marker {
  background-image: linear-gradient(transparent 60%, yellow 40%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: marker-effect 1s ease-in-out forwards;
}

@keyframes marker-effect {
  to {
    background-size: 100% 100%; /* 最終的に幅100%に */
  }
}

/* 写真が下から順番にふわっと出るやつ */
/* 順番に出したい親グループにdelayScroll */
/* 順番に待機してる子供 */
.fadebox {
  opacity: 0;
}

.fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ローディング画面 */

/* ぼかしから出現 */
.blur {
  animation-name: blurAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes blurAnime {
  from {
    filter: blur(10px);
    transform: scale(1.02);
    opacity: 0;
  }

  to {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
  }
}
.blurTrigger {
  opacity: 0;
}

/*==================================================
シャッ（背景色が伸びて出現）
===================================*/

/*背景色が伸びて出現（共通）*/
.bgextend {
  width: fit-content;
  animation-name: bgextendAnimeBase;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  position: relative;
  overflow: hidden; /*　はみ出た色要素を隠す　*/
  opacity: 0;
}

@keyframes bgextendAnimeBase {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*中の要素*/
.bgappear {
  animation-name: bgextendAnimeSecond;
  animation-duration: 1s;
  animation-delay: 0.6s;
  animation-fill-mode: forwards;
  opacity: 0;
}

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

/*左から*/
.bgLRextend::before {
  animation-name: bgLRextendAnime;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  content: "";
  position: absolute;
  left: 0;
  width: 150%;
  height: 100%;
  background-color: #fff; /*伸びる背景色の設定*/
}

#index .mv .mv_copy .bgLRextend::before {
  background-color: var(--sub-color); /*伸びる背景色の設定*/
}
@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);
  }
}
/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.bgappearTrigger,
.bgUDextendTrigger,
.bgDUextendTrigger,
.bgRLextendTrigger,
.bgLRextendTrigger {
  opacity: 0;
}

/* ぽよよん2 */
.poyoyon {
  opacity: 0;
}
.poyoyon.is-active {
  animation: poyoyon 1s ease-in-out 1 forwards;
}

@keyframes poyoyon {
  0% {
    transform: scale(1, 1) translate(0, 0);
  }
  15% {
    transform: scale(0.98, 0.9) translate(0, 5px);
  }
  30% {
    transform: scale(1.02, 1) translate(0, 8px);
  }
  50% {
    transform: scale(0.98, 1.05) translate(0, -8px);
  }
  70% {
    transform: scale(1, 0.9) translate(0, 5px);
  }
  100% {
    transform: scale(1, 1) translate(0, 0);
  }
  0%,
  100% {
    opacity: 1;
  }
}

/* 左へ */
.flipLeft {
  animation-name: flipLeftAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  perspective-origin: left center;
  opacity: 0;
}

@keyframes flipLeftAnime {
  from {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
    opacity: 0;
  }

  to {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
    opacity: 1;
  }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/

.flipDownTrigger,
.flipLeftTrigger,
.flipLeftTopTrigger,
.flipRightTrigger,
.flipRightTopTrigger {
  opacity: 0;
}

/* 動くマーカー */
.marker,
.marker_y,
.marker_g {
  position: relative;
  font-weight: 700;
  display: inline;
  background: linear-gradient(transparent 50%, #ecf3cc 50%) no-repeat;
  background-size: 0 1.4em;
  transition: background-size 1s ease-out;
  padding-bottom: 0.1em;
  line-height: 1.4;
}
.marker_y {
  background: linear-gradient(transparent 50%, #ffff78aa 50%) no-repeat;
  background-size: 0 1.4em;
}
.marker_g {
  background: linear-gradient(transparent 50%, #bad83466 50%) no-repeat;
  background-size: 0 1.4em;
}
.marker.is-active,
.marker_y.is-active,
.marker_g.is-active {
  background-size: 100% 1.4em;
  transition: background-size 1s ease-out;
}
