@charset "utf-8";

/*========= ナビゲーションのためのCSS ===============*/

#g-nav{
    /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
    position:fixed;
	z-index: -1;
	opacity: 0;/*はじめは透過0*/
    /*ナビの位置と形状*/
	top:0;
	width:100%;
    height: 100vh;/*ナビの高さ*/
	background:#636364;
    /*動き*/
	transition: all 0.3s;
}

/*アクティブクラスがついたら透過なしにして最前面へ*/
#g-nav.panelactive{
	opacity: 1;
	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:10px;
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: bold;
}

.g-nav-inner{
	width: 40%;
	position: absolute;
    z-index: 999;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

@media screen and (max-width: 960px) {

.g-nav-inner{
	width: 95%;
	position: absolute;
    z-index: 999;
    top:38%;
    left: 50%;
    transform: translate(-50%,-50%);
}
}

.g-nav-inner h3{
	text-align: center;
	font-size: 28px;
	font-family: 'Kozuka Mincho Pro', 'Kozuka Mincho Std', '小塚明朝 Pro R', '小塚明朝 Std R', 'Hiragino Mincho Pro', 'ヒラギノ明朝 Pro W3', 'ＭＳ Ｐ明朝', 'Times', 'Times New Roman', serif;
	margin: 30px 0 15px 0;
}

.g-nav-inner h3 img{
	width: 85%;
}

.g-nav-inner .menutit{
	text-align: center;
	font-size: 25px;
	color: #fff;
	font-family: 'Kozuka Mincho Pro', 'Kozuka Mincho Std', '小塚明朝 Pro R', '小塚明朝 Std R', 'Hiragino Mincho Pro', 'ヒラギノ明朝 Pro W3', 'ＭＳ Ｐ明朝', 'Times', 'Times New Roman', serif;
	margin: 20px 0 10px 0;
}

.g-nav-inner .menutit span{
	border-bottom: 1px solid #fff;
}

.g-nav-inner .menutit img{
	width: 85%;
}

.g-nav-inner .menulink{
	text-align: center;
	margin: 25px 0 15px 0;
}

.g-nav-inner .menulink a{
	font-size: 14px;
	color: #fff;
}

@media screen and (max-width: 960px) {

.g-nav-inner h3{
	font-size: 16px;
	
	margin: 30px 0 5px 0;
}

.g-nav-inner .menutit{
	font-size: 15px;
	margin: 10px 0 5px 0;
}

.g-nav-inner .menutit span{
}

.g-nav-inner .menulink{
	margin: 10px 0 5px 0;
}

.g-nav-inner .menulink a{
	font-size: 12px;
}
}

/*========= ボタンのためのCSS ===============*/

.openbtn{
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	top:65px;
	right: 15px;
	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: #fff;
  	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: 18px;
    left: 14px;
    transform: translateY(6px) rotate(-45deg);
    width:60%;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 14px;
    transform: translateY(-6px) rotate(45deg);
    width:60%;
}

.openbtn-menu{
	position:fixed;
    z-index: 9999;
	top:102px;
	right: 6px;
    width: 50px;
    height:50px;
}

.openbtn-menu p{
	color:#fff;
}


