/* 송도화담외과가정의학과의원 — 원페이지 (임시 공개용) */
:root {
  --taupe: #8C7465; --taupe-d: #6E5A4E; --taupe-h: #5A4839; --ink-dd: #3A332D;
  --sand: #D8C9B6; --sand-l: #EAE1D5; --bg: #F4EEE6; --paper: #FBF8F4; --white: #FFFFFF;
  --ink: #3A332D; --ink-2: #5C534A; --ink-3: #7D7268; --line: #E2D7C9; --line-2: #EDE5DA;
  --yellow: #EFCE5A; --alert: #8A3A28;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --en: "Cormorant Garamond", Georgia, serif;
  --max: 1180px; --header-h: 80px;
  --shadow-1: 0 2px 6px -2px rgba(110,90,78,.12), 0 14px 34px -22px rgba(110,90,78,.45);
  --shadow-2: 0 4px 10px -4px rgba(110,90,78,.16), 0 28px 56px -28px rgba(110,90,78,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; scrollbar-gutter: stable; } /* 스크롤바가 생기든 없든 메뉴 위치 그대로 (2026-10-20) */
html.fonts-wait .gnb { visibility: hidden; } /* 글꼴이 바뀌며 메뉴가 움직이는 것을 안 보이게 — 최대 0.6초 (머리의 작은 스크립트) */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.8; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
li, dd, figcaption, span { text-wrap: pretty; }
h1, h2, h3, .lead, .hero .sub, .sec-head .lead { text-wrap: balance; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.kicker { font-family: var(--en); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe-d); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--yellow); }
.sec { --sec-pad: 104px; padding-block: var(--sec-pad); }
.sec[id] { scroll-margin-top: calc(16px - var(--sec-pad)); } /* 메뉴 · #앵커로 왔을 때 윗여백을 건너뛰어 제목이 머리말 바로 아래에 (2026-10-22) */
.sec.paper { background: var(--paper); }
.sec.sand { background: var(--sand-l); }
.sec.dark { background: var(--ink-dd); color: #fff; }
.sec-head { margin-bottom: 44px; max-width: 820px; }
.sec-head h2 { font-size: 36px; margin-bottom: 14px; text-wrap: balance; }
.sec-head .lead { font-size: 17.5px; color: var(--ink-2); margin: 0; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.small { font-size: 14px; } .muted { color: var(--ink-3); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,248,244,.94); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; }
br.mo { display: none; }
.gnb { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.gnb a { font-size: 15.5px; font-weight: 600; color: var(--ink-2); padding: 8px 0; position: relative; transition: color .25s; }
.gnb a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--taupe); transition: right .3s var(--ease); }
.gnb a:hover { color: var(--ink); } .gnb a:hover::after { right: 0; }
.menu-toggle { display: none; }

/* 히어로 */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - var(--header-h)); display: grid; align-items: end; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* 실사진 2장(로비)을 번갈아 보여 준다 — 조감도 한 장 확대 효과 대신 (2026-10-19) */
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transform: scale(1.04); transition: opacity 1.6s var(--ease), transform 5s linear; }
.hero-bg img.is-on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hero-bg img { transition: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(58,51,45,.22) 0%, rgba(58,51,45,.30) 35%, rgba(58,51,45,.84) 100%); }
.hero .wrap { padding-block: 120px 44px; }
.hero-copy { margin-left: auto; max-width: 600px; }
.hero-copy .kicker { justify-content: flex-start; }
.hero .kicker { color: rgba(255,255,255,.85); } .hero .kicker::before { background: var(--yellow); }
.hero h1 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; line-height: 1.22; max-width: 14em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .sub { font-size: 18px; max-width: 40em; color: rgba(255,255,255,.9); margin-top: 22px; line-height: 1.75; }
.hero-info { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 36px; background: rgba(251,248,244,.96); color: var(--ink); width: max-content; max-width: 100%; box-shadow: var(--shadow-2); }
.hero-info > div { padding: 20px 28px; border-right: 1px solid var(--line); min-width: 0; }
.hero-info > div:last-child { border-right: 0; }
.hero-info .en { font-family: var(--en); font-size: 12px; letter-spacing: .2em; color: var(--taupe-d); margin: 0 0 4px; }
.hero-info strong { display: block; font-size: 16px; font-weight: 700; }
.hero-info span { font-size: 13.5px; color: var(--ink-2); }
.hero-info .hours-lines { list-style: none; margin: 0; padding: 0; }
.hero-info .hours-lines li { font-size: 15.5px; font-weight: 600; line-height: 1.75; white-space: nowrap; margin: 0 -8px; padding: 0 8px; border-radius: 4px; }
.hero-info .hours-lines li.is-today { background: rgba(216,201,182,.5); }

