@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 견본
   실제로 있는 병원이 아닙니다. 진료도 보지 않습니다.

   이 견본은 의료광고 심의 기준을 지키면서 만들었습니다.
   효과·우수성을 내세우는 표현, 치료 후기, 치료 전후 사진을 넣지
   않았습니다. 대신 의료법이 요구하는 비급여 진료비용 고지를
   제 페이지로 뺐습니다. 병원 홈페이지에서 제일 자주 빠지는 것이
   그것이기 때문입니다.

   앞의 두 견본(온재독서실·세움수학학원)과 일부러 다르게 생겼습니다.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper:  #FAFCFC;
  --card:   #FFFFFF;
  --mist:   #EDF3F4;
  --ink:    #131E22;
  --muted:  #62737A;
  --rule:   #DCE6E7;
  --brand:  #1D6070;
  --warm:   #B07C33;
  --ok:     #2E7D63;

  --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.8;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.34; font-weight: 700; }
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(--ink); color: #DCE7E9; font-size: 13px; line-height: 1.65; padding: 10px 0; }
.demo .wrap { display: flex; align-items: flex-start; gap: 8px 14px; flex-wrap: wrap; }
.demo b { color: #FFF; font-weight: 700; }
.demo p + p { font-size: 12.5px; color: #A9BCC0; }
.demo a {
  margin-left: auto; color: #FFF; text-decoration: none; align-self: center;
  border: 1px solid rgba(255,255,255,.4); 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) 92%, transparent);
  backdrop-filter: saturate(1.3) blur(9px); border-bottom: 1px solid var(--rule);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding-block: 8px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
/* 로고 글줄 — 상호와 아랫줄이 벌어지지 않게 (온재독서실 기준) */
.logo > span { display: grid; line-height: 1.2; }
.logo b { font-size: 17px; font-weight: 700; letter-spacing: -.035em; display: block; }
.logo i { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 500; }

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(--mist); color: var(--ink); }
nav.menu a[aria-current="page"] { color: var(--brand); background: var(--mist); }

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

.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .15em; color: var(--brand); margin-bottom: 9px; }
.lede { font-size: 16.5px; color: var(--muted); max-width: 42em; margin-top: 12px; }
.lede b { color: var(--ink); font-weight: 600; }
h2 { font-size: clamp(22px, 4.2vw, 28px); }
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: 600; padding: 12px 20px;
       border-radius: 8px; text-decoration: none; border: 1.5px solid var(--rule);
       background: var(--card); color: var(--ink); }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.fill { background: var(--brand); border-color: var(--brand); color: #FFF; }
.btn.fill:hover { opacity: .9; color: #FFF; }
.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; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }

/* ── 첫 화면 : 좌 글 · 우 인체 그림 ───────────────────────── */
.hero { padding-block: clamp(28px, 5vw, 48px) clamp(26px, 5vw, 42px); }
.hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(26px, 4vw, 46px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }
.hero h1 { font-size: clamp(27px, 5.6vw, 40px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brand); }

.open-now {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--ok) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--rule));
  color: var(--ok); border-radius: 999px; padding: 6px 15px 6px 12px;
  font-size: 14px; font-weight: 700;
}
.open-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) 16%, transparent); }
.open-now small { font-weight: 500; color: var(--muted); font-size: 12.5px; }

.hours-line {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-top: 24px;
  border: 1px solid var(--rule); border-radius: 11px; background: var(--card); padding: 16px 18px;
  font-size: 14.5px;
}
.hours-line dt { color: var(--muted); font-weight: 600; white-space: nowrap; margin: 0; }
.hours-line dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours-line dd b { font-weight: 700; }

.bodymap { background: var(--card); border: 1px solid var(--rule); border-radius: 16px;
           padding: 18px 16px 12px; width: 100%; max-width: 430px; margin-inline: auto; }
.bodymap .cap { font-size: 14.5px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.bodymap .sub { font-size: 12.5px; color: var(--muted); text-align: center; margin-bottom: 6px; }
.bodymap svg { display: block; width: 100%; height: auto; }
.bodymap svg text { font-family: var(--ui); }

/* ── 부위 타일 ────────────────────────────────────────────── */
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 9px; margin-top: 22px; }
.part { background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
        padding: 14px 16px; text-decoration: none; display: grid; gap: 2px; }
