@charset "UTF-8";
:root {
  /* 헤더 기본 변수 */
  --header-color: #333;
  --header-color-active: #000;
  --header-line-color: 1px solid #dbdbdb;
  --header-bg-color: #fff;
  --header-height: 65px;
  --border-color: #dee2e6;
  /* 섹션 패딩 */
  --section-padding: 160px 0;
  /* 색상 Palette */
  --primary: rgb(138, 0, 252);
  --primary-dark: rgb(77, 15, 128);
  --primary-light: rgba(138, 0, 252, 0.1);
  --danger: #dc3545;
  --danger-dark: #c82333;
  --text-primary: #212529;
  --text-secondary: #868e96;
  --border-color-dark: #c8cfd5;
  --bg-light: #f5f7f8;
  --white: #ffffff;
  /* [애니메이션 설정] */
  --menu-drop-speed: 0.3s;
  --nav-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================
   통합 배경막 (Curtain)
   ============================== */
.nav-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0; /* JS가 제어함 */
  background-color: #fff;
  z-index: 0; /* 컨텐츠 뒤로 */
  transition: height 0.3s var(--nav-easing);
  overflow: hidden;
  border-bottom: 1px solid transparent;
}

/* ==============================
   Layout (헤더 영역)
   ============================== */
#header {
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
  right: 0;
  z-index: 100;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  transition: transform 0.4s ease;

}
#header .header.unit {
  position: relative;
  z-index: 10;
}
#header .logo.white {
  display: none;
}
#header .logo.dark {
  display: block;
}
#header .nav-mobile-toggle-icon .line-1,
#header .nav-mobile-toggle-icon .line-2 {
  background-color: var(--header-color);
}
#header .nav-menu li a,
#header .icon-group a {
  color: var(--header-color);
}
#header.transparent:not(.fixed):not(.active):not(.menu-open) {
  /* 로고 및 텍스트 화이트 처리 */
  /* 투명 모드일 때는 nav-bg도 투명해야 하므로 JS에서 height 0으로 처리됨 */
}
#header.transparent:not(.fixed):not(.active):not(.menu-open) .logo.white {
  display: block !important;
}
#header.transparent:not(.fixed):not(.active):not(.menu-open) .logo.dark {
  display: none !important;
}
#header.transparent:not(.fixed):not(.active):not(.menu-open) .nav-menu li a,
#header.transparent:not(.fixed):not(.active):not(.menu-open) .icon-group a {
  color: #fff !important;
}
#header.transparent:not(.fixed):not(.active):not(.menu-open) .nav-mobile-toggle-icon .line-1,
#header.transparent:not(.fixed):not(.active):not(.menu-open) .nav-mobile-toggle-icon .line-2 {
  background-color: #fff !important;
}
#header.transparent:not(.fixed):not(.active):not(.menu-open) .btn-header {
  border-color: #fff !important;
  color: #fff !important;
}
#header.fixed, #header.active, #header.menu-open, #header:focus-within {
  /* 배경색은 .nav-bg가 담당하므로 여기서는 텍스트 색상만 관리 */
}
#header.fixed .logo.white, #header.active .logo.white, #header.menu-open .logo.white, #header:focus-within .logo.white {
  display: none !important;
}
#header.fixed .logo.dark, #header.active .logo.dark, #header.menu-open .logo.dark, #header:focus-within .logo.dark {
  display: block !important;
}
#header.fixed .nav-menu li a,
#header.fixed .icon-group a, #header.active .nav-menu li a,
#header.active .icon-group a, #header.menu-open .nav-menu li a,
#header.menu-open .icon-group a, #header:focus-within .nav-menu li a,
#header:focus-within .icon-group a {
  color: var(--header-color) !important;
}
#header.fixed .nav-mobile-toggle-icon .line-1,
#header.fixed .nav-mobile-toggle-icon .line-2, #header.active .nav-mobile-toggle-icon .line-1,
#header.active .nav-mobile-toggle-icon .line-2, #header.menu-open .nav-mobile-toggle-icon .line-1,
#header.menu-open .nav-mobile-toggle-icon .line-2, #header:focus-within .nav-mobile-toggle-icon .line-1,
#header:focus-within .nav-mobile-toggle-icon .line-2 {
  background-color: #000 !important;
}
#header.fixed .btn-header, #header.active .btn-header, #header.menu-open .btn-header, #header:focus-within .btn-header {
  border-color: currentColor !important;
  color: inherit !important;
}
#header.desktop {
  display: none;
}

