@charset "utf-8";
/* 너희가 꽃이다 학원 홈페이지 시안 2판 (2026-10-17) — 공용 스타일
   구성은 HFK(thehfk.org) 홈을 조금 빌렸다: 얇은 위쪽 메뉴, 사진 첫 화면, 짙은 띠, 연한 띠 카드 3장, 사진 띠, 짙은 꼬리말.
   색은 너꽃 브랜드: 네이비 #192b5b, 코랄 #ee806d(바탕, 도형, 숫자 블록에만), 본문 #231815, 연회색 #efefef, 흰 바탕.
   코랄 위 글씨는 네이비만 쓰고, 흰 바탕 위에 코랄 글씨는 쓰지 않는다.
   글꼴: 제목 Paperlogy(7 Bold, 8 ExtraBold), 본문 KoPub 돋움(Light, 강조 Medium, Bold). 파일은 assets/fonts/ 에 잘라 둔 woff2. */

@font-face { font-family: "NG Paperlogy"; src: url("fonts/Paperlogy-7Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NG Paperlogy"; src: url("fonts/Paperlogy-8ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "NG KoPub"; src: url("fonts/KoPubWorldDotum-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "NG KoPub"; src: url("fonts/KoPubWorldDotum-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "NG KoPub"; src: url("fonts/KoPubWorldDotum-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #192b5b;
  --coral: #ee806d;
  --coral-soft: #fbe1dc;
  --ink: #231815;
  --gray: #efefef;
  --white: #ffffff;
  --line: #d9dbe2;
  --hair: #e8e8ea;
  --muted: #4f5466;
  --kicker: #6d7387;
  --on-navy: #e4e8f1;
  --on-navy-muted: #b9c1d8;
  --foot-text: #d8d1cd;
  --foot-muted: #a79f9a;
  --title: "NG Paperlogy", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --body: "NG KoPub", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --wrap: 1040px;
  --read: 780px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
figure { margin: 0; }
strong, b { font-weight: 700; }
.nw { white-space: nowrap; }

/* 링크 밑줄은 이 한 가지(1px 실선) */
a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--coral); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }

.vbar { display: inline-block; width: 1px; height: 0.9em; margin: 0 10px; background: currentColor; opacity: 0.45; vertical-align: -0.08em; }

/* ── 머리: 얇은 위쪽 메뉴(왼쪽 메뉴, 오른쪽 로고 글자) ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--hair);
}
.bar {
  position: relative;
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav > ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block;
  padding: 20px 0 18px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-weight: 500; font-size: 15px; line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.nav a[aria-current="page"], .nav .is-current > a { color: var(--navy); font-weight: 700; border-bottom-color: var(--coral); }
.has-sub { position: relative; }
.nav .sub {
  position: absolute; left: -18px; top: 100%;
  display: none; flex-direction: column; gap: 0;
  min-width: 190px; margin: 0; padding: 8px; list-style: none;
  background: var(--white); border: 1px solid var(--hair); border-radius: 16px;
  box-shadow: 0 14px 30px rgba(25, 43, 91, 0.12);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.nav .sub a { padding: 8px 12px; border: 0; border-radius: 10px; font-weight: 500; }
.nav .sub a:hover { background: var(--gray); }
.nav .sub a[aria-current="page"] { background: var(--gray); }
.brand {
  flex: none;
  color: var(--navy); text-decoration: none;
  font-family: var(--title); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap;
}
.brand small { font-family: var(--body); font-weight: 500; font-size: 12.5px; letter-spacing: 0; color: var(--muted); margin-right: 7px; vertical-align: 0.12em; }
.menu-btn { display: none; }

/* ── 알약 버튼 ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.pill:hover { transform: translateY(-1px); }
.pill-coral { background: var(--coral); color: var(--navy); }
.pill-coral:hover { background: #f19483; }
.pill-ghost { border-color: rgba(255, 255, 255, 0.85); color: var(--white); background: rgba(255, 255, 255, 0.06); }
.pill-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.pill-line { border-color: var(--navy); color: var(--navy); background: var(--white); }
.pill-line:hover { background: var(--gray); }
.pill-line-light { border-color: rgba(255, 255, 255, 0.65); color: var(--white); }
.pill-line-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

/* ── 첫 화면: 사진 가득 + 가운데 큰 문구 ── */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: min(86vh, 780px);
  overflow: hidden;
  background: var(--navy);
  color: var(--white); text-align: center;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 27, 60, 0.58) 0%, rgba(16, 27, 60, 0.62) 50%, rgba(16, 27, 60, 0.78) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; padding: 96px 16px 104px; }
