/* ============================================================
   위크뮤직 음악학원 — 광교
   톤: 흰 종이 + 검정 손글씨 잉크 + 접시 블루  ← 전부 로고에서 나온 색
   타겟: 취미 성인 · 학부모/아이

   색은 여기 :root 한 곳에서만 정의한다.
   색을 바꾸고 싶으면 아래 토큰만 고치면 사이트 전체가 따라온다.
   ============================================================ */

:root {
  /* ---------- 종이 : 로고가 그려진 흰 종이 ---------- */
  --paper:      #FBFAF8;   /* 본문 바탕 */
  --paper-deep: #F1F1EE;   /* 섹션 구분 */
  --surface:    #FFFFFF;   /* 카드 바탕 */

  /* ---------- 잉크 : 로고의 검정 손글씨 ---------- */
  --ink-deep:   #15171C;   /* 히어로 · 다크 섹션 바탕 */
  --ink:        #1F242B;   /* 본문 글자 (종이 대비 15.0:1) */
  --ink-soft:   #4A5361;   /* 보조 글자 (7.5:1) */
  --ink-faint:  #656E7D;   /* 메타 글자 (4.9:1) */

  /* ---------- 액센트 : 로고 접시의 블루 (실측 #456497) ---------- */
  --accent:        #456497;   /* 브랜드 블루 — 선·장식·포커스링 */
  --accent-strong: #3A5480;   /* 버튼 바탕 (흰 글씨 7.6:1) */
  --accent-hover:  #2F4569;   /* 버튼 hover */
  --accent-ink:    #35507A;   /* 밝은 바탕 위 글자 (종이 대비 7.8:1) */
  --accent-light:  #93B0DC;   /* 어두운 바탕 위 액센트 (잉크 대비 8.2:1) */
  --accent-tint:   #EAEFF7;   /* 옅은 블루 바탕 */

  /* ---------- 선 ---------- */
  --line:      #E4E5E2;
  --line-soft: #F0F1EE;

  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(21,23,28,.05), 0 2px 8px rgba(21,23,28,.04);
  --shadow-md: 0 2px 4px rgba(21,23,28,.05), 0 12px 32px rgba(21,23,28,.09);

  --wrap: 1140px;
  --header-h: 68px;
  --tabbar-h: 62px;   /* 모바일 하단 탭바 높이 (세이프에어리어는 별도로 더해짐) */

  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Malgun Gothic', system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 16px); }
/* iOS 사파리 오른쪽 공백(가로 오버플로우) 방지. clip 은 스크롤 컨테이너를 만들지 않아
   position: sticky/fixed(헤더·탭바)를 깨지 않는다. (내부 캐러셀의 overflow-x:auto 는 그대로 작동) */
html, body { overflow-x: clip; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;      /* 한글 단어 중간에서 안 끊기게 */
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- 타이포 ---------- */
h1, h2, h3 { line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }

h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); letter-spacing: -.035em; }
h1 em {
  font-style: normal;
  color: var(--accent-ink);
  /* 밑줄 대신 손으로 그은 듯한 강조선 — 로고가 손그림이라 결이 맞는다 */
  background: linear-gradient(transparent 62%, rgba(69,100,151,.20) 62%);
}

h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.125rem; }

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.lead { font-size: clamp(1rem, 1.7vw, 1.1875rem); color: var(--ink-soft); margin-top: 20px; max-width: 46ch; }
.section-sub { color: var(--ink-soft); margin-top: 14px; max-width: 54ch; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent-strong);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-ink); }

/* 어두운 히어로 위에 얹는 버튼 */
.btn-outline {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.45);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(255,255,255,.16); border-color: #fff; }

