/* ==========================================================================
   한빛어린이집 — 화면 스타일 (모바일 먼저)
   색·글꼴·모션 기준은 /DESIGN.md
   ========================================================================== */

/* 주아가 내려오기 전에도 제목이 굵게 보이도록, 기기에 있는 굵은 고딕을 대신 씀 */
@font-face {
  font-family: "Jua Fallback";
  src:
    local("Apple SD Gothic Neo Bold"), local("AppleSDGothicNeo-Bold"),
    local("Malgun Gothic Bold"), local("MalgunGothicBold"),
    local("Noto Sans KR Bold"), local("NotoSansKR-Bold"),
    local("Noto Sans CJK KR Bold"), local("NotoSansCJKkr-Bold"),
    local("NanumGothic Bold"), local("NanumGothicBold");
}

/* ---------- 1. 토큰 ---------- */
:root {
  color-scheme: light;

  --cream-50: #FFFBF3;
  --cream-100: #FFF5E1;
  --cream-200: #FCEBC8;
  --sun-150: #FFF1CF;
  --sun-200: #FFEDB0;
  --sun-300: #FFDF7A;
  --sun-400: #FFCD3C;
  --sun-500: #F6B312;
  --amber-600: #A8770F;
  --leaf-100: #EEF7DC;
  --leaf-200: #DDEFBF;
  --leaf-400: #A6D46A;
  --leaf-500: #84BD45;
  --leaf-800: #3A6516;
  --ink-900: #3A2C1E;
  --ink-800: #4A3A2A;
  --ink-700: #5E4A36;
  --ink-200: #E6D3B8;
  --amber-800: #7A4A00;
  --chip-bg: #FFF0C2;
  --chip-line: #E0A93A;

  --font-body: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-display: "Jua", "Jua Fallback", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --step-0: 1.125rem;
  --step-small: 1.0625rem;
  --step-1: clamp(1.1875rem, 1.12rem + .3vw, 1.3125rem);
  --step-2: clamp(1.3125rem, 1.2rem + .5vw, 1.625rem);
  --step-3: clamp(1.875rem, 1.55rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.75rem + 2.9vw, 4.25rem);

  --radius-s: 12px;
  --radius-l: 32px;

  --shadow-1: 0 2px 6px -2px rgb(58 44 30 / .1), 0 10px 26px -14px rgb(58 44 30 / .22);
  --shadow-2: 0 4px 10px -4px rgb(58 44 30 / .12), 0 22px 44px -22px rgb(58 44 30 / .32);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: 20px;
  --header-h: 64px;
  --section-pad: clamp(64px, 8vw, 112px);
  --callbar-space: calc(78px + env(safe-area-inset-bottom));
  --focus: var(--leaf-800);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* 하단 전화 버튼은 머리에 전화 버튼이 보이는 1080px부터 없어짐 */
@media (min-width: 1080px) {
  :root { --callbar-space: 0px; }
}

/* ---------- 2. 기본 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-color: var(--amber-600) var(--cream-100);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--leaf-800);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
[role="list"] { list-style: none; }
p { text-wrap: pretty; }
address { font-style: normal; }
button { font: inherit; }

a {
  color: var(--leaf-800);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}
a:hover { text-decoration-thickness: 3px; }

::selection { background: var(--leaf-800); color: var(--cream-50); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.22em;
}

.container {
  width: min(100% - 2 * var(--gutter), 1160px);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  background: var(--ink-900);
  color: var(--cream-50);
  font-family: var(--font-display);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 전화번호는 어떤 글자 크기에서도 중간에서 끊기지 않게 */
.btn__num,
.callbar__num,
.contact-card__tel,
.site-footer__tel { white-space: nowrap; }

/* ---------- 3. 초안 표시 ---------- */
.draft-bar,
.verify,
.draft-only { display: none; }

.is-draft .draft-only { display: revert; }

.is-draft .draft-bar {
  display: block;
  padding: 8px var(--gutter);
  border-bottom: 1.5px dashed var(--chip-line);
  background: var(--chip-bg);
  color: var(--amber-800);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}
.draft-bar__chip { font-family: var(--font-display); }
.draft-bar__toggle {
  min-height: 44px;
  margin-left: .4em;
  padding: 0 1em;
  border: 1.5px solid var(--amber-800);
  border-radius: 999px;
  background: transparent;
  color: var(--amber-800);
  font-family: var(--font-display);
  font-size: .9375rem;
  cursor: pointer;
}
.draft-bar__toggle:hover { background: #FFFFFF; }
html:not(.js) .draft-bar__toggle { display: none; }

.is-draft .verify {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  max-width: 100%;
  margin-left: .15em;
  padding: .05em .65em 0;
  border: 1.5px dashed var(--chip-line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--amber-800);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  vertical-align: .12em;
}
.is-draft .verify::before {
  content: "";
  flex: none;
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--sun-500);
}

/* '확인 표시 숨겨 보기': 공개했을 때의 모습 미리 보기 */
.is-draft.draft-preview .verify,
.is-draft.draft-preview .draft-only { display: none; }

.placeholder {
  padding: 0 .35em;
  border-radius: 6px;
  background: repeating-linear-gradient(-45deg, #FFF1C9 0 6px, #FFF8E4 6px 12px);
  box-shadow: inset 0 0 0 1.5px var(--chip-line);
  color: var(--ink-700);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.placeholder-block {
  padding: 14px 18px;
  border-radius: var(--radius-s);
  background: repeating-linear-gradient(-45deg, #FFF4D6 0 8px, #FFF9EA 8px 16px);
  box-shadow: inset 0 0 0 1.5px var(--chip-line);
}

/* ---------- 4. 버튼 ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: .55em 1.35em;
  border: 2px solid transparent;
  border-radius: 30px;
  background: var(--btn-bg);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .28s var(--ease-spring),
    background-color .2s ease,
    box-shadow .28s var(--ease-out),
    border-color .2s ease;
}
.btn--sun {
  --btn-bg: var(--sun-400);
  box-shadow: 0 8px 18px -10px rgb(122 74 0 / .55);
}
.btn--sun:hover { --btn-bg: var(--sun-500); }
.btn--line {
  --btn-bg: rgb(255 255 255 / .6);
  border-color: var(--ink-900);
}
.btn--line:hover { --btn-bg: #FFFFFF; }
.btn--lg {
  min-height: 60px;
  padding-inline: 1.6em;
  font-size: 1.25rem;
}
.btn--block { display: flex; width: 100%; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-3px) scale(1.02); }
  .btn--sun:hover { box-shadow: 0 14px 24px -12px rgb(122 74 0 / .6); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:active {
    transform: translateY(0) scale(.98);
    transition-duration: .08s;
  }
}

/* ---------- 5. 머리 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgb(255 251 243 / .97);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--cream-200);
  box-shadow: 0 10px 24px -18px rgb(58 44 30 / .45);
}
/* 자바스크립트가 없으면 메뉴가 펼쳐져 머리가 커지므로, 아주 좁은 화면과 함께 고정하지 않음 */
html:not(.js) .site-header { position: static; }
@media (max-width: 339.98px) {
  .site-header { position: static; }
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-right: auto;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.375rem;
  text-decoration: none;
}
.brand__mark { width: 38px; height: 38px; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border: 2px solid var(--ink-900);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  cursor: pointer;
}
.menu-btn:hover { background: var(--sun-200); }
.menu-btn .icon { width: 22px; height: 22px; }
html:not(.js) .menu-btn { display: none; }

.site-nav__list a {
  color: var(--ink-900);
  font-family: var(--font-display);
  text-decoration: none;
}

@media (max-width: 1079.98px) {
  .site-nav { flex-basis: 100%; }

  /* 자바스크립트가 없을 때: 메뉴를 펼쳐 둠 */
  html:not(.js) .site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    padding-bottom: 12px;
  }
  html:not(.js) .site-nav__list a { display: inline-flex; min-height: 44px; align-items: center; }
  html:not(.js) .site-nav__call { display: none; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 4px var(--gutter) 24px;
    border-top: 1px solid var(--cream-200);
    background: var(--cream-50);
    box-shadow: 0 24px 32px -24px rgb(58 44 30 / .45);
  }
  .js .site-header.is-open .site-nav { display: block; }
  .js .site-nav__list a {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 1.5px dashed var(--cream-200);
    font-size: 1.3125rem;
  }
  /* 지금 보고 있는 구역 */
  .js .site-nav__list a[aria-current="true"] { color: var(--leaf-800); }
  .js .site-nav__list a[aria-current="true"]::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--sun-500);
  }
  .site-nav__call { width: 100%; margin-top: 18px; }
}

@media (min-width: 1080px) {
  .site-header__inner { flex-wrap: nowrap; }
  .menu-btn { display: none; }
  .site-nav { display: flex; align-items: center; gap: 10px; }
  .site-nav__list { display: flex; gap: 2px; }
  .site-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 1.0625rem;
    transition: background-color .2s ease;
  }
  .site-nav__list a:hover { background: var(--sun-200); }
  .site-nav__list a[aria-current="true"] { background: var(--leaf-100); color: var(--leaf-800); }
  .site-nav__call { min-height: 48px; padding-inline: 1.1em; font-size: 1.0625rem; }
}

