/* =========================================================
   공용
========================================================= */
html{font-size:20px;}
body{font-size:1rem;}
.tablet{display:none;}
.mob{display:none;}
.hidden{position:absolute;top:-99999px;left:-99999px;line-height:0;}
#wrap{overflow:hidden;min-height:100vh;}
.inner{width:1400px;margin:0 auto;}

@media (max-width:1400px){
	.inner{width:100%;padding:0 1rem;}
}

@media (max-width:1030px){
	html{font-size:16px;}
	body{font-size:1rem;}
	#wrap{font-size:1rem;}
	.tablet{display:block;}
}

@media (max-width:767px){
	html, body, #wrap{height:auto;}
	html{font-size:15px;}
	body{font-size:1rem;position:relative;}
	.web{display:none;}
	.mob{display:block;}
}

/* =========================================================
   헤더
========================================================= */
#header{position:relative;z-index:999;}
#header img{vertical-align:middle;}

#header .header-member{background:#F8F8F8;padding:0.3rem 0 0.35rem;}
#header .header-member .inner{display:flex;justify-content:flex-end;}
#header .header-member ul{display:flex;gap:1rem;}
#header .header-member ul li a{color:#444;font-size:0.85rem;font-weight:400;line-height:0.85rem;padding-left:1.5rem;}
#header .header-member ul li a.join{background:url(../images/main/join-icon.svg)no-repeat center left;background-size:1.1rem;}
#header .header-member ul li a.login{background:url(../images/main/login-icon.svg)no-repeat center left;background-size:1.1rem;}

#header .header-cont{height:3.5rem;background:#fff;}
#header .header-cont .inner{display:flex;justify-content:space-between;align-items:center;}

#header .header-cont .inner .gnb-wrap ul.depth1{display:flex;}
#header .header-cont .inner .gnb-wrap ul.depth1 > li{text-align:center;}
#header .header-cont .inner .gnb-wrap ul.depth1 > li > a{
	color:#222;font-size:0.95rem;font-weight:600;line-height:0.95rem;
	display:flex;justify-content:center;align-items:center;height:3.5rem;padding:0 2rem;
}

#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box{position:absolute;width:100%;left:0;display:none;border-top:1px solid #ddd;min-height:19.25rem;background:#fff;}
#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .inner{display:flex;align-items:flex-start;}

#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth-bg{
	position:absolute;left:0;top:0;width:23.3%;height:100%;
	background:#fff url(../images/main/depth2-txt-bg.png) no-repeat left top;
	border-radius:0 0 2.5rem 0;background-size:cover;
}

#header .header-cont .inner .gnb-wrap ul.depth1 > li:hover .depth2-box{display:flex;align-items:flex-start;}

#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2-txt{
	width:19.25%;color:#FFF;font-size:2rem;font-weight:700;line-height:2rem;
	text-align:left;padding-top:2.25rem;z-index:1;
}

#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2{
	width:calc(100% - 19.25%);display:flex;gap:1.25rem;
	padding:2.25rem 0 2.25rem 2.4rem;
}

#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2 > li{
	width:calc((100%  - (1.25rem * 3)) / 4);text-align:left;
}

#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2 > li > a{
	text-align:left;display:block;border-radius:0.25rem;
	padding:0.8rem 1rem;background:#EFEFEF url(../images/main/arrow-right-s-line.svg)no-repeat center right+1rem;
	color:#222;font-size:0.85rem;font-weight:600;line-height:0.9rem;
}
#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2 > li > a:hover{
	background:#FFF3F6 url(../images/main/arrow-right-s-line-on.svg)no-repeat center right+1rem;color:#E7004C;
}

#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2 > li > ul.depth3{margin-top:1.25rem;}
#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2 > li > ul.depth3 > li:not(:last-child){margin-bottom:1rem;}

#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2 > li > ul.depth3 > li > a{
	color:#555;font-size:0.85rem;font-weight:400;line-height:0.85rem;
	padding-left:1.55rem;position:relative;
}
#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2 > li > ul.depth3 > li > a:before{
	content:'';position:absolute;width:0.25rem;height:0.25rem;background:#aaa;border-radius:50%;
	left:0.9rem;top:0.35rem;
}
#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2 > li > ul.depth3 > li > a:hover{
	color:#E7004C;font-weight:600;text-decoration-line:underline;text-underline-position:under;
}
#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2 > li > ul.depth3 > li > a:hover:before{background:#E7004C;}