.btn-sm { padding: 9px 17px; font-size: .9375rem; }
.btn-lg { padding: 15px 30px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* 아직 정보가 없어 연결할 수 없는 링크 — script.js 가 자동으로 붙인다 */
[data-unavailable] { opacity: .45; pointer-events: none; cursor: not-allowed; }

/* ============================================================
   헤더
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: rgba(251,250,248,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease,
              box-shadow .25s ease, color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(21,23,28,.06); }

/* 히어로 위를 떠다닐 때: 투명 + 흰 글씨 */
.site-header.is-over-hero {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
  color: #fff;
}
.site-header.is-over-hero .nav a { color: rgba(255,255,255,.82); }
.site-header.is-over-hero .nav a:hover { color: #fff; border-bottom-color: #fff; }
.site-header.is-over-hero .btn-sm {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(6px);
}
.site-header.is-over-hero .btn-sm:hover { background: rgba(255,255,255,.22); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

/* ---------- 브랜드 (로고 마크 + 한글 워드마크) ----------
   로고 원본은 '흰 종이 위 검정 잉크'라서 어두운 배경에 그대로 올리면 흰 박스가 보인다.
   그래서 배경 투명 + 어두운 배경용 반전본을 따로 만들어 두 장을 교대로 보여준다.
   - logo-mark.png        밝은 헤더용 (검정 잉크 + 접시 블루)
   - logo-mark-light.png  히어로 위 어두운 헤더용 (흰 잉크 + 밝은 블루)      */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }

.brand-mark { position: relative; flex: none; height: 34px; }
.brand-mark img {
  height: 34px; width: auto;
  transition: opacity .25s ease;
}
.brand-mark .on-dark { position: absolute; inset: 0; opacity: 0; }
.site-header.is-over-hero .brand-mark .on-light { opacity: 0; }
.site-header.is-over-hero .brand-mark .on-dark  { opacity: 1; }

.brand-text { display: flex; align-items: center; line-height: 1.2; }
.brand-text strong { font-size: 1.0625rem; letter-spacing: -.02em; white-space: nowrap; }

.nav { display: flex; gap: 26px; }
.nav a {
  text-decoration: none;
  font-size: .9375rem; font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- 햄버거 버튼 (980px 이하에서만 등장) ----------
   헤더가 히어로 위에선 흰 글씨, 지나가면 검은 글씨가 되므로
   막대 색을 currentColor 로 두면 알아서 따라간다. */
.nav-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px; height: 44px;      /* 손가락 최소 타겟 */
  padding: 0;
  background: none; border: none;
  color: inherit;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute; top: 21px; left: 11px;
  width: 22px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: background .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute; left: 0;
  width: 22px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

/* 열리면 X 로 */
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(7px)  rotate(45deg); }
.nav-toggle.is-open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 모바일 드로어 ---------- */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(21,23,28,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(330px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 44px rgba(21,23,28,.2);
  padding: 16px 22px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;   /* 드로어 끝에서 본문이 따라 스크롤되지 않게 */

  /* visibility 로 닫아야 키보드 탭 순서에서도 빠진다 */
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s ease;
}
.mobile-nav.is-open { transform: none; visibility: visible; }

.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-logo { height: 30px; width: auto; }
.mobile-nav-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: none;
  color: var(--ink-faint);
  font-size: 1.125rem;
  cursor: pointer;
}

.mobile-nav-links { list-style: none; padding: 0; margin: 6px 0 0; }
.mobile-nav-links a {
  display: block;
  padding: 15px 4px;
  font-size: 1.0625rem; font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-links a:hover { color: var(--accent-ink); }

.mobile-nav-cta {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}

.mobile-nav-hours {
  margin-top: 20px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ink-faint);
}

/* ============================================================
   히어로 — 풀스크린. 영상이 있으면 영상, 없으면 모션 화면.
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;   /* 지원 브라우저에선 dvh 로 화면을 꽉 채운다 */
  display: grid;
  grid-template-rows: 1fr auto;   /* 카피는 가운데, '공간 사실' 띠는 바닥 */
  overflow: hidden;
  color: #fff;
  background: var(--ink-deep);
  isolation: isolate;
}

/* ---------- 배경 레이어 ---------- */
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--ink-deep); }

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero.has-video .hero-video { opacity: 1; }

/* ---------- 정지 이미지 폴백 (여러 장이면 교차 전환) ----------
   .hero-photo 를 몇 장 넣든 script.js 가 순서대로 .is-active 를 옮겨준다.
   전환은 '겹쳐 놓고 투명도만 바꾸는' 크로스페이드 —
   검은 화면을 거치지 않으므로 뚝 끊기지 않는다.
   여기에 아주 느린 확대를 얹어서 정지 사진이 살아 있는 것처럼 보이게 한다. */
.hero-photos {
  position: absolute; inset: 0;
  opacity: 1;
}
.hero.has-photo .hero-photos { opacity: 1; }

.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  /* 페이드는 2초(겹치는 구간), 확대는 12초에 걸쳐 아주 천천히 */
  transition: opacity 2s ease-in-out, transform 12s linear;
  will-change: opacity, transform;
}
.hero-photo.is-active { opacity: 1; transform: scale(1); }

.hero.has-video .hero-photos { opacity: 0; }   /* 영상이 이기면 사진은 물러난다 */

/* 모션을 줄여 달라고 한 사용자에겐 확대를 걸지 않는다 (script.js 가 자동 전환도 끈다) */
@media (prefers-reduced-motion: reduce) {
  .hero-photo { transform: none; transition: opacity .4s ease; }
  .hero-photo.is-active { transform: none; }
}

/* 텍스트 가독성용 오버레이.
   실사 영상은 밝고 복잡하므로 강하게 덮고,
   모션 화면은 이미 어두우므로 왼쪽 카피 영역만 살짝 눌러준다.
   (같은 스크림을 모션에 그대로 씌우면 블루 막대가 죽는다) */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(21,23,28,.86) 0%,
      rgba(21,23,28,.5) 38%,
      transparent 72%);
  transition: background .6s ease;
}
.hero.has-video .hero-scrim {
  background:
    linear-gradient(100deg,
      rgba(21,23,28,.93) 0%,
      rgba(21,23,28,.78) 42%,
      rgba(21,23,28,.44) 100%),
    radial-gradient(900px 500px at 88% 12%, rgba(69,100,151,.30), transparent 65%);
}

/* 사진용 스크림은 영상용보다 훨씬 약하다.
   hero.jpg 는 이미 왼쪽이 거의 검정이고 오른쪽에만 무대 조명이 있다.
   여기에 영상용 스크림(오른쪽까지 .44)을 그대로 씌우면 조명 색이 다 죽는다.
   → 왼쪽은 글자가 읽힐 만큼만 덮고, 오른쪽은 건드리지 않는다. */
