@charset "utf-8";

/*横から出る動き*/

.bgextend{
	animation-name:bgextendAnimeBase;
	animation-duration:1s;
	animation-fill-mode:forwards;
	position: relative;
	overflow: hidden;/*　はみ出た色要素を隠す　*/
	opacity:0;
}

@keyframes bgextendAnimeBase{
  from {
    opacity:0;
  }

  to {
    opacity:1;  
}
}

/*中の要素*/
.bgappear{
	animation-name:bgextendAnimeSecond;
	animation-duration:1s;
	animation-delay: 0.6s;
	animation-fill-mode:forwards;
	opacity: 0;
}

@keyframes bgextendAnimeSecond{
	0% {
	opacity: 0;
	}
	100% {
	opacity: 1;
}
}

/*左から右*/
.bgLRextend::before{
	animation-name:bgLRextendAnime;
	animation-duration:1s;
	animation-fill-mode:forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #DB2B2B;/*伸びる背景色の設定*/
}
@keyframes bgLRextendAnime{
	0% {
		transform-origin:left;
		transform:scaleX(0);
	}
	50% {
		transform-origin:left;
		transform:scaleX(1);
	}
	50.001% {
		transform-origin:right;
	}
	100% {
		transform-origin:right;
		transform:scaleX(0);
	}
}

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

/*下からふわっと出る動き*/
.fadeUpTrigger{
  opacity: 0;
  }
  .fadeUp {
    animation-name: fadeUpAnime;
    animation-duration:1.4s;
    animation-fill-mode:forwards;
    opacity: 0;
}
@keyframes fadeUpAnime{
from {
    opacity: 0;
    transform: translateY(100px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}


/*========= ナビゲーションのためのCSS ===============*/

#g-nav{
    /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
    position:fixed;
  z-index: -9999;
  opacity: 0;/*はじめは透過0*/
    /*ナビの位置と形状*/
    display: none;
  top:0;
  width:100%;
    height: 100vh;/*ナビの高さ*/
  background:#999;
    /*動き*/
  transition: all 0.3s;
  }
  
  /*アクティブクラスがついたら透過なしにして最前面へ*/
  #g-nav.panelactive{
  opacity: 0.9;
  display: block;
  z-index:999;
  }
  
  /*ナビゲーションの縦スクロール*/
  #g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;/*表示する高さ*/
    overflow: auto;
    /* -webkit-overflow-scrolling: touch; */
  }
  
  /*ナビゲーション*/
  #g-nav ul {
    display: none;
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
  }
  
  #g-nav.panelactive ul {
    display: block;
  }
  
  /*リストのレイアウト設定*/
  
  #g-nav li{
  list-style: none;
    text-align: center; 
  }
  
  #g-nav li a{
  color: #333;
  text-decoration: none;
  padding:20px 40px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: normal;
  border-bottom: #333 solid 1px;
  font-family: "Yusei Magic", serif;
  }
  
  /*========= ボタンのためのCSS ===============*/
  .openbtn{
  position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
  top:10px;
  right: 10px;
  cursor: pointer;
    width: 50px;
    height:50px;
  }
  
  /*×に変化*/	
  .openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
  background-color: #666;
    width: 45%;
  }
  
  .openbtn span:nth-of-type(1) {
  top:15px;	
  }
  
  .openbtn span:nth-of-type(2) {
  top:23px;
  }
  
  .openbtn span:nth-of-type(3) {
  top:31px;
  }
  
  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }
  
  .openbtn.active span:nth-of-type(2) {
  opacity: 0;
  }
  
  .openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }


    /* ボタン共通設定 */
.btn04 {
    /*線の基点とするためrelativeを指定*/
  position: relative;
    /*ボタンの形状*/
  display:inline-block;
    padding: 10px 30px;
  color:#333;
  border:1px solid #ccc;
    text-decoration: none;
    outline: none;
    /*はみ出す背景色を隠す*/
   overflow: hidden;
  }
  
  /*hoverした際のボタンの形状*/
  .btn04:hover {
  color:#ccc;
  border-color: transparent;
    /*色の変化を遅らせる*/
  transition-delay: .6s;
  }
  
  /*線の設定*/
  .btn04 span{
    display: block;
    z-index: 2;
  }
  
  /*== 線から塗に変化（左から右） */
  
  /*線の設定*/
  .borderleft span::before,
  .borderleft span::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    width:0;
    height:1px;
    /*線の形状*/
    background: #333;
    /*アニメーションの設定*/
  transition: all .3s;
  }
  
  /*左上線*/
  .borderleft span::before {
    left:0;
    top:0;
  }
  
  /*左下線*/
  .borderleft span::after {
    left:0;
    bottom:0;
  }
  
  /*hoverをすると線が伸びる*/
  .borderleft:hover span::before,
  .borderleft:hover span::after {
    width: 100%;
  }
  
  /*背景の設定*/
  .borderleft::before{
  content: '';
    /*絶対配置で線の位置を決める*/
  position: absolute;
  left: 0;
    bottom:0;
  z-index: -1;
    /*背景の形状*/
  height: 100%;
  width: 0;
  background:#333;
    /*アニメーションの設定*/
  transition: all .3s;
  }
  
  /*hoverをすると背景が伸びる*/
  .borderleft:hover::before{
  width: 100%;
    /*0.4秒遅れてアニメーション*/
  transition-delay: .4s;
  }


    /*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background:#942D2F;
	border-radius: 10px;
	width: 60px;
	height: 60px;
	color: #fff;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.6rem;
	transition:all 0.3s;
}


#page-top a:hover{
	background: #777;
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 10px;
	bottom:10px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateX(100px);
}

.dli-arrow-up {
    display: inline-block;
    vertical-align: middle;
    color: #fefefe;
    line-height: 1;
    position: relative;
    width: 0.2em;
    height: 1.6em;
    background: currentColor;
  }
  
  .dli-arrow-up::before {
    content: '';
    width: 0.65em;
    height: 0.65em;
    border: 0.3em solid currentColor;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(-45deg);
    transform-origin: top right;
    position: absolute;
    top: -0.05em;
    right: 50%;
    box-sizing: border-box;
  }


/*左の動き*/

