@font-face {
  font-family: "Paperlogy-9Black";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 헤더
------------------------
------------------------ */
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

#gnb_1dul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

li.gnb_1dli {
  width: 120px;
  position: relative;
  display: inline-block;
}

li.gnb_1dli::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  /* 중앙 기준 + 축소 */
  transform-origin: center;
  width: 100%;
  height: 4px;
  background-color: #b9a322;
  transition: transform 0.3s ease-out;
}

li.gnb_1dli:hover::after {
  transform: translateX(-50%) scaleX(1);
  /* 중앙에서 확장 */
}

.gnb-area {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* 기본적으로 흰색 로고 숨김 */
.logo-dark {
  display: none;
}

.white-bg .logo-white {
  display: none;
}

.white-bg .logo-dark {
  display: inline-block;
}

/* hover 시에도 적용 */
#hd.white-bg:hover .logo-white {
  display: none;
}

#hd.white-bg:hover .logo-dark {
  display: inline-block;
}

.logo-area {
  width: 150px;
  height: 100px;
  line-height: 100px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
}

.logo-area img {
  width: 100%;
}

.right-area {
  width: 150px;
  text-align: right;
  flex-shrink: 0;
}

#hd.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#hd.scrolled .gnb_1da {
  color: #000 !important;
}

#hd.scrolled .call-button {
  background: #3a8afd;
  color: #fff;
}

.header-right-txt {
  position: absolute;
  right: 200px;
  padding: 10px 25px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  background: #171c46;
  color: #fff;
}

.header-right-txt span {
  display: flex;
  margin-bottom: 2px;
}

@media (max-width: 991px) {
  .header-right-txt {
    display: none;
  }
}

.right-area.call-button {
  width: 150px;
  flex-shrink: 0;
  display: flex;
  color: #fff;
  white-space: nowrap;
  justify-content: flex-end;
}

.right-area.call-button span {
  position: relative;
  font-size: 28px;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  top: -3px;
  margin-left: 5px;
}

.right-area.call-button i.fa.fa-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* 메가메뉴 */
.menu-area {
  flex: 1;
  display: flex;
  justify-content: center;
  height: 100px;
  line-height: 100px;
}

/* 초기 상태 */
#mega_menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  /* 내용 넘침 방지 */
  opacity: 0;
  padding: 0 0;
  /* 초기엔 패딩도 0 */
  height: 0;
  /* 핵심: 닫힌 상태 */
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 998;
}

/* 활성화 시 */
#mega_menu.active {
  opacity: 1;
  padding: 20px 0;
  height: 260px;
  /* 예상 최대 높이 */
  pointer-events: auto;
}

/* 메가메뉴 활성화 */
#mega_menu li.active a {
  color: #b9a322;
  font-weight: bold;
}

/* 내부 정렬 */
.mega_inner {
  display: flex;
  position: relative;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 150px;
}

