@charset "utf-8";


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

@media screen and (max-width:1199px) {
/*アクティブになったエリア*/
#g-nav.panelactive{
    position:fixed;
    z-index: 999;
	width:100%;
    height: 100vh;
}
	
#g-nav-list{
    position:fixed;
     display: block;
	top: 0;
	right: -180px;
	background-color: #B5A8A8;
	transition: all 0.6s;
    z-index: 999; 
    width: 180px;
    height: 100vh;
    overflow: auto;
}
	
#g-nav.panelactive #g-nav-list{
	right: 0;
	transition: all 0.6s;
}

/*ナビゲーション*/
#g-nav ul {
    position: absolute;
	top:60px;
	padding: 0;
}

}

.openbtn{
    display: none;
}

@media screen and (max-width:1199px) {
/*==================================================
　機能編 5-2-5 MENUが×に
===================================*/

/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.openbtn{
    display: block;
	position: fixed;
    z-index: 9999;
    cursor: pointer;
    top:20px;
    right:20px;
    width: 48px;
    height:48px;
    border:1px solid #B5A8A8;
}

/*ボタン内側*/
.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
  }

.openbtn span:nth-of-type(1),
.openbtn span:nth-of-type(3) {
    height: 1px;
	background: #B5A8A8;
  	width: 62%;
    left: 10px;
 }

.openbtn span:nth-of-type(1) {
	top:11px;	
}

.openbtn span:nth-of-type(2) {
	top:17px;
	left:10px;
	font-size:9px;
	text-transform: uppercase;
	color: #B5A8A8;
}

.openbtn span:nth-of-type(3) {
	top:36px;
}

/*activeクラスが付与されると線が回転して×になり、Menu表記をしている2つ目の要素が透過して消える*/
.openbtn.active{
    border:1px solid #fff;
}
.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 16px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
	background-color: #fff!important;
}

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

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

}
@media screen and (max-width:990px) {
.openbtn{
    top:10px;
    right:10px;
}
}

/* g-navi */

#main-nav{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

#g-nav ul{
    display: flex;
	list-style: none!important;
	margin: 0;
}

#g-nav ul li a{
    display: block;
    padding: 1em;
    position: relative;
    transition:all 0.3s;
	line-height: 1.3;
	font-weight: 600;
}
#g-nav ul li a span{
	font-size: 0.75em;
	font-weight: 500;
}


@media screen and (max-width:1199px) {
#g-nav ul{
    display: block;
    justify-content: center;
}
#g-nav ul li a{
    padding: 15px;
    color: #fff;
}
}

/*高さ・位置・透過が変化して線が上から下に動く*/
@keyframes gnavipathmove{
	0%{
		height:0;
		top:0;
		opacity: 0;
	}
	30%{
		height:20px;
		opacity: 1;
	}
	100%{
		height:0;
		top:30px;
		opacity: 0;
	}
}
