body {
  overflow-x: hidden;
  width: 100vw;
  transition: all .5s ease;
}

.header-wrapper {
  z-index: 999;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 0;
}

.header-scrolled header {
  height: clamp(4.1rem, 3.6458vw, 9.2rem);
}

.header-inner {
  transform: translate(0px, 0px);
}

.header {
  position: relative;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: clamp(5rem, 4.6875vw, 11rem);
  background: rgba(0, 0, 0, .05);
  /* background: #fff; */
  transition: height .3s ease, transform .3s ease, all .3s ease;
  will-change: height, transform;
  /* box-shadow: 0 0 1rem rgba(0, 0, 0, .2); */
  backdrop-filter: blur(.5rem);
}

.sub .header {
  background: #fff !important;
  box-shadow: 0 .1rem 1.6rem rgba(0, 0, 0, .2);
  backdrop-filter: blur(0);
}

.header.header-visible {
  transform: translateY(0);
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header.header-visible.is-open {
  height: fit-content;
  background: #fff;
  box-shadow: 0 .1rem 1.6rem rgba(0, 0, 0, .2);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(5rem, 4.6875vw, 11rem);
  margin: 0 auto;
  padding: 0 2.4rem;
  transition: height .3s ease;
}

.header-scrolled .nav {
  height: clamp(4.1rem, 3.6458vw, 9.2rem);
}

.logo {
  display: flex;
  align-items: center;
  height: clamp(1.9rem, 1.6667vw, 4rem);
}

.header .logo .bk {
  display: none;
}

.header-scrolled .header .logo .bk,
.header.is-open .logo .bk {
  display: block;
}

.header-scrolled .header .logo .wh,
.header.is-open .logo .wh {
  display: none;
}

.sub .header .logo .bk {
  display: block;
}

.sub .header .logo .wh {
  display: none;
}

.main-menu {
  display: none;
  /* display: flex; */
  justify-content: flex-end;
  flex-grow: 1;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: clamp(1.6rem, .9896vw, 2.3rem);
  list-style: none;
}

.main-menu-item {
  position: relative;
  height: 100%;
  padding: 0 2.4rem;
  font-weight: 500;
}

.main-menu-item a {
  display: flex;
  align-items: center;
  height: 100%; 
  text-decoration: none;
  font-size: 1.9rem;
  color: #fff;
}

.header.is-open .main-menu-item a {
  color: #000;
}

.header-scrolled .main-menu-item a {
  color: #000;
}

.main-menu-item:last-child {
  padding-right: 6rem;
}

.sub .header .main-menu-item a {
  color: #000;
}

.util {
  display: none;
}

.util .btn-contact {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 140px;
  height: 50px;
  outline: 0;
  border: 0;
  border-radius: 10rem;
  box-shadow: 0 0.625em 1em 0 rgba(30, 143, 255, 0.35);
  overflow: hidden;
  scale: .8;
}

.util .btn-contact div {
  width: 100%;
  padding: 0 2rem;
  transform: translateY(0px);
}

.util .btn-contact,
.util .btn-contact div {
  transition: 0.6s cubic-bezier(.16, 1, .3, 1);
}

.util .btn-contact div span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0.75em 1.125em;
}

