/* Hamburger */
.hamberger {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--White);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	will-change: transform, opacity;
}

.hamberger:hover {
	background: transparent;
	color: var(--White);
	opacity: 0.7;
}

.site-header.is-dark .hamberger {
	color: var(--Black);
}

.site-header.is-dark .hamberger:hover {
	color: var(--Black);
}

.hamberger.is-hidden {
	pointer-events: none;
}

/* Site Nav */
.site-nav {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: var(--White);
	color: var(--Black);
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
	will-change: clip-path;
}

.site-nav.is-open {
	visibility: visible;
	pointer-events: auto;
}

.site-nav__inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	height: 100dvh;
	padding:
		max(72px, calc(env(safe-area-inset-top, 0px) + 56px))
		max(24px, env(safe-area-inset-right, 0px))
		max(24px, env(safe-area-inset-bottom, 0px))
		max(24px, env(safe-area-inset-left, 0px));
}

.navClose {
	position: absolute;
	top: max(24px, env(safe-area-inset-top, 0px));
	right: max(24px, env(safe-area-inset-right, 0px));
	z-index: 2;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--Black);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	will-change: transform, opacity;
}

.navClose:hover {
	background: transparent;
	color: var(--Black);
	opacity: 0.6;
}

/* A — Marquee */
.site-nav__section-a {
	flex-shrink: 0;
	width: 100%;
	overflow: hidden;
}

.nav-swiper {
	--nav-swiper-gap: 16px;
	width: 100%;
	overflow: visible;
}

.nav-swiper .swiper-wrapper {
	transition-timing-function: linear !important;
}

.nav-swiper .swiper-slide {
	width: calc((100% - (var(--nav-swiper-gap) * 4)) / 5);
	height: clamp(160px, 25vh, 260px);
}

.nav-swiper .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (orientation: portrait) {
	.nav-swiper .swiper-slide {
		width: calc((100% - (var(--nav-swiper-gap) * 3)) / 4);
	}
}

/* B — CONTENTS */
.site-nav__section-b {
	flex-shrink: 0;
	width: 100%;
	padding: clamp(12px, 2.5vh, 28px) 0;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-nav__title h2 {
	margin: 0;
	font-family: var(--Serif);
	font-size: 19vw;
	font-weight: 500;
	line-height: 0.88;
	letter-spacing: -0.03em;
	color: var(--Black);
	text-align: center;
	white-space: nowrap;
}

/* C — Menu */
.site-nav__section-c {
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.site-nav__section-c::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.site-nav__list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	width: min(1320px, 100%);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(14px, 2.5vh, 28px) clamp(12px, 2vw, 24px);
	text-align: center;
}

.site-nav__list li {
	overflow: hidden;
}

.site-nav__list a {
	display: flex;
	align-items: flex-start;
	gap: clamp(8px, 1.2vw, 14px);
	font-family: var(--Serif);
	line-height: 1.45;
	color: var(--Black);
	text-align: left;
	will-change: transform, opacity;
}

.site-nav__num {
	flex-shrink: 0;
	font-family: var(--Sans);
	font-size: clamp(10px, 1vw, 12px);
	font-weight: 500;
	line-height: 1.6;
	color: var(--Gray);
	letter-spacing: 0.04em;
}

.site-nav__text {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.site-nav__main {
	font-family: var(--Serif);
	font-size: clamp(13px, 1.4vw, 20px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--Black);
	white-space: nowrap;
}

.site-nav__sub {
	font-family: var(--Sans);
	font-size: clamp(10px, 1vw, 12px);
	font-weight: 400;
	line-height: 1.4;
	color: var(--Gray);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list a.active {
	background: transparent;
	opacity: 0.5;
}

.site-nav__list a:hover .site-nav__main,
.site-nav__list a:hover .site-nav__sub,
.site-nav__list a:hover .site-nav__num,
.site-nav__list a.active .site-nav__main,
.site-nav__list a.active .site-nav__sub,
.site-nav__list a.active .site-nav__num {
	color: inherit;
}

html.nav-open {
	overflow: hidden !important;
	overscroll-behavior: none;
}

html.nav-open,
html.nav-open body {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html.nav-open::-webkit-scrollbar,
html.nav-open body::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

body.nav-open {
	overflow: hidden;
	touch-action: none;
}

/*////RWD////*/
@media screen and (max-width: 1280px) {
	.site-nav__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 1024px) {
	.hamberger,
	.navClose {
		width: 44px;
		height: 44px;
		font-size: 20px;
	}

	.site-nav__inner {
		padding-top: max(64px, calc(env(safe-area-inset-top, 0px) + 48px));
	}

	.site-nav__title h2 {
		font-size: 19.5vw;
	}

	.site-nav__list {
		grid-template-columns: repeat(3, 1fr);
		gap: clamp(12px, 2vh, 50px) clamp(10px, 2vw, 20px);
	}

	.nav-swiper .swiper-slide {
		height: clamp(64px, 12vh, 108px);
	}
}

/* 1024 x 768 (tablet landscape) */
@media screen and (max-width: 1024px) and (min-width: 900px) and (min-height: 700px) and (max-height: 820px) {
	.nav-swiper .swiper-slide {
		height: clamp(96px, 16vh, 132px);
	}
}

@media screen and (max-width: 480px) {
	.hamberger,
	.navClose {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.site-nav__inner {
		padding:
			max(56px, calc(env(safe-area-inset-top, 0px) + 44px))
			max(16px, env(safe-area-inset-right, 0px))
			max(16px, env(safe-area-inset-bottom, 0px))
			max(16px, env(safe-area-inset-left, 0px));
	}

	.site-nav__section-b {
		padding: clamp(8px, 1.5vh, 16px) 0;
	}

	.site-nav__title h2 {
		white-space: normal;
		line-height: 0.92;
	}

	.site-nav__list {
		grid-template-columns: 1fr;
		gap: clamp(10px, 1.8vh, 18px);
	}

	.site-nav__main,
	.site-nav__sub {
		white-space: normal;
	}

	.site-nav__main {
		font-size: clamp(15px, 4.2vw, 18px);
	}

	.site-nav__num,
	.site-nav__sub {
		font-size: clamp(9px, 2.6vw, 11px);
	}

	.nav-swiper .swiper-slide {
		width: calc((100% - (var(--nav-swiper-gap) * 2)) / 3);
		height: clamp(56px, 10vh, 80px);
	}

	.site-nav__section-c {
		margin-top: 20px;
	}
}

@media screen and (max-width: 360px) {
	.site-nav__title h2 {
		font-size: 36px;
	}

	.site-nav__main {
		font-size: 14px;
	}

	.site-nav__num,
	.site-nav__sub {
		font-size: 9px;
	}
}
