/* =====================================================================
   달꿈음악학원 스타일 (모든 페이지 공통)

   바꾸고 싶은 색, 글꼴, 버튼은 아래 :root 변수만 고치면 모든 페이지에 반영됨

   화면 폭
     720px 이상 (태블릿, PC)  PC 상단 메뉴, 내용 두 단
     720px 미만 (휴대폰)      왼쪽 드로어 메뉴, 화면 아래 고정 버튼 바, 한 단
     - 폰 정렬선: 로고, 제목, 탭은 화면 끝에서 15px, 본문은 19px

   차례
     0. 변수            7. 소개 구역, 「한눈에 보기」
     1. 기본            8. 버튼, 글자 링크
     2. 틀, 구역        9. 본문 모듈 (특징 목록, 인용구, 박스, 수강료 표, 사진, 사진첩, 영상, 채널, 이용 안내)
     3. 상단 메뉴      10. 홈
     4. PC 메가 메뉴   11. 바닥글
     5. 폰 드로어 메뉴 12. 폰 하단 바
     6. 페이지 머리    13. 움직임
                       14. 인쇄
   ===================================================================== */


/* =====================================================================
   0. 변수
   ===================================================================== */
:root {
  /* 색 */
  --ink: #1c1814;          /* 제목, 상단 메뉴, 바닥글, 하단 바 */
  --body: #3b342d;         /* 본문 */
  --muted: #6d645a;        /* 보조 글자 */
  --line: #e9e5df;         /* 얇은 구분선 */
  --line-2: #d8d1c7;       /* 테두리 */
  --paper: #ffffff;
  --sand: #f5f3ef;         /* 페이지 머리, 교차 구역 */
  --brown: #6b4423;        /* 학원 색: 강조, 선택 */
  --honey: #f0ad2b;        /* 포인트 밑줄 */
  --quote-mark: #57504a;   /* 따옴표 */

  /* 글자 */
  --font: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;   /* 소개 문구, 인용구, 홈 카피 */

  /* 상담 버튼 */
  --btn-height: 46px;
  --btn-radius: 10px;
  --kakao-bg: #fee500;  --kakao-fg: #191600;  --kakao-line: #fee500;  --kakao-icon: #3c1e1e;
  --naver-bg: #ffffff;  --naver-fg: #1c1814;  --naver-line: #03c75a;  --naver-icon: #03a94f;
  --call-bg:  #ffffff;  --call-fg:  #1c1814;  --call-line:  #d8d1c7;  --call-icon:  #6b4423;

  /* 휴대폰 하단 바 */
  --bottom-bar-bg: #1c1814;
  --bottom-bar-icon: 44px;  --bottom-bar-icon-radius: 13px;
  --bottom-bar-label: rgba(255, 255, 255, .86);
  --bottom-bar-call: #34c759;   --bottom-bar-call-fg: #ffffff;
  --bottom-bar-kakao: #fee500;  --bottom-bar-kakao-fg: #191600;
  --bottom-bar-naver: #03c75a;  --bottom-bar-naver-fg: #ffffff;
  --bottom-bar-video-bg: #ffffff; --bottom-bar-video: #ff0033;

  /* 옅은 구분선 (위아래, 좌우로 흐려지는 선) */
  --fade-vertical: linear-gradient(to bottom, rgba(216, 209, 199, 0), var(--line-2) 50%, rgba(216, 209, 199, 0));
  --fade-horizontal: linear-gradient(to right, rgba(216, 209, 199, 0), var(--line-2) 50%, rgba(216, 209, 199, 0));
}


/* =====================================================================
   1. 기본
   ===================================================================== */
html { scroll-behavior: smooth; }
html.is-locked, html.is-locked body { overflow: hidden; }   /* 드로어 메뉴, 라이트박스가 열린 동안 */

.site { margin: 0; font-family: var(--font); color: var(--body); background: var(--paper); font-size: 16px; line-height: 1.75; letter-spacing: -0.015em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site h1, .site h2, .site h3 { color: var(--ink); margin: 0; text-wrap: balance; }

/* 줄바꿈 다듬기 (편집 디자인)
   - 본문 문단, 목록: 마지막 줄에 한 단어만 남지 않게 (text-wrap: pretty)
   - 짧은 글(표 칸, 「한눈에 보기」 값, 사진 설명, 작은 설명): 줄 길이를 고르게 (text-wrap: balance)
   - 단어 중간에서는 끊지 않음 (위 .site 의 word-break: keep-all)
   지원하지 않는 오래된 브라우저에서는 그냥 평소처럼 줄이 바뀜 */
.site p, .site li { text-wrap: pretty; }
.site dd, .site td, .site th, .site small, .site .caption, .site .sub, .site .lead, .site .lead-sub { text-wrap: balance; }
.site h1 { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.045em; }
.site h2 { font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: -0.04em; }
.site h3 { font-size: 16.5px; font-weight: 700; line-height: 1.45; letter-spacing: -0.03em; }
.site p { margin: 0 0 10px; }
.site p:last-child { margin-bottom: 0; }
.site ul { margin: 0; padding-left: 1.1em; }
.site li { margin: 2px 0; }
.site li::marker { color: var(--brown); }
.site a { color: var(--brown); text-underline-offset: 3px; }
.site a:focus-visible, .site button:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }
.site img { max-width: 100%; height: auto; display: block; }
.site button { font: inherit; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }   /* 이 덩어리 안에서는 줄을 바꾸지 않음 (예: 주소, 건물 이름) */
.site .note { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

@media (min-width: 720px) {
  .site { font-size: 16.5px; }
  .site h1 { font-size: 34px; }
  .site h2 { font-size: 26px; }
  .site h3 { font-size: 17.5px; }
}

/* 키보드 사용자를 위한 "본문 바로가기" (Tab 키를 누르면 나타남) */
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--paper); font-weight: 700; }
.site .skip-link { color: var(--ink); }
.skip-link:focus { left: 12px; }


/* =====================================================================
   2. 틀, 구역
   ===================================================================== */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 15px; }
.intro .wrap, .section .wrap { padding: 0 19px; }   /* 폰: 본문은 화면 끝에서 19px */
@media (min-width: 720px) {
  .wrap, .intro .wrap, .section .wrap { padding: 0 32px; }
}

/* 구역: 위아래 여백, 교차 바탕 */
.section { padding: 26px 0; }
.section.sand-bg { background: var(--sand); }
.section.tight-top { padding-top: 8px; }           /* 소개 바로 아래 구역 */
main > .section:not(.sand-bg) + .section:not(.sand-bg):last-child,
main > .section.sand-bg + .section.sand-bg:last-child { padding-top: 11px; }   /* 맨 아래 구역(블로그, 유튜브 등)이 바로 위 구역과 바탕색이 같을 때만: 두 구역 여백이 겹쳐 넓어 보이지 않게 줄임 */
@media (min-width: 720px) {
  .section { padding: 38px 0 40px; }
  .section.tight-top { padding-top: 14px; }
  .section.fees-section { padding-top: 30px; }
  main > .section:not(.sand-bg) + .section:not(.sand-bg):last-child,
  main > .section.sand-bg + .section.sand-bg:last-child { padding-top: 23px; }
}

/* 구역 제목: 작은 머리말 + 제목 (+ 제목 옆 설명) (+ 오른쪽 링크) */
.section-title { display: flex; align-items: last baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }   /* 오른쪽 링크 글자와 제목 글자의 아랫선(기준선)을 맞춤 */
.eyebrow { display: block; margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--brown); }
.section-title .eyebrow { position: relative; left: 1px; top: 2px; margin-bottom: 0; line-height: 1.3; font-weight: 500; letter-spacing: 0; }
.section-title .more-link { display: block; min-height: 0; line-height: 1.3; }   /* block: 화살표(svg)가 아니라 글자 줄이 기준선이 되게 */
.section-title .more-link svg { margin-left: 2px; vertical-align: -3px; }
.h2-note { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }   /* 제목 옆 설명 (수업 시간) */
@media (min-width: 720px) {
  .eyebrow { font-size: 13px; }
  .h2-note { display: inline-block; margin: 0 0 0 14px; padding-left: 14px; border-left: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.2; vertical-align: 0.28em; }
}

/* 두 단 (폰은 한 단) */
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 720px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .cols.wide-left { grid-template-columns: 7fr 5fr; }
  .cols.wide-right { grid-template-columns: 5fr 7fr; }
  .cols.center { align-items: center; }
}
@media (min-width: 1100px) { .cols { gap: 56px; } }

/* 두 단 높이 맞춤: 오른쪽(포스터) 높이에 맞춰 왼쪽 사진이 남은 높이를 채움 */
.cols.match-photo { align-items: stretch; }
.cols.match-photo > div:first-child { display: flex; flex-direction: column; }
/* 왼쪽 단 아래 사진: 폰은 정사각(사진 전체), PC 두 단은 오른쪽 단 높이에 맞춰 채움 */
.fill-photo { position: relative; flex: 1; aspect-ratio: 1 / 1; margin-top: 16px; border-radius: 12px; overflow: hidden; }
.fill-photo .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, 50% 50%); }   /* 보여줄 위치: style="--photo-position: 50% 5%" (위쪽) */
@media (min-width: 720px) { .fill-photo { aspect-ratio: auto; min-height: 0; } }

/* .cols.from-1120 : 태블릿(720~839px)만 한 단 (그림 속 글씨처럼 크게 보여야 하는 내용)
   840px 부터는 PC처럼 두 단 — 펼친 폴더블폰(폴드7 984px, 폴드8, 아이폰 폴드 약 900px대)도 PC와 같게 */
@media (min-width: 720px) and (max-width: 839px) {
  .cols.from-1120 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cols.from-1120 .fill-photo { flex: none; aspect-ratio: 5 / 4; }   /* 한 단일 때: 사진이 거의 다 보이게 */
}

/* 글 두 단, 읽기 좋은 폭, 블록 사이 간격 */
.text-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.measure { max-width: 720px; }
.block-gap { margin-top: 28px; }
.block-gap-sm { margin-top: 20px; }
@media (min-width: 720px) {
  .text-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .block-gap { margin-top: 44px; }
}


