/*========= ナビゲーションのための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: #fff;
	/*丸のスタート位置と形状*/
	transform: scale(0);/*scaleをはじめは0に*/
	right: 0px;
	top: 0px;
	transition: all .4s;
}
.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;/*はじめは透過0*/
	/*ナビゲーション天地中央揃え※レイアウトによって調整してください。不必要なら削除*/
/*	 position: absolute; */
	z-index: 999;
/*
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
*/
}
/*背景が出現後にナビゲーションを表示*/
#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: 14px;
	right: 14px;
	z-index: 9999;/*ボタンを最前面に*/
	cursor: pointer;
	width: 80px;
	height: 80px;
	border-radius: 40px;
	background: var(--font-black);
}
/* ×に変化 */	
.openbtn span{
	display: inline-block;
	transition: all .4s;
	position: absolute;
	left: 16px;
	height: 1px;
	border-radius: 0;
	background-color: #fff;
	width: 60%;
}
.openbtn.active{
	background: var(--orange);
}
.openbtn.active span{
	background-color: #fff;
}
.openbtn span:nth-of-type(1){
	top: 30px;	
}
.openbtn span:nth-of-type(2){
	top: 46px;
}
.openbtn.active span:nth-of-type(1){
	top: 33px;
	transform: translateY(6px) rotate(-45deg);
}
.openbtn.active span:nth-of-type(2){
	top: 45px;
	transform: translateY(-6px) rotate(45deg);
}
.openbtn.active span:nth-of-type(1),
.openbtn.active span:nth-of-type(2){
	left: 20px;
	width: 50%;
}

@media screen and (max-width: 650px){
	.openbtn{
		top: 14px;
		right: 10px;
		width: 50px;
		height: 50px;
		border-radius: 25px;
	}
	.openbtn span{
		left: 10px;
		width: 60%;
	}
	.openbtn span:nth-of-type(1){
		top: 20px;	
	}
	.openbtn span:nth-of-type(2){
		top: 30px;
	}
	.openbtn.active span:nth-of-type(1){
		top: 18px;
	}
	.openbtn.active span:nth-of-type(2){
		top: 30px;
	}
	.openbtn.active span:nth-of-type(1),
	.openbtn.active span:nth-of-type(2){
		left: 13px;
	}
}