@charset "utf-8";

/*ローディング*/
#splash {
	position: fixed;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #12c2e9, #c471ed, #f64959);
	z-index: 9999999;
	text-align:center;
	color:#fff;
}

#splash-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	
}

/*画面遷移アニメーション*/
.splashbg{
	display: none;
}

body.appear .splashbg{
    display: block;
    position:fixed;
	z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
	left: 0;
    transform: scaleY(0);
    background: linear-gradient(90deg, #12c2e9, #c471ed, #f64959);
	animation-name:PageAnime;
	animation-duration:1.2s;
	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);
	}
}

/*画面遷移後*/
#wrapper{
	opacity: 0;
}

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;
	}
}

/* ナビゲーション */
#g-nav.panelactive{
    position:fixed;
    z-index: 999;
    top: 0;
    width: 100%;
    height: 100vh;
}

/*丸の拡大*/
.circle-bg{
    position: fixed;
    z-index: 99;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(90deg, #12c2ed, #c471ed, #f64959);
    transform: scale(0);
    bottom:-50px;
    left: calc(50% - 50px);
    transition: all .6s;
}

.circle-bg.circleactive{
  transform: scale(50);
}

/*ナビゲーションの縦スクロール*/
#g-nav-list{
    display: none;
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list{
     display: block;
}

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

#g-nav.panelactive ul {
    opacity:1;
}

#g-nav.panelactive ul li{
	animation-name:gnaviAnime;
	animation-duration:1s;
	animation-delay:.2s;
	animation-fill-mode: forwards;
	opacity: 0;
}
@keyframes gnaviAnime{
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

/*リストのレイアウト*/
#g-nav li{
  text-align: center; 
  list-style: none;
}

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

#g-nav li a:hover{
	opacity: 0.5;
}

/* ボタンの変化*/
.openbtn{
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 9999;
	cursor: pointer;
    width: 50px;
    height:50px;
}

.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    height: 3px;
	left: 50%;
	transform: translate(-50%,-50%);
    border-radius: 2px;
    background-color: #666;
    width: 60%;
  }

.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: 16px;
    left: 10px;
    transform: translateY(6px) rotate(-45deg);
    width: 60%;
	background-color: #fff;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3){
    top: 28px;
    left: 10px;
    transform: translateY(-6px) rotate(45deg);
    width: 60%;
	background-color: #fff;
}

@media screen and (max-width:550px) {
.openbtn span:nth-of-type(2) {
    font-size: 0.8rem;
    }
}

/*現在地ハイライト*/
#header{
	position: fixed;
	height: 100px;
	width:100%;
    z-index: 9;
	display: flex;
	justify-content: center;
	align-items: center;
    background: #fff;
}

@media screen and (max-width:990px) {
#header{
    height: 75px;
    }  
}

#pc-nav ul{
	list-style: none;
	display: flex;
	justify-content: center;
	margin-left:  250px;
}

#pc-nav li a{
	display: block;
	text-decoration: none;
	color: #333;
	padding:0 20px;
	transition:all 0.3s;
}

#pc-nav li.current a,
#pc-nav li a:hover{
	color:#12c2e9;
}

/* のびるライン*/
.scrollgress{
	z-index: 99;
}

/* ページトップ */
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background: #f64959;
	width: 60px;
	height: 60px;
	color: #fff;
	text-align: center;
	text-decoration: none;
	font-size:0.8rem;
	transition:all 0.3s;
}

#page-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 9;
	opacity: 0;
	transform: translateX(100px);
}

#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);
  }
}

/* トップのパララックス部分*/
#top-main{
	width:100%;
	height: 90vh;
	position: relative;
} 

#top-main:before{
	content: '';
	position:fixed;
	top: 15vh;
	left: 5%;
	z-index:-1;
	width:90%;
	height: 100vh;
	background:url("../img/main.jpg") no-repeat center;
	background-size:cover;
}

.scroll-down{
  display: inline-block;
  position:absolute;
  left: 5%;
  bottom: 10px;
  height: 50px;
  writing-mode: vertical-lr;
}

@media screen and (max-width:550px) {
	.scroll-down{
	left: 6.5%;
	}
}

.scroll-down span{
  position: absolute;
  left:-25px;
  top: -50px;
  color: #333;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-down:after {
  content: "";
  position: absolute;
  top: 0;
  left: -15px;
  width: 1px;
  height: 30px;
  background: #333;
  animation: pathmove 1.8s ease-in-out infinite;
  opacity:0;
}

@keyframes pathmove{
  0%{
    height:0;
    top:0;
    opacity: 0;
  }
  30%{
    height:30px;
    opacity: 1;
  }
  100%{
    height:0;
    top:50px;
    opacity: 0;
  }
}

@media screen and (max-width:768px) {
#top-main:before{
    background-position: top center;
    background-size:auto 90%;
    }
}

#container{
	position: relative;
	z-index:1;
	background:#f3f3f3;
}

/* スクロールアニメーション*/

.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);
  }
}