.util .btn-contact div:nth-child(1) {
  background: linear-gradient(to right, #5EAAAD, #3251A1);
}

.util .btn-contact div:nth-child(2) {
  background: linear-gradient(to right, #217a7d, #0c2b79);
}

.util .btn-contact:hover {
  box-shadow: 0 0.625em 1em 0 rgba(33, 220, 98, 0.35);
}

.util .btn-contact:hover div {
  transform: translateY(-50px);
}

.util .btn-contact p {
  text-align: center;
  font-size: 17px;
  font-weight: bold;
  color: #ffffff;
}

.util .btn-contact:active {
  transform: scale(0.95);
}

.divider {
  z-index: -1;
  position: absolute;
  bottom: 0;
  width: 100%;
  width: calc(100% - 2*max(2.9167vw, 2.4rem));
  height: .1rem;
  transition: opacity .3s ease;
  background: rgba(0, 0, 0, .2);
  opacity: 0;
}

.sub .divider {
  opacity: 0;
}

.header.is-open .divider {
  opacity: 1;
}

.sub-menu-wrapper {
  font-size: clamp(1.4rem, 1.25vw, 2.9rem);
  overflow: hidden;
  max-height: 0; /* 초기 높이 0 */
  transition: max-height 0.4s ease-in-out;
}

.sub-menu-container {
  display: flex;
  flex-direction: column;
  padding: 1.8em 0;
  font-size: clamp(1.4rem, 1.25vw, 2.9rem);
}

.sub-menu-container .sub-menu-item a {
  display: inline-block;
  margin-bottom: .8em;
  line-height: 150%;
  text-decoration: none;
  font-weight: 500;
  font-size: 2rem;
  color: #000;
  white-space: nowrap;
}

.sub-menu-container .sub-menu-item a:hover {
  color: #3251A1;
}

.header-units {
  display: flex;
}

/* 모바일 */
/* 사이드바 배경 어둡게 */
.side-menu-dimmed {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, .8);
}

.gnb-btn {
  z-index: 10;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  font-size: 2.4rem;
}

.gnb-btn ion-icon {
  color: #fff;
}

.sub .gnb-btn ion-icon {
  color: #000;
}

.header-scrolled .gnb-btn ion-icon {
  color: #000;
}

/* 사이드바 본체 */
.side-menu-wrapper {
  position: fixed;
  top: 0;
  right: -100%;
  /* 오른쪽 숨김 */
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 100;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 20px;
}

.side-menu-wrapper.is-active {
  right: 0;
  /* 화면으로 진입 */
}

/* 아코디언 버튼 */
.side-menu-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1.8rem;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  background: none;
}

.side-menu-wrapper .close-btn {
  position: absolute;
  right: 2.4rem;
  top: 1.6rem;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  font-size: 2.4rem;
}

.side-menu-btn.is-active a {
  font-size: 2rem;
}

.side-menu-btn ion-icon {
  transition: transform 0.3s;
}

.side-menu-btn.on ion-icon {
  transform: rotate(180deg);
  /* 열릴 때 화살표 회전 */
}

/* 서브메뉴 초기 상태 */
.side-menu-submenu {
  display: none; /* JS slideToggle이 작동하기 위한 필수 조건 */
  background: #f9f9f9;
  padding: 10px 0;
}

/* 버튼 스타일 및 화살표 회전 */
.side-menu-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

/* 아이콘(화살표) 애니메이션 */
.side-menu-btn ion-icon {
  transition: transform 0.3s ease;
  font-size: 18px;
}

/* 버튼이 활성화(클릭)되었을 때 아이콘 회전 */
.side-menu-btn.is-active ion-icon {
  transform: rotate(180deg);
}

/* 서브메뉴 링크 스타일 */
.side-menu-submenu a {
  display: block;
  padding: 10px 40px; /* 들여쓰기 효과 */
  color: #666;
  font-size: 14px;
  text-decoration: none;
}

.side-menu-submenu a:hover {
  color: #007bff;
}

body.no-scroll {
  overflow: hidden;
}

@media all and (min-width: 80em) {
  .header {
    overflow: hidden;
  }

  .nav {
    padding: 0 max(2.9167vw, 3.2rem);
  }

  .divider {
    width: calc(100% - 2*max(2.9167vw, 3.2rem));
  }

  .main-menu,
  .util {
    display: flex;
  }

  .header-units {
    display: none;
  }

  .logo {
    height: 3.6rem;
  }

  .logo img {
    height: 100%;
  }

  .main-menu-item a {
    font-size: 2rem;
  }
}

@media all and (min-width: 120em) {
  .util .btn-contact {
    scale: 1;
  }
}

/* footer */
.footer {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
  background-color: #dedede;
}

.footer .inner{
  position: relative;
  width: 100%;
  max-width: 158rem;
  padding: 0 2.4rem;
  margin: 0 auto;
}

