@charset "utf-8";

/*
* File       : sub-set.css
* Author     : B-WORKER
*      
 * SUMMARY:
 * 1) SUB VISUAL
 * 2) SUB LNB
*/

/* Sub title  */
#page-title{}

/* SUB VISUAL */
#sub-visual{position:relative;height:800rem;}
#sub-visual > .wrap {height: 100%;}
#sub-visual h2{font-weight:700;font-size:var(--font-65);color:#fff;text-transform: uppercase;}

.sub-visual__bg{position:absolute;top:50%;left:50%;width:1520rem;height:550rem;background:#000;overflow: hidden;border-radius: 30rem; transform: translate(-50%, -50%); animation:subVisual .8s .3s ease-in-out forwards;}
.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:absolute; top:50%; left:0; width: 100%; text-align: center; transform: translateY(-50%); transition: var(--trans-01);}

body[class^="sub01_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual01.jpg);}
body[class^="sub02_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual02.jpg);}
body[class^="sub03_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual03.jpg);}
body[class^="sub04_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual04.jpg);}
body[class^="sub05_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual05.jpg);}
body[class^="sub06_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual06.jpg);}
body[class^="sub07_"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual08.jpg);}

@keyframes subVisual {
	to{width: 100%; height: 100%; border-radius: 0;}
}

@media (max-width:1600px){
	.sub-visual__bg {width: 80%;}
}

/* board visual set */
/* 생성한 게시판 테이블 명 입력 */
body:is(.performance, .performance_en) .sub-visual__bg > i{background-image:url(../img/sub/sub-visual04.jpg);}
body:is(.recruitment, .recruitment_en) .sub-visual__bg > i{background-image:url(../img/sub/sub-visual06.jpg);}
body:is(.notice, .notice_en, .gallery, .gallery_en) .sub-visual__bg > i{background-image:url(../img/sub/sub-visual07.jpg);}

/* lnb */
#lnb{opacity: 0; visibility: hidden; position: absolute;width: 100%; bottom: 80rem; z-index: 10; text-align: center; transform: translateY(40rem); animation: lnb 1s .5s ease forwards;}
#lnb .select-link{width: auto;}
#lnb .select-link > ul {margin-top: 0;}
#lnb .depth1 .sub-menu,
#lnb .select-link__btn{display:none;}

@keyframes lnb {
	to{opacity: 1; visibility: visible; transform: translateY(0);}
}

#lnb.lnb-select .select-link__btn{display:flex; align-items:center; font-size:20rem; 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: 8rem;background-position:50% 50%;background-image:url(../img/common/arrow-basic_w.svg);background-repeat:no-repeat;border-radius:100%;transform: rotate(90deg);}
#lnb.lnb-select .select-link__btn.on::after{transform: rotate(270deg);}
#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{min-width: 100rem; padding:17rem 20rem; font-weight: 700; opacity: 0.7;border-radius: 100rem;}
#lnb:not(.lnb-select) .select-link > ul > li.on > a{opacity: 1; background: var(--bg-01);}
#lnb:not(.lnb-select) .select-link > ul a:hover{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{backdrop-filter: blur(10rem); -webkit-backdrop-filter: blur(10rem); display:inline-flex; justify-content: center; padding: 10rem; border-radius: 100rem; background: rgba(255, 255, 255, .2);}

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{display: flex; align-items: center; justify-content: center; margin-bottom: 30rem;}
#sub-nav > *{position: relative;}
#sub-nav > *:last-child::after{display: none;}
#sub-nav .sub-home{display: block;width: 12rem;height: 12rem;background:url(../img/common/ic-nav-home_w.svg) no-repeat;}
#sub-nav span{color: var(--f-01); font-weight: 700; display: block; text-transform: uppercase;}
#sub-nav .depth01 span {font-size: var(--font-15);}
#sub-nav > i{display:block; opacity:0.2; width:3rem; height:3rem; margin:0rem 12rem; background-color:#fff; border-radius:14rem;}
#sub-nav:has(.depth02:empty) .depth01::after{display: none;}
body:has(#sub-nav span:empty) #sub-nav .depth01 ~ i{display: none;}

/* snb */
#snb{position: relative; display:flex;align-items:center; justify-content: center; width: 100%; margin-bottom: max(7.8125vw, 150rem); background: var(--bg-04);}
#snb:not(:has(li)) {margin-bottom: 0 !important;}
#snb li.on a{opacity:1;}
#snb li a{position: relative; display:flex;justify-content:center;align-items:center;box-sizing:border-box;font-weight: 700; transition:var(--trans-01);padding:30rem; color: var(--b-04);}
#snb li a::after {opacity: 0; visibility: hidden; position: absolute; left:0; bottom:0; content:''; width: 100%; height: 2rem; background: var(--c-01); transition: var(--trans-01);}
#snb li:not(:last-child) a{border-right:0;}
#snb li.on a{color: var(--c-01);}
#snb-title{font-weight:400;}
#snb li:not(.on) a:hover{color: var(--b-01);}

@media all and (max-width:1023px){
	#sub-visual{height:620rem;}
	.sub-visual__bg {height: 60%;}

	#lnb{bottom: 50rem; transform: translateY(100%);}

	#snb {margin-bottom: 120rem;}
	#sub-nav {margin-bottom: 22rem;}
}

@media (max-width: 540px){
	#sub-visual{height:370rem;}
	.sub-visual__bg {border-radius: 20rem;}

	#snb {margin-bottom: 60rem;}
	#sub-nav {margin-bottom: 15rem;}
	#sub-nav span{font-size:13rem;}
	#sub-nav .depth01 span {font-size: 13rem;}
	#sub-nav > i{margin: 0rem 6rem;}

	#lnb{top:auto; bottom:20rem; z-index:10; padding:0;}
	#lnb.lnb-select .select-link__btn{font-size:17rem;}
	#lnb .select-link:has(.depth1){display:none;}
	#lnb .select-link:has(.depth2){margin-left:0;}
	#lnb.lnb-select:not(:has(li:nth-child(2))){display: none;}
	#lnb.lnb-select .select-link:nth-child(2){margin-left:0;}
	#lnb .lnb-inner{display:block;margin:0;width:100%; padding: 17rem 0; box-sizing:border-box;}
	#lnb.lnb-select{width:calc(100% - 40rem);box-sizing:border-box;margin:0 20rem;transform:none !important;}
	/* #lnb.lnb-select:has(li:nth-child(2)){display:block;}	 */
	#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;}
	#lnb.lnb-select  .select-link__btn::after{right:6rem; background-color:inherit;}
	#lnb .select-link > ul{margin-top:24rem; padding:15rem 0; border-radius:0; border-radius: 20rem;}
	#lnb .select-link > ul a{padding: 8rem 20rem;font-weight:200;}
	#lnb .select-link > ul li.on a {color: var(--c-01); font-weight: 600;}

	#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;}

	#snb li a {padding:15rem 20rem; font-size: 14rem; font-weight: 600;}
}