/* 공개용으로 합친 스타일 — 고칠 때는 css/ 폴더의 원본 파일을 고치고 다시 빌드하세요 */
/* =========================================================
   디자인 토큰 — 테마 2종 (베이지 · 블랙)
   <html data-theme="beige"> 또는 <html data-theme="black"> 로 전환합니다.
   ★ 색을 바꿀 때는 이 파일의 값만 고치면 전체 페이지에 반영됩니다.
   ========================================================= */
:root {
  /* 브랜드 (로고에서 추출, 두 테마 공통) */
  --brand: #e95503;            /* 로고 주황 */
  --brand-btn: #cc4800;        /* 버튼 (흰 글씨 대비 확보) */
  --brand-btn-hover: #b33f00;
  --brand-soft: #ff8a3d;       /* 어두운 바탕 위 주황 글씨 */
  --brand-deep: #c24400;       /* 밝은 바탕 위 주황 글씨 */
  --logo-ink: #231815;         /* 로고 먹색 */

  /* 글꼴 */
  --font-sans: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", serif;

  /* 크기 */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.3rem, 1.6rem + 3.4vw, 4.3rem);

  /* 간격 · 모양 */
  --space-section: clamp(4rem, 2.6rem + 5.5vw, 7.5rem);
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  --mobile-bar-h: 64px;

  /* 움직임 강도 (data-motion 으로 바뀜) */
  --reveal-dist: 28px;
  --reveal-dur: 0.8s;
}

