@charset "UTF-8";

@property --hd-l {
	syntax: "<number>";
	inherits: true;
	initial-value: 0;
}

@property --hd-line {
	syntax: "<number>";
	inherits: true;
	initial-value: 1;
}

@property --hd-cover {
	syntax: "<number>";
	inherits: true;
	initial-value: 1;
}

#hd {
	--hd-l: 0;
	--hd-line: 1;
	--hd-cover: 1;
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--hd-h);
	border-bottom: 1px solid rgba(0, 0, 0, calc(0.1 * var(--hd-line)));
	background: #fff;
}

#hd::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #fff;
	transform-origin: 0 0;
	transform: scaleY(var(--hd-cover));
	pointer-events: none;
}

html.is-hd-over #hd {
	background: transparent;
}

html.is-sub-hd #hd {
	transition:
		background-color 0.3s,
		--hd-l 0.3s,
		--hd-line 0.3s,
		--hd-cover 0.3s;
}

#hd:has(.hd_gnb > ul > li:hover, .hd_gnb > ul > li:focus-within)::after {
	transform: none;
}

.hd_inner {
	display: flex;
	align-items: center;
	height: 100%;
}

.hd_logo {
	flex: none;
}

.hd_logo a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	white-space: nowrap;
}

.hd_logo b,
.allmenu_logo b {
	position: relative;
	display: block;
	width: 120px;
	aspect-ratio: 114 / 18;
	overflow: hidden;
	background: url("../img/common/logo_b.svg") left center / contain no-repeat;
	font-size: 0;
	line-height: 0;
	color: transparent;
}

.hd_logo b::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/common/logo_w.svg") left center / contain no-repeat;
	opacity: var(--hd-l);
}

.hd_logo span {
	font-size: 16px;
	line-height: 1;
	color: color-mix(in srgb, #fff calc(var(--hd-l) * 100%), var(--text-color));
}




.hd_gnb {
	flex: none;
	height: 100%;
	margin-left: var(--gutter);
}

.hd_gnb > ul {
	display: flex;
	height: 100%;
}

.hd_gnb > ul > li {
	position: relative;
	flex: 1;
	height: 100%;
}

.hd_gnb_tit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 18px;
	padding: 0 40px;
	font-weight: 700;
	color: color-mix(in srgb, #fff calc(var(--hd-l) * 100%), var(--title-color));
	white-space: nowrap;
}

.hd_gnb_sub {
	position: absolute;
	top: 64px;
	left: 0;
	width: 100%;
	background: #fff;

	display: flex;
	flex-direction: column;
	gap: 4px;

	padding: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;

	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s;
}

.hd_gnb > ul > li:hover > a {
	color: var(--theme-color);
}

.hd_gnb > ul > li:hover .hd_gnb_sub {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s;
}

.hd_gnb_sub a {
	width: 100%;
	display: block;
	text-align: center;
	font-size: 16px;
	line-height: 40px;
	font-weight: 400;
	color: var(--sub-color);
	white-space: nowrap;
	border-radius: 8px;
	opacity: 0.5;
	transition:
		opacity 0.3s,
		color 0.3s,
		background 0.3s;
}

.hd_gnb_sub a:hover {
	font-weight: 700;
	opacity: 1;
	color: #fff;
	background: var(--theme-color);
	transition:
		opacity 0.3s,
		color 0.3s,
		background 0.3s;
}

.hd_util {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.hd_menu .is-close {
	display: none;
}

.hd_menu[aria-expanded="true"] .is-menu {
	display: none;
}

.hd_menu[aria-expanded="true"] .is-close {
	display: block;
}

@media (max-width: 1660px) {
	.hd_gnb_tit {
		font-size: 16px;
		font-weight: 700;
	}
}

@media (max-width: 1280px) {
	.hd_logo {
		width: auto;
	}

	.hd_gnb {
		display: none;
	}
}

@media (max-width: 768px) {
	.hd_util .hd_link {
		display: none;
	}

	.hd_logo b,
	.allmenu_logo b {
		width: 104px;
	}
}

.allmenu {
	--pad: clamp(var(--side), (100% - 1760px) / 2, 80px);
	--origin: calc(100% - var(--pad) - var(--btn-h) / 2) calc(var(--hd-h) / 2);
	position: fixed;
	inset: 0;
	z-index: 200;
	height: 100vh;
	height: 100dvh;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--surface-color);
	color: var(--title-color);
	clip-path: circle(0 at var(--origin));
	transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

html.is-menu {
	overflow: hidden;
}

html.is-menu .allmenu {
	clip-path: circle(150% at var(--origin));
}

.allmenu_inner {
	position: relative;
	display: flex;
	align-items: center;
	column-gap: calc((100% - var(--gutter) * 11) / 12 + var(--gutter) * 2);
	min-height: 100%;
	padding-top: calc(var(--hd-h) + 40px);
	padding-bottom: 80px;
}

.allmenu_logo {
	position: absolute;
	top: 0;
	left: var(--pad);
	display: flex;
	align-items: center;
	height: var(--hd-h);
}

.allmenu_close {
	position: absolute;
	top: calc((var(--hd-h) - 1px - var(--btn-h)) / 2);
	right: var(--pad);
	width: var(--btn-h);
	height: var(--btn-h);
	border-radius: 50%;
	background: var(--dark-color);
	color: #fff;
	transform: rotate(45deg);
	transition: transform 0.3s;
}

.allmenu_close::before,
.allmenu_close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(50% - 10px);
	width: 20px;
	height: 2px;
	background: currentColor;
	transform: translate(0, -50%);
}

.allmenu_close::after {
	transform: translate(0, -50%) rotate(90deg);
}

.allmenu_close:hover {
	transform: rotate(-135deg);
}

.allmenu_card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex: none;
	width: calc((100% - var(--gutter) * 11) / 12 * 4 + var(--gutter) * 3);
	height: clamp(480px, 100dvh / var(--z) - var(--hd-h) - 160px, 760px);
	overflow: hidden;
	border-radius: var(--r-xl);
	background: var(--dark-color);
	color: #fff;
}

