@charset "utf-8";

/* CSS Document */


.hamburger
{
	z-index : 4000;
	aspect-ratio: 2 / 1;

	position: fixed;
	right: 1em;
	top: 1em;
	
	width: 2em;
	cursor: pointer;
	text-align: center;
}
/*
.hamburger .menu_name
{
	position: relative;
	top: 30px;
	font-size: 0.7em;
	color: #373E46;
}
*/
.hamburger>span
{
	display : block;

	position: absolute;
	width   : 100%;
	height  : 1px;

	background : rgb(var(--bk));

	-webkit-transition: 0.5s ease-in-out;
	-moz-transition   : 0.5s ease-in-out;
	transition        : 0.5s ease-in-out;
}
.hamburger span:nth-child(1)
{
	top: 0%;
}
.hamburger span:nth-child(2)
{
	top: 50%;
}
.hamburger span:nth-child(3)
{
	top: 100%;
}

/* ナビ開いてる時のボタン */
.hamburger.active span:nth-child(1)
{
	top: 50%;
	-webkit-transform: rotate(20deg);
	-moz-transform   : rotate(20deg);
	transform        : rotate(20deg);
}

.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3)
{
	top: 50%;
	-webkit-transform: rotate(-20deg);
	-moz-transform   : rotate(-20deg);
	transform        : rotate(-20deg);
}


/* <drawer> -------------------------------------------------------------------- */
.drawer
{
	z-index: 5000;

	position: fixed;
	top  : var(--header_h);
	top  : calc(var(--header_h) + 1em);
	right: 0;
	left: initial;

	width: 100%;
	height: 100vh;

	padding: 1em;

	background: rgb(255 255 255);
	color: rgb(var(--bk));
	text-align: center;

	transform: translateX(100%);
	transition: all 0.6s;
}
.drawer :is(a, .a)
{
	display: block;

	padding: 1em;
}

.drawer.scroll
{
	background-color: rgb(var(--w));
	transition-duration: 0.3s;
}
.drawer.scroll :is(a, .a)
{
}


.drawer.active {
	transform: translateX(0%);
}


.drawer>ul
{
	list-style: none;
	margin: unset;

	display: grid;
	justify-content: center;
	justify-items: start;
	gap: 0;
}

.drawer>ul>*
{
	width: 100%;
}


.drawer>ul .item.open::before
{
	transform: rotate(180deg);
}
.drawer>ul .item.open::after
{
	opacity: 0;
}


.drawer>ul .item:has(.child)::before
{
	content: "";
	position: absolute;
	top: 50%;
	right: 25px;
	width: 15px;
	height: 2px;
	/*縦線に*/
	transform: rotate(90deg);
	background: #666;
	transition: all .3s ease-in-out;
}

.drawer>ul .item:has(.child)::after
{
	content: "";
	position: absolute;
	top: 50%;
	right: 25px;
	/*横線*/
	width: 15px;
	height: 2px;
	background: #666;
	transition: all .2s ease-in-out;
}
.drawer .child
{
	padding-left: 3em;
	border: initial;
	font-size: 1.0em;
	text-align: left;
	background-color: whitesmoke;
}
.drawer .child p
{
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}
