﻿
/* *******************************************************
 * filename : layout_responsive.css
 * description : 전체 레이아웃 반응형 CSS
 * date : 2022-07-26
******************************************************** */

/* ========================================================
 * SETTING
======================================================== */
@media all and (max-width:1280px){
	:root{
		--header-height: 80px;
	}
}
@media all and (max-width:800px){
	:root{
		--area-padding: 5vw;
		--sub-visual-height: 30rem;
	}
}

/* ========================================================
 * FONT SIZE
======================================================== */
@media all and (max-width:1536px){
	html{font-size:0.6510vw;} /* 10 */
}
@media all and (max-width:1280px){
	html{font-size:0.8594vw;} /* 10 -> 11*/
}
@media all and (max-width:800px){
	html{font-size:1.375vw} /* 10 -> 11*/
}
@media all and (max-width:640px){
	html{font-size:1.7188vw}  /* 10 -> 11*/
}
@media all and ( max-width: 480px ){
	html{font-size:2.2vw}  /* 10 */
}
@media all and ( max-width: 412px ){
	html{font-size:2.4272vw}  /* 10 */
}
@media all and (max-width:390px){
	html{font-size:2.1795vw}  /* 10 -> 8.5 */
}

/* ========================================================
 * LAYOUT
======================================================== */
/* ****************** 공통클래스 ********************** */
@media all and (max-width:1780px){
	.area-box{padding:0 var(--area-padding); max-width:none;}
}
@media all and (max-width:1360px){ 
	.area{padding:0 var(--area-padding); max-width:none;}
}
@media all and (max-width:1280px){ 
	.m-br{display:block;}
	.pc-br{display:none;}
	.display-m{display:block;}
	.display-pc{display:none;}
}