#header .header-cont .inner .header-util{display:flex;align-items:center;gap:1.25rem;}
#header .header-cont .inner .header-util .btnAll{
	width:1.95rem;height:1.6rem;position:relative;z-index:999;
	display:flex;flex-direction:column;justify-content:space-between;
}
#header .header-cont .inner .header-util .btnAll span{
	display:inline-block;width:100%;height:2px;background-color:#333;
	-webkit-transition:all 0.25s;transition:all 0.25s;
}
#header.open .header-cont .inner .header-util .btnAll span:nth-child(1){transform:translateY(0.7rem) rotate(45deg);}
#header.open .header-cont .inner .header-util .btnAll span:nth-child(2){opacity:0;}
#header.open .header-cont .inner .header-util .btnAll span:nth-child(3){opacity:0;}
#header.open .header-cont .inner .header-util .btnAll span:nth-child(4){transform:translateY(-0.7rem) rotate(-45deg);}

@media (max-width:1400px){
	#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2-txt{width:23.5%;}
	#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2{padding:2rem 0 2rem 1.5rem;}
}

@media (max-width:1260px){
	#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth2-txt{width:18%;}
	#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box .depth-bg{width:calc(18% + 1.5rem);}
	#header .header-cont .inner .gnb-wrap ul.depth1 > li .depth2-box{display:none !important;}
	#header #nav{display:none;}
	#header .header-cont{display:flex;}
}

@media (max-width:767px){
	#header .header-cont .inner h1 a img{width:13.95rem;}
	#header .header-cont .inner .header-util img{width:2.25rem;height:2.25rem;}
}

/* =========================================================
   사이트맵(전체메뉴)
========================================================= */
.sitemap{
	position:fixed;height:calc(100vh - 5.15rem);background:#fff;width:100%;
	padding:2.5rem 0;border-top:1px solid #ddd;left:-100%;
	overflow-y:scroll;
}
#header.open .sitemap{left:0;}

.sitemap .inner{display:flex;}
.sitemap .inner > div.sitemap-section{
	width:calc(100% / 5);border-right:1px solid #ddd;padding:0 0.95rem;
}
.sitemap .inner > div.sitemap-section:first-child{padding-left:0;}
.sitemap .inner > div.sitemap-section:last-child{padding-right:0;border-right:none;}

.sitemap .inner > div.sitemap-section .section-title a{
	padding:0.75rem 1.25rem;border-radius:0.5rem;background:#EFEFEF;
	color:#222;font-size:1.1rem;font-weight:700;display:block;
}

.sitemap .inner > div.sitemap-section .section-links{
	display:flex;flex-direction:column;gap:2rem;margin-top:1.25rem;padding-left:1.25rem;
}
.sitemap .inner > div.sitemap-section .section-links .link-content h3 a{
	color:#222;font-size:0.9rem;font-weight:600;
}
.sitemap .inner > div.sitemap-section .section-links .link-content ul{
	margin-top:0.75rem;display:flex;flex-direction:column;gap:0.5rem;
}
.sitemap .inner > div.sitemap-section .section-links .link-content ul li a{
	color:#555;font-size:0.8rem;font-weight:400;position:relative;
	padding-left:0.45rem;display:block;line-height:1.3;
}
.sitemap .inner > div.sitemap-section .section-links .link-content ul li a:before{
	content:'';position:absolute;width:0.2rem;height:0.2rem;background:#E7004C;border-radius:50%;
	left:0;top:0.45rem;
}

.dim{
	opacity:0.5;background:#000;position:fixed;width:100%;left:0;top:0;height:100vh;
	display:none;z-index:998;
}
.sitemap .sitemap-mob{display:none;}

