@import url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2.0.5/fonts/variable/woff2/SUIT-Variable.css");

:root {
  --paper: #ffffff;
  --mist: #edf1f2;
  --ink: #1d2b3a;
  --ink-soft: #4d5b68;
  --sign: #ed3a8b;      /* 보니따 강조색 */
  --on-sign: #ffffff;
  --line: #c9d3d8;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "SUIT Variable", "SUIT", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.7; word-break: keep-all;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.measure { max-width: 34em; }

/* header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.logo .mark { width: 26px; height: 26px; border-radius: 50%; background: var(--sign); border: 2px solid var(--ink); }
.logo small { font-weight: 500; font-size: 13px; color: var(--ink-soft); letter-spacing: 0; }
.nav { display: flex; gap: 24px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (max-width: 720px) { .nav { display: none; } }

/* type */
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(36px, 7vw, 68px); font-weight: 800; }
h2 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; }
.sub { color: var(--ink-soft); font-size: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-sign { background: var(--sign); color: var(--on-sign); border-color: var(--sign); }
.btn-sign:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero */
.hero { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.hero h1 { margin-bottom: 22px; }
.hero .sub { margin-bottom: 28px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.route { background: var(--mist); border: 2px solid var(--ink); border-radius: 10px; padding: 18px; }
.route svg { width: 100%; height: auto; display: block; }
.route figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 48px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.facts div { flex: 1 1 200px; padding: 16px 18px 16px 0; font-size: 15px; color: var(--ink-soft); }
.facts b { color: var(--ink); font-size: 17px; display: block; }

/* sections */
.block { padding: 80px 0; }
.block.mist { background: var(--mist); }

/* 상담 대화 */
.talk { display: grid; gap: 28px; margin-top: 28px; }
.talk .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.talk .q { font-weight: 700; font-size: 19px; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 16px 20px; }
.talk .a { color: var(--ink); padding: 16px 0 0; }
.talk .a b { display: block; font-size: 14px; color: var(--ink-soft); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 720px) { .talk .row { grid-template-columns: 1fr; gap: 6px; } .talk .a { padding: 8px 0 0 12px; border-left: 3px solid var(--sign); } }

/* 수업 목록 (행 형식) */
.list { border-top: 2px solid var(--ink); }
.list .item { display: grid; grid-template-columns: 220px 1fr 160px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.list .item h3 { font-size: 21px; }
.list .item p { margin: 0; color: var(--ink-soft); }
.list .item .price { font-weight: 700; text-align: right; }
@media (max-width: 720px) { .list .item { grid-template-columns: 1fr; gap: 6px; } .list .item .price { text-align: left; } }

/* 시간표 */
.timetable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--paper); }
.timetable th, .timetable td { border: 1px solid var(--line); text-align: center; padding: 10px 6px; font-size: 15px; }
.timetable thead th { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.timetable tbody th { text-align: left; padding-left: 12px; font-weight: 700; white-space: nowrap; }
.timetable td.on .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--sign); border: 2px solid var(--ink); vertical-align: middle; }
.timetable td.off { background: var(--mist); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.info { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info p { margin: 0; color: var(--ink-soft); }
.info b { display: block; color: var(--ink); }
@media (max-width: 720px) { .info { grid-template-columns: 1fr; } }

/* 원장 */
.split { display: grid; grid-template-columns: 5fr 4fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.photo { aspect-ratio: 4/5; background: var(--mist); border: 2px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-soft); font-size: 14px; padding: 16px; }
.photo.wide { aspect-ratio: 4/3; }
blockquote { margin: 0 0 20px; font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; padding-left: 18px; border-left: 5px solid var(--sign); }

/* 선생님 */
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.teachers .photo { aspect-ratio: 1/1; margin-bottom: 14px; }
.teachers .role { font-size: 14px; color: var(--ink-soft); margin: 2px 0 10px; }
.teachers p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 820px) { .teachers { grid-template-columns: 1fr; } }

/* blog */
.posts { border-top: 2px solid var(--ink); }
.post { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post:hover .t { text-decoration: underline; }
.post .d { color: var(--ink-soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.post .t { font-weight: 700; }
.post .s { display: block; color: var(--ink-soft); font-weight: 400; font-size: 15px; margin-top: 2px; }
@media (max-width: 600px) { .post { grid-template-columns: 1fr; gap: 2px; } }
.more { display: inline-block; margin-top: 16px; font-weight: 700; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 2px solid var(--ink); }
details summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "-"; }
details p { margin: 10px 0 0; color: var(--ink-soft); max-width: 40em; }

/* 전화 띠 */
.callband { background: var(--sign); color: var(--on-sign); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 56px 0; }
.callband .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.callband .num { font-size: clamp(36px, 7vw, 72px); font-weight: 800; letter-spacing: -.03em; text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1.1; display: block; margin-top: 6px; }
.callband p { margin: 0; font-size: 18px; }
@media (max-width: 720px) { .callband .wrap { grid-template-columns: 1fr; } }

/* sub page head */
.page-head { padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(32px, 5.5vw, 52px); margin-bottom: 14px; }
.crumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }

/* footer */
.site-footer { padding: 40px 0 110px; font-size: 14px; color: var(--ink-soft); }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer b { color: var(--ink); display: block; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }


/* ---- v3 ---- */
.hero { padding: 64px 0 0; }
.hero h1 { font-size: clamp(40px, 8vw, 84px); margin-bottom: 14px; }
.hero-sub { font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; color: var(--ink-soft); margin: 0 0 40px; }
.hero-photo { aspect-ratio: 21/9; border-radius: 10px; }
@media (max-width: 600px) { .hero-photo { aspect-ratio: 4/3; } }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; gap: 40px; } }
.case .photo { margin-bottom: 16px; }
.case h3 { margin-bottom: 10px; }
.case .before { color: var(--ink-soft); margin-bottom: 8px; }
.case .after { font-weight: 600; padding-left: 12px; border-left: 4px solid var(--sign); }
.small-link { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 700; }
.more-box { margin: 40px 0 0; padding: 18px 22px; border: 2px solid var(--ink); border-radius: 10px; font-weight: 600; }
.more-box a { white-space: nowrap; }

.photo.tall { aspect-ratio: 4/5; }
.photo.square { aspect-ratio: 1/1; margin-bottom: 14px; }
.sign { font-weight: 700; margin-top: 18px; }
figure.route { margin: 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 8px 0 32px; }
.two h3 { margin-bottom: 6px; }
.two p { color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; gap: 20px; } }
.timetable caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: 15px; color: var(--ink-soft); }

