@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* =================================
 * CSS 변수 정의
 * ================================= */
:root {
  --color-primary: #03095b;
}

/* =================================
 * 공통 스타일 (style.css)
 * ================================= */

/* --- 1. 기본 설정 --- */
body,
html {
  margin: 0;
  padding: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

body {
  overflow-x: hidden;
}

button {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 140%;
}

/* --- 2. 링크 및 버튼 --- */
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s;
}

/* --- 3. 공통 헤더 --- */
.site-header {
  position: fixed;
  top: 0;
  background: #fff;
  z-index: 999;
  width: 100%;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.site-header .logo {
  height: 20px;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  position: relative;
  height: inherit;
}

.site-header .main-nav a {
  color: #171717;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.2px;
  display: flex;
  width: 140px;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 15px 0;
}

.site-header .main-nav a.active {
  color: #02063a;
  font-weight: 500;
}

.site-header .main-nav .main-nav-item::before {
  content: "";
  display: block;
  background: #c9dcff;
  width: 1px;
  height: 16px;
  position: absolute;
  left: 0;
}

.site-header .main-nav .main-nav-item:first-child::before {
  display: none;
}

.site-header .main-nav a:hover {
  color: #02063a;
}

.site-header .main-nav .btn-primary {
  padding: 8px 16px;
}

/* --- 하위 메뉴 (Dropdown Area) --- */
.sub-nav-wrapper {
  display: none;
  opacity: 0;
  visibility: hidden;

  position: absolute;
  padding: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 var(--effect-shadow-16-cast-y, 8px) var(--effect-shadow-16-cast-blur, 16px) 0 rgba(0, 0, 0, 0.02),
    0 var(--effect-shadow-16-core-y, 0) var(--effect-shadow-16-core-blur, 8px) 0 rgba(0, 0, 0, 0.02);
  padding-bottom: 16px;
  align-items: flex-start;
  gap: 1px;
  top: 100%;
  z-index: 999;
  border: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.main-nav:hover .sub-nav-wrapper {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.sub-nav-wrapper a {
  padding: 11px 0;
  font-weight: 300;
}

.sub-nav-wrapper a:hover,
.sub-nav-wrapper a:active {
  color: #0021a7;
  background: rgba(201, 220, 255, 0.12);
}

/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  padding: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: #222;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  /* 가운데 선 숨김 */
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* 모바일 네비게이션 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #fff;
  flex-direction: column;
  padding: 0 16px;
  z-index: 998;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  display: none;
}

.mobile-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 60px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  color: #404040;
  font-size: 16px;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: -0.2px;
  cursor: pointer;
}

.mobile-nav-item img {
  position: absolute;
  right: 0;
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-item.active .mobile-nav-item-main span {
  color: var(--color-primary);
}

/* --- 4. 공통 푸터 --- */
.site-footer {
  background: #222;
  color: #fff;
  padding: 140px 0 120px 0;

  font-weight: 300;
  line-height: 140%;
  letter-spacing: -0.2px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-footer .logo {
  height: 20px;
}

.site-footer .footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.site-footer .footer-content img {
  width: fit-content;
  height: fit-content;
}

.site-footer .footer-content ul {
  margin: 0;
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0 1px;
  flex-wrap: wrap;
}

.site-footer .footer-content ul li {
  padding-right: 22px;
  position: relative;
}

.site-footer .footer-content ul li::after {
  content: "";
  display: block;
  position: absolute;
  top: 5px;
  right: 0;
  width: 1px;
  height: 10px;
  background: #737373;
}

.site-footer .footer-content ul li:last-child::after {
  display: none;
}

.site-footer .footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  align-items: center;
  border-top: 1px solid #a3a3a3;
}

.site-footer .footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* 페이지 공통 섹션 */
main {
  padding-top: 60px;
}

main section {
  text-align: center;
}

.section-container {
  padding: 180px 20px;
}

.section-header h2 {
  color: #171717;
  text-align: center;
  font-size: 40px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.section-header h3 {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.2px;
}

.section-header p {
  color: #404040;
  text-align: center;
  font-size: 24px;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: -0.2px;
}

.section-header.white h2,
.section-header.white p {
  color: #fff;
}

/* 페이지 상단 영역 */
.section-banner .banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* 버튼 스타일 */
.btn-primary {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  padding: 12px 40px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  /* background: #0021a7; */
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 140%;
}

.btn-primary:hover,
.btn-primary:active {
  background: #02063a;
}

.btn-secondary {
  width: fit-content;
  margin: 0 auto;

  display: flex;
  padding: 12px 32px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  background: #fff;
  color: #171717;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: -0.2px;
}

.btn-secondary:hover,
.btn-secondary:active {
  background: #f5f5f5;
}

.loading-spinner {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 50%;
  transform: translateX(-50%);
}

.loading-spinner span {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 1. 서브 메뉴 기본 상태: 숨김 */
.mobile-nav-submenu {
  display: none;
  width: 100%;
  text-align: center;
  border-top: 1px solid #f1f4ff;
  margin-bottom: 24px;
}

.mobile-nav-submenu a {
  color: #404040;
  font-size: 16px;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: -0.2px;
  display: flex;
  height: 48px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  width: 100%;
}

/* 2. 아이템이 active 되면 서브 메뉴 보이기 */
.mobile-nav-item.active .mobile-nav-submenu {
  display: block;
}

/* 3. 메인 버튼 스타일 (클릭 가능하게 커서 변경) */
.mobile-nav-item-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 19px 0;
  cursor: pointer;
  width: 100%;
}

/* 4. 아이콘 회전 애니메이션 */
.nav-icon {
  transition: transform 0.3s ease;
  /* 부드럽게 회전 */
}

/* active 상태일 때 아이콘 180도 회전 (Down -> Up 효과) */
.mobile-nav-item.active .nav-icon {
  transform: rotate(180deg);
}

.section-cta {
  padding-bottom: 60px;
}

.required {
  color: #a3a3a3;
}

/* --- 반응형 (모바일) --- */
@media (max-width: 720px) {

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    letter-spacing: -0.4px;
  }

  .container {
    padding: 0 16px;
  }

  .site-header .main-nav {
    width: 100%;
  }

  .site-header .main-nav a {
    flex: 1;
    width: 100%;
  }

  .sub-nav-wrapper {
    width: 100%;
  }

  .sub-nav-menu {
    flex: 1;
  }

  .site-header .main-nav {
    display: none;
  }

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

  .mobile-nav.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    width: -webkit-fill-available;
    height: 100%;
  }

  .mobile-nav-item span {
    height: 22px;
    line-height: 26px;
  }

  .mobile-nav-wrapper {
    overflow: auto;
  }

  .site-footer {
    padding: 40px 16px;
  }

  .site-footer .container {
    padding: 0;
  }

  .site-footer .footer-content {
    font-size: 12px;
    gap: 8px;
  }

  .site-footer .footer-content img {
    display: none;
  }

  .site-footer .footer-content ul {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .site-footer .footer-bottom {
    flex-direction: column-reverse;
    padding-top: 8px;
    align-items: flex-start;
    gap: 4px;
  }

  .section-container {
    padding: 80px 16px;
  }

  .section-container.inquiry {
    padding: 80px 16px 120px 16px;
  }

  .btn-primary {
    padding: 12px 40px;
    font-size: 16px;
  }

  .btn-secondary {
    font-size: 16px;
  }

  .mobile-break {
    display: block;
  }

  .section-banner .banner-content {
    gap: 19px;
  }

  .section-banner .banner-content img {
    max-width: 125px;
    width: 100%;
  }

  .section-header h3 {
    font-size: 12px;
  }

  .section-header h2 {
    font-size: 20px;
    margin: 0 auto;
  }

  .section-header p {
    font-size: 14px;
    margin-top: 4px;
    padding: 0 10px;
  }
}