.hero.has-photo .hero-scrim {
  background:
    linear-gradient(100deg,
      rgba(21,23,28,.80) 0%,
      rgba(21,23,28,.52) 33%,
      rgba(21,23,28,.14) 62%,
      transparent 82%),
    /* 헤더(투명)가 사진 위에 뜨므로 위쪽을 살짝 */
    linear-gradient(180deg, rgba(21,23,28,.45) 0%, transparent 14%),
    /* 바닥의 '공간 사실' 띠가 사진 위에 뜨므로 아래쪽을 눌러 글자를 살린다 */
    linear-gradient(0deg,   rgba(21,23,28,.55) 0%, transparent 22%);
}

/* ---------- 히어로 카피 ---------- */
.hero-inner {
  align-self: center;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(24px, 5vh, 56px));
  padding-bottom: clamp(24px, 5vh, 48px);
}
.hero-copy { max-width: 640px; }

.hero .eyebrow { color: var(--accent-light); }

.hero h1 { text-shadow: 0 2px 28px rgba(0,0,0,.45); }
.hero h1 em {
  color: var(--accent-light);
  background: linear-gradient(transparent 76%, rgba(147,176,220,.30) 76%);
}

.hero .lead { color: rgba(255,255,255,.86); }
.hero .lead strong { color: #fff; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-note {
  margin-top: 22px;
  font-size: .875rem;
  color: rgba(255,255,255,.62);
  padding-left: 14px;
  border-left: 2px solid rgba(147,176,220,.6);
}

/* ---------- 바닥의 '공간 사실' 띠 ---------- */
.hero-facts {
  align-self: end;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(16,18,23,.5);
  backdrop-filter: blur(10px);
}
.hero-facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-facts li {
  padding: 20px 12px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.12);
}
.hero-facts li:first-child { border-left: none; }
.hero-facts b {
  display: block;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
}
.hero-facts span {
  display: block; margin-top: 3px;
  font-size: .8125rem;
  color: rgba(255,255,255,.74);
}

/* ---------- 스크롤 유도 — 카피와 같은 세로선, 띠 바로 위 ----------
   --facts-h 는 script.js 가 띠의 실제 높이를 재서 넣어준다.
   띠를 지우면 script.js 가 0px 을 넣으므로 이 계산식은 그대로 둬도 안전하다. */