/* ---------- 6. 첫 화면 ---------- */
.hero {
  --sun-size: 330px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 176px 0 184px;
  background: linear-gradient(180deg, #FFEEC2 0%, #FFF4DB 50%, var(--cream-50) 100%);
}

.hero__sky,
.hero__ground {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero__sky { inset: 0; }
.hero__defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 해: 층마다 따로 움직임 (반복 움직임은 HTML 요소의 transform·opacity만) */
.hero__sun {
  position: absolute;
  top: calc(var(--sun-size) * -0.27);
  right: calc(var(--sun-size) * -0.29);
  width: var(--sun-size);
  height: var(--sun-size);
}
.hero__sun > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sun-glow {
  border-radius: 50%;
  background: radial-gradient(closest-side, #FFE7A0 0%, rgb(255 237 184 / .85) 38%, rgb(255 243 214 / .45) 72%, rgb(255 248 234 / 0) 100%);
}
.hero__sun > .sun-ring {
  inset: 24%;
  width: auto;
  height: auto;
  border: 3px solid #FFD45C;
  border-radius: 50%;
  opacity: 0;
}
.sun-rays line {
  stroke: var(--sun-500);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 40;
}

.hero__cloud { position: absolute; height: auto; }
.hero__cloud--a { top: 70px; left: -34px; width: 118px; }
.hero__cloud--b { top: 22px; left: 34%; width: 84px; }
.hero__cloud--c { display: none; }

.hero__leaf {
  position: absolute;
  width: 30px;
  height: 30px;
  color: var(--leaf-400);
}
.hero__leaf--1 { top: 112px; left: 50%; width: 28px; height: 28px; color: var(--leaf-500); }
.hero__leaf--2 { bottom: 152px; right: 8%; width: 24px; height: 24px; }
.hero__leaf--3 { bottom: 104px; left: 44%; width: 32px; height: 32px; color: var(--leaf-500); }
.hero__leaf--4 { top: 26px; left: 7%; width: 22px; height: 22px; }

.hero__ground { left: 0; right: 0; bottom: 0; height: 132px; }
.hero__hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__house {
  position: absolute;
  right: 18px;
  bottom: 36%;
  width: 118px;
  height: auto;
}

.hero__inner { position: relative; }
.hero__title {
  font-size: var(--step-4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero__lead {
  max-width: 30em;
  margin-top: 18px;
  color: var(--ink-800);
  font-size: var(--step-1);
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

/* 반복 움직임 멈추기 버튼 (WCAG 2.2.2) */
.motion-toggle { display: none; }
.motion-ok .motion-toggle {
  position: absolute;
  left: var(--gutter);
  bottom: 52px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1.5px solid rgb(58 44 30 / .55);
  border-radius: 999px;
  background: rgb(255 251 243 / .92);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: var(--step-small);
  cursor: pointer;
}
.motion-toggle .icon { width: 18px; height: 18px; }
.motion-toggle:hover { border-color: var(--ink-900); background: #FFFFFF; }

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__cloud--c { display: block; top: 47%; right: -30px; width: 100px; }
}

@media (min-width: 960px) {
  .hero {
    --sun-size: clamp(440px, 46vw, 660px);
    padding: 124px 0 272px;
  }
  .hero__title { max-width: 600px; }
  /* 글꼴이 바뀌어도 소개글이 두 줄로 유지되게 넉넉히 */
  .hero__lead { max-width: 640px; }

  .hero__cloud--a { top: 36px; left: -60px; width: 180px; }
  .hero__cloud--b { top: 340px; left: auto; right: 34%; width: 140px; }
  .hero__cloud--c { top: 300px; right: 7%; width: 170px; }

  .hero__leaf--1 { top: 400px; left: auto; right: 29%; width: 40px; height: 40px; }
  .hero__leaf--2 { top: 150px; bottom: auto; right: 43%; width: 30px; height: 30px; }
  .hero__leaf--3 { bottom: 214px; left: 54%; width: 36px; height: 36px; }
  .hero__leaf--4 { top: 470px; left: 2%; width: 28px; height: 28px; }

  .hero__ground { height: 232px; }
  .hero__house { right: 11%; bottom: 33%; width: 228px; }

  .motion-ok .motion-toggle {
    left: max(var(--gutter), calc((100% - 1160px) / 2));
    bottom: 100px;
  }
}

/* ---------- 7. 한눈에 띠 ---------- */
.glance {
  position: relative;
  z-index: 2;
  margin-top: -40px;
}
.glance__list {
  display: grid;
  padding: 4px 24px;
  border-radius: var(--radius-l);
  background: #FFFFFF;
  box-shadow: var(--shadow-2);
}
.glance__item { padding: 18px 0 16px; }
.glance__item + .glance__item { border-top: 1.5px dashed var(--cream-200); }
.glance__value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.1;
}
.glance__value > [aria-hidden] {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3em;
}
.glance__num {
  display: inline-block;
  font-size: 3rem;
  line-height: 1;
}
.glance__grade {
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  margin-left: .1em;
  border: 3px solid var(--ink-900);
  border-radius: 50%;
  background: var(--sun-400);
  font-size: 2.25rem;
  line-height: 1;
  transform: rotate(-6deg);
}
.glance__note {
  margin-top: 8px;
  color: var(--ink-800);
  font-size: var(--step-small);
}
.glance__verify { margin-top: 12px; text-align: center; }

@media (min-width: 760px) {
  .glance__list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; }
  .glance__item { padding: 22px 28px; }
  .glance__item + .glance__item { border-top: 0; border-left: 1.5px dashed var(--cream-200); }
  .glance__num { font-size: 3.5rem; }
  .glance__grade { font-size: 2.5rem; }
}

@media (min-width: 960px) {
  .glance { margin-top: -72px; }
}

/* ---------- 8. 공통 구역 ---------- */
.section { padding-block: var(--section-pad); }
.section--tint { background: var(--cream-100); }
.section-head {
  max-width: 40rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title {
  font-size: var(--step-3);
  line-height: 1.25;
}
.section-lead {
  margin-top: 12px;
  color: var(--ink-800);
  font-size: var(--step-1);
}
.note {
  margin-top: 18px;
  color: var(--ink-700);
  font-size: 1rem;
}

/* ---------- 9. 소개 ---------- */
.about__grid { display: grid; gap: 40px; }
.philosophy {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.5;
}
.about__body {
  max-width: 34em;
  margin-top: 16px;
  color: var(--ink-800);
}
.about__sign {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
}

.about__figure { margin: 0; }
.about__art {
  display: grid;
  place-items: end center;
  aspect-ratio: 4 / 3;
  padding: 28px 24px 16px;
  border-radius: var(--radius-l);
  background:
    radial-gradient(circle at 82% 16%, #FFF0B8 0 13%, rgb(255 240 184 / 0) 40%),
    var(--leaf-100);
  overflow: hidden;
}
.about__art svg { width: min(88%, 380px); height: auto; }
.about__figure figcaption {
  margin-top: 12px;
  color: var(--ink-700);
  font-size: var(--step-small);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1.5px dashed var(--cream-200);
}
.facts__row { padding: 16px 4px; }
.facts__row:nth-child(even) { padding-left: 18px; border-left: 1.5px dashed var(--cream-200); }
.facts__row:nth-child(n + 3) { border-top: 1.5px dashed var(--cream-200); }
.facts__row dt { color: var(--ink-700); font-size: var(--step-small); }
.facts__row dd {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.35;
}
.facts__note { margin-top: 10px; }

@media (min-width: 720px) {
  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts__row,
  .facts__row:nth-child(even) { padding: 18px 22px; border-left: 0; }
  .facts__row + .facts__row { border-left: 1.5px dashed var(--cream-200); }
  .facts__row:nth-child(n + 3) { border-top: 0; }
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    column-gap: 64px;
    row-gap: 48px;
  }
  .facts { grid-column: 1 / -1; }
}

/* ---------- 10. 고르는 이유 ---------- */
.why-grid { display: grid; gap: 16px; }
.why {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-l);
  background: #FFFFFF;
  box-shadow: var(--shadow-1);
}
.why h3 { font-size: var(--step-2); }
.why p { max-width: 34em; margin-top: 8px; color: var(--ink-800); }

.why--grade {
  display: grid;
  gap: 22px;
  background: var(--sun-200);
  box-shadow: none;
}
.why__stamp {
  display: grid;
  place-items: center;
  align-content: center;
  width: 136px;
  height: 136px;
  border: 3px solid var(--ink-900);
  border-radius: 50%;
  background: var(--sun-400);
  box-shadow: inset 0 0 0 7px var(--sun-400), inset 0 0 0 9.5px var(--ink-900);
  transform: rotate(-8deg);
}
.why__stamp-grade {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
}
.why__stamp-year {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
}
.why__areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.why__areas li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / .72);
  font-size: var(--step-small);
  line-height: 1.3;
}
.why__areas .icon { width: 18px; height: 18px; color: var(--leaf-800); }
.why__areas b {
  margin-left: auto;
  color: var(--leaf-800);
  font-family: var(--font-display);
  font-weight: 400;
}
@media (max-width: 479.98px) {
  .why__areas { grid-template-columns: 1fr; }
}

.why--years { background: var(--leaf-100); box-shadow: none; }
.why__years {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.why__years i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--leaf-500) 0 10px, transparent 10px 17px);
}