/* =========================================================
   모바일 사이트맵(<=1030px)
   - 하위 있을 때만 화살표(.has-children)
   - 펼침은 .open 클래스
========================================================= */
@media (max-width:1030px){
	.sitemap{
		top:0;height:100vh;width:90%;right:-100%;left:auto;border-top:none;
		overflow-y:inherit !important;padding:7rem 0;
	}
	.sitemap:before{
		content:'';position:absolute;left:-11.1%;width:11.1%;
		opacity:0.5;background:#000;top:0;height:100%;
	}
	#header.open .sitemap{left:auto;right:0;}

	.sitemap .inner{flex-direction:column;}
	.sitemap .inner > div.sitemap-section{width:100%;padding:0;border-right:none;}

	.sitemap .inner > div.sitemap-section .section-title a{
		color:#222;font-size:0.95rem;font-weight:700;letter-spacing:-0.00475rem;
		background:inherit;padding:1.25rem 0;position:relative;
	}

	/* 1차 기본: 화살표 없음 */
	.sitemap .inner > div.sitemap-section .section-title a:after{content:none;}

	/* 1차 하위 있을 때만 화살표 */
	.sitemap .inner > div.sitemap-section.has-children .section-title a:after{
		content:'';position:absolute;width:0.9rem;height:0.9rem;right:0;top:1.5rem;
		background:url(../images/main/arrow-bottom.svg)no-repeat center center;background-size:cover;
	}
	.sitemap .inner > div.sitemap-section.has-children.open .section-title a:after{
		background:url(../images/main/arrow-bottom-on.svg)no-repeat center center;background-size:cover;
	}
	.sitemap .inner > div.sitemap-section.has-children.open .section-title a{color:#E7004C;}

	/* 섹션 링크: 기본 닫힘 / open이면 펼침 */
	.sitemap .inner > div.sitemap-section .section-links{padding-left:0;margin-top:0;gap:0.25rem;display:none;}
	.sitemap .inner > div.sitemap-section.open .section-links{display:flex;}

	.sitemap .inner > div.sitemap-section .section-links .link-content h3 a{
		padding:0.7rem 0.5rem;border-radius:0.5rem;background:#EFEFEF;color:#222;
		font-size:0.8rem;font-weight:600;line-height:0.9rem;letter-spacing:-0.004rem;
		display:block;width:100%;position:relative;
	}

	/* 2차 기본: 화살표 없음 */
	.sitemap .inner > div.sitemap-section .section-links .link-content h3 a:after{content:none;}

	/* 2차(3차 있을 때만) 화살표 */
	.sitemap .inner > div.sitemap-section .section-links .link-content.has-children h3 a:after{
		content:'';position:absolute;width:0.9rem;height:0.9rem;right:0.5rem;top:0.65rem;
		background:url(../images/main/arrow-bottom.svg)no-repeat center center;background-size:cover;
	}

	/* 2차 open 상태 스타일 */
	.sitemap .inner > div.sitemap-section .section-links .link-content.open h3 a{background:#FFF3F6;color:#E7004C;}
	.sitemap .inner > div.sitemap-section .section-links .link-content.has-children.open h3 a:after{
		background:url(../images/main/arrow-bottom-on.svg)no-repeat center center;background-size:cover;
	}

	/* 3차: 기본 닫힘 / open이면 펼침 */
	.sitemap .inner > div.sitemap-section .section-links .link-content ul{gap:0.9rem;display:none;}
	.sitemap .inner > div.sitemap-section .section-links .link-content.open ul{display:flex;}

	/* 모바일 상단 버튼 */
	.sitemap .sitemap-mob{
		display:flex;gap:0.2rem;position:absolute;left:1rem;top:2rem;
	}
	.sitemap .sitemap-mob a{
		width:100px;height:38px;display:flex;justify-content:center;align-items:center;
		border:1px solid #888;border-radius:2.5rem;color:#555;font-size:14px;font-weight:600;letter-spacing:-0.0035rem;
	}
	.sitemap .sitemap-mob a.login-btn{background:#E7004C;color:#fff;border:1px solid #E7004C;}
}

/* =========================================================
   검색 아이콘 클릭했을 때
========================================================= */
.search-form{
	position:fixed;left:-100%;background:#fff;height:10.75rem;width:100%;
	display:flex;align-items:center;justify-content:center;
}
.search-form.on{left:0;}

.search-form form{
	width:32.5rem;height:3.5rem;border-radius:2.5rem;border:1px solid #444;background:#FFF;
	overflow:hidden;position:relative;
}
.search-form button{
	width:1.2rem;height:1.2rem;background:url(../images/main/search-icon.svg)no-repeat center center;background-size:cover;
	position:absolute;right:1.2rem;top:50%;transform:translateY(-50%);
}
.search-form input{height:100%;border:none;padding:0 1.5rem;width:calc(100% - 1.2rem);}
.search-form form:focus-within{border:1px solid #E7004C;}

@media (max-width:767px){
	.search-form > div{width:100%;padding:0 1rem;}
	.search-form form{width:100%;}
}

/* =========================================================
   Footer
========================================================= */
#footer{padding:3.2rem 0;background:#232733;}
#footer .footer-top{display:flex;justify-content:space-between;align-items:center;}
#footer .footer-top .footer-info{display:flex;}
#footer .footer-top .footer-info li{padding:0 1rem;position:relative;}
#footer .footer-top .footer-info li a{
	color:rgba(255,255,255,0.6);font-size:0.8rem;font-weight:600;line-height:0.8rem;letter-spacing:-0.004rem;
}
#footer .footer-top .footer-info li a b{font-weight:600;color:#fff;}
#footer .footer-top .footer-info li:first-child{padding-left:0;}
#footer .footer-top .footer-info li:last-child{padding-right:0;}
#footer .footer-top .footer-info li:not(:last-child):after{
	content:'';position:absolute;width:0.2rem;height:0.2rem;background:#D9D9D9;border-radius:50%;
	right:0;top:0.5rem;transform:translateX(50%);
}

#footer .footer-bottom{margin-top:2rem;padding-top:2rem;border-top:1px solid rgba(255,255,255,0.20);}
#footer .footer-bottom ul{display:flex;gap:1rem;}
#footer .footer-bottom ul li{
	display:flex;color:#FFF;gap:0.4rem;font-size:0.9rem;font-weight:400;letter-spacing:-0.0045rem;
}
#footer .footer-bottom ul li b{color:#797C86;font-weight:700;letter-spacing:-0.0045rem;}
#footer .footer-bottom .copy{color:#797C86;font-size:0.8rem;font-weight:400;letter-spacing:-0.004rem;margin-top:2rem;}

@media (max-width:767px){
	#footer .footer-top{display:block;}
	#footer .footer-top .footer-info{margin-top:1.5rem;}
	#footer .footer-bottom ul{flex-direction:column;gap:1rem;}
}
@media (max-width:500px){
	#footer .footer-top .footer-info{flex-wrap:wrap;}
	#footer .footer-top .footer-info li{padding:0 0.5rem;}
}

/* =========================================================
   퀵메뉴
========================================================= */
#quick{
	position:fixed;right:0;bottom:calc(50% + 0.35rem);z-index:80;width:3rem;height:10.5rem;
	-webkit-transition:all 0.2s;transition:all 0.2s;
}
#quick .title{display:none;}
#quick .group{
	display:-webkit-box;display:-ms-flexbox;display:flex;
	overflow:hidden;visibility:hidden;position:absolute;left:100%;top:0;
	width:15.5rem;min-height:10.5rem;padding:0.5rem 1.5rem;
	border-radius:0.2rem 0 0 0.2rem;background-color:#fff;font-size:0.9rem;color:#000;
	-webkit-transition:all 0.2s;transition:all 0.2s;
	-webkit-box-align:center;-ms-flex-align:center;align-items:center;
}
#quick .list{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;}
#quick .list li + li a{border-top:1px dotted #eee;}
#quick .list img{max-height:100%;}
#quick .list a{
	display:block;position:relative;height:2.75rem;padding-right:1.5rem;line-height:2.75rem;
	color:#222;font-size:0.9rem;font-weight:400;letter-spacing:-0.0045rem;
}
#quick .list a::after{
	display:inline-block;overflow:hidden;width:1.2rem;height:1.2rem;text-align:center;line-height:1.2rem;vertical-align:middle;
	content:'';position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);
	right:0;border-radius:100%;
	background:#F2F2F2 url(../images/main/share-icon.svg)no-repeat center center;
	font-size:0.7rem;color:#fff;-webkit-transition:all 0.2s;transition:all 0.2s;
}
#quick .list a:hover, #quick .list a:focus{color:#E7004C;text-decoration:none;}
#quick .list a:hover::after, #quick .list a:focus::after{background:#E7004C url(../images/main/share-icon-on.svg)no-repeat center center;}

