@import "../raw.css";
@import "../utilities.css";
@import "../semantic.css";

#st-header{font-family: 'Pretendard', sans-serif;}
#st-header.gnb{z-index: 9999; background: var(--st-bg-neutral-default, #fff); font-weight: 600;}

/* tit */
#st-header.gnb .gnb__tit{border-bottom: .1rem solid var(--st-stroke-default, #ededf3); background: var(--st-bg-neutral-default, #fff);}
#st-header.gnb .gnb__tit .gnb__inner{display: flex; align-items: center; justify-content: space-between; height: 5rem; padding: 0 1.6rem 0 .8rem;}
#st-header.gnb .gnb__logo{display: inline-flex; align-items: center; height: 2.8rem;}
#st-header.gnb .gnb__logo img{width: auto; height: 2.8rem;}
#st-header.gnb .gnb__menu-btn{display: flex; align-items: center; justify-content: center; width: 3.6rem; height: 3.6rem; padding: .8rem;}
#st-header.gnb .gnb__menu-btn .ico{width: 2.4rem; height: 2.4rem;}
#st-header.gnb .gnb__menu-btn .ico::before{width: 2.4rem; height: 2.4rem; background-color: var(--st-icon-default, #5c6675);}

/* nav depth */
#st-header .gnb__nav{background: var(--st-bg-neutral-default, #fff);}
#st-header .gnb__depth{overflow: hidden;}
#st-header .gnb__depth .swiper{overflow: visible !important;}
#st-header .gnb__depth--main .swiper,
#st-header .gnb__sub-panel .swiper{border-bottom: .1rem solid var(--st-stroke-default, #ededf3);}
#st-header .gnb__slider{padding: 0 1.6rem; margin: 0; list-style: none; box-sizing: border-box;}
#st-header .gnb__slider li{width: auto;}
#st-header .gnb__slider:not(.swiper){display: flex; gap: 1.6rem;}
#st-header .gnb__slider:not(.swiper) li{flex-shrink: 0; align-items: center;}
#st-header .gnb__depth--main .gnb__slider{height: 4.4rem;}
#st-header .gnb__depth--sub .gnb__slider{height: 4.4rem;}
#st-header .gnb__depth .gnb__item{width: auto; flex-shrink: 0; position: relative;}
#st-header .gnb__depth .gnb__item > a{display: flex; align-items: center; min-width: 3rem; height: 4.4rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.015rem; white-space: nowrap; text-decoration: none; color: var(--st-text-default, #121212);}
#st-header .gnb__depth .gnb__item > a .gnb__txt{display: flex; justify-content: center; align-items: center; gap: .2rem; min-width: 3rem; height: 100%; position: relative; padding: 0 .2rem; text-align: center;}
#st-header .gnb__depth--main .gnb__item.active > a{color: var(--st-text-default, #121212);}
#st-header .gnb__depth--main .gnb__slider--line .gnb__item.active .gnb__txt::after{content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .2rem; background: var(--st-bg-neutral-inverted, #121212);}
#st-header .gnb__depth--sub .gnb__item > a{color: var(--st-text-subtle, #5c6675); padding: 0 .2rem;}
#st-header .gnb__depth--sub .gnb__item.active > a{color: #121212;}
#st-header .gnb__tag{margin-left: .1rem; margin-top: -0.8rem; font-size: 1.1rem; font-weight: 600; line-height: 1.38; letter-spacing: -.022rem; color: var(--red-50, #ff4542);}
#st-header .gnb__lnk--prem{gap: .4rem;}
#st-header .gnb__lnk--prem img{width: 1.4rem; height: auto;}
#st-header .gnb__lnk--mock{color: var(--purple-60);}

