/* 올림한의원 — 정돈된 대형 병원의 정보 구조에 젠(禪)의 재료감: 흰 바탕, 깊은 솔잎 녹색, 돌·한지·나무 색, 가는 선, 촘촘한 간격 */
:root {
  --bg: #FFFFFF;
  --paper: #F6F5F0;
  --stone: #ECEAE2;
  --sage: #E6ECE3;
  --ink: #1B2620;
  --muted: #5B645D;
  --line: #E2E4DD;
  --green: #2E5A45;
  --green-deep: #1F4333;
  --on-green: #FFFFFF;
  --sage-mid: #7E9A84;
  --wood: #A6895B;
  --ph-line: #B9BFB2;
  --sans: "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", "Noto Serif CJK KR", serif;
  --wrap: 1200px;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111612; --paper: #161C17; --stone: #1D241E; --sage: #1C2A21;
    --ink: #E9ECE6; --muted: #AAB3AB; --line: #2C352E;
    --green: #8FC1A5; --green-deep: #A9D3BC; --on-green: #0E1A13;
    --sage-mid: #7FA08A; --wood: #CDB17F; --ph-line: #3F4A41; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111612; --paper: #161C17; --stone: #1D241E; --sage: #1C2A21;
  --ink: #E9ECE6; --muted: #AAB3AB; --line: #2C352E;
  --green: #8FC1A5; --green-deep: #A9D3BC; --on-green: #0E1A13;
  --sage-mid: #7FA08A; --wood: #CDB17F; --ph-line: #3F4A41; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75; letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.4; margin: 0; text-wrap: balance; color: var(--ink); letter-spacing: -.025em; }
h3 { font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
b, strong { font-weight: 600; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 100; background: var(--bg); padding: 10px 16px; border-radius: var(--r); }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 64px; }
.section.tint, .section.deep { background: var(--paper); }
.section.tight { padding-block: 40px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--green); }
.eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--sage-mid); box-shadow: inset 0 0 0 3px var(--bg); background: var(--sage-mid); flex: none; }
.eyebrow .en { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; order: 2; }
.lead { font-size: 16.5px; color: var(--muted); max-width: 42em; }
.head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.head.center { align-items: center; text-align: center; }
.head.center .lead { margin-inline: auto; }
.note { font-size: 14px; color: var(--muted); }
.hanja { font-family: var(--serif); color: var(--wood); letter-spacing: .2em; font-size: 13px; }
.phone { font-weight: 700; letter-spacing: .01em; user-select: all; }
.orn { display: none; }

