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

/* ============================================
   엘여성의원 — style.css
   컬러: 소프트 로즈 + 로즈골드
   레이아웃: 좌측 투명 사이드바 + 풀페이지 스크롤
   ============================================ */

/* ── 변수 ── */
:root {
  --primary:     #c4849a;
  --rose-gold:   #b87d6e;
  --rose-light:  #e8b4c4;
  --rose-pale:   #f5e6ea;
  --dark:        #2d1f22;
  --text:        #3d2b2e;
  --text-muted:  #8c7478;
  --bg:          #fdf9f7;
  --cream:       #f5ede8;
  --border:      #e8d8d0;
  --white:       #ffffff;

  --sidebar-w:   310px;
  --header-h:    70px;
  --ease-fp:     cubic-bezier(0.76, 0, 0.24, 1);
  --t:           0.32s ease;
  --shadow:      0 4px 24px rgba(196,132,154,0.14);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--dark);
  letter-spacing: 0.03em;
  word-break: keep-all;
  overflow: hidden; /* 풀페이지: body 스크롤 차단 */
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }
*:focus { outline: none; }


/* ============================================
   HEADER / SIDEBAR — 투명
   ============================================ */
#header {
  position: fixed;
  top: 0; left: 0;
  z-index: 500;
  width: 100%;
  height: var(--header-h);
  background: rgba(45,31,34,0.75); /* 모바일: 반투명 어두운 배경 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--t);
}

/* 로고 */
#header h1 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
#header h1 a { display: block; }
.logo-img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity var(--t);
}

/* 데스크탑 nav 기본 숨김 */
#gnb { display: none; }

/* 햄버거 */
.mmn {
  position: absolute;
  top: 0; right: 0;
  width: var(--header-h);
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 110;
}
.mmn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  transition: var(--t);
  transform-origin: center;
}
.mmn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mmn.active span:nth-child(2) { opacity: 0; }
.mmn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ============================================
   DESKTOP SIDEBAR (1200px+) — 완전 투명
   ============================================ */
@media (min-width: 1200px) {
  body { overflow: hidden; } /* 유지 */

  #header {
    width: var(--sidebar-w);
    height: 100vh;
    background: transparent;   /* ← 투명 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 0 44px;
    display: flex;
    flex-direction: column;
    border-right: none;
    animation: sidebarIn 1.2s var(--ease-fp) forwards;
  }

  @keyframes sidebarIn {
    from { left: calc(-1 * var(--sidebar-w)); opacity: 0; }
    to   { left: 0; opacity: 1; }
  }

  /* 로고 */
  #header h1 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    padding: 52px 0 44px;
    flex-shrink: 0;
  }
  .logo-img {
    height: 52px;
    filter: brightness(0) invert(1);
    opacity: 0.88;
  }

  /* 햄버거 숨김 */
  .mmn { display: none; }

  /* nav 표시 */
  #gnb { display: block; }

  /* 사이드바 전체 흰색 전환 (어떤 nav 항목이든 hover 시) */
  #header {
    transition: background 0.28s ease, backdrop-filter 0.28s ease;
  }
  #header:has(#gnb .depth1 > li:hover) {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  /* 흰 배경일 때 로고 필터 제거 (원본 색상 표시) */
  #header:has(#gnb .depth1 > li:hover) .logo-img {
    filter: none;
    opacity: 1;
  }
  /* 흰 배경일 때 nav 텍스트 → 다크 */
  #header:has(#gnb .depth1 > li:hover) #gnb .depth1 > li > a {
    color: var(--text-muted);
  }
  /* 흰 배경일 때 hover 항목 → 로즈골드 */
  #header:has(#gnb .depth1 > li:hover) #gnb .depth1 > li:hover > a {
    color: var(--rose-gold);
  }

  /* 라이트 섹션 (fp-light / fp-col) 진입 시 사이드바 텍스트 → 호버 색상 */
  body.sidebar-light .logo-img {
    filter: none;
    opacity: 1;
  }
  body.sidebar-light #gnb .depth1 > li > a {
    color: var(--text-muted);
  }
  body.sidebar-light #gnb .depth1 > li > a:hover {
    color: var(--rose-gold);
  }

  /* depth1 링크 */
  #gnb .depth1 > li { margin-bottom: 2px; }
  #gnb .depth1 > li > a {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 44px;
    color: rgba(255,255,255,0.78);
    transition: color 0.22s ease;
  }
  #gnb .depth1 > li.active > a { color: var(--rose-light); }

  /* 모바일 nav 완전 숨김 */
  .mobile-nav, .dimm { display: none !important; }

}


