.header.l_fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: rgba(255, 255, 255, 1);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.l_fixed.is-scroll {
	background-color: #000; /* 검정색 배경 */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header .l-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1440px;
	margin: 0 auto;
	padding-top: 10px;
	padding-bottom: 10px;
}

.main_page {
	color: #ff4b52 !important;
	font-weight: 600;
}

.header__logo {
	width: 10rem;
}

.header__logo > a {
	display: block;
}

.header__gnb {
	display: flex;
	justify-content: center;
}

.header__gnb ul {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	justify-content: center; /* 가운데 정렬 */
	align-items: center;
	margin-left: 3rem;
}

.header__gnb ul li {
	margin-left: 3.7rem;
	position: relative;
}

.header__gnb ul li a {
	display: block;
	font-size: 1.1rem;
	font-weight: 500;
	color: #000;
	text-align: center;
	transition: color 0.2s;
	padding: 0.8rem 0.6rem;
}

.header__gnb ul li a:hover {
	color: #ff2b52;
}

.header__gnb > ul > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -10px; /* 필요시 조절 */
	width: 100%;
	height: 2px;
	background-color: #ff2b52;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

/* hover 또는 is-active 클래스일 때 밑줄 보이기 */
.header__gnb > ul > li > a:hover::after,
.header__gnb > ul > li.is-active > a::after {
	transform: scaleX(1);
}

.submenu-container {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	overflow: hidden;
	height: 0;
	opacity: 0;
	transition: height 0.3s ease, opacity 0.3s ease;
	z-index: 99;
}

.submenu-container.active {
	height: 60px; /* or 원하는 높이 */
	opacity: 1;
}

.submenu {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -10px);
	opacity: 0;
	display: flex;
	gap: 30px;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	margin-top: 10px;
}