#teachers blockquote { margin-bottom: 36px; }

.price-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin-top: 28px; }
.price-row div { padding: 18px 16px 18px 0; }
.price-row span { display: block; color: var(--ink-soft); font-size: 15px; }
.price-row b { font-size: 24px; letter-spacing: -.02em; }
@media (max-width: 600px) { .price-row { grid-template-columns: 1fr; } .price-row div + div { border-top: 1px solid var(--line); } }

.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.album figure { margin: 0; }
.album figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 720px) {
  .album { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .album figure { scroll-snap-align: start; }
}

.callband h2 { margin-bottom: 8px; }

/* 항상 따라오는 연락하기 */
.contact-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.contact-toggle { font: inherit; font-weight: 800; font-size: 17px; padding: 16px 26px; border-radius: 999px; border: 2px solid var(--ink); background: var(--sign); color: var(--on-sign); cursor: pointer; box-shadow: 0 6px 0 var(--ink); }
.contact-toggle:hover { transform: translateY(1px); box-shadow: 0 5px 0 var(--ink); }
.contact-toggle[aria-expanded="true"] { background: var(--paper); color: var(--ink); }
.contact-panel { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 12px; min-width: 240px; }
.contact-panel[hidden] { display: none; }
@media (max-width: 720px) {
  .contact-float { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); align-items: stretch; }
  .contact-toggle { width: 100%; }
}

.callband .btn { background: var(--paper); color: var(--ink); }
.callband .btn:hover { background: var(--ink); color: var(--paper); }
.img-slot { width: 100%; border: 2px dashed var(--line); border-radius: 10px; background: var(--paper); min-height: 320px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; text-align: center; padding: 16px; margin-top: 8px; }
.seo-text { font-size: 15px; color: var(--ink-soft); margin-top: 12px; }