#page-top.LeftMove{
	animation: LeftAnime 0.5s forwards;
}

@keyframes LeftAnime{
  from {
    opacity: 0;
	transform: translateX(100px);
  }
  to {
    opacity: 1;
	transform: translateX(0);
  }
}

/*右の動き*/

#page-top.RightMove{
	animation: RightAnime 0.5s forwards;
}
@keyframes RightAnime{
  from {
  	opacity: 1;
	transform: translateX(0);
  }
  to {
  	opacity: 1;
	transform: translateX(100px);
  }
}

/*葉っぱを降らす==================================================*/

#particles-js{ 
  position: relative;
	position:absolute;/*描画固定*/
	z-index:0;/*描画を一番下に*/
	width: 100%;
	height: 100%;
}

#about__box{
	position: relative;/*描画を#particles-jsよりも上にするためposition:relative;を指定*/
	z-index: 0;/*z-indexの数字を大きくすることで描画を#particles-jsよりも上に*/
	/* width:100%;
	height: 100%; */
}


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

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

.circle{
  width:20px;
  height:20px;
  position: absolute;
  border-radius: 50%;
  background-color: #DB2B2B;
  left:15%;
  transform-origin: 50%;
  animation: circle .5s alternate infinite ease;
}

@keyframes circle{
  0%{
      top:60px;
      height:5px;
      border-radius: 50px 50px 25px 25px;
      transform: scaleX(1.7);
  }
  40%{
      height:20px;
      border-radius: 50%;
      transform: scaleX(1);
  }
  100%{
      top:0%;
  }
}
.circle:nth-child(2){
  left:45%;
  animation-delay: .2s;
}
.circle:nth-child(3){
  left:auto;
  right:15%;
  animation-delay: .3s;
}
.shadow{
  width:20px;
  height:4px;
  border-radius: 50%;
  background-color: rgba(0,0,0,.5);
  position: absolute;
  top:62px;
  transform-origin: 50%;
  z-index: -1;
  left:15%;
  filter: blur(1px);
  animation: shadow .5s alternate infinite ease;
}

@keyframes shadow{
  0%{
      transform: scaleX(1.5);
  }
  40%{
      transform: scaleX(1);
      opacity: .7;
  }
  100%{
      transform: scaleX(.2);
      opacity: .4;
  }
}
.shadow:nth-child(4){
  left: 45%;
  animation-delay: .2s
}
.shadow:nth-child(5){
  left:auto;
  right:15%;
  animation-delay: .3s;
}
#splash-logo span{
  position: absolute;
  top:75px;
  font-family: "Yusei Magic", serif;
  font-size: 20px;
  letter-spacing: 14px;
  color: #fff;
  left:8%;
}


/*========= 画面遷移のための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: scaleX(0);
    background-color: #DB2B2B;/*伸びる背景色の設定*/
	animation-name:PageAnime;
	animation-duration:1.2s;
	animation-timing-function:ease-in-out;
	animation-fill-mode:forwards;
}

@keyframes PageAnime{
	0% {
		transform-origin:left;
		transform:scaleX(0);
	}
	50% {
		transform-origin:left;
		transform:scaleX(1);
	}
	50.001% {
		transform-origin:right;
	}
	100% {
		transform-origin:right;
		transform:scaleX(0);
	}
}

/*画面遷移の後現れるコンテンツ設定*/
#container,
#hero__item1,
#hero__item2,
#hero__item3,
#hero__item4{
	opacity: 0;/*はじめは透過0に*/
}

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

body.appear #hero__item1 {
  animation-name:PageAnimeAppear2;
	animation-duration:1s;
	animation-delay: 1.4s;
	animation-fill-mode:forwards;
	opacity: 0;
}
body.appear #hero__item2 {
  animation-name:PageAnimeAppear2;
	animation-duration:1s;
	animation-delay: 1.7s;
	animation-fill-mode:forwards;
	opacity: 0;
}
body.appear #hero__item3 {
  animation-name:PageAnimeAppear2;
	animation-duration:1s;
	animation-delay: 2s;
	animation-fill-mode:forwards;
	opacity: 0;
}
body.appear #hero__item4 {
  animation-name:PageAnimeAppear2;
	animation-duration:1s;
	animation-delay: 2.3s;
	animation-fill-mode:forwards;
	opacity: 0;
}


@keyframes PageAnimeAppear{
	0% {
	opacity: 0;
	}
	100% {
	opacity: 1;
}
}
@keyframes PageAnimeAppear2{
	0% {
	opacity: 0;
  transform: translateX(-20px);
	}
	100% {
	opacity: 1;
  transform: translateX(0);
}
}