.hero-kicker { margin: 0 0 18px; font-weight: 500; font-size: 15px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.86); }
.hero-title {
  margin: 0;
  font-family: var(--title); font-weight: 800;
  font-size: clamp(36px, 5.2vw, 62px); line-height: 1.2; letter-spacing: -0.035em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.hero-title small { display: block; margin-bottom: 8px; font-size: 0.42em; font-weight: 700; letter-spacing: 0.02em; }
.hero-sub { margin: 18px 0 0; font-family: var(--title); font-weight: 700; font-size: clamp(19px, 2vw, 23px); letter-spacing: -0.01em; }
.hero-note { margin: 22px 0 0; font-weight: 300; font-size: 16.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.9); }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0 0; }

/* ── 짙은 띠: 작은 로고, 두 줄 제목, 가운데 사진, 가운데 정렬 소개 ── */
.band-dark { background: var(--navy); color: var(--white); text-align: center; padding: 112px 16px 120px; }
.band-inner { max-width: 880px; margin: 0 auto; }
.band-logo { display: block; width: 210px; height: auto; margin: 0 auto 36px; }
.band-title {
  margin: 0 0 60px;
  font-family: var(--title); font-weight: 700;
  font-size: clamp(27px, 3.3vw, 42px); line-height: 1.4; letter-spacing: -0.035em;
  color: var(--white);
}
.band-photo { max-width: 400px; margin: 0 auto 56px; }
.band-photo img { display: block; width: 100%; height: auto; }
.band-photo figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--on-navy-muted); }
.band-text { max-width: 640px; margin: 0 auto; color: var(--on-navy); font-size: 17px; line-height: 1.95; }
.band-text p { margin: 0 0 24px; text-wrap: pretty; }
.band-btn { margin: 44px 0 0; }