/* 머리 — 정보 줄 + 메뉴 줄 */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.utility { background: var(--green-deep); color: #E5EEE8; font-size: 12.5px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.utility p { display: flex; gap: 16px; align-items: center; }
.utility a { color: #FFFFFF; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #FFFFFF; }
.u-phone { font-weight: 700; color: #FFFFFF; }
.main-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand .logo-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-dark { display: none; } :root:not([data-theme="light"]) .brand .logo-light { display: block; } }
:root[data-theme="dark"] .brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: block; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav .drop > button {
  font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: 10px 18px; cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px; position: relative; border-radius: var(--r);
}
.nav > a:not(.btn):hover, .nav .drop > button:hover { color: var(--green); background: var(--sage); }
.nav > a[aria-current="page"], .nav .drop > button[aria-current="page"] { color: var(--green); }
.drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r); padding: 6px; display: none; flex-direction: column;
  box-shadow: 0 12px 28px rgba(20, 35, 26, .10);
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu, .drop.open .drop-menu { display: flex; }
.drop-menu a { padding: 10px 14px; border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.drop-menu a:hover, .drop-menu a[aria-current="page"] { background: var(--sage); color: var(--green); }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 0 20px; }
.menu-toggle { display: none; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--r); font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--green); cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn.primary { background: var(--green); color: var(--on-green); }
.btn.primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-green); }
.btn.ghost, .btn.light, .btn.outline-light { background: var(--bg); color: var(--green); }
.btn.ghost:hover, .btn.light:hover, .btn.outline-light:hover { background: var(--sage); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* 첫 화면 — 소개 + 예약 카드 */
.main-top { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.main-top::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid var(--line); box-shadow: 0 0 0 40px var(--paper), 0 0 0 41px var(--line), 0 0 0 80px var(--paper), 0 0 0 81px var(--line);
  pointer-events: none; opacity: .8;
}
.main-top .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 40px; padding-block: 48px; align-items: center; }
.mt-intro { display: flex; flex-direction: column; gap: 14px; }
.mt-intro h1 { font-size: clamp(26px, 3.4vw, 38px); }
.mt-intro .lead { font-size: 17px; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.quick a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: var(--r);
  background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.quick a:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.quick svg { width: 26px; height: 26px; color: var(--green); stroke-width: 1.8; }
@media (prefers-reduced-motion: reduce) { .quick a:hover { transform: none; } }
.reserve-card { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 0; box-shadow: 0 14px 34px rgba(20, 35, 26, .07); }
.rc-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; }
.rc-head h2 { font-size: 20px; }
.rc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.rc-row h3 { font-size: 17px; }
.rc-row p:not(.rc-label) { font-size: 14px; color: var(--muted); line-height: 1.65; }
.rc-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rc-row.featured h3 { color: var(--green); }
.rc-row.featured { background: var(--sage); margin-inline: -26px; padding-inline: 26px; }
.rc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.rc-actions .btn:first-child { grid-column: span 2; }

/* 첩약 띠 */
.insure-strip-wrap { padding-bottom: 56px; }
.band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; border-radius: var(--r);
  background: var(--sage); color: var(--ink); border: 1px solid var(--line); padding: 20px 26px;
}
.band svg { flex: none; color: var(--green); width: 34px; height: 34px; }
.band h2 { font-size: 18px; }
.band p { font-size: 14px; color: var(--muted); }
.band > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.band .btn { min-height: 42px; background: var(--bg); color: var(--green); }

/* 그리드와 카드 */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.section.tint .card, .section.deep .card { background: var(--bg); }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; }
.clinic-card { padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); }
.clinic-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.clinic-card:hover h3 { color: var(--green); }
.icon-card { align-items: flex-start; }
.icon-ring { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--green); background: var(--sage); }
.icon-ring svg { width: 26px; height: 26px; stroke-width: 1.7; }
.icon-card .name { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.step-no { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--sage-mid); }

/* 사진과 빈자리 */
.ph {
  margin: 0; border: 1px dashed var(--ph-line); background: var(--stone); border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; padding: 16px; color: var(--muted); aspect-ratio: 4 / 3; max-width: 100%;
}
.ph b { font-size: 16px; font-weight: 700; color: var(--green); }
.ph small { font-size: 12.5px; line-height: 1.5; max-width: 24em; }
.ph.wide { aspect-ratio: 16 / 10; }
.ph.hero-ph { aspect-ratio: 4 / 3; }
.ph.banner { aspect-ratio: 21 / 9; }
.ph.square { aspect-ratio: 1 / 1; }
.ph.tall { aspect-ratio: 3 / 4; }
.ph.flat { aspect-ratio: 4 / 3; border-radius: 0; border-width: 0 0 1px; }
.ph.photo { padding: 0; border: 0; overflow: hidden; display: block; }
.ph.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { .ph.photo img { transition: none; } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery .ph:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* 목록 */
.checks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); border: 1.5px solid var(--sage-mid); }

