/* ══════════════════════════════════════════════
   ARTE GRAND DANCE STUDIO
   레이아웃: 이지댄스(ezdance.co.kr) 구조 그대로
   비주얼: 이지댄스 팔레트 — #211E16 / #FFF / 핑크·주황·하늘
   ══════════════════════════════════════════════ */

:root {
  /* 이지댄스 실측 팔레트 */
  --paper:      #FFFFFF;
  --paper-2:    #F5F4F2;
  --ink:        #211E16;   /* 헤더 · 다크섹션 · 푸터 */
  --ink-2:      #3D382E;
  --muted:      #75706A;   /* 대비 3.67 → 4.8 (WCAG AA) */
  --gold:       #D9195F;   /* 포인트 — 핑크 (대비 4.38 → 4.62, WCAG AA) */
  --gold-lt:    #F5679A;
  --line:       rgba(33,30,22,.14);
  --line-gold:  rgba(231,30,107,.34);

  --c-black:    #353535;
  --c-orange:   #F28E00;
  --c-pink:     #E71E6B;   /* 아이콘은 이지댄스 원색 유지 */
  --c-sky:      #5DC5EA;

  --serif-en: "Noto Sans KR", sans-serif;
  --serif-kr: "Noto Sans KR", sans-serif;
  --sans-kr:  "Noto Sans KR", sans-serif;

  --pad: clamp(20px, 5vw, 80px);
  --wrap: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-kr);
  font-weight: 400; font-size: 15px; line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

/* 섹션 공통 */
.sec { padding: clamp(60px, 8vw, 118px) 0; }
.sec-title {
  text-align: center; margin-bottom: clamp(34px, 4.4vw, 62px);
}
.sec-title .eyebrow {
  display: block; font-family: var(--sans-kr);
  font-size: 11px; font-weight: 500; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.sec-title h2 {
  font-family: var(--serif-kr); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.28; letter-spacing: -.01em;
}
.sec-title h2 em { font-style: normal; font-weight: 700; color: var(--gold); }
.sec-title p { margin-top: 14px; color: var(--muted); font-size: 14.5px; }

/* ══ 01. 헤더 — 좌 메뉴 / 중앙 로고 / 우 보조 ══ */
.topbar {
  position: relative; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.topbar-in {
  max-width: none; margin: 0; padding: 0 clamp(20px, 3vw, 44px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 100px; gap: 20px;
}
.gnb-left, .gnb-right { display: flex; align-items: center; gap: 18px; }
.gnb-right { justify-content: flex-end; }
.gnb-left a, .gnb-right a {
  font-size: 14px; letter-spacing: normal; color: rgba(255,255,255,.9);
  white-space: nowrap; padding-bottom: 3px; position: relative;
}
.gnb-right a { font-size: 13px; color: rgba(255,255,255,.68); }
.gnb-left a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .45s var(--ease);
}
.gnb-left a:hover::after { width: 100%; }
.gnb-right a.call { color: var(--gold-lt); letter-spacing: .06em; }

/* 상단 우측 지부문의 — 전화번호 옆 */
.gnb-right .branch {
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.34);
  border-radius: 2px; font-size: 12.5px; color: rgba(255,255,255,.86);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s;
}
.gnb-right .branch:hover { background: var(--gold); border-color: var(--gold); color: #fff; }


.logo { display: flex; align-items: center; justify-self: center; }


/* ══ 02. 서브 바 (이지댄스 지점바 자리 → 장르바) ══ */
.subbar { background: var(--ink); }
.subbar-in {
  max-width: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.subbar { border-top: 1px solid rgba(255,255,255,.12); }
.subbar a {
  text-align: center; padding: 18px 4px;
  font-size: 13.5px; letter-spacing: normal;
  color: rgba(255,255,255,.8);
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background .35s, color .35s;
}
.subbar a:first-child { border-left: 0; }
.subbar a:last-child { border-right: 0; }
.subbar a:hover { background: var(--gold); color: #fff; }

/* ══ 03. 히어로 — 풀블리드 영상 자리 + 하단 사선(tilt) ══ */
.hero {
  position: relative; height: clamp(380px, 36vw, 522px);
  background: #000; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 44px));
  display: grid; place-items: center;
}

/* 미디어 자리표시 (영상 · 이미지) */
.ph {
  position: relative; background: #EDECEA; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.ph::after {
  content: attr(data-ph); font-size: 11.5px; letter-spacing: .26em;
  color: #B7B3AC; text-transform: uppercase;
}
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; font-size: 13px; letter-spacing: .12em;
  border: 1px solid var(--ink); position: relative; overflow: hidden;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--paper); }
.btn.solid { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.solid::before { background: var(--ink); }
.btn.solid:hover { color: var(--paper); border-color: var(--ink); }

/* ══ 04. 4-아이콘 퀵링크 ══ */
.quick { padding: 46px 0 50px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.qcard { text-align: center; }
.qicon {
  width: 100px; aspect-ratio: 1; margin: 0 auto 22px;
  border-radius: 50%; display: grid; place-items: center;
  color: var(--paper); transition: transform .6s var(--ease);
}
.qcard:hover .qicon { transform: translateY(-6px); }
.qicon svg { width: 46%; display: block; }
.qicon.i1 { background: var(--c-black); }
.qicon.i2 { background: var(--c-orange); }
.qicon.i3 { background: var(--c-pink); }
.qicon.i4 { background: var(--c-sky); }
.qcard h3 { font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.qcard p { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.75; min-height: 3.5em; }

/* ══ 05. 실적 슬라이더 (다크) ══ */
.record {
  background: var(--ink); color: var(--paper); position: relative;
  clip-path: polygon(0 0, 100% 45px, 100% 100%, 0 calc(100% - 45px));
  padding-block: 104px; margin-block: -10px;   /* 폭죽이 퍼질 높이 확보 */
}
.record .sec-title .eyebrow { color: var(--gold-lt); }
.record .sec-title p { color: rgba(255,255,255,.5); }
.record .sec-title h2 em { color: var(--gold-lt); }

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3);
  background: none; color: rgba(255,255,255,.8); cursor: pointer;
  border-radius: 50%; font-size: 15px; display: grid; place-items: center;
  transition: .4s var(--ease);
}
.arrow:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.vcell {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(168deg, #2C2820, #14120E);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.vcell.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.vcell::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
.vcell figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1;
  font-size: 11.5px; color: rgba(255,255,255,.7);
}
.vcell figcaption b { display: block; font-weight: 400; color: var(--paper); font-size: 13px; }
.more { text-align: center; margin-top: 34px; }
form { display: grid; gap: 24px }

/* ══ 11. 푸터 (다크 · 중앙정렬) ══ */
footer { background: var(--ink); color: rgba(255,255,255,.58); text-align: center; padding: 30px var(--pad) 88px }
.foot-logo { width: 62px; height: auto; display: block; margin: 0 auto 16px; }

/* ── 상단 글자 마크 (v2 방식) ── */
.logo .wordmark {
  font-family: "Bodoni Moda", Didot, "Times New Roman", serif;
  font-size: 17px; font-weight: 600; letter-spacing: .22em;
  color: #fff; white-space: nowrap; line-height: 1;
}
@media (max-width: 900px) { .logo .wordmark { font-size: 15px; letter-spacing: .18em; } }
@media (max-width: 380px) { .logo .wordmark { font-size: 13.5px; letter-spacing: .14em; } }

/* 푸터는 어두우므로 검은 로고를 흰색으로 뒤집어 쓴다 */
.foot-logo { filter: invert(1) brightness(1.6); }

.foot-nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px 26px; font-size: 13px; margin-bottom: 12px;
}
.foot-nav a { color: rgba(255,255,255,.78); }
.foot-nav a:hover { color: var(--gold-lt); }
.foot-info { font-size: 12px; line-height: 1.9 }
.foot-info b { color: rgba(255,255,255,.86); font-weight: 400 }
.foot-sns { display: flex; justify-content: center; gap: 9px; margin: 24px 0 20px }
.foot-sns a {
  font-size: 11px; letter-spacing: .14em; padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.78); transition: .4s var(--ease);
}
.foot-sns a:hover { background: var(--gold); border-color: var(--gold); color: #fff }
.copy { margin-top: 18px; font-size: 11.5px; color: rgba(255,255,255,.32); letter-spacing: .1em }

/* ══ 모바일 하단바 ══ */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; }
.dock a { flex: 1; background: var(--paper); text-align: center; padding: 15px 6px; font-size: 12.5px; letter-spacing: .1em }

/* ══ 등장 ══ */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease) }
.js .rise.in { opacity: 1; transform: none }
.rise.d1 { transition-delay: .09s } .rise.d2 { transition-delay: .18s }
.rise.d3 { transition-delay: .27s }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important }
  .js .rise { opacity: 1; transform: none }
}