/* 진료 안내 카드 */
.clinics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }  /* 4장: 화상 · 외과 · 가정의학과 · 소아 (2026-10-26) */
@media (max-width: 1240px) { .clinics { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.clinic { background: var(--white); box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.clinic:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.clinic figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.clinic figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.clinic:hover figure img { transform: scale(1.04); }
.clinic .body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.clinic .en { font-family: var(--en); font-size: 12.5px; letter-spacing: .2em; color: var(--taupe-d); margin: 0; }
.clinic h3 { font-size: 23px; }
.clinic p { font-size: 15px; color: var(--ink-2); margin: 0; }
.clinic ul { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14.5px; }
.clinic li { padding-left: 16px; position: relative; }
.clinic li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--yellow); }
/* 치료실과 장비 (2026-10-27, v31 병원 둘러보기에서) */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.room { background: var(--white); box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.room figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.room figure img { width: 100%; height: 100%; object-fit: cover; }
.room .body { padding: 18px 20px 20px; }
.room h3 { font-size: 18.5px; margin: 0 0 6px; }
.room p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.7; }
@media (max-width: 1100px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rooms { grid-template-columns: 1fr; gap: 14px; } }
.notice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.notice-row > div { background: var(--white); box-shadow: var(--shadow-1); border-top: 3px solid var(--taupe); padding: 20px 24px; font-size: 15px; }
.notice-row > div + div { border-top-color: var(--yellow); }
.notice-row strong { font-family: var(--serif); font-size: 17px; display: block; margin-bottom: 4px; }
.notice-row span { color: var(--ink-2); }

/* 의료진 */
.doctors { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.doctor { background: var(--white); box-shadow: var(--shadow-1); padding: 36px 36px 32px; display: grid; gap: 10px; border-top: 3px solid var(--taupe); }
.doctor .en { font-family: var(--en); font-size: 12.5px; letter-spacing: .2em; color: var(--taupe-d); margin: 0; }
.doctor h3 { font-size: 26px; }
.doctor h3 span { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-3); margin-left: 8px; }
.doctor .spec { font-weight: 700; color: var(--taupe-d); margin: 0; }
/* 원장 다짐 글 (손글씨) — 2026-10-19 바탕화면 원페이지에서 */
.doctor .hand { font-family: "Nanum Brush Script", var(--serif); font-weight: 400; font-size: 25px; line-height: 1.5; color: var(--taupe-d); margin: 8px 0 6px; padding: 14px 18px 12px; background: var(--sand-l); border-left: 3px solid var(--yellow); letter-spacing: .01em; text-wrap: pretty; }
@media (max-width: 640px) { .doctor .hand { font-size: 23px; padding: 12px 14px 10px; } }
/* 이름 3줄(분야 · 이름 · 전문의) 오른쪽에 같은 높이로 얼굴 사진, 누르면 크게 (2026-10-26) */
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.doc-head > div { display: grid; gap: 8px; }
.doc-zoom { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.doc-photo { display: block; height: 103px; width: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sand-l); box-shadow: var(--shadow-1); transition: transform .3s var(--ease); }
.doc-zoom:hover .doc-photo, .doc-zoom:focus-visible .doc-photo { transform: scale(1.04); }
.photo-dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.photo-dialog::backdrop { background: rgba(58,51,45,.72); }
.photo-dialog img { display: block; width: min(800px, 92vw, calc(88vh * .8)); height: auto; box-shadow: var(--shadow-2); cursor: zoom-out; }
.photo-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-1); }
@media (max-width: 640px) { .photo-close { top: 8px; right: 8px; } }
.doctor dl { margin: 10px 0 0; display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; font-size: 14.5px; }
.doctor dt { color: var(--taupe-d); font-weight: 700; }
.doctor dd { margin: 0; color: var(--ink-2); line-height: 1.7; }

