/* ===== Top bar (1depth) */
.G_gnb_wrap {
  position: fixed;
  top:0;
  left:0;
  right:0;
  z-index:952;
  background: #fff;
  height:var(--header_height);
  border-bottom: 1px solid #E0E0E0;
  transition: transform 0.3s ease;
}
.G_gnb_wrap.is-hidden {
  transform: translateY(-100%); /* 위로 숨김 */
}

.gnb{
  width:100%;
  height:100%;
}
.gnb__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left:calc(var(--header_inner_padding) - 20px);
  position:relative;
  max-width: 1440px;
  margin: 0 auto;
}

/* 메뉴 */
.gnb__left {
  display: flex;
  align-items: center;
  height:100%;
}

.gnb__item{
  height:100%;
  position:relative;
}
.gnb__btn {
  display: inline-flex;
  align-items: center;
  height: 100%;
  /* font-size:18px */
  font-size: max(14px, 1.8rem);
  font-weight:600;
  color:#000;
  /* padding:0 27px */
  padding:0 2rem;
}
.gnb__item:first-of-type .gnb__btn {
  padding-left: 0px;
}

#gnb.is-dropdown-open .gnb__btn{
  color:#BDBDBD;
}
#gnb.is-dropdown-open .gnb__item.is-open .gnb__btn{
  color:#000;
}

.gnb__item::before{
  content: '';
  position: fixed;   /* ← absolute 대신 fixed */
  top: var(--header_height); /* 헤더 바로 아래부터 */
  left: 0;
  right: 0;
  background: #fff;
  height:0;
  opacity: 0;
  z-index: 1;       /* 드롭다운보다 뒤에 깔리게 */
  transition: height 0.65s var(--ease), opacity 0.2s var(--ease),
    transform 0.45s var(--ease);
}
.no_transition .gnb__item::before{
  transition:none !important;
}
.gnb__item.is-open::before {
  height: 320px;     /* dropdown 높이 */
  opacity: 1;
}

/* ===== Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: -0.5rem;
  min-width:720px;
  padding-top: 4.4rem;
  /*   margin-left: calc((100vw - 100%) / -2); */
  /*   border-bottom: 1px solid #e5e7eb; */
  /*   background: #fff; */
  overflow: hidden;
  pointer-events: none;
  height: 0;
  opacity: 0;
  transition: height 0.65s var(--ease), opacity 0.2s var(--ease),
    transform 0.45s var(--ease);
  z-index: 30;
  border-left:1px solid #E0E0E0;
}
.gnb__item:first-of-type .dropdown {
  left: -2.4rem;
}
.no_transition .dropdown{
  transition:none !important;
}
.dropdown.is-open {
  pointer-events: auto;
  height: 320px;
  opacity: 1;
}

.dropdown__inner {
  display: flex;
  justify-content: space-between;
  position: relative;
}

/* 드롭다운 이미지 */
.gnb__item .dropdown__image {
  position: fixed; /* gnb__item::before와 동일한 fixed */
  top: calc(var(--header_height)); /* 헤더 높이 */
  right: 0; /* 화면 우측 상단 */
  flex-shrink: 0;
  max-width: 720px;
  width: 50%;
  height: 0; /* 기본적으로 높이 0 */
  overflow: hidden;
  opacity: 0;
  z-index: 32; /* gnb__item::before(z-index: 1)보다 위에 */
  transition: height 0.65s var(--ease), opacity 0.2s var(--ease);
  pointer-events: none;
}

.no_transition .gnb__item .dropdown__image {
  transition: none !important;
}

/* 드롭다운이 열렸을 때만 이미지 표시 (형제 관계) */
.gnb__item.is-open .dropdown__image {
  height: 320px; /* dropdown height와 동일 */
  opacity: 1;
  pointer-events: auto;
}

.dropdown__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1); /* 스케일 업 효과 방지 */
  transition: none; /* 이미지 자체는 애니메이션 없음 */
}