.scroll-cue {
  position: absolute;
  left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  bottom: calc(var(--facts-h, 88px) + 26px);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 9px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(255,255,255,.85);
  animation: cue 1.9s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0);    opacity: 0; }
  30%      {                              opacity: 1; }
  70%      { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   섹션 공통
   ============================================================ */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section-tint { background: var(--paper-deep); }
.section-head { margin-bottom: clamp(36px, 4vw, 56px); }

.center { text-align: center; }
.section-head.center .section-sub,
.section-sub.center { margin-inline: auto; }

/* 어두운 섹션 — 히어로와 같은 잉크. 페이지에 리듬을 준다. */
.section-dark {
  background:
    radial-gradient(900px 500px at 82% 8%, rgba(69,100,151,.22), transparent 62%),
    var(--ink-deep);
  color: #fff;
}
.section-dark .eyebrow { color: var(--accent-light); }
.section-dark .section-sub { color: rgba(255,255,255,.7); }

/* ---------- 사진 자리표시자 ---------- */
.photo {
  position: relative;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* 이미지가 아직 없을 때: 무엇을 넣을 자리인지 표시 */
.photo.is-empty img { display: none; }
.photo.is-empty {
  border-style: dashed;
  border-color: var(--accent);
  background:
    repeating-linear-gradient(135deg,
      transparent 0 12px, rgba(69,100,151,.05) 12px 24px),
    var(--accent-tint);
}
.photo.is-empty::after {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 16px;
  text-align: center;
  font-size: .8125rem; font-weight: 600;
  color: var(--accent-ink);
}

/* ============================================================
   세 기둥
   ============================================================ */
.pillar { padding: clamp(40px, 5vw, 72px) 0; }
.pillar-tint { background: var(--paper-deep); }

.pillar-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.pillar-no {
  display: block;
  font-size: .8125rem; font-weight: 800; letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.pillar-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.pillar-copy p { color: var(--ink-soft); margin-bottom: 12px; max-width: 46ch; }
.pillar-copy p strong { color: var(--ink); }
.pillar-copy em { font-style: normal; color: var(--accent-ink); font-weight: 600; }
.pillar-copy.center p { margin-inline: auto; }

/* 기둥 1 — 숫자 카드 3개 */
.pillar-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.pillar-stats li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.pillar-stats b {
  grid-row: span 2;
  font-size: 2.25rem; font-weight: 800;
  letter-spacing: -.04em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.pillar-stats strong { font-size: 1rem; }
.pillar-stats span { font-size: .8125rem; color: var(--ink-faint); grid-column: 2; }

/* 기둥 1 — 시설 사진 4장 */
.pillar-photos {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pillar-photos .photo { aspect-ratio: 1 / 1; }

/* ============================================================
   수강료 안내
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: clamp(24px, 3vw, 40px);
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.price-emoji { font-size: 1.5rem; line-height: 1; }
.price-head h3 { font-size: 1.0625rem; }
.price-amount { font-size: 1.125rem; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.price-amount b { font-weight: 800; font-size: 1.4em; color: var(--accent-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-inquiry { font-size: 1.0625rem; font-weight: 700; color: var(--accent-ink); }
.price-desc { font-size: .875rem; color: var(--ink-soft); line-height: 1.6; }
.price-card-feature { border-color: var(--accent); background: var(--accent-tint); }
.price-notes { margin-top: 18px; display: grid; gap: 12px; }
.price-note {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--paper-deep); border-radius: var(--radius);
  padding: 16px 18px; font-size: .9375rem; line-height: 1.6; color: var(--ink-soft);
}
.price-note p { margin: 0; }
.price-note span { font-size: 1.25rem; line-height: 1.3; }
.price-note b { color: var(--ink); }
.price-foot { margin-top: 18px; text-align: center; font-size: .875rem; color: var(--ink-faint); }
.price-foot a { color: var(--accent-ink); font-weight: 600; }

/* ============================================================
   수강료 모달 (메뉴 클릭 시 팝업 — 스크롤 흐름엔 없음)
   드로어와 같은 오버레이 패턴: is-open 클래스 + visibility 전환
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(21, 23, 28, .55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal {
  position: fixed; z-index: 80;
  left: 50%; top: 50%;
  transform: translate(-50%, -48%) scale(.98);
  width: min(720px, calc(100% - 32px));
  max-height: 88vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(21, 23, 28, .28);
  padding: clamp(26px, 4vw, 42px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font-size: 1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--paper-deep); color: var(--ink); }
.modal-body .section-head { margin-bottom: clamp(20px, 3vw, 28px); }
@media (max-width: 640px) {
  .modal {
    left: 12px; right: 12px; top: 12px; bottom: 12px;
    transform: none; width: auto; max-height: none;
    padding: 22px 16px 26px;
  }
  .modal.is-open { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .modal { transform: translate(-50%, -50%); }
  .modal.is-open { transform: translate(-50%, -50%); }
}

/* 기둥 2 — 5단계 */
.pillar-steps {
  list-style: none; padding: 0; margin: 0;
  counter-reset: step;
  display: flex; flex-direction: column;
}
.pillar-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 0 18px 52px;
  border-bottom: 1px solid var(--line);
}
.pillar-steps li:last-child { border-bottom: none; }
.pillar-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 19px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent-strong); color: #fff;
  border-radius: 9px;
  font-size: .8125rem; font-weight: 800;
}
.pillar-steps b { display: block; font-size: 1rem; margin-bottom: 3px; }
.pillar-steps span { font-size: .875rem; color: var(--ink-soft); }

/* 기둥 3 — 목표별 트랙 3개 */
.tracks {
  margin-top: clamp(28px, 3vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.track {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.track:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.track-icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--accent-tint);
  color: var(--accent-ink);
  border-radius: 50%;
  font-size: 1.5rem;
}
.track h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; }
.track p { font-size: .9375rem; color: var(--ink-soft); }

/* ============================================================
   레슨 과목 카드 (어두운 섹션 위)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 20px;
}
.card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.08);
  border-color: var(--accent-light);
}
.card-no {
  display: block;
  font-size: .8125rem; font-weight: 800; letter-spacing: .12em;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: rgba(255,255,255,.7); font-size: .9375rem; }

.card-meta {
  list-style: none; padding: 0;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 5px;
}
.card-meta li {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  padding-left: 14px;
  position: relative;
}
.card-meta li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-light);
}

/* ============================================================
   WHY — 세 가지 이유
   ============================================================ */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.reason { background: var(--surface); padding: 34px 30px; }

/* 왜 위크뮤직 — 블록 대신 한 줄씩 나열 */
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li {
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-list li b { color: var(--accent-ink); font-weight: 700; }
.why-cta { text-align: center; margin-top: clamp(28px, 4vw, 44px); }

/* About — 학원 고르는 기준 1·2·3 (블럭 대신 번호 리스트) */
.crit-list { list-style: none; padding: 0; margin: 0; max-width: 760px; margin-inline: auto; }
.crit-list li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
}
.crit-list li:first-child { border-top: 1px solid var(--line); }
.crit-no {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent, #F4C64A); color: #1a1c1f;
  font-weight: 800; font-size: 1rem; line-height: 1;
}
.crit-body { display: flex; flex-direction: column; gap: 5px; }
.crit-body b { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); font-weight: 800; color: var(--ink); }
.crit-body span { font-size: clamp(.9rem, 1.8vw, 1rem); line-height: 1.55; color: var(--ink-soft); }

/* 레슨 섹션(다크) 하단 수강료 안내 링크 */
.lessons-price { text-align: center; margin-top: clamp(22px, 3vw, 34px); }
.lessons-price a {
  color: var(--accent-light); font-weight: 700; font-size: .9375rem;
  text-decoration: none; border-bottom: 1px solid rgba(147, 176, 220, .4); padding-bottom: 2px;
  transition: color .15s;
}
.lessons-price a:hover { color: #fff; border-color: #fff; }
.reason-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
}
.reason h3 { font-size: 1.1875rem; margin-bottom: 12px; }
.reason p { font-size: .9375rem; color: var(--ink-soft); }
.reason p strong { color: var(--ink); }

#why .teachers { margin-top: clamp(32px, 4vw, 52px); }

/* ============================================================
   강사진
   ============================================================ */
.teachers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.teacher { text-align: left; }
.photo-portrait { aspect-ratio: 3 / 4; margin-bottom: 16px; }
.teacher h3 { font-size: 1.125rem; }
.teacher-role {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 3px 11px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
}
.teacher-bio { font-size: .875rem; color: var(--ink-soft); }

/* 강사진 — 코리아엔터 trainerSwiper 구조 그대로(라이브러리 없이 scroll-snap + 바닐라 JS).
   어두운 패널 + 가로 슬라이더 + 좌우 화살표. 슬라이드 = em(배경사진) + txt_box. */
.trainer { margin-top: clamp(36px, 4.5vw, 60px); }
.trainer-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: clamp(20px, 2.6vw, 34px);
}
.trainer-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.trainer-title strong { color: var(--accent-ink); font-weight: 800; }
.trainer-sub { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; max-width: 42rem; }
.trainer-nav { display: flex; gap: 8px; flex: none; }
.trainer .swiper_btn {
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.trainer .swiper_btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.trainer .swiper_btn:disabled { opacity: .3; cursor: default; }
.trainer .swiper_btn svg { width: 20px; height: 20px; }
.trainer-track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px;
}
.trainer-track::-webkit-scrollbar { display: none; }
.trainer .box {
  position: relative; flex: 0 0 calc((100% - 66px) / 4); scroll-snap-align: start;
  display: block;
}
/* 클릭하면 뒤집혀서 약력이 보이는 3D 플립 카드 */
.trainer .box.flip { perspective: 1200px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.trainer .flip-inner {
  position: relative; width: 100%; transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.4, .2, .2, 1);
}
.trainer .box.is-flipped .flip-inner { transform: rotateY(180deg); }
.trainer .flip-front, .trainer .flip-back {
  border-radius: var(--radius-lg); overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: #0e1014;
}
.trainer .flip-front { position: relative; }
.trainer .flip-back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  background: #101216; color: #f4f5f7;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, .08);
}
.trainer .box-img {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 6;
  object-fit: cover; object-position: center top;
}
/* 사진 하단에 이름을 얹기 위한 어두운 그라데이션 스크림 (앞면에만) */
.trainer .flip-front::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
  background: linear-gradient(rgba(15, 17, 20, 0), rgba(15, 17, 20, .72));
  pointer-events: none;
}
.trainer .flip-hint {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: .6875rem; font-weight: 600; color: #fff;
  background: rgba(20, 22, 26, .5); backdrop-filter: blur(4px);
  padding: 4px 9px; border-radius: 999px; letter-spacing: .01em;
}
/* 뒤집혀 약력이 보일 때는 앞면 이름표·힌트를 확실히 숨긴다
   (일부 브라우저에서 backface 가 새어 이름이 거울처럼 우하단에 비치는 것 방지) */
