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

/*アクティブになったエリア*/
#drawer_nav.panelactive{
	position: fixed;
	z-index: 999;
	top: 0;
	width: 100%;
	height: 100vh;
}
/*丸の拡大*/
.circle_bg{
	position: fixed;
	z-index: 3;
	/*丸の形*/
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background-color: var(--bg-color);
	/*丸のスタート位置と形状*/
	transform: scale(0);/*scaleをはじめは0に*/
	right: 0;
	top: 0;
	transition: all .3s;
}
.circle_bg.circleactive{
	transform: scale(50);/*クラスが付与されたらscaleを拡大*/
}
/*ナビゲーションの縦スクロール*/
#drawer_nav__list{
	display: none;
	/*ナビの数が増えた場合縦スクロール*/
	position: fixed;
	z-index: 999; 
	width: 100%;
	height: 100vh;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
#drawer_nav.panelactive #drawer_nav__list{
	display: block; /*クラスが付与されたら出現*/
}
/*ナビゲーション*/
#drawer_nav ul{
	opacity: 0;
	z-index: 999;
}
/*背景が出現後にナビゲーションを表示*/
#drawer_nav.panelactive ul{
	opacity:1;
}
/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#drawer_nav.panelactive ul li{
	animation-name: gnaviAnime;
	animation-duration: 1s;
	animation-delay: 0.1s;/*0.1 秒遅らせて出現*/
	animation-fill-mode: forwards;
	opacity: 0;
}
@keyframes gnaviAnime{
	0%{
		opacity: 0;
	}100%{
		opacity: 1;
	}
}
/*リストのレイアウト設定*/
#drawer_nav li{
	text-align: center; 
	list-style: none;
}
#drawer_nav li a{
	text-decoration: none;
	display: block;
}
/*========= ボタンのためのCSS ===============*/
.openbtn{
	position:fixed;
	top: -30px;
	right: -30px;
	z-index: 9999;/*ボタンを最前面に*/
	cursor: pointer;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background-color: #fff;
	border: 3px solid;
	border-color: var(--brown);
}
/* ×に変化 */	
.openbtn span{
	display: inline-block;
	transition: all .4s;
	position: absolute;
	right: 40%;
	height: 2px;
	border-radius: 1px;
	background-color: var(--brown);
	width: 30%;
}
.openbtn p{
	display: inline-block;
	transition: all .4s;
	position: absolute;
	right: 5%;
	bottom: 38%;
	height: 2px;
	color: var(--brown);
	font-size: 12px;
	letter-spacing: 0;
	font-weight: bold;
	width: 100%;
}
.openbtn.active{
	background-color: #fff;
}
.openbtn.active span{
	background-color: var(--brown);
}
.openbtn span:nth-of-type(1){
	top: 64px;	
}
.openbtn span:nth-of-type(2){
	top: 78px;
}
.openbtn.active span:nth-of-type(1){
	top: 66px;
	transform: translateY(6px) rotate(-45deg);
}
.openbtn.active span:nth-of-type(2){
	top: 77px;
	transform: translateY(-6px) rotate(45deg);
}
.openbtn.active span:nth-of-type(1),
.openbtn.active span:nth-of-type(2){
	right: 40%;
	width: 30%;
}

@media screen and (max-width: 650px){
	.openbtn{
		width: 136px;
		height: 136px;
	}
	.openbtn span{
		right: 40%;
		height: 2px;
	}
	.openbtn span:nth-of-type(1){
		top: 56px;	
	}
	.openbtn span:nth-of-type(2){
		top: 70px;
	}
	.openbtn.active span:nth-of-type(1){
		top: 56px;
	}
	.openbtn.active span:nth-of-type(2){
		top: 69px;
	}
}