/* ============================================
   MOBILE NAV PANEL
   ============================================ */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  z-index: 490;
  width: min(320px, 88vw);
  height: 100vh;
  background: var(--dark);
  padding: var(--header-h) 32px 40px;
  overflow-y: auto;
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.active { right: 0; }

.mobile-nav .depth1 > li { margin-bottom: 6px; }
.mobile-nav .m-depth1-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 50px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  cursor: pointer;
}
.mobile-nav .m-depth1-link .arrow { transition: transform var(--t); }
.mobile-nav .depth1 > li.open .arrow { transform: rotate(90deg); }

.mobile-nav .m-depth2 { display: none; padding-left: 14px; }
.mobile-nav .depth1 > li.open .m-depth2 { display: block; }
.mobile-nav .depth2 li a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  color: rgba(255,255,255,0.55);
  transition: color var(--t);
}
.mobile-nav .depth2 li a:hover { color: var(--rose-light); }

.dimm {
  position: fixed;
  inset: 0;
  z-index: 480;
  background: rgba(45,31,34,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s;
}
.dimm.active { opacity: 1; pointer-events: all; }


/* ============================================
   FULLPAGE WRAP
   ============================================ */
.fp-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ── 공통 섹션 ── */
.fp-sec {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  will-change: transform;
  transition: transform 0.88s var(--ease-fp);
  overflow: hidden;
}

/* ── 레이아웃: FULL (배경 이미지 + 오버레이) ── */
.layout-full {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fp-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(30,15,18,0.62) 0%,
    rgba(30,15,18,0.42) 50%,
    rgba(30,15,18,0.65) 100%
  );
  pointer-events: none;
}
.fp-overlay.dark {
  background: rgba(15,5,8,0.72);
}
.fp-full-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
  /* 데스크탑: 사이드바 오른쪽에서 중앙 정렬 */
}

/* ── 레이아웃: SPLIT (좌우 반반) ── */
.layout-split {
  display: flex;
  flex-direction: row;
}
.layout-reverse {
  flex-direction: row-reverse;
}

.split-img {
  width: 50%;
  flex-shrink: 0;
  position: relative;
}
.split-img iframe {
  width: 100%; height: 100%;
  display: block;
}
.map-slot { background: var(--cream); }

.split-content {
  width: 50%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg); /* 기본 밝은 배경 — 투명 body dark 비침 방지 */
}
.split-content.bg-cream { background: var(--cream); }
.split-content.bg-pale  { background: var(--rose-pale); }

/* 콘텐츠 내부 패딩 */
.sc-inner {
  width: 100%;
  padding: 60px 52px;
}

/* 데스크탑: 콘텐츠 패딩 */
@media (min-width: 1200px) {
  /* 이미지 왼쪽(기본): 콘텐츠 오른쪽 → 사이드바와 무관, 표준 패딩 */
  .layout-split:not(.layout-reverse) .sc-inner {
    padding: 60px 64px;
  }
  /* 이미지 오른쪽(reverse): 콘텐츠 오른쪽 절반에 위치 → 사이드바와 무관 */
  .layout-reverse .sc-inner {
    padding: 60px 64px;
  }
  /* 풀 레이아웃: 사이드바 offset으로 시각적 중앙 */
  .fp-full-content {
    padding-left: var(--sidebar-w);
    padding-right: 32px;
  }
  /* HERO · ABOUT · SIGNATURE 섹션: 사이드바 무시하고 진짜 중앙 배치 */
  #s0 .fp-full-content,
  #s2 .fp-full-content,
  #s3 .fp-full-content {
    padding-left: 32px;
    padding-right: 32px;
  }
  #s3 .hl-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
  }
}


/* ============================================
   IMAGE SLOT — 이미지 교체 가이드
   실제 이미지 추가 방법:
   .img-slot { background-image: url(images/파일명.jpg); }
   또는 인라인: <div class="img-slot" style="background-image:url(...)">
   ============================================ */
.img-slot {
  background-color: #dcc4cc;
  background-image: linear-gradient(
    145deg,
    #f0d8e0 0%,
    #e0c0cc 35%,
    #cfa8b8 65%,
    #be90a4 100%
  );
  background-size: cover;
  background-position: center;
}


/* ============================================
   SECTION CONTENTS
   ============================================ */

