/* 초록 · 공책형: 칠판 초록 + 연필 주황, IBM Plex Sans KR 제목 */
[hidden] { display: none !important; }
:root { --g: #0e6b47; --gd: #0a4f34; --gl: #e9f5ee; --o: #e45f12; --od: #c24f0c; --ink: #17211c; --mut: #4d5b53; --line: #d5e3da; --paper: #fffdf6; --en: #d7efe2; --en-ink: #0a4f34; --ma: #ffe3d1; --ma-ink: #8a3300; --err: #8c1d18; --errbg: #fdecea; }
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; overflow-x: clip; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, .disp, .serif { font-family: "IBM Plex Sans KR", "Noto Sans KR", sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(28px, 3vw, 34px); }
p { margin: 0; }
a { color: var(--g); }
a:hover { color: var(--gd); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .chip input:focus-visible + span { outline: 3px solid var(--o); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(5vw, 16px); padding-right: max(5vw, 16px); }
.band { padding-top: 64px; padding-bottom: 64px; }
.band-gray, .band-soft { background: #f6f8f7; }
.band-green { background: var(--g); color: #fff; }
.band-ink { background: var(--gd); color: #fff; }
.band-ink h2 { color: #fff; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.muted { color: var(--mut); }
.small { font-size: 14px; }
.scroll { overflow-x: auto; }

/* 버튼 */
.btn, .btn2, .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn, .cta { border: 0; background: var(--o); color: #fff; }
.btn:hover, .cta:hover { background: var(--od); color: #fff; }
.btn2 { border: 2px solid var(--g); background: #fff; color: var(--g); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ghost { display: inline-flex; align-items: center; min-height: 44px; color: var(--g); font-weight: 700; text-decoration: underline; }

/* 머리 */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; background: rgba(255, 255, 255, .97); transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; transition: padding .35s cubic-bezier(.2, .8, .2, 1); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 21px; transition: font-size .35s cubic-bezier(.2, .8, .2, 1); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--g); display: grid; place-items: center; transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), transform .5s cubic-bezier(.2, 1.4, .4, 1); }
/* 스크롤을 내리면: 얇아지고, 초록 그림자, 뒤가 흐린 유리, 공책 표시가 살짝 흔들림 */
.site-header.stuck { background: rgba(255, 255, 255, .84); border-color: var(--line); box-shadow: 0 10px 28px -18px rgba(10, 79, 52, .45); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); }
.site-header.stuck .header-row { padding-top: 10px; padding-bottom: 10px; }
.site-header.stuck .brand { font-size: 18px; }
.site-header.stuck .brand-mark { width: 34px; height: 34px; transform: rotate(-8deg); }
.anim .site-header { animation: hdr-in .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hdr-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header, .header-row, .brand, .brand-mark { transition: none; } }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 2px; }
.nav-link:hover { color: var(--g); }

/* 첫 화면 */
.hero { background: var(--gl); }
.hero-row { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 72px); }
.hero-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.hero-text h1, .hero-h { font-size: clamp(32px, 4.4vw, 52px); }
.hero-h { font-family: "IBM Plex Sans KR", "Noto Sans KR", sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
/* 왼쪽 글 3벌도 같은 자리에 겹친다 - 가장 긴 글 높이로 고정돼 아래 버튼이 들썩이지 않는다 */
.hero-slides { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
/* 빠질 때는 왼쪽으로 살짝 흐려지고(.3초), 들어올 때는 공책 쪽(오른쪽)에서 밀려 들어온다(.6초) */
.hero-slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 22px; opacity: 0; visibility: hidden; transform: translateX(28px); transition: none; pointer-events: none; }
.hero-slide.is-leaving { visibility: visible; opacity: 0; transform: translateX(-12px); transition: opacity .3s ease, transform .3s ease; }
.hero-slide.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
/* 글 사이 공백의 로고: 앞 글이 빠지면 바로 떠오르고, 새 글이 들어올 때 물러난다 */
.hero-logo { grid-area: 1 / 1; align-self: center; display: flex; align-items: center; gap: 18px; opacity: 0; transform: scale(.94); transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.hero-slides.is-gap .hero-logo { opacity: 1; transform: none; }
.hero-logo-mark { width: 84px; height: 84px; border-radius: 22px; background: var(--g); display: grid; place-items: center; transform: rotate(-8deg); box-shadow: 0 14px 30px -14px rgba(10, 60, 40, .6); }
.hero-logo-mark svg { width: 46px; height: 46px; }
.hero-logo-name { display: flex; flex-direction: column; font-size: clamp(34px, 4vw, 46px); color: var(--g); line-height: 1.05; }
.hero-logo-name small { font-size: .42em; color: var(--mut); font-weight: 700; margin-top: 6px; }
.hero-logo-name b { font-weight: 700; }
/* 로고 움직임: 표시가 기울어진 채 작게 나왔다가 튀어 올라 제자리, 공책 그림은 펜으로 그리듯, 이름은 차례로 올라온다 */
.hero-logo-mark svg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-slides.is-gap .hero-logo-mark { animation: logo-pop .7s cubic-bezier(.2, 1.5, .4, 1) both; }
.hero-slides.is-gap .hero-logo-mark .draw-a { animation: logo-draw .55s ease-out .15s both; }
.hero-slides.is-gap .hero-logo-mark .draw-b { animation: logo-draw .25s ease-out .6s both; }
.hero-slides.is-gap .hero-logo-mark .draw-c { animation: logo-draw .2s ease-out .78s both; }
.hero-slides.is-gap .hero-logo-name b { display: block; animation: logo-rise .5s cubic-bezier(.2, .8, .2, 1) .2s both; }
.hero-slides.is-gap .hero-logo-name small { display: block; animation: logo-rise .5s cubic-bezier(.2, .8, .2, 1) .35s both; }
@keyframes logo-pop { 0% { opacity: 0; transform: scale(.4) rotate(-38deg); } 60% { opacity: 1; transform: scale(1.1) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }
@keyframes logo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes logo-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.nb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.nb-list li { display: flex; flex-direction: column; gap: 2px; }
.nb-list b { font-size: 30px; color: var(--g); line-height: 1.15; }
.nb-list span { font-size: 14px; color: var(--mut); }
.nb-map { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.nb-map li { display: grid; grid-template-columns: 52px 1fr; gap: 2px 10px; }
.nb-map b { grid-row: span 2; font-variant-numeric: tabular-nums; }
.nb-map span { display: flex; align-items: center; gap: 6px; }
.nb-map .cls { min-height: 0; padding: 1px 6px; font-style: normal; font-size: 11px; border-radius: 6px; }
.nb-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nb-log li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; }
.nb-log b { font-variant-numeric: tabular-nums; color: var(--g); padding-top: 8px; }
.nb-log span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--mut); box-shadow: 0 6px 14px -10px rgba(10, 60, 40, .5); }
.nb-log strong { display: block; color: var(--ink); font-size: 15px; }
.nb-check { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.nb-check li::before { content: "✓"; color: var(--g); font-weight: 700; margin-right: 8px; }
.hero-pic { flex: 1 1 520px; min-width: 0; }
.hero-text { min-width: 0; }
.eyebrow { font-weight: 700; color: var(--g); }
.eyebrow-light { color: #bfe8d2; }
.lead { font-size: 17px; color: var(--mut); max-width: 34em; }
.lead-light { color: #e3f4ea; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--mut); }
.facts a { color: var(--mut); }

/* 공책 시간표 */
/* 공책: 3장이 같은 자리에 겹쳐 있고, 맨 위 장이 왼쪽(구멍 쪽)을 축으로 넘어간다 */
.notebook { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); perspective: 1800px; border-radius: 6px 14px 14px 6px; background: #efe8d2; box-shadow: 0 1px 0 #e4dcc6, 0 18px 40px -18px rgba(10, 60, 40, .45); }
.nb-page { grid-area: 1 / 1; position: relative; padding: 26px 24px 22px 58px; border-radius: 6px 14px 14px 6px; background-color: var(--paper); background-image: repeating-linear-gradient(180deg, transparent 0 33px, #d8e6f3 33px 34px); display: flex; flex-direction: column; gap: 12px; transform-origin: left center; backface-visibility: hidden; visibility: hidden; }
.nb-page::before { content: ""; position: absolute; left: 40px; top: 0; bottom: 0; width: 2px; background: #f3a3a3; }
.nb-page.is-on { visibility: visible; z-index: 1; }
.nb-page.is-turning { visibility: visible; z-index: 2; animation: nb-turn .9s linear forwards; }
/* 사람 손으로 넘기듯: 아래 모서리가 먼저 들리고(skewX 음수 = 아래가 앞서 왼쪽으로) 윗부분이 늦게 따라온다.
   처음엔 천천히 잡아 들고, 가운데서 빨라졌다가, 거의 다 넘어가면 위아래가 다시 나란해진다. */
@keyframes nb-turn {
  0%   { transform: rotateY(0) skewX(0); animation-timing-function: cubic-bezier(.4, 0, .7, .4); }
  22%  { transform: rotateY(-14deg) skewX(-9deg); animation-timing-function: cubic-bezier(.3, .3, .6, .9); }
  50%  { transform: rotateY(-62deg) skewX(-14deg); box-shadow: 24px 6px 36px -8px rgba(0, 0, 0, .28); animation-timing-function: ease-out; }
  75%  { transform: rotateY(-130deg) skewX(-6deg); }
  100% { transform: rotateY(-180deg) skewX(0); box-shadow: none; }
}
/* 넘어가는 종이의 그늘: 접혀 들리는 오른쪽이 어두워진다 */
.nb-page::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, rgba(0, 0, 0, 0) 35%, rgba(60, 40, 10, .18) 100%); opacity: 0; }
.nb-page.is-turning::after { animation: nb-shade .9s linear forwards; }
@keyframes nb-shade { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 1; } }
.holes { position: absolute; z-index: 5; left: 12px; top: 30px; bottom: 30px; display: flex; flex-direction: column; justify-content: space-between; }
/* 휴대폰에서 공책을 눌러 멈췄을 때 표시 */
.notebook::after { content: "멈춤"; position: absolute; z-index: 6; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--g); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.notebook.is-held::after { opacity: 1; transform: none; }
@media (hover: none) { .notebook { cursor: pointer; -webkit-tap-highlight-color: transparent; } }
.holes i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
.nb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.nb-head .disp { font-size: 22px; }
.tt { border-collapse: separate; border-spacing: 6px; table-layout: fixed; font-size: 13px; margin: -6px; width: calc(100% + 12px); }
.tt th { font-weight: 700; color: var(--mut); text-align: center; }
.tt thead th:first-child { width: 52px; }
.tt-t { font-variant-numeric: tabular-nums; vertical-align: top; padding-top: 6px; white-space: nowrap; }
.tt td { padding: 0; }
.cls { border-radius: 8px; padding: 6px 7px; font-weight: 700; line-height: 1.3; min-height: 54px; }
.cls small { display: block; font-weight: 500; font-size: 12px; }
.cls.en { background: var(--en); color: var(--en-ink); }
.cls.ma { background: var(--ma); color: var(--ma-ink); }
.cls.dim { opacity: .7; }

/* 수업 안내 · 선생님 */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.tabs { display: flex; gap: 8px; }
.tabs[hidden] { display: none; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tab.on { background: var(--g); border-color: var(--g); color: #fff; }
.grade-panel { display: flex; flex-direction: column; gap: 14px; }
.grade-panel + .grade-panel { margin-top: 12px; }
.js .grade-title { display: none; }
.grade-title { font-size: 18px; color: var(--mut); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; }
.card-pad { padding: clamp(20px, 3vw, 28px); }
.card-row { flex-direction: row; align-items: center; gap: 16px; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill-en { background: var(--en); color: var(--en-ink); }
.pill-ma { background: var(--ma); color: var(--ma-ink); }
.when { font-size: 14px; font-weight: 700; margin-top: auto; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; }

/* 좌우 나눔 · 교습비 */
.split { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.split-center { align-items: center; }
.split-side { flex: 1 1 280px; }
.split-main { flex: 2 1 520px; }
table.fee { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.fee thead th { text-align: left; font-size: 13px; color: var(--mut); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.fee tbody th { text-align: left; font-weight: 500; }
.fee td, .fee tbody th { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.fee .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee td.n { font-weight: 700; }

/* 안심 등하원 */
.light-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #e3f4ea; }
.phone-wrap { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; }
.ph { position: relative; width: 270px; max-width: 100%; aspect-ratio: 9 / 19.5; border-radius: 46px; background: #10161a; padding: 11px; box-shadow: 0 0 0 2px #2a3a32, 0 40px 70px -30px rgba(0, 0, 0, .6); }
.ph-btn { position: absolute; width: 4px; background: linear-gradient(90deg, #3a4a42, #1d2622); }
.ph-action, .ph-vol-up, .ph-vol-down { left: -4px; border-radius: 3px 0 0 3px; }
.ph-action { top: 96px; height: 26px; }
.ph-vol-up { top: 140px; height: 46px; }
.ph-vol-down { top: 196px; height: 46px; }
.ph-power { right: -4px; top: 154px; height: 72px; border-radius: 0 3px 3px 0; }
.ph-island { position: absolute; top: 22px; left: 50%; width: 88px; height: 26px; margin-left: -44px; border-radius: 14px; background: #000; z-index: 2; display: flex; align-items: center; justify-content: flex-end; padding-right: 9px; }
.ph-island i { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b5a4a 0 20%, #142a20 45%, #050a07 75%); box-shadow: 0 0 0 1.5px #112018; }
.ph-in { height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(170deg, #2f6b55 0%, #1a4a3a 45%, #0d2a20 100%); padding: 70px 12px 24px; display: flex; flex-direction: column; gap: 10px; }
.ph-clock { text-align: center; color: #fff; font-size: 64px; font-weight: 500; line-height: 1; }
.ph-date { text-align: center; color: #d5ecdf; font-size: 15px; margin-bottom: auto; }
.noti { background: rgba(255, 255, 255, .93); border-radius: 16px; padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #111; }
.noti b { font-size: 14px; }
.noti span { color: #555; font-size: 12px; }

/* 예약 (같은 예약 칸을 초록 옷으로) */
.on-ink-mut { color: #cfe6da; }
.book-phone { font-size: 18px; font-weight: 700; }
.book-phone a { color: #fff; margin-left: 6px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend, .field label { font-size: 14px; font-weight: 700; color: var(--mut); padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line); background: #fff; }
.chip input:checked + span { border-color: var(--g); background: var(--gl); color: var(--gd); font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.field select { padding-right: 40px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317211c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; }
.field textarea { padding: 12px 14px; min-height: 96px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a958f; }
.hint { font-weight: 500; color: #6b7a72; margin-left: 4px; }
.date-msg { color: var(--err); font-weight: 700; margin-top: -8px; }
.date-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.agree { display: flex; flex-direction: column; gap: 4px; background: var(--gl); border-radius: 10px; padding: 12px 14px; }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink); min-height: 44px; cursor: pointer; }
.check-line input { width: 20px; height: 20px; flex: none; accent-color: var(--g); }
.form-foot { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 16px; }
.form-error { background: var(--errbg); color: var(--err); border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.done h3 { font-size: 24px; }
.check { width: 52px; height: 52px; border-radius: 50%; background: var(--g); display: grid; place-items: center; }

/* 바닥 */
.site-footer { background: #10241a; color: #c9d8cf; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-top: 36px; padding-bottom: 36px; }
.footer-name { color: #fff; font-size: 18px; }
.footer-right { align-items: flex-end; }
.site-footer a { color: #fff; }
.made { color: #8fb3a0; }
.mbar { display: none; }

@media (max-width: 700px) {
  .nav-link { display: none; }
  .site-header .btn-sm { display: none; }
  .mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .mbar-call { flex: 0 0 96px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; border: 2px solid var(--g); color: var(--g); font-weight: 700; text-decoration: none; }
  .mbar-book { flex: 1; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .footer-right { align-items: flex-start; }
}
@media (max-width: 600px) {
  .band { padding-top: 44px; padding-bottom: 44px; }
  .nb-page { padding-left: 46px; padding-right: 14px; }
  .nb-page::before { left: 32px; }
  .nb-list b { font-size: 24px; }
  .holes { left: 8px; }
  .tt { font-size: 11px; border-spacing: 3px; margin: -3px; width: calc(100% + 6px); }
  .tt thead th:first-child { width: 38px; }
  .cls { padding: 4px; min-height: 48px; }
  .cls small { font-size: 11px; }
  table.fee { font-size: 13px; }
  .fee th, .fee td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .nb-page.is-turning { animation: none; visibility: hidden; } .hero-slide { transition: none; transform: none; } }
/* 데모 전용: 디자인 바꿔 보기 */
.switcher { position: fixed; left: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(20, 23, 28, .92); color: #fff; font: 700 13px/1 "Noto Sans KR", sans-serif; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); width: max-content; max-width: calc(100vw - 32px); }
.switcher span { flex: none; padding: 0 8px 0 10px; color: #aab1bf; white-space: nowrap; }
.switcher a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap; }
.switcher a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.switcher a[aria-current="page"] { background: #fff; color: #14171c; }
@media (max-width: 700px) { .switcher { left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- 회원 화면 (로그인, 가입, 내 정보) ---------- */
.auth { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 460px; }
.auth-wide { width: 100%; max-width: 760px; }
.auth-title { font-size: clamp(26px, 3vw, 32px); }
.auth-submit { width: 100%; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: 14px; color: var(--mut); }
.or { display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social { display: flex; flex-direction: column; gap: 8px; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; }
.sbtn-naver { background: #03c75a; color: #fff; }
.sbtn-naver:hover { background: #02b351; color: #fff; }
.sbtn-kakao { background: #fee500; color: rgba(0, 0, 0, .85); }
.sbtn-kakao:hover { background: #f5dc00; color: rgba(0, 0, 0, .85); }
.mp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.mp-h { font-size: 20px; }
.dep-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dep-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dep-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.linkbtn { border: 0; background: none; padding: 10px 4px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 700; color: var(--mut); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.btn-danger { border-color: #b42318 !important; color: #b42318 !important; }
.mono { font-family: ui-monospace, Menlo, monospace; font-weight: 500; overflow-wrap: anywhere; }
.form-ok { background: #e8f5ee; color: #0f6b3f; border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.nav-member { font-weight: 700; }
@media (max-width: 700px) { .nav-member { display: inline-flex !important; } }

/* 게시판 */
.bd { width: 100%; max-width: 860px; }
.bd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.bd-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.bd-list li { border-bottom: 1px solid var(--line); }
.bd-list a { display: flex; align-items: center; gap: 10px; padding: 14px 4px; min-height: 52px; color: var(--ink); text-decoration: none; }
.bd-list a:hover .bd-title { text-decoration: underline; }
.bd-list a[aria-disabled="true"] .bd-title { color: var(--mut); font-weight: 500; }
.bd-title { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.bd-cnt { color: var(--mut); font-weight: 500; font-size: 14px; }
.bd-meta { color: var(--mut); font-size: 13px; white-space: nowrap; margin: 0; }
.bd-tag { flex: none; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.bd-pin { background: var(--ink); color: #fff; }
.bd-wait { background: #fff3e6; color: #8a3300; }
.bd-done { background: #e6f4ec; color: #0a4f34; }
.bd-empty { padding: 40px 0; text-align: center; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.bd-h { font-size: clamp(24px, 3vw, 30px); overflow-wrap: anywhere; }
.bd-body { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; border-top: 1px solid var(--line); padding-top: 20px; }
.bd-answer { background: #f6f8f7; border-radius: 14px; padding: clamp(16px, 3vw, 24px); }
.bd-answer .bd-body { border-top: 0; padding-top: 0; }
.bd-comments { border-top: 1px solid var(--line); padding-top: 20px; }
.bd-cmt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bd-cmt-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.bd-cmt-list p { margin: 0; overflow-wrap: anywhere; }
.bd-cmt-list form { align-self: flex-end; margin-top: -8px; }
.bd-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bd-pager a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.bd-pager a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 600px) {
  .bd-list a { flex-wrap: wrap; row-gap: 2px; }
  .bd-title { flex-basis: 100%; order: 2; }
  .bd-meta { order: 3; }
  .bd-tag { order: 1; }
}

/* 결제 */
.pay-items { display: flex; flex-direction: column; gap: 8px; }
.pay-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.pay-item input { width: 20px; height: 20px; flex: none; }
.pay-item span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-item small { color: var(--mut); font-size: 13px; }
.pay-item strong { white-space: nowrap; font-size: 17px; }
.pay-item:has(input:checked) { border-color: var(--ink); }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 4px; }
.pay-st-paid { background: #e6f4ec; color: #0a4f34; }
.pay-st-pending { background: #fff3e6; color: #8a3300; }
.pay-st-failed, .pay-st-cancelled { background: #f0efec; color: #4d5b53; }
