@charset "utf-8";

/* =========================================================
   Main page only override
   목적:
   - common.css의 구형 desktop-first 레이아웃 영향만 제거
   - 로그인/공통 팝업 스타일은 유지
   - 메인 실제 콘텐츠는 숨기지 않음
========================================================= */

/* 1) 전체 최소폭 강제 해제 */
.wrap {
	min-width: 0 !important;
	width: 100% !important;
}

/* 2) 구형 공통 컨테이너 폭만 유연하게 */
.inner {
	width: 100% !important;
	max-width: 1400px !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.inner02 {
	width: 100% !important;
	max-width: 1300px !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* 3) 메인에서는 구형 헤더/모바일 메뉴만 숨김
   - 신형 top_menu.jsp / mtop_menu.jsp 구조 사용
*/
.header_wrap01,
.header_wrap02,
.btn_tm_nav_open,
.page_cover02,
.tm_gnb_wrap {
	display: none !important;
}

/* 4) 본문 레이아웃 보정 */
#main_container,
main,
.main_container {
	width: 100%;
	min-width: 0 !important;
	overflow-x: hidden !important;
}

.main_container {
	padding: 0 !important;
}

/* 5) 신형 헤더가 위에 고정되므로 본문이 헤더 아래에서 시작되게 */
#main_container,
.main_container,
main > section:first-of-type,
.hero {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* 6) 모바일에서 남는 desktop-first 강제폭 재차 제거 */
@media screen and (max-width: 1300px) {
	.wrap,
	main,
	#main_container,
	.main_container {
		min-width: 0 !important;
		width: 100% !important;
		overflow-x: hidden !important;
	}

	.inner,
	.inner02 {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* 7) 로그인/공통 팝업은 유지 */
.page_cover {
	position: fixed;
	inset: 0;
}

.common_member_login_form_wrap {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 710;
}

/* 8) popup.css 레이어팝업도 레이아웃에 영향 주지 않게 유지 */
/*
#layerpopupbg,
#layerpopup,
.layerpopup,
.join_layerpopupbg {
	position: fixed;
}
*/

/* 9) 신형 모바일 메뉴 유지 */
.mnav {
	display: block;
}


/* 10) 메인 공지/레이어 팝업 */
#layerpopupbg {
	display: none;
	position: fixed !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 999 !important;
}

#layerpopup {
	position: fixed !important;
	left: 50% !important;
	top: 10% !important;
	transform: translateX(-50%) !important;
	z-index: 1000 !important;
}

.layerpopup {
	position: fixed !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	z-index: 1000 !important;
}



/* =========================================================
   main notice popup restore
   - popup.jsp 실제 구조 기준 복원
========================================================= */

.popup_view {
	position: relative;
	z-index: 9999;
}

.popup_view_tag {
	position: static;
}

.shadow_blocking {
	display: none;
	position: fixed !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(0, 0, 0, 0.52) !important;
	z-index: 9998 !important;
}

.shadow_AD {
	display: none;
	position: fixed !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(0, 0, 0, 0.52) !important;
	z-index: 9998 !important;
}

.ad_popup {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	z-index: 9999 !important;
	border-radius: 15px;
	overflow: hidden;
	text-align: center;
	max-width: calc(100vw - 24px);
}

/* 텍스트 팝업 */
.ad_popup.text .ad_text_box {
	background: #fff;
	width: min(453px, calc(100vw - 24px));
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	box-sizing: border-box;
}

/* 이미지 팝업 */
.ad_popup .ad_img_box img {
	display: block;
	width: 100%;
	max-width: min(950px, calc(100vw - 24px));
	max-height: calc(100vh - 140px);
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: contain;
}

/* 하단 버튼 영역 */
.ad_popup .ad_btn_box {
	display: flex;
	align-items: center;
	background: #fff;
	padding: 12px 16px;
}

.ad_popup.text .ad_btn_box {
	background: #e1e1e1;
}

.ad_popup .ad_btn_box .btn_close.normal {
	margin-left: auto;
}

/* 모바일 대응 */
@media screen and (max-width: 768px) {
	.ad_popup {
		width: calc(100vw - 24px);
		max-width: 453px;
	}

	.ad_popup.text .ad_text_box {
		width: 100%;
		padding: 28px 20px;
	}

	.ad_popup .ad_btn_box {
		padding: 10px 12px;
	}

	.ad_popup .ad_btn_box .btn_close {
		font-size: 16px;
		line-height: 1.4;
	}
}


/* =========================================================
   mobile nav fix
   - 로그인 버튼 표시
   - 2depth 펼침 표시
========================================================= */

/* 상단 로그인 버튼 */
.mnav__toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mnav__auth {
	display: flex !important;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.mnav__auth-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 74px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid rgba(255,255,255,0.45);
	border-radius: 999px;
	background: transparent;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.mnav__auth-btn:hover,
.mnav__auth-btn:focus {
	background: rgba(255,255,255,0.12);
	color: #ffffff !important;
}

/* 모바일 메뉴 헤더 우측 정렬 */
.mnav__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mnav__toolbar .mnav__close {
	margin-left: 4px;
	flex-shrink: 0;
}

/* 2depth 표시 - JS는 parent(.mnav__item)에 is-open을 붙임 */
.mnav__sub {
	display: none !important;
	max-height: none !important;
	overflow: visible !important;
}

.mnav__item.is-open > .mnav__sub {
	display: block !important;
}

.mnav__item.is-open > .mnav__link .mnav__arrow {
	transform: rotate(180deg);
}

/* 2depth 기본 스타일 */
.mnav__sub {
	background: #f8f8f8;
	padding: 8px 0 10px;
}

.mnav__subItem {
	border-top: 1px solid #ececec;
}

.mnav__subLink {
	display: block;
	padding: 12px 20px 12px 28px;
	font-size: 14px;
	color: #555;
	line-height: 1.4;
	background: #f8f8f8;
}

.mnav__subLink:hover,
.mnav__subLink:focus {
	color: #111;
	background: #f1f1f1;
}