/* 공통 레이블 */
.label-en {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: var(--rose-gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* 공통 h2 */
.sc-inner h2,
.fp-full-content h2 {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.title-bar {
  width: 36px;
  height: 1px;
  background: var(--primary);
  margin: 20px 0 36px;
}
.sc-inner .title-bar { margin-left: 0; }

/* ── HERO (S1) ── */
/* ── 히어로 입장 애니메이션 ── */
@keyframes heroZoomOut {
  from { transform: scale(1.13); }
  to   { transform: scale(1); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-zoom {
  animation: heroZoomOut 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  transform-origin: center center;
  will-change: transform;
}
.hero-ani {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-ani--1 { animation-delay: 0.35s; }
.hero-ani--2 { animation-delay: 0.65s; }
.hero-ani--3 { animation-delay: 0.90s; }
.hero-ani--4 { animation-delay: 1.10s; }

.hero-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  color: #fff !important;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
}
.hero-sub {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-top: 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.fp-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
  margin: 28px auto 24px;
}
.hero-location {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}
.hero-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  border: 1px solid rgba(232,180,196,0.55);
  color: var(--rose-light);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.hero-cta:hover {
  background: var(--rose-light);
  color: var(--dark);
  border-color: var(--rose-light);
}

/* 스크롤 유도 화살표 — 공통 */
.scroll-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: color var(--t);
}
.scroll-arrow svg { width: 28px; height: 28px; }
.scroll-arrow:hover { color: rgba(255,255,255,0.82); }

/* 아래 화살표 */
.scroll-arrow--down {
  bottom: 32px;
  animation: arrowBounceDown 1.8s ease-in-out infinite;
}
@keyframes arrowBounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* 위 화살표 */
.scroll-arrow--up {
  top: calc(var(--header-h) + 14px);
  animation: arrowBounceUp 1.8s ease-in-out infinite;
}
@media (min-width: 1200px) {
  .scroll-arrow--up { top: 24px; }
}
@keyframes arrowBounceUp {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}

/* 밝은 섹션 화살표: 로즈 계열 */
.fp-light .scroll-arrow,
.fp-col .scroll-arrow {
  color: rgba(196,132,154,0.45);
}
.fp-light .scroll-arrow:hover,
.fp-col .scroll-arrow:hover {
  color: var(--primary);
}

/* ── PROGRAMS (S2) ── */
.program-list { display: flex; flex-direction: column; gap: 0; }
.program-list li a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--t);
}
.program-list li:first-child a { border-top: 1px solid var(--border); }
.program-list li a:hover { padding-left: 8px; }
.program-list li a:hover .pl-num { color: var(--primary); }
.program-list li a:hover .pl-arrow { opacity: 1; transform: translateX(0); }

.pl-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary);
  flex-shrink: 0;
  width: 24px;
  transition: color var(--t);
}
.pl-body { flex: 1; }
.pl-body strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.03em;
}
.pl-body em {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
}
.pl-arrow {
  font-size: 16px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--t);
}

/* ── ABOUT (S3) ── */
.sc-inner p {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 2.05;
  margin-bottom: 32px;
}

/* 버튼 공통 */
.btn-line {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--primary);
  transition: all var(--t);
}
.btn-line:hover { color: var(--rose-gold); border-color: var(--rose-gold); padding-left: 6px; }

.btn-line-white {
  display: inline-block;
  margin-top: 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  transition: all var(--t);
}
.btn-line-white:hover { color: #fff; border-color: #fff; padding-left: 6px; }

/* ── HIGHLIGHT (S4 dark) ── */
.hl-header { text-align: center; }
.hl-header h2 { color: var(--white) !important; }

.hl-grid {
  display: flex;
  gap: 0;
  width: 100%;
  justify-content: center;
}
.hl-item {
  flex: 1;
  text-align: center;
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: var(--t);
  max-width: 240px;
}
.hl-item:last-child { border-right: none; }
.hl-item:hover { background: rgba(255,255,255,0.03); }
.hl-item--featured {
  background: rgba(232,180,196,0.07);
  border-right-color: rgba(232,180,196,0.18);
  position: relative;
}
.hl-item--featured .hl-line {
  background: var(--rose-light);
  width: 40px;
  opacity: 1;
}
.hl-item--featured h5 {
  color: var(--rose-light);
  font-size: 19px;
}
.hl-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--rose-light);
  border: 1px solid rgba(232,180,196,0.5);
  padding: 2px 8px;
  margin-bottom: 16px;
}

