/* 콩새마당 어린이집 — N17 카드 스택 */
:root {
  --milk: #FBF7EF;
  --ink: #2F3A2C;
  --ink-soft: #5B6556;
  --line: #E2DACB;
  --leaf: #E4ECD3;
  --apricot: #F5DCC8;
  --butter: #F2E6B6;
  --water: #D8E5E8;
  --brick: #B9502F;
  --hd: 64px;
  --step: 27px;
  --head: 'Gaegu', 'Gowun Dodum', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); }
body { margin: 0; background: var(--milk); color: var(--ink); font: 16px/1.75 'Gowun Dodum', -apple-system, 'Malgun Gothic', sans-serif; word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.5px; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 헤더 */
.hd { position: sticky; top: 0; z-index: 40; height: var(--hd); background: rgba(251,247,239,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.hd__in { max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 32px; }
.hd__brand { font-family: var(--head); font-size: 28px; text-decoration: none; line-height: 1; }
.hd__brand span { font-family: 'Gowun Dodum', sans-serif; font-size: 13px; margin-left: 6px; color: var(--ink-soft); }
.hd__nav { display: flex; gap: 22px; font-size: 15px; }
.hd__nav a { text-decoration: none; color: var(--ink-soft); }
.hd__nav a:hover { color: var(--brick); }
.hd__tel { margin-left: auto; text-decoration: none; font-weight: 700; font-size: 17px; display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.hd__tel small { font-size: 11.5px; font-weight: 400; color: var(--ink-soft); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 15px; background: transparent; }
.btn:hover { background: var(--ink); color: var(--milk); }
.btn--solid { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

/* 짧은 소개 */
.intro { max-width: 1120px; margin: 0 auto; padding: 52px 28px 40px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.intro__eyebrow { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.intro h1 { font-size: 58px; line-height: 1.12; }
.intro__lead { margin: 20px 0 16px; max-width: 34em; font-size: 17px; color: var(--ink-soft); }
.intro__hours { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.open { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--leaf); color: var(--ink); font-weight: 700; }
.open.is-on::before { content: '지금 운영 중 · '; color: #3F6B2C; }
.open.is-off::before { content: '지금은 운영 시간 아님 · '; color: var(--brick); }
.intro__index { border-top: 2px solid var(--ink); padding-top: 14px; }
.intro__index-h { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); }
.intro__index-h b { color: var(--ink); }
.intro__index ol { list-style: none; margin: 0 0 18px; padding: 0; }
.intro__index li { border-bottom: 1px dashed var(--line); }
.intro__index li a { display: flex; gap: 12px; padding: 9px 0; text-decoration: none; font-size: 16.5px; }
.intro__index li a:hover { color: var(--brick); }
.intro__index i { font-style: normal; font-family: var(--head); font-size: 19px; color: var(--brick); width: 26px; }

/* 카드 스택 — 카드마다 sticky, top을 27px씩 늘려 쌓인다 */
.stack { max-width: 1120px; margin: 0 auto; padding: 8px 28px 80px; }
.card { position: sticky; top: calc(var(--hd) + 18px); margin-bottom: 44px; border-radius: 22px; border: 1.5px solid rgba(47,58,44,.18); box-shadow: 0 -6px 18px rgba(47,58,44,.06); overflow: hidden; }
.card--1 { background: var(--leaf); }
.card--2 { background: var(--apricot); top: calc(var(--hd) + 18px + var(--step)); }
.card--3 { background: var(--butter); top: calc(var(--hd) + 18px + var(--step) * 2); }
.card--4 { background: var(--water); top: calc(var(--hd) + 18px + var(--step) * 3); margin-bottom: 0; }
.card__tab { margin: 0; height: var(--step); padding: 0 24px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.card__tab i { font-style: normal; font-family: var(--head); font-size: 17px; color: var(--ink); }
.card__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; padding: 6px 24px 26px; align-items: center; }
.card__body img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 14px; }
.card__text h3 { font-size: 32px; line-height: 1.25; margin-bottom: 12px; }
.card__text > p { margin: 0 0 16px; }
.facts { margin: 0 0 14px; padding: 0; border-top: 1px solid rgba(47,58,44,.22); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(47,58,44,.22); font-size: 15px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.card__note { font-size: 13px !important; color: var(--ink-soft); margin: -4px 0 14px !important; }
.card .btn { background: rgba(255,255,255,.55); }
.card .btn:hover { background: var(--ink); color: var(--milk); }

/* 상담·견학 */
.visit { max-width: 1120px; margin: 0 auto; padding: 72px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; background: linear-gradient(var(--ink), var(--ink)) 28px 0 / calc(100% - 56px) 2px no-repeat; }
.visit h2 { font-size: 44px; line-height: 1.15; }
.visit__lead p { color: var(--ink-soft); max-width: 30em; }
.visit__tel { display: block; margin: 18px 0 20px; font-family: var(--head); font-size: 54px; line-height: 1; text-decoration: none; color: var(--brick); }
.visit__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.visit__info h3 { font-size: 24px; margin: 0 0 8px; }
.visit__info h3 + .addr { margin-top: 0; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours th { color: var(--ink-soft); width: 42%; }
.addr { margin: 0 0 8px; font-weight: 700; }
.copy { margin-left: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 400; cursor: pointer; }
.way { margin: 0 0 18px; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }

/* 하루 일과 + 소식 */
.duo { max-width: 1120px; margin: 0 auto; padding: 64px 28px 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; background: linear-gradient(var(--line), var(--line)) 28px 0 / calc(100% - 56px) 1px no-repeat; }
.duo h2 { font-size: 34px; margin-bottom: 6px; }
.day__sub { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.day__t { width: 100%; border-collapse: collapse; }
.day__t th { width: 70px; padding: 8px 0; text-align: left; font-family: var(--head); font-size: 19px; color: var(--brick); vertical-align: top; }
.day__t td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.news__list { list-style: none; margin: 14px 0 18px; padding: 0; }
.news__list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news__list time { grid-row: span 2; font-size: 14px; color: var(--ink-soft); padding-top: 2px; }
.news__list a { text-decoration: none; font-weight: 700; }
.news__list a:hover { color: var(--brick); }
.news__list span { font-size: 14px; color: var(--ink-soft); }
.news__off { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 10px; background: var(--apricot); font-size: 14.5px; }

/* 푸터 */
.ft { background: var(--ink); color: #E9E4D6; }
.ft__in { max-width: 1120px; margin: 0 auto; padding: 40px 28px 48px; font-size: 14px; }
.ft__in p { margin: 0 0 4px; }
.ft__brand { font-family: var(--head); font-size: 26px; color: #fff; margin-bottom: 10px !important; }
.ft__small { opacity: .65; margin-top: 10px !important; }

/* 퀵메뉴 — PC 오른쪽 세로 */
.quick { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; width: 82px; background: var(--milk); border: 1.5px solid var(--ink); border-radius: 16px; overflow: hidden; }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 7px 4px; text-decoration: none; text-align: center; border-top: 1px solid var(--line); line-height: 1.25; }
.quick a:first-child { border-top: 0; }
.quick b { font-size: 14px; }
.quick span { font-size: 10.5px; color: var(--ink-soft); }
.quick__tel { background: var(--brick); color: #fff; }
.quick__tel span { color: #FCE7DC; }
.quick a:not(.quick__tel):hover { background: var(--leaf); }
.quick__top { min-height: 40px !important; }

/* 화면 폭 */
@media (max-width: 1240px) { .quick { right: 8px; width: 72px; } .stack, .intro, .visit, .duo, .hd__in { padding-right: 96px; } .visit { background-size: calc(100% - 124px) 2px; } .duo { background-size: calc(100% - 124px) 1px; } }
@media (max-width: 980px) {
  .hd__nav { display: none; }
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .card__text h3 { font-size: 27px; }
  .visit, .duo { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 720px) {
  :root { --hd: 56px; --step: 10px; }
  .stack, .intro, .visit, .duo, .hd__in { padding-left: 16px; padding-right: 16px; }
  .hd__in { gap: 12px; }
  .hd__brand { font-size: 25px; }
  .hd__tel { font-size: 15.5px; }
  .intro { padding-top: 32px; padding-bottom: 28px; }
  .intro h1 { font-size: 40px; }
  .intro__lead { font-size: 16px; margin: 14px 0 12px; }
  .intro { gap: 20px; }
  .intro__index { border-top: 0; padding-top: 0; }
  .intro__index-h, .intro__index ol { display: none; }
  .intro__index .btn { width: 100%; }
  .stack { padding-bottom: 72px; }
  .card { top: 60px; margin-bottom: 24px; border-radius: 18px; }
  .card--2 { top: 70px; } .card--3 { top: 80px; } .card--4 { top: 90px; }
  .card__tab { height: 34px; padding: 0 16px; font-size: 13px; }
  .card__body { grid-template-columns: 1fr; gap: 14px; padding: 0 16px 18px; }
  .card__body img { aspect-ratio: 16 / 9; border-radius: 12px; }
  .card__text h3 { font-size: 24px; margin-bottom: 8px; }
  .card__text > p { font-size: 15px; line-height: 1.65; margin-bottom: 12px; }
  .facts div { font-size: 14px; padding: 6px 0; }
  .card .btn { width: 100%; }
  .visit { padding-top: 52px; padding-bottom: 52px; background-size: calc(100% - 32px) 2px; background-position: 16px 0; }
  .visit h2 { font-size: 36px; }
  .visit__tel { font-size: 44px; }
  .visit__btns .btn { flex: 1 1 auto; }
  .duo { padding-top: 48px; padding-bottom: 56px; background-size: calc(100% - 32px) 1px; background-position: 16px 0; }
  .news__list li { grid-template-columns: 1fr; }
  .news__list time { grid-row: auto; }
  .ft__in { padding: 32px 16px calc(96px + env(safe-area-inset-bottom)); }
  .quick { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: auto; flex-direction: row; border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  .quick a { flex: 1; min-height: 58px; border-top: 0; border-left: 1px solid var(--line); }
  .quick a:first-child { border-left: 0; }
  .quick__pc { display: none !important; }
}

/* 움직임 줄이기 — 쌓임 없이 차례로 놓인 정지 화면 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card--2, .card--3, .card--4 { position: static; margin-bottom: 24px; box-shadow: none; }
}
