/* =====================================================================
   🎨 색깔 바꾸기 — 아래 # 뒤의 색 번호만 바꾸면 홈페이지 전체 색이 바뀝니다.
      색 번호 고르기: 인터넷에서 "color picker" 검색
   ===================================================================== */
:root {
  --main: #2a9aa6;        /* 대표 색 (단추, 강조) — 로고의 청록 */
  --main-soft: #e3f1ee;   /* 대표 색의 연한 바탕 */
  --point: #c08457;       /* 포인트 색 (작은 영어 제목, 서명, 시간표 점) — 카라멜 */
  --deep: #5a4232;        /* 진한 단추 색 (맨 위 「입소 상담」) — 짙은 갈색 */
  --bg: #f8f1e4;          /* 홈페이지 바탕 — 모래색 */
  --bg-alt: #f0e2c8;      /* 번갈아 나오는 둥근 칸의 바탕 — 꿀색 */
  --text: #4b3a2c;        /* 글자 색 — 따뜻한 갈색 */
  --text-soft: #86735f;   /* 흐린 글자 색 */
  --card: #fffaf2;        /* 카드 바탕 — 크림색 */
  --line: #eadbc2;        /* 얇은 선 색 */
}

/* ---------- 아래는 고치지 않아도 됩니다 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.85; word-break: keep-all; font-size: 17px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* 작은 영어 제목 (예: 01 · our day) */
.eyebrow { display: block; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 18px; letter-spacing: .04em; color: var(--point); }

/* 머리 (메뉴) */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(248,241,228,.92); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px);
}
header .wrap { max-width: 1280px; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { line-height: 1.25; color: var(--text); }
.brand-name small { display: block; font-size: 12px; color: var(--text-soft); }
.brand-name b { font-weight: 400; font-size: 20px; letter-spacing: .02em; }
nav { order: 2; margin-left: auto; }
nav ul { display: flex; gap: 2px; list-style: none; }
nav a { display: block; padding: 8px 8px; border-radius: 99px; color: var(--text); font-size: 15px; white-space: nowrap; transition: background .2s, color .2s; }
nav a:hover { background: var(--bg-alt); }
.head-cta { order: 3; flex-shrink: 0; padding: 10px 20px; border-radius: 99px; background: var(--deep); color: #fff; font-size: 15px; white-space: nowrap; transition: transform .2s; }
.head-cta:hover { transform: translateY(-2px); }
.head-music { order: 3; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--text); font: inherit; font-size: 14.5px; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.head-music:hover { border-color: var(--point); }
.head-music.on { background: var(--main-soft); border-color: var(--main); color: var(--main); }
.head-music .note { display: inline-block; }
.head-music.on .note { animation: noteBob 1.2s ease-in-out infinite; }
.head-music { position: relative; }
.head-music.on[data-now]::after { content: attr(data-now); position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; padding: 2px 10px; border-radius: 99px; background: var(--deep); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; }
@keyframes noteBob { 50% { transform: translateY(-3px) rotate(-8deg); } }
.menu-btn { order: 4; display: none; background: none; border: 0; font-size: 26px; color: var(--text); cursor: pointer; width: 44px; height: 44px; }

/* 맨 위 큰 사진 */
.hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 104px 0 170px; text-align: center; }
/* 계절 사진이 첫 화면 전체를 채웁니다 */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; transform: scale(1.03); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
/* 계절 사진: 은은한 색감으로 낮추고, 천천히 겹쳐 바뀝니다 */
.bg-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; filter: saturate(.7) brightness(1.06) sepia(.1); }
.bg-slide.on { opacity: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(248,241,228,.22); pointer-events: none; }
/* 어린이집 앞마당에 서 있는 다솜이 캐릭터들 (자리는 app.js 의 spots) */
.walker { position: absolute; transition: left 3s ease-in-out, bottom 3s ease-in-out, height 3s ease-in-out; }
.walker img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 8px 8px rgba(60,40,20,.25)); }
.walker.moving img { animation: hop .45s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateY(-6%); } }
.hero .wrap { position: relative; z-index: 2; width: min(520px, 90vw); padding: 22px 30px 24px; border-radius: 32px; background: rgba(255,250,242,.84); backdrop-filter: blur(6px); box-shadow: 0 16px 40px rgba(60,40,20,.14); color: var(--text); }
.hero-en { font-size: 13px; letter-spacing: .35em; color: var(--point); margin-bottom: 14px; }
.hero h1 { font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -.01em; white-space: pre-line; color: var(--text); }
.hero p { margin-top: 6px; font-size: clamp(15px, 1.6vw, 18px); white-space: pre-line; color: var(--text-soft); }
.hero-btns { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
/* 맨 위 한눈에 보기 (연령·운영시간·위치 등) */
.hero .scroll-hint { display: none; }
.facts { position: absolute; z-index: 2; left: 2vw; right: 2vw; bottom: 22px; max-width: 1240px; margin: 0 auto; display: flex; background: var(--card); border-radius: 28px; box-shadow: 0 10px 30px rgba(90,66,50,.08); text-align: center; }
.fact { flex: 1 1 auto; padding: 22px 26px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact small { display: block; font-size: 13px; color: var(--point); }
.fact b { display: block; margin-top: 4px; font-weight: 400; font-size: 19px; line-height: 1.4; white-space: pre-line; }
.fact span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-soft); line-height: 1.5; }
.fact-img { width: 130px; margin: 10px auto 0; }