/* 통학차량 · CCTV · 놀이터: 한 판 안에 그림과 글을 나란히 */
.why--care { padding: 4px 22px; }
.care {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 22px 0;
}
.care + .care { border-top: 1.5px dashed var(--cream-200); }
.care__art { width: 100%; height: auto; margin-top: 6px; }
.care p { margin-top: 6px; }

@media (min-width: 720px) {
  .why--grade {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    padding: 36px;
  }
  .why__stamp { width: 168px; height: 168px; }
  .why__stamp-grade { font-size: 5rem; }
  .why--care { padding: 8px 36px; }
  .care { grid-template-columns: 120px minmax(0, 1fr); column-gap: 28px; }
}

@media (min-width: 1080px) {
  .why-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .why--grade { grid-column: 1 / span 4; }
  .why--years { grid-column: 5 / span 2; display: flex; flex-direction: column; }
  .why--years .why__years { margin-top: auto; padding-top: 18px; }
  .why--care { grid-column: 1 / -1; padding: 8px 12px; }
  .care-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .care { grid-template-columns: 92px minmax(0, 1fr); column-gap: 18px; padding: 26px 24px; }
  .care + .care { border-top: 0; border-left: 1.5px dashed var(--cream-200); }
}

/* ---------- 11. 반 안내 ---------- */
.class-groups { display: grid; gap: 20px; }
.class-group {
  padding: 26px 20px 0;
  border-radius: var(--radius-l);
  background: var(--leaf-100);
  overflow: hidden;
}
.class-group::after {
  content: "";
  display: block;
  height: 12px;
  margin-inline: -20px;
  background: var(--leaf-200);
}
.class-group--older { background: var(--sun-150); }
.class-group--older::after { background: #FBE2A6; }
.class-group__title { font-size: var(--step-2); }
.class-group__title span {
  margin-left: 6px;
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: var(--step-small);
}
.class-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  align-items: end;
}
.class-card {
  display: grid;
  justify-items: center;
  padding-bottom: 20px;
  text-align: center;
}
.class-card__sprout { width: 100%; max-width: 92px; height: auto; }
.class-card__age {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.class-card__name { color: var(--ink-700); font-size: var(--step-small); }
.class-card__meta {
  display: grid;
  margin-top: 4px;
  color: var(--ink-800);
  font-size: var(--step-small);
  line-height: 1.6;
}

@media (min-width: 960px) {
  .class-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 12. 하루 일과 ---------- */
.day-cols { display: grid; gap: 36px; }
.day-col__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.5rem, 1.35rem + .6vw, 1.875rem);
}
.day-col__icon { width: 60px; height: 38px; }
.timeline {
  margin-top: 18px;
  padding-left: 42px;
}
.timeline__item { position: relative; padding-bottom: 22px; }
.timeline__item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -42px;
  width: 25px;
  height: 25px;
  border: 3px solid var(--ink-900);
  border-radius: 50%;
  background: var(--dot, var(--sun-400));
}
/* 점과 다음 점 사이만 잇는 점선 (마지막 점에서 끝남) */
.timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: -3px;
  left: -31px;
  width: 3px;
  border-radius: 3px;
  background: repeating-linear-gradient(180deg, var(--sun-500) 0 8px, transparent 8px 15px);
  transform-origin: top;
}
.timeline time {
  color: var(--leaf-800);
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.timeline h4 { font-size: 1.25rem; }
.timeline p { margin-top: 2px; color: var(--ink-800); }

@media (min-width: 900px) {
  .day-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
}

/* ---------- 13. 프로그램 ---------- */
.program-grid { display: grid; gap: 16px; }
.program {
  padding: 30px 24px;
  border-radius: var(--radius-l);
}
.program h3 { font-size: var(--step-2); }
.program > p { max-width: 34em; margin-top: 8px; color: var(--ink-800); }
.program--go { background: var(--cream-100); }
.program--senses { background: var(--leaf-100); }
.program__art { width: 150px; height: auto; margin-bottom: 14px; }

.senses { display: grid; gap: 14px; margin-top: 18px; }
.senses li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}
.senses svg { grid-row: span 2; width: 56px; height: 56px; }
.senses b {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}
.senses span { color: var(--ink-800); font-size: var(--step-small); line-height: 1.55; }