.submenu.active {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.submenu a {
	color: #333;
	font-size: 0.95rem;
	padding: 10px 20px;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.submenu a:hover {
	background-color: #f8f8f8;
	color: #ff2b52;
}

.submenu > a.is-sub-active {
	color: #ff2b52;
}

.header__link {
	display: flex;
	align-items: center;
	margin-right: 0.8rem;
}

.header__link a {
	font-size: 0.9rem;
	color: #000;
}

.header__link .bar {
	width: 2px;
	height: 0.8rem;
	background-color: rgba(141, 141, 141, 1);
	margin: 0 1.5rem;
}

.header__link .btn-login {
	background-color: #ff2b52;
	color: white;
	padding: 0.6rem 1.7rem;
	border-radius: 0.4rem;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background-color 0.3s ease;
	box-shadow: 0 4px 12px rgba(255, 75, 82, 0.3);
}

.header__link .btn-login:hover {
	background-color: #e64047;
}

.header .ham-btn {
	display: none;
}

.ham-btn {
	transition: all 0.3s ease;
	cursor: pointer;
}

.header.l_fixed.is-open .ham-btn {
	transform: rotate(90deg);
}

.scroll-to-top {
	position: fixed;
	bottom: 60px;
	right: 60px;
	width: 48px;
	height: 48px;
	z-index: 999;
	display: none; /* 기본은 숨김 */
	cursor: pointer;
	transition: opacity 0.3s ease;
}

/* 반응형 - Mobile */
@media (max-width: 900px) {
	.header.l_fixed {
		background-color: #000;
		color: #fff;
	}
	.header.l_fixed .l-inner {
		height: 60px;
	}
	.header.l_fixed.is-open {
		background-color: #fff;
	}
	.header.l_fixed.is-open .ham-btn {
		display: block;
		width: 16px;
		height: 16px;
		background: url(../images/icon/c-ham-on.svg) center no-repeat;
		margin-left: auto;
	}
	.header.l_fixed.is-open .header__logo a {
		height: 42px;
		display: block;
		background: url(/assets/image/common/icon/logo.png) center no-repeat;
		background-size: contain;
	}
	.header.l_fixed.is-open .header__logo img {
		display: none;
	}
	.header.l_fixed.is-open .header__gnb {
		display: block;
	}
	.header.l_fixed.is-open .header__link {
		display: flex;
	}

	.header .ham-btn {
		display: block;
		width: 20px;
		height: 20px;
		background: url(../images/icon/c-ham-off.svg) center no-repeat;
		margin-left: auto;
	}

	.header__logo {
		width: 86px;
	}
	.header__logo a::before {
		height: 22px;
		display: block;
		background: url(/assets/image/common/icon/logo-red.svg) center no-repeat;
		background-size: contain;
	}
	.header__logo a {
		height: 22px;
		display: block;
		background: url(/assets/image/common/icon/logo-mobile.svg) center no-repeat;
		background-size: contain;
	}
	.header__logo img {
		display: none;
	}

	.header__gnb {
		position: absolute;
		top: 60px;
		left: 0;
		width: 100%;
		height: calc(100vh - 60px);
		background-color: #fff;
		transform: translateX(100%);
		opacity: 0;
		transition: transform 0.3s ease, opacity 0.3s ease;
		z-index: 10;
		overflow-y: auto;
	}

	.submenu-container {
		display: none !important; /* 모바일에선 숨김 */
	}

	.header.l_fixed.is-open .header__gnb {
		transform: translateX(0);
		opacity: 1;
	}

	.header__gnb ul {
		box-sizing: border-box;
		flex-direction: column;
		margin-left: 0;
	}

	.header__gnb ul li {
		margin: 0 auto;
		width: 100%;
		padding: 10px;
		margin-top: 15px;
	}

	.header__gnb ul li a {
		font-size: 18px;
		font-weight: 600;
		color: #000000;
	}

	.header__gnb > ul > li.is-active > a {
		color: #ff4b52;
	}

	.header__gnb > ul > li.is-active::after {
		display: none;
	}

	.header__gnb > ul > li > .submenu > a.is-sub-active {
		color: #ff2b52;
	}

	.header__gnb ul li .submenu {
		display: none;
		position: relative;
		flex-direction: column;
		gap: 10px;
	}

	.header__gnb ul li .submenu a {
		padding: 10px;
		font-size: 14px;
		color: #444;
	}

	.header__gnb li.is-open > .submenu,
	.header__gnb li .submenu a.is-sub-active {
		display: flex !important;
		justify-content: center;
	}

	.header__gnb ul li:hover .submenu {
		display: none; /* hover 무력화 */
	}

	.header__link {
		display: flex;
		position: fixed;
		bottom: 100px;
		left: 50%;
		width: 90%;
		transform: translateX(-50%) translateY(20px);
		opacity: 0;
		background-color: #fff;
		z-index: 11;
		padding-top: 20px;
		border-top: 1px solid #efefef;
		transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
		pointer-events: none;
	}

	.header.l_fixed.is-open .header__link {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
		pointer-events: auto;
	}

	.header__link a {
		font-size: 14px;
		color: #000000;
	}

	.header__link .bar {
		height: 11px;
		margin: 0 16px;
	}

	.header__link .btn-login {
		padding: 0.5rem 1.2rem;
		background-color: #ff4b52;
		border-radius: 0.5rem;
		font-size: 14px;
		color: white;
	}

	.scroll-to-top {
		position: fixed;
		bottom: 30px;
		right: 30px;
		width: 35px;
		height: 35px;
		z-index: 999;
		display: none; /* 기본은 숨김 */
		cursor: pointer;
		transition: opacity 0.3s ease;
	}

	.m_submenu a {
		font-size: 16px !important;
		font-weight: 400 !important;
		color: #000 !important;
	}

	.m_submenu a:hover {
		color: #ff2b52 !important;
	}

	.m_submenu a.is-sub-active {
		color: #ff2b52 !important;
	}
}

/* 데스크탑 모드 (900px 이상) */
@media (min-width: 901px) {
	.header__gnb {
		transform: none !important;
		opacity: 1 !important;
	}
	.submenu h4 {
		font-size: 1.1rem;
		font-weight: 600;
		margin-bottom: 1rem;
	}

	.submenu a {
		display: block;
		color: #333;
		font-size: 0.95rem;
		margin-bottom: 0.5rem;
		white-space: nowrap;
		transition: color 0.2s;
	}

	.submenu a:hover {
		color: #ff2b52;
	}

	.header__link {
		display: flex !important;
		opacity: 1 !important;
	}

	/* 햄버거 버튼 안 보이게 */
	.hamburger-button {
		display: none;
	}

	.m_submenu {
		display: none;
	}
}

.scroll-to-top {
	position: fixed;
	bottom: 60px;
	right: 60px;
	width: 48px;
	height: 48px;
	z-index: 999;
	display: none; /* 기본은 숨김 */
	cursor: pointer;
	transition: opacity 0.3s ease;
}