/* ---------- 테마 A: 베이지 · 밝은 톤 ---------- */
:root, [data-theme="beige"] {
  color-scheme: light;
  --bg: #f8f2e9;               /* 기본 바탕 */
  --bg-alt: #f0e6d7;           /* 번갈아 쓰는 바탕 */
  --surface: #fffdf9;          /* 카드 */
  --surface-2: #f6eee2;        /* 카드 안 상자 · 입력칸 */
  --ink: #231815;              /* 본문 글씨 */
  --ink-2: #5e524c;            /* 보조 글씨 */
  --ink-3: #8a7d76;            /* 흐린 글씨 */
  --line: rgba(35, 24, 21, 0.12);
  --accent-text: var(--brand-deep);
  /* 강조 띠 (실적 · 상담 · 푸터) */
  --band: #efe1cd;
  --band-ink: #231815;
  --band-ink-2: #5e524c;
  --band-line: rgba(35, 24, 21, 0.14);
  --band-card: rgba(255, 255, 255, 0.55);
  /* 첫 화면 */
  --hero-bg: radial-gradient(70% 60% at 82% 28%, rgba(233, 85, 3, 0.16), transparent 70%), linear-gradient(180deg, #fbf6ee 0%, #f3e7d6 100%);
  --hero-ink: #231815;
  --hero-ink-2: #5e524c;
  --hero-glass: rgba(255, 255, 255, 0.6);
  --header-solid: rgba(248, 242, 233, 0.94);
  --header-ink: #231815;
  --footer-bg: #231815;
  --footer-ink: #d9cfc8;
  --shadow: 0 14px 34px -18px rgba(70, 40, 20, 0.35);
}

/* ---------- 테마 B: 블랙 · 어두운 톤 ---------- */
[data-theme="black"] {
  color-scheme: dark;
  --bg: #141110;
  --bg-alt: #1b1715;
  --surface: #221c19;
  --surface-2: #2b2420;
  --ink: #f6efe8;
  --ink-2: #c3b8b1;
  --ink-3: #8f837c;
  --line: rgba(255, 255, 255, 0.12);
  --accent-text: var(--brand-soft);
  --band: #0c0a09;
  --band-ink: #f6efe8;
  --band-ink-2: #b3a9a4;
  --band-line: rgba(255, 255, 255, 0.14);
  --band-card: rgba(255, 255, 255, 0.05);
  --hero-bg: radial-gradient(60% 55% at 82% 28%, rgba(233, 85, 3, 0.32), transparent 70%), linear-gradient(180deg, #1c1513 0%, #0e0b0a 100%);
  --hero-ink: #f6efe8;
  --hero-ink-2: #b3a9a4;
  --hero-glass: rgba(255, 255, 255, 0.06);
  --header-solid: rgba(20, 17, 16, 0.92);
  --header-ink: #f6efe8;
  --footer-bg: #0a0807;
  --footer-ink: #b3a9a4;
  --shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
}

/* =========================================================
   색 규칙 (2026-11-29 원장님 의견 반영)
   ① 바탕 = 베이지 (본원 · 사직점 · 명지점 · 상세 페이지 모두 같음, 블랙 테마는 쓰지 않음)
   ② 주요 포인트 = 장독 주황 --brand (버튼 · 큰 숫자 · 강조 글자 · 로고)
   ③ 두 번째 포인트 = --accent2 (작은 이름표 · 섹션 머리글 · 태그 · '자세히 보기' 링크 · 표 머리)
      값은 js/core/settings.js 의 ACCENT2 20가지 중 하나 (data/site.js review.accent2)
   ④ 나머지 포인트 = 검정(먹색) --ink
   ========================================================= */
:root { --accent2: #6b3e26; }   /* 실제 적용 규칙은 css/base/accent2.css (맨 마지막에 불러옴) */

/* ---------- 움직임 강도 ---------- */
[data-motion="soft"] { --reveal-dist: 12px; --reveal-dur: 0.6s; }
[data-motion="off"] { --reveal-dist: 0px; --reveal-dur: 0s; }

/* 기본 리셋 · 공통 레이아웃 */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-md); line-height: 1.7;
  color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background 0.4s, color 0.4s;
}
body.is-intro { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--alt { background: var(--bg-alt); }
.section--band { background: var(--band); color: var(--band-ink); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 820px; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.eyebrow { display: inline-block; font-size: var(--fs-sm); font-weight: 800; color: var(--accent-text); margin-bottom: 0.7rem; }
.section-title { font-family: var(--font-serif); font-size: var(--fs-2xl); font-weight: 700; }
.section-lead { margin-top: 0.9rem; color: var(--ink-2); }
.section--band .section-lead { color: var(--band-ink-2); }
.more-link { font-weight: 700; font-size: var(--fs-sm); color: var(--accent-text); white-space: nowrap; }
.more-link::after { content: " →"; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

/* 스크롤 등장 효과 (강도는 tokens.css 의 --reveal-dist / --reveal-dur) */
.reveal { opacity: 0; transform: translateY(var(--reveal-dist)); transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-motion="off"] .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 원장님 검토용: 문구 · 사진 슬롯 표시 (검토 패널에서 켜고 끔) ---------- */
.show-slots [data-slot] { outline: 2px dashed rgba(233, 85, 3, 0.85); outline-offset: 3px; position: relative; }
.show-slots [data-slot]::after {
  content: attr(data-slot); position: absolute; left: 0; top: 0; z-index: 30; transform: translateY(-100%);
  padding: 2px 8px; border-radius: 6px 6px 6px 0; background: #e95503; color: #fff;
  font: 700 11px/1.5 var(--font-sans); letter-spacing: 0; white-space: nowrap; pointer-events: none;
}

/* =========================================================
   시작 화면 틀 — 실제 연출은 css/intro-effects.css + js/intro-effects.js
   ========================================================= */
.intro { position: fixed; inset: 0; z-index: 900; transition: opacity 0.5s var(--ease), visibility 0.5s; }
.intro.is-leaving { opacity: 0; visibility: hidden; }
.intro__stage { position: absolute; inset: 0; }
.intro__skip {
  position: absolute; z-index: 10; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem);
  font-size: var(--fs-xs); letter-spacing: 0.12em; color: #fff;
  padding: 0.55rem 1rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  background: rgba(0, 0, 0, 0.28); backdrop-filter: blur(4px);
}
.intro__skip:hover { background: rgba(0, 0, 0, 0.45); }
.intro__bar {
  position: absolute; z-index: 10; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--brand-soft); transform-origin: left;
  animation: introBar var(--intro-ms, 2600ms) linear both;
}
@keyframes introBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =========================================================
   시작 화면 효과 10종 — 공통 스타일
   모든 크기는 --u (화면 짧은 변의 1%) 기준이라
   전체 화면 · 미리보기 카드 · 모바일 어디서나 비율이 같습니다.
   ========================================================= */
.fx { --u: 1vmin; position: absolute; inset: 0; overflow: hidden; color: #fff; perspective: 1200px; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.fx--dark, .fx-bg { background: radial-gradient(120% 90% at 50% 45%, #3a2620 0%, #231815 55%, #110a08 100%); }
.fx--light { color: #231815; background: radial-gradient(110% 90% at 50% 40%, #fffdf9 0%, #fbf1e6 70%, #f3e2d1 100%); }
.fx-bg { position: absolute; inset: 0; }
.fx-scene { position: absolute; inset: 0; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.fx-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 로고 + 슬로건 + 학원명 묶음 (화면 정중앙) */
.fx-lockup {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 3);
  transform-style: preserve-3d;
}
.fx-logo { position: relative; width: calc(var(--u) * 30); aspect-ratio: 42.94 / 45.69; color: var(--brand); transform-style: preserve-3d; }
.fx-logo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fx-slogan { font-family: var(--font-serif); font-weight: 700; font-size: calc(var(--u) * 5); white-space: nowrap; letter-spacing: 0.03em; line-height: 1.3; }
.fx-ch { display: inline-block; }
.fx-sp { display: inline-block; width: 0.32em; }
.fx-ch.hl, .fx-word .hl {
  width: 1.3em; height: 1.3em; margin-right: 0.08em; border-radius: 50%;
  display: inline-grid; place-items: center; vertical-align: -0.1em;
  background: var(--brand); color: #fff; font-size: 0.85em;
}
.fx-name { font-size: calc(var(--u) * 2); letter-spacing: 0.5em; margin-right: -0.5em; color: #b3a9a4; }
.fx--light .fx-name { color: #6b5f5a; }
.fx-white .fx-logo, .fx-white .fx-slogan { color: #fff; }
.fx-white .fx-ch.hl { background: #fff; color: var(--brand); }
.fx-white .fx-name { color: rgba(255, 255, 255, 0.85); }

/* 3D 두께 · 빛 */
.fx-3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.fx-layer { position: absolute; inset: 0; color: #9c3700; }
.fx-face { position: absolute; inset: 0; filter: drop-shadow(0 0 calc(var(--u) * 2) rgba(233, 85, 3, 0.55)); }
.fx-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--logo-mask) center / 100% 100% no-repeat;
          mask: var(--logo-mask) center / 100% 100% no-repeat;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
}

/* 화면 중심(로고 중심) 기준 요소: --cx, --cy 는 스크립트가 계산 */
.fx-at { position: absolute; left: var(--cx); top: var(--cy); translate: -50% -50%; }
.fx-glow { width: calc(var(--u) * 95); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(233, 85, 3, 0.55) 0%, rgba(233, 85, 3, 0.12) 40%, transparent 70%); filter: blur(10px); }
.fx-rays {
  width: calc(var(--u) * 340); aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 138, 61, 0.1) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 55%); mask: radial-gradient(circle, #000 0%, transparent 55%);
}
.fx-ring { width: calc(var(--u) * 40); aspect-ratio: 1; border-radius: 50%; border: calc(var(--u) * 0.4) solid var(--brand-soft); z-index: 4; }
.fx-wave { position: absolute; left: 50%; top: 55%; translate: -50% -50%; width: 120%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 138, 61, 0.8); }
.fx-flash { width: calc(var(--u) * 60); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 220, 190, 0.6) 30%, transparent 70%); z-index: 4; }
.fx-dot { border-radius: 50%; background: var(--brand); z-index: 2; }
.fx-wipe { position: absolute; inset: 0; background: var(--brand); z-index: 6; }
.fx-hline { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.08); transform-origin: left; }

/* 장·독·대 원 */
.fx-ball {
  width: calc(var(--u) * 15); aspect-ratio: 1; border-radius: 50%; z-index: 3;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: calc(var(--u) * 7.5); color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff7a2e 0%, var(--brand) 45%, #c94600 100%);
  box-shadow: inset 0 calc(var(--u) * -0.8) calc(var(--u) * 1.6) rgba(0, 0, 0, 0.2), 0 calc(var(--u) * 1.5) calc(var(--u) * 4) rgba(0, 0, 0, 0.35);
}

/* 조각 */
.fx-tile { position: absolute; overflow: hidden; }
.fx-tile > div { position: absolute; inset: 0; }
.fx-tile svg { position: absolute; color: var(--brand); }

/* 셔터 */
.fx-stripe { position: absolute; top: 0; height: 100%; background: var(--brand); transform-origin: top; z-index: 1; }

/* 키네틱 타이포 */
.fx-panel { position: absolute; inset: 0; }
.fx-word { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; font-family: var(--font-serif); font-weight: 700; font-size: calc(var(--u) * 16); white-space: nowrap; }
.fx-word > span { display: block; }
.fx-word.on-orange .hl { background: #fff; color: var(--brand); }

/* 터널 */
.fx-tring { width: calc(var(--u) * 30); aspect-ratio: 42.94 / 45.69; z-index: 1; }
.fx-tring svg { width: 100%; height: 100%; overflow: visible; }

/* 타자 커서 */
.fx-caret { display: inline-block; width: 0.06em; height: 1em; margin-left: 0.06em; vertical-align: -0.12em; background: var(--brand-soft); }

/* 휴대폰 세로 화면 */
.fx-portrait .fx-line { display: block; text-align: center; }
.fx-portrait .fx-gap { display: none; }
.fx-portrait .fx-slogan { font-size: calc(var(--u) * 5.6); line-height: 1.45; }
.fx-portrait .fx-name { font-size: calc(var(--u) * 2.4); }
.fx-portrait .fx-word { font-size: calc(var(--u) * 11); }
.fx-portrait .fx-ball { width: calc(var(--u) * 13); font-size: calc(var(--u) * 6.5); }

/* ---------- 12 키노트 (PPT 스타일, 2026-11-29) ---------- */
.kn-slide { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; color: #231815; }
.kn-line { overflow: hidden; padding: 0.06em 0.1em; }
.kn-line > span { display: block; font-family: var(--font-sans); font-weight: 900; letter-spacing: -0.05em; font-size: calc(var(--u) * 17); line-height: 1.1; white-space: nowrap; }
.kn-line .hl { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-right: 0.04em; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.82em; vertical-align: 0.06em; }
.kn-line em { font-style: normal; color: var(--brand); }
.kn-on-orange { color: #fff; }
.kn-on-orange .hl { background: #fff; color: var(--brand); }
.kn-bar { position: absolute; left: 50%; top: calc(50% + var(--u) * 12); width: calc(var(--u) * 44); height: calc(var(--u) * 1.6); margin-left: calc(var(--u) * -22); background: #fff; border-radius: 99px; transform-origin: left; }
.kn-bento { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: calc(var(--u) * 2.4); padding: calc(var(--u) * 14) calc(var(--u) * 12); }
.kn-card { border-radius: calc(var(--u) * 3.5); background: #fff4ec; padding: calc(var(--u) * 4); display: flex; flex-direction: column; justify-content: flex-end; gap: calc(var(--u) * 1); color: #231815; }
.kn-card.is-main { grid-row: span 2; background: var(--brand); color: #fff; }
.kn-card strong { font-family: var(--font-sans); font-weight: 900; letter-spacing: -0.05em; line-height: 1; font-size: calc(var(--u) * 13); }
.kn-card:not(.is-main) strong { font-size: calc(var(--u) * 9); color: var(--brand); }
.kn-card strong sup { font-size: 0.45em; vertical-align: 0.9em; }
.kn-card strong small { font-size: 0.32em; margin-left: 0.1em; letter-spacing: 0; }
.kn-card span { font-weight: 800; font-size: calc(var(--u) * 2.4); opacity: 0.85; }
.fx-portrait .kn-line > span { font-size: calc(var(--u) * 12); }
.fx-portrait .kn-bento { grid-template-columns: 1fr; grid-template-rows: 1.4fr 1fr 1fr; padding: calc(var(--u) * 22) calc(var(--u) * 5); }
.fx-portrait .kn-card.is-main { grid-row: auto; }
.fx-portrait .kn-card span { font-size: calc(var(--u) * 3.4); }

/* 버튼 — css/components/button.css */
/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand-btn); color: #fff; }
.btn--primary:hover { background: var(--brand-btn-hover); }
.btn--ghost { border: 1px solid currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* 상담 신청서 스팸 방지 칸 (사람에게는 안 보임) */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 이미지 슬롯 — css/components/slot-image.css */
/* ---------- 이미지 슬롯 (사진이 없을 때 자리 표시) ---------- */
.slot-img {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--bg-alt) 14px 28px);
  display: grid; place-items: center; color: var(--ink-3); text-align: center;
}
.slot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-img__label { padding: 0.75rem; font-size: var(--fs-xs); font-weight: 700; line-height: 1.5; }
.slot-img__label svg { width: 28px; height: 28px; margin: 0 auto 0.35rem; color: var(--brand); opacity: 0.7; }

/* 헤더 · 메뉴 · 지점 전환 — css/layout/header.css */
/* ---------- 헤더 ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--hero-ink); transition: background 0.3s, box-shadow 0.3s, color 0.3s; }
.header.is-solid { background: var(--header-solid); color: var(--header-ink); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.on-light:not(.is-solid) { color: #231815; }
.header.on-dark:not(.is-solid) { color: #f6efe8; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; flex: none; }
.logo__img { height: 44px; width: auto; display: block; }
.logo__img--dark { display: none; }
[data-theme="black"] .logo__img--light { display: none; }
[data-theme="black"] .logo__img--dark { display: block; }
.logo__img--only { display: block; height: 56px; }
@media (max-width: 560px) { .logo__img { height: 36px; } }
.logo__mark { width: 32px; height: 34px; color: var(--brand); flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: grid; line-height: 1.15; }
.logo__name { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: 0.04em; }
.logo__sub { font-size: 0.68rem; font-weight: 600; opacity: 0.75; letter-spacing: 0.02em; }
.logo__branch { margin-left: 0.15rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--brand-btn); color: #fff; font-size: 0.78rem; font-weight: 800; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav > a, .nav__drop > button { font-size: var(--fs-sm); font-weight: 700; opacity: 0.88; transition: opacity 0.2s; }
.nav > a:hover, .nav > a.is-active, .nav__drop > button:hover { opacity: 1; }
.nav > a.is-active:not(.btn) { color: var(--accent-text); }   /* 상담 신청 버튼은 흰 글씨 유지 */
.nav .btn { opacity: 1; min-height: 42px; }
.nav__drop { position: relative; }
.nav__drop > button { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; }
.nav__drop > button::after { content: "▾"; font-size: 0.7em; }
.nav__menu {
  position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; min-width: 230px; padding: 0.5rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav__drop.is-open .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 0.7rem 0.85rem; border-radius: 8px; }
.nav__menu a:hover { background: var(--surface-2); }
.nav__menu strong { display: block; font-size: var(--fs-sm); }
.nav__menu small { color: var(--ink-3); font-size: var(--fs-xs); }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform 0.3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* 지점 전환 스위치 (지점 홈페이지 헤더) */
.branch-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.branch-switch a { padding: 0.35rem 0.85rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; opacity: 0.75; }
.branch-switch a[aria-current="page"] { background: var(--brand-btn); color: #fff; opacity: 1; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 2rem; overflow-y: auto; background: var(--bg); color: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav > a, .nav__drop > button { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-lg); opacity: 1; width: 100%; text-align: left; }
  .nav__drop > button::after { margin-left: auto; }
  .nav__menu { position: static; translate: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--surface-2); margin: 0.5rem 0; }
  .nav .btn { margin-top: 1.25rem; min-height: 52px; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .header { background: var(--bg); color: var(--ink); }
  .header .branch-switch { display: none; }
  .nav .branch-switch { display: inline-flex; margin-top: 1rem; align-self: flex-start; }
}
@media (min-width: 961px) { .nav .branch-switch--mobile { display: none; } }
/* 지금 보고 있는 메뉴 (지점 하위 페이지) */
.nav a[aria-current="page"]:not(.btn) { color: var(--accent-text); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* 첫 화면 브랜드 슬라이드 — css/sections/hero-brand.css */
/* ---------- 첫 화면 1장: 브랜드 ---------- */
.hero-brand { background: var(--hero-bg); color: var(--hero-ink); }
.hero-brand__logo {
  position: absolute; right: max(4vw, calc((100vw - var(--container)) / 2 + 8px)); top: 50%;
  width: min(30vw, 400px); transform: translateY(-50%); color: var(--brand); pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(233, 85, 3, 0.35));
}
.hero-brand__logo svg { width: 100%; height: auto; }
.hero-brand__logo img { width: 100%; border-radius: var(--radius); }
.hero__inner { position: relative; width: 100%; }
.hero__title { font-family: var(--font-serif); font-size: var(--fs-3xl); font-weight: 700; line-height: 1.18; }
.hero__title > span { display: block; }
.hero__title .mark { display: inline-grid; place-items: center; width: 1.12em; height: 1.12em; margin-right: 0.08em; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.9em; vertical-align: 0.06em; }
.hero__lead { margin-top: 1.25rem; max-width: 540px; color: var(--hero-ink-2); }
.hero__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero__branches { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero__branch {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 52px; padding: 0.35rem 1rem 0.35rem 0.4rem; border-radius: 999px;
  background: var(--hero-glass); border: 1px solid color-mix(in srgb, var(--hero-ink) 16%, transparent); font-weight: 800; backdrop-filter: blur(6px);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.hero__branch:hover { transform: translateY(-2px); border-color: var(--brand); }
.hero__branch b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-serif); }
.hero__branch small { display: block; font-weight: 600; font-size: var(--fs-xs); color: var(--hero-ink-2); }
@media (max-width: 1100px) { .hero-brand__logo { right: -8%; width: min(55vw, 420px); color: color-mix(in srgb, var(--brand) 16%, transparent); filter: none; } }
@media (max-width: 600px) { .hero-brand__logo { right: -18%; top: 36%; width: 72vw; } }

/* 지점 선택 카드 — css/sections/branch-cards.css */
/* ---------- 지점 선택 카드 ---------- */
.branch-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.branch-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.branch-card__media { aspect-ratio: 16 / 7; border-radius: 0; }
.branch-card__big { position: absolute; right: 1rem; top: 0.4rem; font-family: var(--font-serif); font-weight: 700; font-size: clamp(3.5rem, 2rem + 5vw, 6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--brand); opacity: 0.55; pointer-events: none; }
.branch-card__body { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: 0.9rem; flex: 1; }
.branch-card__name { font-family: var(--font-serif); font-size: var(--fs-xl); }
.branch-card__addr { color: var(--ink-2); font-size: var(--fs-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 0.75rem; border-radius: 999px; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.chip--brand { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--accent-text); }
.branch-card__phones { display: grid; gap: 0.35rem; font-size: var(--fs-sm); }
.branch-card__phones a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 700; }
.branch-card__phones span { color: var(--ink-3); font-weight: 600; }
.branch-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 0.4rem; }
.branch-card__go { font-weight: 800; color: var(--accent-text); }
@media (max-width: 760px) { .branch-cards { grid-template-columns: 1fr; } }

/* 수업 과정 · 수업 정보 · 입학 절차 — css/sections/courses.css */
/* ---------- 수업 과정 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.course { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.course__media { aspect-ratio: 16 / 9; border-radius: 0; }
.course__body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 0.7rem; flex: 1; align-content: start; }
.course__level { font-size: var(--fs-xs); font-weight: 800; color: var(--accent-text); }
.course__title { font-family: var(--font-serif); font-size: var(--fs-xl); }
.course__text { color: var(--ink-2); font-size: var(--fs-sm); }
.course__points li { position: relative; padding: 0.4rem 0 0.4rem 1.1rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.course__points li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.course__fee { margin-top: auto; padding-top: 0.6rem; font-weight: 800; }
@media (max-width: 900px) { .course-grid { grid-template-columns: 1fr; } .course { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .course__media { aspect-ratio: auto; height: 100%; } }
@media (max-width: 560px) { .course { display: flex; } .course__media { aspect-ratio: 16 / 8; } }

.info-grid { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
.info-box { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-box h3 { font-size: var(--fs-lg); margin-bottom: 0.8rem; }
.kv { display: grid; }
.kv > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.kv dt { color: var(--ink-3); font-weight: 700; }
.kv dd { font-weight: 600; }
.fee-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.fee-list dt { font-weight: 700; }
.fee-list dd { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.info-note { margin-top: 0.9rem; font-size: var(--fs-xs); color: var(--ink-3); }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }

.steps { margin-top: 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; counter-reset: s; }
.step { counter-increment: s; position: relative; padding: 1.3rem 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.step::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: var(--fs-sm); margin-bottom: 0.7rem; }
.step h3 { font-size: var(--fs-md); }
.step p { margin-top: 0.3rem; font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
/* 수업 사진이 없을 때는 글만 꽉 차게 (2026-11-29) */
@media (max-width: 900px) { .course:not(:has(.course__media)) { display: block; } }

/* 학교별 기출 분석 목록 — css/sections/schools.css */
/* ---------- 학교별 기출 분석 ---------- */
.school-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { min-height: 40px; padding: 0 1.1rem; border-radius: 999px; font-weight: 800; font-size: var(--fs-sm); color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--brand-btn); color: #fff; }
.search { position: relative; flex: 1 1 240px; max-width: 340px; }
.search input { width: 100%; min-height: 46px; padding: 0 1rem 0 2.6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.search svg { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); width: 18px; color: var(--ink-3); }
.school-group + .school-group { margin-top: 1.4rem; }
.school-group h3 { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 0.6rem; }
.school-group h3 b { color: var(--ink); }
.school-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 0.5rem; }
.school {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 54px; padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: var(--fs-sm);
}
.school > span:first-child { white-space: nowrap; }
a.school { transition: border-color 0.2s, transform 0.2s var(--ease); }
a.school:hover { border-color: var(--brand); transform: translateY(-2px); }
.school__tag { flex: none; font-size: 0.7rem; font-weight: 800; padding: 0.2rem 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--accent-text); }
.school__tag--plain { background: var(--surface-2); color: var(--ink-3); }
.school-branch { font-size: 0.7rem; color: var(--ink-3); font-weight: 600; }
.school.is-hidden { display: none; }
.school-empty { padding: 1.5rem; text-align: center; color: var(--ink-3); }

/* 원장 소개 — css/sections/principal.css */
/* ---------- 원장 소개 ---------- */
.principal { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.principal__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.principal__role { font-weight: 800; color: var(--accent-text); }
.principal__name { margin-top: 0.3rem; font-family: var(--font-serif); font-size: var(--fs-2xl); }
.principal__career { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.principal__quote { margin-top: 1.6rem; font-family: var(--font-serif); font-size: var(--fs-xl); line-height: 1.55; padding-left: 1.2rem; border-left: 3px solid var(--brand); }
.principal__greeting { margin-top: 1.4rem; display: grid; gap: 0.8rem; color: var(--ink-2); }
.principles { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.principle { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.principle__title { font-family: var(--font-serif); font-size: var(--fs-xl); color: var(--accent-text); }
.principle__sub { font-weight: 800; }
.principle p { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 860px) { .principal { grid-template-columns: 1fr; } .principal__photo { max-width: 320px; } .principles { grid-template-columns: 1fr; } }

/* 학원 공간 — css/sections/space.css */
/* ---------- 공간 소개 ---------- */
.space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 1rem 0.75rem; }
.space-grid[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; }
.space-grid[data-n="5"] .space-item:first-child { grid-row: span 2; }
.space-item { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.4rem; }
.space-item .slot-img { height: 100%; }
.space-item figcaption { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.space-video { margin-top: 1.25rem; aspect-ratio: 21 / 9; border-radius: var(--radius); }
@media (max-width: 760px) {
  .space-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.75rem; padding-bottom: 0.5rem; grid-auto-rows: auto; }
  .space-item { flex: 0 0 78%; scroll-snap-align: start; }
  .space-item .slot-img { aspect-ratio: 4 / 3; height: auto; }
  .space-video { aspect-ratio: 16 / 9; }
}
/* 사진 7장 (본원 메인): 첫 사진(사직점 외관, 세로)을 크게 — 4칸 × 2줄 (2026-11-29) */
.space-grid[data-n="7"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.space-grid[data-n="7"] .space-item:first-child { grid-row: span 2; }

/* 소식 · 블로그 · 채널 — css/sections/news-blog.css */
/* ---------- 소식 · 블로그 · 채널 ---------- */
.news-blog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.panel { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.panel__head h3 { font-size: var(--fs-lg); }
.news-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.8rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.news-item__status { grid-row: span 2; align-self: start; font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--brand-btn); color: #fff; white-space: nowrap; }
.news-item__status.is-closed { background: var(--surface-2); color: var(--ink-3); }
.news-item__title { font-weight: 700; }
.news-item__meta { font-size: var(--fs-xs); color: var(--ink-3); }
.blog-item { display: block; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.blog-item:hover .blog-item__title { color: var(--accent-text); }
.blog-item__date { font-size: var(--fs-xs); color: var(--ink-3); }
.blog-item__title { font-weight: 700; transition: color 0.2s; }
.channels { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.channel-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: var(--fs-sm); }
.channel-btn:hover { border-color: var(--brand); }
.channel-btn i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #03c75a; color: #fff; font-weight: 900; font-size: 0.8rem; }
.channel-btn i.k { background: #fee500; color: #191919; }
@media (max-width: 860px) { .news-blog { grid-template-columns: 1fr; } }

/* 자주 묻는 질문 — css/components/faq.css */
/* ---------- 자주 묻는 질문 ---------- */
.faq-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.faq-top__card { text-align: left; padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s var(--ease); }
.faq-top__card:hover { border-color: var(--brand); transform: translateY(-2px); }
.faq-top__q { font-weight: 800; }
.faq-top__a { margin-top: 0.5rem; color: var(--accent-text); font-weight: 700; font-size: var(--fs-sm); }
.faq-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pills { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; }
.pill { flex: none; min-height: 40px; padding: 0 1rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); }
.pill[aria-pressed="true"] { background: var(--brand-btn); border-color: var(--brand-btn); color: #fff; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 0.25rem; text-align: left; font-weight: 800; }
.faq-item__q::before { content: "Q"; flex: none; font-family: var(--font-serif); color: var(--brand); font-size: var(--fs-lg); }
.faq-item__text { flex: 1; }
.faq-item__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item__a > div { overflow: hidden; }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__short { padding: 0 0.25rem 0 2.3rem; font-weight: 800; color: var(--accent-text); }
.faq-item__long { padding: 0.3rem 0.25rem 1.3rem 2.3rem; color: var(--ink-2); font-size: var(--fs-sm); }
mark { background: color-mix(in srgb, var(--brand) 25%, transparent); color: inherit; border-radius: 2px; }
@media (max-width: 860px) { .faq-top { grid-template-columns: 1fr; } }

/* 상담 신청 — css/sections/consult.css */
/* ---------- 상담 (랜딩) ---------- */
.consult { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.consult__calls { margin-top: 1.6rem; display: grid; gap: 0.6rem; }
.call {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--band-card); border: 1px solid var(--band-line); transition: border-color 0.2s;
}
.call:hover { border-color: var(--brand); }
.call__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-btn); color: #fff; }
.call__icon svg { width: 18px; height: 18px; }
.call strong { display: block; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.call small { color: var(--band-ink-2); font-weight: 700; }
.consult__note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--band-ink-2); }

.form { padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.form__steps { display: flex; gap: 0.4rem; margin-bottom: 1.3rem; }
.form__steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background 0.3s; }
.form__steps span.is-done { background: var(--brand); }
.form__step[hidden] { display: none; }
.form__title { font-size: var(--fs-lg); margin-bottom: 1rem; }
.field { margin-bottom: 1rem; border: 0; padding: 0; margin-inline: 0; }
.field > label, .field > legend { display: block; margin-bottom: 0.45rem; font-size: var(--fs-sm); font-weight: 800; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: 16px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 0.5rem; }
.option-grid--wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: grid; place-items: center; min-height: 50px; padding: 0.4rem 0.7rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-sm); font-weight: 700; text-align: center; cursor: pointer; line-height: 1.35; }
.option span small { display: block; font-weight: 600; color: var(--ink-3); font-size: 0.75rem; }
.option input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--accent-text); }
.option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.field__error { margin-top: 0.3rem; font-size: var(--fs-xs); color: #d92d20; min-height: 1em; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); }
.consent input { margin-top: 0.35rem; width: 18px; height: 18px; accent-color: var(--brand); }
.consent details { margin-top: 0.3rem; font-size: var(--fs-xs); color: var(--ink-3); }
.form__nav { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.form__nav .btn { flex: 1; }
.form__done { text-align: center; padding: 1.5rem 0; }
.form__done-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.form__done-icon svg { width: 30px; }
@media (max-width: 860px) { .consult { grid-template-columns: 1fr; } }

/* 접수 주소 연결 전: 전화 상담 카드 (2026-11-29) */
.form--call .form__lead { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 0.4rem; }
.form-call__list { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.form-call__btn { justify-content: flex-start; gap: 0.8rem; padding: 0.9rem 1.2rem; height: auto; text-align: left; }
.form-call__btn span { display: grid; line-height: 1.25; font-size: 1.25rem; font-weight: 900; letter-spacing: -0.01em; }
.form-call__btn small { font-size: 0.78rem; font-weight: 700; opacity: 0.85; }

/* 강사 카드 · 강사 상세 — css/pages/teacher.css */
/* ---------- 강사 카드 ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.teacher-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teacher-card .slot-img { aspect-ratio: 4 / 5; border-radius: 0; }
.teacher-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.teacher-card__role { font-size: var(--fs-xs); color: var(--accent-text); font-weight: 800; }
.teacher-card__name { margin-top: 0.2rem; font-size: var(--fs-lg); }
.teacher-card__line { margin-top: 0.3rem; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 강사 상세 ---------- */
.t-hero { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3rem; background: var(--hero-bg); color: var(--hero-ink); }
.t-hero__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.t-hero .slot-img { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.t-hero__role { color: var(--accent-text); font-weight: 800; font-size: var(--fs-sm); }
.t-hero__name { margin-top: 0.4rem; font-family: var(--font-serif); font-size: var(--fs-2xl); }
.t-hero__line { margin-top: 0.8rem; font-size: var(--fs-lg); color: var(--hero-ink-2); }
.breadcrumb { font-size: var(--fs-xs); color: var(--hero-ink-2); margin-bottom: 1.5rem; }
.t-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.t-section__title { font-size: var(--fs-sm); color: var(--accent-text); font-weight: 800; margin-bottom: 1.2rem; }
.t-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.t-feature { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.t-feature h3 { font-size: var(--fs-lg); }
.t-feature p { margin-top: 0.5rem; color: var(--ink-2); font-size: var(--fs-sm); }
.t-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.t-table th, .t-table td { text-align: left; padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--line); }
.t-table th { font-size: var(--fs-xs); color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.t-career li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.t-notice { padding: 1.1rem 1.3rem; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.t-quote { font-family: var(--font-serif); font-size: var(--fs-xl); line-height: 1.6; max-width: 760px; }
.t-cta { margin-block: 3rem 2rem; padding: 1.8rem; border-radius: var(--radius); background: var(--brand-btn); color: #fff; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.t-cta .btn { background: #fff; color: var(--brand-btn); }
@media (max-width: 720px) {
  .t-hero__grid { grid-template-columns: 1fr; } .t-hero .slot-img { max-width: 240px; }
  .t-table thead { display: none; } .t-table tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); } .t-table td { display: block; padding: 0.1rem 0; border: 0; }
}
/* 강사 사진이 없을 때 (2026-11-29) */
.t-hero__grid:not(:has(.slot-img)) { grid-template-columns: 1fr; }

/* 푸터 — css/layout/footer.css */
/* ---------- 푸터 ---------- */
.footer { padding-block: 3rem calc(3rem + var(--mobile-bar-h)); background: var(--footer-bg); color: var(--footer-ink); font-size: var(--fs-sm); }
.footer .logo { color: #fff; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.footer h4 { color: #fff; font-size: var(--fs-md); margin-bottom: 0.6rem; }
.footer p + p { margin-top: 0.25rem; }
.footer a:hover { color: #fff; }
.footer__links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-weight: 700; }
.footer__copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--fs-xs); opacity: 0.75; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }
@media (min-width: 961px) { .footer { padding-bottom: 3rem; } }

/* 모바일 하단 상담 바 — css/layout/mobile-bar.css */
/* ---------- 모바일 하단 상담 바 ---------- */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 90; height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
    background: color-mix(in srgb, var(--logo-ink) 96%, transparent); backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform 0.35s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 10px; font-size: var(--fs-xs); font-weight: 800; color: #fff; background: #3e322d; line-height: 1.25; text-align: center; }
  .mobile-bar a small { font-weight: 600; font-size: 0.68rem; opacity: 0.8; }
  .mobile-bar a.is-primary { background: var(--brand-btn); }
}
.fab { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 960px) { .fab { display: none; } }

/* ---------- 오른쪽 퀵메뉴 (PC 전용, 2026-11-29) ---------- */
.qm { display: none; }
@media (min-width: 961px) {
  .qm { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .qm__item { width: 74px; padding: 0.7rem 0.3rem 0.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 22px -14px rgba(60, 30, 10, 0.45); color: var(--ink); font-size: 0.72rem; font-weight: 800; text-align: center; transition: transform 0.2s var(--ease), border-color 0.2s; }
  .qm__item svg { width: 22px; height: 22px; color: var(--brand-deep); }
  .qm__item:hover { transform: translateX(-3px); border-color: var(--brand); }
  .qm__item--main { background: var(--brand-btn); border-color: var(--brand-btn); color: #fff; }
  .qm__item--main svg { color: #fff; }
  .qm__top { margin-top: 4px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
  .qm__top svg { width: 18px; height: 18px; transform: rotate(-90deg); }
}
/* 오른쪽 퀵메뉴가 생겨서 PC 둥근 상담 버튼은 숨김 (2026-11-29) */
.fab { display: none !important; }
/* 퀵메뉴 크기 (2026-11-29 재조정: '너무 작다' → 키움) */
@media (min-width: 961px) {
  .qm { right: 14px; gap: 8px; }
  .qm__item { width: 84px; padding: 0.85rem 0.3rem 0.75rem; border-radius: 16px; font-size: 0.86rem; font-weight: 700; gap: 0.35rem; letter-spacing: -0.02em; }
  .qm__item svg { width: 26px; height: 26px; }
  .qm__top { width: 50px; height: 50px; }
  .qm__top svg { width: 20px; height: 20px; }
}

/* 확인 필요 자리 · 카카오 · 시간표 · [예시] 표시 — css/components/notes.css */
/* ---------- 원장님 확인 필요 자리 · 카카오 · 시간표 · 연락 시점 ---------- */
.todo { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; border: 1px dashed var(--brand); color: var(--accent-text); font-size: 0.85em; font-weight: 700; background: color-mix(in srgb, var(--brand) 7%, transparent); }
.call--kakao .call__icon { background: #fee500; color: #191919; }
.call--kakao.is-empty, .channel-btn.is-empty { border-style: dashed; opacity: 0.75; cursor: default; }
.consult__reply { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 700; background: var(--band-card); border: 1px solid var(--band-line); }
.consult__reply svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.form__reply .consult__reply { margin-top: 1rem; background: var(--surface-2); border-color: var(--line); }
.mobile-bar a.is-kakao { background: #fee500 !important; color: #191919 !important; }
.tt { margin-bottom: 1.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.tt__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; margin-bottom: 1rem; }
.tt__head h3 { font-size: var(--fs-lg); }
.tt__head .info-note { margin: 0; }
.tt__scroll { overflow-x: auto; }
.tt__table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: var(--fs-sm); }
.tt__table th, .tt__table td { padding: 0.85rem 0.75rem; border-top: 1px solid var(--line); text-align: left; }
.tt__table thead th { border-top: 0; color: var(--ink-3); font-size: var(--fs-xs); }
.tt__table tbody th { width: 5.5em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* [예시] 표시 */
.ex-tag { display: inline-block; margin-right: 0.35em; padding: 0.05em 0.5em; border-radius: 999px; font-size: 0.72em; font-weight: 800; letter-spacing: 0; vertical-align: 0.12em; background: #fdebdd; color: #c24400; border: 1px dashed #e95503; }

/* 하위 페이지 공통(학교 분석 · 공지) — css/pages/subpage.css */
/* =========================================================
   하위 페이지 공통: 학교별 기출 분석(school.html) · 공지(notice.html)
   ========================================================= */
a.news-item { color: inherit; text-decoration: none; border-radius: 6px; }
a.news-item:hover .news-item__title { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.p-hero { padding: calc(var(--header-h) + 2.6rem) 0 2.6rem; background: var(--hero-bg); color: var(--hero-ink); }
.p-hero .eyebrow { margin-top: 0.8rem; }
.crumb { font-size: var(--fs-xs); color: var(--hero-ink-2); }
.crumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.p-hero__title { margin-top: 0.5rem; font-family: var(--font-serif); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.3; word-break: keep-all; }
.p-hero__lead { margin-top: 0.9rem; max-width: 52rem; color: var(--hero-ink-2); line-height: 1.75; word-break: keep-all; }
.p-hero__cta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.doc { min-width: 0; line-height: 1.8; word-break: keep-all; }
.doc > * + * { margin-top: 1.2rem; }
.doc-sec + .doc-sec { margin-top: 2.6rem; }
.doc-sec h2 { font-size: var(--fs-xl); padding-bottom: 0.5rem; border-bottom: 2px solid var(--brand); margin-bottom: 1rem; }
.doc-sec > * + * { margin-top: 0.9rem; }
.doc-sub { padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.doc-sub h3 { font-size: var(--fs-md); color: var(--accent-text); }
.doc-sub p { margin-top: 0.35rem; color: var(--ink-2); }
.doc-ul { padding-left: 1.2rem; list-style: disc; color: var(--ink-2); }
.doc-ul li + li { margin-top: 0.4rem; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 420px; }
.tbl th, .tbl td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.tbl tr:first-child th, .tbl tr:first-child td { border-top: 0; }
.tbl thead th { background: var(--surface-2); }
.tbl tbody th { width: 8.5rem; background: var(--surface); color: var(--accent-text); white-space: nowrap; }
.steps--doc { margin-top: 0; grid-template-columns: 1fr 1fr; }
.doc-qa summary { cursor: pointer; list-style: none; }
.doc-qa summary::-webkit-details-marker { display: none; }
.doc-qa .faq-item__long { padding: 0 0.25rem 1.1rem 2rem; color: var(--ink-2); }
.doc-side { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
.doc-card { padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc-card h3 { font-size: var(--fs-md); margin-bottom: 0.8rem; }
.doc-card dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.5rem; padding: 0.45rem 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.doc-card dt { font-weight: 800; color: var(--ink-3); }
.doc-card dd { font-weight: 700; word-break: keep-all; }
.doc-card .btn { width: 100%; margin-top: 0.6rem; }
.doc-card .chips a { text-decoration: none; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .doc-side { position: static; } }
@media (max-width: 520px) { .steps--doc { grid-template-columns: 1fr; } }
.section--tight { padding-block: clamp(1.8rem, 4vw, 3rem); }
.notice-tools { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; margin-bottom: 1.2rem; }
.notice-list { border-top: 2px solid var(--ink); }
.notice-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.4rem 1rem; align-items: center; padding: 1.1rem 0.3rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.notice-row:hover .notice-row__title { color: var(--accent-text); }
.notice-row__title { font-weight: 800; word-break: keep-all; }
.notice-row__title small { display: block; margin-top: 0.15rem; font-weight: 500; font-size: var(--fs-sm); color: var(--ink-3); }
.notice-row__meta { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; }
@media (max-width: 640px) { .notice-row { grid-template-columns: auto minmax(0, 1fr); } .notice-row__meta { grid-column: 2; white-space: normal; } }
.notice-empty { padding: 2rem 0; text-align: center; color: var(--ink-3); }
.notice-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.8rem; }
.notice-poster { aspect-ratio: 3 / 4; max-width: 420px; border-radius: var(--radius); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.notice-row .news-item__status { min-width: 4.2rem; text-align: center; }

/* 학원 소개 · 블로그 — css/pages/about.css */
/* 학원 소개(about.html) · 블로그(news.html) */
.p-hero__title--long { font-size: clamp(1.35rem, 2.8vw, 2rem); max-width: 46rem; line-height: 1.5; }
.doc-layout--wide { grid-template-columns: minmax(0, 52rem); justify-content: center; }
.doc-quote { margin: 0.4rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-serif); font-size: var(--fs-lg); line-height: 1.6; color: var(--ink); }
.doc-note { padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--accent-text); font-weight: 700; font-size: var(--fs-sm); }
.doc b { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--brand) 22%, transparent) 0); }
.doc .principles { margin-top: 0; }
.greeting { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.greeting__side { position: sticky; top: calc(var(--header-h) + 1rem); }
.greeting__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.greeting__role { margin-top: 1rem; font-weight: 800; }
.greeting__career { margin-top: 0.5rem; display: grid; gap: 0.3rem; font-size: var(--fs-sm); color: var(--ink-2); }
.greeting__career li::before { content: "· "; color: var(--brand); }
.greeting__letter > * + * { margin-top: 1rem; }
.greeting__sign { text-align: right; font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-lg); }
.about-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
@media (max-width: 860px) { .greeting { grid-template-columns: 1fr; } .greeting__side { position: static; max-width: 320px; } }
.hero__h1 { font-family: inherit; letter-spacing: inherit; line-height: inherit; }

/* =========================================================
   첫 화면 홍보 슬라이드
   - 좌우로 넘기는 기본 스크롤(손가락으로 밀기 · 스크롤 스냅) + 이전/다음 버튼 + 점 + 키보드 ← →
   - 자동 넘김(기본 6초), 마우스를 올리거나 멈춤을 누르면 정지
   - 테마 3가지: orange(주황) · dark(먹색) · paper(한지)
   ========================================================= */
.hero { position: relative; overflow: hidden; }
.hero__track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__track:focus-visible { outline: none; }
.hero__slide {
  position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
  padding-block: calc(var(--header-h) + 3rem) calc(clamp(3rem, 8vw, 5rem) + 64px);
}
@media (prefers-reduced-motion: reduce) { .hero__track { scroll-behavior: auto; } }

/* ---------- 조작부 ---------- */
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; color: #fff; pointer-events: none; }
.hero-ctrl__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0 1.25rem; }
.hero-ctrl__dots, .hero-ctrl__right { display: flex; align-items: center; gap: 0.5rem; pointer-events: auto; }
.hero-ctrl__dot { width: 28px; height: 44px; display: grid; place-items: center; }
.hero-ctrl__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; opacity: 0.4; transition: width 0.3s var(--ease), opacity 0.3s; }
.hero-ctrl__dot[aria-selected="true"]::before { width: 24px; opacity: 1; }
.hero-ctrl__count { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); font-weight: 700; margin-right: 0.5rem; opacity: 0.9; }
.hero-ctrl__count b { font-size: 1.25em; }
.hero-ctrl__btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35); font-size: 1rem; font-weight: 700; color: inherit;
  background: rgba(0, 0, 0, 0.15); backdrop-filter: blur(6px); transition: background 0.2s;
}
.hero-ctrl__btn:hover { background: rgba(0, 0, 0, 0.35); }
.hero-ctrl__btn#hero-pause { font-size: 0.7rem; letter-spacing: -0.1em; }
.hero-ctrl__progress { height: 3px; background: rgba(255, 255, 255, 0.15); }
.hero-ctrl__progress span { display: block; height: 100%; width: 100%; background: var(--brand-soft); transform-origin: left; transform: scaleX(0); }
/* 밝은(한지) 슬라이드 위에서는 조작부를 어둡게 */
.hero-ctrl { color: #fff; }
.hero.on-light .hero-ctrl { color: #231815; }
.hero.on-light .hero-ctrl__btn { border-color: rgba(35, 24, 21, 0.3); background: rgba(255, 255, 255, 0.5); }
.hero.on-light .hero-ctrl__progress { background: rgba(35, 24, 21, 0.12); }
.hero.on-light .hero-ctrl__progress span { background: var(--brand); }
@media (max-width: 560px) { .hero-ctrl__count { display: none; } .hero-ctrl__btn { width: 40px; height: 40px; } }


/* ---------- 홍보물 슬라이드 공통 ---------- */
.promo { width: 100%; }
.promo__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.promo__badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.85rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800;
  background: rgba(255, 255, 255, 0.16); color: inherit;
}
.promo__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: promoBlink 1.4s infinite; }
@keyframes promoBlink { 50% { opacity: 0.25; } }
.promo__title { margin-top: 1rem; font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-3xl); line-height: 1.15; }
.promo__title span { display: block; }
.promo__sub { margin-top: 1.1rem; max-width: 520px; font-size: var(--fs-md); opacity: 0.88; }
.promo__facts { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; border-top: 1px solid currentColor; border-color: rgba(255, 255, 255, 0.3); }
.promo__fact { padding: 0.85rem 0.9rem 0 0; }
.promo__fact + .promo__fact { padding-left: 0.9rem; border-left: 1px solid rgba(255, 255, 255, 0.3); }
.promo__fact dt { font-size: var(--fs-xs); font-weight: 700; opacity: 0.75; }
.promo__fact dd { margin: 0.2rem 0 0; font-weight: 700; font-size: var(--fs-sm); line-height: 1.45; }
.promo__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.promo__note { font-size: var(--fs-xs); opacity: 0.7; }
.promo__note::before { content: "※ "; }
.promo__visual { position: relative; display: grid; place-items: center; }

/* 등장: 보이는 슬라이드만 */
.promo .promo__copy > *, .promo .promo__visual { opacity: 0; transform: translateY(var(--reveal-dist)); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.hero__slide.is-active .promo__copy > *, .hero__slide.is-active .promo__visual { opacity: 1; transform: none; }
.hero__slide.is-active .promo__copy > :nth-child(2) { transition-delay: 0.08s; }
.hero__slide.is-active .promo__copy > :nth-child(3) { transition-delay: 0.16s; }
.hero__slide.is-active .promo__copy > :nth-child(4) { transition-delay: 0.24s; }
.hero__slide.is-active .promo__copy > :nth-child(5) { transition-delay: 0.32s; }
.hero__slide.is-active .promo__visual { transition-delay: 0.2s; }

/* ---------- 테마: 주황 ---------- */
.hero__slide--orange { background: radial-gradient(90% 80% at 80% 30%, #ff7a2e 0%, var(--brand) 45%, #c94600 100%); color: #fff; }
.hero__slide--orange .btn--primary { background: #fff; color: var(--brand-btn); }
.hero__slide--orange .btn--primary:hover { background: #f6efe8; }

/* ---------- 테마: 먹색 ---------- */
.hero__slide--dark { background: radial-gradient(70% 70% at 85% 40%, rgba(233, 85, 3, 0.35), transparent 70%), #231815; color: #f6efe8; }
.hero__slide--dark .promo__badge { background: var(--brand-btn); color: #fff; }

/* ---------- 테마: 한지 ---------- */
.hero__slide--paper { background: radial-gradient(110% 90% at 30% 20%, #fffdf9 0%, #fbf1e6 60%, #f1dfcb 100%); color: #231815; }
.hero__slide--paper .promo__badge { background: #fdebdd; color: var(--brand-deep); }
.hero__slide--paper .promo__facts, .hero__slide--paper .promo__fact + .promo__fact { border-color: rgba(35, 24, 21, 0.18); }
.hero__slide--paper .promo__title span:last-child { color: var(--brand-deep); }

/* ---------- 시각물 1: 로고 인장 ---------- */
.pv-emblem { position: relative; width: min(30vw, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.pv-emblem__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.55); animation: pvSpin 30s linear infinite; }
.pv-emblem__seal { width: 78%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: 0 30px 60px -25px rgba(80, 20, 0, 0.6); }
.pv-emblem__seal svg { width: 52%; height: auto; }
.pv-emblem__cap {
  position: absolute; right: -2%; bottom: 8%;
  padding: 0.55rem 1rem; border-radius: 999px; background: #231815; color: #fff;
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(1rem, 0.8rem + 0.8vw, 1.4rem);
  transform: rotate(-6deg); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}
@keyframes pvSpin { to { transform: rotate(360deg); } }

/* ---------- 시각물 2: 큰 숫자 + 단계 ---------- */
.pv-number { display: grid; justify-items: center; gap: 1rem; }
.pv-number__big { font-family: var(--font-serif); font-weight: 700; line-height: 0.9; font-size: clamp(7rem, 4rem + 12vw, 15rem); color: transparent; -webkit-text-stroke: 2px var(--brand-soft); position: relative; }
.pv-number__big b { color: var(--brand); -webkit-text-stroke: 0; position: absolute; inset: 0; clip-path: inset(55% 0 0 0); }
.pv-number__big small { font-size: 0.3em; color: #f6efe8; -webkit-text-stroke: 0; margin-left: 0.05em; }
.pv-number__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; counter-reset: st; }
.pv-number__steps li { counter-increment: st; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); font-size: var(--fs-sm); font-weight: 700; background: rgba(255, 255, 255, 0.05); }
.pv-number__steps li::before { content: counter(st) " "; color: var(--brand-soft); }

/* ---------- 시각물 3: 날짜 입장권 ---------- */
.pv-ticket {
  position: relative; width: min(30vw, 340px); padding: 2rem 1.8rem 1.6rem; border-radius: 18px;
  background: #fff; color: #231815; text-align: center;
  box-shadow: 0 40px 70px -35px rgba(80, 40, 10, 0.55); transform: rotate(3deg);
}
.pv-ticket::before, .pv-ticket::after { content: ""; position: absolute; top: 62%; width: 28px; height: 28px; border-radius: 50%; background: #f6e8d8; }
.pv-ticket::before { left: -14px; } .pv-ticket::after { right: -14px; }
.pv-ticket__label { font-size: var(--fs-xs); font-weight: 800; color: var(--brand-deep); }
.pv-ticket__date { margin-top: 0.4rem; font-family: var(--font-serif); font-weight: 700; font-size: clamp(3.4rem, 2rem + 4vw, 5.2rem); line-height: 1; letter-spacing: -0.02em; }
.pv-ticket__day { margin-top: 0.4rem; font-weight: 700; }
.pv-ticket__cut { margin: 1.3rem -1.8rem 1rem; border-top: 2px dashed rgba(35, 24, 21, 0.18); }
.pv-ticket__time { font-weight: 800; font-size: var(--fs-lg); }
.pv-ticket__seal { position: absolute; right: -22px; top: -26px; width: 86px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; transform: rotate(-12deg); box-shadow: 0 10px 20px -8px rgba(150, 50, 0, 0.6); }
.pv-ticket__seal svg { width: 52%; height: auto; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 860px) {
  .promo__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .promo__visual { order: -1; justify-items: start; }
  .hero__slide { padding-top: calc(var(--header-h) + 4.5rem); }
  .pv-emblem { width: 120px; }
  .pv-emblem__cap { font-size: 0.9rem; right: -30%; bottom: 6%; }
  .pv-number { justify-items: start; }
  .pv-number__big { font-size: 5rem; }
  .pv-number__steps { justify-content: flex-start; }
  .pv-ticket { width: 190px; padding: 0.9rem 1rem 0.8rem; transform: rotate(2deg); }
  .pv-ticket__date { font-size: 2.4rem; }
  .pv-ticket__time { font-size: var(--fs-md); }
  .pv-ticket__cut { margin: 0.6rem -1rem 0.5rem; }
  .pv-ticket__seal { width: 54px; right: -12px; top: -14px; }
  .pv-ticket::before, .pv-ticket::after { width: 20px; height: 20px; }
  .pv-ticket::before { left: -10px; } .pv-ticket::after { right: -10px; }
  .promo__facts { grid-template-columns: 1fr; border-top: 0; }
  .promo__fact, .promo__fact + .promo__fact { padding: 0.55rem 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); display: flex; gap: 1rem; }
  .hero__slide--paper .promo__fact { border-color: rgba(35, 24, 21, 0.15); }
  .promo__fact dt { width: 3.5em; flex: none; }
  .promo__fact dd { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pv-emblem__ring, .promo__badge::before { animation: none; }
  .promo .promo__copy > *, .promo .promo__visual { opacity: 1; transform: none; }
}

[data-motion="off"] .promo .promo__copy > *, [data-motion="off"] .promo .promo__visual { opacity: 1; transform: none; }
[data-motion="off"] .pv-emblem__ring, [data-motion="off"] .promo__badge::before { animation: none; }

/* =========================================================
   실적 홍보 효과
   1) 히어로 첫 화면 등장 연출 + 실적 띠
   2) 실적 섹션: 마우스를 따라오는 주황 빛, 제목 닦아내기, 숫자 롤링(오도미터)
   3) 기울어진 2줄 실적 전광판 (반대 방향으로 흐름)
   4) 합격 카드: 회전하는 빛 테두리(대표 합격) + 뒤집히며 등장
   ========================================================= */

/* ---------- 1. 히어로 등장 ---------- */
.js-anim .hero-brand .hero__inner .eyebrow,
.js-anim .hero__title > span,
.js-anim .hero__lead,
.js-anim .hero__cta,
.js-anim .hero__branches,
.js-anim .hero-proof__item { opacity: 0; transform: translateY(36px); }
.js-anim .hero__title .mark { transform: scale(0) rotate(-120deg); }

.is-ready .hero-brand .hero__inner .eyebrow,
.is-ready .hero__title > span,
.is-ready .hero__lead,
.is-ready .hero__cta,
.is-ready .hero__branches,
.is-ready .hero-proof__item {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}
.is-ready .hero__title > span:nth-child(1) { transition-delay: 0.05s; }
.is-ready .hero__title > span:nth-child(2) { transition-delay: 0.15s; }
.is-ready .hero__title > span:nth-child(3) { transition-delay: 0.25s; }
.is-ready .hero__lead { transition-delay: 0.4s; }
.is-ready .hero__cta { transition-delay: 0.5s; }
.is-ready .hero__branches { transition-delay: 0.58s; }
.is-ready .hero-proof__item:nth-child(1) { transition-delay: 0.65s; }
.is-ready .hero-proof__item:nth-child(2) { transition-delay: 0.75s; }
.is-ready .hero-proof__item:nth-child(3) { transition-delay: 0.85s; }
.is-ready .hero__title .mark { transform: none; transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.is-ready .hero__title > span:nth-child(1) .mark { transition-delay: 0.25s; }
.is-ready .hero__title > span:nth-child(2) .mark { transition-delay: 0.35s; }
.is-ready .hero__title > span:nth-child(3) .mark { transition-delay: 0.45s; }

/* 히어로 하단 실적 띠 */
.hero-proof {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
  border-radius: var(--radius);
  background: var(--hero-glass);
  border: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent);
  backdrop-filter: blur(8px);
}
.hero-proof__item { padding: 1.1rem 1.25rem; }
.hero-proof__item + .hero-proof__item { border-left: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent); }
.hero-proof__num { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1; color: var(--hero-ink); font-variant-numeric: tabular-nums; }
.hero-proof__num em { font-style: normal; color: var(--brand); }
.hero-proof__num small { font-size: 0.5em; margin-left: 0.1em; color: var(--hero-ink-2); }
.hero-proof__label { margin-top: 0.45rem; font-size: var(--fs-xs); color: var(--hero-ink-2); line-height: 1.45; }
@media (max-width: 560px) {
  .hero-proof__item { padding: 0.85rem 0.7rem; }
  .hero-proof__label { font-size: 0.72rem; }
}

/* ---------- 2. 실적 섹션 ---------- */
.results {
  --mx: 50%; --my: 30%;
  position: relative; overflow: hidden;
  padding-block: var(--space-section);
  background: var(--band); color: var(--band-ink);
}
.results__spot {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(233, 85, 3, 0.28), transparent 60%),
    linear-gradient(color-mix(in srgb, var(--band-ink) 5%, transparent) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, color-mix(in srgb, var(--band-ink) 5%, transparent) 1px, transparent 1px) 0 0 / 48px 100%;
  transition: background-position 0.2s;
}
.results__inner { position: relative; }
.results__head { max-width: 900px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.results .eyebrow { color: var(--accent-text); }
.results .section-lead { color: var(--band-ink-2); }

/* 제목: 왼쪽에서 오른쪽으로 닦아내듯 등장 */
.results__title { font-family: var(--font-serif); font-size: clamp(2.4rem, 1.4rem + 5vw, 5.2rem); line-height: 1.12; font-weight: 700; }
.results__title .line { display: block; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1); }
.results__title .line:last-child { color: var(--brand); transition-delay: 0.2s; position: relative; width: fit-content; }
.results__title .line:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.14em; height: 0.08em; border-radius: 0.08em;
  background: var(--brand-soft); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease) 1.1s;
}
.results__title.is-visible .line { clip-path: inset(0 0 0 0); }
.results__title.is-visible .line:last-child::after { transform: scaleX(1); }

/* 숫자 롤링 */
.odo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.odo {
  position: relative; padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius); overflow: hidden;
  background: var(--band-card);
  border: 1px solid var(--band-line);
}
.odo::before { /* 숫자가 다 굴러가면 위쪽 주황 선이 채워짐 */
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) 0.3s;
}
.odo.is-visible::before { transform: scaleX(1); }
.odo__num {
  display: flex; align-items: flex-start;
  font-family: var(--font-serif); font-weight: 700; color: var(--band-ink);
  font-size: clamp(3.6rem, 2rem + 6vw, 7.5rem); line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: text-shadow 0.6s;
}
.odo.is-done .odo__num { text-shadow: 0 0 28px rgba(255, 138, 61, 0.45); }
.odo__digit { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1); }
.odo__strip span { height: 1em; display: block; text-align: center; }
.odo__plus {
  color: var(--brand-soft); font-size: 0.55em; margin-left: 0.05em;
  transform: scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.odo.is-done .odo__plus { transform: none; }
.odo__unit { font-size: 0.32em; color: var(--band-ink-2); align-self: flex-end; margin: 0 0 0.25em 0.15em; }
.odo__label { margin-top: 1rem; font-weight: 700; font-size: var(--fs-md); }
@media (max-width: 860px) { .odo-stats { grid-template-columns: 1fr; } .odo { display: flex; align-items: center; gap: 1.2rem; } .odo__label { margin-top: 0; } }

/* ---------- 3. 실적 전광판 ---------- */
.marquee { position: relative; margin-block: clamp(3.5rem, 8vw, 6rem); }
.marquee__row {
  width: 110vw; margin-left: -5vw;
  display: flex; overflow: hidden;
  padding-block: clamp(0.8rem, 1.6vw, 1.2rem);
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.3rem, 0.9rem + 1.8vw, 2.4rem);
  white-space: nowrap;
}
.marquee__row--a { background: var(--brand); color: #fff; transform: rotate(-2.2deg); position: relative; z-index: 1; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6); }
.marquee__row--b { background: #120b09; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55); transform: rotate(1.6deg); margin-top: -0.4rem; }
.marquee__track { display: flex; flex: none; animation: marquee 32s linear infinite; }
.marquee__row--b .marquee__track { animation-direction: reverse; animation-duration: 38s; }
.marquee__row:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; padding-inline: 1.4rem; }
.marquee__item::after { content: ""; width: 0.38em; height: 0.38em; margin-left: 2.8rem; border-radius: 50%; background: currentColor; flex: none; }
.marquee__row--a .marquee__item::after { background: #231815; }
.marquee__row--b .marquee__item::after { background: var(--brand); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 4. 합격 카드 ---------- */
.pass-wall__title { font-family: var(--font-serif); font-size: var(--fs-xl); margin-bottom: 1.25rem; }
.pass-wall__title::before { content: "🎉"; margin-right: 0.4rem; }
.pass-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; perspective: 1000px; }
.pass-card {
  position: relative; padding: 1.4rem; border-radius: var(--radius);
  background: var(--band-card); border: 1px solid var(--band-line);
  opacity: 0; transform: rotateX(-70deg) translateY(30px); transform-origin: top;
  transition: opacity 0.6s var(--ease), transform 0.9s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.pass-card.is-visible { opacity: 1; transform: none; }
.pass-card__univ { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 700; }
.pass-card__dept { margin-top: 0.2rem; color: var(--band-ink-2); font-size: var(--fs-sm); }
.pass-card__meta { margin-top: 1rem; display: flex; justify-content: space-between; gap: 0.5rem; font-size: var(--fs-xs); color: var(--band-ink-2); }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: rgba(255, 138, 61, 0.16); color: var(--brand-soft); }

/* 대표 합격: 2칸 크기 + 회전하는 주황 빛 테두리 */
.pass-card--featured { grid-column: span 2; padding: 1.8rem; background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 18%, var(--band)), var(--band)); border-color: transparent; isolation: isolate; overflow: hidden; }
.pass-card--featured::before {
  content: ""; position: absolute; inset: -60%; z-index: -2;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--brand-soft) 80%, var(--brand) 88%, transparent 96%);
  animation: borderSpin 4s linear infinite;
}
.pass-card--featured::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: calc(var(--radius) - 2px); background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 18%, var(--band)), var(--band)); }
.pass-card--featured .pass-card__univ { font-size: var(--fs-xl); }
.pass-card--featured .badge { background: var(--brand-btn); color: #fff; }
@keyframes borderSpin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .pass-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pass-list { grid-template-columns: 1fr; } .pass-card--featured { grid-column: auto; } }

.disclaimer { margin-top: 1.5rem; font-size: var(--fs-xs); color: var(--band-ink-2); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .pass-card--featured::before { animation: none; }
  .results__title .line { clip-path: none; }
  .pass-card { opacity: 1; transform: none; }
}

/* 첫 화면 로고 등장 */
.js-anim .hero-brand__logo { opacity: 0; scale: 0.85; }
.is-ready .hero-brand__logo { opacity: 1; scale: 1; transition: opacity 1s var(--ease) 0.3s, scale 1.2s var(--ease) 0.3s; }

/* 움직임 끔: 등장 연출 없이 바로 보이기 */
[data-motion="off"] .hero-brand *, [data-motion="off"] .hero-brand__logo { opacity: 1 !important; transform: none !important; scale: 1 !important; }
[data-motion="off"] .results__title .line { clip-path: none; }
[data-motion="off"] .pass-card { opacity: 1; transform: none; }
[data-motion="off"] .marquee__track, [data-motion="off"] .pass-card--featured::before { animation: none; }

/* 검토 패널에서 '실적 숨기기' */
.hide-results #results, .hide-results .hero-proof, .hide-results #proof { display: none !important; }

/* 실적 기준: 대표원장 지도 이력 (2026-11-29) */
.res-career { display: flex; align-items: center; gap: 1.2rem; max-width: 900px; margin: calc(-1 * clamp(1.5rem, 4vw, 3rem)) 0 clamp(2.5rem, 6vw, 4rem); padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--band-line); background: var(--band-card); }
.res-career__photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.res-career__kicker { font-size: var(--fs-xs); font-weight: 800; color: var(--accent-text); }
.res-career__name { margin-top: 0.15rem; font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 700; color: var(--band-ink); }
.res-career__list { display: flex; flex-wrap: wrap; gap: 0.2rem 0; margin-top: 0.35rem; font-size: var(--fs-sm); color: var(--band-ink-2); }
.res-career__list li + li::before { content: "·"; margin: 0 0.55rem; color: var(--brand); }
@media (max-width: 560px) { .res-career { align-items: flex-start; } .res-career__photo { width: 60px; height: 60px; } }

/* =========================================================
   지점 홈페이지 전용 (sajik.html · myeongji.html)
   ========================================================= */

/* 첫 화면: 지점 이름을 크게 */
.b-hero { align-items: center; }
.b-hero__area {
  position: absolute; right: max(3vw, calc((100vw - var(--container)) / 2)); top: 50%; transform: translateY(-50%);
  font-family: var(--font-serif); font-weight: 700; line-height: 0.85; letter-spacing: -0.04em;
  font-size: clamp(9rem, 4rem + 18vw, 22rem);
  color: transparent; -webkit-text-stroke: 2px var(--brand); opacity: 0.5; pointer-events: none;
}
.b-hero__home { display: flex; width: fit-content; margin-bottom: 1.5rem; font-size: var(--fs-sm); font-weight: 700; color: var(--hero-ink-2); }
.b-hero__home:hover { color: var(--accent-text); }
.b-hero__title { font-family: var(--font-serif); font-size: var(--fs-3xl); line-height: 1.15; }
.b-hero__title em { font-style: normal; color: var(--brand); }
.b-hero .hero__cta .btn--primary svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .b-hero__area { right: -4%; top: 30%; font-size: 9rem; opacity: 0.28; } }

/* 지점 한눈에 보기 띠 */
.b-info { background: var(--surface); border-block: 1px solid var(--line); }
.b-info__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 0.8fr); }
.b-info__grid > div { padding: 1.2rem 1rem; border-left: 1px solid var(--line); }
.b-info__grid > div:first-child { border-left: 0; padding-left: 0; }
.b-info__grid dt { font-size: var(--fs-xs); font-weight: 800; color: var(--accent-text); }
.b-info__grid dd { margin-top: 0.2rem; font-size: var(--fs-sm); font-weight: 700; }
@media (max-width: 1000px) { .b-info__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .b-info__grid > div:nth-child(4) { border-left: 0; padding-left: 0; } .b-info__grid > div:first-child { grid-column: span 3; } }
@media (max-width: 560px) { .b-info__grid { grid-template-columns: 1fr 1fr; } .b-info__grid > div { border-left: 0; padding: 0.8rem 0; border-top: 1px solid var(--line); } .b-info__grid > div:first-child { grid-column: span 2; border-top: 0; } }

/* 학년별 과정 탭 */
.division__tabs { margin-bottom: 1.25rem; }
.division__panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; }
.division__panel[hidden] { display: none; }
.division__main { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.division__media { aspect-ratio: 4 / 5; }
.division__title { margin-top: 0.4rem; font-family: var(--font-serif); font-size: var(--fs-2xl); }
.division__main .course__text { margin-top: 0.6rem; }
.division__main .course__points { margin-top: 1rem; }
.division__side { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.division__side .call { background: var(--surface-2); border-color: var(--line); }
.division__side .call small { color: var(--ink-3); }
@media (max-width: 960px) { .division__panel { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .division__main { grid-template-columns: 1fr; } .division__media { aspect-ratio: 16 / 9; } }

/* 오시는 길 */
.b-loc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.b-loc__map { min-height: 340px; border-radius: var(--radius); }
.b-loc__info { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.b-loc__info h3 { font-family: var(--font-serif); font-size: var(--fs-xl); }
.b-loc__addr { margin: 0.5rem 0 1rem; color: var(--ink-2); }
.b-loc__info .btn svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .b-loc { grid-template-columns: 1fr; } .b-loc__map { min-height: 220px; } }
.section-head__more { display: inline-block; margin-top: 0.6rem; }

/* 지점 홈 = 지점만의 랜딩 페이지 */
.btn--lg { min-height: 54px; padding: 0 1.6rem; font-size: var(--fs-md); }
.b-facts { display: flex; flex-wrap: wrap; gap: 0.2rem 0; margin-top: 1rem; font-size: var(--fs-xs); font-weight: 700; color: var(--hero-ink-2); }
.b-facts li + li::before { content: "·"; margin: 0 0.6rem; color: var(--brand); }
.b-cta-band { padding-block: clamp(1.8rem, 4vw, 2.6rem); background: var(--band); color: var(--band-ink); }
.b-cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.b-cta-band__title { display: block; font-family: var(--font-serif); font-size: var(--fs-xl); line-height: 1.35; word-break: keep-all; }
.b-cta-band p { margin-top: 0.35rem; color: var(--band-ink-2); font-size: var(--fs-sm); }
.b-cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.b-cta-band .btn--ghost { color: var(--band-ink); border-color: var(--band-line); }

/* 지점 첫 화면 사진 */
.b-hero__photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface-2); }
.b-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 961px) {
  /* 사진이 있으면 첫 화면을 2단(왼쪽 글 · 오른쪽 사진)으로 */
  .b-hero.has-photo .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) min(34vw, 500px); column-gap: clamp(2rem, 4vw, 3.5rem); align-content: center; }
  .b-hero.has-photo .hero__inner > * { grid-column: 1; }
  .b-hero__photo { grid-column: 2 !important; grid-row: 1 / span 6; align-self: center; margin: 0; aspect-ratio: 4 / 3; }
}
/* 사진이 있으면 큰 지점 이름 장식은 빼서 겹치지 않게 */
.b-hero.has-photo .b-hero__area { display: none; }
@media (max-width: 960px) {
  .b-hero__photo { margin-top: 1.4rem; aspect-ratio: 16 / 10; }
}