.program--more {
  border: 2px dashed var(--chip-line);
  background: transparent;
}
.program--more b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
}

@media (min-width: 900px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program--more { grid-column: 1 / -1; }
}

/* ---------- 14. 입소 안내 ---------- */
.admission__grid { display: grid; gap: 40px; }
.steps { display: grid; }
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
}
.step + .step { border-top: 1.5px dashed var(--cream-200); }
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sun-200);
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1;
}
.step h3 { padding-top: 6px; font-size: 1.375rem; line-height: 1.4; }
.step p { max-width: 34em; margin-top: 4px; color: var(--ink-800); }
.link-ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.link-ext .icon { width: 18px; height: 18px; }

.contact-card {
  padding: 30px 24px;
  border: 2px solid var(--sun-300);
  border-radius: var(--radius-l);
  background: #FFFFFF;
  box-shadow: var(--shadow-2);
}
.contact-card__title { font-size: var(--step-2); }
.contact-card__lead { margin-top: 6px; color: var(--ink-800); }
.contact-card__tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 10px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 8vw, 2.5rem);
  line-height: 1.2;
  text-decoration: none;
}
.contact-card__tel .icon { width: .8em; height: .8em; color: var(--leaf-800); }
.contact-card__tel:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.contact-card__list { margin-top: 12px; }
.contact-card__list div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 0;
  border-top: 1.5px dashed var(--cream-200);
}
.contact-card__list dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
}
.contact-card__list .icon { width: 20px; height: 20px; }
.contact-card__list dd { font-family: var(--font-display); }
.contact-card__verify { margin-top: 4px; }
.contact-card .btn { margin-top: 18px; }