.part:hover { border-color: var(--brand); }
.part b { font-size: 15.5px; font-weight: 700; }
.part span { font-size: 13px; color: var(--muted); }

/* ── 진료 항목 ────────────────────────────────────────────── */
.care { display: grid; gap: 12px; margin-top: 24px; }
.care-item { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px; }
.care-item h3 { font-size: 18px; }
.care-item .when { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--brand); margin-bottom: 6px; }
.care-item ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.care-item li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14.5px; color: var(--muted); }
.care-item li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
                        margin-top: 10px; justify-self: center; }
.care-item .test { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--rule);
                   font-size: 14px; color: var(--muted); }
.care-item .test b { color: var(--ink); font-weight: 600; }

/* ── 표 ───────────────────────────────────────────────────── */
.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 13px; 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(--mist); }
td.r, th.r { text-align: right; }
tbody tr:last-child td { border-bottom: none; }
.table-scroll table { min-width: 520px; }
tbody th { font-size: 13px; font-weight: 700; background: var(--mist); white-space: nowrap; }

.notice {
  margin-top: 20px; padding: 15px 17px; border-radius: 10px; font-size: 14px; line-height: 1.75;
  background: var(--mist); color: var(--muted); border-left: 3px solid var(--warm);
}
.notice b { color: var(--ink); font-weight: 600; }

/* ── 의료진 ───────────────────────────────────────────────── */
.who-card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 24px; }
.who-card .role { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--brand); }
.who-card h3 { margin: 5px 0 3px; font-size: 20px; }
.who-card .yrs { font-size: 13.5px; color: var(--muted); }
.who-card ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.who-card li { font-size: 14.5px; color: var(--muted); padding-left: 14px; position: relative; }
.who-card li::before { content: ""; position: absolute; left: 0; top: 12px;
                       width: 5px; height: 5px; border-radius: 50%; background: var(--rule); }

/* ── 목록 ─────────────────────────────────────────────────── */
.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: 700;
                    color: var(--brand); font-variant-numeric: tabular-nums; padding-top: 5px; }
.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 svg text { font-family: var(--ui); }
.figure figcaption { font-size: 13px; color: var(--muted); padding: 12px 6px 2px; }

/* ── 예약 폼 ──────────────────────────────────────────────── */
form.ask { display: grid; gap: 14px; margin-top: 22px; max-width: 640px; }
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: 8px; padding: 11px 13px; width: 100%;
}
form.ask input:focus, form.ask select:focus, form.ask textarea:focus { outline: none; border-color: var(--brand); }
/* 고르는 칸의 화살표 — 브라우저 기본 화살표는 오른쪽 끝에 딱 붙습니다. 직접 그려 안쪽 여백만큼 띄웁니다. */
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: 78px; }
form.ask .agree { display: flex; gap: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
form.ask .agree input { width: 17px; height: 17px; flex: none; margin-top: 4px; accent-color: var(--brand); }
form.ask .agree b { color: var(--ink); }
.ask-said { margin-top: 14px; padding: 14px 16px; border-radius: 9px; font-size: 14.5px;
            background: color-mix(in srgb, var(--brand) 6%, var(--card));
            border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--rule)); }
.ask-said b { color: var(--brand); }

/* ── 다음 페이지 ──────────────────────────────────────────── */
.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: 10px; padding: 15px 17px; display: grid; gap: 2px; }
.next-links a:hover { border-color: var(--brand); }
.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(--mist);
             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(--brand); font-weight: 600; }
footer.bot .warn { margin-top: 10px; color: var(--ink); 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) 93%, 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)); }
}

/* 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 가 넣습니다. 손대지 마세요.
   ══════════════════════════════════════════════════════════ */
