@charset "utf-8";

/* --------- hamburger ---------- */

.hamburger {
	position: relative;
	width: auto;
	height: 100%;
	aspect-ratio: 1 / 1;
	background-color: transparent;
	font-weight: 900;
	cursor: pointer;
	z-index: 101;
}

.hamburger.is-active {
	background-color: transparent;
}

.hamburger p {
	position: absolute;
	bottom: 7.5%;
	left: 50%;
	transform: translate(-50%, 0);
	width: fit-content;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.hamburger p:nth-of-type(2) {
	opacity: 0;
}

.hamburger.is-active p {
	color: #85BF9C;
}

.hamburger.is-active p:nth-of-type(1) {
	opacity: 0;
}

.hamburger.is-active p:nth-of-type(2) {
	opacity: 1;
}

.hamburger span {
	position: absolute;
	left: 20%;
	transform: translate(0, 0);
	width: 60%;
	height: 2px;
	border-radius: 4px;
	background-color: #fff;
	transition: transform .3s;
}

.hamburger.is-active span {
	background-color: #85BF9C;
}

.hamburger span:nth-child(1) {
	top: 30%;
	width: 60%;
}

.hamburger span:nth-child(2) {
	top: 50%;
	width: 60%;
}

.hamburger span:nth-child(3) {
	top: 70%;
	width: 60%;
}

.hamburger.is-active span:nth-child(1) {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(135deg);
	width: 50%;
	opacity: 1;
}

.hamburger.is-active span:nth-child(2) {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-135deg);
	width: 50%;
	opacity: 1;
}

.hamburger.is-active span:nth-child(3) {
	opacity: 0;
}

@media screen and (min-width: 768px) {
	.hamburger {
		width: 120px;
		height: auto;
	}

	.hamburger p {
		font-size: 0.5rem;
	}
}

@media screen and (min-width: 1280px) {
	.hamburger {
		width: 180px;
	}

	.hamburger p {
		font-size: 0.7rem;
	}
}

@media screen and (min-width: 1440px) {
	.hamburger span {
		height: 4px;
	}

	.hamburger p {
		font-size: 1rem;
	}
}

@media screen and (min-width: 1920px) {
	.hamburger {
		width: 240px;
	}

	.hamburger p {
		font-size: 1.2rem;
	}
}

/* ---------- drawer ---------- */

.drawer {
	visibility: hidden;
	opacity: 0;
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100vh;
	transition: opacity .3s, visibility .3s;
	z-index: 100;
	background-color: #fff;
    overflow-y: auto; /* はみ出したら縦スクロール */
    -webkit-overflow-scrolling: touch; /* スマホでスムーズスクロール */
}

.drawer.is-active {
	visibility: visible;
	opacity: 1;
	z-index: 100;
}

.drawer_inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 24px;
	width: 100%;
	height: max-content;
	min-height: 100%;
	margin: 0;
	padding: 24px 0;
}

.drawer_content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0;
	width: 80%;
	font-family: "Noto Serif JP", serif;
}

.drawer_content .logo {
	width: 50%;
}

.drawer_content nav {
	width: 100%;
}

.drawer_content nav ul {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 24px;
	width: 100%;
}

.drawer_content nav ul li {
	width: 100%;
}

.drawer_content nav ul li .flex {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.drawer_content nav ul li .flex .main {
	width: 100%;
	padding: 0 0 12px 0;
	border-bottom: 1px #D9D9D9 solid;
}

.drawer_content nav ul li .flex .main a {
	position: relative;
	display: block;
	width: 100%;
	font-size: 0.875em;
	line-height: 1;
}

.drawer_content nav ul li .flex .main a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translate(0, -50%) rotate(45deg);
	width: 0.5em;
	height: auto;
	aspect-ratio: 1 / 1;
	border-top: 1px #D9D9D9 solid;
	border-right: 1px #D9D9D9 solid;
}

.drawer_content nav ul li .flex .list {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.drawer_content nav ul li .flex .list li {
	width: 100%;
	background-color: #F3F5F4;
}

.drawer_content nav ul li .flex .list li a {
	display: block;
	width: 100%;
	padding: 8px;
	font-size: 0.625em;
	line-height: 1;
}

.drawer_content nav ul li .flex .list li a span {
	display: block;
	width: 100%;
	text-align: center;
}

.drawer_content .btn_wrap {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.drawer_content .btn_wrap .btn {
	width: calc((100% - (12px * 1)) / 2);
}

@media screen and (min-width: 768px) {
	
}

@media screen and (min-width: 1280px) {
	
}

@media screen and (min-width: 1440px) {
	
}

@media screen and (min-width: 1920px) {
	
}
