@charset "utf-8";

#first-view {
  height: calc(90vh - 148px);
  background-image: url(../images/nara_wakaba_piano_top.jpeg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  animation-name: fadeInAnime;
  animation-duration: 7s;
  animation-fill-mode: forwards;
  opacity: 0;
  position: relative;
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ファーストビューここまで */


/* タイトルボード */
.splashbg {
  display: block;
  position: fixed;
  background-image: url(../images/nara_wakaba_piano_top_board.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  z-index: 999;
  top: calc(50% - 1rem);
  left: calc(50% - 1rem);
  width: 2rem;
  height: 2rem;
  animation-name: PageAnime;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}


@keyframes PageAnime {
  0% {
    transform: scale(48);
    opacity: 1;
  }

  60% {
    transform: scale(48);
    opacity: 0.8;
  }

  100% {
    transform: scale(48);
    opacity: 0;
    display: none;
  }
}

#container {
  opacity: 0;
}

body.appear #container {
  animation-name: PageAnimeAppear;
  animation-duration: 1s;
  animation-delay: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
}

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

  100% {
    opacity: 1;
  }
}

/* タイトルボードここまで */
#greeting {
  background: url("../images/garland_flame_left.png") no-repeat left top,
    url("../images/garland_flame_right.png") no-repeat right top;
  background-size: 25% auto;
}

.contents h1 {
  line-height: 2.5;
}

#trial-lesson{
  color: coral;
}

#lessonimg {
  margin: 32px auto 32px 16px;
  width: 340px;
  height: 430px;
  float: right;
}
/* indexここまで */

/* indexスマホ */
@media (max-width: 800px) {
  #first-view {
    height: calc(75vh - 73px);
  }

  @keyframes PageAnime {
    0% {
      transform: scale(10);
      opacity: 1;
    }

    60% {
      transform: scale(10);
      opacity: 0.8;
    }

    100% {
      transform: scale(10);
      opacity: 0;
      display: none;
    }
  }

  .main {
    margin-top: -10px;
    font-size: 4vw;
  }

  #lessonimg{
    display: none;
  }
}
/* indexスマホここまで */