.nav {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* [PC] 메뉴 네비게이션 */
}
.nav-menu {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  display: flex;
  /* justify-content: center; */
  align-items: center;
  pointer-events: none;
  padding: 0 !important;
  background-color: transparent !important;
}
.nav-menu li {
  pointer-events: auto;
  min-width: 120px;
  text-align: center;
  position: relative;
}
@media (max-width: 920px) {
  .nav-menu li {
    min-width: 90px;
  }
}
.nav-menu li a {
  text-decoration: none;
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: var(--header-height);
}
.nav-menu li a.active {
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 1px;
}
.nav-menu li:not(.nav-utils):hover > a {
  font-weight: 700;
}
.nav-menu .nav-utils {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
  width: auto !important;
}
.nav-menu .nav-utils .icon-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ==============================
   [PC] 메가 메뉴 (수정됨)
   ============================== */
.nav-mega-wrap {
  position: fixed;
  top: var(--header-height); /* 65px */
  left: 0;
  width: 100%;

  background-color: transparent !important;
  box-shadow: none !important;
  border-top: none !important;
  padding: 40px 0 60px;
  z-index: 190;
  /* 초기 상태 (숨김) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  /* 애니메이션만 남김 */
  transition: opacity 0.3s ease, visibility 0.3s;
}

/* 메뉴 활성화 시 (.menu-on 클래스 사용) */
.nav-menu li.menu-on .nav-mega-wrap {
  opacity: 1;
  visibility: visible;
  /* transition-delay 없앰 (배경과 동시에 등장) */
}

/* 메가 메뉴 내부 레이아웃 */
.nav-mega-inner {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 40px;
  align-items: start;
}

/* ==============================
   [PC] 메가 메뉴 내부 요소 (디자인 + 애니메이션 통합)
   ============================== */
/* 1. 타이틀 */
.mega-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  word-break: keep-all;
  padding-top: 10px;
  text-align: left;
  opacity: 0;
  transform: translateY(15px); /* 살짝 아래로 내려가 있음 */
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* 2. 리스트 */
.mega-list {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-left: 20px;
  border-left: 1px solid #eee;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.mega-list li {
  text-align: left !important;
}
.mega-list li a {
  color: #333 !important;
  line-height: 1;
  transition: color 0.2s;
}
.mega-list li a:hover {
  color: var(--primary) !important;
}

/* 3. 이미지 */
.mega-image {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f4f4f4;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.mega-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s;
}
.mega-image:hover img {
  transform: scale(1.05);
}

/* ==============================
   [동작] 메뉴가 활성화(.menu-on) 되면 순차적으로 등장
   ============================== */
.nav-menu li.menu-on {
  /* 1. 타이틀 등장 (0.2초 딜레이) */
  /* 2. 리스트 등장 (0.3초 딜레이) */
  /* 3. 이미지 등장 (0.4초 딜레이) */
}
.nav-menu li.menu-on .mega-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.nav-menu li.menu-on .mega-list {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.nav-menu li.menu-on .mega-image {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* 로고 */
.logo {
  width: 110px;
  height: 50px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 50px;
  z-index: 10;
  margin-top: -0px; /* 위로 올리기 */
}

.logo.white {
  display: none;
}
.logo.dark {
  display: block;
}

/* ==============================
   Main Layout
   ============================== */
#main {
  width: 100%;
  flex: 1;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: 0;
  padding-top: 0;
}

#header.transparent + #main {
  padding-top: 0;
}

#header:not(.transparent) + #main {
  padding-top: var(--header-height); /* 65px */
}

.nav-mobile {
  display: none;
}

/* ==============================
   [모바일] 반응형 스타일 (768px 이하)
   ============================== */