.depth2 {
  display:flex;
  flex-direction:column;
  gap: 1rem;
}
.depth2 a {
  position:relative;
  /*   min-width:210px; */
  display: block;
  /* line-height:40px */
  line-height: 3.6rem;
  /* padding: 4px 60px ; */  /* padding-right:72px */
  padding-right: 4.4rem;
  padding-left:2.4rem;
  color: #000;
  font-weight: 600;
  /* font-size:24px */
  font-size: max(14px, 1.8rem);
}
.depth2 a:hover,
.depth2 a:focus {
  background: #000;
  color: #fff;
}
.depth2 a svg{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  right: 1.6rem;
}
/* description */
.desc{
  position:absolute;
  left:100%;
  top:50%;
  transform:translateY(-50%);
  /* padding:0 40px */
  padding:0 4rem;
  white-space: nowrap; 
  opacity:0;
  /* font-size:16px */
  font-size: max(14px, 1.6rem);
  color:#424242;
  font-weight:300;
  transition:all 0.3s ease;
}
.depth2 a:hover .desc,
.depth2 a:focus .desc {
  opacity:1;
}

/* ===== Blur Overlay */
.gnb-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
  z-index: 10;
}
.gnb-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* 로고 */
.G_header_logo {
  /* width:105px */
  width:10.5rem;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
}
.G_header_logo img{
  width:100%;
}

/* 우측 */
.gnb__right{
  display:flex;
  align-items:center;
  /* gap:76px */
  gap:7.6rem;
}
.gnb__right__btn.btn-fill {
  display: inline-flex;
  align-items: center;
  height: 100%;
  /* font-size:16px */
  font-size: max(14px, 1.8rem);
  line-height:1;
  font-weight:600;
  color:#000;
  background:#fff;
  padding:6px 2px;
  transition:all 0.3s ease 0.1s;
}
.gnb__right__btn.btn-fill.purple:hover{
  color:#fff;
}
.gnb__right__left{
  display:flex;
  align-items:center;
  /* gap:56px */
  gap:5.6rem;
}
.gnb__right__right{
  display:flex;
  align-items:center;
  /* gap:49px */
  gap:4.9rem;
}
.gnb__search__btn{
  cursor:pointer;
}
.gnb__search__btn.active svg *,
.gnb__search__btn:hover svg *{
  fill:#00DC84;
}
.gnb__lng__btn{
  font-weight:600;
  /* font-size:20px */
  font-size: max(14px, 2rem);
  line-height:1;
  color:#000;
}

/* 퀵서치 */
.quickSearch_wrap {
  position: fixed;
  top: var(--header_height);
  left: 0;
  width:100%;
  z-index: 30;
  overflow:hidden;
}
.quickSearch{
  width:100%;
  background:#fff;
  height:0;
  z-index: 30;
  transition:height 0.3s ease;
  overflow:hidden;
}
.quickSearch_wrap.is-open .quickSearch{
  height:240px;
  transition-delay: 0.2s; 
  /*   0.2초 뒤에 시작 */
}
.content_inner.search_box{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  /* gap:54px */
  gap:5.4rem;
  opacity:0;
  transition:all 0.3s ease;
  /* padding-top:50px */
  padding-top:5rem;
  /* padding-bottom:50px */
  padding-bottom:5rem;
}
.quickSearch_wrap.is-open .search_box{
  opacity:1;
}
.qs_input_wrap{
  display:flex;
  align-items:center;
  /* gap:40px */
  gap:4rem;
}
.qs_input_wrap svg{
  min-width:42px;
  width:42px;
  height:42px;
}
.qs_search_btn{
  cursor:pointer;
}
.qs_search_btn:hover svg *{
  fill:#00dc84;
}
.qs_input{
  width:100%;
  height:100%;
  color:#000;
  /* font-size:50px */
  font-size: max(14px, 5rem);
  font-weight:600;
}





.qs_input::placeholder {
  color: #EEEEEE;
}
.qs_keywords_wrap{
  display:flex;
  align-items:center;
  /* gap:43px */
  gap:4.3rem;
}
.qs_keywords_wrap p{
  /* font-size:18px */
  font-size: max(14px, 1.8rem);
  font-weight:600;
  color:#000;
}
.qs_keywords_wrap ul{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
}
.qs_keywords_wrap ul li a{
  height:26px;
  line-height:26px;
  padding:0 10px;
  /* font-size:16px */
  font-size: max(14px, 1.8rem);
  font-weight:300;
  color:#616161;
  background:#F5F5F5;
}
.qs_keywords_wrap ul li a:hover{
  color:#fff;
  background:#000;
}

