@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:var(--height-full); text-align:center;}
#sub-visual h2{font-weight:700;font-size:var(--font-85);color:#fff;}

.sub-visual__desc{margin-top:17rem; font-weight:600; font-size:20rem;}
.sub-visual__bg{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;overflow: hidden;}
.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 .wrap{height:100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-bottom:60rem;}
.sub-visual__inner{}

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);}
body[class^="sub04_01"] .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-04.jpg);}

/* board visual set */
/* 생성한 게시판 테이블 명 입력 */
body:is(.news, .news_en) .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-04.jpg);}
body:is(.certification, .patents, .certification_en, .patents_en) .sub-visual__bg > i{background-image:url(../img/sub/sub-visual-03.jpg);}

/* lnb */
#lnb{position: absolute;width: 100%; bottom:60rem; z-index: 10;}
#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; 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; display: inline-flex; flex-direction: row; padding: 10rem; align-items: center; gap: 10rem; position: relative; border-radius:50rem; border-radius: 5rem; background: rgba(255, 255, 255, 0.30); box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.10); backdrop-filter: blur(5rem);}
#lnb:not(.lnb-select) .select-link > ul a{padding: 15rem 20rem; font-size: 18rem; font-weight:500; opacity: 0.65; line-height:1em;  border-radius: 5rem; background:transparent; text-align:center;}
#lnb:not(.lnb-select) .select-link > ul > li.on > a{opacity: 1; background: linear-gradient(91deg, #00B0FF 3.87%, #0095FF 92.5%); font-weight:600;}
#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:250rem;}
#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{padding:0;}


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: 25rem;}
#sub-nav > *{position: relative;}
#sub-nav > *:last-child::after{display: none;}
#sub-nav .sub-home{display: block;width: 18rem;height: 18rem;background:url(../img/common/ic-nav-home_w.svg) no-repeat center; background-size:contain; opacity:1;}
#sub-nav span{color: var(--f-01); font-size: 17rem; display: block;}
#sub-nav > i{display:block; width:3rem; height:3rem; margin:0rem 15rem; background:rgba(255, 255, 255, 0.20); 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-wrap{margin-bottom:50rem;}
#snb{display:flex;align-items:center; background:#F4F4F5; border-radius:50rem;}
#snb li.on a{opacity:1;}
#snb li a{display:flex;justify-content:center;align-items:center;width:155rem; height: 57rem;box-sizing:border-box; border-radius:50rem; font-size:var(--font-17); font-family:var(--lang-ko); font-weight:600; transition:var(--trans-01);padding: 0rem 20rem; color:rgba(0,0,0,0.3);}
#snb li:not(:last-child) a{border-right:0;}
#snb li.on a{background:var(--c-01); color:#fff; }
#snb-title{font-weight:400;}
#snb li:not(.on) a:hover{color: var(--g-02);}

[lang="en-US"] #snb li a{width:auto; min-width:155rem;}

@media all and (max-width:1200px){
	#lnb:not(.lnb-select) .select-link > ul > li{width:200rem;}
}
@media all and (max-width:1023px){
	/*
	#sub-visual{height:580rem;}	
	#sub-visual h2{font-size:45rem;}

	.sub-visual__inner{top:340rem;}
	
	#lnb.lnb-select .select-link__btn{font-size:18rem;}
	#lnb{top:420rem;}
	*/

	#lnb:not(.lnb-select) .select-link > ul > li{width:150rem;}

}


@media (max-width: 860px){
	#lnb:not(.lnb-select) .select-link > ul > li{width:auto}
}
@media (max-width: 540px){
	#sub-visual{height:500rem;}
	.sub-visual__title:has(.title-ko.none) .title-ko{display:block !important; margin-top:5rem; font-weight:700 !important; font-size:18rem !important;}
	#sub-visual .wrap{padding-bottom:20rem;}

	#sub-nav{margin-bottom:12rem;}
	#sub-nav span{font-size:13rem;}
	#sub-nav > i{margin: 0rem 10rem;}
	#sub-nav .sub-home{width:14rem; height:14rem;}

	#lnb{top:auto; bottom:20rem; z-index:10; padding:0;}
	#lnb .lnb-inner{backdrop-filter: blur(10rem); -webkit-backdrop-filter: blur(10rem); display:inline-flex; justify-content: center; padding: 10rem; border-radius: 6rem; background: rgba(255, 255, 255, .2);}
	
	#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:6rem;}
	#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-wrap{margin-bottom:30rem;}
	#snb li a{height:36rem; width:98rem; padding:0 12rem;}
}

