/* 二回目以降のページ遷移時のローディングのスタイル */
#splash02 {
  position: fixed;
  width: 100%;
  height: calc(100% + 4px);
  z-index: 9999;
  background: #f5c219;
  text-align: center;
  color: #fff;
  margin-top: -4px !important;
  /* display: none;  */
}
#splash02_logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  position: relative;
  top: 47%;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.5s linear 0s infinite;
}
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(359deg); }
}

/* 画面遷移のためのアニメーション */
.splash02bg {
  display: none;
}

/*bodyにappearクラスがついたら出現*/
body.appear .splash02bg {
  display: block;
  content: "";
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  transform: scaleX(0);
  background-color: #f5c219; /*伸びる背景色の設定*/
  animation-name: PageAnime;
  animation-duration: 1.2s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes PageAnime {
  0% {
    transform-origin: right;
    transform: scaleX(0);
  }
  50% {
    transform-origin: right;
    transform: scaleX(1);
  }
  50.001% {
    transform-origin: left;
  }
  100% {
    transform-origin: left;
    transform: scaleX(0);
  }
}

/* #containerの初期状態 */
#wrapper {
  opacity: 0; /* はじめは透過0に */
}

/* bodyにappearクラスがついたら出現 */
body.appear #wrapper {
  animation-name: PageAnimeAppear;
  animation-duration: 1s;
  animation-delay: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes PageAnimeAppear {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* SVGアニメーション内の指定 */
@keyframes outline05 {
  from {
    stroke-dasharray: 0 6000;
    stroke-dashoffset: 1500;
  }
  to {
    stroke-dasharray: 6000 0;
    stroke-dashoffset: 0;
  }
}
