@charset "UTF-8";

#drawer {
    position: absolute;
    top: 0;
    right: 0;	
}
#drawer-content {
	overflow: auto;
    position: fixed;
    top: 0;
    right: 0;
    padding: 5vw 6% 25vw;
	box-sizing: border-box;
	z-index: 501;
    width: 100%;		/*開く部分の幅*/
    min-width: 100%;	/*開く部分の幅*/
    height: 100%;
    background: #FFF;	/*開く部分の背景色*/
    transition: all 0.3s ease-in-out 0s;
	transform: translateX(100%);	/*横から開く：translateX、上から開く：translateY（左右上下からの方向はtop/rightを変更）*/
}
#drawer-checkbox:checked ~ #drawer-content {
	transform: translateX(0);	/*横から開く：translateX、上から開く：translateY*/
}
#drawer-checkbox {
	display: none;
}
#drawer-icon {	
	position: fixed;
	z-index: 504;
	display: block;
	text-align: center;
	border: none;
	outline: 0;
	transition: all .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
	transform: translate3d(0, 0, 0);
	cursor: pointer;
}

/*ハンバーガーメニューデザイン*/
.drawer-hamburger {
	background-color: var(--color_nvy);
	top: 1.4em;
	right: 1.4em;
	width: 6em;
	height: 6em;
	box-sizing: border-box;
	padding-top: 2.8em;
	font-size: 2.3vw;
	letter-spacing: .15em;
	line-height: 1;
	border-radius: 1em;
}
.drawer-hamburger-icon {
	position: relative;
	display: block;
	background-color: #FFF;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	left: 0;
	right: 0;
	margin: 0 auto;
	transition: width .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
}
.drawer-hamburger-icon:before,
.drawer-hamburger-icon:after {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	background-color: #FFF;
	border-radius: inherit;
	left: 0;
	top: 0;
}
.drawer-hamburger-icon:before {
	left: -1.2em;
}
.drawer-hamburger-icon:after {
	left: 1.2em;
}
/* .drawer-hamburger-icon {
	position: relative;
	display: block;
	background-color: #FFF;
	width: 2.5em;
	height: 2px;
	border-radius: 1px;
	left: 0;
	right: 0;
	margin: 0 auto;
}
.drawer-hamburger-icon:before,
.drawer-hamburger-icon:after {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	background-color: #FFF;
	border-radius: inherit;
	left: 0;
	top: 0;
	transition: width .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
}

#drawer-checkbox:not(:checked) ~ #drawer-icon .drawer-hamburger-icon,
#drawer-checkbox:not(:checked) ~ #drawer-icon .drawer-hamburger-icon:before,
#drawer-checkbox:not(:checked) ~ #drawer-icon .drawer-hamburger-icon:after {
	width: 5px;
	height: 5px;
	border-radius: 50%;
}
#drawer-checkbox:not(:checked) ~ #drawer-icon .drawer-hamburger-icon:before {
	left: -1em;
}
#drawer-checkbox:not(:checked) ~ #drawer-icon .drawer-hamburger-icon:after {
	left: 1em;
} */
/*メニューが開いた時の処理*/
#drawer-checkbox:checked ~ #drawer-icon .drawer-hamburger-icon {
	width: 2em;
	height: 2px;
	background-color: transparent;
	border-radius: 2px;
}
#drawer-checkbox:checked ~ #drawer-icon .drawer-hamburger-icon::before,
#drawer-checkbox:checked ~ #drawer-icon .drawer-hamburger-icon::after {
	left: 0;
}
#drawer-checkbox:checked ~ #drawer-icon .drawer-hamburger-icon::before {
    rotate: -45deg;
}
#drawer-checkbox:checked ~ #drawer-icon .drawer-hamburger-icon::after {
    rotate: 45deg;
}