/* 발자국소리가큰아이들 본사 홈페이지 공통 스타일 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1a1a1a;
  --sub: #6b6b6b;
  --line: #e6e6e6;
  --band: #f6f6f4;
  --accent: #e8402f;
}
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink); background: #fff;
  font-size: 17px; line-height: 1.75;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

/* 머리 */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.bar { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.brand img { height: 40px; width: auto; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { font-size: 15px; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
nav a.cta { background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; }
nav a.cta:hover { text-decoration: none; background: #000; }

/* 틀 */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.col { max-width: 720px; margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; }
.band { background: var(--band); }
.dark { background: #111; color: #fff; }
.kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); margin-bottom: 14px; font-weight: 600; }
.dark .kicker { color: #8a8a8a; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; margin-bottom: 20px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.lead { font-size: 18px; color: #444; max-width: 640px; }
.dark .lead { color: #bdbdbd; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.sub { color: var(--sub); }
p + p { margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.light { background: #fff; color: var(--ink); }

/* 첫 화면 */
.hero { padding: 64px 24px 48px; text-align: center; }
.hero h1 img { width: min(1100px, 100%); margin: 0 auto; }
.since { font-size: clamp(24px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.04em; margin-top: 28px; }
.hero .lead { margin: 16px auto 0; text-align: center; }
.hero .btns { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bleed img { width: 100%; height: min(78vh, 820px); object-fit: cover; }

/* 이런 곳이에요 */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 18px; background: var(--band); }
.card p { color: #444; font-size: 16px; }

/* 역사 띠 */
.mile { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-top: 8px; }
.mile li { padding: 22px 20px 0 0; }
.mile b { display: block; font-size: clamp(38px, 5vw, 64px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; }
.mile span { display: block; margin-top: 10px; font-size: 15px; color: var(--sub); line-height: 1.6; }

/* 수업 흐름 */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.flow li { background: #fff; border-radius: 12px; padding: 24px 22px; position: relative; }
.flow li:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--sub); }
.flow b { display: block; font-size: 19px; margin-bottom: 6px; }
.flow span { font-size: 15px; color: #555; line-height: 1.6; display: block; }

/* 프로그램 */
.progs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.prog { border: 1px solid var(--line); border-radius: 14px; padding: 30px; background: #fff; }
.prog .age { display: inline-block; font-size: 14px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.prog .age.alt { background: var(--accent); }
.prog dl { display: grid; grid-template-columns: 76px 1fr; row-gap: 6px; font-size: 15px; margin: 16px 0; }
.prog dt { color: var(--sub); }
.prog .pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; }
.prog .pics img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--band); }
.track { display: flex; height: 44px; border-radius: 8px; overflow: hidden; margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: #fff; }
.track span { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; padding: 0 4px; }
.track .t1 { flex: 4; background: #2f6f5e; }
.track .t2 { flex: 3; background: #b9772d; }
.track .t3 { flex: 3; background: #3e5c9a; }
.track .t4 { flex: 14; background: var(--accent); }
.track-note { font-size: 13px; color: var(--sub); }

/* 1년 */
.year { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.year li { border-top: 2px solid var(--ink); padding-top: 14px; }
.year b { display: block; font-size: 17px; margin-bottom: 4px; }
.year span { font-size: 15px; color: #555; }

/* 중점 */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 56px; margin-top: 40px; }
.values p { color: #444; font-size: 16px; }

/* 전시 */
.ex { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid #333; margin-top: 40px; }
.ex li { display: grid; grid-template-columns: 64px 1fr; padding: 16px 0; border-bottom: 1px solid #2a2a2a; }
.ex .ey { color: #8a8a8a; font-variant-numeric: tabular-nums; }
.ex .et { font-size: 17px; font-weight: 500; }
.ex .ev { grid-column: 2; font-size: 14px; color: #8a8a8a; }
.ex-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 40px; }
.ex-pics img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #222; }

/* 선생님 */
.faces { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 32px; }
.faces figure { width: 96px; text-align: center; font-size: 14px; }
.faces img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--band); margin-bottom: 6px; }
.researchers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start; }
.rcard img, .rcard .ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--band); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #999; }
.rcard .who { font-size: 14px; color: var(--sub); margin-bottom: 2px; }
.rcard h3 { margin-bottom: 10px; }
.rcard blockquote { font-size: 16px; line-height: 1.7; color: #333; }
.rcard .role { margin-top: 12px; font-size: 14px; color: var(--sub); }
.rcard.big { grid-column: 1 / -1; }

/* 원 안내 */
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.branch { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; }
.branch h3 { font-size: 19px; margin-bottom: 8px; }
.branch .addr { font-size: 14px; color: var(--sub); line-height: 1.6; }
.branch .tel { font-size: 15px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.branch .links { margin-top: auto; padding-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.branch .links a, .branch .links button { font: inherit; font-size: 14px; text-decoration: none; border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.branch .links .fill { background: var(--ink); color: #fff; }

footer { border-top: 1px solid var(--line); padding: 40px 24px 96px; text-align: center; font-size: 13px; color: var(--sub); }
footer a { text-decoration: none; }

/* 상담 신청 버튼 · 창 */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 14px 20px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { background: #fff; width: min(480px, 100%); max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 24px 22px 28px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 20px; }
.sheet-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #888; }
.f { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 700; }
.f .opt { font-weight: 400; color: #999; }
.f input, .f select { display: block; width: 100%; height: 48px; margin-top: 6px; font: inherit; font-weight: 400; font-size: 16px; padding: 0 12px; border: 1px solid #d4d4d4; border-radius: 8px; background: #fff; color: var(--ink); }
.apply-err { color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.apply-btn { width: 100%; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 16px; padding: 15px; cursor: pointer; }
.note { font-size: 13px; color: var(--sub); margin-top: 10px; line-height: 1.6; }
.done p { font-size: 16px; }
.done pre { white-space: pre-wrap; font: inherit; font-size: 14px; background: var(--band); padding: 14px; border-radius: 8px; margin-top: 12px; }

@media (min-width: 761px) { .sheet { align-items: center; } .sheet-box { border-radius: 18px; } }
@media (max-width: 960px) {
  .branches { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li::after { display: none; }
  .year { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  nav { gap: 12px; }
  nav a { font-size: 13.5px; }
  nav a.nav-hide { display: none; }
  nav a.cta { padding: 6px 11px; }
  .brand img { height: 34px; }
  .bleed img { height: min(56vh, 460px); }
  .cards3, .progs, .values, .researchers, .ex { grid-template-columns: 1fr; }
  .mile { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .branches { grid-template-columns: 1fr; }
  .ex-pics { grid-template-columns: 1fr 1fr; }
  .rcard { grid-template-columns: 64px 1fr; padding: 22px; }
  .rcard img, .rcard .ph { width: 64px; height: 64px; font-size: 22px; }
  .faces figure { width: 76px; }
  .faces img { width: 76px; height: 76px; }
  .track { font-size: 11px; }
}
@media (max-width: 420px) {
  .bar { padding: 10px 16px; }
  .wrap, .col { padding-left: 16px; padding-right: 16px; }
}

/* 다른 점 */
.diff { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 48px; }
.diff > div { border-top: 1px solid #444; padding-top: 18px; }
.diff b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 10px; }
.diff h3 { font-size: 17px; color: #fff; }
.diff p { font-size: 15px; color: #bdbdbd; line-height: 1.7; }
/* 설계도 띠 */
.strip { margin-top: 28px; }
.strip img { width: 100%; border-radius: 12px; background: #fff; }
.strip figcaption { font-size: 13px; color: var(--sub); margin-top: 8px; }
/* 작품 */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.works figure { margin: 0; }
.works img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--band); }
.works .w2 { grid-column: span 2; grid-row: span 2; }
.works .w2 img { aspect-ratio: auto; height: calc(100% - 30px); }
.works figcaption { font-size: 14px; margin-top: 6px; font-weight: 600; }
.works figcaption span { font-weight: 400; color: var(--sub); }
/* 포스터 */
.posters { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 36px; }
.posters img { width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 6px; background: #222; }
@media (max-width: 960px) {
  .diff { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: repeat(3, 1fr); }
  .posters { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 760px) {
  .diff { grid-template-columns: 1fr; gap: 12px; }
  .works { grid-template-columns: 1fr 1fr; gap: 10px; }
  .posters { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
.rcard .desc { font-size: 15px; line-height: 1.75; color: #333; }
.more { margin-top: 28px; font-size: 15px; }
.more a { color: inherit; border-bottom: 1px solid currentColor; }
/* 선생님 사진은 모두 흑백으로 통일 (원본은 컬러 그대로, 화면에서만 흑백) */
.faces img, .rcard img { filter: grayscale(1); }
.branch-diff { margin-top: 28px; padding: 18px 22px; background: var(--band); border-radius: 12px; font-size: 15px; line-height: 1.7; color: #333; }
.branch-diff a { color: inherit; font-weight: 700; white-space: nowrap; }
.branch .note { font-size: 14px; color: var(--sub); margin-top: 6px; line-height: 1.6; }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.bchips a { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: inherit; text-decoration: none; background: #fff; }
.bgroup { padding-top: 56px; scroll-margin-top: 80px; }
.bhead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.bhead h3 { font-size: 24px; margin: 0; }
.bhead span { font-size: 14px; color: var(--sub); }
.bhead a { font-size: 14px; color: inherit; margin-left: auto; }
.bhead a + a { margin-left: 0; }
.bgroup .researchers { margin-top: 24px; }
.bgroup .faces { margin: 24px 0 0; }
.faces figcaption small { display: block; font-size: 12px; color: var(--sub); }
.faces .noimg { width: 96px; height: 96px; border-radius: 50%; background: var(--band); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #999; margin-bottom: 6px; }
@media (max-width: 760px) { .faces .noimg { width: 76px; height: 76px; font-size: 22px; } }
.bchips button { font: inherit; font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: inherit; cursor: pointer; }
.bchips button.on { background: #111; color: #fff; border-color: #111; }
#byBranch .researchers { margin-top: 24px; }
.rcard[hidden] { display: none; }