/* 떠다니는 상담 로고 */
.float-logo { position: absolute; width: 110px; height: 110px; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; animation: floaty 4s ease-in-out infinite; }
.chat { position: absolute; bottom: 14%; right: 9%; z-index: 3; }
.chat-toggle { position: relative; display: block; background: none; border: 0; padding: 0; cursor: grab; touch-action: none; }
.chat .float-logo { position: static; width: 112px; height: 112px; pointer-events: auto; animation-delay: -2s; filter: drop-shadow(0 0 8px rgba(42,154,166,.45)); }
.spark { position: absolute; z-index: 3; color: var(--point); font-size: 18px; pointer-events: none; animation: sparkle .9s ease-out forwards; }
@keyframes sparkle { 0% { opacity: 1; transform: scale(.4) rotate(0deg); } 100% { opacity: 0; transform: scale(1.3) rotate(120deg) translateY(-18px); } }
.chat-close { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--card); color: var(--text-soft); font-size: 13px; line-height: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.chat-close:hover { color: var(--main); }
.chat-qa { position: absolute; top: -12px; left: -30px; padding: 4px 12px; white-space: nowrap; border-radius: 99px; background: var(--deep); color: #fff; font-size: 15px; line-height: 1.4; box-shadow: 0 3px 10px rgba(0,0,0,.15); pointer-events: none; animation: floaty 4s ease-in-out infinite; animation-delay: -2s; }
.chat-qa::after { content: ""; position: absolute; right: 10px; bottom: -6px; border: 6px solid transparent; border-top-color: var(--deep); border-bottom: 0; }
.chat-restore { position: fixed; right: 16px; bottom: 16px; z-index: 60; padding: 10px 16px; border: 0; border-radius: 99px; background: var(--deep); color: #fff; font-size: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.15); cursor: pointer; }
.chat-menu { display: none; position: absolute; right: 0; bottom: 128px; min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: 0 12px 30px rgba(90,66,50,.14); }
.chat.open .chat-menu { display: block; }
.chat-menu a { display: block; padding: 10px 14px; border-radius: 12px; font-size: 15px; white-space: nowrap; }
.chat-menu a:hover { background: var(--bg-alt); }
.chat-ico { width: 22px; height: 22px; margin-right: 8px; vertical-align: middle; display: inline-block; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(4deg); } }

/* 단추 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 13px 28px; border-radius: 99px; font-size: 16.5px; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(90,66,50,.16); }
.btn-main { background: var(--main); color: #fff; }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--text-soft); display: grid; place-items: center; font-size: 20px; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* 공통 칸 — 번갈아 가며 둥근 꿀색 칸이 됩니다 */
section.block { padding: 120px 0; }
section.block:nth-of-type(even) { background: var(--bg-alt); border-radius: 56px; margin: 0 12px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.sec-head h2 { margin-top: 6px; font-weight: 400; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.35; letter-spacing: -.01em; color: var(--text); }
.sec-head p { margin-top: 16px; max-width: 620px; color: var(--text-soft); white-space: pre-line; }
.sec-head .mascot { flex-shrink: 0; width: 130px; }

/* 나타나기 효과 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.on { opacity: 1; transform: none; }

/* 우리의 하루 */
.day-photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.day-photos img { width: 100%; height: 440px; object-fit: cover; border-radius: 28px; }
.day-photos img:only-child { grid-column: 1 / -1; height: 480px; }
.day-photos img:nth-child(2) { margin-top: 60px; height: 360px; }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 28px; }
.badge { background: var(--card); padding: 18px 22px; border-radius: 20px; font-size: 16.5px; text-align: center; }
/* 우리의 하루 — 시간 순서 장면 카드 (옆으로 넘겨 보기) */
.moments { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; }
.moments::-webkit-scrollbar { height: 8px; }
.moments::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.moment { flex: 0 0 270px; scroll-snap-align: start; background: var(--card); border-radius: 26px; overflow: hidden; }
.moment-img { aspect-ratio: 8 / 5; background: var(--bg); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.moment-img img { width: 100%; height: 100%; object-fit: cover; }
.moment-img.is-char img { width: auto; height: 90%; object-fit: contain; }
.moment-body { padding: 16px 20px 22px; }
.moment-time { display: block; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 19px; color: var(--point); }
.moment-body b { display: block; margin-top: 2px; font-weight: 400; font-size: 18px; }
.moment-body p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--text-soft); }
.moments-hint { margin-top: 6px; text-align: center; font-size: 13.5px; color: var(--text-soft); }
.gallery-btns { display: flex; justify-content: flex-start; margin-bottom: 30px; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; justify-items: center; }

