@charset "utf-8";
/* ================================================
■ ①ノンスクロール
================================================ */
/*フェードイン(透明 ⇒ 表示)*/
@keyframes fade-in {
  0% {
    opacity: 0;/* 透明 */
  }
  100% {
    opacity: 1;/* 不透明 */
  }
}

/*フェードアウト(表示 ⇒ 透明)*/
@keyframes fade-out {
  0% {
    opacity: 1;/* 不透明 */
  }
  100% {
    opacity: 0;/* 透明 */
  }
}

/*下から上*/
@keyframes bottom-top {
  0% {
    opacity: 0;/* 透明 */
    transform: translateY(100px);/* 移動初期位置 */
  }
  100% {
    opacity: 1;/* 不透明 */
    transform: translateY(0);/* 移動後期位置 */
  }
}

/*上から下*/
@keyframes top-bottom {
  0% {
      opacity: 0;/* 透明 */
      transform: translateY(-100px);/* Y軸方向に-50px */
  }
  100% {
      opacity: 1;/* 不透明 */
      transform: translateY(0);/* Y軸方向に0px */
  }
}

/*右から左*/
@keyframes right-left {
  0% {
      opacity: 0;/* 透明 */
      transform: translateX(100px);/* X軸方向に50px */
  }
  100% {
      opacity: 1;/* 不透明 */
      transform: translateX(0);/* X軸方向に0px */
  }
}

/*左から右*/
@keyframes left-right {
  0% {
      opacity: 0;/* 透明 */
      transform: translateX(-100px);/* X軸方向に50px */
  }
  100% {
      opacity: 1;/* 不透明 */
      transform: translateX(0);/* X軸方向に0px */
  }
}

/*トップページメイン画像のスクロール*/
@keyframes scroll {
  0% {
    opacity: 1;
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    opacity: 0.5;
    -webkit-transform: translate3d(-50%, -8px, 0);
    transform: translate3d(-50%, -8px, 0);
  }
}

@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-7deg);
  }
  50% {
    transform:translate(0, -7px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(7deg);
  }
}
.fuwafuwa {
    animation: fuwafuwa 3s infinite ease-in-out .8s alternate;
    transition: 1.5s ease-in-out;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.gradient {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-attachment: fixed;
  background: linear-gradient(-45deg, #4db9b4, #58c06e, #b3db11, #00d9e6);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  z-index: -1;
  opacity: .25;
}
/* ================================================
■ ①スクロールトリガー
================================================ */
/*
https://blog.photosynthesic.jp/2020/02/cubic-bezier/
cubic-bezier 他の速さ
*/

/*フェードイン*/
.visible.fade-in,.invisible.fade-in {
    opacity: 0;
    transition: all 2s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}
.visible.fade-in {
    opacity: 1;
}

/*フェードアウト*/
.visible.fade-out,.invisible.fade-out {
    opacity: 1;
    transition: all 1s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}
.visible.fade-out {
    opacity: 0;
}

/*下から上*/
.visible.bottom-top,.invisible.bottom-top {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}
.visible.bottom-top {
    opacity: 1;
    transform: translateY(0);
}

/*上から下*/
.visible.top-bottom,.invisible.top-bottom {
    opacity: 0;
    transform: translateY(-100px);
    transition: all 1s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}
.visible.top-bottom {
    opacity: 1;
    transform: translateY(0);
}

/*右から左*/
.visible.right-left,.invisible.right-left {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}
.visible.right-left {
    opacity: 1;
    transform: translateX(0);
}

/*左から右*/
.visible.left-right,.invisible.left-right {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}
.visible.left-right {
    opacity: 1;
    transform: translateX(0);
}

/*拡大*/
.visible.scale-up,.invisible.scale-up {
    opacity: 0;
    transform: scale(.5);
    transition: all 1s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}
.visible.scale-up {
    opacity: 1;
    transform: scale(1);
}

/*縮小*/
.visible.scale-down,.invisible.scale-down {
    opacity: 0;
    transform: scale(1.4);
    transition: all 1s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}
.visible.scale-down {
    opacity: 1;
    transform: scale(1);
}

/*回転*/
.visible.rotate,.invisible.rotate {
    opacity: 0;
    transform: rotate(360deg);
    transition: all 1s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}
.visible.rotate {
    opacity: 1;
    transform: rotate(0deg);
}

/* ================================================
■ アニメーション始動時間
================================================ */
.t_delay_1 { transition-delay: 0.1s !important; }
.t_delay_2 { transition-delay: 0.2s !important; }
.t_delay_3 { transition-delay: 0.3s !important; }
.t_delay_4 { transition-delay: 0.4s !important; }
.t_delay_5 { transition-delay: 0.5s !important; }
.t_delay_6 { transition-delay: 0.6s !important; }
.t_delay_7 { transition-delay: 0.7s !important; }
.t_delay_8 { transition-delay: 0.8s !important; }
.t_delay_9 { transition-delay: 0.9s !important; }
.t_delay_10 { transition-delay: 1s !important; }
.t_delay_11 { transition-delay: 1.1s !important; }
.t_delay_12 { transition-delay: 1.2s !important; }
.t_delay_13 { transition-delay: 1.3s !important; }
.t_delay_14 { transition-delay: 1.4s !important; }
.t_delay_15 { transition-delay: 1.5s !important; }
.t_delay_16 { transition-delay: 1.6s !important; }
.t_delay_17 { transition-delay: 1.7s !important; }
.t_delay_18 { transition-delay: 1.8s !important; }
.t_delay_19 { transition-delay: 1.9s !important; }
.t_delay_20 { transition-delay: 2s !important; }

.delay_5 { animation-delay: 0.5s; }
.delay_10 { animation-delay: 1s; }
.delay_15 { animation-delay: 1.5s; }
.delay_20 { animation-delay: 2s; }

/* ================================================
■ アニメーション
================================================ */
.animation {
    animation-name: bottom-top;
    animation-duration: 1.5s;
    animation-timing-function: ease;
    animation-iteration-count: 1;
    animation-fill-mode: both;
}


/* ================================================
■ トップページメイン画像のスクロール
================================================ */
/* メイン画像スクロール */
/* https://qiita.com/yamaking/items/dca159bdbfe8ea28abd8 */
.scrollWrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5rem;
  z-index: 3;
}
.scroll {
  width: 15px;
  margin: 0 auto;
  -webkit-animation: scroll 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0s infinite alternate;
  animation: scroll 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0s infinite alternate;
}
.scroll span {
  position: relative;
  display: block;
  left: 50%;
}
.scroll span:after {
    content: 'scroll';
    text-align: center;
    position: absolute;
    top: -3rem;
    left: -1.6rem;
    margin-bottom: 3rem;
    color: #fff;
    width: auto;
}
.scroll span:before {
  content: '';
  width: 15px;
  height: 15px;
  border: 0;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  box-sizing: border-box;
}

a.scroll {
    margin-left: .2rem;
    font-size: 1.4rem;
    display: block;
    color: #3988d8;
}
a.scroll:hover {
    color: #333;
    transition: .2s ease;
}
a.scroll:before {
    font-family: "Font Awesome 5 Free";
    font-size: 1rem;
    content: "\f054";
    margin-right: .5rem;
    font-weight: bold;
    position: relative;
    top: -.2rem;
}
