#header .inner {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 76px;
  background: transparent;
  padding: 0 calc((100% - 1720px) / 2);
  transition: transform 0.3s ease, background 0.3s ease;
}

#header .inner.is_scrolled {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#header .inner.is_scrolled.ver-wh {
  background: rgba(44, 44, 44, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#header .inner.hide_header {
  transform: translateY(-100%);
}

#header .inner>div {
  height: 100%;
}

#header .inner.ver-wh .h-logo-wrap a {
  color: #fff;
}

#header .inner.ver-wh .h-menu-wrap a {
  color: #fff;
}

#header .inner.ver-wh .h-menu-wrap a::after {
  background: #fff;
}

.h-logo-wrap {
  z-index: 3;
}

.h-logo-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 28px;
  font-weight: 800;
  color: #000;
  transition: 0.3s ease;
}

.h-logo-wrap a>span:first-child {
  margin-right: 5px;
}

.h-menu-wrap {
  padding-left: 60px;
  display: flex;
  height: 100%;
}

.h-menu-wrap a {
  margin-right: 80px;
}

.h-menu-wrap a:last-child {
  margin-right: 0;
}

.h-menu-wrap a {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  height: 100%;
  /* width: 100%; */
  display: flex;
  align-items: center;
  transition: 0.3s ease;
  white-space: nowrap;
}

.h-menu-wrap a::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-left: 8px;
  background: #000;
  transition: 0.3s ease;
}

.h-button-wrap {
  display: flex;
  align-items: center;
}

.h-button-wrap button {
  border-radius: 500px;
  white-space: nowrap;
}

.h-button-wrap a button {
  display: flex;
  align-items: center;
  height: 40px;
  font-size: 16px;
  font-weight: 600;
  padding: 0 14px 0 20px;
}

.ref_btn {
  background: #e2e2e2;
  margin-right: 16px;
}

.ref_btn {
  color: #555555;
}

.ask_btn {
  background: #4c55e5;
}

.ask_btn {
  color: #fff;
}

.h-button-wrap button:hover .button_arrow img {
  transform: translateX(4px);
}

.mo_burger {
  display: none;
  z-index: 10000;
  position: relative;
  width: 24px;
  height: 19px !important;
  align-items: center;
  justify-content: flex-end;
}

.mo_burger>div {
  position: absolute;
  width: 24px;
  height: 3px;
  background: #000;
  transition: 0.3s ease;
}

.mo_burger>div:nth-child(1) {
  top: 0;
}

.mo_burger>div:nth-child(2) {
  top: 50%;
  width: 20px;
  transform: translateY(-50%);
}

.mo_burger>div:nth-child(3) {
  top: calc(100% - 3px);
}

.mo_burger.is_active div:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mo_burger.is_active div:nth-child(2) {
  opacity: 0;
  transition: 0.2s ease;
}

.mo_burger.is_active div:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mo_burger::after {
  display: none;
}

@media (max-width: 1800px) {
  #header .inner {
    padding: 0 4%;
  }
}

@media (max-width: 1300px) {
  .h-menu-wrap a {
    margin-right: 40px;
  }
}

@media (max-width: 1024px) {
  .mo_burger {
    display: flex;
  }

  /* 모바일에서 .inner가 메뉴를 자르지 않도록 */
  #header .inner {
    overflow: visible;
  }

  /* 모바일 메뉴 - 전체 화면 오버레이 */
  .h-menu-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    background: #f5f5f5;
  }

  /* 모바일에서 기존 메뉴 숨기기 (새 오버레이 사용) */
  .h-menu-wrap {
    display: none !important;
  }

  .h-button-wrap {
    z-index: 2;
    display: none;
  }

  /* 메뉴 열림 상태 */
  #header.mo_open .h-menu-wrap {
    opacity: 1;
    pointer-events: all;
  }

  /* 메뉴 열릴 때 헤더 위치 강제 리셋 및 X 버튼 위에 표시 */
  #header.mo_open .inner {
    transform: translateY(0) !important;
    z-index: 10001;
  }

  #header.mo_open .mo_burger {
    z-index: 10002;
  }

  /* 배경 원형 제거 (이제 메뉴 자체에 배경이 있음) */
  #header.mo_open .mo_burger::after {
    display: none;
  }

  .h-menu-wrap a {
    margin-right: 0;
    margin-bottom: 30px;
    min-width: auto;
    white-space: nowrap;
    text-align: center;
  }

  .h-menu-wrap a:last-child {
    margin-bottom: 0;
  }

  .h-menu-wrap a {
    font-size: 40px;
    font-weight: 800;
    height: fit-content;
  }

  .h-menu-wrap a::after {
    display: none;
  }

  .h-menu-wrap a::before {
    display: none;
  }

  .h-menu-wrap a.mo_request_btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #4c55e5;
    color: #fff;
    padding: 16px 40px;
    border-radius: 500px;
    font-size: 18px;
    margin-top: 30px;
    min-width: auto;
    gap: 10px;
  }

  .h-menu-wrap a.mo_request_btn::before {
    display: none;
  }

  .h-menu-wrap a.mo_request_btn img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
  }

  .h-menu-wrap a.mo_request_btn:hover img {
    transform: translateX(4px);
  }
}

/* 데스크탑에서 모바일 버튼 숨기기 */
@media (min-width: 1025px) {
  .h-menu-wrap a.mo_request_btn {
    display: none;
  }

  .mo-menu-overlay {
    display: none !important;
  }
}

/* 모바일 메뉴 오버레이 (body에 직접 추가됨) */
.mo-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #f5f5f5;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 40px;
  box-sizing: border-box;
}

.mo-menu-overlay.active {
  display: flex;
}

.mo-menu-overlay a {
  font-size: 40px;
  font-weight: 800;
  color: #000;
  text-decoration: none;
  margin-bottom: 30px;
  text-align: center;
}

.mo-menu-overlay a:last-child {
  margin-bottom: 0;
}

.mo-menu-overlay a.mo_request_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4c55e5;
  color: #fff;
  padding: 16px 40px;
  border-radius: 500px;
  font-size: 18px;
  margin-top: 30px;
  gap: 10px;
}

.mo-menu-overlay a.mo_request_btn img {
  width: 20px;
  height: 20px;
}