/* 지점 홈 실적 띠: 대표원장 지도 이력 기준 */
.b-proof { padding-block: clamp(1.8rem, 4vw, 2.8rem); background: var(--band); color: var(--band-ink); }
.b-proof__inner { display: grid; gap: 1.1rem; }
.b-proof__kicker { font-size: var(--fs-xs); font-weight: 800; color: var(--accent-text); }
.b-proof__who { margin-top: 0.25rem; font-size: var(--fs-sm); color: var(--band-ink-2); }
.b-proof__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.b-proof__stats li { padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--band-card); border: 1px solid var(--band-line); }
.b-proof__stats strong { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--accent-text); white-space: nowrap; }
.b-proof__stats strong small { margin-left: 0.15rem; font-size: 0.45em; color: var(--band-ink); }
.b-proof__stats span { display: block; margin-top: 0.45rem; font-size: var(--fs-sm); color: var(--band-ink-2); word-break: keep-all; }
.b-proof__note { font-size: var(--fs-xs); color: var(--band-ink-2); }
.b-proof__note a { margin-left: 0.4rem; color: var(--band-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .b-proof__stats { grid-template-columns: 1fr; } .b-proof__stats li { display: flex; align-items: baseline; gap: 0.8rem; } .b-proof__stats strong { min-width: 6.2rem; } .b-proof__stats span { margin-top: 0; } }

/* 사진·지도 없는 칸을 지운 뒤 배치 (2026-11-29) */
.b-loc { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.division__main:not(:has(.division__media)) { grid-template-columns: 1fr; }
/* 사직점 외관 사진은 세로라서 간판이 보이게 위쪽 기준으로 자름 */
.b-hero__photo img[src*="sajik-exterior"], .branch-card__media img[src*="sajik-exterior"] { object-position: 50% 18%; }

/* 모집 안내 한 장 페이지 — css/pages/landing.css (2026-11-29, 이투스247 윈터스쿨 방식) */
.lp-hero { padding: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4rem); background: var(--hero-bg); }
.lp-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-title { margin-top: 1rem; font-family: var(--font-sans); font-weight: 900; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem); line-height: 1.18; letter-spacing: -0.035em; }
.lp-sub { margin-top: 1rem; font-size: var(--fs-lg); color: var(--ink-2); max-width: 32em; }
.lp-hero .hero__cta { margin-top: 1.8rem; }
.lp-poster { margin: 0; width: min(30vw, 380px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lp-poster img { display: block; width: 100%; }
/* 붙어 따라오는 탭 */
.lp-tabs { position: sticky; top: var(--header-h); z-index: 40; background: var(--ink); }
.lp-tabs__inner { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.lp-tabs a { padding: 1rem 0.5rem; text-align: center; color: rgba(255, 255, 255, 0.72); font-weight: 800; font-size: var(--fs-sm); border-bottom: 3px solid transparent; }
.lp-tabs a.is-on, .lp-tabs a:hover { color: #fff; border-bottom-color: var(--brand); }
.lp-tabs a.is-cta { background: var(--brand-btn); color: #fff; border-bottom-color: var(--brand-btn); }
/* 핵심 숫자 카드 */
.lp-key__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.lp-key__grid li { padding: 1.8rem 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.lp-key__no { display: block; font-weight: 900; color: var(--brand); font-size: var(--fs-sm); }
.lp-key__k { display: block; margin-top: 0.4rem; font-weight: 800; color: var(--accent2); }
.lp-key__grid strong { display: block; margin-top: 0.5rem; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.35; }
/* 모집요강 원문 */
.lp-guide { max-width: 760px; margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 1rem; font-size: var(--fs-md); line-height: 1.85; }
/* 진행 순서 */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; counter-reset: s; }
.lp-steps li { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--radius); background: var(--surface-2); text-align: center; display: grid; gap: 0.4rem; }
.lp-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -0.85rem; top: 50%; transform: translateY(-50%); color: var(--brand); font-weight: 900; z-index: 1; }
.lp-steps__no { font-size: var(--fs-xs); font-weight: 900; color: var(--brand); letter-spacing: 0.06em; }
.lp-steps strong { font-size: var(--fs-lg); font-weight: 900; }
.lp-steps span:last-child { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; }
@media (max-width: 860px) {
  .lp-hero__inner { grid-template-columns: 1fr; }
  .lp-poster { width: min(100%, 360px); }
  .lp-tabs a { font-size: 0.8rem; padding: 0.85rem 0.2rem; }
  .lp-steps li:not(:last-child)::after { content: none; }
}

/* 두 번째 포인트 색 적용 — css/base/accent2.css (2026-11-29)
   다른 CSS보다 뒤에 불러와야 이깁니다. 색 값은 --accent2 (tokens.css · settings.js) */
.eyebrow, .results .eyebrow, .more-link, .section-head__more,
.course__level, .principal__role, .teacher-card__role, .t-hero__role, .t-section__title,
.b-info__grid dt, .b-proof__kicker, .res-career__kicker, .branch-card__go,
.doc-sub h3, .tbl tbody th, .faq-top__a { color: var(--accent2); }
.school__tag, .chip--brand { color: var(--accent2); background: color-mix(in srgb, var(--accent2) 11%, transparent); }


/* ---------- 지점 페이지: 지점 색(--accent2)을 넓게 써서 한눈에 구분 (2026-11-29) ----------
   바탕은 베이지 그대로, 버튼은 장독 주황 그대로. 바뀌는 곳:
   첫 화면 지점 이름 · 머리 위 띠 · 로고 옆 지점 표시 · 정보 줄 · 번갈아 나오는 칸 바탕 */
html[data-branch] {
  /* 2026-11-29 정리: 바탕은 흰색 + 연살구(본원과 같음), 지점 색은 굵은 띠 몇 곳에만 */
  --bg-alt: var(--base-alt, #fff4ec);
  --band: var(--base-band, #ffe9da);
  --hero-bg: radial-gradient(70% 60% at 82% 28%, rgba(233, 85, 3, 0.14), transparent 70%), linear-gradient(180deg, #ffffff 0%, var(--base-alt, #fff4ec) 100%);   /* 메인과 같은 주황 빛 */
}
html[data-branch] .header { box-shadow: inset 0 4px 0 var(--accent2); }
html[data-branch] .b-hero__title em { color: var(--accent2); }
html[data-branch] .logo__branch { background: var(--accent2); color: #fff; border-color: var(--accent2); }
html[data-branch] .b-info { background: #fff; border-top: 3px solid var(--accent2); }
html[data-branch] .seg button[aria-pressed="true"] { background: var(--accent2); border-color: var(--accent2); color: #fff; }
/* 본원 메인의 지점 카드도 각 지점 색 띠 */
.branch-card[data-branch="sajik"] { --accent2: #f07f32; }
.branch-card[data-branch="myeongji"] { --accent2: #1f3a5f; }
.branch-card[data-branch] { border-top: 5px solid var(--accent2); }
.branch-card[data-branch] .branch-card__name { color: var(--accent2); }

/* ---------- 제목 핵심 단어 강조 (2026-11-29, 이투스247 방식) ---------- */
.section-title em, .p-hero__title em, .lp-title em { font-style: normal; color: var(--brand-deep); }

/* =========================================================
   가독성 · 임팩트 (2026-11-29, 이투스247 방식)
   - 섹션 제목: 굵은 고딕 + 핵심 단어만 주황, 가운데 정렬
   - 설명은 한 줄, 흐린 글씨
   ========================================================= */
.section-title { font-family: var(--font-sans); font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.3; }
.section-head:not(.section-head--row) { margin-inline: auto; text-align: center; }
.section-head:not(.section-head--row) .section-lead { margin-inline: auto; max-width: 36em; }
.section-lead { font-size: var(--fs-md); }
.section-head .eyebrow { font-size: var(--fs-sm); letter-spacing: 0.02em; }
.section-head__more { display: table; margin: 0.8rem auto 0; }

/* 지점 첫 화면: 학년별 핵심 3가지 + 큰 숫자 */
.b-hero__title { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); letter-spacing: -0.02em; }
.b-hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.b-hero__chips > span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.b-hero__chips b { color: var(--accent2); font-weight: 800; }
.b-facts { gap: 0; margin-top: 1.6rem; color: var(--ink); }
.b-facts li + li::before { content: none; }
.b-facts li { padding: 0 1.4rem; border-left: 1px solid var(--line); display: grid; gap: 0.15rem; }
.b-facts li:first-child { padding-left: 0; border-left: 0; }
.b-facts strong { font-family: var(--font-serif); font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.4rem); line-height: 1; color: var(--brand-deep); }
.b-facts strong small { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 800; margin-left: 0.15rem; color: var(--ink); }
.b-facts span { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }

/* ---------- 지점 페이지 임팩트 · 가독성 (2026-11-29) ---------- */
/* 글씨 한 단계 키우기 (PC) */
@media (min-width: 961px) { html { font-size: 106.25%; } }
/* 실적 띠: 지점 색으로 꽉 채우고 숫자를 크게 */
html[data-branch] .b-proof { background: radial-gradient(90% 120% at 85% 20%, #ff7a2e 0%, var(--brand) 45%, #c94600 100%); color: #fff; padding-block: clamp(2.6rem, 5vw, 4rem); }   /* 메인 주황 슬라이드와 같은 색 */
html[data-branch] .b-proof__kicker { color: #fff; font-size: var(--fs-sm); letter-spacing: 0.04em; }
html[data-branch] .b-proof__who, html[data-branch] .b-proof__note { color: rgba(255, 255, 255, 0.78); }
html[data-branch] .b-proof__note a { color: #fff; }
html[data-branch] .b-proof__stats li { background: transparent; border: 0; border-left: 2px solid rgba(255, 255, 255, 0.35); border-radius: 0; padding: 0.2rem 0 0.2rem 1.4rem; }
html[data-branch] .b-proof__stats strong { color: #fff; font-family: var(--font-sans); font-weight: 900; letter-spacing: -0.04em; font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem); }
html[data-branch] .b-proof__stats strong small { color: #fff; font-size: 0.38em; letter-spacing: 0; }
html[data-branch] .b-proof__stats span { color: rgba(255, 255, 255, 0.88); font-weight: 700; font-size: var(--fs-md); }
/* 중간 상담 띠: 진한 먹색 대신 깔끔한 테두리 상자 */
html[data-branch] .b-cta-band__title { font-family: var(--font-sans); font-weight: 900; letter-spacing: -0.03em; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); }
/* 섹션 사이 여백 넉넉하게 */
html[data-branch] .section { padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); }

/* =========================================================
   장쌤 모티브 (2026-11-29): 빨간 펜 · 서명 · 원장 소개 슬라이드
   ========================================================= */
:root {
  --pen: #d62a1e;
  --pen-u: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 40 4, 90 13, 130 7 S 185 5, 197 9' fill='none' stroke='%23d62a1e' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --pen-o: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' preserveAspectRatio='none'%3E%3Cpath d='M70 5 C 100 4, 117 16, 115 31 C 113 47, 86 56, 56 55 C 25 54, 4 45, 5 29 C 6 13, 30 4, 78 8' fill='none' stroke='%23d62a1e' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --pen-o-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' preserveAspectRatio='none'%3E%3Cpath d='M70 5 C 100 4, 117 16, 115 31 C 113 47, 86 56, 56 55 C 25 54, 4 45, 5 29 C 6 13, 30 4, 78 8' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
/* 밑줄: 왼쪽에서 오른쪽으로 쓱 */
.pen-u { background-image: var(--pen-u); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 0.22em; padding-bottom: 0.26em; transition: background-size 0.75s cubic-bezier(.65,0,.35,1) 0.15s; }
.pen-u.pen-on { background-size: 100% 0.22em; }
/* 서명: 붓으로 쓰듯 왼쪽부터 */
.sig-line { margin-top: 1.4rem; display: flex; align-items: flex-end; gap: 0.8rem; }

.sig-line span { font-size: var(--fs-sm); font-weight: 800; color: var(--ink-2); padding-bottom: 0.5rem; }
/* 원장 소개 슬라이드 (메인 2번째 장) */
.pv-photo { position: relative; margin: 0; width: min(34vw, 420px); aspect-ratio: 4 / 5; border-radius: 28px; overflow: visible; }
.pv-photo > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(120, 50, 10, 0.55); background: #fff; }
.pv-photo__sig { position: absolute; right: -6%; bottom: -6%; width: auto; height: 30%; padding: 0.5rem 0.7rem; border-radius: 16px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 16px 34px -20px rgba(60, 30, 10, 0.5); }
.promo__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.promo__chips span { padding: 0.38rem 0.8rem; border-radius: 999px; background: #fff; border: 1px solid rgba(35, 24, 21, 0.14); font-size: 0.82rem; font-weight: 800; color: #231815; }
@media (max-width: 860px) { .pv-photo { width: min(70vw, 320px); } .pv-photo::before { display: none; } }

/* 강사 소개: 원장님 한 분 (2026-11-29) */
#teacher-grid:has(.teacher-solo:only-child) { grid-template-columns: 1fr; max-width: 920px; margin-inline: auto; }
.teacher-card--solo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.teacher-card--solo .slot-img { aspect-ratio: 4 / 5; height: 100%; }
.teacher-card--solo .teacher-card__body { padding: clamp(1.4rem, 3vw, 2.4rem); }
.teacher-card--solo .teacher-card__name { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; }
.teacher-card--solo .teacher-card__name small { font-size: 0.5em; color: var(--brand-deep); margin-left: 0.3rem; }
.teacher-card--solo .teacher-card__line { margin-top: 0.8rem; font-family: var(--font-serif); font-size: var(--fs-lg); color: var(--ink); line-height: 1.6; }
.teacher-card__career { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.teacher-card__career li { padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 800; }
.teacher-card--solo .sig-line span { color: var(--brand-deep); }
@media (max-width: 700px) { .teacher-card--solo { grid-template-columns: 1fr; } }

/* ---------- 빨간 펜 동그라미: 글자 뒤에서 펜이 한 바퀴 그려짐 (2026-11-29 수정) ---------- */
.pen-o { position: relative; display: inline-block; isolation: isolate; }
.pen-o__svg { position: absolute; left: -0.34em; top: -0.3em; width: calc(100% + 0.62em); height: calc(100% + 0.5em); z-index: -1; overflow: visible; pointer-events: none; }
.pen-o__svg path { fill: none; stroke: var(--pen); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.95s cubic-bezier(.6,0,.3,1) 0.35s; }
.pen-o.pen-on .pen-o__svg path { stroke-dashoffset: 0; }
html[data-branch] .b-proof .pen-o__svg path { stroke: #fff; }

/* ---------- 붓글씨 서명 '장': 획 순서대로 써짐 ---------- */
.sig-svg { display: block; height: clamp(84px, 9vw, 120px); width: auto; overflow: visible; }
.sig-svg .st { stroke-dasharray: 1; stroke-dashoffset: 1; transition-property: stroke-dashoffset; transition-timing-function: cubic-bezier(.55,0,.35,1); }
.sig-line.pen-on .sig-svg .st { stroke-dashoffset: 0; }
/* 학원 소개 인사말 끝: '대표원장 장양우' 뒤에 서명, 왼쪽 정렬 */
.sig-line--about { justify-content: flex-end; align-items: center; gap: 0.9rem; margin-top: 2rem; }   /* 2026-11-29: 오른쪽 끝, '대표원장 장양우' 뒤에 서명 */
.sig-line--about .greeting__sign { text-align: right; margin: 0; font-size: var(--fs-md); color: var(--ink-2); }
.teacher-card__more { margin-top: 1.2rem; font-size: var(--fs-sm); font-weight: 800; color: var(--brand-deep); }
@media (prefers-reduced-motion: reduce) { .pen-u, .pen-o__svg path, .sig-svg .st { transition: none; stroke-dashoffset: 0; } }

/* =========================================================
   지점별 색 조합 (2026-11-29 최종) — 구성 · 모티브는 메인과 같고 색만 다름
   명지점 = 흰색 · 연회색 + 청색   |   사직점 = 흰색 · 웜그레이 + 연주황 (+ 짙은 갈색)
   (바탕색 설정이 html 에 직접 들어가므로 !important 로 지점 값을 우선합니다)
   ========================================================= */
html[data-branch="myeongji"] {
  --brand: #1f5f8b !important; --brand-btn: #1b5883 !important; --brand-btn-hover: #14466a !important; --brand-deep: #1a5580 !important; --brand-soft: #7db8e2 !important;
  --accent2: #1f3a5f !important;
  --bg: #ffffff !important; --base-alt: #f1f4f7 !important; --base-band: #e3e9ef !important;
  --bg-alt: #f1f4f7 !important; --band: #e3e9ef !important;
  --surface: #ffffff !important; --surface-2: #f3f6f9 !important;
  --line: rgba(20, 40, 60, 0.12) !important;
  --hero-bg: radial-gradient(70% 60% at 82% 28%, rgba(31, 95, 139, 0.14), transparent 70%), linear-gradient(180deg, #ffffff 0%, #eef2f6 100%) !important;
  --header-solid: rgba(255, 255, 255, 0.95) !important;
  --shadow: 0 14px 34px -18px rgba(20, 50, 80, 0.35) !important;
}
html[data-branch="sajik"] {
  --brand: #ef7a2c !important; --brand-btn: #d9641a !important; --brand-btn-hover: #bb5212 !important; --brand-deep: #c25813 !important; --brand-soft: #ffb27a !important;
  --accent2: #5b4637 !important;
  --bg: #ffffff !important; --base-alt: #f6f3f0 !important; --base-band: #ece5de !important;
  --bg-alt: #f6f3f0 !important; --band: #ece5de !important;
  --surface: #ffffff !important; --surface-2: #f8f5f2 !important;
  --line: rgba(60, 40, 25, 0.12) !important;
  --hero-bg: radial-gradient(70% 60% at 82% 28%, rgba(239, 122, 44, 0.15), transparent 70%), linear-gradient(180deg, #ffffff 0%, #f4efe9 100%) !important;
  --header-solid: rgba(255, 255, 255, 0.95) !important;
}
/* 실적 띠: 지점 색 그라데이션 */
html[data-branch="myeongji"] .b-proof { background: radial-gradient(90% 120% at 85% 20%, #3a83b8 0%, #1f5f8b 50%, #163f61 100%); }
html[data-branch="sajik"] .b-proof { background: radial-gradient(90% 120% at 85% 20%, #ffa25e 0%, #ef7a2c 50%, #cf5f15 100%); }
/* 지점 이름 · 맨 위 띠 · 정보 줄 윗선은 지점 주색 */
html[data-branch] .b-hero__title em { color: var(--brand); }
html[data-branch] .header { box-shadow: inset 0 4px 0 var(--brand); }
html[data-branch] .b-info { border-top-color: var(--brand); }
html[data-branch] .logo__branch { background: var(--brand-btn); border-color: var(--brand-btn); }
/* 본원 메인의 지점 카드도 같은 색 */
.branch-card[data-branch="myeongji"] { --accent2: #1f5f8b; }
.branch-card[data-branch="sajik"] { --accent2: #ef7a2c; }

/* ---------- 상세 페이지 공통 (2026-11-29) ---------- */
.is-detail .p-hero { padding: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.is-detail .p-hero__title:not(.p-hero__title--long) { font-family: var(--font-sans); font-weight: 900; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem); line-height: 1.18; letter-spacing: -0.035em; }
.is-detail .p-hero__title--long { font-family: var(--font-sans); font-weight: 900; letter-spacing: -0.03em; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); line-height: 1.3; }
.is-detail .p-hero__lead { font-size: var(--fs-lg); max-width: 36em; }
/* 본문: 칸마다 흰 카드 */
.is-detail .doc-sec { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px -24px rgba(60, 30, 10, 0.35); scroll-margin-top: 76px; }
.is-detail .doc-sec h2 { font-family: var(--font-sans); font-weight: 900; letter-spacing: -0.03em; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); border-bottom: 0; padding-bottom: 0; }
.is-detail .doc-sec h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--brand); margin-bottom: 0.7rem; }
.is-detail .doc-layout { padding-block: clamp(3rem, 6vw, 5rem); }
.is-detail main > section[id] { scroll-margin-top: 76px; }
.lp-key__grid--doc { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lp-key__grid--doc li { text-align: left; padding: 1.2rem 1.3rem; box-shadow: none; background: var(--surface-2); border: 0; }
.lp-key__grid--doc strong { font-size: var(--fs-md); font-weight: 800; line-height: 1.5; letter-spacing: -0.01em; }
html[data-branch] .b-proof__stats strong.pen-o, .lp-key__grid strong.pen-o { display: inline-block; }

/* ---------- 실적 띠: 차분하게 (2026-11-29) — 기울기 · 검은 띠 없이 한 줄, 천천히 ---------- */
.marquee { margin-block: clamp(2.5rem, 6vw, 4rem); }
.marquee__row--a { transform: none; box-shadow: none; background: var(--brand); }
.marquee__row--b { display: none; }
.marquee__row { font-size: clamp(1rem, 0.85rem + 0.6vw, 1.35rem) !important; padding-block: 0.85rem !important; }
.marquee__track { animation-duration: 70s !important; }
.marquee__item::after { width: 0.3em; height: 0.3em; margin-left: 2.2rem; }
.marquee__row--a .marquee__item::after { background: rgba(255, 255, 255, 0.7); }

/* ---------- 장쌤 캐릭터 (2026-11-29): 상담 칸 제목 왼쪽에 생각하는 장쌤 ---------- */
.consult__head { display: flex; align-items: flex-end; gap: clamp(0.8rem, 2vw, 1.4rem); margin-bottom: 0.4rem; }
.consult__head > div { flex: 1; min-width: 0; padding-bottom: 0.6rem; }
.consult__char { flex: none; margin: 0; width: clamp(110px, 10vw, 150px); }
.consult__char img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
@media (max-width: 560px) { .consult__char { width: 96px; } }
.consult__head .section-title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); word-break: keep-all; }

/* =========================================================
   UX 점검 수정 (2026-11-29)
   ========================================================= */
/* 지점 첫 화면: 전화는 버튼 대신 한 줄 글자 링크 */
.b-hero__tel { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin-top: 0.4rem; font-size: var(--fs-sm); color: var(--ink-2); }
.b-hero__tel svg { width: 16px; height: 16px; color: var(--brand-deep); }
.b-hero__tel a { font-weight: 800; color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 4px; }
.b-hero__tel a span { font-weight: 600; color: var(--ink-2); }
.b-hero__tel i { font-style: normal; color: var(--ink-3); }
/* 자주 묻는 질문 더 보기 */
.faq-more { display: flex; margin: 1.4rem auto 0; }
/* 붙어 따라오는 탭: 휴대폰에서는 옆으로 밀어서 보기 (글자 잘림 없음) */
.lp-tabs__inner { grid-auto-columns: minmax(max-content, 1fr); overflow-x: auto; scrollbar-width: none; }
.lp-tabs__inner::-webkit-scrollbar { display: none; }
.lp-tabs a { white-space: nowrap; padding-inline: 1rem; }
/* 휴대폰 메인 첫 화면: 큰 로고를 작게 뒤로, 슬로건 · 상담 버튼을 첫 화면 안으로 */
@media (max-width: 600px) {
  #top .hero__slide.hero-brand { align-items: flex-start; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 6rem; }
  .hero-brand__logo { top: auto !important; bottom: 7%; right: -14% !important; width: 58vw !important; opacity: 0.55; }
  .b-hero__title { font-size: clamp(2.3rem, 10vw, 2.9rem); }
}

/* ---------- 메인 첫 화면 로고: 흰 원 + 점선 고리 (특강 슬라이드와 같은 형식, 2026-11-29) ---------- */
#hero-logo.hero-brand__logo { width: min(26vw, 340px); aspect-ratio: 1; padding: 6.5%; border-radius: 50%; background: #fff; color: var(--brand); filter: none; box-shadow: 0 30px 70px -30px rgba(160, 60, 10, 0.45), 0 0 0 10px rgba(255, 255, 255, 0.35); display: grid; place-items: center; }
#hero-logo.hero-brand__logo::before { content: ""; position: absolute; inset: -15%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, transparent); animation: logoRing 40s linear infinite; }
#hero-logo.hero-brand__logo svg, #hero-logo.hero-brand__logo img { width: 100%; height: auto; border-radius: 0; }
@keyframes logoRing { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { #hero-logo.hero-brand__logo { width: min(30vw, 260px); color: var(--brand); right: 4vw; } }
@media (max-width: 600px) {
  #hero-logo.hero-brand__logo { width: 30vw; top: calc(var(--header-h) + 1.4rem) !important; bottom: auto; right: 5vw !important; transform: none; opacity: 1; padding: 7%; box-shadow: 0 14px 30px -18px rgba(160, 60, 10, 0.5); }
  #hero-logo.hero-brand__logo::before { inset: -12%; }
}
@media (prefers-reduced-motion: reduce) { #hero-logo.hero-brand__logo::before { animation: none; } }

/* ---------- 헤더 · 슬라이드 정리 (2026-11-29) ---------- */
/* 헤더는 늘 흰 바탕: 주황 · 진한 슬라이드 위에서도 로고와 상담 버튼이 또렷하게 */
.header, .header.on-dark:not(.is-solid), .header.on-light:not(.is-solid) { background: var(--header-solid); color: var(--header-ink); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.header .logo__img--dark { display: none !important; }
.header .logo__img--light { display: block !important; }
/* 소식 · 모집 슬라이드: 내용을 화면 세로 가운데로 (헤더 아래 빈 공간 줄이기) */
.hero__slide:not(.hero-brand) { align-items: center; padding-top: var(--header-h); padding-bottom: 4.5rem; }
/* 휴대폰 메인: 큰 로고 원은 숨김 (헤더에 로고가 있음) */
@media (max-width: 600px) { #hero-logo.hero-brand__logo { display: none; } }

/* =========================================================
   앱(휴대폰) 화면 정리 (2026-11-29) — 짧고 단정하게
   ========================================================= */
@media (max-width: 600px) {
  :root { --space-section: 3.2rem; }
  html[data-branch] .section { padding-block: 3.4rem; }
  .section-head { margin-bottom: 1.6rem; }
  .section-title { font-size: clamp(1.55rem, 6.4vw, 1.9rem); }
  .section-lead { font-size: var(--fs-sm); }
  /* 학교 목록: 두 줄로 촘촘하게 */
  .school-list { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .school { padding: 0.55rem 0.6rem; font-size: 0.86rem; }
  .school__tag { font-size: 0.62rem; padding: 0.15rem 0.4rem; }
  /* 입학 절차: 2 × 2 */
  .steps { grid-template-columns: 1fr 1fr !important; gap: 0.5rem; }
  .step { padding: 0.9rem; }
  .step p { font-size: 0.8rem; }
  /* 원장 사진: 크게 두 번 나오지 않게 작고 가운데로 */
  .principal__photo { max-width: 200px; margin-inline: auto; }
  .teacher-card--solo { grid-template-columns: 110px minmax(0, 1fr); align-items: start; }
  .teacher-card--solo .slot-img { aspect-ratio: 3 / 4; height: auto; border-radius: 12px; margin: 1rem 0 0 1rem; }
  .teacher-card--solo .teacher-card__body { padding: 1rem; }
  .teacher-card--solo .teacher-card__name { font-size: 1.5rem; }
  .teacher-card--solo .teacher-card__line { font-size: var(--fs-sm); }
  /* 첫 화면: 지점 칩은 아래 고정 바와 겹치므로 숨김, 숫자 줄은 단정하게 */
  .hero-branches, .hero__branches { display: none; }
  /* 공간 사진: 두 줄 격자 */
  .space-grid { grid-auto-rows: 150px !important; }
  /* 지점 첫 화면 칩: 두 줄 이내 */
  .b-hero__chips > span { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .b-facts strong { font-size: 1.7rem; }
}
/* 메인 로고 원: 더 크게, 오른쪽 끝이 아니라 화면 가운데 쪽으로 (2026-11-29) */
@media (min-width: 1101px) {
  #hero-logo.hero-brand__logo { width: min(32vw, 440px); right: auto; left: calc(50% + 60px); top: 50%; transform: translateY(-46%); }
}
/* 학원 소개 맨 아래 상담 띠: 장쌤 + 제목 · 버튼 (2026-11-29) */
.about-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.about-cta .consult__head { margin: 0; }
.about-cta .p-hero__cta { margin: 0; }
/* 상담 칸 간격 맞추기 (2026-11-29): 제목 한 줄, 제목 · 전화 목록 · 신청서 윗선 정렬 */
.consult { align-items: start; }
.consult__head { align-items: center; margin: 0 0 1.4rem; }
.consult__head > div { padding-bottom: 0; }
.consult__head .eyebrow { margin-bottom: 0.4rem; }
.consult__head .section-title { white-space: nowrap; font-size: clamp(1.5rem, 1rem + 1.3vw, 2.1rem); margin: 0; }
.consult__head .section-lead { margin-top: 0.5rem; }
.consult__char { width: clamp(100px, 9vw, 130px); }
.consult__calls { margin-top: 0 !important; }
@media (max-width: 600px) { .consult__head .section-title { white-space: normal; } }

/* 오시는 길: 가운데 정렬, 왼쪽 정보 · 오른쪽 지점 건물 사진 (2026-11-29) */
.b-loc { max-width: 1000px; margin-inline: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) !important; align-items: stretch; }
.b-loc__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); min-height: 280px; }
.b-loc__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .b-loc { grid-template-columns: 1fr !important; } .b-loc__photo { min-height: 220px; order: -1; } }
/* 2. 공개 사이트(신청서 연결 전): 전화 목록이 두 번 나오지 않게 한 칸으로, 전화 카드는 가로 배치 */
.consult:has(.consult__calls):has(.form--call) { grid-template-columns: 1fr; }
.consult:has(.consult__calls):has(.form--call) > div:last-child { display: none; }
.consult:has(.form--call) .consult__calls { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8rem; }
.consult:has(.form--call) .consult__calls > * { margin: 0 !important; }
.consult:has(.form--call) .consult__head .section-lead { max-width: none; }

/* ---------- 2026-11-29 검수 수정 ---------- */
/* 슬라이드가 한 장뿐이면 넘김 버튼 · 01/01 · 진행 막대 숨김 */
.hero.is-single .hero-ctrl, .hero.is-single #hero-progress { display: none !important; }
/* 휴대폰 첫 화면: 화면 높이에 억지로 맞추지 않아 숫자 칸 아래 빈 공간 없앰 */
@media (max-width: 600px) {
  .hero__slide { min-height: 0 !important; }
  #top .hero__slide.hero-brand { padding-bottom: 5rem; }
  #top.is-single .hero__slide, #top.is-single .hero__slide.hero-brand { padding-bottom: 2.4rem; }
  /* 지점 실적 띠: 숫자 단위(명)와 설명이 붙어 '명예과'로 읽히던 문제 → 숫자 아래 줄로 */
  html[data-branch] .b-proof__stats li { display: block; }
  html[data-branch] .b-proof__stats strong { display: block; line-height: 1.05; }
  html[data-branch] .b-proof__stats strong small { margin-left: 0.15em; }
  html[data-branch] .b-proof__stats span { display: block; margin-top: 0.35rem; }
}

/* ---------- 2026-11-29 휴대폰 점검 수정 (갤럭시 S·A, 아이폰 기준) ---------- */
@media (max-width: 960px) {
  /* 메뉴가 안 열리던 문제: 헤더의 흐림 효과가 펼침 메뉴를 헤더 높이(68px) 안에 가둠 → 휴대폰에서는 흐림 효과 끔 */
  .header, .header.on-dark:not(.is-solid), .header.on-light:not(.is-solid) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .nav { height: calc(100dvh - var(--header-h)); }
}
@media (max-width: 760px) {
  /* 너무 작은 글자 (12px 미만) 키움 */
  .school__tag { font-size: 0.75rem !important; padding: 0.2rem 0.5rem; }
  .hero-proof__label { font-size: 0.78rem !important; line-height: 1.35; }
  .news-item__status { font-size: 0.78rem !important; }
  /* 손가락으로 누르기 작은 링크 → 누르는 범위 넓힘 (모양은 그대로) */
  .crumb a, .more-link, .b-proof__note a, .b-hero__tel a, .b-loc a[href^="tel:"] { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
  .crumb { line-height: 2; }
}
/* 휴대폰 실적 숫자 '100'이 '1CC'처럼 눌려 보이던 문제: 숫자 칸이 옆 설명에 밀려 줄어들지 않게 */
.odo__num, .odo__digit, .odo__plus { flex: none; }
.odo__digit { min-width: 0.6em; }

/* ---------- 2026-11-29 원장님: PC에서 내용이 작다 → 양옆 여백 줄이고 내용 넓게 ---------- */
@media (min-width: 1100px) {
  :root { --container: max(1180px, min(1440px, calc(100vw - 160px))); }   /* 기존(1180px)보다 좁아지지 않게, 큰 화면일수록 넓게 */
}
@media (min-width: 1280px) {
  html { font-size: 106.25%; }   /* 글자 · 칸 전체를 약 6% 키움 (16px → 17px 기준) */
}
/* 글 위주 페이지(학원 소개 등) 본문 상자도 넓게: 52rem(약 880px) → 최대 1120px */
@media (min-width: 1100px) { .doc-layout--wide { grid-template-columns: minmax(0, min(1120px, 100%)); } }

/* ---------- 2026-11-29 원장님: 휴대폰 첫 화면 슬라이드를 '한 화면'에 다 보이게 ---------- */
@media (max-width: 600px) {
  /* 모든 슬라이드 높이 = 휴대폰 화면 높이 - 아래 전화 띠(64px). 가장 긴 슬라이드에 맞춰 빈 공간이 생기던 문제 해결 */
  #top .hero__slide, #top .hero__slide.hero-brand { min-height: 0 !important; height: calc(100svh - 64px); max-height: 760px; padding-top: calc(var(--header-h) + 1.2rem) !important; padding-bottom: 4.8rem !important; align-items: flex-start; overflow: hidden; }
  #top.is-single .hero__slide { height: auto; max-height: none; padding-bottom: 2.4rem !important; }
  /* 홍보 슬라이드: 장식 그림은 휴대폰에서 숨기고, 안내(일정 · 시간 · 대상)는 한 줄씩 촘촘하게 */
  .promo__visual { display: none !important; }
  .promo__grid { display: block; }
  .promo__title { font-size: clamp(1.55rem, 7.2vw, 2rem); line-height: 1.25; }
  .promo__sub { margin-top: 0.6rem; font-size: 0.95rem; }
  .promo__chips { margin-top: 0.8rem; gap: 0.35rem; }
  .promo__facts { grid-template-columns: 1fr; max-width: none; margin-top: 1rem; }
  .promo__fact { display: flex; gap: 0.8rem; align-items: baseline; padding: 0.45rem 0; border-left: 0 !important; }
  .promo__fact + .promo__fact { border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 18%, transparent); }
  .promo__fact dt { flex: none; min-width: 3.2em; font-size: 0.78rem; margin: 0; }
  .promo__fact dd { font-size: 0.92rem; margin: 0; line-height: 1.45; }
  .promo__cta { margin-top: 1rem; }
}
/* 2026-11-29 원장님: 휴대폰에서는 슬라이드 점 · 멈춤 · 화살표 숨김 (손가락으로 밀어 넘기기는 그대로) */
@media (max-width: 600px) {
  #top .hero-ctrl { display: none !important; }
  #top .hero__slide, #top .hero__slide.hero-brand { padding-bottom: 1.6rem !important; }
}
/* 2026-11-29 원장님: 명지점 홍보 슬라이드(주황+파랑 섞임) → 검은색 */
html[data-branch="myeongji"] .hero__slide--orange { background: #231815 !important; color: #fff; }
/* 2026-11-29 원장님 소개 슬라이드만 (휴대폰): 실적 설명이 세로로 쪼개지고 아래 버튼이 잘리던 문제 */
@media (max-width: 600px) {
  #top .hero__slide:has(.pv-photo) .promo__chips { display: none; }
  #top .hero__slide:has(.pv-photo) .promo__fact { display: flex; align-items: baseline; gap: 0.9rem; }
  #top .hero__slide:has(.pv-photo) .promo__fact dd { order: -1; flex: none; min-width: 4.2em; font-size: 1.15rem; font-weight: 900; }
  #top .hero__slide:has(.pv-photo) .promo__fact dt { flex: 1 1 auto; min-width: 0; max-width: none; font-size: 0.88rem; line-height: 1.4; }
}
/* 2026-11-29 원장님: 휴대폰 첫 화면 슬라이드 높이 = 원장 소개 슬라이드 내용 높이에 맞춤 (화면 높이로 늘리지 않음) */
@media (max-width: 600px) {
  #top .hero__slide, #top .hero__slide.hero-brand { height: auto; max-height: none; }
}

/* ---------- 2026-11-29 원장님: 휴대폰 원장 인사말 = 핵심 문구 (PC는 전문 그대로) ---------- */
.greeting__key { display: none; }
.greeting__full > summary { display: none; }
@media (max-width: 760px) {
  .greeting__key { display: block; }
  .greeting__hello { font-size: 1rem; color: var(--ink-2); margin-top: 0.4rem; }
  .greeting__quote { margin: 1rem 0 1.2rem; padding: 0.9rem 1rem; border-left: 4px solid var(--brand); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 1.12rem; font-weight: 700; line-height: 1.5; color: var(--ink); }
  .greeting__points { list-style: none; padding: 0; margin: 0; counter-reset: gp; display: grid; gap: 0.6rem; }
  .greeting__points li { display: grid; gap: 0.25rem; padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
  .greeting__points strong { font-size: 1rem; font-weight: 800; color: var(--brand-deep); line-height: 1.4; }
  .greeting__points span { font-size: 0.93rem; line-height: 1.6; color: var(--ink-2); }
  .greeting__close { margin-top: 1.1rem; font-weight: 700; font-size: 1rem; }
  .greeting__full { margin-top: 1rem; }
  .greeting__full > summary { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 0.9rem; list-style: none; }
  .greeting__full > summary::-webkit-details-marker { display: none; }
  .greeting__full > summary::after { content: "▾"; font-size: 0.8em; }
  .greeting__full[open] > summary::after { content: "▴"; }
  .greeting__full[open] > summary { margin-bottom: 1rem; }
}
/* 2026-11-29 휴대폰 머리글 비침 수정: 흐림 효과를 끈 뒤 반투명 배경으로 뒤 글자가 보이던 문제 → 불투명 흰색 */
@media (max-width: 960px) {
  .header, .header.is-solid, .header.on-dark:not(.is-solid), .header.on-light:not(.is-solid) { background: #fff !important; }
}

/* 2026-11-29 휴대폰 맨 아래 하단 정보: 너무 길고 줄이 어색하게 잘림 → 짧고 촘촘하게 (내용은 그대로, PC는 그대로) */
@media (max-width: 760px) {
  .footer { padding-block: 1.8rem calc(1.4rem + var(--mobile-bar-h)); font-size: 0.8rem; line-height: 1.6; }
  .footer__grid { gap: 1rem; }
  .footer .logo img { height: 30px; width: auto; }
  .footer__grid > div:first-child > p { display: none; }
  .footer__links { margin-top: 0.7rem; gap: 0.3rem 0.9rem; font-size: 0.85rem; }
  .footer h4 { font-size: 0.92rem; margin-bottom: 0.25rem; }
  .footer__grid > div:not(:first-child) p { display: inline-block; margin: 0 0.8rem 0 0 !important; word-break: keep-all; }
  .footer__copy { margin-top: 1.2rem; padding-top: 0.9rem; font-size: 0.72rem; }
}
/* 2026-11-29 PC 하단 정보도 짧게: 여백 · 줄 간격 줄이고 정보 줄을 이어서 */
@media (min-width: 761px) {
  .footer { padding-block: 1.8rem 1.4rem !important; font-size: 0.82rem; line-height: 1.55; }
  .footer__grid { gap: 1.6rem; align-items: start; }
  .footer .logo img { height: 34px; width: auto; }
  .footer__grid > div:first-child > p { margin-top: 0.5rem !important; }
  .footer__links { margin-top: 0.6rem; }
  .footer h4 { font-size: 0.92rem; margin-bottom: 0.3rem; }
  .footer__grid > div:not(:first-child) p { display: inline-block; margin: 0 0.8rem 0 0 !important; word-break: keep-all; }
  .footer__copy { margin-top: 1.1rem; padding-top: 0.8rem; }
}

/* ---------- 2026-11-29 분석(상세) 페이지 휴대폰 레이아웃 ---------- */
@media (max-width: 760px) {
  /* 바깥 상자 여백 줄여 글 폭 넓게 */
  .is-detail .doc-sec { padding: 1.2rem 1rem; border-radius: 14px; }
  .is-detail .doc-sec h2 { font-size: 1.3rem; margin-bottom: 0.8rem; }
  .is-detail .doc-layout { padding-block: 1.6rem 2rem; gap: 1rem; }
  .is-detail .doc > * + * { margin-top: 1rem; }
  /* 한눈에 보기: 큰 카드 6개 → 표처럼 한 줄씩 */
  .lp-key__grid--doc { display: block !important; border-top: 1px solid var(--line); }
  .lp-key__grid--doc > li { display: grid !important; grid-template-columns: 5.2em 1fr; gap: 0.6rem; align-items: baseline; padding: 0.7rem 0.1rem !important; margin: 0 !important; background: none !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; min-height: 0 !important; }
  .lp-key__grid--doc .lp-key__no { display: none !important; }
  .lp-key__grid--doc .lp-key__k { margin: 0 !important; font-size: 0.82rem; font-weight: 700; color: var(--accent-text, var(--brand-deep)); }
  .lp-key__grid--doc strong { font-size: 0.95rem; line-height: 1.5; font-weight: 700; word-break: keep-all; }
  /* 단원별 분석: 안쪽 상자 테두리 · 여백 줄임 */
  .is-detail .doc-sub { padding: 0.95rem 0.9rem !important; border-radius: 12px; }
  .is-detail .doc-sub + .doc-sub { margin-top: 0.7rem; }
  .is-detail .doc-sub h3 { font-size: 1rem; line-height: 1.45; margin-bottom: 0.45rem; }
  .is-detail .doc-sub p { font-size: 0.95rem; line-height: 1.75; }
  .is-detail .doc-sub p + p { margin-top: 0.6rem; }
  /* 준비 포인트: 좁은 2단 → 1단 */
  .steps--doc { grid-template-columns: 1fr !important; gap: 0.6rem; }
  .steps--doc .step { padding: 0.9rem 1rem; }
  .steps--doc .step h3 { font-size: 1rem; }
  .steps--doc .step p { font-size: 0.92rem; line-height: 1.65; }
}
