@charset "utf-8";

.g_nav {
	background: rgba(255, 255, 255, 0.85);
	padding: 30px;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
}

/* メニューを閉じる時のスタイル

 display:none; を使用せず、opacityを使うとfadeっぽくなる */

.hide {
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
}

/* アニメーションはメニューの開閉時のみでいいので

 .toggleWrapに書かず、別にclassを用意 */

.animation {
	-webkit-transition-property: opacity, visibility;
	transition-property: opacity, visibility;
	-webkit-transition-duration: .3s;
	transition-duration: .3s;
	-webkit-transition-timing-function: ease-in;
	transition-timing-function: ease-in;
}

/* メニューオープン時のみ、メニューの後ろのコンテンツをスクロールさせない

 iOS safariには別途対応が必要（jQueryに記述）*/

.no-scroll {
	overflow: hidden;
}

#toggle {
	display: block;
	color: #fff;
	text-align: center;
	width: 70px;
	height: 70px;
	position: absolute;
	top: 0px;
	right: 0px;
	z-index: 10;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
}

.trigger,
.trigger span {
	display: inline-block;
	-webkit-transition: all .4s;
	transition: all .4s;
}

.trigger {
	position: relative;
	width: 28px;
	height: 19px;
}

.trigger span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #333333;
	border-radius: 4px;
}

.trigger span:nth-of-type(1) {
	top: 0;
}

.trigger span:nth-of-type(2) {
	top: 8px;
}

.trigger span:nth-of-type(2)::after {
	position: absolute;
	top: 0;
	left: 0;
	content: '';
	width: 100%;
	height: 3px;
	background-color: #333333;
	border-radius: 4px;
	-webkit-transition: all .4s;
	transition: all .4s;
}

.trigger span:nth-of-type(3) {
	bottom: 0;
}

.trigger.active span:nth-of-type(1) {
	-webkit-transform: translateY(8px) scale(0);
	transform: translateY(8px) scale(0);
}

.trigger.active span:nth-of-type(2) {
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

.trigger.active span:nth-of-type(2)::after {
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
}

.trigger.active span:nth-of-type(3) {
	-webkit-transform: translateY(-8px) scale(0);
	transform: translateY(-8px) scale(0);
}

@media screen and (min-width: 836px) {
	#toggle {
		display: none;
	}

	.g_nav {
		padding: 0;
		background: none;
		height: auto;
		position: static;
	}

	.menu {
		display: block;
	}

	.animation {
		-webkit-transition: none;
		transition: none;
	}

	/* 非表示にしていたメニューを表示させる */

	.hide {
		opacity: 1;
		visibility: visible;
	}
}

@media screen and (max-width: 835px) {
	#toggle {
		width: 55px;
		height: 55px;
		top: 0;
		right: 0px;
	}

	.g_nav {
		width: 100%;
		padding:55px 0 0;
	}

	.g_nav ul li a {
		border-top: none !important;
	}

	#header.is-animation #toggle {
		width: 60px;
		height: 60px;
	}

	#header.is-animation .g_nav {
		width: 100%;
		padding: 63px 0 0;
	}
}

@media screen and (max-width: 640px) {

	#header #toggle,
	#header.is-animation #toggle {
		width: 60px !important;
		height: 60px !important;
	}

	.g_nav {
		padding: 63px 0 0;
	}

}