@font-face { font-family: 'Gowun Batang'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/gowunbatang-400.woff2') format('woff2'); }
@font-face { font-family: 'Gowun Batang'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/gowunbatang-700.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/fonts/cormorant.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('/fonts/cormorant-italic.woff2') format('woff2'); }

/* ── 한들정형외과의원 두 번째 판 — 종이 · 먹 · 딥 틸 · 테라코타 한 점 · 명조 · 1px 선 (2026-09-28) ── */
:root { --paper: #F6F3EE; --card: #FFFFFF; --mist: #EEE9E1; --ink: #1E2A2D; --muted: #5F6A6C;
  --rule: #DDD6CB; --brand: #2E4B47; --ok: #3E8A6B; --warm: #C0643F; --sand: #E6DED2;
  --hfont: 'Gowun Batang', serif; --latin: 'Cormorant Garamond', 'Gowun Batang', serif; }
body { background: var(--paper); color: var(--ink); }
.num { font-variant-numeric: tabular-nums lining-nums; }
header.top { background: rgba(246,243,238,.94); border-bottom: 1px solid var(--rule); box-shadow: none; }
.logo svg rect { fill: var(--brand); }
.btn { border-radius: 2px; font-weight: 600; letter-spacing: .02em; }
.btn.fill { background: var(--brand); border-color: var(--brand); color: #fff; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #A9B0AF; flex: none; }
.navnow[data-state="off"] .dot, .navnow[data-state="last"] .dot { background: #A3B1B6; }
.navnow[data-state="lunch"] .dot, .navnow[data-state="soon"] .dot { background: var(--warm); }
main h1, main h2 { font-family: var(--hfont); font-weight: 400; letter-spacing: -.02em; }
main h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.3; margin: 0 0 18px; }
.cl-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--muted); margin: 0 0 18px; }
.cl-latin { font-family: var(--latin); font-style: italic; font-size: 19px; margin: 0 0 18px; letter-spacing: .02em; }
.cl-latin span { color: var(--warm); padding: 0 .2em; }
.cl-lede { color: var(--muted); max-width: 32em; }
.cl-link { display: inline-block; margin-top: 22px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-size: 14.5px; }
.cl-link::after { content: ' →'; }
.cl-fine { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }
.cl-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.cl-head-row .cl-lede { margin: 0; font-size: 14.5px; }