/* ── 연한 띠: 영문 머리말 + 큰 제목 + 둥근 카드 3장 ── */
.band-light { background: var(--gray); padding: 104px 16px 112px; }
.sec-center { text-align: center; margin: 0 0 54px; }
.kicker {
  margin: 0 0 12px;
  font-family: var(--body); font-weight: 700; font-size: 12.5px; line-height: 1.4;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--kicker);
}
.band-light h2 { margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: -0.03em; color: var(--navy); }
.fcards { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fcards li { margin: 0; }
.fcard {
  position: relative;
  display: flex; flex-direction: column; height: 100%; min-height: 340px;
  padding: 34px 30px 30px;
  border-radius: 26px; background: var(--white);
  color: var(--ink); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(25, 43, 91, 0.12); }
.fcard .num { position: absolute; top: 34px; right: 30px; font-family: var(--title); font-weight: 700; font-size: 15px; line-height: 1; color: #a3aabd; }
.fcard h3 { margin: 0 0 40px; padding-right: 36px; font-family: var(--title); font-weight: 800; font-size: 24px; line-height: 1.3; letter-spacing: -0.03em; color: var(--navy); }
.fcard-strong { margin: 0 0 12px; font-weight: 700; font-size: 18px; line-height: 1.5; color: var(--navy); }
.fcard-desc { margin: 0 0 26px; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.arrow { display: block; flex: none; margin-top: auto; color: var(--navy); }

/* ── 본문 덩어리 ── */
.block { padding: 96px 16px 0; }
.block-last { padding-bottom: 104px; }
.text { max-width: var(--wrap); margin: 0 auto; }
.text > p, .text > ul, .text > ol, .text > .lead, .text > .profile, .text > .qa-list, .text > .cta, .text > h3 { max-width: var(--read); }
.text h2 {
  margin: 76px 0 18px;
  font-family: var(--title); font-weight: 800;
  font-size: clamp(25px, 2.5vw, 31px); line-height: 1.38; letter-spacing: -0.03em;
  color: var(--navy);
}
.text .kicker { margin-top: 76px; }
.text .kicker + h2 { margin-top: 0; }
.block .text > .kicker:first-child { margin-top: 0; }
.text h3 { margin: 34px 0 10px; font-family: var(--title); font-weight: 700; font-size: 20px; line-height: 1.45; letter-spacing: -0.02em; color: var(--navy); }
.text p { margin: 0 0 16px; text-wrap: pretty; }
.text ul, .text ol { margin: 0 0 18px; padding-left: 1.3em; }
.text li { margin: 5px 0; }

/* 표 */
.table-wrap { margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.65; }
caption {
  caption-side: top; padding: 13px 18px; text-align: left;
  font-weight: 700; font-size: 14.5px; color: var(--navy);
  border-bottom: 1px solid var(--line); background: var(--white);
}
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
tr > * + * { border-left: 1px solid var(--line); }
thead th { border-top: 0; background: var(--navy); color: var(--white); font-weight: 700; }
thead tr > * + * { border-left-color: rgba(255, 255, 255, 0.18); }
tbody th { width: 28%; background: #f6f6f7; color: var(--navy); font-weight: 700; }
caption + thead tr:first-child > *, caption + tbody tr:first-child > * { border-top: 0; }
.t-subjects tbody th { width: 16%; }

/* 요약 상자(첫 문단) */
.lead {
  margin: 10px 0 26px;
  padding: 24px 26px;
  border-left: 5px solid var(--coral);
  border-radius: 6px 18px 18px 6px;
  background: var(--gray);
}
.lead p { margin: 0 0 10px; font-weight: 500; font-size: 17.5px; line-height: 1.85; }
.lead p:last-child { margin-bottom: 0; }
.byline { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.byline .vbar { margin: 0 8px; }

/* 원장 소개 */
.profile { padding: 30px 32px 22px; border-radius: 22px; background: var(--gray); }
.profile h3 { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.career { list-style: none; padding-left: 0 !important; }
.career li { display: flex; gap: 10px; align-items: baseline; }
.tag { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: var(--navy); font-weight: 700; font-size: 13px; line-height: 1; transform: translateY(-1px); }

/* 학교 카드 */
.scards { list-style: none; margin: 28px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: none !important; }
.scards li { margin: 0; }
.scard {
  display: flex; flex-direction: column; height: 100%;
  padding: 26px 26px 24px;
  border-radius: 22px; background: var(--gray);
  color: var(--ink); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.scard:hover { transform: translateY(-3px); background: #f4f4f4; box-shadow: 0 14px 28px rgba(25, 43, 91, 0.1); }
.scard h3 { margin: 0 0 10px; font-family: var(--title); font-weight: 800; font-size: 20px; line-height: 1.35; letter-spacing: -0.02em; color: var(--navy); }
.scard-who { align-self: flex-start; margin: 0 0 12px; padding: 3px 11px; border-radius: 999px; background: var(--coral-soft); color: var(--navy); font-weight: 700; font-size: 13.5px; line-height: 1.6; }
.scard-times { margin: 0 0 20px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }

/* 오시는 길 */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: start; margin: 22px 0 18px; }
.info { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.info dt { color: var(--navy); font-weight: 700; }
.info dd { margin: 0; }
.contact-photo img { display: block; width: 100%; height: auto; border-radius: 18px; }
.contact-photo figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; max-width: none !important; }

/* 상담 상자 */
.cta { margin: 76px 0 0; padding: 36px 32px 34px; border-radius: 24px; background: var(--gray); text-align: center; max-width: none !important; }
.cta-text { margin: 0 0 20px !important; font-weight: 500; font-size: 17.5px; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 !important; }

/* ── 하위 쪽 머리: 굵은 첫 줄 + 가는 두 줄, 선, 알약 탭, 사진 ── */
.page-head { max-width: var(--wrap); margin: 0 auto; padding: 52px 16px 0; box-sizing: content-box; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; }
.page-title { margin: 22px 0 6px; font-family: var(--title); font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.3; letter-spacing: -0.035em; color: var(--ink); }
.page-sub { margin: 0; font-family: var(--body); font-weight: 300; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); }
.page-rule { margin: 40px 0 0; border: 0; border-top: 1px solid var(--ink); }
.tabs ul { display: flex; flex-wrap: wrap; gap: 8px 6px; list-style: none; margin: 0; padding: 22px 0 0; }
.tabs li { margin: 0; }
.tab {
  display: inline-block; padding: 6px 17px;
  border: 1px solid transparent; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.6;
  text-decoration: none;
}
.tab:hover { border-color: var(--line); }
.tab[aria-current="page"] { border-color: var(--ink); background: var(--gray); color: var(--navy); font-weight: 700; }
.page-photo { max-width: var(--wrap); margin: 36px auto 0; padding: 0 16px; box-sizing: content-box; }
.page-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }
main > .text { padding: 56px 16px 104px; box-sizing: content-box; }
.kicker-first { margin-top: 0 !important; }

/* 자주 묻는 질문 */
.qa-list { margin: 12px 0 0; border-bottom: 1px solid var(--line); }
.qa { padding: 28px 0 14px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.text .qa h2 { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; font-size: 21px; line-height: 1.5; }
.q-mark { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: 0; border-radius: 50%; background: var(--coral); color: var(--navy); font-family: var(--title); font-weight: 800; font-size: 15px; line-height: 1; }
.qa p { padding-left: 46px; }
.after-qa { margin-top: 26px !important; }

/* ── 사진 띠(어둡게 깐 사진) ── */
.photo-band { position: relative; height: clamp(250px, 32vw, 440px); overflow: hidden; background: var(--navy); }
.photo-band img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: grayscale(0.35) brightness(0.62); }
.photo-band::after { content: ""; position: absolute; inset: 0; background: rgba(25, 43, 91, 0.35); }
.photo-band figcaption {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; text-align: center; color: var(--white);
}
.pb-big { font-family: var(--title); font-weight: 800; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; letter-spacing: -0.03em; }
.pb-small { font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, 0.88); }

/* ── 꼬리말(짙은 바탕, 학원 정보) ── */
.site-footer { background: var(--ink); color: var(--foot-text); text-align: center; padding: 58px 16px 50px; font-size: 14.5px; line-height: 1.8; }
.footer-name { margin: 0; font-family: var(--title); font-weight: 800; font-size: 19px; color: var(--white); }
.footer-slogan { margin: 2px 0 22px; color: var(--foot-muted); }
.site-footer address { font-style: normal; }
.footer-info { max-width: 920px; margin: 0 auto; }
.footer-info div { margin: 0 0 4px; }
.footer-info dt { display: inline; margin-right: 8px; color: var(--foot-muted); font-weight: 500; }
.footer-info dd { display: inline; margin: 0; }
.site-footer a { color: var(--white); }
.copy { margin: 22px 0 0; font-size: 13px; color: var(--foot-muted); }

/* ── 좁은 화면 ── */
@media (max-width: 960px) {
  .bar { height: 58px; padding: 0 16px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0; padding: 8px 2px; border: 0; background: none;
    color: var(--ink); font-family: var(--body); font-weight: 500; font-size: 15px; line-height: 1;
    cursor: pointer;
  }
  .menu-icon { position: relative; display: block; width: 20px; height: 2px; background: currentColor; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 0.2s; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .nav-open .menu-icon { background: transparent; }
  .nav-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 58px;
    display: none;
    max-height: calc(100vh - 58px); overflow-y: auto;
    padding: 4px 16px 20px;
    background: var(--white); border-bottom: 1px solid var(--hair);
    box-shadow: 0 16px 28px rgba(25, 43, 91, 0.1);
  }
  .js .nav-open .nav { display: block; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .bar { flex-wrap: wrap; height: auto; padding-top: 14px; }
  html:not(.js) .nav { order: 3; flex-basis: 100%; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
  .nav a[aria-current="page"], .nav .is-current > a { border-bottom-color: var(--hair); }
  .nav .sub { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 12px 0 14px; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; box-shadow: none; }
  .nav .sub a { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; }
  .nav .sub a[aria-current="page"] { border-color: var(--navy); }
  .brand { font-size: 19px; }
  .fcards { grid-template-columns: 1fr; max-width: 560px; }
  .fcard { min-height: 0; }
  .fcard h3 { margin-bottom: 24px; }
  .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.78; }
  .brand small { display: none; }
  .hero { min-height: min(80vh, 680px); }
  .hero-inner { padding: 72px 16px 80px; }
  .hero-kicker { font-size: 13.5px; }
  .hero-note { font-size: 15.5px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .pill { width: min(100%, 300px); }
  .band-dark { padding: 80px 16px 88px; }
  .band-logo { width: 170px; margin-bottom: 28px; }
  .band-title { margin-bottom: 40px; }
  .band-photo { margin-bottom: 40px; }
  .band-text { font-size: 16px; line-height: 1.9; text-align: left; }
  .band-light { padding: 76px 16px 84px; }
  .sec-center { margin-bottom: 36px; }
  .fcard { padding: 28px 24px 24px; border-radius: 22px; }
  .fcard .num { top: 29px; right: 24px; }
  .fcard h3 { font-size: 22px; }
  .block { padding-top: 72px; }
  .block-last { padding-bottom: 80px; }
  .text h2 { margin-top: 60px; }
  .text .kicker { margin-top: 60px; }
  .lead { padding: 18px 18px; }
  .lead p { font-size: 16.5px; }
  table { font-size: 14.5px; }
  th, td { padding: 9px 10px; }
  caption { padding: 11px 12px; }
  tbody th { width: 30%; }
  .t-subjects tbody th { width: 20%; }
  .scards { grid-template-columns: 1fr; }
  .info { grid-template-columns: 1fr; gap: 0; }
  .info dd { margin-bottom: 12px; }
  .cta { padding: 28px 18px 26px; }
  .cta-btns .pill, .contact-btns .pill { width: 100%; }
  .page-head { padding-top: 32px; }
  .page-rule { margin-top: 28px; }
  .tabs ul { padding-top: 16px; }
  .tab { padding: 5px 13px; font-size: 14.5px; }
  .page-photo { margin-top: 26px; }
  main > .text { padding: 40px 16px 80px; }
  .text .qa h2 { margin-top: 0; font-size: 18.5px; gap: 12px; }
  .tabs-schools ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tabs-schools .tab { display: block; text-align: center; border-color: var(--line); }
  .tabs-schools .tab[aria-current="page"] { border-color: var(--ink); }
  .q-mark { width: 28px; height: 28px; font-size: 13.5px; margin-top: 1px; }
  .qa p { padding-left: 0; }
  .site-footer { padding: 46px 16px 42px; font-size: 14px; }
  .footer-info div { margin-bottom: 10px; }
  .footer-info dt { display: block; margin: 0; }
  .footer-info dd { display: block; }
}

/* 원장 소개 사진 (10-17) */
.profile.has-photo { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: end; padding-bottom: 0; overflow: hidden; }
.profile-photo { display: block; width: 100%; height: auto; }
.profile-text { padding-bottom: 22px; }
@media (max-width: 600px) {
  .profile.has-photo { grid-template-columns: 1fr; gap: 6px; }
  .profile-photo { width: 200px; margin: 0 auto; order: 2; }
  .profile-text { order: 1; padding-bottom: 0; }
}

/* 과목별 수업 칸 (10-17) */
.text > .subject { max-width: var(--read); margin: 0 0 8px; padding: 22px 0 6px; border-top: 1px solid #e3e3e3; }
.text > .subject:first-of-type { border-top: 0; padding-top: 4px; }
.subject h3 { margin: 0 0 10px; font-size: 21px; font-weight: 800; color: var(--navy); }
.subject p { margin: 0 0 12px; }

/* 수업 카드 5장: 아랫줄 가운데 (10-17) */
.fcards { display: flex; flex-wrap: wrap; justify-content: center; }
.fcards li { flex: 0 0 calc((100% - 48px) / 3); }
@media (max-width: 960px) { .fcards li { flex: 0 0 100%; } }

/* 소개 띠 사진 여섯 장 (10-17) */
.band-gallery { list-style: none; margin: 34px auto 30px; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.band-gallery li { margin: 0; }
.band-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
@media (max-width: 600px) { .band-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* 시간표와 과목별 시험 분석 (10-18) */
.tt-note { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.t-time tbody th { width: 22%; }
.t-exam tbody th { width: 20%; }
.t-matrix { min-width: 820px; }
.t-matrix tbody th { width: 11%; }
.t-matrix td { width: 22.2%; }
.t-ms tbody td:nth-child(2) { white-space: nowrap; }
.t-ms tbody th { width: 14%; }
.sec-note { margin: -8px 0 6px !important; font-size: 14.5px; color: var(--muted); }
.prep-title { margin: 20px 0 6px !important; color: var(--navy); }
.tabs-inpage ul { padding: 6px 0 4px; }
.tabs-inpage .tab { border-color: var(--line); }
.tabs-inpage .tab:hover { border-color: var(--ink); }
@media (max-width: 600px) {
  .t-time tbody th { width: 26%; }
  .tt-note { font-size: 13px; }
}

/* 첫 화면 강좌 카드 (10-20): 들어가자마자 지금 열린 강좌가 보이게. 데이터는 _변환도구/geo/site2_courses.py */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.courses { max-width: 1200px; margin: 0 auto; padding: 34px 28px 72px; }
.courses-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--hair); }
.courses-kicker { margin: 0 0 6px; font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--muted); }
.courses-title { margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; letter-spacing: -0.035em; color: var(--navy); }
.courses-title small { margin-right: 8px; font-size: 0.5em; font-weight: 700; letter-spacing: 0; vertical-align: 0.18em; }
.courses-sub { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.courses-btns { display: flex; flex: none; gap: 10px; margin: 0; }
.courses-btns .pill { min-height: 46px; padding: 0 22px; font-size: 15px; }
.ctabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 22px; }
.ctab {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-family: var(--body); font-weight: 500; font-size: 15px; line-height: 1.4; color: var(--ink); cursor: pointer;
}
.ctab span { margin-left: 3px; font-weight: 700; color: var(--kicker); }
.ctab:hover { border-color: var(--ink); }
.ctab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ctab[aria-pressed="true"] span { color: var(--on-navy-muted); }
html:not(.js) .ctabs { display: none; }
.ccards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 16px; }
.ccards > li { margin: 0; }
.ccard { display: block; color: var(--ink); text-decoration: none; }
.cphoto {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 18px;
  background: linear-gradient(180deg, #ececed 0%, #c3c4c7 100%); container-type: inline-size;
}
/* 사진 위 이름 (10-20 원장님: 흑백 사진 + 흰 글씨 이름, HFK 카드처럼) */
.cface { position: relative; display: block; height: 100%; min-width: 0; overflow: hidden; container-type: inline-size; }
.cface::after, .tphoto::after {
  content: ""; position: absolute; inset: 42% 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 16, 30, 0) 0%, rgba(12, 16, 30, 0.5) 45%, rgba(12, 16, 30, 0.82) 100%);
}
.cname { position: absolute; left: 9%; right: 6%; bottom: 8%; z-index: 1; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25); }
.cname strong { display: block; font-family: var(--title); font-weight: 800; font-size: clamp(17px, 17cqw, 36px); line-height: 1.1; letter-spacing: -0.03em; }
.cname small { display: block; margin-top: 0.45em; font-family: var(--body); font-weight: 500; font-size: clamp(11px, 6.4cqw, 14.5px); line-height: 1.2; letter-spacing: 0.02em; opacity: 0.88; }
.cphoto-duo .cname { left: 12%; }
.cphoto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 0.25s; }
.ccard:hover .cphoto img { transform: scale(1.04); }
.cphoto-duo { display: grid; grid-template-columns: 1fr 1fr; }
.cphoto-duo img { min-width: 0; }
.cphoto-logo { display: grid; place-items: center; padding-bottom: 22%; background: var(--navy); }
.cphoto-logo img { width: 62%; height: auto; object-fit: contain; }
.cphoto-logo .cname { bottom: 9%; }
.ccard:hover .cphoto-logo img { transform: none; }
.ctags { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 7px; }
.ctag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--gray); font-weight: 700; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.ctag-subj { background: var(--coral-soft); color: var(--navy); }
.ccard-title { margin: 0 0 3px; font-family: var(--title); font-weight: 700; font-size: 17.5px; line-height: 1.35; letter-spacing: -0.02em; color: var(--navy); }
.ccard:hover .ccard-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--coral); }
.ccard-line { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.courses-more { margin: 34px 0 0; text-align: center; font-size: 15px; }
@media (max-width: 1100px) { .ccards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .courses-head { flex-direction: column; align-items: flex-start; }
  .ccards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .courses { padding: 24px 16px 56px; }
  .courses-head { gap: 16px; padding-bottom: 18px; }
  .courses-sub { font-size: 14.5px; }
  .courses-btns { width: 100%; }
  .courses-btns .pill { flex: 1; padding: 0 10px; font-size: 14.5px; }
  .ctabs { flex-wrap: nowrap; overflow-x: auto; margin: 16px -16px 18px; padding: 0 16px; scrollbar-width: none; }
  .ctab { flex: none; padding: 6px 13px; font-size: 14.5px; }
  .ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .cphoto { border-radius: 14px; }
  .ccard-title { font-size: 16px; }
  .ccard-line { font-size: 13px; }
}

/* 비교 시안 B 과목 보드 (10-20) */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.bcol { padding: 18px 18px 8px; border-radius: 20px; background: var(--gray); }
.bcol h3 { margin: 0 0 8px; font-family: var(--title); font-weight: 800; font-size: 21px; color: var(--navy); }
.bcol ul { list-style: none; margin: 0; padding: 0; }
.bcol li { margin: 0; }
.brow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #dddfe5; color: var(--ink); text-decoration: none; }
.brow:hover strong { text-decoration: underline; text-decoration-color: var(--coral); }
.bface { flex: none; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; background: #d4d5d8; }
.bface img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.7); transform-origin: 50% 12%; }
.bface-logo { background: var(--navy); }
.btext { min-width: 0; }
.btext strong { display: block; font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--navy); }
.btext span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.bsub { margin-top: 12px !important; padding: 4px 0; font-family: var(--title); font-weight: 800; font-size: 17px; color: var(--navy); }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .board { grid-template-columns: 1fr; } }