@media (min-width: 1000px) {
  .admission__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 64px;
  }
  .contact-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    margin-top: 8px;
  }
}

/* ---------- 15. 오시는 길 ---------- */
.location__grid { display: grid; gap: 36px; }
.location__address {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.5;
}
.location__verify { margin-top: 6px; }
.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.location__actions .btn { flex: 1 1 auto; }
html:not(.js) [data-copy] { display: none; }
.copy-status {
  min-height: 1.75em;
  margin-top: 8px;
  color: var(--leaf-800);
  font-size: var(--step-small);
}
.location__info li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
}
.location__info li + li { border-top: 1.5px dashed var(--cream-200); }
.location__info .icon { width: 26px; height: 26px; margin-top: 3px; color: var(--leaf-800); }
.location__info b {
  margin-right: 6px;
  font-family: var(--font-display);
  font-weight: 400;
}
.map-placeholder__link {
  display: block;
  border-radius: 22px;
}
.map-placeholder svg { width: 100%; height: auto; }
.map-placeholder figcaption {
  margin-top: 10px;
  color: var(--ink-700);
  font-size: var(--step-small);
}

@media (min-width: 960px) {
  .location__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 64px;
  }
}

/* ---------- 16. 하단 ---------- */
.site-footer {
  --focus: var(--sun-400);
  position: relative;
  padding: 36px 0 calc(40px + var(--callbar-space));
  background: var(--ink-900);
  color: var(--cream-100);
}
.site-footer ::selection { background: var(--sun-400); color: var(--ink-900); }
/* 해가 언덕 너머로 지는 모습 (첫 화면의 해와 짝) */
.site-footer__sunset {
  position: absolute;
  right: 12%;
  bottom: 100%;
  width: 84px;
  height: 42px;
}
.site-footer__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: 40px;
}
.site-footer__inner { display: grid; gap: 24px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand .brand__mark { width: 44px; height: 44px; }
.site-footer__name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }
.site-footer__tagline { color: var(--ink-200); font-size: var(--step-small); }
.site-footer__contact { display: grid; gap: 2px; color: var(--ink-200); }
.site-footer a { color: var(--sun-400); }
.site-footer__tel { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__links { display: grid; gap: 8px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 48px; }
.site-footer__copy {
  padding-top: 20px;
  border-top: 1px solid rgb(255 245 225 / .18);
  color: var(--ink-200);
  font-size: 1rem;
}

@media (min-width: 900px) {
  .site-footer__sunset { width: 120px; height: 60px; }
  .site-footer__inner {
    grid-template-columns: 1.1fr 1.4fr 1fr;
    align-items: start;
    gap: 40px;
  }
  .site-footer__copy { grid-column: 1 / -1; }
}

/* ---------- 17. 모바일 전화 상담 고정 버튼 ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 251 243 / .96);
  box-shadow: 0 -12px 28px -18px rgb(58 44 30 / .5);
  transition: transform .4s var(--ease-out), visibility 0s linear 0s;
}
/* 첫 화면의 전화 버튼·상담 카드가 보이거나 메뉴가 열려 있으면 내려가 있음 (자바스크립트가 없으면 늘 보임) */
.js .callbar:not(.is-shown),
.site-header.is-open ~ .callbar {
  visibility: hidden;
  transform: translateY(calc(100% + 16px));
  transition: transform .3s ease-in, visibility 0s linear .3s;
}
.callbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 58px;
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--sun-400);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.3125rem;
  text-decoration: none;
  box-shadow: 0 8px 18px -10px rgb(122 74 0 / .55);
}
.callbar__btn .icon { width: 24px; height: 24px; }
.callbar__btn:active { background: var(--sun-500); }
.callbar__num { font-size: 1.0625rem; }