.gnb_wrap,
.mega_inner {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.mega_column {
  text-align: center;
}

.mega_column ul {
  width: 120px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mega_column li {
  margin-bottom: 15px;
  font-size: 15px;
}

.mega_column a {
  color: #333;
  text-decoration: none;
}

.mega_column a:hover {
  text-decoration: underline;
}

/* 메인 슬라이더
------------------------
------------------------ */
.main-section {
  width: 100%;
  padding: 50px 0;
}

.main-section h2 {
  font-size: 30px;
  text-align: center;
}

.animate-on-scroll {
  opacity: 0;
}

.swiper-slide {
  position: relative;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.slide-caption {
  position: absolute;
  width: 100%;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  padding: 1rem 2rem;
  border-radius: 10px;
}

.slide-caption h2 {
  font-size: 78px;
  color: #ffffff;
}

.slide-caption p {
  font-size: 26px;
  margin-top: 35px;
}

@media (max-width: 991px) {
  .slide-caption h2 {
    font-size: 28px;
  }

  .slide-caption p {
    font-size: 16px;
  }
}

.main-banner-swiper {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  position: relative;
}

.main-banner-swiper .swiper-slide {
  background-size: cover;
  background-position: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  pointer-events: none;
}

.scroll-text {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.scroll-circle {
  width: 36px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: scrollBounce 1.6s infinite ease-in-out;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

.pagination-bar-main {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  z-index: 10;
}

.bar-main {
  width: 200px;
  height: 4px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.fill-main {
  height: 100%;
  width: 0;
  background: #fff;
  transition: width linear;
}

.nav-buttons-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-main,
.total-main {
  font-weight: bold;
}

.button-prev-main i.fa.fa-angle-left,
.button-next-main .fa.fa-angle-right {
  background: rgb(255 255 255 / 0.7);
  padding: 15px;
  width: 20px;
  height: 20px;
  color: rgb(0 0 0 / 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / 0.7);
}

.button-prev-main,
.button-next-main {
  width: auto;
  height: auto;
  font-size: 20px;
  color: #fff;
  background: none;
  cursor: pointer;
}

@keyframes zoomOutSmooth {
  0% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.swiper-slide-active .zoom-target {
  animation: zoomOutSmooth 4s ease-in-out forwards;
}

/* 서브메뉴
------------------------
------------------------ */
.sub-tab-menu {
  display: block;
  border-bottom: 1px solid #ccc;
  background-color: aliceblue;
  text-align: center;
  overflow-x: auto;
  overflow-y: hidden;
  height: 60px;
  line-height: 60px;
  white-space: nowrap;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE, Edge */
}

.sub-tab-menu::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.sub-tab {
  display: inline-block;
  padding: 0 25px;
  font-size: 17px;
  height: 60px;
  line-height: 60px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  white-space: nowrap;
}

.sub-tab.active {
  color: #000;
  border-bottom: 3px solid #000;
  font-weight: bold;
}

@media (max-width: 991px) {
  .sub-tab-menu {
    height: 50px;
    line-height: 50px;
  }

  .sub-tab {
    padding: 0 12px;
    height: 50px;
    line-height: 50px;
  }
}

@media (max-width: 768px) {
  .sub-tab {
    font-size: 15px;
  }
}

.hamburger-toggle {
  display: none;
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none;
  }
}

/* min-width 992px ~ max-width: 1200px 
---------------------------------------
--------------------------------------
-------------------------------------- */
@media screen and (min-width: 992px) and (max-width: 1280px) {
  #hd_wrapper {
    padding: 0 20px;
  }

  .right-area.call-button,
  .logo-area {
    width: 120px;
  }

  .right-area.call-button i.fa.fa-phone {
    font-size: 18px;
  }

  .right-area.call-button span {
    font-size: 24px;
    margin-top: 2px;
  }

  .header-right-txt {
    display: none;
  }

  li.gnb_1dli {
    width: 100px;
  }

  .gnb_1da {
    padding: 0 5px;
    font-size: 16px;
  }

  .mega_column ul {
    width: 100px;
  }

  .mega_column li {
    font-size: 14px;
  }
}

/* max-width 991px
------------------------------
------------------------------
------------------------------ */

@media (max-width: 991px) {
  #hd_wrapper {
    position: relative;
    justify-content: space-between;
    height: 60px;
    padding: 0;
    z-index: 1001;
  }

  #logo {
    position: absolute;
    max-width: 150px;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* 모바일 메뉴 기본 숨김 */
  /* 모바일 메뉴 전체 구조 */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: white;
    z-index: 10000;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .menu-logo {
    display: inline-block;
    /* 필요시 */
    width: 120px;
  }

  .menu-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    /* 불필요한 여백 제거 */
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
    padding: 25px;
  }

  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* 모바일 하이라이트 제거 */
  }

  .mobile-menu-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
  }

  .mobile-menu-link {
    width: 100%;
    font-weight: bold;
    text-align: left;
    background: none;
    border: none;
    font-size: 18px;
    padding: 10px 25px;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-toggle {
    width: 100%;
    font-weight: bold;
    text-align: left;
    background: none;
    border: none;
    font-size: 18px;
    padding: 10px 25px;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-submenu {
    height: 0;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: height 0.3s ease;
  }

  .mobile-submenu.open {
    /* JavaScript에서 height 값을 직접 설정함 */
  }

  .mobile-submenu li {
    font-size: 17px;
  }

  .mobile-submenu li a {
    display: block;
    padding: 6px 0;
    padding-left: 40px;
  }

  .mobile-submenu.open {
    display: block;
  }

  /* 햄버거 버튼 위치 */
  .hamburger-toggle {
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #ffffff;
    -webkit-tap-highlight-color: transparent;
    /* 모바일 하이라이트 제거 */
  }

  /* 모바일 메뉴 + 표시 */
  .plus {
    display: inline-block;
    transition: transform 0.3s ease;
    font-weight: bold;
    font-size: 20px;
  }

  /* 열렸을 때 회전 */
  .plus.rotate {
    transform: rotate(45deg);
  }

  /* 흰배경일 때 색상 반전 */
  #hd.white-bg .hamburger-toggle {
    color: #000000;
  }

  /* 모바일 메뉴 끝 */

  .menu-area {
    display: none;
  }

  .call-button {
    position: relative;
    z-index: 2;
  }

  #gnb_1dul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100px;
    /* 헤더 아래에 위치 */
    left: 0;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #ddd;
  }

  #gnb_1dul.active {
    display: flex;
  }

  #gnb_1dul li {
    text-align: center;
    padding: 15px 0;
  }

  #gnb_1dul li a {
    color: #333;
    font-size: 16px;
  }

  #logo,
  .hd_sch_wr,
  #hd_define,
  #hd_qnb,
  .hd_login {
    float: none;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  #container {
    width: 100%;
    float: none;
    margin: 0 auto;
  }

  #ft_wr .ft_cnt {
    width: 100%;
    padding: 10px 0;
  }

  #ft_copy {
    width: 100%;
    padding-top: 30px;
    margin-top: 25px;
  }

  .lt_wr {
    width: 100% !important;
  }

  .right-area.call-button i.fa.fa-phone {
    font-size: 22px;
    width: 60px;
    height: 60px;
  }

  .right-area.call-button span {
    display: none;
  }

  .right-area.call-button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50px;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 60px;
  }

  .logo-area {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 60px;
    line-height: 60px;
    transform: translate(calc(-50% - 25px), -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
  }

  .menu-area {
    flex: 1;
    display: flex;
    height: 60px;
    justify-content: flex-start;
  }

  #container_title span {
    top: 50px;
  }
}