/* ****************** HEADER ********************** */
@media all and ( max-width: 1280px ){
	#headerInnerWrap{box-shadow: 1.2rem 1.2rem 2rem -1.2rem rgba(0,0,0,0.05);}
	/* -------- Header :: UTIL BOX -------- */
	.header-util-box{display: none;}
	.hdr-brc-download-btn.pc-ver{display: none;}
	.hdr-brc-download-btn.m-ver{position: absolute; bottom: 25px; left: 50%; left: 50%; transform: translateX(-50%); white-space: nowrap;}
	/* Header :: 사이트맵 버튼 */
	.sitemap-line-btn, .sitemap-custom-btn{display:none;}

	/* -------- Header :: GNB(Pc) -------- */
	#gnb{display:none;}
	.gnb-overlay-bg{display:none}

	/* -------- Header :: GNB(Mobile/기본스타일) -------- */
	.gnb-overlay-bg-m{display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:9998;}	
	#gnbM{ 
		display:block; 
		position:fixed; 
		top:0px; 
		right:-82%;
		width:80%; 
		height:100%;  
		max-width:280px; 
		background-color:#fff; 
		z-index:9998; 
		transition:var(--transition-custom);   
		visibility:hidden;
	}
	#gnbM.open{
		right:0px; 
		visibility:visible;
	}
	/* GNB Mobile :: 레이아웃 */
	.gnb-navigation-wrapper{position:relative; height:100%; box-sizing:border-box; padding-top:var(--header-height); overflow-y:auto;}	
	.header-util-menu-box + .gnb-navigation-wrapper{padding-top:0; height:calc(100% - var(--header-height));}
	
	/* GNB Mobile :: 메뉴영역 :: 1차 */
	#navigation > li{border-bottom:1px solid #e7e7e7;}
	#navigation > li:first-child{border-top:1px solid #e7e7e7}
	#navigation > li > a {position:relative; display:block; padding:1.8rem var(--area-padding); font-size: 2rem; letter-spacing: -0.025em; font-weight: 500; color: #222;}
	#navigation > li.active > a{color:var(--main-color);}
	#navigation > li.has-2dep > a:before{font-family:xeicon; content: "\e914"; position:absolute; top:50%; right:var(--area-padding); font-size:1.3em; transform:translateY(-50%);}
	#navigation > li.has-2dep.active > a:before{content: "\e91b";}
	/* GNB Mobile ::  메뉴영역 :: 2차 */
	#navigation > li .gnb-2dep{display:none; padding:1.5rem 0; background-color:#f2f2f2; }
	#navigation > li.none-2dep .gnb-2dep{display:none !important;}
	#navigation > li .gnb-2dep > ul > li{height:auto !important;}
	#navigation > li .gnb-2dep > ul > li > a{display:block; color:#888; font-size:1.6rem; padding:1.2rem var(--area-padding); }
	#navigation > li .gnb-2dep > ul > li.on > a{color:#000; font-weight:500;}
	/* GNB Mobile :: 메뉴영역 ::  3차 */
	#navigation > li .gnb-2dep > ul > li > .gnb-3dep{display:none; padding:10px; background-color:#aaa; margin:0 10px}
	#navigation > li .gnb-2dep > ul > li > .gnb-3dep > li > a{display:block; padding:8px 0; font-size:13px; color:#fff;}
	#navigation > li .gnb-2dep > ul > li > .gnb-3dep > li > a:before{display:inline-block; content:"-"; margin-right:5px;}
	
	/* -------- GNB Mobile :: 스타일2 (Full Style) -------- */
	#gnbM.gnb-style-full{ 
		top:-100%; 
		right:0;
		width:100%; 
		height:100%;  
		max-width:none; 
	}
	#gnbM.gnb-style-full.open{
		top:0px; 
	}
	.gnb-style-full .gnb-navigation-wrapper{height:auto; width:100%; position:absolute; top:var(--header-height);; bottom:var(--header-height); left:0; padding-top:0;}
	.gnb-style-full .gnb-navigation-inner{display:table; width:100%; height:100%;}
	.gnb-style-full #navigation{
		display:table-cell;
		vertical-align:middle;
	}
	.gnb-style-full #navigation > li{
		text-align:center; 
		border:0; 
		opacity:0;
		transform:translateY(-20px);
		transition:all 0s 0s;
	}
	.gnb-style-full #navigation > li:first-child {border:0}
	.gnb-style-full #navigation > li > a {}
	.gnb-style-full #navigation > li .gnb-icon i{display:none;}
	.gnb-style-full.open #navigation > li{
		opacity:1.0;
		transform:translateY(0px); 
		transition:transform 0.8s, opacity 0.8s;
	}
	.gnb-style-full.open #navigation > li:nth-child(1){transition-delay:0.3s;}
	.gnb-style-full.open #navigation > li:nth-child(2){transition-delay:0.4s;}
	.gnb-style-full.open #navigation > li:nth-child(3){transition-delay:0.6s;}
	.gnb-style-full.open #navigation > li:nth-child(4){transition-delay:0.7s;}
	.gnb-style-full.open #navigation > li:nth-child(5){transition-delay:0.9s;}
	.gnb-style-full.open #navigation > li:nth-child(6){transition-delay:0.9s;}
	
	/* -------- Header :: 네비게이션 오픈 버튼 -------- */
	.nav-open-btn{
		display:block; position:fixed; top: calc((var(--header-height) - 32px) / 2); right:var(--area-padding); z-index:10000; 
		width:32px; height:32px;
		transition:var(--transition-custom); 
	}
	.nav-open-btn .dot{position: absolute; display:block; width:8px; height:8px; background-color:#222; transition:var(--transition-custom);}
	.nav-open-btn .dot.dot1{top: 3px; left: 3px;}
	.nav-open-btn .dot.dot2{top: 3px; right: 3px;}
	.nav-open-btn .dot.dot3{bottom: 3px; left: 3px;}
	.nav-open-btn .dot.dot4{bottom: 3px; right: 3px;}
	/* active */
	.nav-open-btn.active .dot.dot1{width: 20px;height: 6px;transform: translate(-2px,7px) rotate(45deg);}
	.nav-open-btn.active .dot.dot2{width: 20px;height: 6px;transform: translate(2px,7px) rotate(-45deg);}
	.nav-open-btn.active .dot.dot3{width: 20px;height: 6px;transform: translate(-2px,-2px) rotate(-45deg);}
	.nav-open-btn.active .dot.dot4{width: 20px;height: 6px;transform: translate(2px,-2px) rotate(45deg);}
}
@media all and (max-width:800px){
	#navigation > li .gnb-2dep > ul > li > a{font-size:1.7rem;}
}


