:root {
  /* 전체 톤을 '숲' 느낌의 그린 계열로 변경 */
  --primary: #3c7f4a;
  --primary-soft: #e3f3e8;
  --accent-orange: #ff9b4a;
  --text: #222;
  --muted: #777;
  --bg: #f7fbf7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

/* 헤더 & 네비게이션 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 247, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dde8df;
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex: 1;
}

.nav-logo span {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e1f2e5;
  color: var(--primary);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 14px;
  font-size: 0.88rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu a {
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-menu a:hover {
  background: var(--primary-soft);
}

/* === 햄버거 메뉴 === */
.hamburger {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  padding: 4px;
  margin: 0;
  transition: transform 0.2s;
  line-height: 1;
  flex-shrink: 0;
  display: none; /* 기본적으로 숨김 */
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger:active {
  transform: scale(0.95);
}

/* PC에서는 햄버거 숨김 */
@media (min-width: 901px) {
  .hamburger {
    display: none !important;
  }
}

/* 모바일에서만 햄버거 표시 */
@media (max-width: 900px) {
  .hamburger {
    display: block !important;
  }
}

/* === 사이드바 === */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 200;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background: var(--primary-soft);
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.sidebar-close:hover {
  color: var(--primary);
}

.sidebar-menu {
  padding: 12px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: var(--primary-soft);
  border-left-color: var(--primary);
}

.sidebar-link.active {
  background: var(--primary-soft);
  border-left-color: var(--accent-orange);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link i {
  width: 24px;
  margin-right: 12px;
  font-size: 0.9rem;
}

/* 사이드바 오버레이 */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 150;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === 메뉴 그리드 (홈페이지) === */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu-card {
  background: white;
  padding: 32px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(60, 127, 74, 0.15);
  border-color: var(--primary);
}

.menu-card-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.menu-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* === 페이지 전환 애니메이션 === */
#app {
  transition: opacity 0.15s ease;
}

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 18px rgba(60, 127, 74, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(60, 127, 74, 0.32);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary-soft);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

/* 기본 레이아웃 */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

section {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
  white-space: pre-wrap; /* 줄바꿈 유지 */
}

/* 대표 이미지 */
.featured-image-wrapper {
  margin-top: 16px;
  margin-bottom: 6px;
  text-align: center;
}

.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* 히어로 영역 */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding-top: 28px;
}

.hero-title {
  font-size: 2.05rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.hero-title span {
  color: var(--primary);
}

.hero-sub {
  font-size: 0.98rem;
  color: #4c5c4f;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

/* 그리드 & 카드 공통 */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: 16px;
  padding: 18px 18px 20px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.card-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
  font-style: italic;
}

.faq-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
  margin-bottom: 8px;
  font-style: italic;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9f5ec;
  color: #3c7f4a;
  margin-bottom: 6px;
  font-weight: 600;
}

/* 태그 색상 */
.tag-green {
  background: #e9f5ec;
  color: #3c7f4a;
}

.tag-blue {
  background: #e3f0ff;
  color: #2563eb;
}

.tag-orange {
  background: #fff4e6;
  color: #d97706;
}

.tag-gray {
  background: #f5f5f5;
  color: #6b7280;
}

.card-caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* 단계 가이드 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  border-radius: 16px;
  padding: 14px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.step-num {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #2f6240;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-weight: 700;
}

/* 하이라이트 박스 */
.highlight-box {
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: #edf4ee;
  border: 1px dashed #c0d9c7;
  font-size: 0.88rem;
}

.highlight-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #355c3f;
}

/* 키워드 pill 배열 */
.keyword-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.keyword-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px dashed #b6d4bd;
  background: #f2f8f3;
  font-size: 0.85rem;
  color: #34563d;
  white-space: nowrap;
}

/* FAQ */
.faq-list {
  max-width: 780px;
}

.faq-item {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.faq-q {
  font-weight: 600;
  margin-bottom: 4px;
}

.faq-q::before {
  content: "Q.";
  color: var(--primary);
  margin-right: 6px;
}

.faq-a::before {
  content: "A.";
  color: #bbb;
  margin-right: 6px;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, #3c7f4a, #6fbf86);
  border-radius: 22px;
  padding: 24px 20px;
  color: #f7fbf7;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.cta-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.cta-sub {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

footer {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 22px 0 0;
}

/* 반응형 */
@media (max-width: 900px) {
  .nav-menu {
    display: none !important;
  }
  
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  main {
    padding-inline: 16px;
  }
  .grid-3,
  .grid-4,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* 이미지 콘텐츠 */
.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* === Quill 에디터 콘텐츠 스타일 === */
.quill-content {
  line-height: 1.5;
  color: var(--text);
  font-size: 0.95rem;
}

.quill-content p {
  margin-top: 0; /* 첫 번째 문단 상단 여백 제거! */
  margin-bottom: 4px;
  white-space: pre-wrap; /* 공백과 줄바꿈 유지 */
}

/* 빈 문단 높이 줄이기 */
.quill-content p:empty,
.quill-content p:has(br:only-child) {
  margin-bottom: 2px;
  line-height: 0.5;
}

.quill-content br {
  display: block;
  content: "";
  margin-top: 0.5em;
}

.quill-content p:last-child {
  margin-bottom: 0;
}

.quill-content strong {
  font-weight: 600;
  color: var(--primary);
}

.quill-content em {
  font-style: italic;
}

.quill-content u {
  text-decoration: underline;
}

.quill-content h1,
.quill-content h2,
.quill-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--primary);
}

.quill-content h1 {
  font-size: 1.8rem;
}

.quill-content h2 {
  font-size: 1.5rem;
}

.quill-content h3 {
  font-size: 1.2rem;
}

.quill-content ul,
.quill-content ol {
  margin-left: 24px;
  margin-bottom: 12px;
}

.quill-content li {
  margin-bottom: 6px;
}

.quill-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--muted);
  font-style: italic;
}

.quill-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

.quill-content a {
  color: var(--primary);
  text-decoration: underline;
}

.quill-content a:hover {
  color: var(--accent-orange);
}

.quill-content pre {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 12px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

/* 페이지 콘텐츠 래퍼 */
.page-content {
  margin-bottom: 32px;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 박스 스타일 */
.content-box {
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.content-box-white {
  background: white;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.content-box-white-border {
  background: white;
  border: 1px solid #dde8df;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.content-box-green {
  background: #e3f3e8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.content-box-green-border {
  background: #e3f3e8;
  border: 1px solid #3c7f4a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.content-box-gray {
  background: #f5f5f5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.content-box-gray-border {
  background: #f5f5f5;
  border: 1px solid #ccc;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.content-box-blue {
  background: #e3f0ff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.content-box-blue-border {
  background: #e3f0ff;
  border: 1px solid #2563eb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.page-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
}

/* 지점 섹션 */
.branch-section {
  margin-bottom: 32px;
}

.branch-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-orange);
}

/* === FAQ 스타일 === */
.faq-list {
  max-width: 800px;
}

.faq-q {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.faq-a {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}
