@charset "utf-8";

/* ----------------------------------------------------
  splash
---------------------------------------------------- */
#splash {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999999;
  text-align:center;
  color:#fff;
  background: #009297; /* 背景色 */  
}

/* ----------------------------------------------------
  splash-logo
---------------------------------------------------- */
#splash-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media print, screen and (min-width: 768px) {
  #splash-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ----------------------------------------------------
  ローディング表示制御
---------------------------------------------------- */
#splash, #splash-logo {
  display: none;
}
body.loading #splash,
body.loading #splash-logo {
  display: block;
}

/* ----------------------------------------------------
  splash body
---------------------------------------------------- */
/*　初期　背景
---------------------------------------------------- */
body {
  background: #009297; /* 背景色 */
}
body.appear {
  background: #fff; /* 本サイトの背景色 */
}
body.appear.first-visit {
  background: #009297; /* 初回アクセスの背景色 */
}

body.appear.first-visit.animate .splashbg1,
body.appear.first-visit.animate .splashbg2 {
  display: block;
}
body.appear:not(.first-visit) .splashbg1,
body.appear:not(.first-visit) .splashbg2 {
  display: none;
}

/* ----------------------------------------------------
  アニメ 左
---------------------------------------------------- */
body.appear.animate .splashbg1 {
  animation-name: PageAnimeLeft;
  animation-duration: 0.9s;
  animation-delay: 0.15s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  content: "";
  position: fixed;
  z-index: 999;
  width: 50vw;
  height: 100vh;
  top: 0;
  left: 0;
  transform: scaleX(1);
  transform-origin: left;
  background-color: #009297; /* 背景色 */
}

@keyframes PageAnimeLeft {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

/* ----------------------------------------------------
  アニメ 右
---------------------------------------------------- */
body.appear.animate .splashbg2 {
  animation-name: PageAnimeRight;
  animation-duration: 0.9s;
  animation-delay: 0.15s; 
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  content: "";
  position: fixed;
  z-index: 999;
  width: 50vw;
  height: 100vh;
  top: 0;
  right: 0;
  transform: scaleX(1);
  transform-origin: right;
  background-color: #009297; /* 背景色 */
}

@keyframes PageAnimeRight {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

/* ----------------------------------------------------
  コンテンツフェードイン
---------------------------------------------------- */
#container {
  opacity: 0;
}
body.appear #container {
  animation-name: PageAnimeAppear;
  animation-duration: 1s;
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
  opacity: 0;
}
@keyframes PageAnimeAppear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}