/* 모바일 가로 스크롤 메뉴 
----------------------------- */

.mobile-scroll-menu {
  display: none;
  /* 기본은 숨김 */
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 5px;
  position: sticky;
  z-index: 1000;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE, Edge */
  scrollbar-width: none;
  /* Firefox */
}

.white-bg .mobile-scroll-menu {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-scroll-menu::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.mobile-scroll-menu a {
  display: inline-block;
  padding: 12px 10px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

#hd.white-bg .mobile-scroll-menu a {
  color: #000;
}

.mobile-scroll-menu a:hover,
.mobile-scroll-menu a.active {
  color: #dddddd;
  font-weight: bold;
  border-bottom: 2px solid;
}

@media (max-width: 991px) {
  .mobile-scroll-menu {
    display: block;
  }
}

/* -- 모바일 스크롤 메뉴 끝  */

/* active 상태 메뉴 스타일 (pc 중앙메뉴, 메가메뉴, 모바일 햄버거메뉴, 모바일 가로스크롤 메뉴)
------------------------- */

/* 기본 active 상태 */
.gnb_1dli.active>a.gnb_1da {
  color: #b9a322;
  font-weight: bold;
}

/* 헤더 흰배경 전환 */
#hd.white-bg {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 기본 메뉴 텍스트 색상 (active가 아닌 경우만) */
#hd.white-bg .gnb_1dli>a.gnb_1da {
  color: #000;
}

/* active 상태 유지 (흰 배경일 때도) */
#hd.white-bg .gnb_1dli.active>a.gnb_1da {
  color: #b9a322;
  font-weight: bold;
}

/* hover 상태 - active 아닌 경우에만 */
#hd.white-bg .gnb_1dli:hover:not(.active)>a.gnb_1da {
  color: #b9a322;
  font-weight: bold;
}

/* 전화 버튼 */
#hd.white-bg .call-button {
  color: #171c46;
}

/* 햄버거 메뉴 */
.mobile-menu-item.active>.mobile-menu-toggle {
  color: #b9a322;
  font-weight: bold;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu a.active {
  font-weight: bold;
  color: #b9a322;
}