/* 하위 페이지 머리 — 얇은 제목 띠 */
.page-banner { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-banner::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid var(--line); box-shadow: 0 0 0 30px var(--paper), 0 0 0 31px var(--line); pointer-events: none;
}
.page-banner .wrap { position: relative; z-index: 1; padding-block: 36px 32px; display: flex; flex-direction: column; gap: 8px; }
.page-banner h1 { font-size: clamp(24px, 3vw, 32px); }
.page-intro { padding-block: 40px; }
.page-intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.page-intro .wrap.solo { grid-template-columns: minmax(0, 1fr); }
.page-intro .lead { color: var(--ink); }
.keyline { font-family: var(--serif); font-size: 17px; line-height: 1.8; color: var(--green); background: var(--sage); border-left: 3px solid var(--sage-mid); padding: 12px 18px; border-radius: 0 var(--r) var(--r) 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; }
.subnav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; background: var(--bg); }
.subnav a:hover { border-color: var(--green); color: var(--green); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.split.media-right { align-items: center; }
.part-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.part-title .tag { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--on-green); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.part-title h2 { font-size: clamp(22px, 2.6vw, 28px); }

.steps { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.step .no { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); color: var(--green); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--sage); color: var(--green); font-weight: 600; }

/* 의료진 — 가로 카드 */
.doctor { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; }
.doctor .ph, #doctors .doctor .ph { aspect-ratio: 3 / 4; padding: 8px; }
.doctor .ph.photo { padding: 0; }
.doctor .ph b { font-size: 13px; }
.doctor .ph small { font-size: 11px; }
.doctor h3 { font-size: 20px; }
.doctor .role { font-size: 12.5px; font-weight: 700; color: var(--green); letter-spacing: .04em; }
.doctor .days { display: inline-block; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--sage); color: var(--green); font-weight: 600; }
.doctor .stack { gap: 4px !important; }
.doctor p { font-size: 14px; }
details { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--green); min-height: 40px; display: flex; align-items: center; }
details ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
details li b { color: var(--ink); margin-right: 6px; }

/* 표 */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.wrap-cell { white-space: normal; min-width: 200px; }
thead th { background: var(--sage); font-weight: 600; color: var(--green-deep); font-size: 13.5px; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 600; }
td.num, th.num { text-align: right; }
.fee-group { display: flex; flex-direction: column; gap: 12px; }
.fee-group h2 { font-size: 19px; }

.reserve-note { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--r); background: var(--sage); }
.reserve-note strong { font-size: 16px; }

