/* 너울 수영교실 — N13 탭 전환 단일 페이지. 타일 흰색 바탕 · 먹남색 · 레인 로프 주홍, Bagel Fat One 제목 + Pretendard 본문 */
:root {
  --paper: #f2f4f1;
  --white: #fff;
  --ink: #0f2a3d;
  --lane: #d9472b;
  --aqua: #d3ebe7;
  --line: #c3cfcf;
  --mute: #56656e;
  --head: 'Bagel Fat One', 'Pretendard Variable', sans-serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --rope: repeating-linear-gradient(90deg, var(--lane) 0 22px, var(--white) 22px 26px, var(--ink) 26px 48px, var(--white) 48px 52px);
}
* { 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: 400 16px/1.7 var(--body); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 400; letter-spacing: -0.5px; line-height: 1.25; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 표지 — 타일 줄눈 무늬 위 상호와 운영 정보 */
.cover { background-color: var(--white); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; border-bottom: 1px solid var(--line); }
.cover__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 40px; padding-bottom: 24px; }
.cover__name h1 { font-size: 56px; color: var(--ink); }
.cover__name p { margin: 10px 0 0; max-width: 30em; font-size: 16px; color: var(--mute); background: var(--white); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 2px 4px; }
.cover__info { margin: 0; flex: 0 0 auto; background: var(--white); border: 1.5px solid var(--ink); padding: 12px 16px; font-size: 14.5px; }
.cover__info div { display: flex; gap: 12px; padding: 3px 0; }
.cover__info dt { flex: 0 0 34px; font-weight: 700; }
.cover__info dd { margin: 0; }
.cover__info b { color: var(--lane); font-weight: 700; }
.notice { display: flex; gap: 12px; align-items: baseline; margin: 0 auto; padding-top: 0; padding-bottom: 22px; font-size: 15px; }
.notice span { flex: 0 0 auto; padding: 1px 8px; background: var(--lane); color: var(--white); font-size: 12.5px; font-weight: 700; }