.trainer .box.is-flipped .box-cap,
.trainer .box.is-flipped .flip-hint { opacity: 0; visibility: hidden; }
/* 뒷면 약력 */
.trainer .bio { padding: 16px 15px 18px; }
.trainer .bio-name { font-weight: 800; font-size: 1.0625rem; color: #fff; margin: 0 0 12px; line-height: 1.2; }
.trainer .bio-name span { display: block; font-size: .75rem; font-weight: 600; color: #F4C64A; margin-top: 3px; letter-spacing: .01em; }
.trainer .bio-item { font-size: .8125rem; line-height: 1.55; color: #d6d8dd; margin: 0 0 9px; }
.trainer .bio-item b { color: #F4C64A; font-weight: 700; margin-right: 5px; }
.trainer .bio-soon { font-size: .8125rem; color: #9aa0a8; margin: 8px 0 0; }
.trainer .box-cap { position: absolute; left: 18px; bottom: 15px; z-index: 1; }
.trainer .cap-name {
  display: flex; align-items: center; gap: 6px;
  color: #fff; font-weight: 700; font-size: 1.0625rem;
}
.trainer .spark { color: #F4C64A; font-style: normal; font-size: .95em; line-height: 1; }
.trainer .cap-role { color: rgba(255, 255, 255, .82); font-size: .85rem; margin-top: 2px; }
@media (max-width: 980px) { .trainer .box { flex-basis: calc((100% - 44px) / 3); } }
@media (max-width: 640px) {
  .trainer-head { flex-direction: column; align-items: flex-start; }
  .trainer-track { gap: 14px; }
  /* 모바일 시안 1: 짧은 4:5 사진과 사진 아래 이름·전공 */
  .trainer .box { flex-basis: clamp(180px, 52vw, 230px); }
  .trainer .box-img { aspect-ratio: 4 / 5; border-radius: 16px; object-position: center 28%; }
  .trainer .flip-front { background: transparent; overflow: visible; }
  .trainer .flip-front::after { display: none; }
  .trainer .box-cap { position: static; display: block; padding-top: 10px; }
  .trainer .cap-name { color: var(--ink); font-size: 1rem; }
  .trainer .cap-role { display: block; color: var(--accent-ink); font-size: .8rem; margin-top: 3px; }
  .trainer .spark { display: none; }
  .trainer .flip-hint { position: static; display: block; color: var(--ink-soft); background: none; backdrop-filter: none; padding: 3px 0 0; font-size: .75rem; }

  /* 레슨 과목: 좌우 드래그 카러셀 (앱 느낌, 화면 끝까지) */
  .cards {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: -16px; padding-inline: 16px; scroll-padding-left: 16px;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 80%; scroll-snap-align: start; }
}

/* ============================================================
   후기
   ============================================================ */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
}
.quote::before {
  content: '“';
  position: absolute; top: 6px; left: 20px;
  font-size: 3.5rem; line-height: 1;
  color: var(--accent);
  opacity: .3;
}
.quote blockquote {
  margin: 0;
  padding-top: 22px;
  color: var(--ink);
  font-size: .9375rem;
}
.quote figcaption {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: .8125rem;
  color: var(--ink-faint);
}
.quote figcaption b { color: var(--ink); }

/* 후기 출처 — 우리가 쓴 글이 아니라는 걸 확인할 수 있게 원본으로 보낸다 */
.quotes-more { margin-top: 26px; text-align: center; }
.quotes-more a {
  font-size: .9375rem; font-weight: 700;
  color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ============================================================
   수강료 조회 (리드 폼) — 페이지의 심장
   ============================================================ */
.inquiry {
  background:
    radial-gradient(760px 420px at 12% 100%, var(--accent-tint), transparent 60%),
    var(--paper);
  border-top: 1px solid var(--line);
}
.inquiry-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.promise {
  list-style: none; padding: 0;
  margin-top: 30px;
  display: flex; flex-direction: column; gap: 12px;
}
.promise li {
  position: relative;
  padding-left: 28px;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.promise li::before {
  content: '✓';
  position: absolute; left: 0; top: -1px;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  background: var(--accent-strong); color: #fff;
  border-radius: 50%;
  font-size: .6875rem; font-weight: 700;
}

.inquiry-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 18px;
}

/* 스팸 봇 함정 — 화면 밖으로 밀어낸다.
   display:none / visibility:hidden 을 쓰면 똑똑한 봇이 건너뛰므로 효과가 없다. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .875rem; font-weight: 600; }
.field .opt { color: var(--ink-faint); font-weight: 400; }

/* 이름 + 연락처를 한 줄에 */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field input[type=text],
.field input[type=tel],
.field select,
.field textarea {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #7E8794; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69,100,151,.16);
}
.field textarea { resize: vertical; min-height: 84px; }

.field.is-invalid input,
.field.is-invalid select {
  border-color: #C0392B;
  background: #FDF3F2;
}

.err { font-size: .8125rem; color: #A5291B; min-height: 0; }
.err:empty { display: none; }

.field-check {
  flex-direction: row; align-items: flex-start; gap: 10px;
  flex-wrap: wrap;
}
.field-check input { margin-top: 4px; width: 17px; height: 17px; flex: none; accent-color: var(--accent-strong); }
.field-check label { font-weight: 400; color: var(--ink-soft); font-size: .875rem; }
.field-check .err { flex-basis: 100%; }

.linkish {
  background: none; border: none; padding: 0;
  color: var(--accent-ink);
  font-size: .8125rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}

.privacy {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-size: .8125rem;
  color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.privacy b { color: var(--ink); margin-right: 6px; }

.form-status { font-size: .875rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #2F6B34; font-weight: 600; }
.form-status.is-err { color: #A5291B; font-weight: 600; }

.form-alt {
  text-align: center;
  font-size: .875rem;
  color: var(--ink-faint);
}
.form-alt a { color: var(--accent-ink); font-weight: 700; }

button[disabled] { opacity: .6; cursor: not-allowed; }

/* ============================================================
   오시는 길
   ============================================================ */
.visit {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.visit-info dl { margin: 0; display: flex; flex-direction: column; }
.visit-info dl > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.visit-info dt { font-size: .875rem; font-weight: 700; color: var(--ink-faint); }
.visit-info dd { margin: 0; font-size: .9375rem; }
.visit-info dd a { color: var(--accent-ink); font-weight: 700; }

.visit-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* 지도 — 구글 지도 iframe (API 키 불필요).
   도메인 확정 후 네이버 지도로 교체 예정. index.html 의 주석 참고. */
.visit-map {
  aspect-ratio: 16 / 10;
  min-height: 260px;
  border: 0;                 /* 뒤 테두리 투명(제거) */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}
/* 지도 마커 — 심플하게 '위크뮤직 음악학원' + 아래 화살표만. 클릭 시 네이버 길찾기. */
.map-label {
  position: relative;
  transform: translate(-50%, calc(-100% - 9px));   /* 화살표 끝이 정확 위치를 가리키게 */
  display: inline-block; white-space: nowrap;
  background: rgba(17, 20, 24, .92); color: #fff;
  font-weight: 700; font-size: 13px; line-height: 1;
  padding: 9px 14px; border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.map-label::after {                                 /* 아래로 향하는 화살표(꼬리) */
  content: ""; position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(17, 20, 24, .92);
}
.visit-map iframe {
  display: block;
  width: 100%; height: 100%;
  border: 0;
}

/* ============================================================
   푸터
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #C7CDD6;
  padding: 48px 0 40px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: flex-start;
}

/* 푸터 로고 — 어두운 배경이므로 반전본 */
.footer-logo { height: 74px; width: auto; margin-bottom: 14px; }

.footer-brand { font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-meta { font-size: .8125rem; line-height: 1.8; color: #8C95A3; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-nav a, .footer-nav .linkish {
  font-size: .8125rem;
  color: #C7CDD6;
  text-decoration: none;
}
.footer-nav .linkish { color: var(--accent-light); }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 개인정보처리방침 — 펼치면 나오는 법적 고지 */
.policy {
  margin-top: 32px;
  padding: 26px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
}
.policy h3 { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.policy > p { font-size: .8125rem; color: #8C95A3; margin-bottom: 18px; }
.policy dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.policy dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; }
.policy dt { font-size: .8125rem; font-weight: 700; color: var(--accent-light); }
.policy dd { margin: 0; font-size: .8125rem; color: #8C95A3; line-height: 1.7; }

.footer-copy {
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8125rem; color: #8C95A3;
}

/* ============================================================
   퀵메뉴 — 데스크탑 우측 고정
   ============================================================ */
.quick {
  position: fixed;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex; flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.quick.is-shown { opacity: 1; visibility: visible; }

.quick-item {
  width: 74px;
  padding: 14px 6px;
  background: var(--surface);
  border: none;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  text-decoration: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.quick-item b { font-size: .8125rem; font-weight: 700; }
.quick-item span { font-size: .75rem; }
.quick-item:hover { background: var(--accent-tint); color: var(--accent-ink); }

.quick-primary { background: var(--accent-strong); color: #fff; }
.quick-primary:hover { background: var(--accent-hover); color: #fff; }

.quick-top { color: var(--ink-faint); }
.quick-top b { font-size: .6875rem; }

/* ============================================================
   모바일 하단 탭바 (네이티브 앱 네비 — 항상 표시)
   ============================================================ */
.tabbar {
  display: none;   /* ≤980 에서 flex 로 켜짐 */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  align-items: stretch;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);   /* 홈 인디케이터 위로 */
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none;
  color: var(--ink-faint);
  font-size: .6875rem; font-weight: 600;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover, .tab:active { color: var(--accent-ink); }
/* 중앙 체험신청 — 강조된 액센트 버튼 (살짝 크고 떠 있게) */
.tab-cta {
  flex: 1.22;
  margin: 7px 5px;
  border-radius: 15px;
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 14px rgba(58, 84, 128, .35);
}
.tab-cta:hover, .tab-cta:active { color: #fff; background: var(--accent-hover); }
.tab-cta svg { width: 21px; height: 21px; }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1280px) {
  .quick { display: none; }   /* 본문과 겹치기 시작하면 감춘다 */
}

/* ── 태블릿 이하 ─────────────────────────────────────────────
   가로 메뉴가 안 들어가는 지점. 여기서부터 햄버거 + 하단 CTA 바로 넘긴다.
   (이 둘을 640px 에서 켜면 641~980px 구간에 메뉴도 CTA도 없는 구멍이 생긴다) */
@media (max-width: 980px) {
  .visit, .inquiry-inner, .pillar-inner { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .pillar-photos { grid-template-columns: 1fr 1fr; }
  .policy dl > div { grid-template-columns: 1fr; gap: 4px; }

  .nav { display: none; }
  .header-inner .btn-sm { display: none; }
  .nav-toggle { display: none; }             /* 햄버거 제거 — 하단 탭바가 네비 역할 */

  .tabbar { display: flex; }
  /* 히어로 하단 fact 띠가 고정 탭바에 안 가리게 */
  .hero { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  /* 페이지 맨 아래(푸터)가 탭바에 안 가리게 */
  .site-footer { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px); }

  /* 드로어가 열리면 본문 스크롤을 잠근다 (script.js 가 클래스를 붙임).
     iOS 사파리는 overflow:hidden 만으론 배경이 계속 밀리므로 position:fixed 까지 써야 한다.
     대신 스크롤 위치가 날아가므로 script.js 가 top 값으로 되돌린다. */
  body.nav-open {
    position: fixed;
    left: 0; right: 0;
    overflow: hidden;
    width: 100%;
  }
}

/* ── 휴대폰 ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --header-h: 58px; }

  .wrap { padding-inline: 16px; }   /* iOS 표준 거터 */

  /* 섹션 세로 여백 축소 — 앱처럼 촘촘하게 (스크롤 길이 단축) */
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }

  /* 후기(최상단): 옆으로 스와이프하는 카러셀 — 앱 느낌, 화면 끝까지 */
  .quotes {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: -16px; padding-inline: 16px; scroll-padding-left: 16px;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 86%; scroll-snap-align: start; }

  .hero-cta { flex-direction: column; align-items: stretch; }

  /* 띠는 폰에서 2×2 로 접는다 (4칸을 가로로 두면 글자가 뭉개진다) */
  .hero-facts ul { grid-template-columns: 1fr 1fr; }
  .hero-facts li:nth-child(3), .hero-facts li:nth-child(4) { border-top: 1px solid rgba(255,255,255,.12); }
  .hero-facts li:nth-child(odd) { border-left: none; }
  .hero-facts li { padding: 15px 10px; }

  /* 사진 히어로: 세로 화면에선 가운데를 자르면 기타리스트 등짝만 나온다.
     오른쪽(보컬·드럼)으로 밀고, 카피가 화면을 다 쓰므로 위아래로 눌러 글자를 살린다. */
  .hero.has-photo .hero-photo { object-position: 72% center; }
  .hero.has-photo .hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(21,23,28,.90) 0%,
        rgba(21,23,28,.70) 42%,
        rgba(21,23,28,.52) 72%,
        rgba(21,23,28,.88) 100%);
  }

  /* 모바일에선 카피가 화면을 다 쓰므로 모션은 옅게 깔고 마스크를 위로 돌린다 */

  .field-row { grid-template-columns: 1fr; }

  .brand-mark, .brand-mark img { height: 28px; }
  .brand { gap: 9px; }
  .brand-text strong { font-size: 1rem; }

  /* 강사 3명이 세로로 쌓이면 점선 상자만 한참 스크롤하게 된다 */
  .teachers { grid-template-columns: 1fr 1fr; gap: 16px; }
  .teacher-bio { font-size: .8125rem; }

  .footer-logo { height: 58px; }
  .footer-inner { flex-direction: column; gap: 20px; }
}

/* ── 작은 휴대폰 (iPhone SE 등 375px 이하) ──────────────────── */
@media (max-width: 380px) {
  .wrap { padding-inline: 15px; }
  .brand-text strong { font-size: .9375rem; }
  .hero-facts b { font-size: 1.25rem; }
  .hero-facts span { font-size: .75rem; }
  .mobile-bar .btn { padding: 12px 12px; font-size: .9375rem; }
}


/* 강사진 가로 슬라이드와 약력 상세 */
#teachers { scroll-margin-top: 90px; }
.trainer .flip-back { display: none; }
.trainer-progress { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 22px 0; }
.trainer-progress span { display: block; width: 5px; height: 5px; border-radius: 5px; background: var(--line); }
.trainer-progress span.is-active { width: 20px; background: var(--accent-ink); }
.trainer-cta { display: block; width: fit-content; max-width: 100%; margin: 0 auto; padding: 13px 20px; border-radius: 12px; background: var(--accent); color: #fff; font-size: .875rem; font-weight: 700; text-align: center; text-decoration: none; }
.trainer-social { text-align: center; margin: 18px 0 0; font-size: .8rem; color: var(--ink-soft); }
.trainer-social a { color: var(--accent-ink); text-underline-offset: 4px; }
.teacher-dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.teacher-dialog::backdrop { background: rgba(16, 22, 32, .58); }
.teacher-dialog-close { position: sticky; top: 0; z-index: 2; display: block; min-height: 44px; margin: 0 0 22px auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 3px 12px rgba(20, 30, 45, .06); }
.teacher-dialog-heading { display: flex; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.teacher-dialog-photo { flex: none; width: 80px; height: 100px; object-fit: cover; object-position: center 28%; border-radius: 12px; }
.teacher-dialog .bio { padding: 0; }
.teacher-dialog .bio-name { font-size: 1.5rem; line-height: 1.4; font-weight: 800; margin: 0; }
.teacher-dialog .bio-name span { display: block; color: var(--accent-ink); font-size: .9375rem; line-height: 1.6; font-weight: 600; margin-top: 6px; }
.teacher-bio-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.teacher-bio-section h3 { color: var(--accent-ink); font-size: 1.0625rem; line-height: 1.5; font-weight: 800; margin: 0 0 14px; }
.teacher-bio-section ul { list-style: disc; padding-left: 1.15em; margin: 0; }
.teacher-bio-section li { color: var(--ink); font-size: 1rem; line-height: 1.85; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; padding-left: 3px; }
.teacher-bio-section li + li { margin-top: 12px; }
.teacher-bio-section li::marker { color: var(--accent-ink); font-size: .75em; }
.teacher-dialog .trainer-cta { margin-top: 28px; font-size: .9375rem; }
@media (max-width: 640px) {
  .trainer { margin-top: 0; }
  .trainer-head { gap: 16px; margin-bottom: 18px; }
  .trainer-nav { align-self: flex-end; }
  .trainer .swiper_btn { width: 44px; height: 44px; }
  .trainer-sub { font-size: .875rem; }
  .trainer-cta { width: 100%; font-size: .8125rem; }
  .teacher-dialog { padding: 18px 20px 24px; }
  .teacher-dialog-heading { gap: 16px; }
}
