.header.apply-header .nav-con {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header.apply-header .nav-con__logo {
  margin: 0;
}

.yeseo-logo {
  position: relative;
  display: inline-block;
  width: 13rem;
  height: auto;
}

.yeseo-logo__img {
  display: block;
  width: 13rem;
  height: auto;
  transition: opacity 0.4s ease;
}

.yeseo-logo__img--blue {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.yeseo-header.scrollOn {
  background: #fff;
  box-shadow: rgba(150, 150, 150, 0.2) 2px 2px 10px;
  border-bottom: 1px solid #E6E8ED;
}

.yeseo-header.scrollOn .yeseo-logo__img--base {
  opacity: 0;
}

.yeseo-header.scrollOn .yeseo-logo__img--blue {
  opacity: 1;
}

.yeseo-header .yeseo-nav {
  position: relative;
  max-width: none;
  width: 100%;
  padding: 0;
}

.yeseo-header .yeseo-header-inner,
.yeseo-header.scrollOn .yeseo-header-inner {
  /*
   * 상담 신청 본문(.conApply .container)과 같은 외곽 폭 기준을 사용한다.
   * 실제 모바일 좌우 여백은 아래 768px media query에서 본문과 동일한 1rem padding으로 맞춘다.
   */
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 16px 0;
}

.yeseo-header .yeseo-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.yeseo-header .yeseo-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 14.5px 16px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.yeseo-header .yeseo-nav-link:hover,
.yeseo-header .yeseo-nav-link.is-active {
  color: #009AFF;
}

.yeseo-header .yeseo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 14.5px 16px;
  border-radius: 4px;
  background: #3361FF;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.yeseo-header .yeseo-cta:hover {
  background: #7E9BFF;
}

.yeseo-header .yeseo-cta:active {
  background: #0029B5;
}

.yeseo-header.scrollOn .yeseo-nav-link {
  color: #424D7A;
}

.yeseo-header.scrollOn .yeseo-nav-link.is-active {
  color: #009AFF;
}

.yeseo-header .mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.yeseo-header .hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 24px;
  height: 20px;
}

.yeseo-header .hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.yeseo-header .hamburger-close {
  display: none;
  position: relative;
  width: 22px;
  height: 22px;
}

.yeseo-header .hamburger-close::before,
.yeseo-header .hamburger-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transform-origin: center;
}

.yeseo-header .hamburger-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.yeseo-header .hamburger-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.yeseo-header .mobile-menu-button.is-open .hamburger-icon {
  display: none;
}

.yeseo-header .mobile-menu-button.is-open .hamburger-close {
  display: block;
}

.yeseo-header.scrollOn .hamburger-icon span,
.yeseo-header.scrollOn .hamburger-close::before,
.yeseo-header.scrollOn .hamburger-close::after {
  background: #424D7A;
}

.yeseo-header .mobile-menu-container {
  position: absolute;
  top: 100%;
  right: 14.5px;
  width: 139px;
  min-height: 212px;
  background: rgba(0, 0, 0, 0.16);
  display: none;
  flex-direction: column;
  padding: 10px 0;
  z-index: 50;
}

.yeseo-header .mobile-menu-container.is-open {
  display: flex;
}

.yeseo-header .mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 48px;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.yeseo-header .mobile-menu-link:hover {
  background: rgba(0, 0, 0, 0.16);
}

.yeseo-header .mobile-menu-link:active,
.yeseo-header .mobile-menu-link.is-active {
  background: rgba(0, 0, 0, 0.24);
}

@media screen and (max-width: 1279px) {
  .yeseo-header .yeseo-nav-link,
  .yeseo-header .yeseo-cta {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .yeseo-header .yeseo-header-inner,
  .yeseo-header.scrollOn .yeseo-header-inner {
    /*
     * 본문 .container가 768px 이하에서 좌우 1rem padding을 갖기 때문에
     * 헤더 내부 아이콘 기준선도 같은 padding 값으로 맞춘다.
     */
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media screen and (min-width: 1280px) {
  .yeseo-header .mobile-menu-button,
  .yeseo-header .mobile-menu-container {
    display: none;
  }

  .yeseo-header .yeseo-header-inner,
  .yeseo-header.scrollOn .yeseo-header-inner {
    padding: 22px 0;
  }

  .yeseo-logo,
  .yeseo-logo__img {
    width: 18.8rem;
  }
}

/*
 * /web2/conApplyFDone/{inputType} 완료 화면은 화면 폭과 관계없이 모바일 헤더 형태를 유지한다.
 * 완료 화면 전용 클래스 안에서만 override하여 tax/pricing/privacy 등 다른 공통 헤더 사용 화면에는 영향을 주지 않는다.
 */
.yeseo-header--done-mobile-view .yeseo-nav-link,
.yeseo-header--done-mobile-view .yeseo-cta {
  display: none;
}

.yeseo-header--done-mobile-view .mobile-menu-button {
  /*
   * 1280px 이상에서는 공통 데스크톱 규칙이 햄버거 버튼을 숨기므로
   * 완료 화면에서만 모바일과 동일하게 버튼을 다시 노출한다.
   */
  display: inline-flex;
}

.yeseo-header--done-mobile-view .mobile-menu-container {
  /*
   * 모바일 메뉴는 기본 닫힌 상태를 유지하고, 버튼 클릭으로 is-open이 붙을 때만 펼친다.
   */
  display: none;
}

.yeseo-header--done-mobile-view .mobile-menu-container.is-open {
  display: flex;
}

.yeseo-header--done-mobile-view .yeseo-logo,
.yeseo-header--done-mobile-view .yeseo-logo__img {
  /*
   * 데스크톱 구간의 18.8rem 로고 확대를 막고 모바일 기본 로고 크기와 동일하게 고정한다.
   */
  width: 13rem;
}

.yeseo-header--done-mobile-view .yeseo-header-inner,
.yeseo-header--done-mobile-view.scrollOn .yeseo-header-inner {
  /*
   * 데스크톱 구간의 22px 세로 padding을 막고 모바일 기본 헤더 높이와 맞춘다.
   * 좌우 padding은 기존 768px 이하 규칙이 그대로 담당한다.
   */
  padding-top: 16px;
  padding-bottom: 16px;
}

@media screen and (min-width: 769px) {
  .yeseo-header--done-mobile-view .mobile-menu-container {
    /*
     * 넓은 화면에서도 메뉴 리스트가 화면 오른쪽 끝이 아니라
     * 40rem 헤더 컨테이너의 오른쪽 끝, 즉 햄버거 버튼 아래에 붙도록 맞춘다.
     */
    right: calc(50% - 20rem);
  }
}

@media screen and (min-width: 1280px) {
  .privacy-policy-header .yeseo-header-inner,
  .privacy-policy-header.scrollOn .yeseo-header-inner {
    /*
     * /web2/privacyPolicyF의 큰 웹 화면에서만 400px 중앙 정렬을 해제하고
     * 일반 웹 헤더처럼 상하 16px, 좌우 40px 여백을 적용한다.
     * 1279px 이하 모바일/좁은 웹 화면은 기존 공통 헤더 규칙을 그대로 사용한다.
     */
    max-width: none;
    padding: 16px 40px;
  }
}