/* 소개 — 사진 액자 + 편지 카드 */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.about-photo { background: #fff; padding: 12px 12px 14px; border-radius: 18px; box-shadow: 0 18px 40px rgba(90,66,50,.16); rotate: -2deg; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.about-photo figcaption { padding-top: 10px; text-align: center; font-size: 16px; letter-spacing: .05em; color: var(--text-soft); }
.letter { background: var(--card); border-radius: 32px; padding: 44px 44px 36px; }
.letter h3 { font-weight: 400; font-size: clamp(21px, 2.4vw, 25px); line-height: 1.55; white-space: pre-line; }
.letter .greet { margin-top: 18px; color: var(--text-soft); white-space: pre-line; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.promise { background: var(--bg); border-radius: 18px; padding: 14px 10px; text-align: center; line-height: 1.5; }
.promise small { display: block; font-size: 13.5px; color: var(--main); }
.promise b { font-weight: 400; font-size: 15.5px; }
.letter .sign { margin-top: 26px; text-align: right; font-size: 19px; color: var(--point); }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 40px; }
.hl { background: var(--card); border-radius: 22px; padding: 20px 24px; }
.hl b { display: block; font-weight: 400; font-size: 21px; }
.hl span { font-size: 14px; color: var(--text-soft); }

/* 교육 이야기 */
.quote { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.6; color: var(--text); max-width: 820px; }
.quote::before, .quote::after { color: var(--point); }
.quote::before { content: "“ "; } .quote::after { content: " ”"; }
.edu-text { color: var(--text-soft); max-width: 720px; margin: 14px 0 48px; }
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prog { background: var(--card); border-radius: 28px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.prog:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(90,66,50,.10); }
.prog-img { height: 170px; background: var(--bg-alt); display: grid; place-items: center; font-size: 60px; }
.prog-img img { width: 100%; height: 100%; object-fit: cover; }
.prog-body { padding: 22px 24px 26px; }
.prog-num { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 16px; color: var(--point); }
.prog-body h4 { font-weight: 400; font-size: 20px; line-height: 1.45; }
.prog-body p { margin-top: 8px; font-size: 15px; color: var(--text-soft); }

/* 하루 일과 */
.routine { max-width: 760px; position: relative; }
.routine::before { content: ""; position: absolute; left: 92px; top: 14px; bottom: 14px; width: 1px; background: var(--point); opacity: .4; }
.r-item { display: grid; grid-template-columns: 76px 32px 1fr; align-items: start; gap: 0; padding: 10px 0; }
.r-time { font-size: 18px; color: var(--point); text-align: right; padding-right: 4px; }
.r-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--point); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--point); margin: 9px auto 0; position: relative; z-index: 1; }
section.block:nth-of-type(even) .r-dot { border-color: var(--bg-alt); }
.r-body { background: var(--card); border-radius: 20px; padding: 14px 22px; margin-left: 8px; }
.r-body b { font-weight: 400; font-size: 18px; }
.r-body p { font-size: 15px; color: var(--text-soft); }