/* 공간 */
.slider { display: grid; gap: 14px; }
.slider-main { position: relative; box-shadow: var(--shadow-2); background: var(--sand); }
.slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; aspect-ratio: 16 / 9; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; background: rgba(251,248,244,.92); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); transition: background .25s, color .25s; }
.slider-btn svg { width: 24px; height: 24px; }
.slider-btn:hover { background: var(--taupe); color: #fff; }
.slider-btn.prev { left: 16px; } .slider-btn.next { right: 16px; }
.slider-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: linear-gradient(0deg, rgba(58,51,45,.7), rgba(58,51,45,0)); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: .02em; }
.slider-cap .count { font-family: var(--en); font-size: 15px; font-weight: 400; letter-spacing: .1em; }
.slider-cap .count b { font-weight: 600; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 112px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--sand); cursor: pointer; opacity: .55; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .25s, outline-color .25s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover, .thumb.is-active { opacity: 1; }
.thumb.is-active { outline-color: var(--taupe); }

/* 진료시간·오시는 길 */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.hours { background: var(--white); box-shadow: var(--shadow-1); padding: 30px 32px; display: flex; flex-direction: column; }
.hours .foot { margin-top: auto; padding-top: 16px; }
.hours table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours th, .hours td { padding: 11px 6px; border-bottom: 1px solid var(--line-2); text-align: left; }
.hours th { width: 90px; font-weight: 700; color: var(--taupe-d); }
.hours tr.off td { color: var(--alert); }
.hours .foot { margin: auto 0 0; padding-top: 14px; font-size: 14px; color: var(--ink-3); }
.place { display: grid; gap: 18px; grid-template-rows: auto 1fr; }
.place .card, .visit-left .card { background: var(--white); box-shadow: var(--shadow-1); padding: 26px 30px; }
.place h3, .visit-left h3 { font-size: 20px; margin-bottom: 8px; }
.place address { font-style: normal; font-size: 17px; line-height: 1.7; }
.visit-left { display: grid; gap: 18px; grid-template-rows: auto 1fr; }
.visit .place { grid-template-rows: 1fr; }
.visit-map { position: relative; margin: 6px 0 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #ECE3D6; container-type: inline-size; }
.vm-replay { position: absolute; right: 2cqi; top: 2cqi; padding: 1.2cqi 2.4cqi; font: inherit; font-size: clamp(10px, 2.6cqi, 12.5px); color: var(--ink-2); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: opacity .3s; }
.vm-pin { position: absolute; width: max-content; margin: 0; display: flex; align-items: center; gap: 1.4cqi; padding: 1.3cqi 2.4cqi 1.3cqi 1.6cqi; background: #fff; border-radius: 2cqi; box-shadow: 0 6px 18px rgba(58,51,45,.16); white-space: nowrap; transform: translate(-50%, 0); transition: opacity .35s ease .1s, transform .35s ease .1s; pointer-events: none; }
.vm-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.vm-pin img { width: clamp(14px, 4.6cqi, 24px); height: auto; }
.vm-pin b { display: block; font-size: clamp(8.5px, 2.5cqi, 12px); font-weight: 700; color: var(--ink); line-height: 1.3; }
.vm-pin em { display: block; font-style: normal; font-size: clamp(8px, 2.3cqi, 11px); font-weight: 600; color: #1F8F7A; line-height: 1.3; }
.visit-map.play:not(.done) .vm-pin { opacity: 0; transform: translate(-50%, 8px) scale(.92); transition: none; }
.visit-map.play:not(.done) .vm-replay { opacity: 0; pointer-events: none; }
/* 약도 SVG (scripts/ops/hwadam_visit_map.py) — 기본은 완성 그림, .play 일 때만 움직임 (2026-10-22) */
.vmx { display: block; width: 100%; height: auto; font-family: inherit; }
.vmx-area { fill: #F1EAE0; } .vmx-park { fill: #D5E6CB; }
.vmx-road-case path { fill: none; stroke: #DCD0BF; stroke-linecap: round; stroke-linejoin: round; }
.vmx-road path { fill: none; stroke: #FFFFFF; stroke-linecap: round; stroke-linejoin: round; }
.vmx-b-side { fill: #D9CCBA; } .vmx-b-top { fill: #FAF6F0; stroke: #E2D6C6; stroke-width: .8; }
.vmx-main-side { fill: #146E5E; } .vmx-main-top { fill: #1F9C87; }
.vmx-main-t { font-size: 11px; font-weight: 700; fill: #fff; text-anchor: middle; }
.vmx-t { font-size: 9px; font-weight: 600; fill: #6E655C; paint-order: stroke; stroke: #F4EEE6; stroke-width: 3px; stroke-linejoin: round; }
.vmx-road-t { font-size: 10px; fill: #94897C; letter-spacing: .04em; stroke: #FFFFFF; }
.vmx-area-t { font-size: 9.5px; fill: #A0958A; text-anchor: middle; font-weight: 500; }
.vmx-b-t { font-size: 8.5px; text-anchor: middle; stroke: #FAF6F0; }
.vmx-poi circle { stroke: #fff; stroke-width: 1.6; } .vmx-shop circle { fill: #D4A017; } .vmx-cafe circle { fill: #2E8B57; } .vmx-bank circle { fill: #2F6FB5; } .vmx-food circle { fill: #E0703A; }
.vmx-bus rect { fill: #2F6FB5; stroke: #fff; stroke-width: 1.2; } .vmx-bus path { fill: none; stroke: #fff; stroke-width: 1.2; }
.vmx-pin-o { fill: #fff; } .vmx-pin-i { fill: #EAF6F2; stroke: #1F9C87; stroke-width: 2; }
.vmx-credit { font-size: 7px; fill: #9A8F82; }
.play .vmx-road-case path, .play .vmx-road path { stroke-dasharray: 1; animation: vmxDraw 1s ease var(--d) both; }
.play .vmx-land { animation: vmxFade .8s ease .2s both; }
.play .vmx-b { animation: vmxRise .45s ease var(--d) both; }
.play .vmx-main { transform-box: fill-box; transform-origin: 50% 100%; animation: vmxMain .6s cubic-bezier(.2,.8,.3,1.2) 1.7s both; }
.play .vmx-marks, .play .vmx-labels { animation: vmxFade .5s ease 2.1s both; }
.play .vmx-pin-in { animation: vmxPin .45s cubic-bezier(.2,.8,.3,1.3) 2.5s both; }
.play .vmx-world { animation: vmxZoom 2.4s ease-in-out 2.95s both; }
html.to-section .hublayer { display: none !important; } /* 다른 페이지 메뉴로 칸에 온 때만 — index.html 스크립트 */
@keyframes vmxDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vmxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vmxRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vmxMain { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
@keyframes vmxPin { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes vmxZoom { 0% { transform: scale(1); } 35%, 65% { transform: scale(1.9); } 100% { transform: scale(1); } }
.visit-body { margin-top: 10px; }
.visit-body .visit-map { margin: 0 0 14px; }
@media (max-width: 1024px) { .visit-body .visit-map { max-width: 560px; } }
/* 휴대폰처럼 약도가 작을 때: 글자를 키우고 작은 건물 이름은 숨김 */
@container (max-width: 380px) {
  .vmx-t { font-size: 14px; stroke-width: 4px; } .vmx-road-t { font-size: 14px; } .vmx-main-t { font-size: 16px; }
  .vmx-b-t, .vmx-area-t { display: none; } .vmx-poi circle { r: 8px; } .vmx-credit { font-size: 10px; }
}
.visit-title { display: grid; gap: 4px; margin-bottom: 4px; } /* 제목 아래 줄에 주소 한 줄 (2026-10-22) */
.visit-title h3 { margin-bottom: 0; }
.visit-title address { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.visit-links { margin-top: 16px; }
/* PC: 진료시간 줄 간격을 줄여 카드 묶음이 한 화면에 더 들어오게 (2026-10-22) */
@media (min-width: 1025px) {
  .visit .hours th, .visit .hours td { padding-block: 9px; }
}
/* PC 이면서 화면 높이가 낮을 때(노트북 등): 제목 · 카드 간격을 줄여 한 화면에 */
@media (min-width: 1025px) and (max-height: 1000px) {
  #visit .sec-head { margin-bottom: 22px; }
  #visit .sec-head h2 { font-size: 30px; margin-bottom: 6px; }
  #visit .sec-head .lead { font-size: 16px; }
  .visit .hours { padding: 22px 30px; }
  .visit .hours th, .visit .hours td { padding-block: 7px; }
  .visit .place .card, .visit-left .card { padding: 20px 28px; }
  .visit .visit-body .visit-map { margin-bottom: 12px; }
  .visit .map-links { margin-top: 10px; }
}
.place .phone, .visit-left .phone { font-family: var(--en); font-size: 34px; font-weight: 500; color: var(--taupe-d); line-height: 1.1; margin: 4px 0 2px; letter-spacing: .02em; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; font-size: 14.5px; font-weight: 700; border: 1px solid var(--taupe-d); color: var(--taupe-d); background: transparent; transition: background .25s, color .25s; cursor: pointer; font-family: inherit; }
.btn:hover { background: rgba(140,116,101,.08); }
.btn.primary { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.btn.primary:hover { background: var(--taupe-d); border-color: var(--taupe-d); }

/* 푸터 */
.site-footer { background: var(--ink-dd); color: rgba(255,255,255,.82); padding: 56px 0 96px; font-size: 14.5px; }
.site-footer .wrap { display: grid; gap: 28px; }
.f-brand img { height: 34px; width: auto; }
.f-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.f-label { font-family: var(--en); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 6px; }
.site-footer p { margin: 0 0 4px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; color: rgba(255,255,255,.55); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--taupe); color: #fff; padding: 10px 16px; z-index: 500; }
.skip:focus { left: 16px; top: 16px; }
.gnb a.is-active { color: var(--ink); } .gnb a.is-active::after { right: 0; }
/* 퀵메뉴 */
.quick-menu { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 160; display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.quick-menu.is-shown { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.qm-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 84px; height: 84px; color: var(--ink); font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--line-2); transition: background .25s, color .25s; }
.qm-item:last-child { border-bottom: 0; }
.qm-item:hover { background: var(--taupe); color: #fff; }
.qm-ico { width: 26px; height: 26px; display: inline-flex; }
.qm-ico svg { width: 26px; height: 26px; }
.qm-kakao { background: #FEE500; color: #191919; } .qm-kakao:hover { background: #F2D900; color: #191919; }
.qm-top { height: 52px; background: var(--ink-dd); color: #fff; font-family: var(--en); font-size: 12px; letter-spacing: .12em; gap: 2px; }
.qm-top .qm-ico, .qm-top .qm-ico svg { width: 18px; height: 18px; }
.qm-top:hover { background: var(--taupe-d); }

/* 등장 애니메이션 */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(10px); background: var(--ink); color: #fff; padding: 11px 18px; font-size: 14px; z-index: 300; opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility 0s linear .3s; }
.toast.is-on { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition: opacity .3s, transform .3s var(--ease); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .hero-bg img { animation: none; transform: none; } }

/* 반응형 */
@media (max-width: 1024px) {
  .clinics { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .sec { --sec-pad: 80px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  br.pc { display: none; }
  br.mo { display: inline; }
  .hero-copy { margin-left: 0; }
  .gnb { display: none; }
  .gnb.is-open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--paper); box-shadow: var(--shadow-2); padding: 8px 24px 16px; }
  .gnb.is-open a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .menu-toggle { display: inline-flex; white-space: nowrap; flex: 0 0 auto; background: none; border: 1px solid var(--line); padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
  .hero-info { grid-template-columns: 1fr; width: 100%; }
  .hero-info > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .hero-info > div:last-child { border-bottom: 0; }
  .doctors, .notice-row { grid-template-columns: 1fr; }
  .slides { aspect-ratio: 4 / 3; }
  .slider-btn { width: 40px; height: 40px; }
  .slider-btn.prev { left: 8px; } .slider-btn.next { right: 8px; }
  .thumb { flex-basis: 84px; }
  .f-cols { grid-template-columns: 1fr; }
  .quick-menu { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; opacity: 1; visibility: visible; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .qm-item { flex: 1; width: auto; height: 64px; border-bottom: 0; border-right: 1px solid var(--line-2); font-size: 12px; gap: 4px; }
  .qm-item:last-child { border-right: 0; }
  .qm-top { display: none; }
  body { padding-bottom: 72px; }
  .sec-head h2 { font-size: 29px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .sec { --sec-pad: 60px; }
  .hero .wrap { padding-block: 72px 48px; }
  .doctor { padding: 26px 22px; }
  .doctor dl { grid-template-columns: 1fr; gap: 2px; }
  .doctor dt { margin-top: 8px; }
  .hours th, .hours td { padding: 9px 4px; font-size: 14.5px; }
}

/* 전화 안내 창 (빠른 메뉴 진료예약 · 전화문의) */
.call-dialog { border: 0; padding: 30px 32px 26px; width: min(440px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); text-align: center; }
.call-dialog::backdrop { background: rgba(58,51,45,.48); }
.call-dialog .en { font-family: var(--en); font-size: 12px; letter-spacing: .2em; color: var(--taupe-d); margin: 0; }
.call-dialog h3 { font-size: 22px; margin: 4px 0 0; }
.call-dialog .call-sub { margin: 2px 0 10px; font-size: 14.5px; color: var(--ink-3); }
.call-dialog .call-hours { list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.7; }
.call-dialog .call-hours li { white-space: nowrap; }
.call-dialog .call-note { margin: 6px 0 0; }
.call-dialog .call-num { margin: 0 0 10px; font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.call-dialog .call-num a { color: var(--ink); text-decoration: none; }
.call-dialog .map-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
@media (hover: hover) and (pointer: fine) { .call-dialog .call-only { display: none; } }

/* 개인정보처리방침 · 이용약관 */
.policy-home { font-size: 15px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); padding: 7px 14px; }
.policy-home:hover { color: var(--ink); border-color: var(--taupe); }
.policy { padding: 56px 0 88px; }
.policy .wrap { max-width: 860px; }
.policy h1 { font-size: 34px; margin: 0 0 6px; }
.policy .policy-meta { color: var(--ink-3); font-size: 14.5px; margin: 0 0 28px; }
.policy h2 { font-size: 20px; margin: 40px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.policy p, .policy li { font-size: 16px; color: var(--ink-2); }
.policy ul { padding-left: 1.2em; margin: 8px 0 12px; }
.policy ul.plain { list-style: none; padding-left: 0; }
.policy a { color: var(--taupe-d); text-decoration: underline; text-underline-offset: 3px; }
.policy .table-wrap { overflow-x: auto; margin: 12px 0 14px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); min-width: 520px; }
.policy th, .policy td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.policy th { background: var(--sand-l); font-weight: 600; color: var(--ink); }
.policy-toc { background: var(--white); border: 1px solid var(--line); padding: 16px 20px; margin: 18px 0 8px; }
.policy-toc ol { margin: 0; padding-left: 1.4em; columns: 3; column-gap: 24px; font-size: 15px; }
.policy-toc a { text-decoration: none; color: var(--ink-2); }
.policy-page .site-footer { padding: 28px 0 40px; }
.policy-links { display: inline-flex; gap: 18px; }
.site-footer .policy-links a { color: rgba(255,255,255,.82); }
.site-footer .policy-links a:hover { color: #fff; }
@media (max-width: 720px) { .policy-toc ol { columns: 2; } .policy h1 { font-size: 28px; } }
.site-footer .biz { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.75; margin: 0; }
.site-footer .biz span { white-space: nowrap; }
.policy-notice { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--taupe); padding: 14px 18px; margin: 0 0 24px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }

/* 개원 안내 팝업 (2026-10-15 D안) */
.open-pop { border: 0; padding: 0; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.open-pop::backdrop { background: rgba(58,51,45,.48); }
.op-band { height: 130px; display: flex; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(120% 90% at 75% 30%, #F7F1E9, #EDE3D6 50%, #D8C9B6); }
.op-band img { width: 50px; height: auto; }
.op-band .op-lock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); color: var(--ink-dd); white-space: nowrap; line-height: 1; }
.op-band .op-sd { font-size: 16px; font-weight: 700; letter-spacing: .1em; color: var(--taupe-d); align-self: center; }
.op-band .op-hd { font-style: normal; font-size: 36px; font-weight: 800; letter-spacing: -.02em; color: #0C9A8E; }
.op-band .op-dept { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 3px; font-size: 14px; font-weight: 800; letter-spacing: -.01em; line-height: 1.05; padding: 0 2px; }
.op-band .op-ui { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.op-body { padding: 22px 26px 20px; text-align: center; }
.op-en { font-family: var(--en); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); margin: 0; }
.open-pop h2 { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.75; margin: 10px 0 12px; color: var(--ink); word-break: keep-all; }
.op-now { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #0C8A80; background: #E6F4F1; padding: 5px 12px; border-radius: 999px; margin: 2px 0 10px; }
.op-now i { width: 8px; height: 8px; border-radius: 50%; background: #0C9A8E; animation: op-pulse 1.8s infinite; }
.op-now.off { color: var(--taupe-d); background: var(--sand-l); } .op-now.off i { background: var(--taupe); animation: none; }
@keyframes op-pulse { 0% { box-shadow: 0 0 0 0 rgba(12,154,142,.5); } 70% { box-shadow: 0 0 0 8px rgba(12,154,142,0); } 100% { box-shadow: 0 0 0 0 rgba(12,154,142,0); } }
@media (prefers-reduced-motion: reduce) { .op-now i { animation: none; } }
.op-msg { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; margin: 0 0 6px; }
.op-meta { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin: 8px 0 14px; }
.op-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.op-foot { display: flex; border-top: 1px solid var(--line); }
.op-foot button { flex: 1; padding: 13px; background: var(--white); border: 0; font: inherit; font-size: 13.5px; color: var(--ink-3); cursor: pointer; }
.op-foot button + button { border-left: 1px solid var(--line); color: var(--ink); }
.open-pop .op-title:focus { outline: none; }
@media (max-width: 380px), (max-height: 700px) {
  .op-band { height: 92px; } .op-band img { width: 38px; }
  .op-body { padding: 16px 18px 14px; }
  .op-band .op-hd, .op-band .op-ui { font-size: 30px; } .op-band .op-dept { font-size: 12.5px; } .op-band .op-sd { font-size: 14px; } .open-pop h2 { font-size: 15.5px; } .open-pop h2 br { display: none; }
  .op-msg { font-size: 13.5px; } .op-msg br, .op-meta br { display: none; }
  .op-meta { font-size: 12px; margin: 6px 0 12px; }
  .op-btns .btn { padding: 10px 14px; }
}
/* 아주 작은 휴대폰 (2026-10-19 바탕화면 원페이지에서) */
@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .brand img { height: 32px; }
  .hero-info > div { padding: 12px 16px; }
}
/* 비급여 진료비용 (nonpay.html, 2026-10-19) */
.nonpay td.num, .nonpay th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nonpay td:first-child { font-weight: 600; color: var(--ink); }
.nonpay td:last-child { font-size: 14px; color: var(--ink-3); }
.nonpay .note { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.nonpay table { table-layout: fixed; }
.nonpay th:nth-child(1) { width: 42%; } .nonpay th:nth-child(2) { width: 20%; }
@media (max-width: 640px) { .nonpay th:nth-child(1) { width: 40%; } .nonpay th:nth-child(2) { width: 26%; } }
.nonpay .tbd { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #F6E7C8; color: #8A5A12; font-size: 12px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.nonpay h2 .tbd { font-size: 13px; }
.nonpay table.hist { table-layout: auto; }
.nonpay .hist th:nth-child(n) { width: auto; white-space: nowrap; }
.nonpay .hist td:first-child { font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.nonpay .hist td:nth-child(2), .nonpay .hist td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.nonpay .hist td:last-child { font-size: 15px; color: var(--ink-2); }
/* 비급여 — 코드 열 있는 표 (v1.4.0, 2026-10-20) */
.nonpay table.coded th:nth-child(1) { width: 38%; } .nonpay table.coded th:nth-child(2) { width: 16%; } .nonpay table.coded th:nth-child(3) { width: 17%; }
.nonpay table.coded td:nth-child(2) { font-size: 13px; color: var(--ink-3); word-break: break-all; font-variant-numeric: tabular-nums; }
.nonpay table.coded td.num { white-space: normal; }
@media (max-width: 640px) { .nonpay table.coded th:nth-child(1) { width: 34%; } .nonpay table.coded th:nth-child(2) { width: 20%; } .nonpay table.coded th:nth-child(3) { width: 21%; } .nonpay table.coded td:nth-child(2) { font-size: 11px; } }

/* 공지사항 (notice.html, 2026-10-20) — 목록은 sitehub(/_hub/notice.js)가 그린다. 정책 페이지 링크 밑줄을 목록에서는 빼고, 올렸을 때만 제목에 */
.notice-page .hubnotice__link, .notice-page .hubnotice__link span { text-decoration: none; }
.notice-page .hubnotice__link:hover .hubnotice__title { text-decoration: underline; }

/* ── 건강정보 (health/) — 고정 페이지 · 목록 (v1.6.0, 2026-10-21) ── */
.crumbs { font-size: 14px; color: var(--ink-3); margin: 0 0 18px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.health-article h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.health-article ol { padding-left: 1.4em; margin: 8px 0 12px; }
.health-summary { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--yellow); padding: 18px 22px; margin: 4px 0 8px; }
.health-summary h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 18px; }
.health-summary ul { margin: 0; }
.health-alert { background: #FBF1EC; border: 1px solid #E8CFC4; border-left: 4px solid var(--alert); padding: 18px 22px; margin: 36px 0 18px; }
.health-alert h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 18px; color: var(--alert); }
.health-alert ul { margin: 0; }
.health-note { font-size: 14.5px !important; color: var(--ink-3) !important; border-top: 1px solid var(--line); padding-top: 14px; }
.health-src { font-size: 13.5px !important; color: var(--ink-3) !important; margin-top: -6px; }
.health-more ul { list-style: none; padding-left: 0; }
.health-more li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.health-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.health-toc a { text-decoration: none !important; border: 1px solid var(--line); background: var(--white); padding: 6px 14px; font-size: 15px; color: var(--ink-2) !important; }
.health-toc a:hover { border-color: var(--taupe); color: var(--ink) !important; }
.health-cat { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + 16px); }
.health-cat .kicker { margin: 18px 0 6px; }
.health-cat h2 { border: 0; padding: 0; margin: 0 0 4px; font-size: 24px; }
.health-lead { color: var(--ink-3) !important; font-size: 15px !important; margin: 0 0 14px; }
.health-cards { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.health-card { display: flex; flex-direction: column; gap: 6px; height: 100%; background: var(--white); border: 1px solid var(--line); padding: 18px 20px; text-decoration: none !important; box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.health-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.health-card .hc-title { font-family: var(--serif); font-weight: 600; font-size: 17.5px; color: var(--ink); line-height: 1.45; }
.health-card .hc-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.health-card .hc-date { margin-top: auto; font-size: 13px; color: var(--ink-3); }
.health-empty { color: var(--ink-3) !important; }
@media (max-width: 720px) { .health-cards { grid-template-columns: 1fr; } }
.health-figure { margin: 6px 0 22px; }
.health-figure img { width: 100%; aspect-ratio: 4 / 3; max-height: 420px; object-fit: cover; background: var(--sand-l); }
.health-figure figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.health-card .hc-img { max-width: none; width: calc(100% + 40px); margin: -18px -20px 6px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand-l); }
.health-diagram { margin: 18px 0 22px; background: #FBF8F4; border: 1px solid var(--line); }
.health-diagram img { width: 100%; height: auto; }
.health-diagram figcaption { font-size: 13.5px; color: var(--ink-3); padding: 8px 14px 10px; border-top: 1px solid var(--line-2); background: var(--white); }
.health-figure.is-diagram img { aspect-ratio: auto; max-height: none; object-fit: contain; border: 1px solid var(--line); }
/* 그림 1/3 + 글 2/3 나란히 (2026-10-26 만성 상처 기록 노트) */
.health-side { display: grid; grid-template-columns: 1fr 2fr; gap: 22px; align-items: center; margin: 10px 0 18px; }
.health-side > ul { margin: 0; }
.health-side-fig { margin: 0; background: #FBF8F4; border: 1px solid var(--line); }
.health-side-fig img { display: block; width: 100%; height: auto; }
.health-side-fig figcaption { font-size: 12.5px; color: var(--ink-3); padding: 6px 10px 8px; border-top: 1px solid var(--line-2); background: var(--white); line-height: 1.5; }
@media (max-width: 640px) { .health-side { grid-template-columns: 1fr; } .health-side-fig { max-width: 320px; } }
