@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/pretendard-subset.woff2') format('woff2-variations');
}

/* ─────────────────────────────────────────────────────────────
   온재독서실 — WebMade 견본
   실제로 있는 업체가 아닙니다. 만들면 이렇게 나온다는 것을 보이려고
   지은 가상의 독서실입니다.

   WebMade 홈페이지와 일부러 다르게 생겼습니다. 손님 가게는 손님
   가게처럼 보여야 하기 때문입니다.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper:  #FBF9F4;
  --card:   #FFFFFF;
  --sand:   #F2EDE2;
  --ink:    #221F1A;
  --muted:  #6E6960;
  --rule:   #E4DECF;
  --navy:   #2C3B5A;
  --brass:  #A8763E;
  --ok:     #2F7A55;

  --ui: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
        'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  --edge: clamp(20px, 5vw, 32px);
  --wrap: 1200px;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.3; font-weight: 800; }
p  { margin: 0; }
a  { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--edge); }
.num  { font-variant-numeric: tabular-nums; }

/* ── 견본 알림 ────────────────────────────────────────────── */
.demo {
  background: var(--navy); color: #EDF1F8;
  font-size: 13px; line-height: 1.6; padding: 9px 0;
}
.demo .wrap { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.demo b { color: #FFF; font-weight: 700; }
.demo a {
  margin-left: auto; color: #FFF; text-decoration: none;
  border: 1px solid rgba(255,255,255,.42); border-radius: 999px;
  padding: 3px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.demo a:hover { background: rgba(255,255,255,.14); }

/* ── 머리 ─────────────────────────────────────────────────── */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(9px);
  border-bottom: 1px solid var(--rule);
}
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding-block: 8px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.logo svg { width: 26px; height: 26px; flex: none; }
/* 로고 글줄 — 상호와 아랫줄이 벌어지지 않게 (온재독서실 기준) */
.logo > span { display: grid; line-height: 1.2; }
.logo b { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.logo span { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; font-weight: 600; }

nav.menu { display: flex; gap: 2px; margin-left: -11px; flex-wrap: wrap; }
nav.menu a {
  text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--muted);
  padding: 6px 11px; border-radius: 7px; white-space: nowrap;
}
nav.menu a:hover { background: var(--sand); color: var(--ink); }
nav.menu a[aria-current="page"] { color: var(--navy); background: var(--sand); }

/* ── 공통 조각 ────────────────────────────────────────────── */
main { padding-bottom: 72px; }
section { padding-block: clamp(34px, 6vw, 54px); }
section + section { border-top: 1px solid var(--rule); }

.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--brass); margin-bottom: 9px;
}
.lede { font-size: 16.5px; color: var(--muted); max-width: 40em; margin-top: 12px; }
.lede b { color: var(--ink); font-weight: 600; }

h2 { font-size: clamp(22px, 4.2vw, 27px); }
h3 { font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--ui); font-size: 15px; font-weight: 700;
  padding: 12px 20px; border-radius: 9px; text-decoration: none;
  border: 1.5px solid var(--rule); background: var(--card); color: var(--ink);
}
.btn:hover { border-color: var(--navy); }
.btn.fill { background: var(--navy); border-color: var(--navy); color: #FFF; }
.btn.fill:hover { opacity: .9; }
.btns { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }

.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 12px; padding: 20px 22px;
}

/* ── 첫 화면 ──────────────────────────────────────────────── */
.hero { padding-block: clamp(30px, 6vw, 52px) clamp(28px, 5vw, 44px); }
.hero h1 { font-size: clamp(28px, 6.4vw, 44px); }
.hero h1 em { font-style: normal; color: var(--navy); }

.seats-now {
  display: inline-flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, var(--ok) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--ok) 32%, var(--rule));
  color: var(--ok); border-radius: 999px;
  padding: 6px 15px 6px 12px; font-size: 14px; font-weight: 700; margin-bottom: 18px;
}
.seats-now .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent);
}
.seats-now small { font-weight: 500; color: var(--muted); font-size: 12.5px; }

/* ── 요금 요약 3칸 ────────────────────────────────────────── */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.rate {
  background: var(--card); border: 1px solid var(--rule); border-radius: 11px;
  padding: 16px 17px; display: flex; flex-direction: column; gap: 2px;
}
.rate .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.rate .v { font-size: clamp(19px, 3.6vw, 25px); font-weight: 800; letter-spacing: -.035em; }
.rate .n { font-size: 12.5px; color: var(--muted); }
.rate.best { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 6%, var(--card)); }
.rate.best .v { color: var(--brass); }
@media (max-width: 560px) { .rates { grid-template-columns: 1fr; } }

/* ── 표 ───────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; font-size: 13.5px; color: var(--muted); padding-bottom: 9px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th { font-size: 12.5px; letter-spacing: .05em; color: var(--muted); background: var(--sand); }
td.r, th.r { text-align: right; }
tbody tr:last-child td { border-bottom: none; }
tr.hi td { background: color-mix(in srgb, var(--brass) 7%, transparent); font-weight: 700; }
.table-scroll table { min-width: 460px; }

/* ── 2단 ──────────────────────────────────────────────────── */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }

/* ── 목록 ─────────────────────────────────────────────────── */
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; }
.ticks li::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; margin-top: 9px;
  background: var(--brass); justify-self: center;
}
.ticks b { font-weight: 700; }

.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 2px; }
.rules li {
  counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 15px;
}
.rules li::before {
  content: counter(r, decimal-leading-zero);
  font-size: 12.5px; font-weight: 800; color: var(--brass);
  font-variant-numeric: tabular-nums; padding-top: 4px;
}
.rules li:last-child { border-bottom: none; }
.rules b { display: block; font-weight: 700; }
.rules span { color: var(--muted); font-size: 14px; }

/* ── 도면·약도 ────────────────────────────────────────────── */
.figure {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 12px; padding: 14px; margin-top: 22px;
}
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: 13px; color: var(--muted); padding: 12px 6px 2px; }
.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; padding: 4px 6px 10px; font-size: 13.5px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 13px; height: 13px; border-radius: 3px; flex: none; border: 1px solid rgba(0,0,0,.12); }

/* ── 문의 폼 ──────────────────────────────────────────────── */
form.ask { display: grid; gap: 14px; margin-top: 22px; }
form.ask .row { display: grid; gap: 6px; }
form.ask label { font-size: 13.5px; font-weight: 700; }
form.ask label small { font-weight: 500; color: var(--muted); }
form.ask input, form.ask select, form.ask textarea {
  font-family: var(--ui); font-size: 15px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--rule);
  border-radius: 9px; padding: 11px 13px; width: 100%;
}
form.ask input:focus, form.ask select:focus, form.ask textarea:focus {
  outline: none; border-color: var(--navy);
}
/* 고르는 칸의 화살표 — 브라우저 기본 화살표는 오른쪽 끝에 딱 붙습니다. 직접 그려 안쪽 여백만큼 띄웁니다. */
form.ask select { appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%236E6C66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px; }
form.ask select::-ms-expand { display: none; }
form.ask textarea { resize: vertical; min-height: 92px; }
form.ask .agree { display: flex; gap: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
form.ask .agree input { width: 17px; height: 17px; flex: none; margin-top: 3px; accent-color: var(--navy); }
.ask-said {
  margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px;
  background: color-mix(in srgb, var(--navy) 7%, var(--card));
  border: 1px solid color-mix(in srgb, var(--navy) 24%, var(--rule));
}
.ask-said b { color: var(--navy); }

/* ── 다음 페이지 안내 ─────────────────────────────────────── */
.next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.next-links a {
  text-decoration: none; background: var(--card); border: 1px solid var(--rule);
  border-radius: 11px; padding: 15px 17px; display: grid; gap: 2px;
}
.next-links a:hover { border-color: var(--navy); }
.next-links b { font-size: 15.5px; font-weight: 700; }
.next-links span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 560px) { .next-links { grid-template-columns: 1fr; } }

/* ── 바닥 ─────────────────────────────────────────────────── */
footer.bot {
  border-top: 1px solid var(--rule); background: var(--sand);
  padding-block: 32px; font-size: 14px; color: var(--muted);
}
footer.bot .cols { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
footer.bot b { color: var(--ink); }
footer.bot dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 10px 0 0; font-size: 13.5px; }
footer.bot dt, footer.bot dd { margin: 0; }
footer.bot dt { color: var(--muted); white-space: nowrap; }
footer.bot dd { color: var(--ink); }
footer.bot .made { font-size: 13px; }
footer.bot .made a { color: var(--navy); font-weight: 600; }

/* ── 전화 띠 (모바일) ─────────────────────────────────────── */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; inset: auto 0 0 0; z-index: 40;
    padding: 9px var(--edge) calc(9px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(9px); border-top: 1px solid var(--rule);
  }
  .callbar .btn { padding: 12px 10px; font-size: 15px; }
  /* 바가 화면 바닥에 붙어 있으니 그만큼 자리를 비워 둡니다.
     안 그러면 바닥글 마지막 줄이 바 밑에 영영 깔립니다.
     바가 없는 장(이용안내 같은)에는 빈자리를 만들지 않습니다. */
  body:has(.callbar) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* SVG 안 글씨도 본문과 같은 서체로 */
