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

:root {
  --primary-color: #1A3C34; /* 진한 녹색 */
  --primary-dark: #122B25;
  --primary-light: #2D5A4E;
  --bg-color: #F8FAF9; /* 살짝 쿨그레이+민트 느낌의 아주 밝은 톤 */
  --white: #FFFFFF;
  --text-main: #222222;
  --text-sub: #666666;
  --border-color: #EAEAEA;
  --header-height: 60px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  padding-top: var(--header-height); /* 헤더 고정을 위해 */
  padding-bottom: 90px; /* 플로팅 버튼 여백 */
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 480px 컨텐츠 컨테이너 */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--white);
  min-height: calc(100vh - 150px);
  box-shadow: 0 0 20px rgba(0,0,0,0.03);
}

/* =======================================
   헤더 (전체 화면 기준)
======================================= */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.header-inner {
  width: 100%;
  max-width: 1200px; /* PC 와이드 컨테이너 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-tel {
  display: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  transition: opacity 0.2s;
}

.header-tel:hover {
  opacity: 0.8;
}

/* PC GNB 메뉴 */
.pc-nav {
  display: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.pc-nav a, .pc-nav .dropdown > span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  padding: 18px 0;
}

.pc-nav a:hover, .pc-nav .dropdown:hover > span {
  color: var(--primary-color);
}

/* 현재 페이지 네비게이션 표시 */
.pc-nav a.nav-active,
.pc-nav .dropdown > span.nav-active {
  color: var(--primary-color);
  font-weight: 800;
  border-bottom: 2px solid var(--primary-color);
}

.mobile-menu-list a.nav-active {
  color: var(--primary-color);
  font-weight: 800;
}

.dropdown {
  position: relative;
}

.drop-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  min-width: 140px;
  border-radius: 8px;
  overflow: hidden;
  z-index: 10;
}

.drop-content a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.drop-content a:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.dropdown:hover .drop-content {
  display: block;
}

/* 햄버거 메뉴 버튼 */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* 모바일 네비게이션 레이어 */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--white);
  z-index: 2001;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 15px rgba(0,0,0,0.05);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.mobile-nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
}

.close-menu {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list > li {
  margin-bottom: 12px;
}

.mobile-menu-list a {
  display: block;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.mobile-submenu {
  list-style: none;
  padding-left: 16px;
  margin-top: 8px;
}

.mobile-submenu li a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  border-bottom: none;
  padding: 8px 0;
}

.mobile-tel-banner {
  margin-top: auto;
  background-color: var(--bg-color);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.mobile-tel-banner p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.mobile-tel-banner a {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
}

/* =======================================
   하단 플로팅 전화
======================================= */
.floating-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 16px 20px;
  z-index: 900;
  pointer-events: none; /* 뒤쪽 클릭 통과 */
}

.btn-floating {
  pointer-events: auto; /* 버튼만 클릭 가능 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(26, 60, 52, 0.4);
  transition: transform 0.2s, background-color 0.2s;
  letter-spacing: -0.5px;
}

.btn-floating:active {
  transform: scale(0.98);
}

.btn-floating svg {
  margin-right: 10px;
}

/* =======================================
   푸터
======================================= */
.app-footer {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ECEFEF;
  padding: 30px 20px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

.footer-company {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  font-size: 15px;
}

.footer-info {
  margin-bottom: 4px;
}

/* =======================================
   공통 컴포넌트
======================================= */
.page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 20px 0;
  padding: 24px 20px 0;
}

/* 서브페이지 공통 헤더 블록 */
.page-header-block {
  text-align: center;
  padding: 40px 20px 0;
  margin-bottom: 8px;
}

.page-header-block .page-title {
  padding: 0;
  margin: 0 0 12px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0;
}

/* 섹션 패딩 */
.section {
  padding: 40px 20px;
}

.section-bg {
  background-color: var(--bg-color);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 24px 0;
  text-align: center;
  color: var(--primary-color);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }

/* 아코디언 컴포넌트 */
.accordion {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background-color: var(--white);
}

.accordion-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  background-color: var(--white);
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background-color: var(--bg-color);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-sub);
  transition: transform 0.3s;
}

.accordion-icon::before {
  top: 9px;
  left: 4px;
  width: 12px;
  height: 2px;
}

.accordion-icon::after {
  top: 4px;
  left: 9px;
  width: 2px;
  height: 12px;
}

.accordion.active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion.active .accordion-header {
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-color);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--bg-color);
}

.accordion.active .accordion-body {
  max-height: 2000px;
}

.accordion-content {
  padding: 20px;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.6;
}

/* =======================================
   미디어 쿼리 (반응형)
======================================= */
@media (min-width: 768px) {
  /* PC에서는 햄버거 숨기고 GNB 표시 */
  .hamburger {
    display: none;
  }
  
  .pc-nav {
    display: flex;
  }

  .header-tel {
    display: block;
  }

  /* PC에서는 모바일 메뉴 오버레이 무효화 */
  .mobile-nav-overlay, .mobile-nav {
    display: none !important;
  }
} /* @media (min-width: 768px) 닫힘 */

/* =======================================
   메인 페이지 - 히어로 영역
======================================= */
.hero-section {
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(26, 60, 52, 0.6), rgba(45, 90, 78, 0.85)), url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 30px 0;
}
.hero-tel {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-color);
  font-size: 26px;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  letter-spacing: 0px;
}
/* 핵심 가치 카드 */
.value-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.value-icon {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--primary-color);
}
.value-card h3 {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--primary-color);
}
.value-card p {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.5;
}
/* 이용 절차 */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-card {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.step-no {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 15px;
  width: 55px;
  flex-shrink: 0;
}
.step-desc {
  flex: 1;
}
.step-desc h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: var(--text-main);
}
.step-desc p {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}
.step-arrow {
  text-align: center;
  color: var(--primary-light);
  font-size: 20px;
  opacity: 0.5;
  margin: -4px 0;
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s;
  background-color: var(--white);
}
.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}
/* 상품 안내 */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.p-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.p-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.p-price span {
  font-size: 14px;
  font-weight: 600;
}
.p-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.4;
}
/* 가이드 배너 */
.guide-banner {
  background-color: var(--primary-dark);
  color: var(--white);
}
.banner-content {
  padding: 30px 20px;
  text-align: center;
}
.banner-content h3 {
  font-size: 18px;
  margin: 0 0 10px 0;
}
.banner-content p {
  font-size: 15px;
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}
/* 신뢰 구간 */
.trust-list {
  padding-left: 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}
.trust-list li {
  margin-bottom: 12px;
  padding-left: 4px;
}
.trust-list li strong {
  color: var(--primary-color);
}

/* =======================================
   기타 추가 컴포넌트
======================================= */
/* 비교표 */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  margin-top: 10px;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--border-color);
  padding: 12px 6px;
  text-align: center;
  word-break: keep-all;
}
.compare-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
}
.compare-table .category-row {
  background-color: var(--bg-color);
  font-weight: 700;
  color: var(--primary-dark);
  text-align: left;
  padding-left: 12px;
  font-size: 14px;
}
.compare-table td { color: var(--text-main); }
.compare-table td.text-sub { color: var(--text-sub); font-size:12px; }

/* 타임라인 */
.timeline {
  position: relative;
  margin: 20px 0 20px 10px;
  padding-left: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background-color: var(--primary-color);
  opacity: 0.2;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 4px; left: -26px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--primary-color);
}
.timeline-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}
.timeline-content {
  font-size: 14px;
  color: var(--text-sub);
  background: var(--bg-color);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  line-height: 1.6;
}
.timeline-content h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: var(--primary-color);
}