#st-header.gnb a:hover{text-decoration: none;}

  :is(#st-header.sub, .popup-gnb-wrap):not(.__fixed){position:sticky;top:0;left:0;right:0;background: var(--white);z-index:9999;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit{border-bottom:.1rem solid var(--gray-20);background: var(--white);}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit:has(.bi-img){font-size: 0;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit .inner-wrap{display:flex;height:5rem; align-items:center;width:calc(100% - 1.6rem); justify-content: space-between;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit .gnb-tit{margin-left: .8rem;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit h1{font-size:var(--fz-18);color:var(--black);}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit h1.bi-img {height:2.8rem; line-height: 2.8rem; text-align: left; font-size: 0; position: relative;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit h1.bi-img img:not(.logo_bnr){display: inline-block; vertical-align: middle; width: auto; height: 2.8rem; position: relative; z-index: 1;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit a{position: relative;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit a .logo_bnr{position: absolute; top: 50%; left: 0; margin-top: -1.7rem; padding-left: .8rem; opacity: 0; z-index: 0; pointer-events: none; animation: open_logo_bnr .5s 1s forwards, open_logo_bnr .5s 4s forwards reverse; width: auto; height: 3.4rem; max-width: none;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit a:hover .logo_bnr{left: 100%; opacity: 1;}
  
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit h2{font-size:var(--fz-16);color:var(--black); line-height: normal;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit .btn-wrap{display:flex;align-items:center;gap:.1rem;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit .btn-wrap._right{margin-left:auto;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit .ico{width:3.6rem;height:3.6rem;display:flex;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit .ico::before{background-color:var(--gray-100);width:2.4rem;height:2.4rem;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit._type_side .inner-wrap{position:relative;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit._type_side .btn-wrap._left{position:absolute;top:50%;left:0;transform:translateY(-50%);}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit._type_side .btn-wrap._right{position:absolute;top:50%;right:0;transform:translateY(-50%);}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit._type_side .gnb-tit{display:flex;align-items:center;justify-content:center;min-width:20rem;max-width:calc(100% - 20rem);margin:0 auto;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit .gnb-tit button{margin-left:-.4rem;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit .gnb-tit a i.ico_bi{width:1.8rem;aspect-ratio: 1/1;margin-right:.5rem;background:transparent url('/un_static/img/m/common/bi_36x34.png') no-repeat 50% 50% / 100% auto;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit .btn-wrap button.txt{color:var(--blue-70);font-size:var(--fz-15);min-width:3.6rem;padding:1rem;}
  
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit._type_side .gnb-tit .btn{display:flex;align-items:center;justify-content:center;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit._type_side .gnb-tit .btn .ico{margin-left:-.3rem;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit._type_side .gnb-tit .btn._more{position:relative;padding-right:1.2rem;}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit._type_side .gnb-tit .btn._more > .ico{position: absolute; top: 50%; margin-top: -1.8rem; margin-left: 0; left: calc(100% - 1.9rem);}
  :is(#st-header.sub, .popup-gnb-wrap) .sec-gnb-tit._type_side .gnb-tit.open .btn .ico{transform: rotate(180deg);}
  .header-sticky#gnb_fullservice {display: none;}
  .header-sticky#gnb_fullservice.on {display: block;}
  .header-sticky.gnb_fullservice_item {display: none;}
  .header-sticky.gnb_fullservice_item.on {display: block;}
  .header-sticky .gnb-nav{overflow: hidden;}
  .header-sticky .gnb-nav > .swiper{overflow: unset !important;}
  .header-sticky .gnb-nav .gnb-nav-slider{padding:0 1.6rem;border-bottom:.1rem solid var(--gray-20); background: #fff;}
  .header-sticky .gnb-nav .gnb-nav-slider li{width:auto;padding:0 .6rem;position:relative;}
  .header-sticky .gnb-nav .gnb-nav-slider li:not(:first-of-type){margin-left:1.6rem;}
  .header-sticky .gnb-nav .gnb-nav-slider li :is(button, a){height:4.3rem;line-height: 4.3rem;font-size:var(--fz-14);font-weight:var(--fw-bold);color:var(--gray-60);display:block;}
  .header-sticky .gnb-nav .gnb-nav-slider li.active :is(button, a){color:var(--gray-100);letter-spacing:var(--ls-2p);}
  .header-sticky .gnb-nav .gnb-nav-slider._line li.active::before{content:'';position:absolute;left:0;right:0;bottom:0rem;height:.3rem;background-color:var(--gray-100);}
  
  /* 프리미엄 메뉴 */
  .header-sticky .gnb-nav .gnb-nav-slider._line li.premium.active::before{background: #6101D9;}
  .header-sticky .gnb-nav .gnb-nav-slider._line li.blue.active::before{background: #025AF6;}
  
  .tit-menu > li{text-align: center;}
  .tit-menu > li > a{display: flex; justify-content: center; align-items: center; text-align: center; font-size: 1.5rem; font-weight: 600; height: 4.4rem;}
  .tit-menu > li > a:active{background: #FAFAFC;}
  
  .modal-bottom-wrap.tit-menu .modal-body{padding: .8rem 0; border-radius: 0 0 1.2rem 1.2rem;}
  /* main - gnb_depth02 */
  .header-sticky .gnb-nav.main .gnb-nav-slider li :is(button, a){color:var(--gray-60);}
  .header-sticky .gnb-nav.main .gnb-nav-slider li.active :is(button, a){color:var(--gray-100);}

/* gnb__nav scroll fixed (mobile) */
@media screen and (max-width: 767px) {
  #st-header.gnb-fix#st-header.sub:not(.__fixed){
    position: relative;
    top: auto;
    z-index: auto;
  }

  #st-header.gnb-fix > ._ph{
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
  }

  #st-header.gnb-fix .gnb__nav._fixed{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--st-bg-neutral-default, #fff);
  }
}