/* ══ 반응형 ══ */


/* ══════════ 상세페이지 공통 ══════════ */
.page-banner {
  position: relative; height: clamp(210px, 21vw, 300px);
  background: #1A1712; display: grid; place-items: center; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 58px), 26% 100%, 0 calc(100% - 58px));
  padding-bottom: 40px;
}
.page-banner .bg { position: absolute; inset: 0; opacity: .38; }
.page-banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner .inner { position: relative; z-index: 2; padding: 0 var(--pad); }
/* 캐릭터 선그림 — 검정 선이므로 뒤집어 흰 선으로 쓴다 */
/* 캐릭터는 흰 본문 위에 옅은 회색으로 크게 깐다 (검은 선 + 낮은 불투명도 = 회색) */
.cls-body { position: relative; overflow: hidden; }
.cls-art {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  /* 섹션이 overflow:hidden 이라 음수 right 로 두면 그림이 잘린다 */
  right: 0; top: clamp(4px, 1vw, 30px);
  width: clamp(280px, 36vw, 520px); height: auto;
  opacity: .085;
}
/* 본문이 그림 위로 오게 */
.cls-body > *:not(.cls-art) { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .cls-art { right: 0; top: 4px; width: clamp(230px, 52vw, 340px); opacity: .07; }
}
.page-banner h1 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.page-banner p { margin-top: 10px; font-size: 13.5px; color: rgba(255,255,255,.62); }

/* 안내 표 */
.dl { border-top: 1px solid var(--ink); }
.dl > div { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--line); }
.dl dt { padding: 15px 0; font-size: 13.5px; font-weight: 700; }
.dl dd { padding: 15px 0; font-size: 14px; color: var(--ink-2); }

@media (max-width: 900px) {
  .dl > div { grid-template-columns: 110px 1fr; }
}
/* ── 출처 주석 ── */
.note-src { margin-top: 22px; font-size: 12.5px; color: var(--muted); }

/* ── 상세페이지: 좌측 정렬 섹션 제목 (이지댄스 방식) ── */
.sec-title.left { text-align: left; }
.sec-title.left .eyebrow { display: none; }
.sec-title.left h2 { font-size: clamp(20px, 2.2vw, 27px); }
.sec-title.left p { font-size: 14px; }