/* 오늘의 풍경 */
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.story { background: var(--card); border-radius: 24px; overflow: hidden; cursor: zoom-in; }
.story img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.story:hover img { transform: scale(1.05); }
.story p { padding: 16px 20px; font-size: 16px; }
.more { margin-top: 40px; }

/* 공지사항 */
.notices { list-style: none; max-width: 820px; background: var(--card); border-radius: 28px; padding: 8px 28px; }
.notices li + li { border-top: 1px solid var(--line); }
.notices a, .notices li > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; }
.notices a:hover span { color: var(--main); }
.notices span { font-size: 17px; }
.notices small { flex-shrink: 0; color: var(--text-soft); font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(40,30,22,.88); display: none; align-items: center; justify-content: flex-start; flex-direction: column; padding: 24px 16px; overflow-y: auto; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { width: min(900px, 100%); margin: auto 0 0; border-radius: 12px; }
.lightbox p { margin-bottom: auto; }
.lightbox p { color: #fff; margin-top: 14px; font-size: 18px; }

/* 입학 안내 */
.enroll { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.enroll-video { margin: 0 auto 28px; max-width: 880px; background: var(--card); border-radius: 28px; overflow: hidden; }
.enroll-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.enroll-video figcaption { padding: 16px 22px 18px; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.enroll-video figcaption b { font-size: 18px; }
.enroll-video figcaption span { font-size: 15px; opacity: .8; line-height: 1.6; }
.e-card { background: var(--card); border-radius: 28px; padding: 34px; }
.e-card h4 { font-weight: 400; font-size: 21px; margin-bottom: 14px; }
.e-card h4::before { content: "— "; color: var(--point); }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours div:last-child { border: 0; }
.hours span { color: var(--text-soft); }
.hours b { font-weight: 400; }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.step { background: var(--main-soft); color: var(--main); padding: 8px 16px; border-radius: 99px; font-size: 15px; }
.arrow { color: var(--point); }
.e-note { margin-top: 18px; color: var(--text-soft); font-size: 15px; white-space: pre-line; }
.call { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 오시는 길 */
.loc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch; }
.map { border-radius: 28px; overflow: hidden; min-height: 340px; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.loc-info { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.loc-row { background: var(--card); border-radius: 20px; padding: 18px 22px; }
.loc-row small { color: var(--point); display: block; font-size: 13.5px; }
.loc-row b { font-weight: 400; font-size: 18px; }
.loc-detail { display: block; margin-top: 2px; font-size: 15px; color: var(--text-soft); }
.map-links { display: flex; gap: 8px; flex-wrap: wrap; }
.map-links a { font-size: 14.5px; padding: 9px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.map-links a:hover { border-color: var(--point); }

/* 맨 아래 */
footer { margin-top: 80px; background: #3e3027; color: #e3d6c4; padding: 56px 0 44px; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer b { font-weight: 400; font-size: 21px; color: #fff; }
.f-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.f-links a { padding: 8px 16px; border: 1px solid #6b5a4b; border-radius: 99px; }
.f-links a:hover { background: #54443a; }
.copy { margin-top: 10px; opacity: .6; font-size: 13px; }


/* 우리 반 소개 */
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.class-card { background: var(--card); border-radius: 28px; padding: 30px 28px; text-align: center; }
.class-card small { display: block; font-size: 15px; letter-spacing: .05em; color: var(--point); }
.class-card b { display: block; margin-top: 4px; font-weight: 400; font-size: 23px; }
.class-card span { display: block; margin-top: 8px; font-size: 15px; color: var(--text-soft); }
.classes-note { margin-top: 24px; text-align: center; color: var(--text-soft); font-size: 15.5px; }

/* 건강 · 안전 */
.care { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.care-card { background: var(--card); border-radius: 28px; padding: 30px 20px; text-align: center; }
.care-icon { margin: 0 auto; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; font-size: 26px; }
.care-card h4 { margin-top: 14px; font-weight: 400; font-size: 20px; }
.care-card p { margin-top: 8px; font-size: 15px; line-height: 1.8; color: var(--text-soft); white-space: pre-line; }
#care .sec-head { justify-content: center; text-align: center; }
#care .sec-head p { margin-left: auto; margin-right: auto; }

/* 입학 안내: 적응 프로그램 · 부탁 말씀 */
.adapt { list-style: none; counter-reset: a; }
.adapt li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.adapt li:last-child { border: 0; }
.adapt b { flex-shrink: 0; min-width: 76px; font-weight: 400; color: var(--main); }
.requests { list-style: none; }
.requests li { position: relative; padding: 7px 0 7px 22px; font-size: 15.5px; }
.requests li::before { content: "♡"; position: absolute; left: 0; color: var(--point); }


/* 우리 반 사진 · 함께 쓰는 공간 */
.class-card { padding: 0; overflow: hidden; }
.class-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.class-body { padding: 20px 16px 24px; }
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.space { margin: 0; position: relative; border-radius: 24px; overflow: hidden; cursor: zoom-in; }
.space img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.space:hover img { transform: scale(1.04); }
.space figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 14px; border-radius: 99px; background: rgba(255,250,242,.92); font-size: 14.5px; }

/* 놀이 이야기: 소식지 · 영상 */
.stories { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.story img { aspect-ratio: 3 / 4; object-position: top; }
.story p { padding: 12px 16px; font-size: 14.5px; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.video { margin: 0; background: var(--card); border-radius: 24px; overflow: hidden; }
.video video { display: block; width: 100%; aspect-ratio: 4 / 3; background: #000; object-fit: cover; }
.video video.crop { object-position: 50% 46%; }
.video figcaption { padding: 12px 18px; font-size: 15px; }

/* 휴대폰 화면 */
@media (max-width: 1300px) {
  .menu-btn { display: block; }
  nav { position: fixed; top: 76px; left: 0; right: 0; margin: 0; background: var(--bg); box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 10px 16px 18px; gap: 2px; }
  nav a { padding: 12px 14px; }
  .head-music { margin-left: auto; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  section.block { padding: 80px 0; }
  section.block:nth-of-type(even) { border-radius: 36px; margin: 0 8px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head .mascot { width: 90px; }
  .day-photos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .day-photos img, .day-photos img:only-child { height: 260px; border-radius: 22px; }
  .day-photos img:nth-child(2) { margin-top: 30px; height: 200px; }
  .about, .enroll, .loc { grid-template-columns: 1fr; gap: 36px; }
  .enroll { gap: 20px; }
  .programs { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stories { grid-template-columns: repeat(3, 1fr); }
  .about-photo { max-width: 560px; margin: 0 auto; }
  .letter { padding: 30px 24px 26px; border-radius: 26px; }
  .promise { padding: 12px 6px; }
  .promise b { font-size: 14px; }
  .hero { padding-bottom: 60px; }
  .facts { position: relative; left: auto; right: auto; bottom: auto; width: 92vw; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 40px; background: var(--line); overflow: hidden; }
  .fact { background: var(--card); }
  .fact:nth-child(n+3) { grid-column: 1 / -1; }
  .fact { padding: 18px 18px; }
  .fact + .fact { border-left: 0; }
  .fact b { font-size: 16.5px; }
  .routine::before { left: 74px; }
  .r-item { grid-template-columns: 58px 32px 1fr; }
  .r-time { font-size: 16px; }
  .e-card { padding: 26px 22px; }
}
@media (max-width: 640px) {
  .head-music { padding: 8px 11px; }
  .head-music .txt { display: none; }
  .programs { grid-template-columns: 1fr; }
  .classes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .class-card { border-radius: 22px; }
  .class-body { padding: 14px 10px 18px; }
  .spaces { grid-template-columns: 1fr; }
  .stories { grid-template-columns: 1fr 1fr; gap: 12px; }
  .class-card b { font-size: 20px; }
  .head-cta { padding: 8px 11px; font-size: 13.5px; }
  header .wrap { gap: 6px; padding: 0 14px; }
  .brand { gap: 8px; }
  .brand-name b { font-size: 16px; }
  .brand-logo { width: 40px; height: 40px; }
  .menu-btn { flex-shrink: 0; width: 40px; }
  .walker { transform: scale(.6); transform-origin: bottom left; }
  .walker.m-hide { display: none; }
  .hero .wrap { padding: 26px 22px 28px; }
  .chat { right: 4%; bottom: 8%; }
  .chat .float-logo { width: 80px; height: 80px; }
  .chat-menu { bottom: 96px; }
  .chat-qa { font-size: 13px; padding: 3px 9px; }
}

/* 오시는 길: 네이버 지도 단추를 먼저, 진하게 */
.map-links a.naver { background: #03c75a; border-color: #03c75a; color: #fff; }
#naverMap { min-height: 340px; }

/* 교육 이야기: 캐릭터 그림을 잘리지 않게 */
.prog-img { height: 210px; background: var(--bg); }
.prog-img img { object-fit: contain; padding: 10px; }

/* 놀이 이야기: 반별 놀이 주제 카드 */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.theme { background: var(--card); border-radius: 26px; overflow: hidden; }
.theme-img { height: 170px; background: var(--bg); display: flex; align-items: flex-end; justify-content: center; }
.theme-img img { height: 92%; width: auto; }
.theme-body { padding: 18px 22px 24px; }
.theme-body small { display: block; font-size: 14px; color: var(--point); }
.theme-body em { float: right; font-style: normal; color: var(--text-soft); }
.theme-body b { display: block; margin-top: 4px; font-weight: 400; font-size: 19px; line-height: 1.45; }
.theme-body p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--text-soft); }

/* 오시는 길: 지도를 제목 바로 아래 크게 */
.loc.map-first { grid-template-columns: 1fr; }
.loc.map-first .map, .loc.map-first .map iframe, .loc.map-first #naverMap { min-height: 420px; }
.loc.map-first .loc-info { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px; }
@media (max-width: 860px) { .loc.map-first .loc-info { grid-template-columns: 1fr; } .loc.map-first .map, .loc.map-first .map iframe { min-height: 300px; } }

/* 교육 이야기: 그림은 위 칸 안에만, 글씨는 아래 칸에 따로 */
.prog-img { height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px; border-bottom: 1px solid var(--line); }
.prog-img img { width: auto; height: 100%; max-width: 100%; object-fit: contain; padding: 0; }
.prog-body { position: relative; background: var(--card); }
@media (max-width: 640px) {
  .prog-img { height: 160px; } }

/* 놀이 이야기: 주제 그림이 천천히 살랑이며 움직여요 */
.theme-img { height: 210px; background: #fdf8ee; overflow: hidden; align-items: center; }
.theme-img img { width: 100%; height: 100%; object-fit: cover; animation: themeMove 7s ease-in-out infinite alternate; transform-origin: 50% 60%; }
.theme:nth-child(2) .theme-img img { animation-delay: -2s; }
.theme:nth-child(3) .theme-img img { animation-delay: -4s; }
.theme:nth-child(4) .theme-img img { animation-delay: -6s; }
@keyframes themeMove { 0% { transform: scale(1) translate(0, 0) rotate(0deg); } 50% { transform: scale(1.06) translate(-1.5%, -2%) rotate(.6deg); } 100% { transform: scale(1.1) translate(1.5%, -1%) rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .theme-img img { animation: none; } }

/* 오시는 길: 왼쪽 정보 카드 + 오른쪽 지도 */
#location .loc { grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
#location .loc-info { gap: 14px; justify-content: flex-start; }
#location .loc-row { display: flex; gap: 18px; align-items: flex-start; padding: 22px 26px; border-radius: 24px; background: var(--card); box-shadow: 0 4px 16px rgba(90,66,50,.06); }
#location .loc-row:nth-child(n) { background: var(--card); }
.loc-ico { flex-shrink: 0; color: var(--text); margin-top: 2px; }
#location .loc-row small { color: var(--text-soft); }
#location .loc-row b { font-size: 18px; }
.loc-tel { display: block; font-size: 19px; color: var(--main); }
.loc-link { display: inline-block; margin-top: 2px; font-size: 18px; color: var(--main); }
#location .map-links { gap: 12px; margin-top: 6px; }
#location .map-links a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border: 0; border-radius: 99px; font-size: 16px; }
#location .map-links a.kakao { background: #fee500; color: #3c1e1e; }
#location .map-links a.naver { background: #03c75a; color: #fff; }
#location .map { border-radius: 28px; min-height: 460px; box-shadow: 0 6px 20px rgba(90,66,50,.10); }
#location .map iframe { min-height: 460px; }
@media (max-width: 860px) { #location .loc { grid-template-columns: 1fr; } #location .map, #location .map iframe { min-height: 320px; } }

/* 놀이 이야기 (다시 구성): 큰 그림 카드 2줄, 그림은 잘리지 않게 전체로 */
.themes { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.theme { display: flex; flex-direction: column; border-radius: 30px; box-shadow: 0 6px 22px rgba(90,66,50,.07); }
.theme-img { height: auto; aspect-ratio: 4 / 3; background: #fdf8ee; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.theme-img img { width: 100%; height: 100%; object-fit: contain; animation: themeFloat 5s ease-in-out infinite alternate; transform-origin: 50% 80%; }
@keyframes themeFloat { from { transform: translateY(0) scale(1); } to { transform: translateY(-3%) scale(1.03); } }
.theme-body { padding: 22px 28px 28px; }
.theme-body b { font-size: 21px; }
@media (max-width: 760px) { .themes { grid-template-columns: 1fr; } }

/* 오시는 길: 운영 시간 줄바꿈, 카카오톡 QR */
#location .loc-row b { white-space: pre-line; }
.loc-grow { flex: 1; }
.loc-qr { flex-shrink: 0; width: 104px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.loc-qr img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 42%; transform: scale(1.75); }

/* 오시는 길: 지도 뒤 안내 카드 (지도가 안 뜨면 이 카드가 보여요) */
#location .map { position: relative; background: linear-gradient(135deg, #e7f1ea 0%, #f6efe0 100%); }
#location .map iframe { position: relative; z-index: 1; width: 100%; height: 100%; display: block; background: transparent; }
.map-fallback { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 24px; color: var(--text);
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 38px 38px; }
.mf-pin { width: 64px; height: 64px; border-radius: 50%; background: #03c75a; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(3,199,90,.3); }
.map-fallback b { margin-top: 8px; font-weight: 400; font-size: 21px; }
.map-fallback span { font-size: 15px; color: var(--text-soft); }
.map-fallback em { margin-top: 10px; font-style: normal; padding: 10px 20px; border-radius: 99px; background: #03c75a; color: #fff; font-size: 15px; }
#naverMap { position: absolute; inset: 0; z-index: 1; }
.hero-btns:empty { display: none; }
