:root {
  --header-bg: #FFF6D5;      /* 은행잎 연한 노란색 */
  --ginkgo: #B8901A;         /* 은행잎 진한 골드 (텍스트용, 대비 확보) */
  --ginkgo-soft: #E8D27A;
  --purple: #6B5B95;         /* 은은한 보라색 - 큰 제목 공통 */
  --purple-hero: #D8CBF2;    /* 히어로(어두운 배경) 위에서 쓰는 밝은 보라 */
  --heading-font: 'Noto Serif KR', serif;
  --body-font: 'Noto Sans KR', -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

h1, h2 {
  font-family: var(--heading-font);
  font-weight: 900;
  color: var(--purple);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--ginkgo-soft);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 17px;
  margin-right: 12px;
  white-space: nowrap;
}

.logo-img {
  width: 42px;
  height: 42px;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 700;
  color: var(--ginkgo);
  letter-spacing: 0.02em;
}

.main-nav a:hover {
  color: #8a6d10;
}

.naver-blog-btn {
  margin-left: auto;
  background: #03c75a;
  color: #fff;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ginkgo);
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 140px 20px;
  background: linear-gradient(rgba(20, 15, 10, 0.5), rgba(20, 15, 10, 0.5)), url('../images/title.jpg') center/cover no-repeat;
  color: #fff;
}

.hero h1 {
  font-size: clamp(34px, 6.5vw, 58px);
  margin-bottom: 14px;
  color: var(--purple-hero);
}

.hero-sub {
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 400;
  color: #f2f2f2;
}

.hero-tagline {
  margin-top: 10px;
  font-size: clamp(34px, 6.5vw, 58px);
  font-weight: 900;
  color: var(--ginkgo-soft);
}

/* Sections */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  margin-bottom: 20px;
}

/* Intro info row */
.info-row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 이용대상 */
.check-list li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "-";
  position: absolute;
  left: 0;
}

/* 이용안내 */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-steps li {
  border-radius: 8px;
  padding: 32px 24px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.guide-steps li:nth-child(6n+1) { background: #FBEFF4; }
.guide-steps li:nth-child(6n+2) { background: #EAF3FB; }
.guide-steps li:nth-child(6n+3) { background: #F1F7E9; }
.guide-steps li:nth-child(6n+4) { background: #FFF6E0; }
.guide-steps li:nth-child(6n+5) { background: #F3EFFB; }
.guide-steps li:nth-child(6n+6) { background: #FFF0E6; }

.guide-steps li:hover {
  transform: translateY(-4px);
  filter: brightness(0.97);
}

.guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--purple);
}

.guide-icon svg {
  width: 36px;
  height: 36px;
}

.guide-steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  color: #222;
}

.guide-steps p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 프로그램 소개 캐러셀 */
.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  flex: 0 0 33.3333%;
  box-sizing: border-box;
  padding: 0 8px;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  background: transparent;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  cursor: pointer;
  padding: 0;
}

.carousel-arrow.prev {
  border-right: 20px solid var(--purple);
}

.carousel-arrow.next {
  border-left: 20px solid var(--purple);
}

.carousel-arrow:hover {
  opacity: 0.7;
}

/* 표 이미지 (수가/비급여) */
.table-image-wrap {
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.table-image-wrap img {
  width: 100%;
}

/* 상담 */
.counsel-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.counsel-row img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 오시는길 */
.address {
  font-size: 16px;
  margin-bottom: 20px;
}

.google-map {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 10px;
}

/* Footer */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 40px 20px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-title {
  color: #fff;
  font-weight: bold;
  margin-bottom: 12px;
}

.footer-contact {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-copy {
  font-size: 12px;
  color: #888;
}

/* TOP 플로팅 버튼 */
.top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 200;
}

.top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 반응형 */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
  }

  .naver-blog-btn {
    margin-left: auto;
  }

  .info-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 90px 20px;
  }
}

@media (max-width: 480px) {
  .info-row {
    grid-template-columns: 1fr;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    flex-basis: 100%;
  }

  .header-inner {
    gap: 12px;
  }

  .logo-text {
    display: none;
  }
}
