@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);
  }
}

/* ================================================
■ アニメーション始動時間
================================================ */
.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: 3rem;
  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;
}
