/* header.css */

.site-header, .admin-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.20);
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    line-height: 1.4;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 60px;
}

.header-nav {
    display: flex;
    align-items: center;
    height: 80px;
}

.header-nav a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 80px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 80px;
}

.btn-contact span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
}

.header-nav a:hover, .btn-contact:hover {
    opacity: 0.6;
}

.header-nav a.is-active {
    font-weight: 700;
}





/* dropdown */

.header-nav .nav-item {
  position: relative;
  width: 132px;
  height: 60px;
}

.header-nav .nav-item > a {
  width: 132px;
  height: 60px;
}

/* dropdown background */

.site-header::after {
  content: "";
  position: fixed;
  top: 60px;
  left: 0;

  width: 100%;
  height: 60px;

  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);

  transition: all 0.25s ease;
  z-index: -1;
}

.site-header:has(.has-dropdown:hover)::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header:has(.has-dropdown:hover),
body.is-mobile-menu-open .site-header {
  background: #fff;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* dropdown menu */

.dropdown-menu {
  position: fixed;
  top: 60px;

  height: 60px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 46px;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-8px);
  transition: all 0.25s ease;
}

/* 위치 조절 */

.has-dropdown:nth-child(2) .dropdown-menu {
  left: calc(50% + 235px);
}

.has-dropdown:nth-child(3) .dropdown-menu {
  left: calc(50% + 365px);
}

.has-dropdown:nth-child(4) .dropdown-menu {
  left: calc(50% + 510px);
}

/* show */

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* dropdown links */

.dropdown-menu a {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;

  width: max-content !important;
  min-width: max-content !important;
  height: 60px !important;

  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;

  color: #888;
  font-size: 16px;
  font-weight: 400;
}

.dropdown-menu a:hover {
  color: #111;
  opacity: 1;
}

/* parent hover */

.header-nav .has-dropdown:hover > a {
  opacity: 0.6;
}




/* =========================
   MOBILE HEADER
   375 기준 / inner 343
   PC 절대 영향 없음
========================= */

@media screen and (max-width: 767px) {

  .site-header,
  .admin-header {
    height: 72px;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.20);
  }

  .site-header .container,
  .admin-header .container {
    width: 100%;
    padding: 0 16px;
  }

  .header-inner {
    height: 72px;
  }

  /* 343 inner */

  .header-inner {
    width: 100%;
    max-width: 343px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* 로고 */
  .header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .header-logo img {
    width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
  }


  /* 기존 PC 메뉴 숨김 */
  .header-right {
    gap: 0;
  }

  /* .header-nav,
  .btn-contact {
    display: none;
  } */
  
  /* 일반 사이트만 숨김 */
.site-header .header-nav,
.site-header .btn-contact {
  display: none;
}

/* admin은 유지 */
.admin-header .header-nav {
  display: none;
}

.admin-header .btn-contact {
  display: flex;
  width: auto;
  height: auto;
}

.admin-header .btn-contact span {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
}

  /* 모바일 메뉴 버튼 */
  .mobile-menu-btn {


    border: 0;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .mobile-menu-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
  }

  /* PC dropdown 제거 */
  .site-header::after {
    display: none;
  }

  .dropdown-menu {
    display: none !important;
  }
}










.mobile-menu {
  display: none;
}

@media screen and (max-width: 767px) {
  body.is-mobile-menu-open {
    overflow: hidden;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  z-index: 250;

  display: block;
  background: #fff;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
 }

   .mobile-menu::-webkit-scrollbar {
    display: none;
  }



  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav {
    width: 100%;
    max-width: 343px;
    margin: 0 auto;
    padding: 0px 0 20px;
  }


 .mobile-nav-link,
.mobile-nav-parent {
  width: 100%;
  min-height: 60px;

  display: flex;
  align-items: center;

  color: #1a1a1a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.mobile-nav-row {
  width: 100%;
  min-height: 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-toggle {
  width: 48px;
  min-height: 60px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

  .mobile-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    transition: transform 0.25s ease;
  }

  .mobile-arrow img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  opacity: 0.7;
}



.mobile-nav-group.is-open .mobile-arrow {
  transform: rotate(180deg);
}
  .mobile-submenu {
    display: none;
    padding: 4px 0 22px;
  }

  .mobile-nav-group.is-open .mobile-submenu {
    display: block;
  }

  .mobile-submenu a {
    display: flex;
    align-items: center;
    height: 48px;

    color: #777;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.02em;
  }

  .mobile-contact-btn {
    width: 100%;
    height: 52px;
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1a1a1a;
    border-radius: 8px;

    color: #fff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
}

@media screen and (min-width: 768px) {
  .mobile-menu,
  .mobile-menu-btn {
    display: none !important;
  }
}