/* 첫 화면 — 사진 전면, 왼쪽 아래 명조 두 줄, 오른쪽 아래 가는 선 세 칸 */
.cl-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(640px, 90vh, 900px); display: flex; align-items: flex-end; padding: 0 !important; color: #fff; }
.cl-bgwrap { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cl-bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
@media (prefers-reduced-motion: no-preference) { .cl-bg { animation: cl-settle 1.8s cubic-bezier(.2,.7,.2,1) both; } }
@keyframes cl-settle { from { transform: scale(1.07); } }
.cl-hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(20,30,32,.78) 0%, rgba(20,30,32,.35) 38%, rgba(20,30,32,0) 62%), linear-gradient(90deg, rgba(20,30,32,.45), rgba(20,30,32,0) 55%); }
.cl-hero-in { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-top: 140px; padding-bottom: clamp(40px, 5vw, 64px); }
.cl-intro h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.18; margin: 0 0 30px; color: #fff; }
.cl-intro h1 span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .cl-intro h1 span { animation: cl-rise .9s cubic-bezier(.2,.7,.2,1) both; } .cl-intro h1 span + span { animation-delay: .12s; }
  .cl-latin, .cl-btns { animation: cl-rise .9s .25s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes cl-rise { from { opacity: 0; transform: translateY(22px); } }
.cl-btns { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cl-hero .btn.fill { background: #fff; border-color: #fff; color: var(--ink); padding-left: 28px; padding-right: 28px; }
.cl-tel { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 2px; font-size: 15px; } .cl-tel b { font-weight: 600; }
.cl-now { margin: 0; display: grid; grid-template-columns: repeat(3, auto); border-top: 1px solid rgba(255,255,255,.5); }
.cl-now > div { padding: 16px 22px 4px; border-left: 1px solid rgba(255,255,255,.28); }
.cl-now > div:first-child { border-left: 0; padding-left: 0; }
.cl-now dt { font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.72); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.cl-now dt b { font-size: 16px; letter-spacing: 0; color: #fff; font-weight: 600; }
.cl-now dd { margin: 0; font-size: 18px; } .cl-now dd small { font-size: 13px; color: rgba(255,255,255,.75); }
.cl-now[data-state="open"] .dot { background: #6FD3A4; box-shadow: 0 0 0 4px rgba(111,211,164,.22); }
.cl-now[data-state="lunch"] .dot, .cl-now[data-state="soon"] .dot { background: #F0A77F; }

.cl-say, .cl-parts, .cl-fee, .cl-doc, .cl-inside, .cl-visit { padding: clamp(96px, 11vw, 160px) 0; }
/* 선언 한 단락 + 숫자 넷 */
.cl-manifesto { font-family: var(--hfont); font-size: clamp(24px, 3vw, 40px); line-height: 1.6; letter-spacing: -.02em; margin: 0; max-width: 26em; }
.cl-manifesto em { font-style: normal; color: var(--warm); }
.cl-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--ink); }
.cl-nums > div { padding: 18px 20px 0; border-left: 1px solid var(--rule); } .cl-nums > div:first-child { border-left: 0; padding-left: 0; }
.cl-nums dt { font-size: 12.5px; color: var(--muted); }
.cl-nums dd { margin: 8px 0 0; font-family: var(--latin); font-size: clamp(40px, 4.4vw, 60px); line-height: 1; font-weight: 500; }
.cl-nums dd small { font-family: var(--hfont); font-size: 15px; margin-left: 4px; }
.cl-nums dd:not(.num) { font-family: var(--hfont); font-size: clamp(20px, 2vw, 26px); line-height: 1.3; padding-top: 12px; }

/* 진료 부위 — 번호 목록 · 오른쪽 사진이 바뀝니다 */
.cl-parts { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cl-parts-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cl-plist { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.cl-plist button { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 18px 4px; font: inherit; text-align: left;
  border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; transition: padding .3s, color .3s; }
.cl-plist span { font-size: 12px; color: var(--muted); }
.cl-plist b { font-family: var(--hfont); font-weight: 400; font-size: 22px; }
.cl-plist em { font-family: var(--latin); font-style: italic; font-size: 17px; color: var(--muted); }
.cl-plist button:hover { padding-left: 12px; }
.cl-plist button.on { color: var(--brand); padding-left: 12px; } .cl-plist button.on em { color: var(--warm); }
.cl-plist button.on span::before { content: '●'; color: var(--warm); font-size: 8px; vertical-align: 2px; margin-right: 6px; }
.cl-pview { margin: 0; position: sticky; top: calc(var(--topH, 62px) + 32px); }
.cl-pimg { overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.cl-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) { .cl-pimg.in img { animation: cl-swap .9s cubic-bezier(.2,.7,.2,1) both; } }
@keyframes cl-swap { from { clip-path: inset(0 0 100% 0); transform: scale(1.08); } to { clip-path: inset(0); transform: scale(1); } }
.cl-pview figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 20px; padding: 22px 0 0; }
.cl-pview figcaption em { font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--warm); grid-column: 1 / -1; }
.cl-pview figcaption b { font-family: var(--hfont); font-weight: 400; font-size: clamp(28px, 3vw, 40px); }
.cl-pview figcaption span { grid-column: 1 / -1; font-size: 17px; color: var(--muted); }
.cl-pview .cl-link { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }

/* 비급여 */
.cl-fee-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cl-feeimg { margin: 0 0 40px; } .cl-feeimg img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cl-table { width: 100%; min-width: 0; border-collapse: collapse; border-top: 1px solid var(--ink); }
.cl-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--rule); background: transparent; }
.cl-table td, .cl-table tbody th { padding: 20px 8px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.cl-table tbody th { font-weight: 600; font-size: 16.5px; }
.cl-table td { color: var(--muted); font-size: 14.5px; }
.cl-table .r { text-align: right; }
.cl-table td.r { color: var(--ink); font-size: 24px; font-weight: 500; white-space: nowrap; letter-spacing: -.02em; } .cl-table td.r small { font-size: 14px; margin-left: 2px; }

/* 원장 */
.cl-doc { background: var(--mist); }
.cl-doc-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cl-doc figure { margin: 0; } .cl-doc img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; display: block; filter: grayscale(.35) contrast(.98); }
.cl-role { margin: 0 0 28px; color: var(--muted); }
.cl-checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cl-checks li { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.cl-checks span { font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--warm); }

/* 병원 안 */
.cl-photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; align-items: end; }
.cl-photos figure { margin: 0; } .cl-photos img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.cl-photos figure:first-child img { aspect-ratio: 4 / 3.6; }
.cl-photos figcaption { font-size: 12.5px; color: var(--muted); padding-top: 10px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }

/* 진료시간 · 오시는 길 */
.cl-visit { background: var(--card); border-top: 1px solid var(--rule); }
.cl-visit-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cl-hours td, .cl-hours tbody th { padding: 15px 8px; font-size: 15px; }
.cl-hours td { color: var(--ink); white-space: nowrap; } .cl-hours td:last-child { color: var(--muted); }
.cl-hours tr.off td, .cl-hours tr.off th { color: #A3A8A7; }
.cl-hours tr.today th, .cl-hours tr.today td { background: var(--paper); }
.cl-hours tr.today th::after { content: '오늘'; font-size: 11px; font-weight: 700; color: #fff; background: var(--warm); padding: 2px 7px; margin-left: 8px; vertical-align: 1px; }
.cl-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cl-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid var(--rule); }
.cl-steps span { font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--warm); grid-row: span 2; }
.cl-steps b { font-weight: 600; } .cl-steps p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.cl-facts { margin: 22px 0 0; }
.cl-facts div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 10px; padding: 8px 0; font-size: 14.5px; }
.cl-facts dt { color: var(--muted); } .cl-facts dd { margin: 0; }