.allmenu_card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.allmenu_card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)), rgba(21, 87, 243, 0.15);
}

.allmenu_card b,
.allmenu_card span {
	position: relative;
	font-family: Montserrat, Pretendard, sans-serif;
	line-height: 1;
	white-space: nowrap;
}

.allmenu_card b {
	font-size: var(--fs-h3);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.allmenu_card span {
	font-size: var(--fs-body);
	opacity: 0.8;
}

.allmenu_list {
	display: flex;
	flex: 1 1 0;
	flex-wrap: wrap;
	min-width: 0;
}

.allmenu_list > li {
	width: calc(100% / 3);
	padding: 40px var(--gutter);
	border-left: 1px solid var(--line-color);
}

.allmenu_tit {
	display: block;
	margin: 0 0 24px;
	font-size: var(--fs-h5);
	line-height: 1;
	font-weight: 700;
	color: var(--title-color);
	white-space: nowrap;
}

.allmenu_sub > li {
	position: relative;
}

.allmenu_sub a {
	display: block;
	padding: 8px 0;
	font-size: var(--fs-body);
	line-height: 1;
	white-space: nowrap;
	color: var(--text-color);
	transition: 0.3s;
}

.allmenu_sub a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -24px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--theme-color);
	opacity: 0;
	transform: translate(0, -50%);
	transition: 0.3s;
}

.allmenu_sub a:hover,
.allmenu_sub a:focus-visible {
	color: var(--theme-color);
}

.allmenu_sub a:hover::before,
.allmenu_sub a:focus-visible::before {
	left: -16px;
	opacity: 1;
}

.allmenu_tel,
.allmenu_fax {
	display: flex;
	align-items: baseline;
	gap: 16px;
	font-size: var(--fs-body);
	line-height: 1;
	color: var(--text-color);
	white-space: nowrap;
}

.allmenu_tel span,
.allmenu_fax span {
	width: 64px;
	color: var(--muted-color);
}