/* 도입: 세로 영상 */
.hero-v { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-v h1 { margin-bottom: 14px; }
.hero-v .hero-sub { margin: 0; }
.hero-media { justify-self: end; width: 100%; max-width: 440px; }
.hero-video, .hero-slot { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; border: 2px solid var(--ink); background: var(--mist); }
.hero-slot { display: flex; }
.hero-video[hidden], .hero-slot[hidden] { display: none; }
@media (max-width: 860px) {
  .hero-v { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { justify-self: center; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) { .hero-video { animation: none; } }

/* ---- 실제 사진 반영 ---- */
.sub-h { margin: 48px 0 16px; font-size: 20px; }
.reviews { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.reviews img { flex: none; width: 260px; height: auto; border: 1px solid var(--line); border-radius: 10px; scroll-snap-align: start; background: #fff; align-self: flex-start; }
.portrait { width: 100%; height: auto; border-radius: 10px; display: block; }
.loc-media { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.loc-media figure { margin: 0; }
.loc-media img { width: 100%; height: auto; border-radius: 10px; border: 2px solid var(--ink); display: block; }
.loc-media figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.timetable-img { margin: 0; }
.timetable-img img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard { text-decoration: none; display: block; }
.tcard img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); }
.tcard span { display: block; font-weight: 700; margin-top: 8px; }
.tcard:hover span { text-decoration: underline; }
.hint { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
@media (max-width: 860px) {
  .tcards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .tcard { scroll-snap-align: start; }
  .loc-media { grid-template-columns: 1fr; }
}
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pcard { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 22px 24px; text-align: center; }
.pcard p { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.pcard b { display: inline-block; background: var(--sign); color: var(--on-sign); font-size: clamp(24px, 4vw, 34px); font-weight: 800; padding: 6px 18px; letter-spacing: -.02em; }
.note { font-size: 15px; color: var(--ink-soft); margin: 10px 0 0; }
@media (max-width: 600px) { .price-cards { grid-template-columns: 1fr; } }
@media (min-width: 721px) { .album { grid-template-columns: repeat(5, 1fr); } }
.album video, .album img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; border-radius: 10px; }

/* 사진, 영상: 테두리 대신 부드러운 그림자 */
:root { --shadow: 0 2px 6px rgba(29, 43, 58, .08), 0 12px 28px rgba(29, 43, 58, .12); }
.hero-video, .hero-slot { border: 0; box-shadow: var(--shadow); }
.loc-media img, .portrait, .timetable-img img, .reviews img, .tcard img, .album video, .album img { border: 0; box-shadow: var(--shadow); }
.reviews { padding: 6px 4px 18px; }
.tcard img, .reviews img { border-radius: 10px; }


/* ---- 2026-10-24 수정 반영 ---- */
:root { --shadow-sm: 0 1px 3px rgba(29,43,58,.10), 0 4px 12px rgba(29,43,58,.10); --talk: #03c75a; }
.site-header { border-bottom: 1px solid var(--line); }

/* 버튼: 검은 테두리 대신 그림자 */
.btn { border: 0; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-talk { background: var(--talk); color: #fff; }
.btn-talk:hover { background: #02b351; color: #fff; }
.btn-call { background: var(--paper); color: var(--ink); }
.btn-call:hover { background: var(--mist); color: var(--ink); }
.callband .btn-talk { background: var(--talk); color: #fff; }

/* 문의하기 / 닫기 */
.contact-toggle { border: 0; box-shadow: 0 4px 14px rgba(237,58,139,.35), 0 2px 4px rgba(29,43,58,.15); }
.contact-toggle:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(237,58,139,.40), 0 2px 4px rgba(29,43,58,.15); }
.contact-toggle[aria-expanded="true"] { background: var(--sign); color: var(--on-sign); }
.contact-panel { border: 0; box-shadow: var(--shadow); }

/* 더 보기 박스: 가운데 정렬, 전체 링크 */
.more-box { display: block; text-align: center; border: 0; box-shadow: var(--shadow-sm); background: var(--paper); text-decoration: none; font-weight: 700; padding: 20px 22px; border-radius: 12px; }
.more-box:hover { box-shadow: var(--shadow); color: var(--sign); }

/* 가격 카드 */
.pcard { border: 0; box-shadow: var(--shadow-sm); }

/* 검은 구분선은 연하게 */
.posts, .price-row, .list { border-top-color: var(--line); }
.price-row { border-bottom-color: var(--line); border-top-width: 1px; border-bottom-width: 1px; }
details:first-of-type { border-top: 1px solid var(--line); }

/* 한 줄 제목 */
@media (min-width: 900px) { .one-line { white-space: nowrap; font-size: clamp(26px, 3.2vw, 36px); } }

/* 회원님 사례 3칸 줄 맞추기 */
@media (min-width: 861px) {
  .cases { grid-template-rows: auto auto auto auto; row-gap: 0; }
  .case { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-items: start; }
  .case h3, .case p { margin: 0; }
  .case .small-link { align-self: start; margin-top: 4px; }
}

/* 오시는 길 슬라이드 */
.slider { position: relative; max-width: 380px; width: 100%; justify-self: center; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; box-shadow: var(--shadow); }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.slide img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; color: #fff; font-size: 15px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.sl-btn { position: absolute; top: calc(50% - 22px); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.sl-prev { left: 10px; } .sl-next { right: 10px; }
.sl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.sl-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.sl-dots button[aria-current] { background: var(--sign); }

/* 자주 묻는 질문 */
.faq-list { margin-top: 20px; }
#faq details { background: var(--paper); border: 0; border-radius: 10px; padding: 18px 22px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }

.slide { min-width: 0; overflow: hidden; }
.slide img { max-width: 100%; height: auto; }
