@charset "utf-8";

#sp_box {
	display: none;
}

#spicon {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 56px;
	height: 56px;
	padding: 14px;
	border: 2px solid #8b8b8b;
	background: #fff;
	color: #222;
	cursor: pointer;
	transition: background-color 300ms, border-color 300ms;
}

#spicon span {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 300ms, opacity 300ms;
}

#spicon:hover {
	background: #ededed;
	border-color: #222;
}

#spicon:focus-visible {
	outline: 2px solid #3f647c;
	outline-offset: 5px;
}

#spicon.m_active span:nth-child(1) {
	transform: translateY(11px) rotate(45deg);
}

#spicon.m_active span:nth-child(2) {
	opacity: 0;
}

#spicon.m_active span:nth-child(3) {
	transform: translateY(-11px) rotate(-45deg);
}

#open_menu {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: #222;
	color: #fff;
	overflow-y: auto;
	overscroll-behavior: contain;
	animation: spmenu_open 200ms ease-out;
}

#open_menu[hidden] {
	display: none;
}

#center_box {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-height: 100%;
	padding: 45px 8% 30px;
}

.spmenu_logo {
	width: 110px;
}

.spmenu_logo a,
.spmenu_logo img {
	display: block;
	width: 100%;
}

.spmenu_links {
	border-top: 1px solid #888;
	font-size: clamp(22px, calc(16px + 1cqi), 30px);
	font-weight: 600;
}

.spmenu_links li {
	border-bottom: 1px solid #888;
	animation: spmenu_item 600ms ease-out both;
}

.spmenu_links li:nth-child(2) { animation-delay: 60ms; }
.spmenu_links li:nth-child(3) { animation-delay: 120ms; }
.spmenu_links li:nth-child(4) { animation-delay: 180ms; }

.spmenu_links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 25px 0;
}

.spmenu_links a::after {
	content: "";
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	border-top: 1px solid;
	border-right: 1px solid;
	transform: rotate(45deg);
	transition: transform 300ms;
}

.spmenu_links a:hover::after {
	transform: translateX(5px) rotate(45deg);
}

.spmenu_copyright {
	margin-top: auto;
}

html.spmenu_open {
	overflow: hidden;
}

@keyframes spmenu_open {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes spmenu_item {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@media only screen and (max-width: 1024px) {
	#sp_box { display: block; container-type: inline-size; }
}

@media only screen and (max-width: 480px) {
	#spicon { top: 15px; right: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	#open_menu,
	.spmenu_links li { animation: none; }
	#spicon,
	#spicon span,
	.spmenu_links a::after { transition: none; }
}