#quick .control{
	position:relative;z-index:0;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;
	top:0 !important;width:3rem;height:10.5rem;border-radius:0.2rem 0 0 0.2rem;
	background:-webkit-gradient(linear,left top,left bottom,from(#E7004C),to(#7A303F));
	background:linear-gradient(to bottom,#E7004C,#7A303F);
	font-weight:600;color:#fff;
	-webkit-writing-mode:sideways-rl;-ms-writing-mode:sideways-rl;writing-mode:sideways-rl;
	text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;
	-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-decoration:none;
}
#quick .control::before{
	display:block;overflow:hidden;width:1.1rem;height:0.6rem;text-align:center;line-height:1.1rem;vertical-align:middle;
	position:relative;margin:0 auto 0.75rem;
	background:url(../images/main/quick-icon.svg) no-repeat center center;background-size:cover;
	content:"";-webkit-writing-mode:initial;-ms-writing-mode:initial;writing-mode:initial;
}
#quick .control.close{display:none;height:3.75rem;-webkit-writing-mode:initial;-ms-writing-mode:initial;writing-mode:initial;overflow:hidden;}

#quick.active .control::before{height:3.75rem;background-size:1.1rem;}
#quick.active{-webkit-transform:translateX(-15.5rem);transform:translateX(-15.5rem);}
#quick.active .open{display:none;}
#quick.active .close{display:block;}
#quick.active .group{visibility:visible;-webkit-box-shadow:0 0 1rem rgba(0,0,0,0.2);box-shadow:0 0 1rem rgba(0,0,0,0.2);}

/* =========================================================
   탑버튼
========================================================= */
.btn-top{
	bottom:calc(50vh - 3.6rem) !important;
	position:fixed;right:0;width:3rem;height:3rem;display:flex;flex-direction:column;gap:3px;color:#FFF;
	font-family:Pretendard;font-size:15px;font-style:normal;font-weight:700;line-height:15px;
	border-radius:10px 0 0 10px;background:#3C3C3C;
	justify-content:center;align-items:center;z-index:1;
}