/* 좌 라벨 / 우 내용 행 — 이지댄스 상세페이지 기본 골격 */
.dl > div { grid-template-columns: 170px 1fr; }
.dl dt { font-size: 16px; font-weight: 700; padding: 20px 0; }
.dl dd { padding: 20px 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.dl ul { margin: 8px 0 0 17px; }
.dl li { font-size: 13px; padding: 2px 0; }
.dl li b { font-weight: 700; }

.ig-body { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.ig-body p { font-size: 14.5px; line-height: 2.05; color: var(--ink-2); }
.ig-body p + p { margin-top: 22px; }


/* ══════ 효과 ══════ */
/* 히어로 배경 영상 — 위아래를 자르지 않는다. 남는 좌우는 배경색이 채운다 */
.hero video, .hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; z-index: 0;
}

/* 합격 섹션 — 폭죽 (이지댄스 원본 Lottie: Explode_Export) */
.confetti {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 1;
}
/* JS가 붙이는 클래스라 HTML에는 안 보인다 — 죽은 코드로 오인해 지웠다가 복구 */
.confetti-stage {          /* lottie 는 svg 를 100%/100% 로 채우므로 무대 크기로 배율을 정한다 */
  position: absolute; left: 50%; top: 50%;
  width: 940px; height: 752px; margin-top: -376px;   /* 원본 아트보드 실측 크기 */
}
.record > .sec-title, .record > .slider { position: relative; z-index: 2; }

/* 4아이콘 hover */
.qcard .qicon { transition: box-shadow .5s var(--ease); }
.qcard:hover .qicon { animation: bob 1s ease-in-out infinite; box-shadow: 0 10px 22px rgba(0,0,0,.14); }
@keyframes bob {
  0%, 100% { transform: translateY(-6px) }
  50%      { transform: translateY(0) }
}
.qcard h3 { transition: color .35s; }
.qcard:hover h3 { color: var(--gold); }

/* 영상 셀 hover */
.vcell { transition: transform .5s var(--ease); }
.vcell:hover { transform: translateY(-4px); }

/* 장르바 hover */
.subbar a { position: relative; }
.subbar a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px;
  background: var(--gold); transition: left .35s var(--ease), right .35s var(--ease);
}
.subbar a:hover::after { left: 0; right: 0; }

@media (prefers-reduced-motion: reduce) { .confetti { display: none } }


/* ══════ 메가메뉴 (이지댄스 방식) ══════ */
.topbar { overflow: visible; }
.gnb-left { position: static; }
.has-mega { position: static; }
.nav-branch { display: none; }
.has-mega > .gnb-item { display: inline-block; padding: 38px 0; }

.mega {
  /* 가운데 정렬이면 왼쪽 메뉴에서 곧장 아래로 내려갔을 때 패널 바깥이라
     메뉴가 닫힌다. 화면 전체 폭으로 펴서 어느 메뉴에서 내려와도 패널 안이 되게 한다. */
  position: absolute; left: 0; right: 0; transform: translateY(-8px);
  top: 100%; width: auto;
  background: #2A2620; border-top: 1px solid rgba(255,255,255,.1);
  padding: 38px 0 42px; z-index: 120;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
  box-shadow: 0 24px 50px rgba(0,0,0,.34);
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition-delay: 0s;
}
/* 메뉴 이름에서 패널로 마우스가 내려가는 동안 닫히지 않도록.
   패널이 가운데 정렬이라 왼쪽 메뉴는 통로가 13px 밖에 안 됐다. */
.mega::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px;
}
.has-mega .mega { transition-delay: .18s; }
.mega-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }
.mega-lead h3 { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.mega-lead p { margin-top: 16px; font-size: 13.5px; line-height: 1.95; color: rgba(255,255,255,.66); }
.mega-rule {
  display: block; height: 12px; margin-top: 26px;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.34) 0 1px, transparent 1px 7px);
}
.mega-group + .mega-group { margin-top: 30px; }
.mega-group h4 { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.mega-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.28); }
.mega-links a { font-size: 13.5px; color: rgba(255,255,255,.78); transition: color .3s; }
.mega-links a:hover { color: var(--gold-lt); }