/* 실시간 검색 */
.rt_search_wrap{
  position:absolute;
  top:130px;
  left:0;
  width:100%;
  background:#000;
  height:0;
  transition: height 0.3s ease;
  z-index:11;
  overflow:hidden;
}
.rt_search_wrap.active{
  height:418px;
}
.content_inner.rt_search_inner {
  height:100%;
  /*   돋보기 아이콘, gap만큼 패딩 주기 */
  padding:46px calc(var(--content_inner_padding) + 42px + 40px + 3px) !important;
  /*   max-width:calc(1388px + var(--content_inner_padding) * 2); */
  /*   padding: 50px calc(var(--header_inner_padding) + 86px); */
}
.live_result_list{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
  gap:24px
}
.live_result_list .result_item{
  color:#BDBDBD;
  /* font-size:22px */
  font-size: max(14px, 2.2rem);
  font-weight:400;
}
.live_result_list li a{
  /*   display:flex; */
  /*   align-items:center; */
  transition:all 0.3s ease;
}
.live_result_list li a:hover {
  box-shadow: inset 0 -1px 0 #BDBDBD; /* 아래쪽에 1px 선 */
}
.live_result_list li a .hs-highlight-title{
  /*   margin-left:12px; */
}
.rt_search_inner a .parent_tag{
  /* font-size:22px */
  font-size: max(14px, 2.2rem);
  font-weight:400;
  color:#616161;
  margin-left:40px;
}

/* 하단 blur 영역 */
.quickSearch_overlay {
  display:block;
  height:0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
  z-index: 10;
}
.quickSearch_wrap.is-open  .quickSearch_overlay{
  height:100vh;
  opacity: 1;
  pointer-events: auto;
}

.m-gnb{
  display:none;
}

.global_cta_btn_container{
  position:fixed;
  top:-100%;
  left:0;
  right:0;
  z-index:29;
  opacity:0;
}

.gnb__item.is-open .global_cta_btn_container{
  top:calc(var(--header_height) + 276px);
  opacity:1;
  transition:opacity 0.3s ease 0.2s; /* ✅ 마지막 0.3s가 딜레이 */
}
.no_transition .gnb__item.is-open .global_cta_btn_container{
  transition:none !important;
}
.global_cta_btn_container .header_inner{
  display:flex;
  justify-content:flex-end;
}




/* 1400px 반응형 - gnb 좌우 패딩 */
@media (max-width: 1480px) {
  .gnb__wrap {
    padding-left: 60px;
    padding-right: 60px;
  }
  .gnb__item:first-of-type .gnb__btn {
    padding-left: 0;
  }
}

