@charset "utf-8";

/*
* File       : sub-set.css
* Author     : B-WORKER
*/

/* Sub title  */
#sub-title-wrap {position: relative;}
#sub-title-wrap h2 {margin-left: -5rem; font-size: 100rem; font-weight: 500; color: var(--b-01);}
.sub-visual__desc {margin-top: 17rem; font-size: 20rem; color: var(--g-02);}

/* SUB VISUAL */
.sub-visual__bg{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;overflow: hidden;border-bottom-left-radius: 15rem;border-bottom-right-radius: 15rem;}
.sub-visual__bg > i{position:absolute;top:0;left:0;width:100%;height:100%;background-size:cover;background-position:50% 50%;transition:var(--trans-01);background-repeat:no-repeat;opacity: 1 !important;}
.sub-visual__inner{position: relative; display: flex; justify-content: center; align-items: center; height: 100%;}
.sub-visual__inner h2 {margin-left: -5rem; font-size: 100rem; font-weight: 500;}

body[class^="sub01_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-01.jpg);}
body[class^="sub02_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-02.jpg);}
body[class^="sub03_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-03.jpg);}
body[class^="sub04_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-04.jpg);}
body[class^="sub05_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-05.jpg);}
body[class^="sub06_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-06.jpg);}

/* board visual set */
body:is(.notice, .gallery) .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-06.jpg);}

/* lnb */
#lnb-wrap {margin-top: 40rem;}
#lnb {z-index: 10; position: relative; padding: 18rem 0; border-radius: 7rem; background: var(--b-01);}
#lnb .select-link{width: auto;}
#lnb .select-link > ul{margin-top:20rem;}
#lnb .depth1 .sub-menu,
#lnb .select-link__btn{display:none;}

#lnb.lnb-select .select-link__btn{display:flex; align-items:center; color:#fff;padding-right: 70rem;}
#lnb.lnb-select  .select-link__btn::after{content:""; position:absolute; right:0; width:40rem; height:40rem; background-color:rgba(255,255,255,0.2); background-size:10rem; background-position:50% 50%; background-image:url(../img/common/arrow-basic_w.svg); background-repeat:no-repeat; border-radius:100%;}
#lnb.none-select .select-link__btn{pointer-events:none; cursor:text;}
#lnb.none-select .select-link__btn::after{opacity:0;}

#lnb:not(.lnb-select) .select-link:has(.depth1){display:none; height:100rem; background:#000;}
#lnb:not(.lnb-select) .select-link > ul{opacity:1;visibility:visible;padding:0 0;background:none;flex-direction:row;flex-wrap:nowrap;flex-wrap: wrap;position: relative;}
#lnb:not(.lnb-select) .select-link > ul a{padding:0;font-size: 18rem;margin-right: 30rem; opacity: 0.5;}
#lnb:not(.lnb-select) .select-link > ul > li.on > a{opacity: 1;}
/*#lnb:not(.lnb-select) .select-link > ul a.on{opacity: 1;} 위의 소스 3차까지 먹이기 체크필요 */ 
#lnb:not(.lnb-select) .select-link > ul > li{width: auto;}
#lnb:not(.lnb-select):not(:has(li:nth-child(2))){display: none;} /* 2차가 하나일때 lnb 숨기기 */

#lnb.lnb-select:has(.select-link:nth-child(2)){display:flex;align-items: center;}
#lnb.lnb-select .select-link + .select-link:has(.depth2){margin-left:20rem;}
#lnb .lnb-inner{display:flex;}

a.lnb-home{display:block; width:15rem; margin-right:20rem; background:url(../img/common/ic-nav-home_w.svg) no-repeat 50% 50%; font-size:0; min-height:100%;}

/* sub nav */
#sub-nav{position: absolute; right: 0; bottom: 10rem; display: inline-flex; align-items: center; justify-content: flex-end;}
#sub-nav > * {position: relative; font-size: 16rem; color: var(--g-02);}
#sub-nav .sub-home {display: inline-flex; align-items: center;}
#sub-nav .sub-home a {display: block; width: 14rem;height: 15rem;background:url(../img/common/ic-nav-home.svg) no-repeat;}
#sub-nav .sub-home::after {content:''; display: block; width: 30rem; height: 1px; margin: 0 20rem; background: #ddd;}
#sub-nav span:last-child {color: var(--b-01);}
#sub-nav .sub-title-eng {margin-left: 12rem; padding-left: 12rem; }
#sub-nav .sub-title-eng::before {position: absolute; left:0; top: 50%; content:''; width: 1px; height: 15rem; margin-top: 1px; background: #ddd; transform: translate(0, -50%) rotate(15deg);}

/* snb */
/* #snb{display:flex;align-items:center;}
#snb li.on a{opacity:1;}
#snb li a{display:flex;justify-content:center;align-items:center;height: 50rem;box-sizing:border-box;border: 1px solid var(--g-01);font-size:18rem;font-size:var(--font-18);transition:var(--trans-01);padding: 0rem 30rem;}
#snb li:not(:last-child) a{border-right:0;}
#snb li.on a{background:var(--c-01); color:#fff; border-color:var(--c-01);}
#snb-title{font-weight:400;}
#snb li:not(.on) a:hover{color: var(--g-02);} */

@media all and (max-width:1023px){
	#sub-title-wrap h2,
	.sub-visual__inner h2 {font-size: 80rem;}
	.sub-visual__inner h2 {margin-top: -30rem;}
	#sub-nav {bottom: 9rem;}
}

@media (max-width: 860px){
	#sub-title-wrap .wrap {display: flex; flex-direction: column;}
	#sub-title-wrap h2 {order: 1; font-size: 70rem;}
	.sub-visual__inner h2 {font-size: 70rem;}
	.sub-visual__desc {order: 2; margin-top: 15rem; font-size: 18rem;}
	#sub-nav {order: 0; position: relative; right: auto; bottom: auto; justify-content: flex-start; margin-bottom: 50rem; padding-left: 3rem;}
}

@media (max-width: 540px){
	#sub-title-wrap h2 {font-size: 40rem;}
	.sub-visual__inner h2 {font-size: 40rem;}
	.sub-visual__desc {margin-top: 8rem; font-size: 14rem;}
	
	#sub-nav {margin-bottom: 33rem;}
	#sub-nav span{font-size:13rem;}
	#sub-nav .sub-home::after {width: 20rem; margin: 0 12rem; margin-left: 10rem;}
	#sub-nav .sub-title-eng {margin-left: 10rem; padding-left: 10rem;}
	#sub-nav .sub-title-eng::before {height: 10rem;}

	#lnb .select-link:has(.depth1){display:none;}
	#lnb .select-link:has(.depth2){margin-left:0;}
	#lnb.lnb-select .select-link:nth-child(2){margin-left:0;}
	#lnb .lnb-inner{display:block;margin:0;width:100%; box-sizing:border-box;}
	#lnb.lnb-select .select-link + .select-link:has(.depth2){margin-left:0;}
	#lnb.lnb-select .select-link{width:100%; box-sizing:border-box; margin-left:0;}
	#lnb.lnb-select .select-link__btn{padding:0rem 20rem;font-size: 14rem; font-weight: 500;}
	#lnb.lnb-select  .select-link__btn::after{right:6rem; background-color:inherit;}
	#lnb .select-link > ul{margin-top:15rem; padding:13rem 0rem 13rem; border-radius:0; border-bottom-left-radius:5rem; border-bottom-right-radius:5rem;}
	#lnb .select-link > ul a{padding: 8rem 20rem;font-weight:200;font-size:14rem;}

	#lnb:not(.lnb-select) .select-destroy li a{white-space:nowrap;}
	#lnb:not(.lnb-select) {width:100% !important; margin:0 !important; background:none;}
	#lnb:not(.lnb-select) .select-destroy{padding-left:20rem; overflow-x:scroll;}
	#lnb:not(.lnb-select) .select-destroy li:last-child{padding-right:40rem;}
	#lnb:not(.lnb-select) .select-destroy li a{opacity:0.5; color:#fff;}
	#lnb:not(.lnb-select) .select-destroy li.on a{opacity:1;}
	#lnb:not(.lnb-select) .select-destroy li + li{margin-left: 10rem;}
	#lnb:has(.select-destroy):not(.lnb-select) .select-link__btn::after{display:none;}
}