@media (min-width: 1080px) {
  .callbar { display: none; }
}

/* ---------- 18. 모션 (움직임 줄이기 설정이면 모두 꺼짐) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* 첫 화면 — 햇살 번짐 */
  .sun-glow { animation: glow-in 2.4s var(--ease-out) both, glow-breathe 7s ease-in-out 2.4s infinite alternate; }
  .sun-core { animation: core-in 1.6s var(--ease-out) both; }
  .sun-shine { animation: fade-in 1.2s ease .9s both; }
  .sun-rays { animation: spin 140s linear infinite; }
  .sun-rays line {
    animation: ray-draw 1.2s var(--ease-out) backwards;
    animation-delay: calc(.5s + var(--i) * 70ms);
  }
  .hero__sun > .sun-ring { animation: ring 8s var(--ease-out) 2.2s infinite; }
  .hero__sun > .sun-ring--late { animation-delay: 6.2s; }

  .hero__cloud { animation: drift 32s ease-in-out infinite alternate; }
  .hero__cloud--b { animation-duration: 26s; animation-delay: -9s; }
  .hero__cloud--c { animation-duration: 38s; animation-delay: -17s; }

  .hero__leaf { animation: float 11s ease-in-out infinite alternate; }
  .hero__leaf--2 { animation-duration: 9s; animation-delay: -3s; }
  .hero__leaf--3 { animation-duration: 13s; animation-delay: -6s; }
  .hero__leaf--4 { animation-duration: 14s; animation-delay: -2s; }

  /* 첫 화면이 화면 밖이면 잠시 멈춤 */
  .hero.is-paused,
  .hero.is-paused * { animation-play-state: paused !important; }

  /* 구역 나타남 */
  .motion-ok [data-reveal=""] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  .motion-ok [data-reveal=""]:not(.is-in) { opacity: 0; transform: translate3d(0, 22px, 0); }

  .motion-ok [data-reveal="group"] > * {
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .motion-ok [data-reveal="group"]:not(.is-in) > * { opacity: 0; transform: translate3d(0, 26px, 0); }

  /* 새싹 자람 */
  .motion-ok [data-reveal="grow"] .class-card__sprout {
    transform-origin: 50% 92%;
    transition: transform 1s var(--ease-out), opacity .5s ease;
    transition-delay: calc(var(--i, 0) * 120ms + 120ms);
  }
  .motion-ok [data-reveal="grow"]:not(.is-in) .class-card__sprout { opacity: 0; transform: scale(.35); }

  /* 해님 길: 점이 차례로 나타나고 점선이 다음 점까지 이어짐 */
  .motion-ok [data-reveal="day"] .timeline__item::after {
    transition: transform .6s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 150ms + 380ms);
  }
  .motion-ok [data-reveal="day"]:not(.is-in) .timeline__item::after { transform: scaleY(0); }
  .motion-ok [data-reveal="day"] .timeline__item {
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 150ms + 150ms);
  }
  .motion-ok [data-reveal="day"]:not(.is-in) .timeline__item { opacity: 0; transform: translate3d(-14px, 0, 0); }

  /* 카운트업 숫자는 세기 시작할 때 나타남 (기다리는 동안 다른 숫자가 보이지 않게) */
  .glance__num[data-count-to] { transition: opacity .3s ease; }
  .motion-ok .glance__num[data-count-to]:not(.is-counting) { opacity: 0; }

  /* 평가 A 도장 */
  .motion-ok .glance__grade:not(.is-stamped) { opacity: 0; }
  .glance__grade.is-stamped { animation: stamp .7s var(--ease-spring) both; }
}

/* '움직임 멈추기'를 누르면 첫 화면은 멈춘 그림으로 (다시 보기를 누르면 처음부터) */
.motion-paused .hero,
.motion-paused .hero * { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .callbar,
  .js .callbar:not(.is-shown),
  .site-header.is-open ~ .callbar { transition: none; }
}

@keyframes glow-in {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes glow-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
@keyframes core-in {
  from { transform: scale(.82); }
  to { transform: scale(1); }
}
@keyframes ray-draw {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes ring {
  0% { opacity: 0; transform: scale(1); }
  12% { opacity: .38; }
  100% { opacity: 0; transform: scale(1.85); }
}
@keyframes drift {
  from { transform: translate3d(-18px, 0, 0); }
  to { transform: translate3d(24px, 0, 0); }
}
@keyframes float {
  0% { transform: translate3d(0, 0, 0) rotate(-12deg); }
  50% { transform: translate3d(8px, -14px, 0) rotate(4deg); }
  100% { transform: translate3d(-6px, -6px, 0) rotate(12deg); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes stamp {
  from { opacity: 0; transform: scale(1.7) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(-6deg); }
}
