@charset "utf-8";

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

#g-nav{
    position:fixed;
    z-index: 999;
    top:0;
	right:-120%;
	width:400px;
    height: 100vh;
	background:rgba(255,255,255,0.9);
	transition: all 0.6s;
}
@media only screen and (max-width: 576px) {
#g-nav{
	width:100%;
}
}

#g-nav.panelactive{
	right:0;
}

#g-nav.panelactive #g-nav-list{
    position: fixed;
    z-index: 999; 
    width: 400px;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
@media only screen and (max-width: 576px) {
#g-nav.panelactive #g-nav-list{ 
    width: 100%;
}
}

#g-nav .flbox a{
	display: block;
	padding:20px 10px;
	color:#fff!important;
	font-weight: 500;
}

.menubtn1{width: calc(70% - 5px);margin-right: 5px;font-weight: 500!important;}
.menubtn2{width: 30%;}

.menubtn1,.menubtn2{
	position: relative;
}
.menubtn1::after,.menubtn2::after{
	content:"";
	position: absolute;
	bottom: 5px;
	right: 5px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 8px 8px;
	border-color: transparent transparent rgba(255,255,255,0.9) transparent;
	z-index: 1;
}

#g-nav ul {
    z-index: 999;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	flex-direction: row;
}


#g-nav li{
	position: relative;
	list-style: none;
    text-align: center; 
	background-color: #fff;
	margin: 0 2px 4px;
	width: 100%;
	border: 2px solid #E1CD9B;
}
#g-nav li::after{
	content:"";
	position: absolute;
	bottom: 5px;
	right: 5px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 8px 8px;
	border-color: transparent transparent rgba(225,205,155,1) transparent;
	z-index: 1;
}

#g-nav li a{
	color:#3E392E;
	text-decoration: none;
	padding:10px;
	display: block;
	letter-spacing: 0.1em;
	font-weight: 600!important;
	font-size: 14px;
}

/*========= button ===============*/
.openbtn{
	margin: auto;
	position:relative;
    z-index: 9999;
	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: 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%;
	background-color: #454F5C;
}

.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%;
	background-color: #454F5C;
}
