/*---------------------------------------------------
  헤더 높이로 인한 이너 여백
---------------------------------------------------*/
.inner {
  padding-top: 80px;
}

@media (max-width: 760px) {
  .inner {
    padding-top: 0 !important;
  }
}

/*---------------------------------------------------
  1. 공통 스타일
---------------------------------------------------*/
.header_area {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
  transition: 0.3s;
}

/* 내부 컨테이너 */
.header_inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  position: relative;
}

/* 로고 */
.logo img {
  width: 210px;
  height: auto;
}

/* 햄버거 버튼 */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger .bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #002453;
  margin: 4px 0;
  transition: background 0.3s ease;
}

.hamburger .bar--short {
  width: 18px;
  margin-left: 6px;
}

/*---------------------------------------------------
  2. PC 뷰 스타일
---------------------------------------------------*/
@media (min-width: 769px) {
  .mobile_nav_header {
    display: none;
  }

  .hamburger {
    display: none;
    /* PC 에선 숨김 */
  }

  /* 1) header_inner 세로배치 + 중앙정렬 */
  .header_inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* 3) 메뉴 아이템 중앙 정렬 */
  .main_menu {
    display: inline-flex;
    /* 가로 정렬 유지하면서 inline-block처럼 */
    justify-content: center;
    gap: 50px;
  }

  /* 메뉴 */
  .main_menu {
    display: flex;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin-top: 16px;
  }

  .main_menu .menu-item {
    display: inline-block;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #222;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
  }

  .main_menu li:last-child .menu-item {
    margin-right: 0;
  }

  .main_menu .menu-item:hover {
    color: #0053a0;
  }

  /* 서브메뉴 */
  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    min-width: 140px;
    z-index: 9999;
    list-style: none;
  }

  .main_menu li {
    position: relative;
  }

  .main_menu li:hover .submenu {
    display: block;
  }

  .submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #7a7a7a;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
  }

  .submenu li a:hover {
    background-color: #cae2f8;
    color: #243546;
    font-weight: bold;
    border-radius: 10px;
    max-width: 140px;
    margin: 0 auto;
  }
}

/*---------------------------------------------------
   모바일용 서브메뉴 미디어쿼리
---------------------------------------------------*/
@media (max-width: 768px) {
  /* .inner {
    padding-top: 76px !important;
  } */

  /* 햄버거 보이기 */
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* 1) header_inner 중앙정렬 */
  .header_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  /* 1) 모바일 헤더 로고+닫기 */
  .mobile_nav_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
  }

  .mobile-logo {
    width: 160px;
    height: auto;
  }

  .close_nav {
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  /* off-canvas 네비 */
  .main_nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    background-color: #04234b;
    padding: 50px 10px;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 9998;
  }

  /* open 클래스 추가 시 보여주기 */
  .header_area.open .main_nav {
    right: 0;
  }

  /* 메뉴 리스트 세로 정렬 */
  .main_menu {
    display: block;
    margin: 0;
    padding: 0;
  }

  .main_menu li {
    list-style: none;
    border: none;
    margin: 0;
  }

  .main_menu .menu-item {
    display: block;
    padding: 16px 20px;
    width: 100%;
    background: transparent;
    color: #f6fbff;
    font-size: 1.2rem;
    font-weight: 500;

    border: none;
    /* 모든 테두리 제거 */
    box-shadow: none !important;
    /* 그림자 제거 */
    appearance: none !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .main_menu .menu-wrap:last-child .menu-item {
    border-bottom: none;
  }

  /* 서브메뉴는 접었다 폈다할 수 있게 클릭 토글용으로만 남김 */
  .submenu {
    display: none;
    position: static;
    transform: none;
    background: none;
    box-shadow: none;
    padding: 0;
    margin-top: 4px;
  }

  .main_menu li.open > .submenu {
    display: block;
    /* JS 로 .open 클래스 토글하면 펼쳐짐 */
  }

  .submenu li a {
    padding: 8px 0;
    color: #dadada;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    border: none;
    margin: 0;
  }

  button.menu-item,
  .main_nav .menu-item {
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    /* iOS/Safari 기본 스타일 제거 */
  }

  .toggle-icon {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 400;
    transition: transform 0.3s;
  }

  /* 기본: 아래 화살표(▾) */
  .toggle-icon::before {
    content: "▾";
  }

  /* .open일 때 180도 회전 → 위 화살표(▴)처럼 보임 */
  .menu-wrap.open .toggle-icon {
    transform: rotate(180deg);
  }
}

@media (min-width: 769px) {
  .mobile_header,
  .mobile_menu {
    display: none !important;
  }
}

/* ---------- footer--------------- */
footer {
  background-color: #04234b;
  color: #fff;
}

footer .ft_wrap {
  margin: auto 30px;
  padding: 30px 0;
}

footer h1 {
  font-weight: 500;
  font-size: 1.2rem;
}

footer .ft_wrap ul {
  list-style: none;
}

footer .ft_wrap ul li {
  font-size: 0.85rem;
  line-height: 1.7;
}

footer .copyright {
  font-size: 0.85rem;
  color: #888;
  padding: 20px 0;
}

/* ---------- 고정 버튼 2개 --------------- */
/* 오른쪽 하단 고정 버튼 */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  white-space: nowrap;
}

/* 아이콘 스타일 (신청하기 전용) */
.consult .btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 상담신청 버튼 */
.float-btn.consult {
  background: linear-gradient(to right, #1b85eb, #152d6b);
}

/* 카카오 버튼 */
.float-btn.kakao {
  background: #ffe812;
  color: #000;
}

.float-btn:hover {
  opacity: 0.85;
}

@media (min-width: 1200px) {
  .floating-buttons {
    top: 20px;
    bottom: auto; /* 기존 bottom 위치 제거 */
    right: 20px;
    flex-direction: column;
  }
}