/* ****************** FOOTER ********************** */
@media all and (max-width:1280px){
	#footerTop .footer-left-con{width: 100%;}
	#footerTop .footer-right-con{margin-top: 4.5rem; width: 100%; display: flex;  flex-direction: initial; align-items: center; justify-content: space-between;}
	.foot-quick-box{margin-top: 0rem;}
}
@media all and (max-width:800px){
	/* -------- FOOTER :: 레이아웃 -------- */
	#footerBottom .footer-left-con,
	#footerTop .footer-left-con,
	#footerBottom .footer-right-con,
	#footerTop .footer-right-con{width: 100%; display: block;}
	#footerTop .footer-right-con {margin-top: 3.5rem;}

	/* -------- FOOTER :: 상단 -------- */
	#footerTop{padding:6rem 0;}

	/* Footer :: 푸터로고 */
	.foot-logo{padding-bottom:4rem;}
	.foot-logo img{height: 30px;}

	/* Footer :: 정보 style02 */
	.footer-address-info-box{display: flex; flex-wrap:wrap;}
	.footer-address-list,
	.footer-address-list + .footer-address-list{width: 100%;}
	.footer-address-list + .footer-address-list{margin-top: 3rem;}
	.footer-address-list dl:not(.half-ver){display: block;}
	.footer-address-list dl + dl{margin-top: 1.2rem;}
	.footer-address-list dl.pc-ver{display: none;}
	.footer-address-list dl.m-ver{display: block;}
	.footer-address-list dl dt,
	.footer-address-list dl dd{font-size:1.6rem; line-height:1.7;}
	.footer-address-list dl dt{padding-right: 3rem; display: inline-block;}
	.footer-address-list dl dt:before{top: 0.7rem; right: 1.5rem; width: 0.1rem; height: 1.4rem;}
	.footer-address-list dl dd{width: 100%;}

	/* Footer :: 사이트맵 */
	.footer-sitemap-list-con > ul > li{padding-left:3.5rem;}
	.footer-sitemap-list-con > ul > li:first-child{padding-left:0;}
	.footer-sitemap-list-con > ul > li a{font-size:1.8rem;}

	/* Footer :: 퀵메뉴 */
	.foot-quick-box{margin-top: 3.5rem; display: flex; align-items: center;}
	.foot-quick-box li{margin-left:1.5rem;}
	.foot-quick-box li:first-child{margin-left:0}
	.foot-quick-box li a{width: 6.6rem; height: 6.6rem; font-size: 2.2rem; color: #fff; text-align: center; background-color: rgba(255,255,255,0.15); border-radius: 100%; display: flex; align-items: center; justify-content: center;}
	.foot-quick-box li a.pc-ver{display: none;}
	.foot-quick-box li a.m-ver{display: flex;}

	/* -------- FOOTER :: 하단 -------- */
	#footerBottom .area-box{padding-top: 6rem; padding-bottom: 4.5rem;}

	/* Footer :: 브로셔 다운로드 버튼 */
	.ftr-brc-download-btn{margin: 0 auto; padding: 0 1.2rem 0 1.5rem; width: 25rem; height: 3.5rem; font-size: 1.6rem;}
	.ftr-brc-download-btn i{margin-left: 0; top: -0.1rem; font-size: 1.8rem;}

	/* Footer :: SNS 리스트 */
	.foot-sns-menu{margin-top: 2rem; justify-content: center; width: 100%;}
	.foot-sns-menu li{margin-left:2rem;}
	.foot-sns-menu li:first-child{margin-left:0}
	.foot-sns-menu li a{font-size: 1.6rem;}

	/* Footer :: 푸터메뉴 */
	.foot-menu{margin-top: 2.5rem; justify-content: center;}
	.foot-menu li{margin-left: 3rem;}
	.foot-menu li:first-child{margin-left:0;}
	.foot-menu li a{font-size:1.6rem; line-height: 1.3;}

	/* Footer :: Copyright */
	.footer-copyright{margin-top: 1.5rem; font-size:1.6rem; text-align: center;}
}

/* ****************** SUB LAYOUT ********************** */
@media all and (max-width:1360px){ 
	.no-visual-middleArea{padding-top: 9rem;}
	#content:not(.wide){padding:15rem var(--area-padding)}
	#content.wide{padding:15rem 0 0 0}
}
@media all and (max-width:1280px){
	.no-visual-middleArea{padding-top: 7rem;}
	/*  SUB LAYOUT :: 컨텐츠 레이아웃 */
	#content:not(.wide){padding:12rem var(--area-padding)}
	#content.wide{padding:12rem 0 0 0}
}
@media all and (max-width:800px){
	/* .no-visual-middleArea{padding-top: 5rem;} */
	/*  SUB LAYOUT :: 비주얼 */
	#visual .visual-tit{font-size:4rem;}
	/*  SUB LAYOUT :: 컨텐츠 레이아웃 */
	#content:not(.wide){padding:7rem var(--area-padding)}
	#content.wide{padding:7rem 0 0 0}
}

/* ****************** MODAL LAYERPOPUP ********************** */
@media all and ( max-width: 800px ){
	/* modal layer content */
	.footer-modal-content{width:auto; margin:50px 15px}
	.footer-modal-content h1{font-size:18px; text-align:left; padding:0 30px 15px 0}
	.modal-close-btn{right:-3px; top:-3px;}
	.modal-close-btn i{font-size:24px}
	.footer-inner-box{padding:15px}
	.footer-inner{padding:10px; height:250px;}
}