/* ── 헤더 바 높이 ── */
.hd-bar { height: 72px; }

/* ── 양쪽 사이드: 평소엔 크게 → nav 좁게 모임 ── */
.hd-side {
    width: 28vw;
    flex-shrink: 0;
    transition: width 0.35s ease-in-out;
    overflow: hidden;
}

/* 메가 오픈 시: 사이드 줄고 → nav/mega 확장 ── */
#site-header.is-mega-open .hd-side {
    width: 16vw;
}

/* ── GNB nav ── */
.hd-nav {
    flex: 1;
    min-width: 0;
}

/* ── GNB ul ── */
.gnb {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* ── GNB li: 균등 분배 ── */
.gnb-item {
    flex: 1;
    display: flex;

}

/* ── GNB a ── */
.gnb-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    color: var(--dark);
    transition: background 0.25s, color 0.25s;
    padding: 0 12px;
}

.gnb-item.is-hover .gnb-link,
.gnb-item.is-page-active .gnb-link {
    background: var(--sub-color);
    color: #fff;
    font-weight: 700;
}

/* ============================================================
   메가메뉴 - hd-side transition이 동일하게 적용됨
============================================================ */
.mega-menu {
    top: 72px;
    left: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    border-top: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}
.mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-inner {
    flex: 1;
    min-width: 0;
    display: flex;
}

.mega-col {
    flex: 1;
    min-width: 0;
    padding: 28px 0;
    border-right: 1px solid var(--gray-100);
    transition: background 0.2s;
    text-align: center;
}
.mega-col:last-child { border-right: none; }
.mega-col.is-active { background: var(--sub-color); }

.mega-sub-link {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 400;
    color: var(--gray-700);
    letter-spacing: var(--ls-10);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s;
}
.mega-sub-link:hover { color: var(--sub-color); font-weight: 600; }
.mega-col.is-active .mega-sub-link { color: rgba(255,255,255,.7); }
.mega-col.is-active .mega-sub-link:hover,
.mega-col.is-active .mega-sub-link.is-active { color: #fff; font-weight: 700; }

/* ── 오버레이 ── */
.header-overlay {
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(0,0,0,.25);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}
.header-overlay.is-show { opacity: 1; visibility: visible; }

/* ── 구글 번역 숨김 ── */
.skiptranslate,
.goog-te-banner-frame { display: none !important; }
body { top: 0px !important; }



.promo-slider {
  width: max-content;
  height: 2.5vw;
  background: var(--sub);
border-radius: 0!important;
  overflow: hidden;
}
.promo-content {
  animation: slideUp 10s infinite;
}
.promo-item {
  height: 2.5vw;
  padding: 0 1.0417vw;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background-color: var(--sub-color);
  border-radius: 100px;
}

@keyframes slideUp {
  0%,
  18% {
    transform: translateY(0);
  }
  20%,
  38% {
    transform: translateY(-2.5vw);
  }
  40%,
  58% {
    transform: translateY(-5vw);
  }
  60%,
  78% {
    transform: translateY(-7.5vw);
  }
  80%,
  98% {
    transform: translateY(-10vw);
  }
  100% {
    transform: translateY(0);
  }
}

@media screen and (max-width:1200px) {
    .hd-side a img {
        max-height: 25px!important;
    }
}



/* ############################################################
     헤더
############################################################
*/

.demo-header {
  box-shadow: 0 0.1042vw 0.4167vw rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 9999;
}
.header-container {
  height: 4.1667vw;
  min-height: 60px;
}
.logo {
  font-weight: 700;
  color: var(--main-color);
  min-width: 175px;
}

.header-flyout .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 62.5vw;
}
.header-flyout.sticky {
  background-color: #fff;
}
.header-flyout .menu > li {
  position: relative;
  padding: 0.5208vw 0;
}
.header-flyout .menu > li > a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.2083vw;
  transition: color 0.3s;
  white-space: nowrap;
  justify-content: center;
}
.header-flyout .menu > li > a:hover {
  color: var(--sub-color) !important;
}
.header-flyout.sticky .menu > li > a {
  color: var(--dark) !important;
}