.hl-line {
  width: 28px;
  height: 1px;
  background: var(--rose-light);
  margin: 0 auto 24px;
  opacity: 0.7;
}
.hl-item h5 {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.hl-item p {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
}

/* ── NOTICE (S5) ── */
.notice-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.notice-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--t);
}
.notice-list li:first-child a { border-top: 1px solid var(--border); }
.notice-list li a:hover { padding-left: 6px; }

.n-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(196,132,154,0.14);
  border-radius: 2px;
  padding: 3px 8px;
  white-space: nowrap;
}
.n-badge.new    { color: #c47e5a; background: rgba(196,126,90,0.14); }
.n-badge.notice { color: #5a87b8; background: rgba(90,135,184,0.12); }
.n-badge.info   { color: #5a9e7a; background: rgba(90,158,122,0.12); }

.n-title { flex: 1; font-size: 14px; color: var(--dark); font-weight: 400; letter-spacing: 0.01em; }
.n-date {
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── CONTACT (S6) ── */
.time-table { border-collapse: collapse; width: 100%; margin-bottom: 28px; }
.time-table td {
  padding: 10px 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.time-table .day { font-weight: 500; color: var(--dark); width: 140px; font-size: 15px; }
.time-table tr.lunch td { color: var(--text-muted); font-size: 15px; }
.time-table tr.closed td { color: var(--text-muted); }

.contact-tel {
  margin: 24px 0 10px;
}
.contact-tel a {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.04em;
  transition: color var(--t);
}
.contact-tel a:hover { color: var(--primary); }

.contact-addr {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 28px;
}
.contact-addr span { font-size: 13px; }


/* ============================================
   S6 컬럼 레이아웃 (진료안내 + 푸터)
   ============================================ */
.fp-col {
  display: flex;
  flex-direction: column;
}
.s5-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.s5-body .split-content,
.s5-body .split-img {
  height: 100%;
}

/* 메인 페이지 전용 푸터 스트립 */
.main-footer {
  background: var(--dark);
  flex-shrink: 0;
}
.main-footer-inner {
  padding: 20px 40px 18px;
  max-width: none;
}
@media (min-width: 1200px) {
  .main-footer-inner {
    padding: 20px 60px 18px calc(var(--sidebar-w) + 40px);
  }
}

/* 푸터 좌우 레이아웃 */
.footer-body {
  display: flex;
  align-items: center;
  gap: 40px;
}
.footer-left {
  flex-shrink: 0;
  padding-right: 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  display: block;
}
.footer-right {
  flex: 1;
  min-width: 0;
}

/* 링크 행 */
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  transition: color var(--t);
  padding: 0 10px;
}
.footer-links a:hover { color: var(--rose-light); }
.footer-links a.ft-bold {
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.ft-div {
  color: rgba(255,255,255,0.18);
  font-size: 11px;
}

/* 사업자 정보 */
.footer-info p {
  font-size: 11px;
  line-height: 1.9;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.02em;
  margin: 0;
}
.ft-biz {
  color: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px;
}
.ft-biz:hover { color: var(--rose-light); }

/* 카피라이트 */
.footer-copy {
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.18);
}


/* ============================================
   FULLPAGE DOTS (우측 고정)
   ============================================ */
.fp-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.fp-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-fp);
}
.fp-dot.active {
  background: rgba(255,255,255,0.88);
  height: 22px;
}
.fp-dot:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* 밝은 섹션에서 점 색상 전환 */
.fp-dots--dark .fp-dot { background: rgba(45,31,34,0.25); }
.fp-dots--dark .fp-dot.active { background: var(--primary); }
.fp-dots--dark .fp-dot:hover:not(.active) { background: rgba(45,31,34,0.45); }


/* ============================================
   FOOTER — 풀페이지에 포함 없음
   (컴포넌트 주입 시 fp-wrap 밖으로 처리 필요)
   ============================================ */
#footer { display: none; } /* 메인에서는 숨김 */


/* ============================================
   MOBILE (1199px 이하) — 일반 스크롤 전환
   ============================================ */
@media (max-width: 1199px) {
  body { overflow: auto; background: var(--bg); }

  .fp-wrap {
    position: static;
    overflow: visible;
    height: auto;
  }
  .fp-sec {
    position: relative !important;
    transform: none !important;
    transition: none !important;
    height: auto !important;
    min-height: 100svh;
  }

  /* 헤더: 상단 고정 */
  #header { height: var(--header-h); }

  /* 풀페이지 도트 숨김 */
  .fp-dots { display: none; }

  /* SPLIT → 세로 스택 */
  .layout-split,
  .layout-split.layout-reverse,
  .s5-body { flex-direction: column; }

  .split-img {
    width: 100%;
    height: 48vw;
    min-height: 220px;
    max-height: 380px;
  }
  .split-content {
    width: 100%;
    align-items: flex-start;
  }
  .sc-inner { padding: 48px 24px !important; }

  /* FULL 섹션 */
  .layout-full { min-height: 100svh; }
  .fp-full-content { padding: 0 24px; padding-top: var(--header-h); }
  .hero-title { font-size: clamp(30px, 8vw, 52px); }
  .hero-sub { font-size: 14px; }
  .hl-grid { flex-wrap: wrap; padding: 0 20px; }
  .hl-item { flex: 0 0 50%; max-width: 50%; }

  /* 스크롤 화살표 */
  .scroll-arrow { left: 50% !important; }

  /* 모바일 첫 섹션 상단 여백 */
  #s0 .fp-full-content { padding-top: calc(var(--header-h) + 24px); }
}

@media (max-width: 480px) {
  .hl-item { flex: 0 0 100%; max-width: 100%; }
  .split-img { height: 56vw; }
}


/* ============================================
   SUB PAGE 스타일 (index 외 페이지용)
   ============================================ */
body.sub-page {
  overflow: auto;
  background: var(--bg);
}
body.sub-page #header {
  background: rgba(45,31,34,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-h);
  width: 100%;
}
@media (min-width: 1200px) {
  body.sub-page #header {
    width: var(--sidebar-w);
    height: 100vh;
    background: transparent;
    backdrop-filter: none;
  }
  /* 투명 사이드바 → 로고·텍스트 다크 컬러로 */
  body.sub-page .logo-img {
    filter: none;
    opacity: 0.9;
  }
  body.sub-page #gnb .depth1 > li > a {
    color: var(--text);
  }
  body.sub-page #gnb .depth1 > li > a:hover {
    color: var(--primary);
  }
  body.sub-page #gnb .depth1 > li.active > a {
    color: var(--primary);
  }
  /* 컨텐츠 100% 너비 — 사이드바는 fixed overlay */
  body.sub-page .sec-inner {
    margin-left: var(--sidebar-w);
    margin-right: 0;
  }
  body.sub-page .footer-inner {
    padding-left: calc(var(--sidebar-w) + 60px);
  }
}
body.sub-page #footer { display: block; }

