@charset "utf-8";


/*========= ボタンのためのCSS ===============*/
.openbtn{
  margin-left: auto; /* 右寄せ */
	position:relative;
	z-index: 9999;/*ボタンを最前面に
	/* top:10px; */
	/* right: 10px; */
	cursor: pointer;
  width: 50px;
  height:50px;
  border-radius: 5px;
  display: none;
}

/*×に変化*/	
.openbtn span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  /* background-color: #eee; */
  background-color: rgb(0, 0, 0);
  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%;
}

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

/*アクティブクラスがついたらメニュー表示*/
#g-nav.panelactive{
  display: block;
}

@media screen and (max-width:768px){
  .openbtn {
    display: block;
  }

	nav {
		display: none;
	}
	
}