@charset "utf-8";

/*==================================================*
 * 背景色が四角に拡大（四隅へ）
 *==================================================*/

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

#splash-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Roboto", "Noto Sans JP", sans-serif;
}

#splash-logo img,
#splash-logo canvas {
  /* width: 50px; */
}

/* 画面遷移アニメーション */

.splashbg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-width: 0px; /* 開始はボーダーの太さは0 */
  border-style: solid;
  border-color: #000; /* 拡大する四角の色 */
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

@keyframes backBoxAnime {
  99.9% {
    /* アニメーション終了ぎりぎりまで */
    z-index: 2; /* 最前面に */
    border-width: 0px; /* 開始はボーダーの太さは0 */
  }
  100% {
    z-index: -1; /* 最背面に */
    border-width: 0px; /* 終了はボーダーの太さは0 */
  }
}

/* 画面遷移の後現れるコンテンツ設定 */
.site-body-container {
  position: relative;
  opacity: 0; /*はじめは透過0に*/
}

/* bodyにappearクラスがついたら出現 */
body.appear .site-body-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;
  }
}

/*===================================================*
 * クリックしたら円形背景が拡大（上から）
 *===================================================*/

/*アクティブになったエリア*/
#g-nav.panelactive {
  /* position:fixed;にし、z-indexの数値を大きくして前面へ */
  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;
  height: 100vh;
}

/* 丸の拡大 */
.circle-bg {
  position: fixed;
  z-index: 3;
  /* 丸の形 */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #000;
  /* 丸のスタート位置と形状 */
  transform: scale(0); /* scaleをはじめは0に */
  top: -50px;
  left: calc(50% - 50px); /* 50%から円の半径を引いた値 */
  transition: all 0.6s; /* 0.6秒かけてアニメーション */
}

.circle-bg.circleactive {
  transform: scale(50); /* クラスが付与されたらscaleを拡大 */
}

/* ===========================================================*
 * クリックしたらナビが下から上に出現
 *===========================================================*/
#g-nav {
  /* position:fixed;にし、z-indexの数値を大きくして前面へ */
  position: fixed;
  z-index: 999;
  /* ナビのスタート位置と形状 */
  bottom: -120%;
  width: 100%;
  height: 100vh; /* ナビの高さ */
  /* background: #000; */
  /* 動き */
  transition: all 0.6s;
}

/* アクティブクラスがついたら位置を0に */
#g-nav.panelactive {
  bottom: 0;
}

/* ナビゲーションの縦スクロール */
#g-nav #g-nav-list {
  /* ナビの数が増えた場合縦スクロール */
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh; /* 表示する高さ */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* ナビゲーション */
#g-nav ul {
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* リストのレイアウト設定 */

#g-nav li {
  list-style: none;
  text-align: center;
}

#g-nav li a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}

/*==================================================*
 * 矢印が右に移動して現在地に戻る
 *==================================================*/

/* ボタン共通設定 */
.btn06 {
  /* 矢印の基点とするためrelativeを指定 */
  position: relative;
  /* ボタンの形状 */
  text-decoration: none;
  display: inline-block;
  background: #fff;
  color: #333;
  padding: 10px;
  width: 230px;
  border-radius: 5px;
  text-align: center;
  outline: none;
  /* アニメーションの指定 */
  transition: ease 0.2s;
}

.btnarrow2::after {
  content: "";
  /* 絶対配置で矢印の位置を決める */
  position: absolute;
  top: 1.2em;
  right: 25px;
  /* 矢印の形状 */
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(45deg);
}

/* hoverした際のアニメーション */
.btnarrow2:hover::after {
  animation: arrow 0.5s;
}

@keyframes arrow {
  50% {
    right: 20px;
  }
  100% {
    right: 25px;
  }
}

/*==================================================*
 * 右下に押し込まれる（立体が平面に）
 *==================================================*/

/* ボタン共通設定 */
.btn03 {
  /* 影の基点とするためrelativeを指定 */
  position: relative;
  /* ボタンの形状 */
  text-decoration: none;
  display: inline-block;
  text-align: center;
  background: transparent;
  border-radius: 25px;
  border: solid 1px #333;
  outline: none;
  /* アニメーションの指定 */
  transition: all 0.2s ease;
}

/* hoverをした後のボタンの形状 */
.btn03:hover {
  border-color: transparent;
}

/* ボタンの中のテキスト */
.btn03 span {
  position: relative;
  z-index: 2; /* z-indexの数値をあげて文字を背景よりも手前に表示 */
  /* テキストの形状 */
  display: block;
  padding: 10px 30px;
  background: #f0f0f0;
  border-radius: 25px;
  color: #333;
  /* アニメーションの指定 */
  transition: all 0.3s ease;
}

/* 影の設定 */
.pushright:before {
  content: "";
  /* 絶対配置で影の位置を決める */
  position: absolute;
  z-index: -1;
  top: 4px;
  left: 4px;
  /*影の形状*/
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background-color: #333;
}

/* hoverの際にX・Y軸に4pxずらす */
.pushright:hover span {
  background-color: #333;
  color: #fff;
  transform: translate(4px, 4px);
}

/*==================================================*
 * 基本アニメーション
 *==================================================*/

/* くるっ（Z 軸（右へ）） */
.rotateRightZ {
  animation-name: rotateRightZAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes rotateRightZAnime {
  from {
    transform: rotateZ(0);
  }
  to {
    transform: rotateZ(360deg);
  }
}

/* ふわっ（その場で） */
.fadeIn {
  animation-name: fadeInAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ふわっ（下から） */

.fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* パタッ（左上へ） */
.flipLeftTop {
  animation-name: flipLeftTopAnime;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes flipLeftTopAnime {
  from {
    transform: translate(-20px, 80px) rotate(-15deg);
    opacity: 0;
  }

  to {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
}

/* パタッ（右上へ） */
.flipRightTop {
  animation-name: flipRightTopAnime;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes flipRightTopAnime {
  from {
    transform: translate(-20px, 80px) rotate(25deg);
    opacity: 0;
  }

  to {
    transform: translate(0, 1) rotate(0deg);
    opacity: 1;
  }
}

/* ボンッ（拡大） */
.zoomIn {
  animation-name: zoomInAnime;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

@keyframes zoomInAnime {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* smooth */
.smooth {
  animation-name: smoothAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  transform-origin: left;
  opacity: 0;
}

@keyframes smoothAnime {
  from {
    transform: translate3d(0, 100%, 0) skewY(12deg);
    opacity: 0;
  }

  to {
    transform: translate3d(0, 0, 0) skewY(0);
    opacity: 1;
  }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.fadeUpTrigger,
.zoomInTrigger,
.flipLeftTopTrigger,
.flipRightTopTrigger,
.smoothTrigger {
  opacity: 0;
}

/*========= 光りながら出現させるためのCSS ===============*/

.glowAnime span {
  opacity: 0;
}

/*アニメーションで透過を0から1に変化させtext-shadowをつける*/
.glowAnime.glow span {
  animation: glow_anime_on 1s 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: 1px 1px 10px #3e3e4a;
    /* text-shadow: 0 0 0 #fff, 0 0 0 #fff; */
  }
}
