@charset "utf-8;";

/* Loading背景画面設定*/
#splash {
  /*fixedで全面に固定*/
  position: fixed;
  width: 100%;
  height: 100vh;
  z-index: 999;
  text-align: center;
  color: #fff;
}

/* Loading画像中央配置*/
#splash_logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 999;
  background-image: url("../images/1x/back_pc-80.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Loading アイコンの大きさ設定*/
#splash_logo svg {
  width: 336px;
}

/*=============== SVGアニメーション内の指定 =================*/

/*アニメーション前の指定*/
#mask path {
  fill-opacity: 0; /*最初は透過0で見えない状態*/
  transition: fill-opacity 1s; /*カラーがつく際のアニメーション0.5秒で変化*/
  fill: none; /*塗りがない状態*/
  stroke: #666; /*線の色*/
}

/*アニメーション後に.doneというクラス名がで付与された時の指定*/
#mask.done path {
  fill: #fff; /*塗りの色*/
  fill-opacity: 1; /*透過1で見える状態*/
  stroke: none; /*線の色なし*/
  filter: drop-shadow(4px 4px 5px #000);
  will-change: filter;
}

/*========= レイアウトのためのCSS ===============*/

#container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 30px;
  flex-wrap: wrap;
  animation-name: fadeInAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 0;
}

.logo_top {
  width: 12vw;
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

a {
  color: #333;
}

a:hover {
  text-decoration: none;
}

.glowAnime {
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
  line-height: 2.33;
  font-family: "Montserrat", "Noto Sans JP", san-serif;
  font-weight: 100;
  color: #fff;
}

/*========= 光りながら出現させるためのCSS ===============*/

.glowAnime span {
  opacity: 0;
}

/*アニメーションで透過を0から1に変化させtext-shadowをつける*/
.glowAnime.glow span {
  animation: glow_anime_on 0.5s ease-out forwards;
}

@keyframes glow_anime_on {
  0% {
    opacity: 0;
    text-shadow: 0 0 0 #fff, 0 0 0 #fff;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 10px #fff, 0 0 15px #fff;
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 0 #fff, 0 0 0 #fff;
  }
}

/*========= 画面遷移のためのCSS ===============*/

/*画面遷移アニメーション*/
.splashbg {
  display: none;
}

/*bodyにappearクラスがついたら出現*/
body.appear .splashbg {
  display: block;
  content: "";
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  transform: scaleY(0);
  background-color: #333; /*伸びる背景色の設定*/
  animation-name: PageAnime;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes PageAnime {
  0% {
    transform-origin: bottom;
    transform: scaleY(0);
  }
  50% {
    transform-origin: bottom;
    transform: scaleY(1);
  }
  50.001% {
    transform-origin: top;
  }
  100% {
    transform-origin: top;
    transform: scaleY(0);
  }
}

/*画面遷移の後現れるコンテンツ設定*/

#main_container {
  opacity: 0; /*はじめは透過0に*/
}

/*bodyにappearクラスがついたら出現*/
body.appear #main_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;
  }
}

.skip {
  position: fixed;
  bottom: 5vh;
  right: 10%;
}

@media screen and (max-width: 1181px) {
  .skip {
    right: 0;
    transform: translate(0);
  }
}

@media screen and (max-width: 835px) {
  #splash_logo {
    background-image: url("../images/2x/back_sp@2x-80.jpg");
  }

  #splash_logo svg {
    width: 268px;
    margin-bottom: 10vh;
  }

  .logo_top {
    width: 30vw;
  }

  .glowAnime {
    font-size: 12px;
    margin-bottom: 10vh;
  }
}

@media screen and (max-width: 767px) {
  .logo_top {
    width: 40vw;
  }
}