.footer > div {
  width: 100%;
  margin: 0 auto;
}

.footer .logo {
  width: 20rem;
  height: fit-content;
  filter: brightness(0);
  opacity: .48;
}

.footer .logo img {
  display: block;
  width: 100%;
  height: fit-content;
}

.footer .info {
  padding: 6.4rem 0 4.8rem;
  margin-bottom: 4.8rem;
  border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.footer .info .address {
  margin: 4.8rem 0 .6rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .64);
}

.footer .info p {
  height: 2rem;
  line-height: 2rem;
  font-size: 1.6rem;
  color: rgba(0, 0, 0, .64);
}

.footer .site-map {
  display: none;
}

.footer .site-map + div {
  margin: 4.8rem 0 0;
}

.footer .site-map > ul {
  display: flex;
  gap: 3.6rem;
}

.footer .site-map a {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .8);
  cursor: pointer;
}

.footer .site-map > ul > li > a {
  margin-bottom: 2.4rem;
  color: rgba(0, 0, 0, .48);
}

.footer .site-map li ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.dropdown-container {
  position: relative; /* 기준점 설정 */
  width: 100%;
  margin-bottom: 1.6rem;
}

/* 드롭다운 메뉴 (기본은 숨김) */
.dropdown-menu {
  overflow: hidden;
  position: absolute;
  display: none; 
  bottom: calc(100% + 10px); /* 버튼 위로 10px 띄움 */
  left: 0;
  width: 100%;
  padding: 10px 0;
  margin: 0;
  border-radius: 20px;
  list-style: none;
  background-color: #444; /* 이미지의 버튼 색상과 유사하게 */
  transition: all .3s ease;
}

.dropdown-menu.show {
  display: block; /* 활성화 시 노출 */
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 1.6rem;
  color: white;
}

.dropdown-menu li a:hover {
  background-color: #555;
}

/* 메인 버튼 스타일 */
.dropdown-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6.4rem;
  padding: 0 2.4rem;
  color: white;
  border-radius: 2.4rem; /* 둥근 캡슐 모양 */
  background-color: #333;
  cursor: pointer;
}

.dropdown-button span {
  font-size: 1.6rem;
  color: #fff;
}

.top-btn {
  cursor: pointer;
  transition: all .3s ease;
}

body > div .top-btn {
  z-index: 100;
  position: fixed;
  right: 2.4rem;
  bottom: 2.4rem;
}

.top-btn button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 2.4rem;
  color: #fff;
  background-color: #9e9e9e;
}

/* 스크롤이 끝까지 내려갔을 때 */
body > div .top-btn.is-bottom {
  position: absolute;
  bottom: -5rem;     
  right: 2.4rem;
  display: none !important;
}

.footer .copyright {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding-bottom: 4.8rem;
}

.footer .copyright span {
  font-size: 1.6rem;
  font-weight: 300;
  color: rgba(0, 0, 0, .64);
}

.footer .copyright a {
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .64);
  cursor: pointer;
}

@media all and (min-width: 48em) {
  .footer .info .address + div {
    display: flex;
  }

  .footer .info .address + div p:first-child {
    margin-right: 2rem;
    padding-right: 2rem;
    border-right: .2rem solid rgba(0, 0, 0, .4);
  }

  .footer .site-map + div {
    display: flex;
    justify-content: space-between;
  }

  .dropdown-container {
    width: 24rem;
    margin: 0;
  }

  .footer .copyright {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media all and (min-width: 64em) {
  .footer .info {
    display: flex;
    justify-content: space-between;
  }

  .footer .info > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .footer .site-map {
    display: block;
  }

  .footer .site-map + div {
    gap: 2rem;
  }
}

@media all and (min-width: 80em) {
  .footer .inner {
    padding: 0 max(2.9167vw,3.2rem);
  }
}

.section .spacing {
  width: 100%;
  height: clamp(4rem, 8vw, 16rem);
}

.section .spacing:last-child {
  height: clamp(6rem, 12vw, 16rem);
}

.main .top-btn,
.sub .top-btn {
  display: none;
}