/* 언어설정 */
@charset 'utf-8';

@font-face {
  font-family: 'SUIT-Regular';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'KCCHyerim-Regular';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* 전체설정 */
* {
  margin: 0;
  padding: 0;
  font-family: 'SUIT-Regular';
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: #333;
}

img {
  vertical-align: bottom;
}

html,
body {
  overflow-x: hidden;
}

.body {
  max-width: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
  /* 스크롤 막기 */
  touch-action: none;
  /* 터치 시 흔들림 방지 (모바일 UX 향상) */
}

/* 색상설정 */
:root {
  --main-navi: #204B62;
  --main-text: #333;
  --main-white: #fff;
}



/* 상세설정 */

/* style.css */

.main-header {
  background: rgba(255, 255, 255, 1);
  /* 투명도 조절 (0.0 ~ 1.0) */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  height: 80px;
  /* 헤더 높이 고정 */
  backdrop-filter: blur(5px);
  /* 배경 흐리게 효과, 선택 */
}

.header-container {
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: stretch;
  /* ← 이게 중요! consult-call 높이 맞춰줌 */
  justify-content: space-between;
  height: 100%;
  /* 컨테이너도 헤더 높이 따라가게 */
}

.logo {
  width: 200px;
  height: 50px;
  margin: auto 10px;
}

.logo img {
  width: 200px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-menu ul {
  display: flex;
  gap: 80px;
}

.nav-menu ul ul {
  display: block;
  /* 서브메뉴는 무조건 세로 정렬 */
}

.nav-menu li {
  position: relative;
  /* ← 서브메뉴 위치 기준 */
}

.nav-menu a {
  text-decoration: none;
  font-size: 23px;
  color: #333;
  font-weight: 500;
}

/* 마우스 오버 시 서브메뉴 표시 */
.nav-menu li.has-sub {
  position: relative;
}

/* 서브메뉴 기본 숨김 */
.submenu {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  background-color: var(--main-white);
  border: 1px solid #ddd;
  min-width: 180px;
  padding: 10px 0;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  transition: all 0.3s ease;
  margin-top: 15px;
}

/* ✅ 핵심! 수직 정렬되도록 강제 */
.submenu li {
  display: block;
}

.submenu li a {
  display: block;
  padding: 10px 20px;
  font-size: 17px;
  color: #333;
  white-space: nowrap;
}


/* 마우스 오버 시 효과적으로 나타남 */
/* .nav-menu li.has-sub:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  
  pointer-events: auto;
} */

.nav-menu li.has-sub.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.consult-call {
  display: flex;
  background-color: #204B62;
  padding: 15px 70px;
  align-items: center;
}

.call-text {
  text-align: center;
  margin-right: 20px;
}

.call-text span {
  font-size: 28px;
  line-height: 1.2;
  color: var(--main-white);
  text-align: center;
}

.call-number {
  font-size: 46px;
  color: var(--main-white);
  font-weight: bold;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.blinking-text {
  display: flex;
  animation: blink 1.5s infinite;
  /* 1초 간격으로 무한 반복 */
}

/* ✅ 모바일 헤더 */
.header-fixed {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-fixed .logo {
  margin-top: 10px;
}

.header-fixed .logo img {
  height: 40px;
}

.hamburger {
  font-size: 35px;
  cursor: pointer;
  color: #204B62;
  margin-right: 35px;
}

/* ✅ 모바일 슬라이드 메뉴 */
.mobile-slide-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background-color: var(--main-white);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  z-index: 999;
  padding-top: 80px;
  overflow-y: auto;
}

.mobile-slide-menu.open {
  right: 0;
}

.mobile-slide-menu ul {
  list-style: none;
  padding-left: 20px;
}

.mobile-slide-menu li {
  margin-bottom: 10px;
}

.mobile-slide-menu li a {
  font-size: 18px;
  color: #333;
  text-decoration: none;
  display: block;
  padding: 8px 0;
}

/* 기본: 서브메뉴 숨김 */
.mobile-slide-menu .submenu {
  display: none;
  padding-left: 15px;
}

/* 클릭 시 열리는 스타일 */
.mobile-slide-menu .has-sub.open .submenu {
  display: block;
}

.blog-link {
  text-align: center; /* 버튼 박스 자체 가운데 정렬 */
  margin-top: 16px;
}

.blog-link a {
  display: inline-block; /* inline-block으로 가운데 정렬 가능 */
  background-color: #2CB24A;
  color: #fff !important;
  padding: 12px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  width: 200px; /* 원하는 너비 지정 */
  text-align: center; /* 내부 컨텐츠는 왼쪽 정렬 */
}

.blog-link .icon-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.blog-link .icon-text img {
  width: 25px;
  height: 25px;
  display: block;
}


/* 미디어 쿼리 구간------------------------------------------------------------------------------------- */


/* PC 전용 */
@media screen and (min-width: 1440px) {
  .header-fixed {
    display: none;
  }

  .header-fixed {
    display: none;
  }

  .nav-menu ul {
    gap: 40px; /* ✅ 메뉴 간격 줄이기 */
  }

  .nav-menu a {
    font-size: 20px; /* ✅ 메뉴 글자 작게 */
  }

  .logo {
    width: 180px; /* ✅ 로고 사이즈 작게 */
    margin: auto 10px;
  }

  .logo img {
    width: 180px;
    height: auto;
  }

  .consult-call {
    padding: 10px 30px; /* ✅ 전화박스 줄이기 */
  }

  .call-text span {
    font-size: 24px;
  }

  .call-number {
    font-size: 46px;
  }

  .login-btn.only-pc {
    display: inline-block;
    color: #234b5a;      /* 메뉴색상 맞추기 */
    font-size: 20px;     /* 메뉴 글자 크기와 맞춤 */
    font-weight: 500;
    padding: 0 18px;
    line-height: 80px;   /* 헤더 높이 맞춤 */
    background: none;
    border: none;
    border-radius: 0;
    margin-left: 20px;   /* 24시상담과 띄워줌 */
    margin-right: 0;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.2s;
  }

  .login-btn.only-pc:hover {
    color: #307999;      /* hover 컬러 */
    text-decoration: underline;
  }

}

/* 노트북 전용 */
@media screen and (min-width: 1025px) and (max-width: 1439px) {
  .main-header {
    display: block; /* PC헤더 표시 */
  }

  .header-fixed {
    display: none; /* 모바일 헤더 숨기기 */
  }

  .nav-menu ul {
    gap: 40px; /* 메뉴 간격 줄이기 */
  }

  .nav-menu a {
    font-size: 20px; /* 메뉴 글자 약간 작게 */
  }

  .logo {
    width: 180px; /* 로고 사이즈 살짝 줄이기 */
    margin: auto 10px;
  }

  .logo img {
    width: 180px;
    height: auto;
  }

  .consult-call {
    padding: 10px 30px; /* 전화박스 크기도 줄이자 */
  }

  .call-text span {
    font-size: 24px;
  }

  .call-number {
    font-size: 46px;
  }

  .login-btn.only-pc{
    display: none;
  }
}

/* 태블릿 전용 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .main-header {
    display: none;
  }

  .header-fixed {
    display: flex;
  }

  .mobile-slide-menu .submenu {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: none;
    margin-top: 0;
  }

  .mobile-slide-menu .submenu li a {
    padding-left: 25px;
    font-size: 16px;
  }

  .logo {
    width: 200px;
    margin: auto 15px;
  }

  .logo img {
    width: 180px;
    height: auto;
  }

  .login-btn.only-pc{
    display: none;
  }
}

/* 모바일 전용 */
@media screen and (max-width: 767px) {
  .main-header {
    display: none;
  }

  .header-fixed {
    display: flex;
  }

  .mobile-slide-menu .submenu {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: none;
    margin-top: 0;
  }

  .mobile-slide-menu .submenu li a {
    padding-left: 25px;
    font-size: 16px;
  }

  .logo img {
    width: 180px;
    height: auto;
  }

  .login-btn.only-pc{
    display: none;
  }
}