.allmenu_tel a {
	font-family: Montserrat, Pretendard, sans-serif;
	font-size: var(--fs-h5);
	font-weight: 700;
	color: var(--title-color);
}

.allmenu_fax {
	margin-top: 16px;
	font-family: Montserrat, Pretendard, sans-serif;
}

.allmenu_btn {
	margin-top: 40px;
}

.allmenu_util {
	display: none;
}

.allmenu_card,
.allmenu_list > li {
	opacity: 0;
	transform: translateY(40px);
	transition:
		opacity 0.3s,
		transform 0.3s;
}

html.is-menu .allmenu_card,
html.is-menu .allmenu_list > li {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0.3s),
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0.3s);
}

.allmenu_list > li:nth-child(1) {
	--delay: 0.4s;
}
.allmenu_list > li:nth-child(2) {
	--delay: 0.46s;
}
.allmenu_list > li:nth-child(3) {
	--delay: 0.52s;
}
.allmenu_list > li:nth-child(4) {
	--delay: 0.58s;
}
.allmenu_list > li:nth-child(5) {
	--delay: 0.64s;
}
.allmenu_list > li:nth-child(6) {
	--delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
	.allmenu,
	.allmenu_card,
	.allmenu_list > li,
	.allmenu_util {
		transition: none !important;
	}
}

@media (max-width: 1280px) {
	.allmenu_list > li {
		padding: 32px 24px;
	}

	.allmenu_tel,
	.allmenu_fax {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.allmenu_tel a {
		font-size: 20px;
	}
}

@media (max-width: 1024px) {
	.allmenu_card {
		display: none;
	}
}

@media (max-width: 768px) {
	.allmenu {
		background: #fff;
	}

	.allmenu_inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		padding: var(--hd-h) 0 0;
	}

	.allmenu_util {
		display: flex;
		gap: 8px;
		margin-top: auto;
		padding: 24px var(--side) calc(24px + env(safe-area-inset-bottom));
		opacity: 0;
		transform: translateY(24px);
		transition:
			opacity 0.3s,
			transform 0.3s;
	}

	html.is-menu .allmenu_util {
		opacity: 1;
		transform: none;
		transition:
			opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s,
			transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
	}

	.allmenu_util .btn {
		flex: 1 1 0;
		min-width: 0;
		padding: 0 16px;
	}

	.allmenu_contact {
		display: none;
	}

	.allmenu_logo {
		left: 16px;
	}

	.allmenu_list {
		flex-direction: column;
		flex-wrap: nowrap;
		justify-content: flex-start;
		padding: 0;
	}

	.allmenu_list > li {
		flex: none;
		width: auto;
		padding: 0;
		border-left: 0;
	}

	.allmenu_tit {
		position: relative;
		margin: 0;
		padding: 0 56px 0 var(--side);
		font-size: 20px;
		line-height: 56px;
		text-align: left;
		color: var(--title-color);
	}

	.allmenu_tit::before,
	.allmenu_tit::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 22px;
		width: 1px;
		height: 12px;
		background: currentColor;
		transform: translate(0, -50%);
		transition: transform 0.5s;
	}

	.allmenu_tit::after {
		transform: translate(0, -50%) rotate(90deg);
	}

	.is-open > .allmenu_tit::before {
		transform: translate(0, -50%) rotate(90deg);
	}

	.allmenu_sub {
		max-height: 0;
		overflow: hidden;
		background: var(--surface-color);
		transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.is-open > .allmenu_sub {
		max-height: var(--sub-h, 480px);
	}

	.allmenu_sub a {
		padding: 0 var(--side) 0 calc(var(--side) + 12px);
		font-size: 16px;
		line-height: 56px;
		text-align: left;
		color: var(--text-color);
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}

	.allmenu_sub a::before {
		display: none;
	}

	.allmenu_sub a:hover,
	.allmenu_sub a:focus-visible {
		color: var(--title-color);
	}

	.allmenu_sub li:last-child a {
		border-bottom: 0;
	}
}
