/* ── 헤더 바 높이 (레거시) ── */
.hd-bar { height: 72px; }
.position-sticky {top: 0;}
#site-header {
    transition: transform 0.3s ease;
    top: 0;
}

/* ── PC 헤더 (Figma 34:1062) ── */
.hd-pc {
	width: 100%;
	padding: 0 clamp(16px, 1.46vw, 28px);
	box-sizing: border-box;
}

.hd-pc__bar {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	min-height: 100px;
	padding: 16px clamp(16px, 1.46vw, 28px) 26px;
	background: var(--main-color);
	border-radius: 0 0 40px 40px;
	box-sizing: border-box;
}

.hd-pc__logo {
	flex: 0 0 auto;
	width: min(200px, 18vw);
	height: 48px;
}

.hd-pc__logo-img {
	display: block;
	max-width: 100%;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.hd-pc__nav {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: calc(100% - 520px);
}

.hd-pc__nav .gnb {
	gap: 0;
}

.hd-pc .gnb-item {
	position: relative;
	flex: 0 0 auto;
}

.hd-pc .gnb-flyout {
	position: relative;
	height: 100%;
}

.hd-pc .gnb-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 122px;
	padding: 10px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.hd-pc .gnb-item:hover .gnb-link,
.hd-pc .gnb-item.is-open .gnb-link,
.hd-pc .gnb-item.is-page-active .gnb-link {
	/* color: var(--sub-color); */
	/* font-weight: 500; */
}

.hd-pc .gnb-submenu-panel {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1100;
	min-width: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.hd-pc .gnb-submenu-bridge {
	display: block;
	height: 14px;
	width: 100%;
}

.hd-pc .gnb-submenu {
	background: var(--white);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
	padding: 8px;
	min-width: 168px;
}

.hd-pc .gnb-submenu-link {
	padding: 10px 16px;
	border-radius: 10px;
	color: var(--dark);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hd-pc .gnb-submenu-link:hover,
.hd-pc .gnb-submenu-link.is-active {
	background: var(--gray-100);
	color: var(--main-color);
	font-weight: 600;
}

.hd-pc .gnb-item.is-open .gnb-submenu-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.hd-pc__tel {
	flex: 0 0 auto;
	width: min(240px, 22vw);
	height: 48px;
	padding: 0 20px;
	border-radius: 99px;
	background: var(--white);
	box-sizing: border-box;
	transition: opacity 0.2s ease;
}

.hd-pc__tel:hover {
	opacity: 0.92;
}

.hd-pc__tel-text {
	font-size: clamp(16px, 1.04vw, 20px);
	line-height: 1.4;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.hd-pc__tel-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

/* ── 양쪽 사이드: 평소엔 크게 → 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(--white);
    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;
  min-width: 230px;;
  height: 2.5vw;
  background: var(--sub);
border-radius: 0!important;
  overflow: hidden;
}
.promo-content {
  animation: slideUp6 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;
}

/* 4단 */
@keyframes slideUp4 {
 0%, 23%   { transform: translateY(0); }
25%, 48%  { transform: translateY(-2.5vw); }
50%, 73%  { transform: translateY(-5vw); }
75%, 98%  { transform: translateY(-7.5vw); }
100%      { transform: translateY(0); }
}
/* 5단 */
@keyframes slideUp5 {
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); }
}
/* 6단 */
@keyframes slideUp6 {
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); }
}
@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 {
  /* 1번 아이템 정지 */
  0%, 20% {
    transform: translateY(0);
  }
  /* 2번 아이템으로 이동 및 정지 */
  25%, 45% {
    transform: translateY(-2.5vw);
  }
  /* 3번 아이템으로 이동 및 정지 */
  50%, 70% {
    transform: translateY(-5vw);
  }
  /* 4번 아이템으로 이동 및 정지 */
  75%, 95% {
    transform: translateY(-7.5vw);
  }
  /* 다시 1번으로 복귀 */
  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(--sub-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(--sub-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);
}
