@charset "utf-8";

/* キャラクターの動き（足踏みする） */
.intro {
    position: relative;
    width: 1000px;
    height: 500px;
}

.character {
    position: fixed;
    background-size: contain;
    width: 2.7rem;
    height: 2.7rem;
    top:45%;
    left:50%;
    background-position: center;
    z-index: 1;
}

.character {
    animation-name: ashibumi;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
}

@keyframes ashibumi{
    0% {
        background-image: url(../images/chara.png);
    }
    50% {
        background-image: url(../images/chara2.png);
    }
    100% {
        background-image: url(../images/chara.png);
    }

}

/* イントロテキストの表示 */
.intro-fadeup {
  animation-name: intro-fadeup;
  animation-duration: 2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

@keyframes intro-fadeup {
  from {
    transform: translateY(-40px);
    opacity: 0;
}
  to {
    transform: translateY(0);
    opacity: 1;
}
}

/* コンテントエリア（カード）の表示 */

.content-no1{
    animation-name: zoomin-no1;
    animation-duration: 0.7s;
    animation-timeline: scroll();
    animation-fill-mode: forwards;
}

@keyframes zoomin-no1 {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    20% {
      opacity: 1;
      transform: scale(1);
    }
  }

  .content-no2{
    animation-name: zoomin-no2;
    animation-duration: 0.7s;
    animation-timeline: scroll();
    animation-fill-mode: forwards;
}

@keyframes zoomin-no2 {
    25% {
      transform: scale(0.8);
      opacity: 0;
    }
    45% {
      opacity: 1;
      transform: scale(1);
    }
  }


  .content-no3{
    animation-name: zoomin-no3;
    animation-duration: 0.7s;
    animation-timeline: scroll();
    animation-fill-mode: forwards;
}

@keyframes zoomin-no3 {
    50% {
      transform: scale(0.8);
      opacity: 0;
    }
    70% {
      opacity: 1;
      transform: scale(1);
    }
  }


  .content-no4{
    animation-name: zoomin-no4;
    animation-duration: 0.7s;
    animation-timeline: scroll();
    animation-fill-mode: forwards;
}

@keyframes zoomin-no4 {
    75% {
      transform: scale(0.8);
      opacity: 0;
    }
    90% {
      opacity: 1;
      transform: scale(1);
    }
  }

  .nextstage {
    animation-name: fade-up;
    animation-duration: 10s;
    animation-timeline: scroll();
    animation-fill-mode: forwards;
  }

  @keyframes fade-up {
    90% {
      transform: translateY(30px);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* 各ページのカード時間差表示 */
  .card {
    animation-name: card;
    animation-duration: 3s;
  }

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