.figure svg text { font-family: var(--ui); }

/* ── 첫 화면 우측 : 좌석 현황판 ───────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(26px, 4vw, 48px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.showcase {
  position: relative; background: var(--sand); border: 1px solid var(--rule);
  border-radius: 18px; padding: 30px 18px; display: grid; place-items: center;
  width: 100%; max-width: 470px; margin-inline: auto;
  min-height: 450px; overflow: hidden;
}
.showcase::before {
  content: ""; position: absolute; inset: auto -12% -34% -12%; height: 70%;
  background: radial-gradient(58% 68% at 50% 0%, color-mix(in srgb, var(--navy) 12%, transparent), transparent 72%);
}

.board {
  position: relative; z-index: 1; width: min(304px, 100%);
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 16px 17px 14px; box-shadow: 0 16px 36px -16px rgba(34,31,26,.3);
}
.board-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 13px; }
.board-head b { font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.board-head i { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: auto; }

.seats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.seats .s { height: 20px; border-radius: 4px; background: var(--navy); }
.seats .s.free { background: #FFF; border: 2px solid var(--ok); }
.seats .gap { grid-column: 1 / -1; height: 3px; }

.board-legend { display: flex; gap: 14px; margin-top: 13px; font-size: 11.5px; color: var(--muted); }
.board-legend span { display: inline-flex; align-items: center; gap: 6px; }
.board-legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; background: var(--navy); }
.board-legend i.free { background: #FFF; border: 2px solid var(--ok); }

.chip {
  position: absolute; z-index: 2; display: grid; gap: 1px; max-width: 140px;
  background: #FFF; border: 1px solid var(--rule); border-radius: 12px;
  padding: 11px 13px; box-shadow: 0 12px 26px -12px rgba(34,31,26,.26);
}
.chip .ck { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.chip .cv { font-size: 15px; font-weight: 800; letter-spacing: -.035em; color: var(--navy); }
.chip .cn { font-size: 11.5px; color: var(--muted); }
.chip.c1 { top: 20px; right: 0; }
.chip.c2 { bottom: 20px; left: 0; }
.chip.c1 .cv { color: var(--ok); }
@media (max-width: 1000px) and (min-width: 901px) { .chip { display: none; } }
@media (max-width: 560px) {
  .showcase { min-height: 0; padding: 22px 16px; gap: 12px; }
  .chip { position: static; max-width: none; box-shadow: none; }
  .chip.c1 { order: -1; }
}

/* webmade:photo-hero ─ 여기부터 (자동 생성, 손대지 마세요) */
/* 두 판이 이 블록을 같이 씁니다.
     v1  .hero        사진 위에 종이색이 번지고 글은 원래 색
     v2  .hero.dim    사진 전체를 살짝 어둡게 하고 글은 흰색            */

.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }

.heroshot { position: absolute; inset: 0; z-index: 0; }
.heroshot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── v1 : 글 쪽만 종이색으로 덮습니다 ──────────────────────────
   경계선이 보이면 합성한 티가 납니다. 중간 구간을 넓게 잡아 번지게 뒀습니다.
   각 견본이 쓰는 종이색(--paper)을 그대로 써서 위아래 구역과 이어집니다. */
