@charset "utf-8";
/* -----------------------------------------
   hamburger
----------------------------------------- */
.menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	padding: 8px;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.menu-toggle span {
	display: block;
	width: 26px;
	height: 2px;
	background: #fff;
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
}


/* ハンバーガー → × */
.menu-toggle.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}


/* =========================================
   nav SP
========================================= */
.nav {
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;

	transform: translateY(-5px);

	background: #000;

	transition:
		max-height 0.35s ease,
		opacity 0.25s ease,
		transform 0.25s ease,
		visibility 0.25s;
}


/* メニューOPEN */
.nav.active {
	max-height: 600px;
	opacity: 1;
	visibility: visible;

	transform: translateY(0);
}


.nav > ul > li {
	border-top: 1px solid #444;
}

.nav > ul > li > a {
	display: block;

	padding: 1.2rem 1.5rem;

	font-size: 1.4rem;
	text-align: center;
}



/* タブレット (768px〜) */
@media (min-width: 768px) {
/* =========================================
	   nav
========================================= */
	/* ハンバーガー非表示 */
	.menu-toggle {
		display: none;
	}


	.nav {
		max-height: none;
		opacity: 1;
		visibility: visible;
		overflow: visible;

		transform: none;

		width: 100%;
		max-width: 1200px;
		margin: 0 auto ;

		background: #000;
	}


	.nav > ul {
		display: flex;
		align-items: stretch;
	}


	.nav > ul > li {
		position: relative;

		flex: 1;

		border-top: none;
		border-right: 1px solid #555;
		text-align: center;
	}


	.nav > ul > li:first-child {
		border-left: 1px solid #555;
	}


	.nav > ul > li > a {
		display: flex;
		align-items: center;
		justify-content: center;

		min-height: 50px;
		padding: 1rem;

		font-size: 1.5rem;
		line-height: 1.4;
	}


	.nav > ul > li > a:hover {
		background: #222;
	}


	
}