@media (max-width: 900px) {
  .cl-hero-in { grid-template-columns: minmax(0, 1fr); }
  .cl-now { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-parts-in, .cl-fee-in, .cl-doc-in, .cl-visit-in { grid-template-columns: minmax(0, 1fr); }
  .cl-pview { position: static; }
  .cl-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cl-nums > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .cl-nums > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
  .cl-doc figure { max-width: 420px; }
  .cl-photos { grid-template-columns: 1fr 1fr; } .cl-photos figure:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .cl-now { grid-template-columns: minmax(0, 1fr); } .cl-now > div { border-left: 0; padding: 12px 0 0; }
  .cl-now > div + div { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255,255,255,.2); padding-bottom: 10px; }
  .cl-now dd { font-size: 16px; }
  .cl-hours thead th:nth-child(3), .cl-hours td:nth-child(3) { display: none; } .cl-hours td, .cl-hours tbody th { padding: 13px 5px; font-size: 14px; }
  .cl-table td.r { font-size: 19px; } .cl-table tbody th { white-space: normal; font-size: 15px; }
  .cl-plist b { font-size: 19px; }
}


/* ── 병원 하위 화면 — 종이 바탕 · 명조 제목 · 1px 선 ── */
.own-sub main > section:first-of-type { background: var(--mist); padding-top: clamp(48px, 7vw, 96px); }
.own-sub main > section:first-of-type h2, .own-sub main h1, .own-sub main h2 { font-family: var(--hfont); font-weight: 400; letter-spacing: -.02em; }
.own-sub main > section:first-of-type h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.25; }
.own-sub .eyebrow { color: var(--muted); font-weight: 600; letter-spacing: .16em; }
.own-sub table { border-radius: 0; border-top: 1px solid var(--ink); }
.own-sub .card, .own-sub .note, .own-sub .box { border-radius: 0; box-shadow: none; }
.own-sub .btn { border-radius: 2px; }
.own-sub form.ask { background: var(--card); border: 1px solid var(--rule); border-radius: 0; padding: clamp(20px, 3vw, 36px); }
.own-sub form.ask input, .own-sub form.ask textarea, .own-sub form.ask select { border-radius: 0; }
/* ══ 고유 · 끝 ═══════════════════════════════════════════════ */