@media (max-width: 768px) {
  /* 배경막: 모바일에서도 사용 */
  .nav-bg {
    display: block;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #header {
    width: 100%;
    border-bottom: none;
    flex-direction: column;
    height: var(--header-height);
    background-color: transparent;
    transition: background-color 0.3s ease;
    /* PC와 달리 :hover 조건을 제거하여, 터치 후에도 흰색 상태 유지 */
    /* 메뉴 열림(.active) 상태 */
    /* 투명 상태에서 스크롤(.fixed) 되면 검은색으로 */
  }
  #header.transparent:not(.fixed):not(.active) {
    background-color: transparent !important;
    box-shadow: none !important;
    /* 햄버거 버튼 흰색 */
  }
  #header.transparent:not(.fixed):not(.active) .logo.white {
    display: block !important;
  }
  #header.transparent:not(.fixed):not(.active) .logo.dark {
    display: none !important;
  }
  #header.transparent:not(.fixed):not(.active) .nav-mobile-toggle-icon .line-1,
  #header.transparent:not(.fixed):not(.active) .nav-mobile-toggle-icon .line-2 {
    background-color: #fff !important;
  }
  #header.active .logo.white {
    display: none !important;
  }
  #header.active .logo.dark {
    display: block !important;
  }
  #header.active .nav-mobile-toggle-icon .line-1,
  #header.active .nav-mobile-toggle-icon .line-2 {
    background-color: #000 !important;
  }
  #header.active .nav-menu li a {
    color: #000 !important;
  }
  #header.transparent.fixed .line-1, #header.transparent.fixed .line-2 {
    background-color: #000;
  }
  #header .nav {
    display: flex;
    justify-content: space-between;
  }
  #header .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: transparent !important;
    overflow-y: auto;
    padding-top: 20px !important;
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s ease 0.1s;
  }
  #header .nav-menu li {
    text-align: left;
    width: 100%;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s, transform 0.4s;
  }
  #header .nav-menu li a {
    font-size: 32px;
    color: #000 !important;
  }
  #header .nav-menu .nav-utils {
    position: relative;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box;
    display: block;
    margin-top: 20px !important;
    border-top: 1px solid #f1f3f5; /* 구분선 */
    padding: 30px 24px 50px !important;
    opacity: 0 !important;
    transform: translateY(-20px) !important;
  }
  #header .nav-menu .nav-utils .icon-group {
    width: 100%;
    display: flex !important;
    gap: 12px; /* 간격 좁게 */
    justify-content: center;
  }
  #header .nav-menu .nav-utils .icon-group a {
    flex: 1;
    height: 54px;
    background-color: #f3f5f7;
    border: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057 !important;
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.2s;
  }
  #header .nav-menu .nav-utils .icon-group a:active {
    background-color: #e9ecef;
    transform: scale(0.97);
  }
  #header.active .nav-menu {
    height: calc(100vh - var(--header-height));
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 2;
  }
  #header.active .nav-menu li {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  }
  #header.active .nav-menu .nav-utils {
    opacity: 1 !important;
    transform: translateY(0) !important;

    transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
  }
  #header.active .nav-mobile-toggle-icon .line-1 {
    transform: rotateZ(45deg);
    top: 0;
    background-color: #000;
  }
  #header.active .nav-mobile-toggle-icon .line-2 {
    transform: rotateZ(-45deg);
    top: 0;
    background-color: #000;
  }
  .nav-mobile {
    display: flex;
    height: var(--header-height);
    justify-content: space-between;
    align-items: center;
    z-index: 100;
  }
  .nav-mobile-toggle {
    width: 50px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
  }
  .nav-mobile-toggle-icon {
    width: 30px;
    position: relative;
  }
  .nav-mobile-toggle-icon .line-1,
  .nav-mobile-toggle-icon .line-2 {
    position: absolute;
    height: 2px;
    width: 100%;
    transition: transform 0.2s, top 0.2s;
  }
  .nav-mobile-toggle-icon .line-1 {
    top: -4px;
  }
  .nav-mobile-toggle-icon .line-2 {
    top: 4px;
  }
  /* 메뉴 간격 축소 유지 */
  .nav-menu li a {
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 0px 30px !important;
    justify-content: space-between;
    display: flex !important;
    height: 55px;
  }
  /* 아코디언 화살표 */
  .nav-menu li a.has-sub::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #777;
    border-right: 2px solid #777;
    transform: rotate(45deg);
    transition: transform 0.3s;
  }
  .nav-menu li.open > a::after {
    transform: rotate(-135deg);
    border-color: #000;
  }
  /* 서브메뉴 */
  .nav-mega-wrap {
    position: static !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    display: none;
  }
  .nav-menu li.open .nav-mega-wrap {
    display: block;
  }
  .nav-mega-inner {
    display: block !important;
  }
  .mega-title,
  .mega-image {
    display: none !important;
  }
  .mega-list {
    display: block !important;
    padding: 5px 0 15px !important;
    border: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .mega-list li {
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .mega-list li a {
    padding: 12px 30px !important;
  }
}
/* 오버레이 */
.main-overlay.show {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
}


/* ==============================================
* 푸터 영역
* ============================================== */

/* 카피라이트 */
.big-typo {
    font-family: var(--font-eng), sans-serif;
    font-size: 17vw;
    color: var(--gray-800);
    line-height: 0.75;
    letter-spacing: -0.04em;
    margin-left: -0.05em;
    width: 100%;
    transform: translateY(15%);
    white-space: nowrap;
    user-select: none;
}