/* 비교 시안 C 선생님 먼저 (10-20) */
.tcards { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 18px; }
.tcard { margin: 0; }
.tphoto { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #ececed 0%, #c3c4c7 100%); container-type: inline-size; }
.tphoto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tname { margin: 12px 0 6px; line-height: 1.5; }
.tcourses { list-style: none; margin: 0; padding: 0; }
.tcourses li { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (max-width: 900px) { .tcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }
.ccard-line, .ccard-title { text-wrap: pretty; }
.bface-logo { display: grid; place-items: center; }
.bface-logo img { width: 80%; height: auto; object-fit: contain; transform: none; }

/* 학교 학년별 한 주 달력 (10-20) */
.wkwrap { margin: 18px 0 34px; }
.wk-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
html:not(.js) .wk-tabs { display: none; }
.wk-tab { padding: 6px 14px; border: 1px solid #d6d9e1; border-radius: 999px; background: #fff; font: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.wk-tab[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.wk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.wk-key { display: inline-flex; align-items: center; gap: 6px; }
.wk-key::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--k); border: 1px solid var(--kb, transparent); }
.wk-key.wk-kor { --k: var(--coral); }
.wk-key.wk-eng { --k: var(--navy); }
.wk-key.wk-math { --k: #cfd8ee; }
.wk-key.wk-sci { --k: #e4e6ea; --kb: #b9bdc7; }
.wk-key.wk-opt-key { --k: transparent; --kb: var(--muted); }
.wk-key.wk-opt-key::before { border-style: dashed; border-width: 1.5px; }
.wk { margin: 0 0 26px; }
.wk[hidden] { display: none; }
.wk-title { margin: 0 0 10px; font-family: var(--title); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--navy); }
.wk-scroll { overflow-x: auto; border: 1px solid #e1e3e9; border-radius: 14px; background: #fff; }
.wk-grid { min-width: 640px; }
.wk-head, .wk-body { display: grid; grid-template-columns: 48px repeat(7, minmax(0, 1fr)); }
.wk-head span { padding: 10px 0 9px; border-bottom: 1px solid #e1e3e9; text-align: center; font-weight: 700; font-size: 14.5px; color: var(--navy); }
.wk-head span:nth-child(7), .wk-head span:nth-child(8) { color: var(--coral); }
.wk-body {
  position: relative; height: 546px;
  background: repeating-linear-gradient(to bottom, #eceef2 0 1px, transparent 1px 42px);
}
.wk-axis { position: relative; }
.wk-axis span { position: absolute; right: 7px; margin-top: 3px; font-size: 11.5px; line-height: 1; color: #8a8fa0; }
.wk-col { position: relative; border-left: 1px solid #eceef2; }
.wk-ev {
  position: absolute; overflow: hidden; padding: 5px 6px; border-radius: 8px;
  font-size: 12px; line-height: 1.3; background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd, var(--bg));
}
.wk-ev b { display: block; font-family: var(--title); font-weight: 700; font-size: 13.5px; }
.wk-ev .wk-lab, .wk-ev small { display: block; font-size: 11.5px; }
.wk-ev small { opacity: 0.85; }
.wk-ev em { position: absolute; top: 5px; right: 5px; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); font-style: normal; font-weight: 700; font-size: 10.5px; line-height: 1.6; color: var(--navy); }
.wk-kor { --bg: var(--coral); --fg: var(--navy); }
.wk-eng { --bg: var(--navy); --fg: #fff; }
.wk-math { --bg: #cfd8ee; --fg: var(--navy); }
.wk-sci { --bg: #e4e6ea; --fg: var(--ink); --bd: #b9bdc7; }
.wk-ev.wk-opt { border-style: dashed; --bd: currentColor; }
.wk-ev.wk-math.wk-opt { --bg: #e6ebf7; }
.wk-ev.wk-sci.wk-opt { --bg: #f1f2f4; }
.wk-notes { margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (max-width: 600px) {
  .wk-tab { padding: 5px 11px; font-size: 14px; }
  .wk-grid { min-width: 600px; }
}
.wk-ev small span { display: inline-block; white-space: nowrap; }
.wk-ev.wk-narrow { padding: 4px 4px; }
.wk-ev.wk-narrow em, .wk-ev.wk-narrow .wk-lab { display: none; }
.wk-ev.wk-narrow b { font-size: 12.5px; }
@media (max-width: 600px) { .wk-grid { min-width: 720px; } }
.wk-axis, .wk-head span:first-child { position: sticky; left: 0; z-index: 2; background: #fff; }
.wk-axis { background: repeating-linear-gradient(to bottom, #eceef2 0 1px, #fff 1px 42px); }

/* ── 다가오는 설명회 (10-20) ── 포스터 + 일시, 장소, 대상. 끝나면 JS 가 숨긴다 */
.events { background: var(--white); padding: 88px 16px 96px; }
.events-inner { max-width: var(--wrap); margin: 0 auto; }
.events .sec-center { margin-bottom: 40px; }
.events h2 { margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: -0.03em; color: var(--navy); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ev { margin: 0; display: flex; flex-direction: column; border-radius: 22px; background: var(--gray); overflow: hidden; }
.ev-poster { display: block; background: #dfe1e6; }
.ev-poster img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 1273; object-fit: contain; }  /* 포스터는 자르지 않는다 */
.ev-text { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ev-kicker { margin: 0 0 6px; font-family: var(--title); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; color: var(--kicker); }
.ev h3 { margin: 0 0 14px; font-family: var(--title); font-weight: 800; font-size: 19px; line-height: 1.4; letter-spacing: -0.02em; color: var(--navy); }
.ev-info { margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; line-height: 1.55; }
.ev-info dt { font-weight: 700; color: var(--navy); }
.ev-info dd { margin: 0; }
.ev-what { margin: 0 0 12px; padding-left: 1.1em; font-size: 14px; line-height: 1.6; color: var(--muted); }
.ev-what li { margin: 3px 0; }
.ev-host { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.ev-btns { margin: auto 0 0; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 960px) { .ev-list { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* 입시 파트 박은지 입시 팀장 (10-20) */
.profile.profile-sm { grid-template-columns: 160px 1fr; margin-top: 18px; background: var(--gray); }
.profile-sm .profile-photo { background: transparent; }
.profile-name { margin: 0 0 8px !important; font-family: var(--title); font-weight: 800; font-size: 20px; color: var(--navy); }
.profile-name small { font-size: 14px; font-weight: 700; color: var(--kicker); margin-left: 4px; }
.profile-sm .career li { font-size: 14px; line-height: 1.55; }
.profile-link { margin: 6px 0 0 !important; font-size: 14px; }
.pej-career { list-style: none; margin: 0 0 4px !important; padding: 0 !important; columns: 2; column-gap: 20px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pej-career li { margin: 0 0 4px !important; break-inside: avoid; }
@media (max-width: 600px) { .pej-career { columns: 1; } }
@media (max-width: 600px) { .profile.profile-sm { grid-template-columns: 1fr; } .profile-sm .profile-photo { width: 160px; } }