.cta { background: var(--green-deep); color: #FFFFFF; border-radius: var(--r); padding: 30px 32px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.cta h2 { color: #FFFFFF; font-size: clamp(19px, 2.4vw, 23px); }
.cta p { color: #D4E3D9; margin-top: 4px; font-size: 15px; }
.cta > div:first-child { flex: 1 1 340px; min-width: 0; }
.cta .btn.primary { background: #FFFFFF; color: #1F4333; border-color: #FFFFFF; }
.cta .btn.ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .6); }
.cta .btn.ghost:hover { background: rgba(255, 255, 255, .12); }

.insure-line { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; background: var(--sage); border-radius: var(--r); padding: 12px 16px; font-size: 14.5px; color: var(--ink); }
.insure-line a { font-weight: 600; white-space: nowrap; text-decoration: none; }

/* 진료 방식 — 흐름 */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.flow li .icon-ring { grid-row: span 3; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; width: 12px; height: 1px; background: var(--sage-mid);
}
.flow h3 { font-size: 16.5px; }
.flow p { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* 공간 */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
.mosaic .ph { aspect-ratio: auto; height: 100%; }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
.mosaic .tall { grid-row: span 2; }
.mosaic .w2 { grid-column: span 2; }
.mosaic figure { position: relative; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; font-size: 12.5px; color: var(--ink); background: rgba(255, 255, 255, .88); border-radius: 999px; }

/* 바닥 */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); padding-block: 36px 100px; font-size: 13.5px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.foot-logo { height: 32px; width: auto; filter: none; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.foot-links, .sns { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a, .sns a { color: var(--ink); text-decoration: none; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.foot-links a:hover, .sns a:hover { color: var(--green); }
.foot-info { display: flex; flex-direction: column; gap: 2px; }
.site-footer b { color: var(--ink); }

.float-reserve {
  position: fixed; z-index: 40;
  right: max(20px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 8px;
}
.float-reserve .btn { box-shadow: 0 8px 20px rgba(20, 35, 26, .2); }
.float-reserve .tel-btn { display: none; }

@media (max-width: 960px) {
  .main-top .wrap, .page-intro .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .grid.c4, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li::after { display: none; }
  .grid.c3 { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; }
  .utility .wrap > p:first-child { display: none; }
  .utility .wrap { justify-content: flex-end; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav > a, .nav .drop > button { justify-content: flex-start; border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 4px; }
  .drop-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav .btn { margin: 12px 0 0; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding-block: 44px; }
  .main-top .wrap { padding-block: 28px; }
  .main-top::after { display: none; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick a { flex-direction: row; align-items: center; padding: 12px; }
  .grid.c2, .grid.c4, .flow { grid-template-columns: minmax(0, 1fr); }
  .reserve-card { padding: 20px; }
  .rc-row.featured { margin-inline: -20px; padding-inline: 20px; }
  .rc-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .ph:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .mosaic { grid-auto-rows: 120px; }
  .utility p { gap: 12px; }
  .brand img { height: 28px; }
  .page-banner::after { display: none; }
  .float-reserve { left: 0; right: 0; bottom: 0; gap: 0; padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
  .float-reserve .btn { flex: 1; box-shadow: none; }
  .float-reserve .tel-btn { display: inline-flex; margin-right: 8px; }
}
.site-footer .foot-logo { align-self: flex-start; }

/* 진료 시간 (상단) */
.hours-mini { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 460px; }
.hours-mini table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 10px; }
.hours-mini th { text-align: left; font-weight: 500; color: var(--ink); padding: 7px 0; width: 92px; }
.hours-mini td { padding: 7px 0; color: var(--ink); }
.hours-mini td.sub { color: var(--muted); font-size: 13.5px; text-align: right; }
.hours-mini tr + tr { border-top: 1px solid var(--line); }
/* 원장별 근무 안내 */
.schedule { margin-top: 36px; }
.schedule table td { text-align: center; color: var(--green); }
.schedule table thead th { text-align: center; }
.schedule table thead th:first-child, .schedule tbody th { text-align: left; }
.schedule tbody th { font-weight: 500; white-space: nowrap; }
.schedule tbody th span { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.schedule .note { margin-top: 10px; }
/* 오시는 길 */
.loc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.loc-list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; font-size: 15px; color: var(--muted); }
.loc-list b { color: var(--ink); font-weight: 500; }
.map-box { position: relative; min-height: 320px; border-radius: var(--r); overflow: hidden; background: var(--stone); border: 1px solid var(--line); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 14px; margin: 0; }

/* 예약 카드 리셉션 사진 */
.rc-photo { margin: -26px -26px 20px; height: 170px; overflow: hidden; border-radius: 3px 3px 0 0; }
.rc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
@media (max-width: 640px) { .rc-photo { margin: -20px -20px 16px; height: 150px; } }
/* PC 메뉴 7개 펼침 */
@media (min-width: 961px) and (max-width: 1240px) { .nav > a:not(.btn) { padding-inline: 9px; font-size: 14.5px; } .nav .btn { margin-left: 6px; padding: 0 16px; } }
@media (min-width: 961px) { .nav > a:not(.btn) { padding-inline: 13px; white-space: nowrap; } }

/* 개인정보 처리방침 */
.policy { max-width: 860px; display: flex; flex-direction: column; gap: 14px; }
.policy h2 { font-size: 19px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.policy p, .policy li { font-size: 15px; color: var(--muted); line-height: 1.75; }
.policy ol, .policy ul { padding-left: 20px; margin: 0; display: grid; gap: 4px; }
.policy li b { color: var(--ink); font-weight: 500; margin-right: 6px; }
.policy .table-box th { white-space: nowrap; }
.policy .todo { color: #A0522D; font-weight: 500; }
/* 잘리지 않고 전체를 보여주는 그림 (단계 그래픽 등) */
.ph.fit { aspect-ratio: auto !important; height: auto; }
.ph.fit img { height: auto !important; object-fit: contain; }
/* AI 생성 이미지 표시 */
.ph.ai { position: relative; }
.ph.ai::after { content: "AI 생성 이미지"; position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; font-size: 12px; color: #FFFFFF; background: rgba(0, 0, 0, .45); border-radius: 999px; pointer-events: none; }
/* 원장 사진 (261118 촬영) */
.ph.team { aspect-ratio: 21 / 9; margin-bottom: 24px; }
.ph.team img { object-position: center 30%; }
#doctors .doctor { grid-template-columns: 1fr; gap: 14px; }
#doctors .doctor .ph { aspect-ratio: 1 / 1; }
#doctors .doctor .ph img { object-position: center top; }
.ph.exterior { aspect-ratio: 4 / 3; }
.ph.exterior img { object-position: center 60%; }
@media (max-width: 640px) { .ph.team { aspect-ratio: 3 / 2; } }
#doctors .doctor .ph.photo { padding: 0; }
#location .split { align-items: stretch; }
#location .map-box { min-height: 420px; height: 100%; }
@media (max-width: 640px) {
  .schedule th, .schedule td { padding: 10px 4px; font-size: 13px; }
  .schedule tbody th { white-space: normal; min-width: 76px; }
}

/* 언어 버튼 */
.main-bar .nav { margin-left: auto; }
.lang-switch { position: relative; flex: none; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--bg); white-space: nowrap; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.lang-switch .flag { display: block; border-radius: 2px; flex: none; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 160px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.lang-switch li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 14px; }
.lang-switch li a:hover { background: var(--sage); }
.lang-switch li a[aria-current] { color: var(--green); font-weight: 500; }
@media (max-width: 960px) {
  .lang-switch { order: 2; margin-left: auto; margin-right: 8px; }
  .menu-toggle { order: 3; }
  .lang-switch summary { height: 44px; }
}
/* 언어별 글꼴 */
html:lang(zh-CN) { --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --serif: "Noto Serif SC", serif; }
html:lang(ja) { --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; --serif: "Noto Serif JP", serif; }
html:lang(en) body { letter-spacing: 0; }
html:lang(en) .ph.ai::after { content: "AI-generated image"; }
html:lang(zh-CN) .ph.ai::after { content: "AI生成图片"; }
html:lang(ja) .ph.ai::after { content: "AI生成画像"; }
/* 언어 버튼: 일반 details 스타일 덮어쓰기 */
.lang-switch { grid-column: auto; border-top: 0; padding-top: 0; margin-top: 0; }
.lang-switch ul { display: block; gap: 0; font-size: 14px; }
.brand { flex: none; }
/* 영어 메뉴는 글자가 길어 조금 작게 */
html:lang(en) .nav > a:not(.btn), html:lang(en) .nav .drop > button { padding-inline: 8px; font-size: 14.5px; }
html:lang(en) .hours-mini th { width: 160px; }
@media (min-width: 961px) and (max-width: 1240px) {
  html:lang(en) .nav > a:not(.btn) { font-size: 13px; padding-inline: 6px; white-space: normal; line-height: 1.25; text-align: center; max-width: 104px; }
  html:lang(en) .brand img { height: 28px; }
}
/* 데스크톱 좁은 폭: 언어 버튼은 국기만 */
@media (min-width: 961px) and (max-width: 1240px) {
  .lang-switch summary > span { display: none; }
  .lang-switch summary { padding: 0 8px; gap: 4px; }
  .main-bar { gap: 10px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .nav > a:not(.btn), .nav .drop > button { padding-inline: 7px; font-size: 14px; }
  .nav .btn { padding: 0 14px; }
}
html:lang(en) .nav > a:not(.btn), html:lang(en) .nav .drop > button { padding-inline: 7px; font-size: 14px; }
/* 중국어·일본어는 글자 단위 줄바꿈이 자연스럽다 */
html:lang(ja), html:lang(zh-CN) { word-break: normal; line-break: strict; }
html:lang(ja) *, html:lang(zh-CN) * { word-break: normal; }
