:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --ink: #3d3236;
  --muted: #7d6f6c;
  --line: #e8ddd0;
  --tan: #96713f;
  --beige: #e2d2bd;
  --mocha: #564a4e;
  --mocha-dark: #40363a;
  --cream: #f3ece4;
  --radius: 22px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; /* 고정 헤더에 제목이 가리지 않도록 */ }

body {
  margin: 0;
  padding-bottom: 84px; /* 하단 고정 CTA 높이만큼 */
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더: 상단 고정. 히어로 위에서는 투명, 스크롤하면 배경이 생김 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 20px;
  transition: background 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  background: rgba(250, 246, 241, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}
.site-header.scrolled .header-inner { border-bottom-color: transparent; }
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-header.scrolled .header-link { background: var(--mocha); color: #fff; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  height: 68px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.brand { color: #fff; font-family: var(--serif); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
/* 모바일에서는 메뉴 중 베이비페어만 노출 */
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a:not(.nav-fair) { display: none; }
.site-nav a { color: rgba(255, 255, 255, 0.9); font-size: 15px; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; text-decoration: underline; }
.header-link {
  padding: 9px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* 히어로: 화면을 가득 채우는 영상 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 44px 44px;
  background: #6b5547;
  color: #fff;
  text-align: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61, 45, 36, 0.45) 0%, rgba(61, 45, 36, 0.3) 45%, rgba(61, 45, 36, 0.6) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 100px 20px 72px;
}
.eyebrow { margin: 0 0 14px; color: #f3dfc2; font-weight: 600; font-size: 14px; letter-spacing: 0.08em; }
h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(40, 28, 22, 0.35);
}
.hero-sub { margin: 0 0 28px; color: rgba(255, 255, 255, 0.92); font-size: 17px; }

/* 서브 페이지 상단 (베이비페어) */
.page-hero {
  padding: 120px 20px 64px;
  border-radius: 0 0 50% 50% / 0 0 36px 36px;
  background: var(--mocha);
  color: #fff;
  text-align: center;
}
.page-hero-inner { max-width: 720px; margin: 0 auto; }
.page-hero h1 { font-size: 30px; }
.page-hero .hero-sub { margin-bottom: 0; }
.page-sub .byline { margin-top: 28px; }

/* 베이비페어 일정 */
.fair-notice { margin: 8px 0 0; padding: 14px 18px; background: var(--cream); border-radius: 14px; color: var(--muted); font-size: 15px; }
.fair-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fair-list li + li { margin-top: 0; }
.fair {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fair-date {
  flex: 0 0 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  line-height: 1.4;
}
.fair-date strong { font-family: var(--serif); font-size: 16px; }
.fair-date span { color: var(--muted); font-size: 13px; }
.fair-body { min-width: 0; padding-right: 64px; }
.fair-body h3 { margin: 0 0 2px; font-size: 17px; }
.fair-body p { margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.fair-body .text-link { font-size: 14px; }
.fair-status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.fair-status-upcoming { background: var(--beige); color: var(--ink); }
.fair-status-live { background: var(--tan); color: #fff; }
.fair-status-ended { background: var(--cream); color: var(--muted); }
.fair.is-ended { opacity: 0.6; }

/* 핵심 요약 카드 */
.tldr { padding-top: 44px; }
.tldr h2 { margin: 0 0 18px; padding: 0; border: 0; text-align: center; }
.tldr ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: tldr; }
.tldr li {
  margin: 0;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--tan);
  color: #fff;
  font-size: 15px;
  line-height: 1.65;
  counter-increment: tldr;
}
.tldr li::before {
  content: "0" counter(tldr);
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 14px;
  opacity: 0.8;
}
.tldr li strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 20px; }
.tldr li:nth-child(2) { background: var(--beige); color: var(--ink); }
.tldr li:nth-child(3) { background: var(--mocha); }

.byline { margin: 16px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.lead { font-family: var(--serif); font-size: 19px; font-weight: 500; }

/* 본문 */
section { padding: 12px 0; }
h2 {
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
h3 { margin: 30px 0 10px; color: var(--mocha-dark); font-size: 19px; line-height: 1.45; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li + li { margin-top: 6px; }
li::marker { color: var(--tan); }
strong { font-weight: 700; }
.text-link { color: var(--tan); font-weight: 700; }

/* 표 */
.table-scroll {
  margin: 0 -20px 16px;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 0 0 1px var(--line);
}
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--beige); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { background: var(--cream); font-weight: 700; white-space: nowrap; }

/* CTA */
.cta {
  margin: 32px 0;
  padding: 30px 22px;
  background: var(--beige);
  border-radius: var(--radius);
  text-align: center;
}
.cta-title { margin: 0 0 16px; font-family: var(--serif); font-weight: 700; font-size: 19px; }
.cta-note { margin: 12px 0 0; color: #6a5a52; font-size: 14px; }

.btn {
  display: inline-block;
  width: 100%;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--mocha);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover, .btn:focus-visible { background: var(--mocha-dark); }
.btn-light { width: auto; background: #fff; color: var(--ink); }
.btn-light:hover, .btn-light:focus-visible { background: var(--cream); }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
button.btn:disabled { opacity: 0.6; cursor: default; }

/* 오픈채팅 상담 박스 */
.chat-box {
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.chat-box ul { display: inline-block; margin: 0 0 22px; text-align: left; }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover, .btn-kakao:focus-visible { background: #f2d900; }

/* 상담하기 버튼: 가운데 정렬 + 깜빡임 */
.chat-box .btn {
  display: block;
  margin: 0 auto;
  animation: btn-blink 1.4s ease-in-out infinite;
}
.chat-box .btn:hover,
.chat-box .btn:focus-visible { animation: none; }
@keyframes btn-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(86, 74, 78, 0.45); }
  50% { opacity: 0.6; box-shadow: 0 0 0 10px rgba(86, 74, 78, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-box .btn { animation: none; }
}

/* 상담 신청 폼 */
.consult-form, .consult-done {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.consult-done { text-align: center; }
.field { margin: 0 0 18px; padding: 0; border: 0; }
.field > label, .field > legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 15px; }
.field input[type="text"], .field input[type="date"], .field input[type="number"], .field input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d8c9b8;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field input:focus-visible { outline: 2px solid var(--tan); outline-offset: 1px; }
.field-note { margin: 8px 0 0; color: var(--tan); font-size: 14px; }
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio {
  flex: 1 1 140px;
  padding: 12px 16px;
  border: 1px solid #d8c9b8;
  border-radius: 14px;
  cursor: pointer;
}
.radio:has(input:checked) { border-color: var(--tan); background: var(--cream); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--mocha); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin-bottom: 18px; padding: 16px 18px; background: var(--cream); border-radius: 14px; font-size: 14px; }
.consent .checkbox { display: block; font-weight: 700; font-size: 15px; cursor: pointer; }
.consent ul { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.form-status { margin: 0 0 14px; color: #b0392b; font-weight: 700; font-size: 15px; }
[hidden] { display: none !important; }

/* FAQ */
.faq-item {
  margin-bottom: 14px;
  padding: 22px;
  background: var(--cream);
  border-radius: var(--radius);
}
.faq-item h3 { margin: 0 0 8px; font-size: 17px; }
.faq-item p { margin: 0; }

.disclaimer { margin-top: 24px; color: var(--muted); font-size: 14px; }

/* 푸터 */
.site-footer {
  margin-top: 48px;
  padding: 28px 0;
  background: var(--mocha);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.6;
}
.site-footer p { margin: 0 0 6px; }
/* 심의 가이드라인: 안내문구는 8pt(약 11px) 이상, 심의필은 본문과 같은 크기·굵기 */
.site-footer { font-size: 14px; }
.footer-notice p { padding-left: 1.1em; text-indent: -1.1em; }
.footer-agent { font-size: 17px; font-weight: 400; line-height: 1.75; }
.table-note { margin: -6px 0 14px; color: var(--muted); font-size: 14px; }
.footer-notice .footer-indent { padding-left: 2.2em; }
.footer-agent {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}
.footer-agent p { margin-bottom: 2px; }

/* 하단 고정 CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 241, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.sticky-cta .btn { display: block; max-width: 680px; margin: 0 auto; }

@media (min-width: 768px) {
  body { font-size: 18px; }
  .footer-agent { font-size: 18px; }
  .site-nav { margin-left: 0; }
  .site-nav a:not(.nav-fair) { display: inline; }
  .brand { font-size: 18px; }
  .page-hero { border-radius: 0 0 50% 50% / 0 0 70px 70px; }
  .page-hero h1 { font-size: 44px; }
  .hero { border-radius: 0 0 50% 50% / 0 0 90px 90px; }
  h1 { font-size: 52px; line-height: 1.3; }
  .hero-sub { font-size: 19px; }
  h2 { font-size: 29px; }
  .tldr ol { grid-template-columns: repeat(3, 1fr); }
  .btn { width: auto; min-width: 360px; }
  .btn-light { min-width: 0; }
  .sticky-cta .btn { width: 100%; }
}