/* 서브페이지 콘텐츠 상단 여백 */
.sub-content { padding-top: var(--header-h); }
@media (min-width: 1200px) { .sub-content { padding-top: 0; } }

/* 서브 헤더 배너 */
.sub-header {
  height: 280px;
  background: linear-gradient(135deg, #e8c8d4 0%, #d4a8b8 60%, #c49098 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  overflow: hidden;
}
.sub-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45,31,34,0.18), rgba(45,31,34,0.48));
}
.sub-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}
.sub-header .breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.sub-header h2 {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.03em;
}
@media (min-width: 1200px) {
  .sub-header { height: 340px; }
  .sub-header-inner { padding: 0 60px; }
}

/* 서브 섹션 */
.sub-sec { background: var(--bg); }
.sub-sec.bg-pale { background: var(--rose-pale); }
.sub-sec.bg-dark-sec { background: var(--dark); }

.sub-sec .sec-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 32px;
}
@media (min-width: 1200px) { .sub-sec .sec-inner { padding: 100px 60px; } }

/* 탭 네비 — sub.css 에서 관리 */

/* 공통 버튼 */
.btn-outline {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: all var(--t);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }


/* ============================================
   FOOTER (서브페이지용 #footer)
   ============================================ */
#footer {
  display: none; /* 메인에서는 .main-footer 사용 */
  background: var(--dark);
}
body.sub-page #footer { display: block; }

.footer-inner {
  padding: 28px 32px 24px;
}
@media (min-width: 1200px) {
  .footer-inner { padding: 28px 60px 24px; }
}


/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 2px; }


/* ================================================================
   섹션 입장 애니메이션 — 데스크탑 풀페이지 전용 (fp-active 트리거)
   ================================================================ */