/* ── 상세페이지 본문 (이지댄스 /specialty/ 방식) ── */
.sys-head {
  font-size: clamp(21px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.01em;
  padding-bottom: 16px; border-bottom: 1px solid var(--ink);
}
.sys { border: 0; }
.sys > div {
  display: grid; grid-template-columns: 190px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.sys dt { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.sys dd { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.sys ul { list-style: disc; margin: 10px 0 0 20px; }
.sys li { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; padding: 1px 0; }
.sys li b { font-weight: 700; color: var(--ink); }
@media (max-width: 820px) { .sys > div { grid-template-columns: 1fr; gap: 10px } }


/* ── 배너 하단 모양 (이지댄스 페이지별로 다름) ── */
.page-banner.chevron { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 58px), 26% 100%, 0 calc(100% - 58px)); }
.page-banner.curve   { clip-path: ellipse(150% 100% at 50% 0%); }
.page-banner.wave {
  clip-path: none; padding-bottom: 56px;
  -webkit-mask: radial-gradient(120% 60px at 50% 100%, transparent 99%, #000 100%);
          mask: radial-gradient(120% 60px at 50% 100%, transparent 99%, #000 100%);
}

/* ── 소개 페이지 (이지댄스 /company/ 방식) ── */
.intro {
  display: grid; grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(32px, 5vw, 76px); align-items: center;
  padding-bottom: 54px;
}
.intro-logo { text-align: center; }
.intro-logo img { width: 100%; max-width: 300px; height: auto; }
.intro .body h2 {
  font-size: 22px; font-weight: 700; letter-spacing: .02em;
  padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.intro .body p { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.intro .body p + p { margin-top: 22px; }

/* ── 수업안내 카드 (이지댄스 /basic-hobby/ 방식) ── */
.classcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 30px); }
a.classcard { display: block; }
.classcard {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 30px 32px 32px; box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.classcard:hover { box-shadow: 0 12px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.classcard h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.classcard h3 small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 400; color: var(--gold); letter-spacing: .06em; }
.classcard > p { margin-top: 16px; font-size: 13.5px; line-height: 1.85; color: var(--muted); min-height: 3.7em; }
.classcard .media { margin-top: 22px; aspect-ratio: 16/9; overflow: hidden; }
.classcard .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1s var(--ease); }
.classcard:hover .media img { transform: scale(1.04); }

/* 클래스 카드 안 캐릭터 — 어두운 판 위 흰 선그림 */
.classcard .dark-art {
  display: grid; place-items: center;
  background: linear-gradient(120deg, #2A251C 0%, #14120E 65%);
  border: 1px solid var(--line);
}
.classcard .dark-art img {
  width: 46%; height: auto; object-fit: contain;
  filter: invert(1); opacity: .42;
  transition: transform 1s var(--ease), opacity .5s var(--ease);
}
.classcard:hover .dark-art img { transform: scale(1.06); opacity: .58; }

/* 클래스 인덱스 — 글자만 있는 카드라 최소 높이를 맞춰 줄을 고른다 */
.classcards .classcard { display: flex; flex-direction: column; }
.classcards .classcard > p { min-height: 0; margin-bottom: 2px; }
@media (min-width: 821px) { .classcards .classcard { min-height: 148px; } }


@media (max-width: 820px) { .classcards { grid-template-columns: 1fr } .intro { grid-template-columns: 1fr; gap: 34px } .intro-logo img { max-width: 220px } }


/* ── 공간 소개: 가로 2장(좌 상하) + 세로 1장(우) ── */
.space {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
  max-width: 1040px; margin: 6px 0 54px;
}
.space-item { display: flex; flex-direction: column; min-height: 0; }
.space-item .ph { border: 1px solid var(--line); overflow: hidden; }
.space-item .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.space-item:hover .ph img { transform: scale(1.04); }
.space-item figcaption { margin-top: 12px; font-size: 14.5px; }
.space-item figcaption b { font-weight: 700; }
.space-item figcaption::before { content: "✔"; color: var(--gold); margin-right: 7px; font-size: 13px; }

.space-item.wide .ph { aspect-ratio: 16/10; }
.space-item.tall { grid-column: 2; grid-row: 1 / 3; }
.space-item.tall .ph { flex: 1; aspect-ratio: auto; }

@media (max-width: 760px) {
  .space { grid-template-columns: 1fr; }
  .space-item.tall { grid-column: 1; grid-row: auto; }
  .space-item.tall .ph { aspect-ratio: 3/4; flex: none; }
}

/* 상세페이지: 배너 직후 여백 축소 (이지댄스 기준) */
.page-banner + .sec, .page-banner + .crumb + .sec { padding-top: 54px; }

.classcard h3 { transition: color .35s; }
.classcard:hover h3 { color: var(--gold); }


/* ══════════ 햄버거 · 반응형 (최종 · 우선순위 위해 맨 끝) ══════════ */
.nav-toggle {
  display: none; position: absolute; left: clamp(16px,3vw,44px); top: 50%;
  transform: translateY(-50%); z-index: 130;
  width: 30px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1080px) {
  .mega { display: none !important; }
  .quick-grid, .teachers { grid-template-columns: repeat(2,1fr); row-gap: 40px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .topbar-in { height: 74px; }

  .gnb-left {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.14);
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); z-index: 120;
  }
  .nav-open .gnb-left { max-height: 70vh; overflow-y: auto; }
  .has-mega { width: 100%; position: static; }
  .has-mega > .gnb-item {
    display: block; padding: 16px clamp(20px,5vw,44px); font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  /* 우측 지부문의 버튼은 모바일에서 숨겨지므로 메뉴 맨 아래에 둔다.
     `.gnb-left a` 가 (0,2,0) 이라 선택자를 같은 수준으로 올려야 padding 이 먹는다 */
  .gnb-left .nav-branch {
    display: block; padding: 16px clamp(20px,5vw,44px); font-size: 15px;
    color: var(--gold-lt); font-weight: 700;
    border-bottom: 0; background: rgba(255,255,255,.04);
  }
  .gnb-left .nav-branch::after { display: none; }
  .gnb-right { gap: 12px; }
  .gnb-right a.call { font-size: 12.5px; }

  .subbar-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subbar a { padding: 14px 4px; font-size: 12.5px; }
  .subbar a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .subbar a:nth-child(2n) { border-right: 0; }

  .teacher-detail, .intro { grid-template-columns: 1fr; gap: 30px; }
  .intro-logo img { max-width: 190px; }
  .sys > div, .dl > div { grid-template-columns: 1fr; gap: 8px; }
  .classcards, .pgrid-cards, .trio, .space { grid-template-columns: 1fr; }
  .space-item.tall { grid-column: 1; grid-row: auto; }
  .space-item.tall .ph { aspect-ratio: 3/4; flex: none; }
}

@media (max-width: 620px) {
  .quick-grid, .teachers, .vgrid { grid-template-columns: 1fr; row-gap: 34px; }
  .vcell.big { grid-column: span 1; grid-row: span 1; aspect-ratio: 16/10; }
  .hero { clip-path: polygon(0 0,100% 0,100% 100%,0 calc(100% - 22px)); }
  .page-banner.chevron { clip-path: polygon(0 0,100% 0,100% calc(100% - 28px),26% 100%,0 calc(100% - 28px)); }
  .dock { display: flex; }
  footer { padding-bottom: 92px; }
  .foot-nav { gap: 6px 16px; font-size: 12px; }
}


/* 가로 넘침 차단 */
html { overflow-x: clip; }
.subbar a { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.dock a { min-width: 0; overflow-wrap: anywhere; }
.foot-info, .foot-nav, .copy { overflow-wrap: anywhere; }


/* ══════════ 모바일 = 이지댄스 구조 재현 ══════════ */
.m-label { display: none; }
.m-cards { display: none; }

@media (max-width: 900px) {
  /* 헤더: [스튜디오 소개 ☰] ......... [로고]  — 이지댄스와 동일 순서 */
  .topbar-in {
    display: flex; align-items: center; gap: 11px;
    height: 66px; padding: 0 clamp(16px,4vw,20px);
  }
  /* 왼쪽에 로고, 오른쪽에 햄버거. 「스튜디오 소개」 글자는 뺀다 */
  .m-label { display: none; }
  .nav-toggle {
    order: 3; position: static; transform: none; left: auto; top: auto;
    margin-left: auto; width: 26px; height: 20px;
  }
  .nav-toggle span + span { margin-top: 6px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .logo { order: 1; margin-left: 0; justify-self: start; }
  .gnb-right { display: none; }
  .gnb-left { top: 66px; }

  /* 서브바 → 알약 탭 (가로 스크롤) */
  .subbar { background: var(--paper); border-bottom: 1px solid var(--line); }
  .subbar-in {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    padding: 12px clamp(16px,4vw,20px);
  }
  .subbar-in::-webkit-scrollbar { display: none; }
  .subbar a {
    flex: 0 0 auto; border: 0 !important; border-radius: 100px;
    padding: 9px 18px; font-size: 13px; white-space: nowrap;
    background: var(--paper-2); color: var(--ink-2);
  }
  .subbar a.is-on { background: var(--ink); color: #fff; }
  .subbar a::after { display: none; }

  /* 영상이 들어갔으므로 모바일에서도 보이게 둔다 (원래는 숨김이었다) */
  /* 대각선 컷은 좁은 화면에서 영상까지 베어 먹는다 — 모바일은 일자로 */
  .hero { height: clamp(210px, 56vw, 300px); clip-path: none; }

  /* 장르 카드 1열 */
  .m-cards { display: block; padding: 14px clamp(16px,4vw,20px) 4px; }
  .m-card {
    position: relative; display: block; height: 132px; margin-bottom: 10px;
    overflow: hidden; border-radius: 4px; background: var(--ink);
  }
  .m-card img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 18%; opacity: .5;
  }
  .m-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(20,18,14,.86) 12%, rgba(20,18,14,.25) 78%);
  }
  .m-card-name {
    position: absolute; left: 18px; top: 26px; z-index: 2;
    font-size: 19px; font-weight: 700; color: #fff;
  }
  .m-card-btn {
    position: absolute; left: 18px; bottom: 24px; z-index: 2;
    padding: 7px 15px; font-size: 12px; color: #fff;
    border: 1px solid rgba(255,255,255,.55); border-radius: 2px;
  }

  /* 4아이콘 2열 */
  .quick { padding: 34px 0 40px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; row-gap: 34px; }
  .qicon { width: 76px; }
  .qcard h3 { font-size: 17px; }
  .qcard p { font-size: 12px; min-height: 0; }

  /* 영상 1개만 (이지댄스 모바일과 동일) */
  .vgrid { grid-template-columns: 1fr !important; }
  .vgrid > *:nth-child(n+2) { display: none; }
  .vcell.big { grid-column: span 1 !important; grid-row: span 1 !important; aspect-ratio: 16/9; }
}


/* 모바일 강사 카드 */
@media (max-width: 900px) {
  .m-card { height: 148px; }
  .m-card img { object-position: center 22%; opacity: .5; }
  .m-card::after {
    background: linear-gradient(96deg, rgba(20,18,14,.92) 6%, rgba(20,18,14,.45) 62%, rgba(20,18,14,.15) 100%);
  }
  .m-card-name { top: 24px; font-size: 20px; }
  .m-card-sub {
    position: absolute; left: 18px; top: 54px; z-index: 2;
    font-size: 12px; color: rgba(255,255,255,.72);
  }
  .m-card-btn { bottom: 22px; }
}


/* 현재 페이지 탭 표시 (데스크톱) */
.subbar a.is-on { color: #fff; }
.subbar a.is-on::after { left: 0; right: 0; }


/* 모바일 좌우 여백 통일 */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .topbar-in  { padding-inline: 24px; }
  .subbar-in  { padding-inline: 24px; }
  .m-cards    { padding-inline: 24px; }
  .has-mega > .gnb-item { padding-inline: 24px; }
  .m-card-name, .m-card-sub, .m-card-btn { left: 20px; }
  footer { padding-inline: 24px; }
}


/* .sec 의 padding 단축속성이 .wrap 의 좌우 여백을 덮어써서 복구 */
.sec.wrap { padding-inline: var(--pad); }


/* 모바일: 강사 상세 · 장르 페이지 상단 가운데 정렬 */
/* 모바일: 강사 카드 이미지 크기를 상세 페이지와 동일하게 (300px) */
/* 합격 현황 — 이지댄스와 동일하게 태블릿·모바일 숨김
   (원본: elementor-hidden-tablet + elementor-hidden-mobile, 기준 1024px) */
@media (max-width: 1024px) {
  .record { display: none; }
}


/* 모바일: CTA 버튼 가운데 정렬 (인라인 text-align:left 무력화) */
@media (max-width: 900px) {
  .more { text-align: center !important; }
  .more .btn { margin: 0 4px 8px; }
  .more .btn + .btn { margin-left: 4px; }
  .sec > .note-src, .wrap > .note-src { text-align: center; }
}


/* ══════════ 하단 고정바 (2버튼) ══════════ */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 0;
  padding-bottom: env(safe-area-inset-bottom);   /* 아이폰 홈 인디케이터 회피 */
  box-shadow: 0 -6px 18px rgba(0,0,0,.1);
}
.dock a {
  flex: 1 1 50%; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 58px; font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  transition: background .3s, color .3s;
}
.dock a svg { width: 17px; height: 17px; flex: none; }
.dock .dock-sub  { background: #fff; color: var(--ink); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dock .dock-main { background: var(--gold); color: #fff; }
.dock .dock-sub:active  { background: var(--paper-2); }
.dock .dock-main:active { background: #C4185A; }


/* 하단바 노출 (위 .dock 기본 display:none 을 뒤에서 해제) */
@media (max-width: 900px) {
  .dock { display: flex; }
  footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* 알약 탭 — 문구 유지 · 여백만 축소해서 4개를 한 화면에 */
@media (max-width: 900px) {
  .subbar-in {
    padding-inline: 12px; gap: 4px;
    justify-content: space-between; overflow-x: visible;
  }
  .subbar a {
    padding: 9px 11px; font-size: 12px;
    letter-spacing: -.02em; white-space: nowrap;
  }
}
@media (max-width: 375px) {
  .subbar-in { padding-inline: 8px; gap: 3px; }
  .subbar a { padding: 8px 8px; font-size: 11.5px; }
}


/* 지도 */
.map-box { margin-top: 26px; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 21/8; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .map-box { aspect-ratio: 4/3; } }

.foot-legal a:hover { color: rgba(255,255,255,.75); }
@media (max-width: 620px) {
  .foot-nav { gap: 6px 18px; font-size: 12.5px; }
  .foot-legal { gap: 4px 14px; }
}


/* 푸터 약관 줄 */
.foot-legal {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px 20px; font-size: 11.5px; margin: 0 0 26px;
}
.foot-legal a { color: rgba(255,255,255,.42); }
.foot-legal a:hover { color: rgba(255,255,255,.75); }


/* 스크린리더 전용 (검색엔진에는 노출, 화면에는 숨김) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* 키보드 포커스 (마우스 클릭에는 안 나타남) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px; border-radius: 2px;
}
.subbar a:focus-visible, .gnb-left a:focus-visible,
.gnb-right a:focus-visible, .dock a:focus-visible {
  outline-color: #fff; outline-offset: -3px;
}

/* 본문 바로가기 */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 18px; background: var(--gold); color: #fff;
  font-size: 13px; border-radius: 3px; transition: top .2s;
}
.skip-link:focus { top: 12px; }


/* 모바일 터치 영역 확대 (겉모습은 유지, 누르는 범위만 넓힘) */
@media (max-width: 900px) {
  .subbar a {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding-block: 0;
  }
  .foot-nav a, .foot-legal a {
    display: inline-flex; align-items: center;
    min-height: 44px; padding-inline: 2px;
  }
  /* 로고를 이미지에서 글자로 바꾸면서 높이가 15px 로 줄었다 */
  .logo { display: inline-flex; align-items: center; min-height: 44px; }
  /* 문장 안 전화번호 — 배치는 그대로 두고 누르는 세로 범위만 넓힌다 */
  .note-src a, .ig-body a, .sys dd a, .wayto-item a, .faq details p a {
    position: relative; display: inline-block;
  }
  .note-src a::after, .ig-body a::after, .sys dd a::after,
  .wayto-item a::after, .faq details p a::after {
    content: ""; position: absolute; left: 0; right: 0; top: 50%;
    height: 44px; transform: translateY(-50%);
  }
  .foot-nav { gap: 0 22px; }
  .foot-legal { gap: 0 20px; }
  .nav-toggle {
    /* 26×20 → 50×44 로 탭 영역 확보. 왼쪽 여백은 auto 를 지켜야
       햄버거가 오른쪽 끝에 붙는다 (margin 한 줄로 쓰면 auto 가 덮인다) */
    padding: 12px; box-sizing: content-box;
    margin: -12px -12px -12px auto;
  }
  .m-card-btn { padding: 11px 18px; }
}


/* 인쇄 */
@media print {
  .topbar, .subbar, .dock, .skip-link, .m-cards, .confetti,
  .hero, .more, .map-box { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sec { padding: 12pt 0; }
  a { color: #000; text-decoration: none; }
  a[href^="/"]::after, a[href^="http"]::after {
    content: " (" attr(href) ")"; font-size: 8pt; color: #666;
  }
  a[href^="tel:"]::after, a[href^="#"]::after { content: ""; }
  .page-banner { background: none !important; clip-path: none !important; height: auto; padding: 0 0 12pt; }
  .page-banner h1 { color: #000 !important; font-size: 18pt; }
  .page-banner p { color: #444 !important; }
  footer { background: none !important; color: #000; padding: 12pt 0; }
  .foot-info b { color: #000; }
  .sys > div, .dl > div { page-break-inside: avoid; }
}


/* 합격 대학 — JS 있으면 하나씩 순환, 없으면 전체 목록 */
.schools {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px clamp(18px, 2.6vw, 38px);
  max-width: 900px; margin: 0 auto;
}
.schools span {
  font-size: clamp(19px, 2.4vw, 31px); font-weight: 700;
  color: #fff; letter-spacing: -.01em; line-height: 1.35;
}
.js .schools {
  display: grid; place-items: center;
  min-height: clamp(72px, 8vw, 104px); max-width: none;
}
/* 뒤에서 앞으로 다가오는 전환 — 작고 흐리게 시작해 제자리로 */
.js .schools { perspective: 900px; }
.js .schools span {
  grid-area: 1 / 1;
  font-size: clamp(30px, 5.2vw, 62px);
  opacity: 0; filter: blur(7px);
  transform: translateZ(-460px) scale(.6);
  transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease);
  pointer-events: none; will-change: transform, opacity;
}
.js .schools span.on { opacity: 1; filter: none; transform: none; }

@media (max-width: 900px) {
  .schools { gap: 10px 18px; max-width: 340px; }
  .schools span { font-size: 17px; }
  .js .schools span { font-size: clamp(26px, 8vw, 34px); }
  .js .schools { min-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .schools { display: flex; min-height: 0; max-width: 900px; }
  .js .schools span { grid-area: auto; opacity: 1; transform: none; filter: none; font-size: clamp(19px, 2.4vw, 31px); }
}


/* ══════ 오시는길 (이지댄스 지점 페이지 구성: 좌 지도 / 우 정보) ══════ */
/* 좌우 2단은 지도가 550px 에 묶여 작았고 오른쪽에 빈 공간이 남았다.
   지도를 전체 폭 띠로 올리고 정보를 아래에 늘어놓는다 */
.wayto { display: block; }
.wayto-title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin-bottom: clamp(18px, 2vw, 26px); }
.wayto-map {
  aspect-ratio: 21 / 9; border: 1px solid var(--line); overflow: hidden;
  margin-bottom: clamp(26px, 3vw, 40px);
}
.wayto-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
  padding-top: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--line);
}
.wayto-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.wayto-item { margin-bottom: 0; }
.wayto-item h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.wayto-item p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.wayto-item a { border-bottom: 1px solid var(--line-gold); }
.wayto-link { margin-top: 28px; font-size: 13.5px; }
.wayto-link a { color: var(--gold); }

@media (max-width: 1080px) {
  .wayto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wayto-map { aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
  .wayto-grid { grid-template-columns: 1fr; gap: 22px; }
  .wayto-map { aspect-ratio: 4 / 3; }
  .wayto-item { margin-bottom: 22px; }
  .wayto-item h3 { font-size: 18px; }
}

/* 클래스 카드 (다른 클래스 · 수업안내) */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.ccards:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.ccard {
  background: var(--paper); padding: clamp(24px, 3vw, 38px) clamp(18px, 2vw, 26px);
  display: flex; flex-direction: column; gap: 8px; text-align: center;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.ccard-kr { font-family: var(--serif-kr); font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); }
.ccard-en { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.ccard:hover { background: var(--ink); color: var(--paper); }
.ccard:hover .ccard-en { color: rgba(255,255,255,.62); }

@media (max-width: 900px) {
  .ccards, .ccards:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
}

/* ══════ 원장 소개 ══════ */
/* 사진 칸이 320px 고정이라 오른쪽 글이 길어질수록 작아 보였다 → 비율로 잡는다 */
.director { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 60px); align-items: start; }
.director-photo img { width: 100%; height: auto; display: block; }
.director-body .eyebrow {
  display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.director-body h2 { font-family: var(--serif-kr); font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; }
.director-body h2 small { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: .02em; }
.director-body > p { margin-top: 20px; color: var(--ink-2); line-height: 1.9; }
/* 원장 이름 — v2와 같은 Bodoni 세리프 */
.dir-name {
  font-family: "Bodoni Moda", Didot, "Times New Roman", serif !important;
  font-weight: 500 !important; font-size: clamp(30px, 3.6vw, 46px) !important;
  letter-spacing: .015em; line-height: 1.05;
}
.dir-name small {
  font-family: var(--sans-kr); letter-spacing: -.01em;
}

/* 사진 액자 — 위쪽을 아치로. 로고의 원형과 호응한다 */
.director-photo .fr { overflow: hidden; border-radius: 999px 999px 4px 4px; }

/* 경력이 10항목으로 늘어 점만으로는 눈이 흐른다. 번호를 세운다 */
.director-list { margin-top: 26px; border-top: 1px solid var(--line); list-style: none; }
.director-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.75;
}
.director-list li i {
  flex: none; min-width: 22px; font-style: normal;
  font-family: var(--serif-en); font-size: 12px; font-weight: 700;
  color: var(--gold); letter-spacing: .04em;
}
@media (max-width: 820px) {
  .director { grid-template-columns: 1fr; gap: 26px; }
  .director-photo { max-width: 320px; margin: 0 auto; }
}


/* 모바일 클래스 카드 — 영상 들어오기 전 자리표시자가 카드를 꽉 채우도록 */
@media (max-width: 900px) {
  .m-card > .ph {
    position: absolute; inset: 0; border: 0;
    background: linear-gradient(120deg, #2A251C 0%, #14120E 60%);
  }
  .m-card > .ph::after {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    color: rgba(255,255,255,.20);
  }
  /* 캐릭터 선그림을 카드 오른쪽에 세운다.
     `.m-card img` 가 (0,1,1) 로 더 세서 선택자를 같은 수준 이상으로 올린다 */
  .m-card img.m-card-art {
    position: absolute; inset: auto 10px auto 50%;
    left: auto; top: 50%; transform: translateY(-50%);
    width: 118px; height: auto; z-index: 1;
    object-fit: contain;
    filter: invert(1); opacity: .26; pointer-events: none;
  }
}


/* ══════ 클래스 페이지 — 텍스트 중심 ══════ */
.class-lede { max-width: 760px; margin: 0 auto; text-align: center; }
.class-lede > h2 {
  font-family: var(--serif-kr); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.01em; line-height: 1.25;
  margin-bottom: 22px;
}
.class-lede .ig-body { border-top: 0; padding-top: 0; }
.class-lede .ig-body p + p { margin-top: 18px; }

.cpoints {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); margin-top: clamp(40px, 5vw, 68px);
}
.cpoint { background: var(--paper); padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.cpoint-no {
  display: block; font-size: 11px; letter-spacing: .2em; color: var(--gold); margin-bottom: 14px;
}
.cpoint h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.cpoint p { font-size: 14px; line-height: 1.85; color: var(--muted); }

@media (max-width: 820px) {
  .cpoints { grid-template-columns: 1fr; }
}

/* ══════ 공연 갤러리 ══════ */
.gwall { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.gcell { position: relative; overflow: hidden; background: var(--paper-2); }
.gcell img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  transition: transform .7s var(--ease);
}
.gcell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 26px 16px 12px; font-size: 12.5px; color: #fff;
  background: linear-gradient(transparent, rgba(20,18,14,.82));
  opacity: 0; transition: opacity .4s var(--ease);
}
.gcell:hover img { transform: scale(1.05); }
.gcell:hover figcaption { opacity: 1; }

@media (max-width: 1024px) { .gwall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  {
  .gwall { grid-template-columns: 1fr; }
  .gcell figcaption { opacity: 1; }
}

/* ══════ 자격 등록 표 ══════ */
.ctable { border: 1px solid var(--line); }
.ctable-head, .ctable-row {
  display: grid; grid-template-columns: 1.7fr 1.2fr; gap: 12px;
  padding: 14px clamp(14px, 2vw, 22px); align-items: center;
}
.ctable-head {
  background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: .16em;
}
.ctable-row { border-top: 1px solid var(--line); font-size: 14.5px; }
.ctable-row span:nth-child(2) { color: var(--muted); font-size: 13.5px; }
@media (max-width: 700px) {
  .ctable-head { display: none; }
  .ctable-row { grid-template-columns: 1fr; gap: 4px; padding-block: 16px; }
  .ctable-row span:nth-child(1) { font-weight: 700; }
}


/* 서브바 6칸 (벨리댄스 · 발레 · 방송댄스 · 힐코레오 · 코레오 · 왁킹) */
.subbar-in { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); }
.subbar a { font-size: 12.5px; }
@media (max-width: 1200px) { .subbar a { font-size: 11.5px; padding-inline: 2px; } }
/* 모바일 서브바 — 6칸을 2행 그리드로 (한 줄에 몰아넣으면 뭉개진다) */
@media (max-width: 900px) {
  /* 장르가 9개라 격자로 쌓으면 3줄이 된다. 가로로 흘려보낸다 */
  .subbar-in {
    display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 10px clamp(14px, 4vw, 24px);
  }
  .subbar-in::-webkit-scrollbar { display: none; }
  .subbar a {
    flex: 0 0 auto; width: auto;
    display: inline-flex; align-items: center; justify-content: center;
    white-space: nowrap; letter-spacing: -.02em;
    padding: 8px 15px; min-height: 44px; font-size: 12.5px;
  }
}
@media (max-width: 400px) {
  .subbar-in { gap: 5px; padding-inline: 12px; }
  .subbar a { font-size: 11.5px; padding-inline: 4px; }
}


/* 홈 공연·대회 미리보기 — 자리표시자에서 실제 사진으로 */
.vcell { position: relative; overflow: hidden; background: var(--ink); display: block; }
.vcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcell.big { aspect-ratio: auto; }
.vcell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 14px 11px; font-size: 12.5px; color: #fff;
  background: linear-gradient(transparent, rgba(20,18,14,.84));
  opacity: 0; transition: opacity .4s var(--ease);
}
.vcell:hover figcaption { opacity: 1; }
.vcell::after { content: none; }
@media (max-width: 620px) { .vcell figcaption { opacity: 1; } }


/* 다른 클래스 5칸 */
/* 카드가 8개다. 5열이면 둘째 줄에 두 칸이 비어 깨져 보인다 → 4열 2행 */
.ccards:has(> :nth-child(5)) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .ccards:has(> :nth-child(5)) { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .ccards:has(> :nth-child(5)) { grid-template-columns: repeat(2, 1fr); } }


/* 긴 자격명이 메가메뉴에서 넘치지 않게 */
.mega-links a { overflow-wrap: anywhere; }


/* ══════ FAQ ══════ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 44px 18px 0; font-size: 15.5px; font-weight: 700;
  letter-spacing: -.01em; transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .35s var(--ease), border-color .3s;
}
.faq summary:hover { color: var(--gold); }
.faq summary:hover::after { border-color: var(--gold); }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.faq details[open] summary { color: var(--gold); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--gold); }
.faq details p {
  padding: 0 44px 22px 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-2);
}
.faq details p a { border-bottom: 1px solid var(--line-gold); }
/* ══════ 시간표 ══════ */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.tt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.tt th, .tt td {
  border: 1px solid var(--line); padding: 12px 8px;
  text-align: center; vertical-align: middle; line-height: 1.45;
}
.tt thead th { background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.tt tbody th {
  background: var(--paper-2); font-weight: 700; font-size: 12.5px;
  white-space: nowrap; width: 88px; color: var(--ink);
}
.tt td { color: var(--ink-2); }
.tt td small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.tt td.empty { background: #FBFAF9; }
.tt tbody tr:hover td { background: #FFF6F9; }

/* 좁은 화면 — 표를 카드로 접는다 */
@media (max-width: 760px) {
  .tt { min-width: 0; border: 0; }
  .tt thead { display: none; }
  .tt tbody, .tt tr, .tt td, .tt th { display: block; width: auto; }
  .tt tr { border: 1px solid var(--line); margin-bottom: 12px; }
  .tt tbody th { text-align: left; width: auto; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); }
  .tt tbody th br { display: none; }
  .tt tbody th::after { content: ""; }
  .tt td { border: 0; border-bottom: 1px solid var(--line); text-align: left;
           padding: 10px 14px 10px 58px; position: relative; }
  .tt td:last-child { border-bottom: 0; }
  .tt td.empty { display: none; }
  .tt td::before {
    content: attr(data-day); position: absolute; left: 14px; top: 10px;
    font-weight: 700; color: var(--gold); font-size: 12.5px;
  }
  .tt td small { display: inline; margin-left: 6px; }
}
