@charset "utf-8";
/* CSS Document */

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

#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 503;
    /*ナビのスタート位置と形状*/
	top:0;
    right: -120%;
	width:75%;
    height: 100vh;/*ナビの高さ*/
	background:#333;
	opacity: 95%;
    /*動き*/
	transition: all 0.6s;
}
/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
    right: 0;
}
/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position:absolute;
    top:170px;
	width: 100%;
}



@media(min-width:955px) {
#g-nav{
    position:absolute;
    z-index: 501;

    /*ナビのスタート位置と形状*/
	top:0px;
    right: 0px;
	width:100%;
    height: 126px;/*ナビの高さ*/
	background:#fff;
}
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: relative;
    top:36px;
	right: 60px;
	width: 100%;
	text-align: right;
}
}





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

#g-nav li{
	list-style: none;
}
.g-nav li{
    text-align: left;
	border-top:1px solid #888888;
}
.g-nav li:last-child{
 border-bottom:1px solid #888888;
}
.g-nav li a{
	font-size: 1.7rem;
	color: #fff;
	text-decoration: none;
	padding:22px 0px 22px 55px;
	display: block;
	letter-spacing: 0.1em;
	font-weight: bold;
}

@media(min-width:955px) {

.g-nav li{
	display: inline-block;
    text-align: center;
	border-top:0px;
	border-left:2px solid #888;
	width: 140px;
	height: 18px;
}
.g-nav li:last-child{
 border-bottom:0px;
 border-right:2px solid #888;
}
	
.g-nav li a{
	height: 18px;
	font-size: 1.6rem;
	line-height: 18px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	padding:0px 0px 0px 6px;
	margin-top: 1px;
	letter-spacing: 0.15em;
}	
}



/*========= ボタンのためのCSS ===============*/
.openbtn{
	position:fixed;
    z-index: 504;/*ボタンを最前面に*/
	top:10px;
	right: 10px;
	cursor: pointer;
    width: 65px;
    height:65px;
}
	
/*×に変化*/	
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 2px;
    border-radius: 1px;
	background-color: #333;
  	width: 50%;
  }

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

.openbtn span:nth-of-type(2) {
	top:25px;
}

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

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    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: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 60%;
		background-color: #fff;

}
@media(min-width:955px) {
.openbtn{
	display: none;
}
}