@keyframes secFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes secSlideFromLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes secSlideFromRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes secBgZoom {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

@media (min-width: 1200px) {

  /* ── S1 · PROGRAMS ── */
  #s1 .split-img { opacity: 0; }
  #s1.fp-active .split-img {
    animation: secSlideFromLeft 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  #s1 .sc-inner .label-en,
  #s1 .sc-inner h2,
  #s1 .sc-inner .title-bar,
  #s1 .program-list li { opacity: 0; }
  #s1.fp-active .sc-inner .label-en  { animation: secFadeUp 0.65s ease forwards 0.30s; }
  #s1.fp-active .sc-inner h2         { animation: secFadeUp 0.65s ease forwards 0.45s; }
  #s1.fp-active .sc-inner .title-bar { animation: secFadeUp 0.65s ease forwards 0.55s; }
  #s1.fp-active .program-list li:nth-child(1) { animation: secFadeUp 0.55s ease forwards 0.60s; }
  #s1.fp-active .program-list li:nth-child(2) { animation: secFadeUp 0.55s ease forwards 0.70s; }
  #s1.fp-active .program-list li:nth-child(3) { animation: secFadeUp 0.55s ease forwards 0.80s; }
  #s1.fp-active .program-list li:nth-child(4) { animation: secFadeUp 0.55s ease forwards 0.90s; }
  #s1.fp-active .program-list li:nth-child(5) { animation: secFadeUp 0.55s ease forwards 1.00s; }
  #s1.fp-active .program-list li:nth-child(6) { animation: secFadeUp 0.55s ease forwards 1.10s; }

  /* ── S2 · ABOUT ── */
  #s2.fp-active .fp-bg {
    transform-origin: center center;
    animation: secBgZoom 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  #s2 .fp-full-content > * { opacity: 0; }
  #s2.fp-active .fp-full-content > *:nth-child(1) { animation: secFadeUp 0.70s ease forwards 0.30s; }
  #s2.fp-active .fp-full-content > *:nth-child(2) { animation: secFadeUp 0.70s ease forwards 0.50s; }
  #s2.fp-active .fp-full-content > *:nth-child(3) { animation: secFadeUp 0.70s ease forwards 0.65s; }
  #s2.fp-active .fp-full-content > *:nth-child(4) { animation: secFadeUp 0.70s ease forwards 0.80s; }
  #s2.fp-active .fp-full-content > *:nth-child(5) { animation: secFadeUp 0.70s ease forwards 1.00s; }

  /* ── S3 · SIGNATURE ── */
  #s3 .hl-header { opacity: 0; }
  #s3.fp-active .hl-header { animation: secFadeUp 0.70s ease forwards 0.15s; }
  #s3 .hl-item { opacity: 0; }
  #s3.fp-active .hl-item:nth-child(1) { animation: secFadeUp 0.60s ease forwards 0.40s; }
  #s3.fp-active .hl-item:nth-child(2) { animation: secFadeUp 0.60s ease forwards 0.55s; }
  #s3.fp-active .hl-item:nth-child(3) { animation: secFadeUp 0.60s ease forwards 0.70s; }
  #s3.fp-active .hl-item:nth-child(4) { animation: secFadeUp 0.60s ease forwards 0.85s; }

  /* ── S4 · CONTACT ── */
  #s5 .s5-body .sc-inner { padding-left: calc(var(--sidebar-w) + 48px); }
  #s5 .s5-body .sc-inner > * { opacity: 0; }
  #s5.fp-active .s5-body .sc-inner > *:nth-child(1) { animation: secFadeUp 0.65s ease forwards 0.25s; }
  #s5.fp-active .s5-body .sc-inner > *:nth-child(2) { animation: secFadeUp 0.65s ease forwards 0.40s; }
  #s5.fp-active .s5-body .sc-inner > *:nth-child(3) { animation: secFadeUp 0.65s ease forwards 0.50s; }
  #s5.fp-active .s5-body .sc-inner > *:nth-child(4) { animation: secFadeUp 0.65s ease forwards 0.60s; }
  #s5.fp-active .s5-body .sc-inner > *:nth-child(5) { animation: secFadeUp 0.65s ease forwards 0.75s; }
  #s5.fp-active .s5-body .sc-inner > *:nth-child(6) { animation: secFadeUp 0.65s ease forwards 0.85s; }
  #s5.fp-active .s5-body .sc-inner > *:nth-child(7) { animation: secFadeUp 0.65s ease forwards 0.95s; }
  #s5 .s5-body .split-img { opacity: 0; }
  #s5.fp-active .s5-body .split-img {
    animation: secSlideFromRight 0.90s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.20s;
  }
}
