/*========= ローディング画面のためのCSS ===============*/
#splash {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--color-secondery);
  z-index: 9999999;
  text-align: center;
  color: #fff;
}

#splash-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
}

#splash-logo img {
  filter: drop-shadow(1px 1px 1px #fff) drop-shadow(-1px 1px 1px #fff) drop-shadow(1px -1px 1px #FFF) drop-shadow(-1px -1px 1px #fff);
}

#splash-logo .logo-text {
  position: absolute;
  width: 250px;
  text-align: center;
  left: calc(50% + 2px);
  transform: translate(-50%, 0);
  bottom: -40px;
  font-size: 12px;
  color: #fff;
  line-height: 1em;
  letter-spacing: .3em;
  display: none;
}

/*========= 画面遷移のためのCSS ===============*/

/*画面遷移アニメーション*/
.splashbg1,
.splashbg2 {
  display: none;
}

/*bodyにappearクラスがついたら出現*/
body.appear .splashbg1,
body.appear .splashbg2 {
  display: block;
}

/*上に消えるエリア*/
body.appear .splashbg1 {
  animation-name: PageAnime;
  animation-duration: 1.4s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  content: "";
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  bottom: 50%;
  left: 0;
  transform: scaleY(1);
  background-color: var(--color-secondery);
}

@keyframes PageAnime {
  0% {
    transform-origin: top;
    transform: scaleY(1);
  }

  100% {
    transform-origin: top;
    transform: scaleY(0);
  }
}

/*下に消えるエリア*/
body.appear .splashbg2 {
  animation-name: PageAnime2;
  animation-duration: 1.4s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  content: "";
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  top: 50%;
  left: 0;
  transform: scaleY(1);
  background-color: var(--color-secondery);
}

@keyframes PageAnime2 {
  0% {
    transform-origin: bottom;
    transform: scaleY(1);
  }

  100% {
    transform-origin: bottom;
    transform: scaleY(0);
  }
}

/*画面遷移の後現れるコンテンツ設定*/
.home #main {
  opacity: 0;
  /*はじめは透過0に*/
  position: relative;
  z-index: 1;
}

/*bodyにappearクラスがついたら出現*/
body.appear .home #main {
  animation-name: PageAnimeAppear;
  animation-duration: 1s;
  /* animation-delay: 0.4s; */
  animation-fill-mode: forwards;
  opacity: 0;
}

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

  100% {
    opacity: 1;
  }
}

body .home {
  background: var(--color-primary);
  /*遷移アニメーションと同じ色を指定*/
}

body.appear .home {
  background: var(--color-01);
  /*画面を開いた後の背景色を指定*/
}

.home #header {
  display: none;
}

body.appear .home #header {
  display: block;
}


.nomove #splash {
  display: none;
}

body.nomove .home {
  background: unset;
}

body.nomove .home #main {
  opacity: 1;
}

body.nomove .home #header {
  display: block;
}