/* 1200px 반응형 *****************************************************************************************1200px 반응형*********** */
@media (max-width: 1200px){
  /* 모바일에서는 드롭다운 이미지 숨김 */
  .dropdown__image {
    display: none !important;
  }
  .gnb {
    display:none;
  }
  .quickSearch_wrap.is-open .quickSearch{
    height:274px;
  }
  .search_box{
    max-width:none;
    padding:80px 20px 48px;
    gap:67px;
  }
  .qs_input_wrap{
    gap:25px;
  }
  .qs_input_wrap svg{
    width:26px;
    min-width:26px;
    height:26px;
  }
  .qs_input{
    font-size:28px;
  }
  .qs_keywords_wrap{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .content_inner.rt_search_inner{
    padding:36px 20px;
  }
  .content_inner.rt_search_inner {
    height:100%;
    /*   돋보기 아이콘, gap만큼 패딩 주기 */
    padding:36px 20px !important;

  }
  .live_result_list .result_item{
    font-size:18px;
  }

  /* 모바일 헤더 */
  .m-gnb{
    display:block;
    background: #fff;
    height:var(--header_height);
    border-bottom: 1px solid #EBEBEB;
    transition: transform 0.3s ease;
  }
  .m-gnb.is-hidden {
    transform: translateY(-100%); /* 위로 숨김 */
  }
  .m-gnb_wrap{
    display:flex;
    height:100%;
    justify-content:space-between;
    align-items:center;
  }
  /* 로고 */
  .m-G_header_logo {
    width:94px;
  }
  .m-G_header_logo img{
    width:100%;
  }
  .m-gnb_right{
    display:flex;
    align-items:center;
    gap:34px;
  }
  /*   검색 */
  .m-gnb__search__btn{
    cursor:pointer;
  }
  .m-gnb__search__btn.active svg *,
  .m-gnb__search__btn:hover svg *{
    fill:#00DC84;
  }
  .m-gnb_right.active .m-gnb__search__btn{
    display:none;
  } 
  /*   언어 */
  .m-gnb_lang_btn{
    display:none;
    font-size:20px;
    color:#000;
    font-weight:600;
  }
  .m-gnb_right.active .m-gnb_lang_btn{
    display:none;
  }
  /*   햄버거 버튼 */
  .menu-btn{
    position:relative; 
    width:20px; 
    height:14px; 
    border:0; 
    cursor:pointer;
  }

  /* 공통 바 */
  .menu-btn span{
    position:absolute; 
    left:0; 
    right:0; 
    height:3px; 
    background:#000;
    /* 이동(top/bottom)과 회전을 따로 제어 */
    transition:
      top .25s ease, bottom .25s ease,
      transform .25s ease; /* 지연은 상태별로 다르게 걸어줌 */
  }

  /* 초기 위치: 두 줄(=) */
  .menu-btn span:nth-child(1){ top:0; }
  .menu-btn span:nth-child(2){ bottom:0; }

  /* --- 활성화: 중앙으로 모인 뒤 X --- */
  .menu-btn.active span:nth-child(1){ top:5px; }     /* 먼저 중앙으로 */
  .menu-btn.active span:nth-child(2){ bottom:6px; }

  .menu-btn.active span{
    /* 회전은 약간 늦게 시작 → 모인 후 X */
    transition:
      top .25s ease, bottom .25s ease,
      transform .25s ease .18s; /* transform만 지연 */
  }
  .menu-btn.active span:nth-child(1){ transform: rotate(45deg); }
  .menu-btn.active span:nth-child(2){ transform: rotate(-45deg); }

  /* --- 비활성화(역방향): X 풀고 나서 벌어지도록 --- */
  .menu-btn:not(.active) span{
    /* 역방향은 회전 즉시, 위치는 조금 늦게 → 자연스러운 해제 */
    transition:
      top .25s ease .18s, bottom .25s ease .18s,
      transform .25s ease 0s;
  }

  /*   드랍다운 메뉴 */
  .m-dropdown_wrap{
    position:absolute;
    top:var(--header_height);
    left:0;
    right:0;
    height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    padding:0;
    background:#fff;
  }
  .m-gnb_right.active .m-dropdown_wrap{
    padding-top:34px;
    height:calc(100vh - var(--header_height));
    overflow-y:auto;
    padding-bottom:100px;
  }

  .m-menu_group{
    display:flex;
    flex-direction:column;
  }

  .m-groupMenu{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px;
  }
  .m-groupMenu span{
    font-weight:500;
    font-size:20px;
    color:#000;
  }
  .m-menu_group.open span{
    color:#00DC84;
  }
  .m-menu_group svg{
    transition:all 0.4s ease;
  }
  .submenu{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.6s ease;
  }
  .m-menu_group.open .submenu{
    max-height:400px;
  }
  .m-menu_group.open svg{
    transform: rotate(180deg);
  }
  .submenu_inner{
    padding:12px 0 26px;
  }
  .submenu_inner a {
    display:block;
    padding:13.5px 20px;
    font-size:20px;
    color:#000;
  }
  .submenu_inner a:hover {
    background:#F5F5F5;
  }
  


  /*   반응형 끝 */  .submenu_inner a:hover {
    background:#F5F5F5;
  }

  /* 버튼 그룹 - 메뉴로부터 90px 간격 */
  .m-bnt_group {
    margin-top: 90px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .m-bnt_group p {
    font-size: 16px;
    font-weight: 300;
    color: #000;
    margin-bottom: 28px;
    text-align: center;
  }
  .m-bnt_group_inner {
    display: flex;
    gap: 8px;
    justify-content: center;
  }
  .m-bnt_group .m-bnt_btn {
    width: 140px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000;
    background: #F5F5F5;
    border-radius: 4px;
    font-weight: 500;
    flex-shrink: 0;
  }
  .m-bnt_group .m-bnt_btn:hover {
    background: #000;
    color: #fff;
  }
  .m-menu_group{
    display:flex;
    flex-direction:column;
    position: relative;
    /* border-bottom 제거하고 가상 요소로 대체 */
  }
  .m-menu_group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background-color: #E0E0E0;
  }
  .qs_input_wrap svg { width:26px !important; height: 26px !important; }
  .quickSearch .content_inner.search_box { padding-right:20px !important; padding-left:20px !important; }

  /*   반응형 끝 */
}
}