/* 반 탭 — 스크롤은 그대로, 같은 자리의 패널만 바뀐다 */
.classes { padding: 40px 0 72px; }
.tabbar { display: flex; align-items: stretch; gap: 16px; padding-bottom: 6px; position: relative; }
.tabbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--rope); }
.tabs { display: flex; gap: 6px; flex: 1 1 auto; }
.tabs [role=tab] { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 22px 12px; border: 1.5px solid var(--ink); border-bottom: 0; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.tabs [role=tab] b { font: 400 22px/1.2 var(--head); }
.tabs [role=tab] small { font-size: 13px; color: var(--mute); }
.tabs [role=tab]:hover { background: var(--aqua); }
.tabs [role=tab][aria-selected=true] { background: var(--ink); color: var(--white); }
.tabs [role=tab][aria-selected=true] small { color: #b9cdd6; }
.tabs [role=tab]:focus-visible, .btn:focus-visible, .quick a:focus-visible { outline: 3px solid var(--lane); outline-offset: 2px; }
.tabbar__tel { align-self: center; display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 8px; text-decoration: none; font: 700 22px/1.2 var(--body); font-variant-numeric: tabular-nums; }
.tabbar__tel small { font-size: 12.5px; font-weight: 600; color: var(--lane); }
.tabbar__tel:hover { color: var(--lane); }

.panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--white); border: 1.5px solid var(--ink); border-top: 0; }
.panel[hidden] { display: none; }
.panel__pic { margin: 0; position: relative; border-right: 1.5px solid var(--ink); }
.panel__pic img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; background: var(--aqua); }
.panel__pic figcaption { position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: var(--ink); color: var(--white); font-size: 13px; }
.panel__body { padding: 30px 34px 32px; }
.panel__body h3 { font-size: 28px; }
.panel__body > p { margin: 12px 0 20px; color: #2e4352; }
.slots { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.slots caption { padding-bottom: 6px; text-align: left; font-weight: 700; font-size: 14px; }
.slots caption span { float: right; font-weight: 500; color: var(--mute); font-size: 12.5px; }
.slots th, .slots td { padding: 9px 0; border-top: 1px solid var(--line); text-align: left; }
.slots tr:last-child th, .slots tr:last-child td { border-bottom: 1px solid var(--line); }
.slots th { width: 30%; font-weight: 600; }
.slots .left { text-align: right; font-weight: 700; color: var(--ink); }
.slots .full { color: var(--mute); font-weight: 500; text-decoration: line-through; }
.fee { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; margin: 18px 0 22px; }
.fee span { font-size: 14px; color: var(--mute); }
.fee b { font-size: 20px; font-variant-numeric: tabular-nums; }
.fee .sub { grid-column: 1 / -1; font-size: 13px; }
.panel__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; background: var(--lane); color: var(--white); border: 1.5px solid var(--lane); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }

/* 처음 오시는 날 */
.first { background: var(--aqua); padding: 56px 0; }
.first__in { display: grid; grid-template-columns: 220px 1fr; gap: 12px 40px; }
.first h2, .news h2, .visit h2 { font-size: 30px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 180px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1.5px solid var(--ink); }
.steps li::before { content: '0' counter(s); font: 400 22px/1 var(--head); color: var(--lane); }
.steps b { font-size: 17px; }
.bring { grid-column: 2; margin: 6px 0 0; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.bring b { margin-right: 10px; }

/* 알림 */
.news { padding: 56px 0; }
.news__in { display: grid; grid-template-columns: 220px 1fr; gap: 12px 40px; }
.news ul { margin: 0; padding: 0; list-style: none; }
.news li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.news time { font-weight: 700; color: var(--lane); font-variant-numeric: tabular-nums; }

/* 오시는 길 */
.visit { background: var(--white); padding: 56px 0 72px; border-top: 6px solid transparent; border-image: var(--rope) 6; }
.visit__in { display: grid; grid-template-columns: 220px 1fr; gap: 12px 40px; }
.visit__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.contact { display: flex; flex-direction: column; border: 1.5px solid var(--ink); align-self: start; }
.contact a { padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.contact a:hover { background: var(--aqua); }
.contact .contact__tel { border-top: 0; background: var(--ink); color: var(--white); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.contact .contact__tel:hover { background: var(--lane); }
.contact__tel small { display: block; font-size: 13px; font-weight: 600; color: #b9cdd6; }

.foot { padding: 28px 0 40px; font-size: 13.5px; color: var(--mute); }
.foot p { margin: 2px 0; }

/* 퀵메뉴 — PC 오른쪽 세로 */
.quick { position: fixed; z-index: 50; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--ink); }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; min-height: 58px; padding: 6px 4px; border-top: 1px solid var(--line); text-decoration: none; text-align: center; }
.quick a:first-child { border-top: 0; background: var(--lane); color: var(--white); }
.quick b { font-size: 14px; line-height: 1.2; }
.quick span { margin-top: 2px; font-size: 9.5px; line-height: 1.3; color: var(--mute); white-space: nowrap; }
.quick a:first-child span { color: #fde1d9; }
.quick a:hover { background: var(--aqua); }
.quick a:first-child:hover { background: var(--ink); }

@media (max-width: 1240px) {
  .quick { top: auto; bottom: 20px; transform: none; }
}
@media (max-width: 900px) {
  .cover__in { flex-direction: column; align-items: stretch; gap: 18px; }
  .panel { grid-template-columns: 1fr; }
  .panel__pic { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .panel__pic img { min-height: 0; aspect-ratio: 16 / 9; }
  .first__in, .news__in, .visit__in { grid-template-columns: 1fr; }
  .visit__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .cover__in { padding-top: 28px; padding-bottom: 16px; }
  .cover__name h1 { font-size: 38px; }
  .cover__name p { font-size: 14.5px; }
  .cover__info { font-size: 13.5px; padding: 10px 12px; }
  .notice { font-size: 14px; padding-bottom: 18px; }
  .classes { padding: 24px 0 48px; }
  .tabbar { flex-direction: column; gap: 10px; }
  .tabbar__tel { order: -1; flex-direction: row; justify-content: space-between; align-items: baseline; align-self: stretch; margin: 0; padding: 10px 14px; background: var(--white); border: 1.5px solid var(--ink); font-size: 19px; }
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .tabs [role=tab] { align-items: center; padding: 10px 2px 8px; text-align: center; }
  .tabs [role=tab] b { font-size: 15px; letter-spacing: -0.6px; }
  .tabs [role=tab] small { font-size: 11px; }
  .panel__body { padding: 22px 18px 24px; }
  .panel__body h3 { font-size: 23px; }
  .panel__pic img { aspect-ratio: 3 / 2; }
  .panel__pic figcaption { font-size: 12px; }
  .slots { font-size: 14.5px; }
  .slots th { width: 32%; }
  .panel__cta .btn { flex: 1 1 100%; }
  .first, .news { padding: 40px 0; }
  .first h2, .news h2, .visit h2 { font-size: 25px; }
  .steps li { grid-template-columns: 38px 1fr; gap: 4px 10px; }
  .steps li span { grid-column: 2; font-size: 14.5px; }
  .bring { grid-column: 1; }
  .news li { grid-template-columns: 52px 1fr; gap: 10px; font-size: 14.5px; }
  .visit { padding: 40px 0 48px; }
  .facts div { grid-template-columns: 74px 1fr; font-size: 14.5px; }
  .contact .contact__tel { font-size: 23px; }
  .quick { left: 0; right: 0; bottom: 0; top: auto; flex-direction: row; border: 0; border-top: 1.5px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .quick a { flex: 1; width: auto; min-height: 60px; border-top: 0; border-left: 1px solid var(--line); }
  .quick a:first-child { border-left: 0; }
  .quick .quick--pc { display: none; }
  .quick b { font-size: 15px; }
  .quick span { font-size: 11px; }
}