/* =====================================================================
   3. 상단 메뉴 (header.php)
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ink); }
.bar-wrap { position: relative; z-index: 32; background: var(--ink); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 32px; width: auto; }

/* PC 메뉴 (폰에서는 숨김) */
.nav-desktop { --nav-padding: 10px; display: none; align-items: center; }
.nav-item { position: relative; display: flex; }
/* 메뉴 사이 세로 구분선: 위아래 끝이 사라지는 아주 흐린 1px 선 (「홈」은 빼고 로고가 홈) */
.nav-item + .nav-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; transform: translateY(-50%); background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 64px; padding: 0 var(--nav-padding); background: none; border: 0; cursor: pointer; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.site .nav-link { color: rgba(255, 255, 255, .78); }
.site .nav-link:hover, .site .nav-link.active { color: #fff; }
.nav-link svg { opacity: .7; }
/* 선택 표시 밑줄: 글자 폭과 정확히 같게 */
.nav-link .nav-label { position: relative; display: inline-block; line-height: 22px; }
.nav-link.active .nav-label::after { content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; background: var(--honey); }

.header-call { display: none; align-items: center; gap: 6px; margin-left: 12px; height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.site .header-call { color: #fff; }
.site .header-call:hover { border-color: rgba(255, 255, 255, .6); }

/* 폰 메뉴 버튼 (≡) */
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: #fff; }

@media (min-width: 720px) {
  .header-bar { height: 64px; }
  .brand img { height: 36px; }
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
}
/* 840px 부터 (펼친 폴더블폰 포함) PC처럼 전화 버튼까지 보임, 1024px 부터 메뉴 사이를 더 넓게 */
@media (min-width: 840px) {
  .header-call { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav-desktop { --nav-padding: 16px; }
}

/* 메뉴 뒤 어두운 바탕, 닫기 버튼 */
.layer-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(28, 24, 20, .45); cursor: pointer; animation: layerFade .22s ease-out; }
.layer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 8px; }


/* =====================================================================
   4. PC 메가 메뉴 (pc_mega_menu.php) — 마우스를 올리면 열림 (data-layer = kids / adult)
   ===================================================================== */
.mega, .layer-backdrop.for-mega, .mega-col { display: none; }
@media (min-width: 720px) {
  .site-header[data-layer="kids"] :is(.mega, .layer-backdrop.for-mega, .mega-col),
  .site-header[data-layer="adult"] :is(.mega, .layer-backdrop.for-mega, .mega-col) { display: block; }
}
.layer-backdrop.for-mega { pointer-events: none; background: transparent; }   /* PC 메가 메뉴: 뒤 화면을 어둡게 덮지 않음 */

/* 흰 패널: 왼쪽에 상담 문의 */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 31; background: var(--paper); box-shadow: 0 14px 28px rgba(28, 24, 20, .10); animation: megaDown .2s ease-out; }   /* 뒤 화면은 어둡게 하지 않고, 패널 아래 연한 그림자로만 구분 */
.mega-inner { position: relative; min-height: 230.5px; padding: 20px 0 0; }   /* 높이 = 위 여백 14px + 가장 긴 목록(6줄) + 아래 여백 14px */
.mega-contact { width: 240px; }
.site .mega-title { margin: 0 0 -4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
.mega-phone { display: block; margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; font-variant-numeric: tabular-nums; text-decoration: none; }
.site .mega-phone { color: var(--ink); }
.btn.mega-channel { justify-content: flex-start; gap: 10px; align-items: center; line-height: 1.2; }

/* 세부 메뉴 목록: 각 상단 메뉴 글자 바로 아래 */
.mega-col { position: absolute; top: calc(100% + 14px); left: var(--nav-padding); z-index: 33; white-space: nowrap; animation: megaDown .2s ease-out; }
.nav-item[data-mega="kids"] .mega-col { left: calc(var(--nav-padding) - 5px); }
.nav-item[data-mega="adult"] .mega-col { left: calc(var(--nav-padding) + 23px); }
.nav-item[data-mega="adult"] .mega-col::before { content: ""; position: absolute; left: -37px; top: -2px; width: 1px; height: 210px; background: linear-gradient(to bottom, rgba(216, 209, 199, 0), var(--line-2) 22%, var(--line-2) 78%, rgba(216, 209, 199, 0)); }   /* 두 목록 사이 옅은 세로선 */
.mega-link { display: flex; align-items: center; gap: 3px; width: 100%; padding: 6px 0; font-size: 14.5px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.5; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 8px; transition: text-decoration-color .06s linear; }
/* 서브메뉴: 마우스를 올리는 영역은 그 줄의 가장 긴 메뉴 폭까지(width 100%), 올리면 글자는 검은색 + 글자 폭만큼 꿀색 밑줄 (키보드 Tab 도 같게) */
.site .mega-link { color: var(--ink); text-underline-offset: 8px; }   /* 밑줄과 글자 사이 8px (.site a 의 기본값을 덮어씀) */
.site .mega-link:hover, .site .mega-link:focus-visible { color: #111; text-decoration-color: var(--honey); }
.site .mega-link.active { color: var(--brown); font-weight: 700; }


/* =====================================================================
   5. 폰 드로어 메뉴 (phone_drawer.php) — ≡ 버튼으로 열림 (data-layer = drawer)
      스크롤 없이 한 화면에: 키가 작은 폰에서는 간격이 자동으로 줄어듦
   ===================================================================== */
.site-header:not([data-layer="drawer"]) :is(.drawer, .layer-backdrop.for-drawer) { display: none; }
@media (min-width: 720px) { .drawer, .layer-backdrop.for-drawer { display: none; } }

.drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 41; display: flex; flex-direction: column; width: min(328px, 84vw); background: var(--paper); overflow-y: auto; box-shadow: 16px 0 44px rgba(28, 24, 20, .22); animation: drawerFromLeft .34s cubic-bezier(.22, .8, .24, 1); }
.layer-backdrop.for-drawer { z-index: 40; background: rgba(28, 24, 20, .42); animation: layerFade .26s ease-out; }

/* 맨 위: 홈 + 닫기 */
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex: none; height: 56px; padding: 0 8px 0 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.drawer-home { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 18px; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.site .drawer-home { color: var(--ink); }
.site .drawer-home.active { color: var(--brown); }
.drawer-head .layer-close { color: var(--ink); }

/* 가운데: 메뉴 */
.drawer-body { padding: 0 20px 10px; animation: drawerItems .42s cubic-bezier(.22, .8, .24, 1) .06s both; }
.drawer-body > * { border-bottom: 1px solid var(--line); }
.drawer-body > :last-child { border-bottom: 0; }
.chevron { flex: none; color: #d3ccc2; }

/* 그룹 제목 (앞에 작은 네모) */
.drawer-group { padding: 14px 0 12px; }
.site .drawer-group-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.4; color: var(--ink); }
.drawer-group-title span { font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.drawer-group-title::before { content: ""; flex: none; align-self: center; width: 4px; height: 4px; margin-right: -1px; border-radius: 1px; background: var(--brown); transform: translateY(-1px); }

/* 그룹 안: 아주 옅은 배경 패널, 두 줄씩, 가운데 세로선과 줄 사이 가는 선 */
.drawer-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; padding: 2px 12px; background: #f9f7f4; border: 1px solid #efebe5; border-radius: 12px; }
.drawer-grid::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(to bottom, rgba(216, 209, 199, 0), #e3ddd4 20%, #e3ddd4 80%, rgba(216, 209, 199, 0)); pointer-events: none; }
.drawer-grid > a:nth-child(n+3) { border-top: 1px solid #efebe5; }
.drawer-sub { display: flex; align-items: center; gap: 3px; min-height: 39px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.35; text-decoration: none; }
.drawer-sub span { white-space: nowrap; }
.drawer-sub.small { font-size: 12.5px; letter-spacing: -0.06em; }   /* 긴 이름은 글자를 줄여 한 줄로 */
.site .drawer-sub { color: #463e36; }
.site .drawer-sub.active { color: var(--brown); font-weight: 700; }

/* 학원소개, 문의하기 (앞에 작은 네모) */
.drawer-link { display: flex; align-items: center; min-height: 50px; font-size: 18px; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.drawer-link::before { content: ""; flex: none; width: 4px; height: 4px; margin-right: 7px; border-radius: 1px; background: var(--brown); transform: translateY(-1px); }
.drawer-link .chevron { margin-left: auto; }
.site .drawer-link { color: var(--ink); }
.site .drawer-link.active { color: var(--brown); }
.drawer-sub.active .chevron, .drawer-link.active .chevron { color: var(--brown); opacity: .45; }
/* 지금 보고 있는 페이지: 글자 아래 꿀색 밑줄 (위 큰 메뉴, 폰 탭과 같은 색, 글자 폭에 맞춤) */
.drawer-sub.active > span, .drawer-link.active > span { position: relative; }
.drawer-sub.active > span::after, .drawer-link.active > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 1px; background: var(--honey); }
.drawer-link.active > span::after { bottom: -5px; }   /* 큰 메뉴 글자는 1px 더 아래 */

/* 맨 아래: 상담 문의 | 달꿈음악학원, 전화, 카카오톡, 네이버톡톡, 운영시간 */
.drawer-foot { flex: none; margin-top: auto; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--sand); border-top: 1px solid var(--line); }
.drawer-call-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-foot-label { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.drawer-foot-name { margin-left: 6px; padding-left: 7px; border-left: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.drawer-phone { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }   /* 전화번호가 「02-445- / 1122」로 나뉘지 않게 */
.site .drawer-phone { color: var(--ink); }
.drawer-apps { --bottom-bar-icon: 40px; --bottom-bar-icon-radius: 12px; display: flex; flex: none; gap: 8px; }
.drawer-apps .bottom-bar-icon { box-shadow: none; }
.site .drawer-hours { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* 폭이 좁은 폰: 칸 안 메뉴 이름과 화살표가 칸을 넘지 않게 글자, 간격을 줄임 (예: 344px 에서 「통기타 · 일렉기타 >」가 가운데 선을 넘던 것) */
@media (max-width: 374px) {
  .drawer-grid { column-gap: 18px; padding: 2px 10px; }
  .drawer-sub { font-size: 13.5px; }
  .drawer-sub.small { font-size: 12px; }
}
@media (max-width: 339px) {
  .drawer-sub { font-size: 12.5px; letter-spacing: -0.06em; }
  .drawer-sub.small { font-size: 11.5px; }
  .drawer-phone { font-size: 19px; }
}
@media (max-width: 319px) {   /* 아주 좁은 폰(갤럭시 폴드 1~4 접은 화면 약 280px): 두 칸이 모자라 한 칸으로, 아래 전화/앱 줄도 작게 */
  .drawer-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer-grid::before { display: none; }
  .drawer-grid > a + a { border-top: 1px solid #efebe5; }
  .drawer-sub, .drawer-sub.small { font-size: 13.5px; letter-spacing: -0.04em; }
  .drawer-phone { font-size: 17px; }
  .drawer-apps { --bottom-bar-icon: 34px; --bottom-bar-icon-radius: 10px; gap: 6px; }
}

/* 키가 작은 폰: 운영시간 숨기고 간격 줄이기 */
@media (max-height: 600px) { .site .drawer-hours { display: none; } }
@media (max-height: 560px) {
  .drawer-head { height: 50px; }
  .drawer-sub { min-height: 35px; }
  .drawer-link { min-height: 44px; }
}


/* =====================================================================
   6. 페이지 머리 (page_head.php): 머리말 + 제목 + 레슨 탭 (베이지 배경 영역 하나)
   ===================================================================== */
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); }
.page-head .title-row { display: flex; flex-direction: column; justify-content: center; padding: 16px 15px 10px; }
.page-head .eyebrow { display: none; position: relative; top: -2px; left: 1px; }
/* 큰 제목: 글자 옆 여백 때문에 들어가 보이므로 살짝 왼쪽, 위로 (광학 정렬) */
.page-head h1 { margin: -5px 0 0 calc(-0.11em + 2px); }
.page-head h1 .title-sub { margin-left: 6px; font-size: 0.5em; font-weight: 500; letter-spacing: -0.02em; vertical-align: 0.16em; color: var(--muted); }
@media (max-width: 719px) {
  .page-head h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-head h1 .title-sub { display: none; }
}
@media (min-width: 720px) {
  .page-head .title-row { padding: 16px 32px 12px; }
  .page-head .eyebrow { display: block; margin: 0 0 2px; line-height: 1.4; }
  .page-head h1 { font-size: 32px; line-height: 1.25; }
}

/* 레슨 탭 — PC: 밑줄 탭 + 옅은 세로 구분선 */
.tabs ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.site .tabs li { position: relative; display: flex; margin: 0; }
.tab { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 12px; font-size: 15px; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.site .tab { color: var(--muted); }
.site .tab:hover { color: var(--ink); }
.site .tab.current { color: var(--ink); font-weight: 700; }
.tab.current::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ink); }
.tabs li:first-child .tab { padding-left: 0; }
.tabs li:first-child .tab.current::after { left: 0; }
.tab-phone { display: none; }
@media (min-width: 720px) {
  .tabs li + li::before { content: ""; position: absolute; left: -2.5px; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--fade-vertical); pointer-events: none; }
  /* 제목 영역 아래: 가는 베이지 줄 + 지금 보는 탭에만 굵은 꿀색 밑줄 (탭 줄은 아래로 갈수록 살짝 밝게) */
  .page-head { border-bottom-color: #e3d9c9; }
  .tabs { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55)); }
  .tab.current::after { bottom: -1px; height: 4px; border-radius: 4px 4px 0 0; background: var(--honey); }
}

/* 레슨 탭 — 폰: 흰 탭 그룹 한 줄, 짧은 이름
     - 메뉴 글자 폭은 그대로 두고 남는 폭을 칸마다 똑같이 나눔 → 메뉴 사이 간격이 모두 같고, 세로선은 그 한가운데
     - 선택된 탭: 바탕 없이 진한 글씨 + 글자 폭만큼 꿀색 밑줄 (PC 상단 메뉴 밑줄과 같은 색)
     성인레슨(4개, ul.cols-2): 한 줄 (아주 좁은 폰은 글자를 조금 줄임)
     레슨 유초중고(5개, 입시 페이지에서만 6개, ul.cols-3): 한 줄, 넘치면 옆으로 밀어서 보기
                                     (오른쪽 끝 페이드 = 더 있음, 선택된 탭은 보이는 자리로 자동 이동 — academy.js) */
@media (max-width: 719px) {
  .tabs { padding: 0 0 14px; }
  .tabs ul { display: flex; flex-wrap: nowrap; gap: 0; padding: 3px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
             background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; }
  .tabs ul::-webkit-scrollbar { display: none; }
  .tabs ul.cols-3 { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .tabs ul.cols-3.is-scrolled { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }   /* 가운데쯤 밀려 있으면 양쪽 페이드 (academy.js) */
  .tabs ul.cols-3.is-scrolled.at-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }   /* 끝까지 밀면 왼쪽만: 반쯤 잘린 앞 탭 글자(예: 「아노」)를 흐리게 */
  .tabs ul.cols-3.at-end:not(.is-scrolled) { -webkit-mask-image: none; mask-image: none; }   /* 밀 필요가 없을 만큼 넓으면 페이드 없앰 */
  .site .tabs li { flex: 1 0 auto; justify-content: center; padding: 0 7px; }
  .site .tabs ul.cols-2 li { padding: 0 6px; }
  .tab, .tabs li:first-child .tab { flex: none; height: 34px; padding: 0; font-size: 12.5px; font-weight: 500; line-height: 34px; letter-spacing: -0.05em; }
  .tabs ul.cols-2 .tab, .tabs ul.cols-2 li:first-child .tab { font-size: 12px; }
  .site .tab { color: var(--body); }
  .site .tab.current { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--honey); }
  .tab.current::after { display: none; }
  .tab-pc { display: none; }
  .tab-phone { display: inline; }

  /* 탭 사이 아주 옅은 세로선: 칸 경계 = 두 메뉴 글자 사이 한가운데 */
  .tabs li + li::before { content: ""; position: absolute; left: -0.5px; top: 9px; bottom: 9px; width: 1px; background: var(--fade-vertical); pointer-events: none; }
}
@media (max-width: 379px) {
  .site .tabs ul.cols-3 li { padding: 0 5px; }   /* 360px 폰에서도 다섯 메뉴가 밀지 않고 한 줄에 다 보이게 */
  .site .tabs ul.cols-2 li { padding: 0 4px; }
  .tabs ul.cols-2 .tab, .tabs ul.cols-2 li:first-child .tab { font-size: 11.5px; letter-spacing: -0.08em; }
}
@media (max-width: 359px) {   /* 갤럭시 폴드 접은 화면(344px)까지 한 줄에 다 보이게. 320px은 원래대로 옆으로 밀어서 보기 */
  .site .tabs ul.cols-3 li { padding: 0 4px; }
  .tabs ul.cols-3 .tab, .tabs ul.cols-3 li:first-child .tab { font-size: 12px; }
}
@media (max-width: 319px) {   /* 280px 폰: 성인레슨 탭 4개가 칸 끝에 붙지 않게 */
  .site .tabs ul.cols-2 li { padding: 0 3px; }
  .tabs ul.cols-2 .tab, .tabs ul.cols-2 li:first-child .tab { font-size: 11px; letter-spacing: -0.09em; }
}


/* =====================================================================
   7. 소개 구역 (intro.php): 명조 소개 문구 + 상담 버튼 + 사진
   ===================================================================== */
.intro { padding: 15px 0 24px; }
.intro-cta { margin-top: 16px; }
.intro-photo { margin-top: 16px; }
.intro-photo .photo { border-radius: 12px; }
@media (min-width: 720px) {
  .intro { padding: 27px 0 32px; }
  .intro-cta { margin-top: 0; }
}

/* 넓은 사진 모양 (레슨 페이지): 소개 문구 | 상담 버튼 한 줄, 아래에 넓은 사진
   사진 비율: 폰 16:9, 태블릿, PC 3:1 (보여줄 위치는 페이지 파일의 photo 세 번째 값) */
.intro-wide .intro-top { display: flex; flex-direction: column; gap: 14px; }
.intro-wide .lead { margin-bottom: 0; }
.site .intro-wide .lead-sub { margin: 4px 0 0; }
.intro-wide .intro-cta { margin-top: 0; }
.intro-wide .intro-photo { margin-top: 18px; }
.intro-wide .intro-photo .photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
@media (min-width: 720px) {
  .intro-wide .intro-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .intro-wide .intro-cta { flex: none; }
  .site .intro-wide .lead-sub { margin-top: 2px; }
  .intro-wide .intro-photo { flex: none; margin-top: 26px; }
  .intro-wide .intro-photo .photo { aspect-ratio: 3 / 1; border-radius: 14px; }
}
@media (min-width: 720px) and (max-width: 767px) {
  .intro-wide .intro-top { flex-direction: column; align-items: stretch; gap: 18px; }   /* 720~767px: 오른쪽 상담 버튼 때문에 글 칸이 좁아 소개 문구가 세 줄로 넘어가서 (예: 「…맞춤 / 수업」), 폰처럼 버튼을 문구 아래에 둠 */
}

/* 소개 문구: 본명조 + 따옴표 (여는 따옴표는 정렬선 안쪽, 둘째 줄은 첫 글자에 맞춤) */
.site .lead { position: relative; margin: 0 0 10px; padding-left: 0.5em; text-indent: -0.5em; font-family: var(--serif); font-size: 17.5px; font-weight: 500; line-height: calc(1.65em - 1px); letter-spacing: -0.04em; color: var(--ink); }
.lead::before { content: "\201C"; display: inline-block; width: 0.5em; text-indent: 0; }
.lead::after { content: "\201D"; margin-left: 2px; }
.lead::before, .lead::after { font-family: var(--serif); font-weight: 500; color: var(--quote-mark); }
.site .lead-sub { margin: -3px 0 16px; padding-left: calc(17.5px * 0.5); font-size: 14px; line-height: 1.5; letter-spacing: -0.03em; color: var(--muted); }   /* 소개 문구 아래 작은 설명 */
@media (min-width: 720px) {
  .site .lead { font-size: 22px; }
  .site .lead-sub { margin: -7px 0 22px; padding-left: 11px; font-size: 15.5px; }
}

/* 옆 사진 모양 (학원소개, 문의하기): [소개 문구 + 설명 + 버튼(또는 상담 카드)] | [사진 또는 사진첩]
     폰: 위아래 / 720~1023px(펼친 폴더블폰, 태블릿): 글 칸을 넓게(6:5), 소개 문구 20px / 1024px~: 사진 칸을 넓게(5:6)
     사진 비율: 한 장 — 폰 16:10, PC 16:9 / 사진첩 2×2 — 폰 3:2, 720~1023px 1:1, PC 4:3 (위 구역이 너무 높지 않게)
     below(문의하기 상담 카드): 폰은 [글 → 사진 → 카드] 순서, PC는 글 바로 아래(왼쪽 단) — 글+카드 그룹이 사진 높이의 가운데 */
.intro-side .intro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.intro-below > .ways { margin-top: 0; }
.intro-side .lead { margin-bottom: 0; }
.site .intro-side .lead-sub { margin: 12px 0 0; line-height: 1.6; text-wrap: balance; }   /* 큰 문구와 작은 설명 사이를 넉넉히 */
.intro-side .intro-cta { margin-top: 22px; }
.intro-side .intro-photo { margin-top: 0; }
.intro-side .intro-photo > .photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.intro-side .gallery-grid { gap: 8px; }
.intro-side .gallery-item, .intro-side .gallery-item .photo { border-radius: 14px; }
.intro-side .gallery-item .photo { aspect-ratio: 3 / 2 !important; }
@media (min-width: 720px) {
  .intro-side .intro-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; }
  .intro-side .intro-grid.has-below { grid-template-areas: ". photo" "text photo" "below photo" ". photo"; grid-template-rows: 1fr auto auto 1fr; row-gap: 0; }
  .intro-grid.has-below > .intro-text { grid-area: text; }
  .intro-grid.has-below > .intro-photo { grid-area: photo; }
  .intro-grid > .intro-below { grid-area: below; margin-top: 22px; }
  .site .intro-side .lead { font-size: 20px; }
  .site .intro-side .lead-sub { padding-left: 10px; }   /* 문구 20px 의 따옴표 폭(0.5em)과 같게 → 작은 설명 첫 글자가 문구 첫 글자와 같은 선 */
  .intro-side .intro-photo > .photo { aspect-ratio: 16 / 9; }
  .intro-side .gallery-item .photo { aspect-ratio: 1 / 1 !important; }
}
@media (min-width: 1024px) {
  .intro-side .intro-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; }
  .site .intro-side .lead { font-size: 22px; }
  .site .intro-side .lead-sub { padding-left: 11px; }   /* 문구 22px 의 따옴표 폭에 맞춤 */
  .intro-side .gallery-item .photo { aspect-ratio: 4 / 3 !important; }
}

/* =====================================================================
   8. 버튼, 글자 링크
   ===================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--btn-height); padding: 0 18px; border: 1.5px solid transparent; border-radius: var(--btn-radius); font-size: 15px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { filter: brightness(.97); }
.btn svg { flex: none; }
.site .btn-line { background: var(--paper); color: var(--ink); border-color: var(--line-2); }

/* 상담 버튼 (contact_buttons.php) */
.contact-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.contact-buttons .btn { padding: 0 15px 0 5px; font-size: 14.5px; }   /* 아이콘+글자를 살짝 왼쪽으로 */
.contact-buttons .btn-call { display: none; }                         /* 폰은 하단 바에 전화가 있음 */
@media (max-width: 319px) { .contact-buttons { grid-template-columns: minmax(0, 1fr); } }   /* 280px 폰: 두 버튼이 좁아 로고가 버튼 밖으로 나가서 위아래로 */
.contact-buttons.stack { display: flex; flex-direction: column; }
.contact-buttons.stack .btn { width: 100%; }
.contact-buttons.stack .btn-call { display: inline-flex; }
@media (min-width: 720px) {
  .contact-buttons { display: flex; flex-wrap: wrap; }
  .contact-buttons .btn { padding: 0 23px 0 13px; font-size: 15px; }
  .contact-buttons .btn-call { display: inline-flex; }
}
.site .btn-kakao { background: var(--kakao-bg); color: var(--kakao-fg); border-color: var(--kakao-line); }
.site .btn-naver { background: var(--naver-bg); color: var(--naver-fg); border-color: var(--naver-line); }
.site .btn-call { background: var(--call-bg); color: var(--call-fg); border-color: var(--call-line); font-variant-numeric: tabular-nums; }
.site .btn-call svg { color: var(--call-icon); }
/* 카카오톡: 꽉 찬 브라운 말풍선 / 네이버톡톡: 꽉 찬 초록 말풍선 + 흰 점 */
.site .btn-kakao svg { color: var(--kakao-icon); }
.btn-kakao svg path { fill: currentColor; stroke: currentColor; }
.site .btn-naver svg { color: var(--naver-icon); }
.btn-naver svg path:first-child { fill: var(--naver-icon); stroke: var(--naver-icon); }
.btn-naver svg path:last-child { stroke: #fff; stroke-width: 2.4; }

/* 글자 링크 (수강료 표 보기, 채널 보기 등) */
.more-link { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.site .more-link { color: var(--brown); }
/* 누르는 범위: 글자는 작아도 손가락으로 누르기 쉽게 위아래로 넓힘 (모양, 자리는 그대로) — 「더보기」 링크, 전화번호 */
.section-title .more-link, .site a.visit-tel, .site .visit-strip .strip-phone { position: relative; }
.section-title .more-link::before, .site a.visit-tel::before, .site .visit-strip .strip-phone::before { content: ""; position: absolute; inset: -10px -6px; }
@media (max-width: 719px) {
  /* 폰: 작은 버튼, 탭의 누르는 범위를 보이지 않게 넓힘 (모양은 그대로, 손가락으로 누르기 쉽게) */
  .site .tabs .tab::before { content: ""; position: absolute; inset: -3px -7px; }   /* 탭 글자 폭만 눌리던 것을 탭 사이 여백까지 */
  .site a.hero-btn, .site a.zigzag-more { position: relative; }
  .site a.hero-btn::before, .site a.zigzag-more::before { content: ""; position: absolute; inset: -6px 0; }   /* 높이 32~34px 버튼을 위아래 6px 씩 */
}


/* =====================================================================
   9. 본문 모듈
   ===================================================================== */

/* 과정, 특징 목록 (features.php) — 모래색 구역 위에 항목마다 흰 라운드 카드
     카드: [아이콘, 이름, 라벨] | 설명   PC: 왼쪽 이름 칸 + 오른쪽 설명 / 폰: 이름 줄 아래에 설명 */
.feature-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.feature-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 18px 20px; border: 1px solid #ebe6df; border-radius: 16px; background: var(--paper); }
.feature-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.feature-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: #efe6da; color: var(--brown); }
.feature-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.site .feature-name h3 { margin: 0; font-size: 16.5px; line-height: 1.35; letter-spacing: -0.04em; }
.feature-name span { font-size: 13px; line-height: 1.45; letter-spacing: -0.01em; color: #8a5a2e; }
.site .feature-body p, .site .feature-body li { margin: 0; font-size: 15px; line-height: 1.75; letter-spacing: -0.02em; }
.site .feature-body > * + * { margin-top: 6px; }
.site .feature-body ul { margin-bottom: 0; padding-left: 1.05em; }
.site .feature-body .note { font-size: 14px; color: var(--muted); }
.site .feature-body > :last-child { margin-bottom: -7px; }   /* 마지막 줄 아래 줄간격(약 7px)만큼 당김 → 설명이 여러 줄인 카드도 위(아이콘 위 끝)와 아래(마지막 글자) 여백이 같아짐 */
@media (min-width: 720px) {
  .feature-list { gap: 12px; }
  .feature-item { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: stretch; padding: 24px 28px; }
  .feature-head { align-self: start; gap: 14px; }
  .feature-icon { width: 42px; height: 42px; }
  .site .feature-name h3 { font-size: 18px; }
  .feature-name span { font-size: 13.5px; }
  /* 설명 칸 세로 위치: 한 줄이면 왼쪽 아이콘, 이름 영역의 세로 가운데,
     두 줄 이상이면 첫 줄의 글자 아랫선 = 이름의 글자 아랫선 (칸이 그룹보다 길어져 위에서 시작) */
  .feature-body { display: flex; flex-direction: column; justify-content: center; max-width: 46em; margin-top: -1px; }
  .feature-item.no-tag .feature-body { justify-content: flex-start; padding-top: 9px; }   /* 라벨 없는 카드: 이름이 아이콘 가운데 있으므로 그 줄에 맞춤 (한 줄이어도 거의 가운데) */
  .site .feature-body p, .site .feature-body li { font-size: 16px; }
}
@media (min-width: 1024px) {
  .feature-item { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 26px 32px; }
}
/* 이름이 긴 목록 (features 'wide'): PC에서 이름 칸을 넓혀 이름을 한 줄로 — 같은 목록 안의 설명은 같은 줄에서 시작 */
@media (min-width: 720px) {
  .feature-list.wide .feature-item { grid-template-columns: 276px minmax(0, 1fr); }
  .site .feature-list.wide .feature-name h3 { white-space: nowrap; }
}
@media (min-width: 1024px) {   /* 넓은 PC: 이름 아래 작은 설명(예: 악기대여의 「통기타 3대, 기타 앰프(일렉, 베이스) 무료」)도 한 줄로 */
  .feature-list.wide .feature-item { grid-template-columns: 324px minmax(0, 1fr); }
  .feature-list.wide .feature-name span { white-space: nowrap; }
}

/* 강조 문구 (quote.php) — 박스 없이 가는 선 아래 본명조 문구 + 작은 설명, <em> 낱말에 꿀색(주황) 밑줄 */
.quote { margin-top: 24px; padding-top: 8px; border-top: 1px solid #ddd3c4; }
.site .quote-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin: 0; }
.quote-text strong { padding-left: 0.5em; text-indent: -0.5em; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.45; letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
/* 앞뒤 큰따옴표 (소개 문구 .lead 와 같은 방식): 흐린 색, 여는 따옴표는 글 시작선 왼쪽으로 내어씀 */
.quote-text strong::before { content: "\201C"; display: inline-block; width: 0.5em; text-indent: 0; }
.quote-text strong::after { content: "\201D"; margin-left: 2px; }
.quote-text strong::before, .quote-text strong::after { font-weight: 500; color: var(--quote-mark); }
.quote-text em { font-style: normal; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.quote-text span { padding-top: 5px; padding-left: calc(21px * 0.5); font-size: 14px; line-height: 1.45; letter-spacing: -0.02em; color: var(--muted); text-wrap: pretty; }
@media (min-width: 720px) {
  .quote-text strong { font-size: 25px; }
  .quote-text span { padding-left: calc(25px * 0.5); font-size: 15px; }   /* 작은 설명: 따옴표 안 「실」 글자 시작선에 맞춤 */
}

/* 수업 특징 나누기 (feature-split) — 제목, 강조 문구 | 카드 목록
   ~839px: 제목 → 문구 → 카드 위아래로
   840px~ (작은 노트북 창, 펼친 폴더블 포함): 왼쪽 제목, 문구 | 오른쪽 카드 두 단
     왼쪽 5 : 오른쪽 7. 840~1023px 는 오른쪽 카드 안을 「이름 위, 설명 아래」로, 1024px~ 는 이름 | 설명 */
.feature-split .split-side .quote { margin: 0 0 20px; }
.feature-split .split-side .section-title { margin-bottom: 12px; }
@media (max-width: 719px) {   /* 폰: Kids반 수업 특징 */
  .feature-split .quote-text { max-width: 284px; }
  .feature-split .quote-text strong { letter-spacing: -1px; }
}
@media (min-width: 840px) {
  .feature-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
  .feature-split .split-side { position: sticky; top: 88px; }   /* 카드를 내리는 동안 왼쪽 문구가 따라옴 (위 메뉴 64px 아래) */
  .feature-split .split-side .section-title { margin-bottom: 13px; }
  .feature-split .quote-text span { max-width: 323px; }   /* PC: 설명이 두 줄로 나뉘는 폭 */
  .feature-split .split-side .quote { margin: 0; }
}
@media (min-width: 840px) and (max-width: 1023px) {
  .feature-split .feature-item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .feature-split .feature-body, .feature-split .feature-item.no-tag .feature-body { display: block; margin-top: 0; padding-top: 0; }
  .feature-split .quote-text strong { font-size: 22px; }   /* 왼쪽 칸이 좁아 문구가 한 줄에 들어가게 */
  .feature-split .quote-text span { padding-left: 11px; }
}
@media (min-width: 1024px) {
  .feature-split { gap: 48px; }
  .feature-split .feature-item { grid-template-columns: 184px minmax(0, 1fr); }
  .site .feature-split .feature-name h3 { white-space: nowrap; }
}
@media (min-width: 1180px) {   /* 넓은 PC: 왼쪽 4 : 오른쪽 7 */
  .feature-split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

/* 작은 원비 박스 (fee_mini) — 수업 특징 왼쪽, 강조 문구 아래
   ~839px: 문구 → 카드 → 원비 순 (원비 헤더 행: 「원비」 흰 배지, 설명은 오른쪽 끝) / 840px~: 원비 박스 위끝 = 두 번째 카드 위끝, 아래끝 = 마지막 카드 아래끝
   (왼쪽 [제목, 문구 / 원비] 와 오른쪽 카드 3장을 한 격자 3줄에 놓아 맞춤 — 감싸는 줄에 has-fee) */
.fee-mini { margin: 0 0 22px; border: 1px solid #e3d9c9; border-radius: 14px; background: var(--paper); overflow: hidden; }
.site .fee-mini .fee-mini-head { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 11px 16px; background: #faf6ee; border-bottom: 1px solid #efe6d6; }
.fee-mini-head strong { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.fee-mini-head span { font-size: 12.5px; color: var(--muted); }

/* Kids반 원비: 폰, PC 모두 다섯 칸 (칸마다 「주 n회」 아래 금액) */
.site .fee-mini-rows { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.site .fee-mini-rows li { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; margin: 0; padding: 11px 0 12px; font-variant-numeric: tabular-nums; }
.site .fee-mini-rows li + li { border-left: 1px solid #f1ebe2; }
.site .fee-mini-rows span { font-size: 14px; color: var(--muted); letter-spacing: -0.02em; }
.fee-mini-rows b { margin-top: 1px; font-size: 14.5px; font-weight: 500; color: #494847; letter-spacing: -0.04em; }   /* 「주 1회」와 붙여서, 금액은 얇게 */

/* 피아노 정규반: 교재 × 주 횟수 표 */
.fee-mini-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-mini-table th, .fee-mini-table td { padding: 0; border: 0; text-align: center; white-space: nowrap; }
.fee-mini-table thead th { height: 32px; font-size: 11.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid #f1ebe2; }
.fee-mini-table thead td { border-bottom: 1px solid #f1ebe2; }
.fee-mini-table tbody th { padding-left: 14px; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.fee-mini-table td { height: 34px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); }
.fee-mini-table td:last-child { padding-right: 8px; }
.fee-mini-table tbody tr + tr th, .fee-mini-table tbody tr + tr td { border-top: 1px solid #f4efe7; }
.fee-mini-table tbody tr:first-child { background: #fffaf0; }
.fee-mini-table .no-price { font-style: normal; font-weight: 400; color: #c9bfb2; }

/* 금액이 같은 교재끼리 묶은 표 (폰, PC 같은 모양) — 주 1회~5회 5줄 × 그룹 2칸, 헤더 행에 [원비 | 그룹 이름들] */
.site .fee-mini:has(.fee-mini-corner) .fee-mini-head { display: none; }
.fee-mini:has(.fee-mini-grouped) { container-type: inline-size; }   /* 칸 너비를 화면이 아니라 박스 폭 기준으로 정함 (cqw: 박스 폭의 1%) */
.fee-mini-grouped { table-layout: fixed; }
.fee-mini-grouped tbody tr:first-child { background: none; }
.fee-mini-grouped thead tr { background: #faf6ee; }   /* 헤더 행: PC 와 같은 옅은 크림색 */
.fee-mini-grouped thead th, .fee-mini-grouped thead td { height: auto; padding: 12px 0 11px; border-bottom: 1px solid #efe6d6; font-size: 14.5px; line-height: 1.32; font-weight: 700; letter-spacing: -0.03em; color: #494847; }
.fee-mini-grouped .fee-mini-corner { font-size: 16px; }
.fee-mini-grouped thead th { font-size: 13.5px; }   /* 그룹 이름 */
/* 칸마다 글자를 가운데 — 세로줄 양옆 여백이 같음. 「원비」 칸은 금액 칸보다 좁게 */
.fee-mini-grouped .fee-mini-corner, .fee-mini-grouped tbody th { width: calc(33.333cqw - 15px); padding: 0; text-align: center; }
.fee-mini-grouped tbody th { font-size: 14px; font-weight: 600; letter-spacing: -0.03em; color: #494847; }   /* 표 글자는 모두 같은 먹색 */
.fee-mini-grouped td { height: 38px; font-size: 14px; font-weight: 500; color: #494847; }   /* 금액은 얇게, 조금 옅은 먹색 */
.fee-mini-grouped td:last-child { padding-right: 0; }
.fee-mini-grouped tr > * + * { width: calc(33.333cqw + 7.5px); border-left: 1px solid #eee7dc; }   /* 금액 두 칸: 남은 폭을 반씩, 칸 사이 세로줄 */
.fee-mini-grouped thead tr > * + * { border-left-color: #eee7dc; }
@media (min-width: 840px) {
  .fee-mini-grouped thead th { font-size: 14px; }
  .fee-mini-grouped .fee-mini-corner { font-size: 17px; }   /* PC: 왼쪽 위 「원비」 글자 */
  .fee-mini-grouped thead th, .fee-mini-grouped thead td { padding: 11px 0 10px; border-bottom-color: #efe6d6; }
  .fee-mini-grouped tbody th { font-size: 15px; }
  .fee-mini-grouped td { height: 40px; font-size: 15px; }   /* 줄 높이 40px 기준 — 박스가 카드 정렬선(위, 아래)에 맞춰 늘어나면 그만큼 조금 넓어짐 */
}
}

/* Kids반 원비 (폰, PC 같은 모양): 헤더 행 [「원비」 배지 … 설명], 아래 다섯 칸 「주 n회 / 금액」 */
.site .feature-split.has-fee .fee-mini .fee-mini-head { align-items: center; gap: 9px; padding-top: 9px; padding-bottom: 9px; background: #faf6ee; border-bottom-color: #efe6d6; }
@media (max-width: 839px) { .site .feature-split.has-fee .fee-mini .fee-mini-head { padding-top: 10px; padding-bottom: 8px; } }   /* 폰: 원비 제목 줄 위아래 여백 */
.site .feature-split.has-fee .fee-mini-head strong { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: #efe6da; font-size: 14px; letter-spacing: -0.02em; color: var(--brown); }   /* 「원비」 배지 (카드 아이콘 뒤 색) */
.site .feature-split.has-fee .fee-mini-head span { margin-left: auto; font-size: 13px; font-weight: 500; color: #4a4138; }   /* 설명은 오른쪽 끝, 진하게 */
.site .fee-mini-rows span, .fee-mini-rows b { line-height: 1.3; }
.feature-body .pc-break { display: none; }   /* 카드 설명의 PC 전용 줄바꿈 */
@media (max-width: 839px) {   /* 폰, 좁은 화면: 원비 박스는 카드 3장 아래로, 설명은 오른쪽 끝에 붙임 */
  .feature-split.has-fee { display: flex; flex-direction: column; }
  .feature-split.has-fee .split-main { order: 1; }
  .feature-split.has-fee .fee-mini { order: 2; margin: 20px 0 0; border-color: #dccdb7; }   /* 흰 카드들과 구별되게 테두리 한 톤 진하게 */
}
@media (min-width: 840px) {
  .feature-body .pc-break { display: inline; }

  .feature-split.has-fee { grid-template-rows: auto auto auto; row-gap: 12px; align-items: stretch; }
  .feature-split.has-fee .split-main, .feature-split.has-fee .split-main .feature-list { display: contents; }
  .feature-split.has-fee .split-side { grid-column: 1; grid-row: 1; position: static; }
  .feature-split.has-fee .fee-mini { grid-column: 1; grid-row: 2 / 4; display: flex; flex-direction: column; margin: 0; }
  .feature-split.has-fee .feature-item { grid-column: 2; align-content: center; }
  .feature-split.has-fee .feature-item:nth-child(1) { grid-row: 1; }
  .feature-split.has-fee .feature-item:nth-child(2) { grid-row: 2; }
  .feature-split.has-fee .feature-item:nth-child(3) { grid-row: 3; }
  .feature-split.has-fee .fee-mini-table { flex: 1; }
  .feature-split.has-fee.fee-kids { grid-template-rows: auto auto; }   /* Kids반 카드 2장 */
  .feature-split.has-fee .fee-mini:has(.fee-mini-rows) { grid-row: 2; align-self: stretch; }   /* Kids반: 원비 박스 = 「2 : 1 시스템」 카드와 같은 줄, 같은 높이 */
  .feature-split.has-fee .fee-mini-rows { flex: 1; }
  .site .feature-split.has-fee .fee-mini-rows li { padding: 14px 0 15px; }
  .site .feature-split.has-fee .fee-mini-rows span { font-size: 14.5px; }
  .site .feature-split.has-fee .fee-mini-rows b { font-size: 15.5px; }

  /* 피아노: 문구 위아래 여백 (PC) */
  .site .fee-piano .split-side .quote { padding-top: 6px; }
  .site .fee-piano .quote-text { padding-bottom: 10px; }

  /* Kids반: 제목, 문구 사이를 줄이고 그만큼 문구 아래(원비 박스 위)에 여백 */
  .fee-kids .split-side .section-title { margin-bottom: 6px; }
  .site .fee-kids .split-side .quote { padding-top: 3px; }
  .site .fee-kids .quote-text span { padding-top: 2px; }
  .fee-kids .split-side { padding-bottom: 15px; }
}

/* 수업, 수강료 카드 (fee_cards.php)
   수업마다 카드 한 장(머리: 이름 │ 설명 / 줄: 수업, 횟수 | 수강료) + 아래 흰 안내 박스(아이콘, 제목 │ 내용)
   가격은 강조하지 않음(본문 크기, 조금 굵게). 카드가 하나면 PC에서 카드 | 안내 박스 두 단 */
.fee-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fee-card-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fee-card { border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); overflow: hidden; }
.fee-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 15px 18px 13px; background: var(--sand); border-bottom: 1px solid var(--line); }   /* 글자가 줄 가운데보다 1px 위에 그려져서 위 1px 더, 아래 1px 덜 */
.section.sand-bg .fee-card-head { background: #faf8f5; }   /* 모래색 구역 안에서는 카드 머리를 더 옅게 */
.site .fee-card-head h3 { position: relative; margin: 0 12px 0 0; padding-right: 13px; font-size: 17px; letter-spacing: -0.04em; }
.fee-card-head h3::after, .fee-notes strong::after { content: ""; position: absolute; right: 0; top: 14%; bottom: 14%; width: 1px; background: linear-gradient(to bottom, rgba(201, 191, 178, 0), #c9bfb2 50%, rgba(201, 191, 178, 0)); }   /* 제목 │ 설명 사이 흐려지는 세로선 */
.fee-card-head span { font-size: 14px; line-height: 1.5; letter-spacing: -0.02em; color: var(--muted); text-wrap: balance; }   /* 길면 제목 아래로 내려오지 않고 설명 칸 안에서 줄바꿈 */
.site .fee-card-rows { margin: 0; padding: 0 18px; list-style: none; }
.site .fee-card-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; letter-spacing: -0.02em; color: var(--body); }
.site .fee-card-rows li:last-child { border-bottom: 0; }
.fee-card-rows em { margin-left: 6px; font-size: 14px; font-style: normal; color: var(--muted); }
.fee-card-rows b { flex: none; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* 안내 박스: 줄마다 [아이콘 | 제목 │ 내용] 세 칸 — 위아래로 쌓일 때는 세 칸을 모든 줄이 함께 써서(subgrid)
   세로선과 내용 시작 위치가 가장 긴 제목(예: 추가사용)에 맞춰 한 줄로 정렬됨. 내용은 제목 아래로 내려오지 않고 내용 칸 안에서만 줄바꿈 */
.fee-notes { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-auto-rows: 1fr; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }   /* 모서리는 바로 위 수강료 카드와 같은 14px */
.site .fee-notes p { display: grid; grid-column: 1 / -1; grid-template-columns: auto auto minmax(0, 1fr); grid-template-columns: subgrid; align-items: center; margin: 0; padding: 13px 16px; font-size: 15px; line-height: 1.6; letter-spacing: -0.02em; color: var(--body); }
.fee-note-text { text-wrap: balance; }
@media (max-width: 319px) { .fee-note-text .nowrap { white-space: normal; } }   /* 280px 폰: 덩어리가 칸보다 길어 넘쳐서 줄바꿈 허용 */
@media (max-width: 374px) { .site .fee-notes p { padding: 12px 13px; font-size: 14px; } .fee-note-icon { margin-right: 8px; } }   /* 아주 좁은 폰: 안내 내용 칸이 모자라지 않게 */
.fee-notes p + p { border-top: 1px solid #efebe5; }
.fee-note-icon { flex: none; align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: #efe6da; color: var(--brown); }
.fee-notes strong { position: relative; display: inline-block; margin-right: 11px; padding-right: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (min-width: 720px) {
  .fee-cards { gap: 20px; }
  .fee-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .fee-card-list > .fee-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }   /* 나란한 카드의 머리 높이를 같게 맞춤 → 첫 줄 금액 위치가 양쪽에서 같아짐 (예: 관현악 768px, 설명이 두 줄인 카드) */
  .fee-card-head { padding: 17px 24px 15px; }
  .site .fee-card-head h3 { font-size: 18px; }
  .site .fee-card-rows { padding: 0 24px; }
  .site .fee-card-rows li { padding: 17px 0 15px; font-size: 16px; }   /* 글자 위아래 여백을 같게 (위 1px 더) */
  .fee-cards:not(.single) .fee-notes { display: flex; flex-direction: row; }   /* 카드가 여러 장: 안내 줄을 옆으로 나란히 (줄마다 따로 세 칸) */
  .fee-cards:not(.single) .fee-notes p { grid-template-columns: auto auto minmax(0, 1fr); }
  .site .fee-notes p { flex: 1; padding: 16px 22px; font-size: 16px; }
  .fee-notes p + p { border-top: 0; border-left: 1px solid #efebe5; }
  /* 카드가 하나: 카드 | 안내 박스(세로) */
  .fee-cards.single { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .fee-cards.single .fee-card-list { grid-template-columns: minmax(0, 1fr); }
  .fee-cards.single .fee-notes p { padding: 14px 22px; }   /* 줄들이 박스 높이를 고르게 나눠 채움 (grid-auto-rows: 1fr) */
  .fee-cards.single .fee-notes p + p { border-left: 0; border-top: 1px solid #efebe5; }
}

/* 사진, 사진 아래 설명, 두 장 나란히 */
.photo { width: 100%; height: auto; border-radius: 12px; background-color: #ebe5dc; color: transparent; }   /* 사진을 받는 중이거나 못 받으면 같은 모양의 옅은 칸으로 보임 (깨진 그림 표시, 대체 글자는 감춤 — 읽어 주기 프로그램은 그대로 읽음) */
.caption { font-size: 14px; line-height: 1.5; letter-spacing: -0.025em; color: var(--muted); text-wrap: pretty; }
.caption strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .pair { gap: 20px; } }
/* .cols.fill-pair : 왼쪽 두 장(.pair)의 사진이 오른쪽 단 높이에 맞춰 늘어남 (아래 빈 공간 없이 두 단 정렬선 맞춤) */
@media (min-width: 720px) {
  .fill-pair .pair > div { display: flex; flex-direction: column; }
  .fill-pair .pair .photo { flex: 1 1 0; min-height: 120px; object-fit: cover; }
}

/* 사진첩 (gallery.php) — g-m○ = 폰 한 줄 장수, g-p○ = PC 한 줄 장수 */
.gallery-grid { display: grid; gap: 4px; }
.gallery-phone-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-phone-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-phone-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .gallery-grid { gap: 8px; }
  .gallery-pc-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-pc-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-pc-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-pc-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gallery-grid.gallery-split { grid-template-columns: repeat(var(--gallery-cols), minmax(0, 1fr)); }   /* 줄마다 장수 고르게 (gallery.php) */
  .gallery-split > .gallery-item { grid-column: span var(--gallery-span); }
}
/* 폰: 장수가 딱 나눠지지 않으면 첫 사진을 넓게 (gallery.php) — 한 줄 전체면 16:9, 일부면 옆 사진 높이에 맞춤 */
@media (max-width: 719px) {
  .gallery-lead { grid-column: span var(--gallery-lead); }
  .gallery-lead.full .photo { aspect-ratio: 16 / 9 !important; }
  .gallery-lead:not(.full) .photo { aspect-ratio: auto !important; height: 100%; }
}
.gallery-item { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.gallery-item .photo { border-radius: 8px; transition: transform .3s ease; }
.gallery-item:hover .photo { transform: scale(1.03); }
.is-zoom { cursor: zoom-in; transition: opacity .2s ease; -webkit-user-select: none; user-select: none; }   /* 낱장 사진: 누르면 라이트박스 */
.gallery-item { -webkit-user-select: none; user-select: none; }
.site .is-zoom:focus { outline: none; }   /* 마우스로 누를 때는 포커스 링 없음 (브라우저 기본 파란 포커스 링 대신) */
.site .is-zoom:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }   /* 키보드(Tab)로 왔을 때만 꿀색 포커스 링 */
.site .zigzag-photo .is-zoom:focus-visible, .site .collage-photo .is-zoom:focus-visible { outline: none; }
.site .zigzag-photo:has(.is-zoom:focus-visible), .site .collage-photo:has(.is-zoom:focus-visible) { outline: 3px solid var(--honey); outline-offset: 3px; }   /* 사진을 잘라 보여 주는 칸: 사진 대신 칸 둘레에 링 (사진 가장자리 링은 잘려 안 보임) */
.site .no-ring:focus-visible { outline: none; }   /* 마우스로 연 라이트박스를 닫고 돌아왔을 때 (academy.js) */
.is-zoom:hover { opacity: .92; }
.site .map-placeholder:focus-within { outline: 3px solid var(--honey); outline-offset: 2px; }   /* 지도 창 안으로 Tab 포커스가 들어가면 지도 칸 둘레에 링 */
.gallery-zoom { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: rgba(28, 24, 20, .45); color: #fff; }

/* 라이트박스 (academy.js 가 만듦) */
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: rgba(18, 15, 12, .94); animation: layerFade .2s ease-out; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.lightbox img { -webkit-user-drag: none; }   /* 사진을 끌거나 두 번 눌러도 파랗게 선택되지 않게 */
.lightbox[hidden] { display: none; }
.lightbox-top { display: flex; flex: none; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 20px; font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); }
.lightbox-top .layer-close { color: #fff; }
/* 사진을 받는 데 오래 걸릴 때(0.3초 넘게) 번호 옆 작은 불러오는 중 표시 */
.lightbox.is-loading .lightbox-count::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 8px; vertical-align: -1px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: lbSpin .7s linear infinite; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
/* 사진 + 이전, 다음 버튼: 버튼은 사진 세로 가운데, 양옆 (폰: 사진 위 안쪽 / 태블릿, PC: 사진 바깥) */
.lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; padding: 0 12px calc(16px + env(safe-area-inset-bottom)); }
/* 밀어서 넘길 때 옆에서 따라 들어오는 사진 (academy.js) — 현재 사진과 같은 크기, 처음엔 화면 밖 */
/* 사진 세 장(이전, 지금, 다음)이 모두 같은 모양 — 화면 가운데에 겹쳐 두고 가로로만 옮김 (academy.js place, rotate)
     .site img 의 max-width:100% 보다 우선하도록 .lightbox-stage 를 붙임. 높이 중심은 아래 여백의 절반만큼 위로 */
.lightbox-stage .lightbox-pic { position: absolute; left: 50%; top: calc(50% - 8px - env(safe-area-inset-bottom) / 2); display: block; max-width: calc(100% - 24px); max-height: calc(100% - 16px - env(safe-area-inset-bottom)); width: auto; height: auto; object-fit: contain; border-radius: 4px; transform: translate(-50%, -50%); will-change: transform; backface-visibility: hidden; }
.lightbox-stage .lightbox-peek { transform: translate(-50%, -50%) translateX(-200vw); pointer-events: none; }
.lightbox-stage .lightbox-pic[hidden] { display: none; }
/* 이전, 다음 화살표: 누르는 곳은 사진 정렬선부터 화면 끝까지의 세로로 긴 영역(academy.js fitArrowButtons 가 폭을 맞춤),
     사진이 화면을 꽉 채우면 최소 폭(폰 64px, PC 76px). 보이는 것은 화면 끝 쪽 동그라미 하나
     → 사진 옆 빈 곳 어디를 눌러도 넘어감 */
.lightbox-btn { position: absolute; top: 0; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 2; display: flex; align-items: center; width: 64px; padding: 0 8px; border: 0; border-radius: 0; background: none; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lightbox-btn::before { content: ""; position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(18, 15, 12, .45); box-sizing: border-box; transition: background-color .15s; }
.lightbox-btn svg { position: relative; flex: none; margin: 0 12px; }   /* 화살표(20px)를 동그라미(44px) 한가운데에 */
.lightbox-prev { left: 0; justify-content: flex-start; }
.lightbox-next { right: 0; justify-content: flex-end; }
.lightbox-prev::before { left: 8px; }
.lightbox-next::before { right: 8px; }
.site .lightbox-btn:focus-visible { outline: none; }   /* 키보드 포커스 링은 긴 영역이 아니라 동그라미에 */
.site .lightbox-btn:focus-visible::before { outline: 3px solid var(--honey); outline-offset: 2px; }
.lightbox-btn.is-hidden { opacity: 0; pointer-events: none; }   /* 첫 사진에서 이전, 마지막 사진에서 다음 버튼 숨김 */
@media (min-width: 720px) {
  .lightbox-stage { padding: 0 76px 24px; }
  .lightbox-stage .lightbox-pic { top: calc(50% - 12px); max-width: calc(100% - 152px); max-height: calc(100% - 24px); }
  .lightbox-btn { bottom: 24px; width: 76px; padding: 0 14px; }   /* 화면 양쪽 여백(76px) 전체가 누르는 곳, 동그라미는 여백 가운데 */
  .lightbox-btn::before { width: 48px; height: 48px; margin-top: -24px; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
  .lightbox-btn svg { margin: 0 14px; }
  .lightbox-prev::before { left: 14px; }
  .lightbox-next::before { right: 14px; }
  .lightbox-btn:hover::before { background: rgba(255, 255, 255, .14); }
}

/* 유튜브 (videos.php) — 미리보기 사진 + 재생 버튼, 누르면 그 자리에서 재생 */
.video-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; padding: 12px; border-radius: 12px; overflow: hidden; background: var(--ink) var(--thumb, none) center / cover no-repeat; text-decoration: none; }
.video-placeholder::before { content: ""; position: absolute; inset: 0; background: rgba(28, 24, 20, .32); transition: background .2s ease; }
.video-placeholder:hover::before { background: rgba(28, 24, 20, .14); }
.video-placeholder .play { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.video-placeholder .video-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* 화면에는 숨기고 읽어 주기 프로그램용 */
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: var(--ink); }
/* 여러 개: 크게 세로로 (넓은 화면은 두 개씩) */
.videos.videos-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .videos.videos-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* 블로그, 유튜브 바로가기 (channel_links.php) — 좁은 칸 안에서는 한 줄씩 */
.channel-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 576px) { .channel-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 720px) { .cols .channel-links { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.channel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); text-decoration: none; }
.site .channel { color: var(--ink); }
.site .channel:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------------
   공식 로고 (brand_logo — public/assets/brand/)
     카카오톡, 네이버톡톡: 앱 아이콘 칸 / 네이버 블로그: 초록 말풍선 / 유튜브: 가로로 긴 빨간 사각형
     블로그, 유튜브 로고는 원래 비율 그대로 폭만 정함 (높이는 자동)
   --------------------------------------------------------------------- */
.brand-logo { flex: none; }
.channel-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.site .channel-logo .brand-logo { height: auto; }
.site .channel-logo.blog .brand-logo { width: 24px; position: relative; top: 1px; }   /* 말풍선 꼬리 때문에 1px 내려야 글자와 가운데가 맞아 보임 */
.site .channel-logo.video .brand-logo { width: 26px; }
.site .channel-logo.mini.blog .brand-logo { width: 23px; }          /* PC 메가 메뉴 */
.site .channel-logo.mini.video .brand-logo { width: 24px; }
.channel-logo.big { width: 38px; height: 38px; }                      /* 블로그, 유튜브 바로가기 카드 */
.site .channel-logo.big.blog .brand-logo { width: 34px; }
.site .channel-logo.big.video .brand-logo { width: 36px; }
/* 상담 버튼: 카카오톡은 노란 버튼 위라 말풍선만, 네이버톡톡은 20px 둥근 앱 아이콘 칸 */
.site .btn-kakao .brand-logo { width: 22px; height: 20px; position: relative; top: 1px; }   /* 말풍선 꼬리 때문에 1px 내려야 글자와 가운데가 맞아 보임 */
.site .btn-naver .brand-logo { width: 20px; height: 20px; border-radius: 6px; }
.channel-text { flex: 1; min-width: 0; }
.channel-text strong { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; }
.channel-text span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* 학원소개: 수업 종류 — 정규반, 개인레슨 카드 (체크 목록은 카드가 560px 이상으로 넓을 때만 두 줄) */
.section-lead { margin: 2px 0 20px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.course-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.course-card { container-type: inline-size; padding: 22px 20px 24px; border: 1px solid #ebe6df; border-radius: 16px; background: var(--paper); }
.course-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #efebe5; }
.course-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #efe6da; color: var(--brown); }
.course-head small { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; color: #8a5a2e; }
.site .course-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.04em; }
.course-head > div { position: relative; top: 2px; }   /* 제목 줄 아래 여백 때문에 글이 2px 위로 떠 보여서 아이콘 가운데에 맞춤 */
.site .course-checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.site .course-checks li { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 15.5px; line-height: 1.55; letter-spacing: -0.02em; color: var(--body); }
.course-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: #efe6da; color: var(--brown); }   /* 체크: 전화 버튼(초록)과 구분되게 모래색 + 갈색 */
@container (min-width: 560px) { .site .course-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; } }
.course-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--sand); font-size: 14px; line-height: 1.6; color: var(--body); }
.course-note .course-icon { width: 32px; height: 32px; border-radius: 50%; }
@media (min-width: 720px) {
  .course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .course-card { padding: 28px 30px 30px; }
}

/* 문의하기: 상담 방법 카드 3장 (소개 글 아래 왼쪽 단) — 카드 전체를 누르면 연결 */
.ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 22px; }
.site a.way { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #ebe6df; border-radius: 16px; background: var(--paper); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.site a.way:hover { border-color: var(--line-2); box-shadow: 0 6px 18px rgba(28, 24, 20, .06); }
.way-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; }
.way-icon.logo { overflow: hidden; background: none; }   /* 카카오톡, 네이버톡톡 공식 앱 아이콘이 칸을 꽉 채움 (전화 칸과 같은 크기, 모서리) */
.site .way-icon.logo .brand-logo { width: 100%; height: 100%; }
.way-icon.call { background: #03a94f; color: #fff; }
.way-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.way-text strong { font-size: 16px; letter-spacing: -0.035em; color: var(--ink); }
.way-text span { font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
.way-go { color: #b5aa9c; }

/* 사진 모자이크 (collage.php) — Kids반 맨 위
     PC, 태블릿(720~): 6칸 × 3줄 — 웃는 아이 세로, 오선보드 크게, 나머지 작은 칸 + 꿀색 글 칸
     폰: 3칸 × 5줄
     칸 이름: a 웃는 아이 / b 오선보드 / c 피아노 뒷모습 / d 계이름 책 / e 보라색 공 / f, k 손가락 교구 / g 망토 / h 태블릿 / j 피아노 / m 글 칸 */
.collage { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 108px;
      grid-template-areas: "a b b" "a c e" "d d e" "f g h" "j m k"; }
.collage .collage-photo { position: relative; margin: 0; min-width: 0; min-height: 0; overflow: hidden; border-radius: 10px; }
.collage .collage-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collage .a { grid-area: a; } .collage .b { grid-area: b; } .collage .c { grid-area: c; } .collage .d { grid-area: d; } .collage .e { grid-area: e; }
.collage .f { grid-area: f; } .collage .g { grid-area: g; } .collage .h { grid-area: h; } .collage .j { grid-area: j; } .collage .k { grid-area: k; } .collage .m { grid-area: m; }
.collage .collage-note { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; padding: 10px 11px 8px; border-radius: 10px; background: var(--honey); color: var(--ink); }   /* 아래 8px: 글자 아래 여백이 왼쪽 11px 과 같아짐 */
.collage .collage-note i { position: absolute; right: 9px; top: 8px; width: 22px; height: 22px; color: rgba(28, 24, 20, .85); }
.collage .collage-note i svg { display: block; width: 100%; height: 100%; }
.collage .collage-note b { font-size: 15px; line-height: 1.3; letter-spacing: -0.04em; }
.collage .collage-note span { display: none; }
@media (min-width: 720px) {
  .collage { gap: 10px; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(3, clamp(96px, 13.3vw, 140px)); grid-auto-rows: auto;
        grid-template-areas: "a b b c d d" "a b b c e f" "g h j m e k"; }
  .collage .collage-photo, .collage .collage-note { border-radius: 14px; }
  .collage .collage-photo img { transform: var(--pc-transform, none); }   /* 사진마다 정한 확대, 이동 (PC 칸 크기 기준, collage.php 의 4번째 값) */
  .collage .collage-note { padding: 18px 20px; padding-top: 18px; }
  .collage .collage-note i { right: 16px; top: 14px; width: 34px; height: 34px; }
  .collage .collage-note b { font-size: 22px; }
  .collage .collage-note span { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: rgba(28, 24, 20, .7); }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .collage .collage-note { padding: 12px 13px 10px; }   /* 아래 글자 끝 여백 = 왼쪽 여백 13px */
  .collage .collage-note b { font-size: 17px; }
  .collage .collage-note span { font-size: 11.5px; }
  .collage .collage-note i { width: 26px; height: 26px; right: 11px; top: 10px; }
}

/* 레슨 페이지 아래 "연주 영상과 수업 이야기" (video_news.php)
   720~: 오른쪽 칸은 좁게(폴더블 248px, PC 340px), 영상이 남은 폭을 다 쓰고
         영상 위끝 = 「달꿈 소식」 위, 영상 아래끝 = 유튜브 칸 아래 (오른쪽 칸: 제목은 위, 블로그, 유튜브 칸은 아래) */
.news-text { font-size: 15px; }
.news-text .news-break { display: none; }
.video-news .news-text { text-wrap: balance; }   /* 폰, 폴더블: 「…더 볼 / 수 있습니다」처럼 끝에 짧게 남지 않게 */
.news-links { margin-top: 16px; }
@media (min-width: 720px) {
  .cols.video-news { align-items: stretch; }
  .video-news > div:last-child { display: flex; flex-direction: column; }
  .video-news .news-links { margin-top: auto; padding-top: 16px; }
}
/* 펼친 폴더블, 태블릿(720~1023px): 영상이 오른쪽 칸 높이만큼 늘어남 (사진 양옆이 조금 잘림) */
@media (min-width: 720px) and (max-width: 1023px) {
  .cols.video-news { grid-template-columns: minmax(0, 1fr) 248px; gap: 24px; }
  .video-news > .video-placeholder, .video-news > .video-frame { height: 100%; aspect-ratio: auto; min-height: 0; }
  .site .video-news .section-title h2 { white-space: nowrap; }
  .video-news .news-text { font-size: 14px; line-height: 1.65; }
  .video-news .channel { gap: 10px; padding: 12px 12px 12px 13px; }
  .video-news .channel-text span { font-size: 13px; letter-spacing: -0.03em; white-space: nowrap; }
}
/* PC(1024~): 영상은 16:9 그대로 크게, 설명 글은 「…더 / 볼 수 있습니다」 두 줄 */
@media (min-width: 1024px) {
  .cols.video-news { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .video-news .news-text { margin-top: 2px; font-size: 15.5px; line-height: 1.7; }
  .news-text .news-break { display: inline; }
  .video-news .channel-links { gap: 10px; }
  .video-news .channel { gap: 14px; padding: 16px 18px; border-radius: 14px; }
  .video-news .channel-text strong { font-size: 16.5px; }
  .video-news .channel-text span { font-size: 14px; }
}
@media (min-width: 1100px) { .cols.video-news { gap: 56px; } }

/* 상담과 방문, 오시는 길 (visit_info.php)
     왼쪽: 흰 박스 + 줄마다 [아이콘 | 제목 / 내용], 전화번호 줄은 초록 전화 버튼 / 아래 블로그, 유튜브 버튼
     오른쪽: 지도 + 네이버 버튼 — PC는 두 단, 양쪽 버튼 줄이 맨 아래 같은 선 (지도 높이가 왼쪽에 맞춰짐) */
.visit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.visit-col { display: flex; flex-direction: column; min-width: 0; }
.visit-list { border: 1px solid #e3ddd4; border-radius: 16px; background: var(--paper); }
.visit-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px; }
.visit-row + .visit-row { border-top: 1px solid #efebe5; }
.visit-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #efe6da; color: var(--brown); }
.site a.visit-icon.call { background: #03a94f; color: #fff; box-shadow: 0 2px 6px rgba(3, 169, 79, .28); text-decoration: none; }   /* 전화번호 줄: 초록 전화 버튼 */
.visit-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.visit-body > :last-child { margin-bottom: -4px; }   /* 마지막 줄 아래 줄간격만큼 당겨 줄마다 위(아이콘 위 끝)와 아래 여백을 맞춤 */
.visit-label { font-size: 13px; font-weight: 600; line-height: 1.4; color: #8a5a2e; }
.visit-value { font-size: 15.5px; line-height: 1.6; letter-spacing: -0.02em; color: var(--ink); }
.visit-sub { font-size: 13.5px; line-height: 1.55; letter-spacing: -0.02em; color: var(--muted); text-wrap: balance; }
.visit-line { display: block; text-wrap: balance; }   /* 줄마다 따로 고르게 나눔 (예: 320px 폰에서 「…, 방죽마을, / 세자율」처럼 한 단어만 내려가지 않게) */
.site a.visit-tel { align-self: flex-start; font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; text-decoration: none; }
.visit-btns { margin-top: 10px; }
.visit-btns .btn { padding: 0 10px; }
/* 블로그, 유튜브 버튼: 로고 + 글자 그룹은 버튼 정가운데, 글자 줄 높이를 줄여 로고와 세로 가운데를 맞춤. 유튜브 버튼만 2px 왼쪽 (눈으로 보기에 가운데) */
.channel-buttons .btn { justify-content: center; align-items: center; line-height: 1; }
.channel-buttons .btn > span:last-child { line-height: 1.2; padding-top: 1px; }
.channel-buttons .channel-video-btn > span { position: relative; left: -2px; }
.map-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; border-radius: 16px; background: #ece7df; border: 1px solid #e3ddd4; overflow: hidden; font-size: 14px; color: var(--muted); }
.map-msg { display: flex; flex-direction: column; align-items: center; gap: 8px; }   /* 지도가 뜨기 전까지 보이는 안내 (지도 창 뒤) */
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }   /* 지도 창 (kakao_map.php) */
@media (min-width: 720px) {
  .visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
  .visit-row { padding: 18px 20px; }
  .map-placeholder { flex: 1; height: auto; min-height: 320px; }
  .visit-col:first-child .visit-btns { margin-top: auto; padding-top: 10px; }   /* 왼쪽 버튼 줄을 맨 아래로 */
}
@media (min-width: 1024px) {
  .visit { gap: 40px; }
  .visit-row { padding: 18px 22px; }
}

/* =====================================================================
   10. 홈 (home.php)
   ===================================================================== */

/* 맨 위
   폰(~719px)      : 흐린 피아노 사진 + 가운데 원형 간판(불빛 + ★ 3개) + 따옴표 한 줄 카피 + 설명 + 버튼 2개
   PC, 태블릿(720~) : 정기연주회 단체 사진 가득(아이들이 보이게 아래쪽) + 왼쪽 어둡게 → 머리말, 카피 두 줄, 설명, 버튼
   카피 글꼴은 본명조(Noto Serif KR): 가는 글자 200, 「달콤」「꿈」만 굵게 */
.home-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.home-hero .hero-bg { position: absolute; inset: 0; }
.home-hero .hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(2px); transform: scale(1.03); }
.home-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255, 236, 200, .16) 0, rgba(28, 24, 20, .55) 26%, rgba(22, 17, 12, .86) 70%); }
.home-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-top: 40px; padding-bottom: 22px; text-align: center; }
.wrap.home-hero-inner { padding-left: 19px; padding-right: 19px; }
/* 원형 간판 + 불빛 + ★ */
.hero-sign { position: relative; display: block; flex: none; width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 0 34px 6px rgba(226, 226, 255, .25), 0 10px 22px rgba(0, 0, 0, .5); }
.hero-sign::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 18px rgba(50, 40, 90, .35); pointer-events: none; }
.home-hero .hero-logo { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-star { position: absolute; display: block; line-height: 0; color: var(--honey); }
.hero-star svg { display: block; width: 100%; height: 100%; }
.hero-star.star-1 { left: -24px; top: 16px; width: 16px; height: 16px; }
.hero-star.star-2 { right: -16px; top: 2px; width: 10px; height: 10px; color: #ffd98a; }
.hero-star.star-3 { right: -26px; bottom: 20px; width: 12px; height: 12px; }
/* 글 */
.hero-text { width: 100%; }
.hero-eyebrow { display: none; }
.site .home-hero h1 { margin: 24px 0 0; font-family: var(--serif); font-size: clamp(20px, 5.9vw, 42px); font-weight: 600; line-height: 1.3; letter-spacing: -0.045em; color: #fff; text-wrap: initial; }
.home-hero h1 .word-light { font-weight: 200; }
.home-hero h1 .word-bold { font-weight: 600; }
.home-hero h1::before { content: "\201C"; margin-right: .04em; }
.home-hero h1::after { content: "\201D"; margin-left: .04em; }
.home-hero h1::before, .home-hero h1::after { font-weight: 200; color: rgba(255, 255, 255, .55); }
.home-hero .pc-break { display: none; }   /* 폰은 한 줄 */
.site .home-hero .hero-sub { margin: 3px 0 0; font-size: 14px; line-height: 1.6; letter-spacing: -0.02em; color: rgba(255, 255, 255, .82); }
/* 버튼: 꿀색 「레슨 둘러보기」 + 테두리 「전화 상담」 */
.hero-btns { display: flex; gap: 10px; width: 100%; max-width: 400px; margin: 22px auto 0; }
.site a.hero-btn { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 5px; height: 46px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.site a.hero-btn.main { background: var(--honey); color: var(--ink); }
.site a.hero-btn.sub { border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); color: #fff; }
.site a.hero-btn.main:hover { background: #f5bd4f; }
.site a.hero-btn.sub:hover { background: rgba(255, 255, 255, .14); }
/* 버튼 글: 「레슨」「둘러보기」 굵게, 「(유·초·중·고)」는 작고 가늘고 흐리게
   PC: 레슨 (유·초·중·고) 둘러보기 / 성인레슨 둘러보기 — 폰: 레슨 (유·초·중·고) 더 보기 / 성인레슨 더 보기 */
.hero-btn .hero-btn-word, .hero-btn .hero-btn-pc-verb, .hero-btn .hero-btn-phone-verb { font-weight: 700; }
.hero-btn .hero-btn-phone-verb { display: none; }
.hero-btn .hero-btn-small { font-weight: 500; letter-spacing: -0.01em; opacity: .78; }
.hero-btn svg { flex: none; margin-left: 2px; }
@media (max-width: 719px) {   /* 폰: 사진 위 글자, 버튼 자리를 눈으로 맞춘 값 (390px 화면 기준) */
  .site .home-hero h1 { font-size: clamp(20px, 6.4vw, 25px); letter-spacing: -0.08em; }   /* 390px 에서 25px, 자간 -2px */
  .home-hero h1 .word-dal, .home-hero h1 .word-dream { font-weight: 400; }   /* 「달콤」「꿈」 얇게 (제목과 같은 크기) */
  .site .home-hero .hero-sub { font-size: 13px; color: rgba(216, 216, 216, .82); }
  .hero-btns { gap: 8px; width: 86%; margin-top: 17px; }
  .site a.hero-btn { height: 34px; padding: 0 10px 1px; font-size: 14px; }   /* 아래 1px: 글자를 1px 위로 */
  .site a.hero-btn.main { padding-left: 13px; }
  .site a.hero-btn.sub { padding-right: 7px; }
  .hero-btn .hero-btn-small { font-size: 12px; letter-spacing: -0.05em; }
  .hero-btn .hero-btn-pc-verb { display: none; }
  .hero-btn .hero-btn-phone-verb { display: inline; }   /* 폰: 「둘러보기」 대신 「더 보기」 */
}
@media (max-width: 374px) {   /* 작은 폰(접은 폴드 바깥 화면 등): 버튼 글을 조금 작게, 폭은 끝까지 */
  .hero-btns { width: 100%; gap: 6px; }
  .site a.hero-btn { font-size: 13px; gap: 4px; }
  .hero-btn .hero-btn-small { font-size: 11px; }
}
@media (max-width: 349px) {   /* 아주 작은 폰(320px): 두 버튼이 한 줄에 들어가게 화살표를 빼고 여백을 줄임 */
  .hero-btns { gap: 5px; }
  .site a.hero-btn, .site a.hero-btn.main, .site a.hero-btn.sub { padding: 0 9px 1px; font-size: 12.5px; gap: 3px; }
  .hero-btn .hero-btn-small { font-size: 10.5px; }
  .hero-btn svg { display: none; }
}
@media (min-width: 720px) {
  .home-hero { height: 320px; border-bottom: 4px solid var(--honey); }   /* 낮게 + 아래 꿀색 선(메뉴 「홈」 밑줄과 같은 색) */
  /* 사진 구도 고정: 창 폭과 상관없이 사진을 늘 같은 크기(927×504)로 놓음 → 아이들 크기, 위치가 늘 같음
     - 1440px 화면에서 사진 왼쪽 끝이 350px (카피 시작선에서 158px 오른쪽) — 넓은 화면도 카피와의 간격이 같게 따라감
     - 좁은 화면에서는 오른쪽 끝이 화면 밖으로 최대 20px 까지만 나감 (맨 오른쪽 아이가 잘리지 않게)
     - 사진 왼쪽 끝만 부드럽게 흐리고, 오른쪽 빈 곳은 사진 오른쪽 끝(나무 벽) 색을 높이별로 이어서 경계가 안 보이게 */
  .home-hero .hero-bg img { position: absolute; bottom: -4px; right: max(-20px, calc((100% - 927px) / 2 - 93px)); width: 927px; max-width: none; height: 504px; object-fit: cover; object-position: 50% 100%; filter: none; transform: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px); mask-image: linear-gradient(90deg, transparent 0, #000 90px); }
  .home-hero .hero-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #6f3f0f 0%, #724212 10%, #774717 20%, #7d4b18 30%, #84521f 40%, #85541e 50%, #84521f 60%, #80511d 70%, #7c4c1b 80%, #6d481a 90%, #3a2a14 96%, #13120d 100%); }
  .home-hero::after { background: linear-gradient(90deg, rgba(22, 17, 12, .92) 0%, rgba(22, 17, 12, .78) 34%, rgba(22, 17, 12, .25) 66%, rgba(22, 17, 12, .05) 100%), linear-gradient(0deg, rgba(22, 17, 12, .55) 0%, rgba(22, 17, 12, 0) 40%); }
  .home-hero .hero-bg { overflow: hidden; }
  .home-hero-inner { height: 100%; flex-direction: row; align-items: center; padding-top: 0; padding-bottom: 8px; text-align: left; }
  .wrap.home-hero-inner { padding-left: 32px; padding-right: 32px; }
  .hero-sign { display: none; }   /* PC: 사진과 글만 */
  .hero-text { width: auto; }
  .hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9); }
  .hero-eyebrow svg { flex: none; color: var(--honey); }
  .site .home-hero h1 { margin-top: 18px; font-size: clamp(32px, 2.85vw, 41px); line-height: 1.12; transform: scaleX(.95); transform-origin: 0 50%; }   /* 1440px 에서 41px, 장평 95% (왼쪽 기준) */
  .home-hero h1 .word-bold { font-weight: 400; }   /* 얇게 */
  .home-hero h1 .word-light { color: rgba(255, 255, 255, .86); }
  .home-hero h1::before, .home-hero h1::after { content: none; }
  .home-hero .pc-break { display: inline; }   /* 「자곡동」 / 「달콤한 꿈꾸는 음악학원」 두 줄 */
  .site .home-hero .hero-sub { position: relative; left: 4px; top: -4px; margin-top: 14px; font-size: 19px; color: #a9a49e; }
  .hero-btns { width: auto; max-width: none; margin: 28px 0 0; }
  .site a.hero-btn { flex: none; height: 42px; font-size: 15.5px; }
  .site a.hero-btn.main { padding: 0 15px 0 19px; }
  .site a.hero-btn.sub { padding: 0 14px 0 20px; }
  .hero-btn .hero-btn-small { font-size: 13px; letter-spacing: -0.05em; }
}

/* 레슨 소개 두 그룹 — 큰 사진 지그재그: 레슨(유초중고)은 사진 왼쪽, 성인레슨은 사진 오른쪽 (폰도 같은 방식)
   폰(~719px): [사진 | 제목, 설명 / 체크 목록 / 더보기] — 글 칸은 내용 폭만큼(최대 60%), 사진 칸이 나머지를 채우고
               사진 높이는 글 칸 높이에 딱 맞춤(절대 위치) → 남는 공간 없음. ~420px 은 사진 33%, 목록 13px
   PC(720px~, 펼친 폴더블폰 포함): [큰 사진 4:3 | 큰 제목, 설명, 체크 목록, 더보기] 11:9, 성인레슨은 좌우 반대 */
.home-zigzag { padding: 28px 0 36px; }
.zigzag { display: grid; grid-template-columns: minmax(38%, 1fr) fit-content(60%); grid-template-areas: "photo head" "photo body"; grid-template-rows: auto 1fr; column-gap: 14px; align-items: stretch; }
.zigzag.reverse { grid-template-columns: fit-content(60%) minmax(38%, 1fr); grid-template-areas: "head photo" "body photo"; }
.zigzag + .zigzag { margin-top: 32px; padding-top: 28px; border-top: 1px solid #efebe5; }
.zigzag-text { display: contents; }
.zigzag-head { grid-area: head; margin-bottom: 12px; }
.zigzag-body { grid-area: body; display: flex; flex-direction: column; justify-content: center; }
.zigzag-photo { grid-area: photo; position: relative; min-height: 170px; border-radius: 14px; overflow: hidden; }
/* 폰: 사진을 아래로 내려 보이게 하려면 그 사진 칸에 style="--photo-shift-down: 24px" (사진을 그만큼 키워 위쪽부터 맞추고 아래를 잘라냄) */
.zigzag-photo .photo { position: absolute; top: 0; left: 0; display: block; width: 100%; height: calc(100% + var(--photo-shift-down, 0px)); object-fit: cover; }
.zigzag-tag { position: absolute; z-index: 1; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(28, 24, 20, .72); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
@media (max-width: 319px) { .zigzag-tag { left: 6px; top: 6px; padding: 2px 6px; font-size: 10.5px; letter-spacing: -0.04em; } }   /* 280px 폰: 사진 칸이 좁아 배지가 두 줄이 되던 것 */
.site .zigzag-head h2 { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -0.045em; white-space: nowrap; }
.site .zigzag-sub { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; letter-spacing: -0.03em; color: var(--muted); text-wrap: balance; }
.site .zigzag-checks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site .zigzag-checks li { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 13.5px; line-height: 1.45; letter-spacing: -0.04em; color: var(--body); }
.zigzag-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: #efe6da; color: var(--brown); }
.site a.zigzag-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 32px; margin-top: 12px; padding: 0 12px 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.site a.zigzag-more:hover { background: #3b342d; }
@media (max-width: 420px) {
  .zigzag { grid-template-columns: minmax(33%, 1fr) fit-content(67%); column-gap: 12px; }
  .zigzag.reverse { grid-template-columns: fit-content(67%) minmax(33%, 1fr); }
  .site .zigzag-checks li { gap: 6px; font-size: 13px; letter-spacing: -0.05em; }
  .zigzag-check { width: 16px; height: 16px; }
}
/* PC(720~): 사진, 글 좌우 엇갈림, 두 줄 사이 가는 선
     유초중고 사진: 보일 부분만 잘라 넣은 home_kids.jpg(1232×712)를 비율 그대로
     성인 사진: home_adult.jpg(720×505)를 1.15배 확대해 사람, 피아노 쪽만 보이게 함 — 폰은 원래대로
     「(유·초·중·고)」는 제목, 버튼 모두 얇게 */
@media (min-width: 720px) {
  .home-zigzag { padding: 40px 0 44px; }
  .zigzag { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); grid-template-areas: "photo text"; grid-template-rows: auto; column-gap: 36px; align-items: center; }
  .zigzag.reverse { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); grid-template-areas: "text photo"; }
  .zigzag + .zigzag { margin-top: 32px; padding-top: 32px; border-top: 1px solid #efebe5; }
  .zigzag-text { display: block; grid-area: text; }
  .zigzag-head { margin: 0; }
  .zigzag-body { display: block; }
  .zigzag-photo { min-height: 0; border-radius: 18px; }
  .zigzag-photo .photo { position: static; height: auto; }
  .zigzag.reverse .zigzag-photo .photo { aspect-ratio: 625 / 384; object-position: 0% 50% !important; transform: scale(1.152); transform-origin: 0% 30%; }
  .zigzag-tag { left: 14px; top: 14px; padding: 4px 10px; font-size: 12px; }
  .site .zigzag-head h2 { font-size: 24px; }
  .zigzag-head h2 .h2-light { font-weight: 300; }
  .site .zigzag-sub { margin-top: 6px; font-size: 14px; }
  .site .zigzag-checks { gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #efebe5; }
  .zigzag-check { width: 18px; height: 18px; }
  .site .zigzag-checks li { gap: 8px; font-size: 14px; line-height: 1.5; letter-spacing: -0.04em; }
  .site a.zigzag-more { gap: 5px; height: 36px; margin-top: 16px; padding: 0 15px 0 17px; font-size: 13px; font-weight: 500; }
  .zigzag-more .zigzag-more-light { font-weight: 300; }
  /* 아래 구역 위아래 여백 맞춤 (홈만) */
  .home-zigzag + .section.sand-bg { padding: 48px 0 52px; }
  .site main > .section.home-visit { padding: 48px 0 56px; }
}
@media (min-width: 1024px) {
  .home-zigzag { padding: 44px 0 48px; }
  .zigzag { column-gap: 56px; }
  .zigzag + .zigzag { margin-top: 36px; padding-top: 36px; }
  .zigzag-photo { border-radius: 22px; }
  .zigzag-tag { left: 18px; top: 18px; padding: 5px 11px; font-size: 12.5px; }
  .site .zigzag-head h2 { font-size: 30px; }
  .site .zigzag-sub { margin-top: 8px; font-size: 15.5px; }
  .site .zigzag-checks { gap: 9px; margin-top: 18px; padding-top: 18px; }
  .zigzag-check { width: 20px; height: 20px; }
  .site .zigzag-checks li { gap: 9px; font-size: 16px; letter-spacing: -0.025em; }
  .site a.zigzag-more { height: 38px; margin-top: 20px; padding: 0 17px 0 19px; font-size: 14px; }
  .home-zigzag + .section.sand-bg { padding: 56px 0 60px; }
  .site main > .section.home-visit { padding: 56px 0 64px; }
}

/* 달꿈 유튜브 | 달꿈 블로그
   제목: 앞에 공식 로고 + 「달꿈」은 얇게, 위 머리말 없음
   PC: 영상 5 : 블로그 7, 영상 아래끝 = 블로그 목록 아래끝 (영상이 목록 높이만큼 늘어남)
   839px 까지는 위아래로 쌓고, 840px 부터(펼친 폴더블폰 포함) 좌우 두 칸 */
.home-media .section-title h2 { display: flex; align-items: center; gap: 8px; }
.site .home-media .section-title h2 { font-size: 17.5px; letter-spacing: -0.04em; }
.home-media .home-prefix { font-weight: 400; }
.site .home-logo { display: block; flex: none; height: auto; }
.site .home-logo.youtube { width: 30px; }
.site .home-logo.blog { width: 26px; position: relative; top: 2px; }   /* 말풍선 꼬리 때문에 2px 내려야 글자와 가운데가 맞아 보임 */
.home-video { border-radius: 16px; overflow: hidden; }
.home-video .video-placeholder, .home-video .video-frame { border-radius: 0; }
@media (min-width: 720px) {
  .site .home-media .section-title h2 { font-size: 19px; }
  .cols.home-media { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 840px) {
  /* 왼쪽 5 : 오른쪽 7, 두 칸의 제목 줄, 본문 줄 높이를 맞춤 (아래 로컬 모드 안내 줄은 세 번째 줄) */
  .cols.home-media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr auto; row-gap: 0; }
  .cols.home-media > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); min-width: 0; align-content: start; }
  .cols.home-media .section-title { align-self: end; }
  .home-video { display: flex; flex-direction: column; min-height: 220px; background: var(--ink); }   /* 영상 높이는 블로그 목록 높이를 따라감. 블로그 글을 못 가져와 목록이 한 줄일 때도 영상이 납작해지지 않게 최소 220px 로 둠 */
  .home-video .video-placeholder, .home-video .video-frame { flex: 1; height: auto; aspect-ratio: auto; min-height: 0; }
}

/* 달꿈 블로그 목록: 흰 카드, PC 5개, 폰 4개 (제목은 한 줄, 넘치면 …)
   구분선은 제목 시작점 ~ 날짜 끝점까지 (좌우 여백은 카드 안쪽에) */
.site .home-blog { margin: 0; padding: 0 18px; list-style: none; border: 1px solid #ebe6df; border-radius: 16px; background: #fff; }
.site .home-blog li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 0; border-top: 1px solid #efebe5; font-size: 15px; line-height: 1.5; color: var(--ink); }
.site .home-blog li:first-child { border-top: 0; }
.home-blog li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.home-blog li a::after { content: ""; position: absolute; inset: 0; }   /* 글 제목뿐 아니라 줄 전체(날짜 포함)를 누르면 그 글로 감 */
.site .home-blog li a { color: inherit; }
.site .home-blog li a:hover { color: var(--brown); text-decoration: underline; }
.site .home-blog li.home-blog-empty a { white-space: normal; }   /* 블로그 글을 못 가져왔을 때 안내 문구: 좁은 폰에서 …로 잘리지 않게 줄바꿈함 */
.home-blog:has(.home-blog-empty) { display: flex; flex-direction: column; justify-content: center; }   /* PC 에서 영상 높이만큼 늘어난 박스의 세로 가운데에 놓음 */
.home-blog .date { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 719px) { .site .home-blog li:nth-child(n+5) { display: none; } }

/* 홈 이용 안내 (정보 스트립(visit-strip)) — 버튼처럼 보이지 않게 칸마다 박스를 나누지 않고 한 박스 안에 선으로 구분
   폰, 태블릿, 펼친 폴더블폰: 2칸 × 2줄 / 1024px 부터 4칸. 시간, 주소 한 줄은 줄바꿈 없이(.nowrap) */
.visit-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #ebe6df; border-radius: 16px; background: var(--paper); }
.visit-strip .strip-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 16px 14px 17px; }
.visit-strip .strip-item:nth-child(odd) { border-right: 1px solid #efebe5; }
.visit-strip .strip-item:nth-child(n+3) { border-top: 1px solid #efebe5; }
@media (max-width: 319px) {   /* 280px 폰: 「평일 11:00 ~ 21:30」이 칸을 넘어서 한 칸씩 */
  .visit-strip { grid-template-columns: minmax(0, 1fr); }
  .visit-strip .strip-item:nth-child(odd) { border-right: 0; }
  .visit-strip .strip-item + .strip-item { border-top: 1px solid #efebe5; }
}
.visit-strip dt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #8a5a2e; }
.visit-strip dt svg { flex: none; }
.visit-strip dt.call svg { color: #03a94f; }   /* 초록은 전화에만 */
.visit-strip dd { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.55; letter-spacing: -0.03em; color: var(--ink); }
.visit-strip .strip-sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.site .visit-strip .strip-phone { color: inherit; font-variant-numeric: tabular-nums; text-decoration: none; }
@media (min-width: 720px) {
  .visit-strip .strip-item { padding: 22px 24px 19px; }   /* 마지막 줄 아래 줄간격만큼 아래를 줄여 위아래 여백을 맞춤 */
  .visit-strip dd { font-size: 16px; }
  .visit-strip .strip-sub { font-size: 13.5px; }
}
@media (min-width: 1024px) {
  .visit-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .visit-strip .strip-item:nth-child(n) { border-right: 0; border-top: 0; }
  .visit-strip .strip-item + .strip-item { border-left: 1px solid #efebe5; }
}


/* =====================================================================
   11. 바닥글 (footer.php) — 태블릿, PC만 (폰은 하단 바가 페이지 끝)
   ===================================================================== */
.site-footer { padding: 44px 0 36px; background: var(--ink); font-size: 14.5px; line-height: 1.8; color: rgba(255, 255, 255, .7); }
.site .site-footer a { color: #fff; text-decoration: none; }
.site .site-footer a:hover { text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 26px; }   /* 아래 구분선과 26px 띄움 (블로그, 유튜브 링크가 선에 붙지 않게) */
.footer-name { margin-bottom: 6px; font-size: 18px; font-weight: 700; line-height: 22.5px; letter-spacing: -0.03em; color: #fff; }   /* 높이를 옆 칸 제목(.footer-label)과 같게 → 세 칸의 내용 첫 줄이 같은 높이 */
.footer-label { position: relative; top: 2px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .55); }   /* 2px 내려 옆 칸 학원 이름과 글자 아랫선(기준선)을 맞춤 */
.footer-sep { margin: 0 10px; opacity: .35; }
/* 이용시간: 「평일 …, 주말 …」 한 줄 — 이용시간 칸이 좁아(250px 이하) 한 줄에 안 들어가면 「주말 …」을 통째로 아래 줄로 (점은 숨김) */
.footer-cols > div { container-type: inline-size; }
.footer-hours-line { white-space: nowrap; }
.footer-holiday { display: block; }
@container (max-width: 250px) {
  .footer-hours-line { display: block; }
  .footer-hours-dot { display: none; }
}
.footer-copy { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); }
@media (max-width: 719px) { .site-footer { display: none; } }
/* 폰: 바닥글 대신 학원소개 페이지 맨 아래에만 한 줄 (학원 이름, 등록번호) */
.phone-legal { display: none; }
@media (max-width: 719px) { .site .phone-legal { display: block; margin: 0; padding: 15px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; letter-spacing: -0.01em; } }


/* =====================================================================
   12. 폰 하단 바 (phone_bottom_bar.php) — 화면 맨 아래 고정
       앱 아이콘 4개, 아이콘 사이에 입체감 있는 구분선 (어두운 선 + 밝은 선)
   ===================================================================== */
.bottom-bar { display: none; }
/* 폰(~719px) + 손가락으로 쓰는 넓은 화면(펼친 폴더블폰, 태블릿: 마우스 없음) — 컴퓨터(마우스)에서는 안 보임 */
@media (max-width: 719px), (hover: none) and (pointer: coarse) {
  .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: block; padding: 12px 12px calc(9px + env(safe-area-inset-bottom)); background: var(--bottom-bar-bg); box-shadow: 0 -8px 24px rgba(28, 24, 20, .14); }
  body.site { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }   /* 바에 내용이 가리지 않게 (바 위아래 여백 12 + 9 는 아이콘 위 끝과 이름 글자 아래 여백이 같아지는 값) */
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }   /* Tab 으로 아래쪽 버튼에 갈 때 하단 바에 가리지 않게 */
}
@media (min-width: 720px) and (hover: none) and (pointer: coarse) {
  .bottom-bar-row { max-width: 480px; margin: 0 auto; }   /* 넓은 화면에서는 아이콘 4개를 가운데에 모음 */
}
.bottom-bar-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.site .bottom-bar a { text-decoration: none; }
.bottom-bar-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bottom-bar-item + .bottom-bar-item::before { content: ""; position: absolute; left: -3px; top: 4px; bottom: 6px; width: 2px; pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, .45) 50%, rgba(255, 255, 255, .13) 50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent); }
.bottom-bar-icon { position: relative; display: flex; align-items: center; justify-content: center; width: var(--bottom-bar-icon); height: var(--bottom-bar-icon); border-radius: var(--bottom-bar-icon-radius); overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .28); }
.bottom-bar-icon.call  { background: var(--bottom-bar-call);  color: var(--bottom-bar-call-fg); }
.bottom-bar-icon.kakao { background: var(--bottom-bar-kakao); color: var(--bottom-bar-kakao-fg); }
.bottom-bar-icon.naver { background: var(--bottom-bar-naver); color: var(--bottom-bar-naver-fg); }
.bottom-bar-icon.video { background: var(--bottom-bar-video-bg); color: var(--bottom-bar-video); }
.bottom-bar-icon img { display: block; width: 64%; height: 64%; object-fit: contain; }
.bottom-bar-icon.full img { width: 100%; height: 100%; }   /* 공식 앱 아이콘 파일(바탕색 포함)은 칸을 꽉 채움 */
.bottom-bar-item:active .bottom-bar-icon { transform: scale(.94); }
.bottom-bar-label { font-size: 11.5px; font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; white-space: nowrap; }
.site .bottom-bar .bottom-bar-label { color: var(--bottom-bar-label); }
/* 가로로 눕힌 폰(높이 500px 이하): 바가 화면의 1/5 을 가려서 아이콘 옆에 이름을 두고 낮게 (높이 84 → 50px) */
@media (max-height: 500px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .bottom-bar { --bottom-bar-icon: 36px; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); }
  body.site { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
  .bottom-bar-row { max-width: 640px; margin: 0 auto; }
  .bottom-bar-item { flex-direction: row; justify-content: center; gap: 8px; }
  .bottom-bar-item + .bottom-bar-item::before { top: 6px; bottom: 6px; }
  .bottom-bar-label { font-size: 13px; }
}


/* =====================================================================
   13. 움직임
   ===================================================================== */
@keyframes layerFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes megaDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes drawerFromLeft { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes drawerItems { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer-backdrop, .mega, .mega-col, .drawer, .drawer-body, .lightbox { animation: none; }
}

/* 「수강료 표 보기」로 내려가거나 Tab 으로 위쪽 항목에 갈 때 상단 메뉴(64px)에 가리지 않게 */
html { scroll-padding-top: 80px; }





/* =====================================================================
   14. 인쇄 — 브라우저에서 페이지를 인쇄하거나 PDF 로 저장할 때
   ===================================================================== */
@media print {
  /* 화면 조작용 부분은 뺌: 메뉴, 하단 바, 사진 확대 단추, 상담 버튼(종이에서는 누를 수 없음). 상단 전화번호는 남김 */
  .site-header nav, .menu-btn, .mega, .drawer, .layer-backdrop, .bottom-bar, .lightbox, .gallery-zoom, .contact-buttons, .phone-legal { display: none !important; }
  .site-header { position: static; }                     /* 첫 쪽 제목을 가리지 않게 */
  body.site { padding-bottom: 0; }
  .feature-split .split-side { position: static; }
  .section { padding: 18px 0; }
  /* 카드, 사진, 표가 쪽 사이에서 잘리지 않게 */
  .feature-item, .fee-card, .fee-mini, .fee-notes, .course-card, .course-note, .visit-row, .strip-item, .way, .channel, .zigzag, .gallery-item, .collage, .pair > *, .quote, .video-news, table, .site-footer { break-inside: avoid; }
  .section-title { break-after: avoid; }
}