.hero:not(.dim) .heroshot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--paper, #FFF) 0%,
    var(--paper, #FFF) 30%,
    color-mix(in srgb, var(--paper, #FFF) 90%, transparent) 44%,
    color-mix(in srgb, var(--paper, #FFF) 62%, transparent) 57%,
    color-mix(in srgb, var(--paper, #FFF) 26%, transparent) 71%,
    transparent 86%);
}

/* 우측 칸은 비워 사진이 보이게 두고, 그 사업장이 자랑하는 숫자만 얹습니다 */
.photoside { min-height: clamp(290px, 32vw, 420px); display: flex; align-items: flex-end; }
.pchip {
  display: grid; gap: 1px; margin: 0; width: max-content; max-width: 100%;
  background: color-mix(in srgb, var(--card, #FFF) 92%, transparent);
  border: 1px solid var(--rule, rgba(0,0,0,.1)); border-radius: 13px;
  padding: 12px 15px; backdrop-filter: blur(6px);
  box-shadow: 0 16px 34px -16px rgba(20,18,16,.4);
}
.pchip .ck { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted, #6B7069); }
.pchip .cv { font-size: 17px; font-weight: 800; letter-spacing: -.035em; color: var(--ink, #1B1B1B); }
.pchip .cn { font-size: 12px; color: var(--muted, #6B7069); }

/* ── v2 : 사진 전체를 살짝 어둡게, 글은 흰색 ───────────────────
   딤은 **글이 읽힐 만큼만** 넣습니다. 더 넣으면 사진이 안 보이고,
   그러면 사진을 깐 이유가 없어집니다. 고르게 깐 위에 글이 놓이는
   왼쪽만 조금 더 눌러 대비를 만듭니다. */
.hero.dim { min-height: min(82vh, 700px); display: grid; align-items: center; }
.hero.dim .heroshot::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(16,15,14,.80) 0%, rgba(16,15,14,.70) 30%,
                            rgba(16,15,14,.48) 52%, rgba(16,15,14,.31) 72%,
                            rgba(16,15,14,.25) 100%),
    linear-gradient(to top, rgba(16,15,14,.30) 0%, transparent 46%);
}

/* 사진은 어디가 밝을지 모릅니다. 딤만 믿으면 밝은 데서 글자가 날아가서
   글 자체에도 옅은 그림자를 답니다. 딤을 더 올리는 것보다 사진이 삽니다. */
.hero.dim { color: #FFF; }
.hero.dim h1, .hero.dim .lede, .hero.dim .rates, .hero.dim .stats, .hero.dim .hours-line {
  text-shadow: 0 1px 12px rgba(10,10,10,.55), 0 0 3px rgba(10,10,10,.35);
}
.hero.dim h1 { color: rgba(255,255,255,.92); }
.hero.dim h1 em { color: #FFF; }
.hero.dim .lede, .hero.dim .lede b { color: #FFF; }
.hero.dim .bar { background: #FFF; }

/* 배지 — 견본마다 이름이 다릅니다 */
.hero.dim .pill-tag, .hero.dim .seats-now, .hero.dim .open-now, .hero.dim .wait {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.34);
  color: #FFF; backdrop-filter: blur(6px);
}
.hero.dim .seats-now small, .hero.dim .open-now small,
.hero.dim .wait small { color: rgba(255,255,255,.72); }

/* 숫자 묶음 — 흰 상자로 두면 사진 위에 종이를 붙인 꼴이 됩니다. 선만 남깁니다 */
.hero.dim .rates, .hero.dim .stats, .hero.dim .hours-line {
  background: transparent; border-color: rgba(255,255,255,.3); color: #FFF;
}
.hero.dim .rate { background: transparent; border-color: rgba(255,255,255,.3); }
.hero.dim .rate.best { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.hero.dim .stats > * { background: transparent; border-color: rgba(255,255,255,.3); }
.hero.dim .k, .hero.dim .n { color: rgba(255,255,255,.8); }
.hero.dim .v { color: #FFF; }
/* 진료시간표의 요일 칸은 제 색(--muted)을 갖고 있어 어두운 배경에서 사라집니다 */
.hero.dim .hours-line dt { color: rgba(255,255,255,.8); }
.hero.dim .hours-line dd, .hero.dim .hours-line dd b { color: #FFF; }

/* 버튼 — 하나는 흰색으로 채우고 하나는 선만 */
.hero.dim .btn {
  background: transparent; border-color: rgba(255,255,255,.55); color: #FFF;
  backdrop-filter: blur(4px);
}
.hero.dim .btn:hover { border-color: #FFF; background: rgba(255,255,255,.12); }
.hero.dim .btn.fill { background: #FFF; border-color: #FFF; color: #17161A; }
.hero.dim .btn.fill:hover { background: rgba(255,255,255,.88); color: #17161A; }

.hero.dim .photoside { align-items: flex-end; justify-content: flex-end; }
.hero.dim .pchip {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34);
  backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5);
}
.hero.dim .pchip .ck, .hero.dim .pchip .cn { color: rgba(255,255,255,.76); }
.hero.dim .pchip .cv { color: #FFF; }

/* ── 로고·메뉴·햄버거를 사진 위에 얹습니다 ────────────────────
   헤더가 제 자리를 차지하면 사진은 그 아래에서 시작합니다. 헤더를
   투명하게 하고 첫 화면을 그 높이만큼 끌어올린 뒤, 같은 만큼 안쪽
   여백을 줘서 글이 헤더에 가리지 않게 합니다.
   높이는 견본마다 다릅니다. 스크립트가 재서 --topH 에 넣습니다. */
body.photohero header.top {
  background: transparent; border-bottom-color: transparent; backdrop-filter: none;
  transition: background .2s ease, border-color .2s ease;
}
body.photohero .hero {
  margin-top: calc(-1 * var(--topH, 62px));
  padding-top: calc(var(--topH, 62px) + clamp(22px, 4vw, 44px));
}
body.photohero .hero > .wrap { z-index: 2; }

/* 첫 화면을 지나면 헤더가 원래대로 돌아옵니다.
   안 그러면 흰 바탕 위에 흰 글씨가 남습니다. */
body.photohero.scrolled header.top {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.3) blur(9px);
  border-bottom-color: var(--rule);
}
/* 휴대폰에서는 blur 를 켜면 안 됩니다 — 그 안의 메뉴 패널이 화면이
   아니라 헤더 기준으로 잡힙니다. 색만 채웁니다. */
@media (max-width: 900px) {
  body.photohero.scrolled header.top { backdrop-filter: none; background: var(--paper); }
}

/* v1 — 오른쪽 위는 사진이 그대로 드러납니다. 그 위에 메뉴가 놓이므로
   위쪽에만 종이색을 옅게 깔아 글자가 사진에 묻히지 않게 합니다. */
body.photohero:not(.dim) .hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1;
  height: calc(var(--topH, 62px) + 44px);
  background: linear-gradient(to bottom,
    var(--paper) 0%,
    color-mix(in srgb, var(--paper) 70%, transparent) 54%,
    transparent 100%);
}

/* v2 — 어두운 사진 위라 로고와 메뉴를 흰색으로 바꿉니다.
   로고 그림은 색이 박혀 있어 통째로 하얗게 만듭니다. */
body.photohero.dim:not(.scrolled) header.top .logo,
body.photohero.dim:not(.scrolled) header.top .logo b { color: #FFF; }
body.photohero.dim:not(.scrolled) header.top .logo span,
body.photohero.dim:not(.scrolled) header.top .logo i { color: rgba(255,255,255,.78); }
/* 로고 그림은 색을 뒤집지 않습니다. 칠해진 로고를 뒤집으면 흰 덩어리가
   됩니다 — 필라테스에서 그렇게 됐습니다. 그림자만 넣어 띄웁니다. */
body.photohero.dim:not(.scrolled) header.top .logo svg {
  filter: drop-shadow(0 1px 7px rgba(0,0,0,.5));
}
body.photohero.dim:not(.scrolled) header.top nav.menu > a { color: rgba(255,255,255,.86); }
body.photohero.dim:not(.scrolled) header.top nav.menu > a:hover,
body.photohero.dim:not(.scrolled) header.top nav.menu > a[aria-current="page"] {
  background: rgba(255,255,255,.18); color: #FFF;
}
body.photohero.dim:not(.scrolled) header.top .me {
  color: #FFF; border-color: rgba(255,255,255,.4);
  background: rgba(16,15,14,.42); backdrop-filter: blur(8px);
}
body.photohero.dim:not(.scrolled) header.top .me em { color: rgba(255,255,255,.74); }
body.photohero.dim:not(.scrolled) .navtoggle { border-color: rgba(255,255,255,.55); }
body.photohero.dim:not(.scrolled) .navtoggle span { background: #FFF; }

/* 휴대폰에서는 좌우가 없습니다.
   v1 은 번지는 방향만 위→아래로 바꾸고, v2 는 고르게 깔면 됩니다. */
@media (max-width: 900px) {
  .hero:not(.dim) .heroshot::after {
    background: linear-gradient(to bottom,
      var(--paper, #FFF) 0%,
      var(--paper, #FFF) 46%,
      color-mix(in srgb, var(--paper, #FFF) 72%, transparent) 64%,
      color-mix(in srgb, var(--paper, #FFF) 28%, transparent) 82%,
      transparent 100%);
  }
  .photoside { min-height: 200px; }
  .hero.dim { min-height: min(86vh, 720px); }
  .hero.dim .heroshot::after {
    background: linear-gradient(to bottom, rgba(16,15,14,.44) 0%, rgba(16,15,14,.58) 100%);
  }
  .hero.dim .photoside { justify-content: flex-start; min-height: 120px; }

  /* 휴대폰 메뉴 패널은 종이색 바탕입니다. v2 의 "헤더 글씨는 흰색" 규칙이
     여기까지 따라오면 흰 바탕에 흰 글씨가 됩니다. 패널 안만 되돌립니다. */
  body.photohero.dim header.top nav.menu.navpanel > a,
  body.photohero.dim header.top .navpanel nav.menu > a { color: var(--muted); }
  body.photohero.dim header.top nav.menu.navpanel > a:hover,
  body.photohero.dim header.top .navpanel nav.menu > a:hover,
  body.photohero.dim header.top nav.menu.navpanel > a[aria-current="page"],
  body.photohero.dim header.top .navpanel nav.menu > a[aria-current="page"] {
    color: var(--ink); background: var(--sand);
  }
  body.photohero.dim header.top .navpanel .me {
    color: var(--ink); background: var(--card);
    border-color: var(--rule); backdrop-filter: none;
  }
  body.photohero.dim header.top .navpanel .me em { color: var(--muted); }
}
/* webmade:photo-hero ─ 여기까지 */

/* webmade:mobile-nav ─ 여기부터 (자동 생성, 손대지 마세요) */
/* 휴대폰 메뉴 — 우측 상단 햄버거, 오른쪽에서 밀려 나오는 패널.
   데스크톱에서는 아래 넷이 아예 안 보이고 지금 메뉴 그대로입니다. */
.navtoggle, .navveil, .navmore, .navlogo { display: none; }

@media (max-width: 900px) {
  /* backdrop-filter 가 걸린 요소는 그 안의 position:fixed 를 화면이 아니라
     자기 자신 기준으로 잡습니다. 그대로 두면 패널이 헤더 높이 안에서만
     움직입니다. 휴대폰에서만 끄고 배경색을 채웁니다. */
  header.top { backdrop-filter: none; background: var(--paper); }
  header.top .wrap { flex-wrap: nowrap; }

  .navtoggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin-left: auto; flex: none;
    background: transparent; border: 1px solid var(--rule); border-radius: 11px;
    cursor: pointer; position: relative; z-index: 3;
  }
  .navtoggle span {
    display: block; height: 2px; border-radius: 2px; background: var(--ink);
    transition: transform .24s ease, opacity .18s ease;
  }
  /* 열리면 버튼을 감춥니다. 패널이 그 자리를 덮고 있어서, 남겨 두면
     닫기 버튼이 패널 안에 들어앉은 꼴이 됩니다.
     닫는 길은 셋입니다 — 옆 어두운 자리, 메뉴 하나 누르기, Esc. */
  body.navopen .navtoggle { visibility: hidden; }

  /* 오른쪽 끝에 붙여 두고 밖으로 밀어 놨다가, 열면 제자리로 들어옵니다.
     햄버거가 우측 상단이라 패널도 같은 쪽이어야 누른 자리에서 열립니다. */
  .navpanel {
    position: fixed; inset: 0 0 0 auto; z-index: 2;
    width: min(80vw, 326px); max-width: 100%;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0;
    padding: env(safe-area-inset-top) 14px calc(20px + env(safe-area-inset-bottom));
    background: var(--paper); border-left: 1px solid var(--rule);
    transform: translateX(100%); transition: transform .28s ease;
    overflow-y: auto; overscroll-behavior: contain;
  }
  /* 그림자는 열렸을 때만 — 닫혀 밖에 숨어 있어도 그림자가 화면 안으로 번져 휴대폰 오른쪽 끝이 회색으로 보였습니다 (대표 지적, 2026-09-24) */
  body.navopen .navpanel { transform: translateX(0); box-shadow: -24px 0 60px -30px rgba(16,15,14,.55); }
  body.navopen { overflow: hidden; }
  /* 열렸을 때만 헤더를 맨 위로. 아래쪽 고정 막대(z-index 20~40)를 넘겨야 합니다 */
  body.navopen header.top { z-index: 80; }

  nav.menu.navpanel, .navpanel nav.menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
  }
  /* 패널 맨 위 로고 — 헤더에 있는 것을 생성기가 그대로 옮겨 온 것입니다.
     헤더 높이(--topH)만큼 잡아 두면 원래 로고가 있던 자리에 그대로 얹힙니다. */
  #site-nav .navlogo {
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1; background: var(--paper);
    min-height: var(--topH, 62px);
    margin: 0 -14px 10px; padding: 0 26px;
    border-bottom: 1px solid var(--rule);
  }
  /* 사진 판은 헤더 글씨가 흰색입니다. 패널은 종이색이라 되돌려야 합니다.
     id 로 시작하는 이유 — 그 흰색 규칙이 클래스만으로는 못 이길 만큼 셉니다. */
  #site-nav .navlogo, #site-nav .navlogo b { color: var(--ink); }
  #site-nav .navlogo span, #site-nav .navlogo i { color: var(--muted); }
  #site-nav .navlogo svg { filter: none; }
  /* 열리면 헤더의 원래 로고는 감춥니다 — 같은 로고가 둘로 보입니다.
     자리는 남겨 둬야(visibility) 닫을 때 헤더가 폴짝 뛰지 않습니다. */
  body.navopen header.top > .wrap > .logo { visibility: hidden; }

  /* 메뉴 링크만. 바로 밑에 있는 a 만 고릅니다 — 그냥 `.navpanel a` 로 두면
     아래 안내 칸의 버튼까지 잡혀 버튼이 메뉴 글씨처럼 납작해집니다.
     id 로 시작하는 이유 — 견본마다 `nav.menu a` `.menu a` 로 제 나름의
     규칙이 있어서, 클래스로만 쓰면 견본에 따라 지고 이깁니다. 그러면
     어떤 견본은 손가락에 37px, 어떤 견본은 54px 이 됩니다. */
  #site-nav > a, #site-nav nav.menu > a {
    font-size: 16px; padding: 13px 12px; border-radius: 9px; white-space: normal;
  }

  /* ── 메뉴 아래 안내 칸 ────────────────────────────────────
     지금 상태 한 줄 · 바로 하는 것 · 전화 · 여는 시간 · 주소.
     선택자를 `.navpanel` 로 시작하는 이유 — 견본 본래 CSS 의
     `nav.menu a:hover` 같은 규칙이 더 세서, 그냥 두면 버튼 색을 덮습니다. */
  .navpanel .navmore {
    display: flex; flex-direction: column; flex: 1 1 auto;
    margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--rule);
  }
  .navpanel .navnow {
    display: flex; align-items: flex-start; gap: 9px; margin: 0 0 11px;
    padding: 11px 13px; border-radius: 11px; line-height: 1.45;
    background: color-mix(in srgb, var(--ok) 8%, var(--card));
    border: 1px solid color-mix(in srgb, var(--ok) 26%, var(--rule));
  }
  .navpanel .navnow .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
    flex: none; margin-top: 6px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 16%, transparent);
  }
  .navpanel .navnow b {
    display: block; font-size: 13.5px; color: var(--ok); word-break: keep-all;
  }
  .navpanel .navnow small {
    display: block; margin-top: 2px; font-size: 11.5px;
    font-weight: 500; color: var(--muted);
  }

  .navpanel .navmore .btn {
    display: flex; width: 100%; margin: 0 0 7px;
    font-size: 15px; padding: 13px 14px; border-radius: 10px; white-space: normal;
  }
  /* 채운 버튼 색 — 견본마다 대표색 이름이 달라서 없는 쪽으로 흘려보냅니다.
     `:hover` 까지 같이 적어야 본래 메뉴 hover 규칙에 덮이지 않습니다. */
  .navpanel .navmore .btn.fill,
  .navpanel .navmore .btn.fill:hover {
    color: #FFF;
    background: var(--brand, var(--navy, #333));
    border-color: var(--brand, var(--navy, #333));
  }
  .navpanel .navmore .btn:not(.fill),
  .navpanel .navmore .btn:not(.fill):hover {
    color: var(--ink); background: var(--card); border-color: var(--rule);
  }

  /* 여는 시간과 주소는 패널 바닥에 붙이고 한 칸으로 묶습니다.
     그냥 글줄로 두면 가운데가 빈 것이 사고처럼 보입니다 — 아래를 눌러 줍니다. */
  .navpanel .navfacts {
    margin: 16px 0 0; margin-top: auto;
    padding: 13px 14px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--rule);
    font-size: 13px; line-height: 1.5;
  }
  .navpanel .navfacts dt {
    margin: 0; font-size: 11.5px; font-weight: 700;
    letter-spacing: .04em; color: var(--muted);
  }
  .navpanel .navfacts dd {
    margin: 2px 0 10px; font-weight: 600; color: var(--ink);
    word-break: keep-all;      /* 한글은 그냥 두면 낱글자로 끊깁니다 */
  }
  /* 여는 시간은 " · " 자리에서만 줄을 바꿉니다. keep-all 로는 가운뎃점
     뒤에서 끊기는 것을 못 막아 "일요일 / ·공휴일 휴무" 가 됩니다. */
  #site-nav .navfacts dd span { white-space: nowrap; }
  .navpanel .navfacts dd:last-child { margin-bottom: 0; }

  /* 회원 칸(스튜디오)은 헤더에서는 좁아서 아랫줄을 숨기지만,
     패널은 자리가 넉넉하니 남은 횟수까지 보여 줍니다 */
  .navpanel .me em { display: block; }

  .navveil {
    display: block; position: fixed; inset: 0; z-index: 1;
    background: rgba(16,15,14,.46);
    opacity: 0; pointer-events: none; transition: opacity .28s ease;
  }
  body.navopen .navveil { opacity: 1; pointer-events: auto; }
}

/* 움직임을 줄여달라고 설정한 분에게는 밀려 나오지 않고 그냥 나타납니다 */
@media (prefers-reduced-motion: reduce) {
  .navpanel, .navveil, .navtoggle span { transition: none; }
}
/* webmade:mobile-nav ─ 여기까지 */

/* PC 에서만 줄을 나눕니다. 휴대폰에서는 좁아서 한 번 더 접히면 문장이 토막 납니다.
   앞에 띄어쓰기를 하나 두고 쓰십시오 — PC 에서는 줄 끝 공백이라 안 보이고,
   휴대폰에서는 그 공백이 낱말 사이를 벌려 줍니다. */
@media (max-width: 760px) { br.pc { display: none; } }


/* ══ 사진 중심 구역 ═══════════════════════════════════════════
   제작사 포트폴리오 52건을 뜯어보고 반복되는 것만 가져왔습니다.
   **우리 견본에 이게 하나도 없어서 글만 많고 밋밋했습니다.**
     .quickbar     첫 화면 바로 아래 가로 바로가기
     .en           영문 소제목 (레퍼런스가 전부 이 꼴입니다)
     .pgrid        사진 격자
     .people-round 동그란 인물 사진
     .photoband    색면 위에 사진을 겹쳐 깐 구역
     .sidedock     오른쪽 세로 바로가기
   ══════════════════════════════════════════════════════════ */

/* ── 첫 화면 바로 아래 바로가기 ─────────────────────────────── */
.qb-sec { padding-block: 0; border-top: 0; }
.qb-sec > .wrap { padding-block: 0; }
.quickbar {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--card, #fff); border: 1px solid var(--rule, #e5e5e5);
  border-radius: var(--radius, 14px); overflow: hidden;
  margin-top: clamp(-46px, -4vw, -28px); position: relative; z-index: 3;
  box-shadow: 0 22px 48px -30px rgba(20,18,16,.45);
}
/* **퀵바는 첫 화면 위로 겹쳐 올라옵니다.** 사진은 겹쳐도 되지만 글과 버튼이
   깔리면 안 됩니다. 겹치는 값(-28~-46px)에 여유를 더해 첫 화면 아래를 비웁니다.
   `도구/간격확인.py` 가 이 틈을 매번 잽니다 — 눈으로 놓칩니다. */
.hero.has-qb > .wrap:last-of-type { padding-bottom: clamp(78px, 8.5vw, 102px); }
@media (max-width: 760px) {
  .hero.has-qb > .wrap:last-of-type { padding-bottom: clamp(56px, 10vw, 74px); }
}

.quickbar > a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 20px 8px 18px; text-decoration: none;
  color: var(--ink, #1a1a18); font-size: 13.5px; font-weight: 700;
  text-align: center; word-break: keep-all; line-height: 1.4;
  transition: background .15s ease;
}
.quickbar > a + a { border-left: 1px solid var(--rule, #e5e5e5); }
.quickbar > a:hover { background: var(--surface, #f3f1ec); }
.quickbar .qi { display: block; color: var(--brand, #2a2a2a); }
.quickbar .qi svg { width: 27px; height: 27px; display: block; }
@media (max-width: 760px) {
  /* **여섯 칸을 한 줄에 밀어 넣으면 글자가 세로로 쪼개집니다.**
     두 줄로 접습니다. */
  .quickbar { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
              margin-top: clamp(-30px, -5vw, -18px); }
  .quickbar > a { padding: 15px 6px 13px; font-size: 12.5px; gap: 7px; }
  .quickbar > a + a { border-left: 0; }
  .quickbar > a:nth-child(n+4) { border-top: 1px solid var(--rule, #e5e5e5); }
  .quickbar > a:not(:nth-child(3n+1)) { border-left: 1px solid var(--rule, #e5e5e5); }
  .quickbar .qi svg { width: 23px; height: 23px; }
}

/* ── 영문 소제목 ───────────────────────────────────────────── */
.en {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent, #8a6a4a);
}
.photoband .en { color: rgba(255,255,255,.78); }

/* ── 사진 격자 ─────────────────────────────────────────────── */
.pgrid { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.pgrid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgrid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pgrid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgrid figure { margin: 0; }
.pgrid img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: var(--radius-sm, 10px);
}
.pgrid figcaption {
  margin-top: 9px; font-size: 13px; font-weight: 600;
  color: var(--muted, #6e6c66); word-break: keep-all;
}
@media (max-width: 860px) { .pgrid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pgrid.g3, .pgrid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid figcaption { font-size: 12.5px; }
}

/* ── 동그란 인물 사진 ──────────────────────────────────────── */
.people-round {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}
.people-round figure { margin: 0; text-align: center; }
.people-round .ph {
  display: block; width: min(100%, 190px); margin: 0 auto;
  aspect-ratio: 1; border-radius: 999px; overflow: hidden;
  background: var(--surface, #f3f1ec);
}
.people-round .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.people-round figcaption { margin-top: 14px; }
.people-round figcaption b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.people-round figcaption i {
  display: block; margin-top: 3px; font-style: normal;
  font-size: 13px; color: var(--muted, #6e6c66);
}

/* ── 색면 + 사진 겹침 ──────────────────────────────────────── */
.photoband { position: relative; overflow: hidden; background: var(--brand, #2a2a2a); border-top: 0; }
.photoband .bandshot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .34; z-index: 0;
}
/* 사진만 깔면 글이 밝은 데서 날아갑니다. 색을 한 겹 더 덮습니다. */
.photoband::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg,
    color-mix(in srgb, var(--brand, #2a2a2a) 88%, transparent) 0%,
    color-mix(in srgb, var(--brand, #2a2a2a) 62%, transparent) 58%,
    color-mix(in srgb, var(--brand, #2a2a2a) 40%, transparent) 100%);
}
.photoband > .wrap { position: relative; z-index: 2; color: #fff; }
.photoband h2 { color: #fff; }
.photoband .lede { color: rgba(255,255,255,.86); max-width: 40em; }
.photoband .bandstat {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(12px, 1.8vw, 22px); margin-top: clamp(24px, 3.4vw, 36px);
}
.photoband .bandstat > div {
  padding: 16px 18px; border-radius: var(--radius-sm, 10px);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
}
.photoband .bandstat .v {
  display: block; font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800; letter-spacing: -.035em; color: #fff;
}
.photoband .bandstat .k { display: block; margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.78); }

/* ── 오른쪽 세로 바로가기 ──────────────────────────────────── */
.sidedock {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: grid; gap: 8px;
}
.sidedock a {
  display: grid; justify-items: center; gap: 4px; width: 56px; padding: 11px 4px;
  background: var(--card, #fff); border: 1px solid var(--rule, #e5e5e5);
  border-radius: 14px; text-decoration: none;
  color: var(--ink, #1a1a18); font-size: 11px; font-weight: 700;
  box-shadow: 0 14px 30px -20px rgba(20,18,16,.5);
  transition: background .15s ease, border-color .15s ease;
}
.sidedock a:hover { background: var(--surface, #f3f1ec); border-color: var(--brand, #2a2a2a); }
.sidedock svg { width: 21px; height: 21px; color: var(--brand, #2a2a2a); }
/* **휴대폰에서는 띄우지 않습니다.** 화면 아래 고정 띠가 같은 일을 하고,
   둘 다 띄우면 엄지로 닿는 자리를 둘이 다툽니다. */
@media (max-width: 900px) { .sidedock { display: none; } }
/* ══ 사진 중심 구역 · 끝 ══════════════════════════════════════ */

/* ══ 두 번째 레퍼런스에서 배운 것 ══════════════════════════════
   템플릿 여덟 벌은 문법이 또 달랐습니다. 정보를 빽빽이 채우는 대신
   **큰 글씨 하나와 흐르는 줄**로 분위기를 만듭니다.
   ══════════════════════════════════════════════════════════ */

/* ── 맨 위 공지 띠 ─────────────────────────────────────────── */
.topnote {
  background: var(--brand, #2a2a2a); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
}
.topnote > .wrap {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 38px; padding-block: 8px; text-align: center; word-break: keep-all;
}
.topnote a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 560px) { .topnote { font-size: 12px; } .topnote > .wrap { gap: 8px; } }

/* ── 옆으로 흐르는 글줄 ────────────────────────────────────── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--rule, #e5e5e5);
  background: var(--surface, #f3f1ec); padding-block: 13px;
}
.mq-track {
  display: flex; gap: 0; width: max-content;
  animation: mq 34s linear infinite;
}
.mq-track span {
  padding: 0 26px; font-size: clamp(15px, 2.2vw, 19px); font-weight: 800;
  letter-spacing: -.03em; color: var(--ink, #1a1a18); white-space: nowrap;
}
.mq-track span + span::before {
  content: "·"; margin-right: 26px; margin-left: -26px; color: var(--accent, #8a6a4a);
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 움직임을 줄여 달라고 설정한 분에게는 멈춰 보여드립니다. */
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ── 옆으로 미는 사진 줄 ───────────────────────────────────── */
.hstrip { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.hstrip::-webkit-scrollbar { height: 6px; }
.hstrip::-webkit-scrollbar-thumb { background: var(--rule, #e5e5e5); border-radius: 99px; }
.hs-track { display: flex; gap: clamp(10px, 1.4vw, 16px); width: max-content; }
.hs-track figure { margin: 0; width: clamp(210px, 26vw, 310px); scroll-snap-align: start; }
.hs-track img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: var(--radius-sm, 10px);
}
.hs-track figcaption { margin-top: 9px; font-size: 13px; font-weight: 600;
  color: var(--muted, #6e6c66); word-break: keep-all; }
/* ══ 두 번째 레퍼런스에서 배운 것 · 끝 ═════════════════════════ */

/* ══ 첫 화면 · 네 원형 ═══════════════════════════════════════
   레퍼런스에서 넷을 옮기고(center · left · title · gallery), 전 판이 더 나았던
   둘(dim · overlap)을 남겼습니다. class 는 `hero2` 로 새로 잡아 옛 `.hero` 규칙과
   섞이지 않게 했습니다. (표식 이름은 처음 이름 그대로 "네 원형" 입니다 — 바꾸면
   견본첫화면넣기.py 가 예전 블록을 못 찾습니다.)
   ══════════════════════════════════════════════════════════ */
/* 색 이름이 견본마다 다릅니다 (--brand 가 없고 --navy 만 있는 곳도 있습니다).
   여기서 한 번 받아 두고 아래서는 --h2b(바탕색) · --h2a(강조색)만 씁니다. */
:root { --h2b: var(--brand, var(--navy, var(--ink, #222)));
        --h2a: var(--accent, var(--brand, var(--navy, var(--ink, #222)))); }
.hero2 { position: relative; overflow: hidden; padding: 0; border-top: 0; margin: 0; }
.hero2 > .wrap { position: relative; z-index: 2; padding-block: 0; }
.hero2 h1 { margin: 0; color: inherit; }
.hero2 h1 em { font-style: normal; }
.hero2 .h2-sub { margin: 0; word-break: keep-all; }
.h2-shot { position: absolute; inset: 0; z-index: 0; }
.h2-shot img, .h2-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.h2-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.h2-btns.center { justify-content: center; }
.hero2 .btn { font-size: 15px; }

/* 캐러셀 화살표와 점 — 레퍼런스가 전부 갖고 있습니다. 장식이라 눌러도 아무 일 없습니다. */
.h2-nav { position: absolute; inset: 50% 0 auto 0; z-index: 3; display: flex;
  justify-content: space-between; padding: 0 clamp(14px, 2vw, 30px); transform: translateY(-50%);
  pointer-events: none; }
.h2-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; line-height: 1; color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.42); backdrop-filter: blur(4px); }
.h2-dots { position: absolute; left: 0; right: 0; bottom: clamp(70px, 8vw, 100px); z-index: 3;
  display: flex; justify-content: center; gap: 8px; }
.h2-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.42); }
.h2-dots i.on { width: 26px; border-radius: 99px; background: #fff; }
.h2-dots.inline { position: static; justify-content: flex-start; margin-top: clamp(22px, 3vw, 34px); }

/* 머리말을 사진 위에 띄웁니다 (center · left · gallery) */
body.photohero .hero2 { margin-top: calc(-1 * var(--topH, 62px)); }

/* ── center : 서울티스치과 ─────────────────────────────────── */
.h-center { min-height: min(100svh, 820px); display: grid; align-items: center; color: #fff;
  text-align: center; padding-block: calc(var(--topH, 62px) + clamp(40px, 6vw, 72px)) clamp(120px, 14vw, 170px); }
.h-center .h2-shot::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12,16,20,.62) 0%, rgba(12,16,20,.44) 45%, rgba(12,16,20,.66) 100%); }
.h-center .h2-eyebrow { margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .26em;
  color: rgba(255,255,255,.86); }
.h-center h1 { font-size: clamp(30px, 5.4vw, 58px); font-weight: 800; line-height: 1.22;
  letter-spacing: -.035em; text-shadow: 0 2px 22px rgba(0,0,0,.35); word-break: keep-all; }
.h-center h1 em { color: #fff; border-bottom: 3px solid rgba(255,255,255,.55); }
.h-center .h2-sub { max-width: 42em; margin: 18px auto 0; font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.7; color: rgba(255,255,255,.9); text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.h-center .h2-note { margin: 12px 0 0; font-size: 13px; color: rgba(255,255,255,.72); word-break: keep-all; }
.h-center .h2-btns { margin-top: 26px; }
.h-center .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(4px); }
.h-center .btn.fill { background: #fff; border-color: #fff; color: var(--ink); }
.h-center .h2-pills { display: inline-flex; margin: 34px auto 0; padding: 6px;
  border-radius: 999px; background: rgba(8,12,16,.46); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); }
.h-center .h2-pills span { display: grid; gap: 1px; padding: 10px 26px; text-align: center; }
.h-center .h2-pills span + span { border-left: 1px solid rgba(255,255,255,.22); }
.h-center .h2-pills b { font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -.03em; }
.h-center .h2-pills i { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.72); }

/* ── left : 미래로마디재활 ─────────────────────────────────── */
.h-left { min-height: min(96svh, 780px); display: grid; align-items: center; color: #fff;
  padding-block: calc(var(--topH, 62px) + clamp(36px, 5vw, 60px)) clamp(110px, 12vw, 150px); }
.h-left .h2-shot::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--h2b) 84%, transparent) 0%,
    color-mix(in srgb, var(--h2b) 62%, transparent) 42%,
    color-mix(in srgb, var(--h2b) 22%, transparent) 78%,
    color-mix(in srgb, var(--h2b) 10%, transparent) 100%); }
.h-left > .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end;
  gap: clamp(24px, 4vw, 48px); }
.h-left .h2-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; color: rgba(255,255,255,.84); }
.h-left .h2-eyebrow::before { content: ""; width: 34px; height: 1px; background: rgba(255,255,255,.7); }
.h-left h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; word-break: keep-all; }
.h-left h1 em { color: #fff; }
.h-left .h2-sub { max-width: 34em; margin-top: 18px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7; color: rgba(255,255,255,.88); }
.h-left .h2-btns { margin-top: 26px; }
.h-left .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.h-left .btn.fill { background: #fff; border-color: #fff; color: var(--h2b); }
.h-left .btn.tel { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-color: #fff;
  color: var(--h2b); border-radius: 999px; padding-inline: 20px; }
.h-left .btn.tel svg { width: 17px; height: 17px; }
.h2-card { justify-self: end; min-width: 220px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 24px 48px -24px rgba(0,0,0,.45); }
.h2-card .k { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.h2-card b { display: block; margin-top: 4px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.035em; color: var(--h2b); }
.h2-card .n { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); word-break: keep-all; }

/* ── title : 밀담 · 구운담 ─────────────────────────────────── */
.h-title { background: var(--paper); color: var(--ink); text-align: center;
  padding-block: clamp(44px, 6.5vw, 84px) 0; }
.h-title h1 { font-size: clamp(38px, 6.2vw, 74px); font-weight: 900; line-height: 1.08;
  letter-spacing: -.045em; word-break: keep-all; }
.h-title .h2-accent { margin: clamp(10px, 1.6vw, 18px) 0 0; font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 700; font-style: italic; letter-spacing: -.02em; color: var(--h2a);
  font-family: "Nanum Pen Script", "Gaegu", "KoPub Batang", "Apple SD Gothic Neo", cursive, var(--ui); }
.h-title .h2-sub { max-width: 40em; margin: 16px auto 0; font-size: clamp(14.5px, 1.4vw, 16.5px); color: var(--muted); line-height: 1.7; }
.h-title .h2-btns { margin-top: 22px; }
.h-title .h2-photo { position: relative; margin-top: clamp(30px, 4.4vw, 56px); border-radius: var(--radius, 14px) var(--radius, 14px) 0 0; overflow: hidden; }
.h-title .h2-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7.2; object-fit: cover; }
.h2-chip { position: absolute; left: clamp(14px, 2vw, 26px); top: clamp(14px, 2vw, 26px);
  padding: 8px 14px; border-radius: 999px; background: var(--h2b); color: var(--paper);
  font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.h2-badge { position: absolute; right: clamp(14px, 2vw, 26px); top: clamp(14px, 2vw, 26px);
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--ink);
  text-align: left; box-shadow: 0 16px 34px -18px rgba(0,0,0,.5); transform: rotate(3deg); }
.h2-badge b { font-size: 15px; font-weight: 900; color: var(--h2a); }
.h2-badge i { font-style: normal; font-size: 12px; color: var(--muted); }
.h2-hours { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; text-align: center;
  background: rgba(10,10,10,.56); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  backdrop-filter: blur(6px); }

/* ── gallery : 베리트디자인 · 글로이 ──────────────────────── */
.h-gallery { min-height: min(92svh, 760px); display: grid; align-items: end; color: #fff;
  padding-block: calc(var(--topH, 62px) + 40px) clamp(110px, 12vw, 150px); }
.h-gallery .h2-shot::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.62) 0%, rgba(10,10,10,.18) 46%, rgba(10,10,10,.22) 100%); }
.h-gallery:not(.quiet) { align-items: center; text-align: center; }
.h-gallery .h2-en { margin: 0 0 14px; font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(38px, 6.4vw, 78px); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
.h-gallery h1 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.h-gallery.quiet h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.h-gallery .h2-sub { margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.82); max-width: 36em; }
.h-gallery:not(.quiet) .h2-sub { margin-inline: auto; }
.h-gallery .h2-btns { margin-top: 20px; }
.h-gallery .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; border-radius: 999px; }
.h-gallery .btn.fill { background: #fff; border-color: #fff; color: var(--ink); }
.h-gallery .h2-dots { bottom: clamp(72px, 7.5vw, 96px); }
.h-gallery.quiet .h2-dots { justify-content: flex-start; padding-left: var(--edge, 24px); }

/* ── dim : 목요일의 부엌 — 전 판(photo-dim) 그대로 ─────────────────
   사진을 화면 전체에 깔고 어둡게 덮은 뒤 왼쪽에 흰 글을 얹습니다. */
.h-dim { min-height: min(80vh, 660px); display: flex; align-items: center; color: #FFF;
  padding-top: calc(var(--topH, 62px) + clamp(28px, 5vw, 56px)); padding-bottom: clamp(28px, 5vw, 56px); }
.h-dim .shot { position: absolute; inset: 0; z-index: 0; }
.h-dim .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-dim .shot::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,14,12,.82) 0%, rgba(14,14,12,.70) 32%,
    rgba(14,14,12,.44) 58%, rgba(14,14,12,.26) 100%),
    linear-gradient(to top, rgba(14,14,12,.34) 0%, transparent 46%); }
.h-dim > .wrap { width: 100%; }
.h-dim h1, .h-dim .lede, .h-dim .lede b, .h-dim .eyebrow { color: #FFF; }
.h-dim .lede { color: rgba(255,255,255,.86); }
.h-dim .eyebrow { border-left-color: rgba(255,255,255,.6); color: #FFF; }
.h-dim .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.44); color: #FFF;
  backdrop-filter: blur(6px); }
.h-dim .btn.fill { background: #FFF; border-color: #FFF; color: var(--ink); }
.h-dim .stats > div { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.28);
  color: #FFF; backdrop-filter: blur(6px); box-shadow: none; }
.h-dim .stats .k { color: rgba(255,255,255,.75); }
.h-dim.has-qb > .wrap { padding-bottom: clamp(78px, 8.5vw, 102px); }

/* ── overlap : 라온헤어 — 전 판(overlap) 그대로 ───────────────────
   글이 위, 사진이 아래. 사진 위로 현황 카드가 걸쳐 올라옵니다. */
.h-overlap { background: var(--paper); color: var(--ink); padding-block: clamp(30px, 4.6vw, 54px) 0; }
.h-overlap > .wrap + .wrap { margin-top: clamp(26px, 3.8vw, 44px); }
.h-overlap .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius, 14px); display: block; }
.h-overlap .over { position: relative; margin: clamp(-80px, -7vw, -46px) auto 0;
  width: min(100%, 860px); background: var(--card, #fff); border: var(--bd, 1px) solid var(--rule, #e5e5e5);
  border-radius: var(--radius, 14px); padding: clamp(22px, 3.2vw, 34px); box-shadow: var(--shadow, none); }
.h-overlap.has-qb > .wrap:last-of-type { padding-bottom: clamp(78px, 8.5vw, 102px); }

/* 퀵바가 첫 화면 위로 겹쳐 올라옵니다 (PC 최대 46px · 폰 최대 30px).
   사진 위에 글을 얹는 세 원형은 padding-bottom 을 위에서 넉넉히 잡았고,
   title 은 사진이 맨 밑이라 여기서 비웁니다 — 안 비우면 영업시간 띠가 퀵바에 깔립니다.
   `도구/간격확인.py` 가 맨 아랫줄 ↔ 퀵바 틈을 잽니다. */
.h-title.has-qb { padding-bottom: clamp(64px, 7vw, 92px); }
.h-title.has-qb .h2-photo { border-radius: var(--radius, 14px); }

/* 사진 위에 뜬 머리말 — 열두 곳 공통. 손수 만든 견본은 저마다 비슷한 규칙을
   갖고 있지만 생성 견본은 photo-dim 첫 화면에만 있었습니다. 여기 한 벌로 둡니다.
   스크롤하면(.scrolled) 규칙이 풀려 원래 머리말로 돌아갑니다. */
body.photohero:not(.scrolled) .top { background: transparent; border-bottom-color: transparent;
  box-shadow: none; backdrop-filter: none; }
body.photohero:not(.scrolled) .top > .wrap > .logo,
body.photohero:not(.scrolled) .top > .wrap > .logo b { color: #fff; }
body.photohero:not(.scrolled) .top > .wrap > .logo i,
body.photohero:not(.scrolled) .top > .wrap > .logo span:not(.mk) { color: rgba(255,255,255,.78); }
body.photohero:not(.scrolled) .top > .wrap > .logo .mk { background: #fff; color: var(--h2b); }
body.photohero:not(.scrolled) .top > .wrap > .logo svg { filter: drop-shadow(0 1px 7px rgba(0,0,0,.5)); }
@media (min-width: 901px) {
  body.photohero:not(.scrolled) .top .menu > a { color: rgba(255,255,255,.86); }
  body.photohero:not(.scrolled) .top .menu > a:hover,
  body.photohero:not(.scrolled) .top .menu > a[aria-current] { background: rgba(255,255,255,.18); color: #fff; }
  body.photohero:not(.scrolled) .top .top-cta,
  body.photohero:not(.scrolled) .top .me { background: #fff; border-color: #fff; color: var(--h2b); }
  body.photohero:not(.scrolled) .top .me em { color: var(--muted); }
}
@media (max-width: 900px) {
  body.photohero:not(.scrolled):not(.navopen) .navtoggle { border-color: rgba(255,255,255,.55); }
  body.photohero:not(.scrolled):not(.navopen) .navtoggle span { background: #fff; }
}

/* 세로 바로가기는 오른쪽 아래로. 가운데 두면 첫 화면 오른쪽 화살표와 자리를 다툽니다.
   레퍼런스도 전화·카톡·TOP 를 오른쪽 아래에 둡니다. */
.sidedock { top: auto; bottom: 28px; transform: none; }

@media (max-width: 900px) {
  .h-dim .shot::after { background: linear-gradient(to bottom, rgba(14,14,12,.50) 0%, rgba(14,14,12,.66) 100%); }
}
@media (max-width: 760px) {
  .h2-nav { display: none; }
  .h-dim.has-qb > .wrap, .h-overlap.has-qb > .wrap:last-of-type { padding-bottom: clamp(56px, 10vw, 74px); }
  .h-overlap .over { margin-top: -28px; }
  .h-center { min-height: min(88svh, 680px); padding-bottom: 96px; }
  .h-center .h2-pills { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 16px; }
  .h-center .h2-pills span { padding: 10px 6px; }
  .h-center .h2-pills span + span { border-left: 1px solid rgba(255,255,255,.22); }
  .h-left { min-height: min(88svh, 680px); padding-bottom: 92px; }
  .h-left > .wrap { grid-template-columns: minmax(0, 1fr); }
  .h2-card { justify-self: start; width: 100%; }
  .h-title h1 { font-size: clamp(32px, 9.6vw, 44px); }
  .h-title.has-qb { padding-bottom: clamp(48px, 12vw, 64px); }
  .h-title .h2-photo img { aspect-ratio: 4 / 3; }
  .h2-badge { transform: none; padding: 9px 12px; }
  .h2-hours { font-size: 12.5px; }
  .h-gallery { min-height: min(84svh, 620px); padding-bottom: 88px; }
  .h2-dots { bottom: 52px; }
}
/* ══ 첫 화면 · 네 원형 · 끝 ═══════════════════════════════════ */

/* ══ 움직임 ═══════════════════════════════════════════════════
   도구/견본/움직임.py 가 넣습니다. 숨기는 규칙은 html.mv(스크립트가 붙임)가 있어야만 삽니다.
   ══════════════════════════════════════════════════════════ */
html.mv [data-mv] { opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--mv-d, 0ms); }
html.mv [data-mv].in { opacity: 1; transform: none; }
/* 사진 가림막 — 아래에서 위로 걷힙니다. 사진 제 틀 안에서만 움직여 옆으로 넘치지 않습니다 */
html.mv [data-mvi] { clip-path: inset(100% 0 0 0);
  transition: clip-path 1.05s cubic-bezier(.7,0,.2,1); transition-delay: var(--mv-d, 0ms); }
html.mv [data-mvi].in { clip-path: inset(0 0 0 0); }
/* 첫 화면 사진을 위로 120px 늘려 두고 스크롤 따라 내립니다 — 늘려 두지 않으면 위가 빕니다 */
html.mv.mv-px .h2-shot img, html.mv.mv-px .h-dim .shot img { height: calc(100% + 120px); margin-top: -120px; will-change: transform; }
body.is-scrolled .top { box-shadow: 0 10px 28px -22px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) {
  html.mv [data-mv] { opacity: 1; transform: none; transition: none; }
  html.mv [data-mvi] { clip-path: none; transition: none; }
}
/* ══ 움직임 · 끝 ═══════════════════════════════════════════ */

/* ══ 고유 ═══════════════════════════════════════════════════
   도구/견본/고유.py 가 넣습니다. 손대지 마세요.
   ══════════════════════════════════════════════════════════ */
/* ── 온재독서실 — 밤 사진 전면 · 램프 노랑 하나 · 빈자리에 불 (2026-09-28 다시 그림) ── */
:root { --paper: #0E1319; --card: #161D27; --ink: #F2EEE6; --muted: #9AA2AE; --rule: #26303D;
  --brand: #E8B04B; --accent: #E8B04B;
  /* 손으로 만든 원래 CSS 의 이름들 — 밝은 바탕용 값이 남아 있으면 어두운 바탕에서 글자가 묻힙니다
     (대표 지적, 2026-09-24: 메뉴에 마우스를 올리면 밝은 모래색 바탕에 밝은 글자) */
  --sand: #1E2940; --navy: #6F8BC4; }
/* --navy 를 노랑으로 두면 안 됩니다 — 좌석도(rooms)의 「사용 중」 칸이 노래져 빈자리 색과 뒤집힙니다.
   노랑은 빈자리와 강조에만 씁니다. 글자로 쓰인 --navy 자리만 따로 맞춥니다. */
.demo { background: #0A0F18; }
footer.bot .made a, .chip .cv, .ask-said b { color: var(--brand); }
nav.menu a:hover { background: rgba(242,181,68,.14); color: var(--brand); }
nav.menu a[aria-current="page"] { background: rgba(242,181,68,.16); color: var(--brand); }
body { background: var(--paper); color: var(--ink); }
header.top { background: rgba(15,21,34,.94); border-bottom: 1px solid var(--rule); }
header.top a, header.top .logo b { color: var(--ink); }
header.top .logo i { color: var(--muted); }
.navtoggle span { background: var(--ink); }
.btn { border-radius: 999px; border-color: #3A4763; color: var(--ink); background: transparent; }
.btn.fill { background: var(--brand); border-color: var(--brand); color: #1B1406; }
/* 휴대폰 메뉴 서랍의 채운 버튼 — 메뉴 도구는 흰 글자를 칠합니다. 노란 바탕에 흰 글자는 안 읽혀서 본문 버튼과 같은 먹색으로 (2026-09-24) */
.navpanel .navmore .btn.fill, .navpanel .navmore .btn.fill:hover { color: #1B1406; }
footer.bot { background: #0B101A; color: var(--muted); border-top: 1px solid var(--rule); }
footer.bot b, footer.bot a { color: var(--ink); }
main h2, main h3 { color: var(--ink); }
table { color: var(--ink); }
.callbar { background: rgba(15,21,34,.96); border-top: 1px solid var(--rule); }
.rr-eyebrow { font-size: 12px; letter-spacing: .2em; color: var(--brand); margin: 0 0 14px; font-weight: 700; }
.rr-head h2 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 700; letter-spacing: -.05em; line-height: 1.2; margin: 0 0 14px; }
.rr-head p { color: var(--muted); margin: 0 0 16px; max-width: 32em; }
.rr-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.rr-head-row > p { margin: 0; }
.rr-link { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--brand); padding-bottom: 2px; }
.rr-link::after { content: ' →'; color: var(--brand); }
.num { font-variant-numeric: tabular-nums; }

/* 첫 화면 — 밤 책상 사진 전면 · 왼쪽 글 · 오른쪽 좌석도 */
.rr-hero, .rr-desk, .rr-price, .rr-rules, .rr-way { padding: clamp(80px, 10vw, 140px) 0; }
.rr-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(660px, 92vh, 880px); display: flex; align-items: center; padding: 0; }
.rr-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; }
.rr-hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,19,25,.35) 0%, rgba(14,19,25,.7) 45%, rgba(14,19,25,.92) 100%), linear-gradient(0deg, rgba(14,19,25,1), transparent 35%); }
.rr-hero-in { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 110px); }
.rr-status { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 26px; padding: 9px 16px; border-radius: 999px;
  background: rgba(14,19,25,.55); border: 1px solid rgba(232,176,75,.35); font-size: 13.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rr-status b { color: var(--brand); } .rr-status small { color: #C9CDD3; font-size: 13px; }
.rr-lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px 3px rgba(232,176,75,.6); }
.rr-intro h1 { font-size: clamp(40px, 5.8vw, 80px); font-weight: 700; letter-spacing: -.06em; line-height: 1.1; margin: 0 0 26px; color: #fff; }
.rr-intro h1 em { font-style: normal; color: var(--brand); }
.rr-chips { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rr-chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #E4E6EA; }
.rr-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rr-map { margin: 0; background: rgba(14,19,25,.62); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; padding: clamp(20px, 2.6vw, 30px);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.rr-map-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.rr-map-h b { font-size: 18px; color: #fff; } .rr-map-h span { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.rr-map i { display: block; border-radius: 5px; background: #222B37; border: 1px solid #2E3947; }
.rr-map i.on { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 14px 2px rgba(232,176,75,.55); }
@media (prefers-reduced-motion: no-preference) { .rr-room i.on { animation: rr-glow 3.2s ease-in-out infinite; } }
@keyframes rr-glow { 50% { box-shadow: 0 0 4px 0 rgba(232,176,75,.25); opacity: .82; } }
.rr-map-h i { width: 12px; height: 12px; }
.rr-room { background: rgba(255,255,255,.03); border: 1px solid #26303D; border-radius: 16px; padding: 12px 12px 14px; }
.rr-room p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.rr-seats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.rr-seats i { aspect-ratio: 1.3; }
.rr-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; margin-top: 10px; }
.rr-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .rr-cells i { aspect-ratio: 1; }
.rr-cells.two { grid-template-columns: repeat(2, 1fr); } .rr-cells.two i { aspect-ratio: 1.5; }
.rr-map figcaption { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--muted); }
.rr-map figcaption span:first-child { color: #C9CDD3; }

/* 자리 생김새 */
.rr-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rr-kinds li { display: flex; flex-direction: column; gap: 6px; }
.rr-kinds figure { margin: 0 0 12px; border-radius: 22px; overflow: hidden; }
.rr-kinds img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rr-kinds b { font-size: 19px; color: #fff; } .rr-kinds span { font-size: 14px; color: var(--muted); }
.rr-kinds p { margin: 6px 0 0; color: var(--brand); font-weight: 700; }

/* 요금 — 기간 카드 다섯 */
.rr-price { background: #121820; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rr-seg { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); }
.rr-seg button { font: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: 999px; padding: 9px 22px; background: transparent; color: var(--muted); cursor: pointer; }
.rr-seg button.on { background: var(--brand); color: #1B1406; }
.rr-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rr-cards li { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 26px 20px 22px; display: flex; flex-direction: column; }
.rr-cards li.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 30px 60px -40px rgba(232,176,75,.6); }
.rr-cards em { position: absolute; top: -11px; left: 18px; font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--brand); color: #1B1406; padding: 3px 10px; border-radius: 999px; }
.rr-k { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--muted); }
.rr-won { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.05em; color: #fff; line-height: 1; }
.rr-won small { font-size: 14px; font-weight: 600; margin-left: 2px; }
.rr-day { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.rr-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 30px; align-items: start; }
.rr-foot > p { margin: 0; color: var(--muted); }
.rr-plus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.rr-plus li { font-size: 14px; color: var(--muted); } .rr-plus b { color: var(--ink); margin-right: 6px; }

/* 규칙 */
.rr-rules-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.rr-rule-list { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rr-rule-list li { counter-increment: r; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 18px 18px 58px; position: relative; font-size: 15px; }
.rr-rule-list li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 18px; top: 18px; font-weight: 800; color: var(--brand); font-size: 14px; }

/* 오시는 길 */
.rr-way { background: #121820; border-top: 1px solid var(--rule); }
.rr-way h2 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 700; letter-spacing: -.05em; margin: 0 0 14px; }
.rr-way p { color: var(--muted); margin: 0 0 18px; }
.rr-way-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rr-open { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: 6px 26px; }
.rr-open > div { display: grid; grid-template-columns: 130px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rr-open > div:last-child { border-bottom: 0; }
.rr-open dt { font-weight: 700; color: var(--brand); } .rr-open dd { margin: 0; }

@media (max-width: 1000px) { .rr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .rr-hero-in, .rr-rules-in, .rr-way-in, .rr-foot { grid-template-columns: minmax(0, 1fr); }
  .rr-hero::after { background: linear-gradient(0deg, rgba(14,19,25,.98) 30%, rgba(14,19,25,.55) 100%); }
  .rr-kinds { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .rr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-rule-list, .rr-plus { grid-template-columns: minmax(0, 1fr); }
  .rr-seats { gap: 4px; } .rr-open > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}


/* ── 독서실 하위 화면 — 밤 톤을 끝까지 ── */
.own-sub main > section:first-of-type { padding-top: clamp(44px, 7vw, 96px); background: radial-gradient(800px 400px at 80% 0%, rgba(242,181,68,.10), transparent 60%); }
.own-sub main > section:first-of-type h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 300; letter-spacing: -.035em; }
.own-sub .eyebrow { color: var(--brand); letter-spacing: .12em; }
.own-sub .lede, .own-sub p { color: var(--muted); }
.own-sub b, .own-sub strong, .own-sub h3 { color: var(--ink); }
.own-sub table th, .own-sub table td { border-color: var(--rule); }
.own-sub thead th { background: var(--card); color: var(--muted); }
.own-sub tbody tr { background: transparent; }
.own-sub .card, .own-sub .note, .own-sub .box, .own-sub .chip { background: var(--card); border-color: var(--rule); color: var(--ink); }
.own-sub form.ask { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(18px, 3vw, 30px); }
.own-sub form.ask input, .own-sub form.ask textarea, .own-sub form.ask select { background: #0F1522; color: var(--ink); border-color: #33405C; border-radius: 10px; }
.own-sub form.ask label { color: var(--ink); }
.own-sub .tint, .own-sub section.alt { background: #131B2B; }
/* 좌석도 · 약도 — 그림이 색을 태그 속성으로 박아 둬서 밝은 판이 남았습니다. 색마다 밤 톤으로 다시 입힙니다.
   빈자리는 첫 화면과 같이 노란 불입니다(원래는 흰 칸에 초록 테두리 — 첫 화면과 약속이 달랐습니다). */
.own-sub main svg [fill="#FFFFFF"] { fill: #131B2B; }
.own-sub main svg [fill="#EEF3FB"], .own-sub main svg [fill="#FAF1E6"], .own-sub main svg [fill="#E9F4ED"], .own-sub main svg [fill="#F4F1EA"] { fill: #1A2336; }
.own-sub main svg [fill="#F2EDE2"] { fill: #1E2940; }
.own-sub main svg [fill="#C9D3E6"] { fill: #2A3550; }
.own-sub main svg [fill="#2C3B5A"] { fill: #3A4866; }
.own-sub main svg [fill="#221F1A"] { fill: #E9ECF3; }
.own-sub main svg [fill="#6E6960"] { fill: #8E97AB; }
.own-sub main svg [stroke="#221F1A"] { stroke: #8E97AB; }
.own-sub main svg [stroke="#E4DECF"], .own-sub main svg [stroke="#F2EDE2"], .own-sub main svg [stroke="#FFFFFF"] { stroke: #263149; }
.own-sub main svg [fill="#2F7A55"] { fill: #F2B544; }
.own-sub main svg [stroke="#2F7A55"] { stroke: #F2B544; fill: #F2B544; }
.own-sub .figure { background: var(--card); border-color: var(--rule); }
.own-sub .legend i[style*="#2C3B5A"] { background: #3A4866 !important; }
.own-sub .legend i[style*="#2F7A55"] { background: #F2B544 !important; border-color: #F2B544 !important; box-shadow: 0 0 8px rgba(242,181,68,.6); }
.own-sub .legend i[style*="#EEF3FB"], .own-sub .legend i[style*="#FAF1E6"], .own-sub .legend i[style*="#E9F4ED"] { background: #1A2336 !important; border-color: #33405C !important; }
.own-sub .legend { color: var(--muted); }
.board-legend i.free, .seats .s.free { background: #F2B544; border-color: #F2B544; }
/* ══ 고유 · 끝 ═══════════════════════════════════════════════ */