.header-flyout .submenu {
  position: absolute;
  top: 150%;
  left: 0;
  box-shadow: 0 0.4167vw 1.25vw rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 0.625vw 0;
  margin: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.header-flyout .menu > li:hover .submenu {
  opacity: 1;
  visibility: visible;
}
.header-flyout .submenu li {
  background-color: transparent;
  border-radius: 4px;
  transition: all 0.5s;
}
.header-flyout .submenu li:hover {
  background-color: #fff;
}
.header-flyout .submenu li a {
  display: block;
  padding: 0.625vw 1.0417vw;
  color: var(--white);
  text-decoration: none;
  transition: all 0.5s;
}
.header-flyout .submenu li:hover a {
  color: var(--sub-color);
  padding-left: 1.25vw;
}

.promo-slider {
  width: max-content;
  height: 2.5vw;
  background: var(--sub);
  border-radius: 0.625vw;
  overflow: hidden;
}
.promo-content {
  animation: slideUp 10s infinite;
}
.promo-item {
  height: 2.5vw;
  padding: 0 1.0417vw;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

@keyframes slideUp {
  0%,
  14% {
    transform: translateY(0);
  }
  16%,
  30% {
    transform: translateY(-2.5vw);
  }
  33%,
  47% {
    transform: translateY(-5vw);
  }
  50%,
  64% {
    transform: translateY(-7.5vw);
  }
  66%,
  80% {
    transform: translateY(-10vw);
  }
  83%,
  97% {
    transform: translateY(-12.5vw);
  }
  100% {
    transform: translateY(0);
  }
}

.header-dark-flyout {
  background: var(--dark);
  box-shadow: 0 0.1042vw 0.625vw rgba(0, 0, 0, 0.3);
}
.hdf-logo__link {
  gap: 0.625vw;
}
.hdf-logo__img {
  height: 2.0833vw;
}
.hdf-logo__name {
  font-size: clamp(1rem, 0.2vw + 0.9rem, 1.125rem);
}
.hdf-logo__sub {
  font-size: 0.5208vw;
  letter-spacing: 0.08em;
}
.hdf-menu {
  gap: 0.4167vw;
}
.hdf-menu__link {
  gap: 0.2083vw;
  padding: 0.5208vw 0.7292vw;
  border-radius: 0.3125vw;
}
.hdf-submenu {
  top: calc(100% + 1.875vw);
  box-shadow: 0 0.4167vw 1.25vw rgba(0, 0, 0, 0.4);
  border-radius: 0.4167vw;
  padding: 0.3125vw 0 0.5208vw;
  min-width: 8.3333vw;
}
.hdf-submenu li a {
  padding: 0.3125vw 1.0417vw;
  border-radius: 0.3125vw;
  width: calc(100% - 1.0417vw);
}
.hdf-promo {
  gap: 0.5208vw;
  padding: 0.5208vw 1.0417vw;
  border: 1.5px solid var(--gray-500);
}


/* ############################################################
     모바일 헤더
############################################################
*/
#mobileMenu5 {
  width: 80% !important;
}
#mobileMenu5 .mobile-menu-link {
  padding: 1.25vw 1.4583vw 1.25vw 0;
  font-size: 1.5625vw;
}
.mobile-menu-item > a {
  min-height: 3.125vw;
}
.mobile-menu-list li {
  min-height: 3.125vw;
}

#mobileMenu1 .offcanvas-menu .menu li a {
  padding: 0.8333vw 1.0417vw;
  font-size: 1.3542vw;
}
#mobileMenu2 .offcanvas-menu .menu li a {
  padding: 0.8333vw 1.0417vw;
  font-size: 1.3542vw;
  gap: 0.7292vw;
}

.mobile-header .logo {
  font-size: 1.25rem;
}
.mobile-header .phone-link {
  color: var(--main-color);
  text-decoration: none;
  font-size: 1.5rem;
}
.hamburger-btn {
  background: none;
  border: none;
  color: var(--t-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
}

.offcanvas-menu .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.offcanvas-menu .menu li {
  border-bottom: 1px solid var(--gray-200);
}
.offcanvas-menu .menu li a {
  display: block;
  padding: var(--sp-16) var(--sp-20);
  color: var(--t-color);
  text-decoration: none;
  transition: all 0.3s;
}
.offcanvas-menu .menu li a:hover {
  background: var(--gray-100);
  color: var(--main-color);
}
.offcanvas-menu .submenu {
  list-style: none;
  padding-left: var(--sp-20);
  background: var(--gray-100);
}
.offcanvas-menu .submenu li a {
  padding: var(--sp-12) var(--sp-20);
}
.btn-close-white {
  filter: none !important;
}

.mob-arrow {
    transition: transform 0.3s ease;
}
.mob-arrow.is-rotated {
    transform: rotate(180deg);
}
