@charset "utf-8";

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

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

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

.hamburger p {
	position: absolute;
	bottom: 15%;
	left: 50%;
	transform: translate(-50%, 0);
	width: fit-content;
	font-size: 0.625rem;
	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: 20%;
	width: 60%;
}

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

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

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

.hamburger.is-active span:nth-child(2) {
	top: 35%;
	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: auto;
		height: 100%;
	}

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

@media screen and (min-width: 1280px) {
	.hamburger p {
		font-size: 0.7rem;
	}
}

@media screen and (min-width: 1440px) {
	.hamburger p {
		font-size: 1rem;
	}
}

@media screen and (min-width: 1920px) {
	.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: #291ea7;
    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: 0;
}

.drawer_content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0;
	width: max-content;
	max-width: 95%;
}

.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: 48px;
	width: 100%;
}

.drawer_content nav ul li {
	width: 100%;
	text-align: center;
}

.drawer_content nav ul li a {
	display: block;
	width: 100%;
	/* padding: 8px; */
	line-height: 1;
	color: #ffffff;
}

.drawer_content nav ul 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) {
	.drawer_content nav ul li a {
		font-size: 1.125rem;
	}
}

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