/* 분당태강한의원 — 디자인 1차(2026-10-12)
   방향: 밝고 깔끔한 흰 바탕 + 깊은 청록 한 가지 색. 제목은 명조, 본문은 고딕.
   색·글꼴은 아래 변수만 바꾸면 전체가 바뀐다. 구조·글·검색 설정은 건드리지 않는다. */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("/fonts/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/fonts/Pretendard-Bold.subset.woff2") format("woff2"); }
@font-face { font-family: "MaruBuri"; font-weight: 700; font-display: swap; src: url("/fonts/MaruBuri-Bold.woff2") format("woff2"); }
:root {
  --bg: #ffffff;
  --ink: #1b2a2b;           /* 본문 글자 */
  --muted: #5a6b6c;
  --line: #d9e3e2;
  --teal: #0e7372;          /* 주색 — 청록 */
  --teal-deep: #0a5352;
  --mist: #eef5f4;          /* 옅은 청록 면 */
  --radius: 6px;
  --wrap: 1120px;
  --measure: 720px;         /* 본문 한 줄 길이 */
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-head: "MaruBuri", "Nanum Myeongjo", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  /* 옛 이름 — 기존 규칙이 쓰는 변수 */
  --text: var(--ink); --accent: var(--teal); --accent-soft: var(--mist);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.8 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* ── 버튼 ── */
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius); font-weight: 700; text-decoration: none; line-height: 1.3; border: 2px solid var(--teal); }
.btn-main { background: var(--teal); color: #fff; }
.btn-main:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-line { background: #fff; color: var(--teal-deep); }
.btn-line:hover { background: var(--mist); }
.btn-small { padding: 7px 14px; font-size: .92rem; }
.button { display: inline-block; padding: 12px 20px; border-radius: var(--radius); background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; }

/* ── 머리 ── */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.97); z-index: 5; }
.header-row { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 12px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; }
.logo img { display: block; height: 36px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.call { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.gnb .wrap { display: flex; flex-wrap: wrap; gap: 2px 28px; padding-bottom: 10px; }
.gnb details { position: relative; }
.gnb summary { cursor: pointer; list-style: none; font-weight: 600; padding: 4px 0; }
.gnb summary::-webkit-details-marker { display: none; }
.gnb summary:hover, .gnb details[open] > summary { color: var(--teal-deep); }
.gnb ul { list-style: none; margin: 0; padding: 8px 0; }
.gnb details[open] > ul, .gnb details[open] > .mega { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 18px; min-width: 210px; box-shadow: 0 10px 30px rgba(14,60,60,.12); z-index: 6; }
.gnb .mega { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 24px; width: min(92vw, 760px); }
.gnb .mega strong { color: var(--teal-deep); font-size: .9rem; }
.gnb li a { display: block; padding: 4px 0; color: var(--ink); text-decoration: none; }
.gnb li a:hover { color: var(--teal-deep); text-decoration: underline; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* ── 글 페이지 ── */
main.wrap { padding-top: 8px; padding-bottom: 56px; }
.content { max-width: var(--measure); }
.content > h1 { font-family: var(--font-head); font-size: 2.3rem; line-height: 1.3; margin: 28px 0 20px; letter-spacing: -.01em; }
.content > h1 + p { font-size: 1.12rem; line-height: 1.85; }
.content h2 { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.4; margin: 56px 0 14px; padding-top: 22px; border-top: 2px solid var(--ink); }
.content h3 { font-size: 1.12rem; margin: 28px 0 8px; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: 4px 0; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: .95rem; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); }
th { white-space: nowrap; font-weight: 700; }
.info-table { display: table; }
.info-table th { width: 34%; white-space: normal; color: var(--teal-deep); }
.fee-group { margin-top: 32px; }
.note, .meta, .reviewed, small { color: var(--muted); font-size: .9rem; }
blockquote { margin: 18px 0; padding: 10px 18px; border-left: 3px solid var(--teal); background: var(--mist); }

/* 이 페이지에서 바로 가기 */
.page-toc { margin: 22px 0 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.page-toc li { margin: 0; }
.page-toc a { display: block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--ink); background: #fff; }
.page-toc a:hover { border-color: var(--teal); color: var(--teal-deep); }

/* 「한눈에」 공통 블록 (2026-10-28) */
.glance { margin: 18px 0 28px; padding: 18px 20px 16px; background: var(--mist); border-radius: var(--radius); border-left: 4px solid var(--teal); }
.glance-title { margin: 0 0 10px; font-weight: 700; color: var(--teal-deep); letter-spacing: .02em; }
.glance-list { margin: 0 0 14px; display: grid; gap: 8px; }
.glance-list div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; align-items: baseline; }
.glance-list dt { font-weight: 700; margin: 0; }
.glance-list dd { margin: 0; line-height: 1.6; }
.glance-first { margin: 12px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.6; }
.glance-first a { font-weight: 700; }
@media (max-width: 520px) { .glance-list div { grid-template-columns: 1fr; gap: 2px; } }
/* 심화 절 접기 (결정 6) */
details.fold { margin: 1.4em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary h2 { margin: 0; font-size: 1.25rem; }
details.fold .fold-hint { flex: none; font-size: .9rem; color: var(--teal-deep); font-weight: 700; }
details.fold .fold-hint::after { content: " +"; }
details.fold[open] .fold-hint::after { content: " –"; }
details.fold .fold-body { padding: 0 0 12px; }
/* 참고문헌 — 페이지 하단 한 목록 */
.page-refs { margin: 40px 0 8px; font-size: .88rem; color: var(--muted); }
.page-refs h2 { font-size: 1.05rem; color: var(--ink); margin: 0 0 4px; }
.page-refs .note { margin: 0 0 8px; font-size: .88rem; }
.page-refs ol { margin: 0; padding-left: 1.4em; }
.page-refs li { margin: 4px 0; line-height: 1.5; overflow-wrap: anywhere; }
/* 글 끝 예약 안내 */
.page-cta { margin: 56px 0 8px; padding: 22px 24px; background: var(--mist); border-radius: var(--radius); }
.page-cta p { margin: 0 0 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* FAQ */
.faq .qa { border-bottom: 1px solid var(--line); padding: 2px 0; }
.faq .qa summary { cursor: pointer; list-style: none; padding: 14px 34px 14px 0; position: relative; }
.faq .qa summary::-webkit-details-marker { display: none; }
.faq .qa summary h3 { display: inline; font-size: 1.08rem; margin: 0; }
.faq .qa summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--teal); line-height: 1.2; }
.faq .qa[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 14px; }
.faq-pre { background: var(--mist); border-radius: var(--radius); padding: 6px 18px; margin-bottom: 8px; }
.more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.more a { font-weight: 700; }
.toc ol { padding-left: 1.2em; }
/* 칼럼 카드 (2026-10-29) */
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; }
.band-head h2 { margin: 0; }
.band-head p { margin: 0; color: var(--muted); }
.col-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
.col-cards li { margin: 0; min-width: 0; }
.col-cards a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.col-cards a:hover { border-color: var(--teal); }
.col-cards a:hover strong { color: var(--teal-deep); }
.col-cards img, .col-noimg { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); }
.col-noimg { display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.4rem; color: var(--teal-deep); }
.col-cards strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.45; padding: 14px 16px 6px; }
.col-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .93rem; line-height: 1.6; padding: 0 16px; }
.col-meta { margin-top: auto; padding: 12px 16px 14px; font-size: .85rem; color: var(--muted); }
@media (min-width: 760px) { .col-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.post-list a { font-weight: 600; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.empty { color: var(--muted); }
.gallery:empty { display: none; }

/* 참고문헌 — 작은 글씨 */
.refs { margin-top: 1em; font-size: .85em; color: var(--muted); }
.refs .refs-title { margin: 0 0 .25em; font-weight: 600; }
.refs ul { margin: 0; padding-left: 1.2em; }
/* 꼭 알아 두실 것 */
.notice { margin: 1.2em 0; padding: 14px 18px; background: var(--mist); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; }
.notice p { margin: 0 0 .4em; }
.notice ul { margin: 0; padding-left: 1.2em; }

/* ── 메인 ── */
main.home { padding: 0; }
.hero { position: relative; background: var(--mist); }
.hero-photo { display: block; width: 100%; height: clamp(300px, 46vw, 560px); object-fit: cover; object-position: 72% 38%; max-width: none; }
.hero-text { max-width: var(--wrap); margin: 0 auto; padding: 36px 20px 44px; min-width: 0; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.2; margin: 0 0 16px; letter-spacing: -.02em; }
.hero-name { display: block; font-family: var(--font); font-size: 1.05rem; font-weight: 700; color: var(--teal-deep); letter-spacing: 0; margin-bottom: 10px; }
.hero-lead { font-size: 1.22rem; line-height: 1.7; margin: 0 0 6px; max-width: 30em; }
.hero-place { color: var(--muted); margin: 0 0 22px; }
.hero-note { color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
/* 첫 화면 사실 세 줄(결정 4) · 네이버 예약 단추를 더 크게(결정 5) — 2026-10-28 */
.hero-facts { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.hero-facts li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 600; background: rgba(255,255,255,.75); }
.hero .hero-facts li { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); }
.btn-big { padding: 15px 28px; font-size: 1.12rem; }
@media (min-width: 900px) {
  /* 왼쪽 글·오른쪽 영상. 글 칸은 화면 폭과 상관없이 최대 560px, 가운데 선에 붙인다(넓은 화면에서 글이 한 글자씩 깨지던 것 고침 2026-10-13) */
  .hero.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; background: #fff; }
  .hero.has-photo .hero-photo { grid-column: 2; grid-row: 1; height: 100%; min-height: 560px; }
  .hero.has-photo .hero-text { grid-column: 1; grid-row: 1; align-self: center; justify-self: end; width: 100%; max-width: 600px; margin: 0; padding: 56px 48px 56px 24px; }
}
.home-intro { max-width: var(--wrap); padding-top: 28px; padding-bottom: 4px; }
.home-intro p { max-width: var(--measure); color: var(--muted); margin: 0; }

.band { padding: 56px 0; }
.band-tint { background: var(--mist); }
.band h2 { font-family: var(--font-head); font-size: 1.8rem; line-height: 1.35; margin: 0 0 24px; }

/* 분야 — 카드가 아니라 줄 목록 */
.fields { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr; }
.fields a { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.fields strong { font-family: var(--font-head); font-size: 1.3rem; }
.fields span { color: var(--muted); }
.fields a:hover strong { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 760px) {
  .fields { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* 진료 과정 — 실제 순서 */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.process li { counter-increment: step; position: relative; padding-left: 58px; }
.process li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; }
.process strong { display: block; font-size: 1.12rem; }
.process span { color: var(--muted); }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .process li { padding: 58px 0 0; }
  .process li::after { content: ""; position: absolute; left: 48px; right: -20px; top: 20px; border-top: 2px solid var(--teal); opacity: .35; }
  .process li:last-child::after { display: none; }
}

/* 의료진 */
.doctors { display: grid; gap: 32px; }
.doctor { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; }
.doctor img { width: 112px; height: 140px; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); background: var(--mist); }
.doctor h3 { font-family: var(--font-head); font-size: 1.35rem; margin: 0; }
.doctor-role { color: var(--teal-deep); font-weight: 600; margin: 2px 0 8px; }
.doctor ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
/* 의료진 칸 — 치료 체계 한 줄·주로 보는 분야·진료 요일 (5단계 2026-10-29) */
.doctors-lead { margin: -4px 0 22px; max-width: 46em; line-height: 1.7; }
.doctor-facts { margin: 0 0 10px; display: grid; gap: 4px; }
.doctor-facts { gap: 8px; }
.doctor-facts dt { font-weight: 700; font-size: .9rem; color: var(--teal-deep); margin: 0; }
.doctor-facts dd { margin: 0; line-height: 1.55; }
@media (min-width: 760px) {
  .doctors { grid-template-columns: 1fr 1fr; gap: 48px; }
  .doctor { grid-template-columns: 160px 1fr; }
  .doctor img { width: 160px; height: 200px; }
}

/* 처음 오시는 분 */
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--teal-deep); }
.facts dd { margin: 0; }

/* 질문 목록 */
.q-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.q-list a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.q-list a::before { content: "Q. "; color: var(--teal); font-family: var(--font-head); font-weight: 700; }
.q-list a:hover { color: var(--teal-deep); }

/* 진료시간 · 오시는 길 */
.visit { display: grid; gap: 40px; }
.visit h2 { margin-bottom: 14px; }
.visit-addr { font-weight: 700; margin: 0 0 2px; }
.parking { padding-left: 1.2em; color: var(--muted); }
.parking strong { color: var(--ink); }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ── 아래 고정 예약 줄 · 바닥 ── */
.cta { position: sticky; bottom: 0; background: var(--teal-deep); z-index: 4; }
.cta-row { display: flex; justify-content: space-around; gap: 8px; padding: 12px 16px; }
.cta a { color: #fff; font-weight: 700; text-decoration: none; font-size: .98rem; }
@media (min-width: 900px) { .cta { display: none; } }
.site-footer { background: var(--ink); color: #c9d6d5; font-size: .88rem; padding: 32px 0 40px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }

body.handout .gnb { display: none; }   /* 환자 안내문: 메뉴를 줄이고 읽기에 집중 */

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .content > h1 { font-size: 1.75rem; }
  .content h2 { font-size: 1.3rem; margin-top: 44px; }
  .gnb .wrap { gap: 2px 16px; font-size: .96rem; }
  .header-row { min-height: 56px; }
  .call { display: none; }                 /* 좁은 화면에서는 아래 고정 줄에 전화가 있다 */
  .band { padding: 40px 0; }
  .band h2 { font-size: 1.5rem; }
  .btn { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .cta, .page-cta, .page-toc { display: none; } }

/* 본문 사진 */
.content img.figure { display: block; width: 100%; border-radius: var(--radius); margin: 24px 0; }
.content img.portrait { display: block; width: 200px; height: 250px; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); margin: 8px 0 16px; background: var(--mist); }
@media (min-width: 760px) { .content img.portrait { float: right; margin: 0 0 16px 28px; width: 220px; height: 275px; } .content h2 { clear: both; } }
.hero-line { display: block; }
@media (max-width: 600px) {
  /* 휴대폰: 바로 가기 단추는 한 줄로 두고 옆으로 민다 — 본문이 아래로 밀리지 않게 */
  .page-toc ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .page-toc a { white-space: nowrap; }
}

/* 넓은 화면: 첫 화면 사진이 너무 커지지 않게 */
@media (min-width: 900px) {
  .hero.has-photo { max-height: 620px; overflow: hidden; }
  .hero.has-photo .hero-photo { min-height: 0; height: 620px; }
}
/* 메뉴 펼침: 화면 밖으로 나가지 않게 */
.gnb details[open] > .mega { left: 0; max-height: 72vh; overflow-y: auto; }

/* 첫 화면 영상 — 사진과 같은 자리·같은 크기 */
video.hero-photo { object-position: 60% 0%; background: var(--mist); }
/* 머리 — 로고와 메뉴 글자를 키움 (원장님 2026-10-13) */
.logo img { height: 44px; }
.gnb .wrap { font-size: 1.08rem; gap: 2px 32px; }
.header-row { min-height: 72px; }
@media (min-width: 900px) { .logo img { height: 52px; } .gnb .wrap { font-size: 1.12rem; } }
@media (max-width: 600px) { .logo img { height: 40px; } }

/* 첫 화면 영상 멈춤 단추 · 휴대폰에서 예약 버튼이 첫 화면 안에 들어오게 (지피 검수 2026-10-13) */
.hero { position: relative; }
.hero-pause { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 6px 12px; font: inherit; font-size: .85rem; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.45); color: #fff; border-radius: 999px; cursor: pointer; }
.hero-pause[hidden] { display: none; }
@media (min-width: 900px) { .hero-pause { right: 16px; bottom: 16px; top: auto; } }
@media (max-width: 600px) {
  .hero-photo { height: 230px; }
  .hero-text { padding: 22px 20px 28px; }
  .hero h1 { font-size: 1.9rem; margin-bottom: 10px; }
  .hero-name { font-size: .95rem; margin-bottom: 6px; }
  .hero-lead { font-size: 1.05rem; line-height: 1.6; }
  .hero-place { margin-bottom: 14px; }
  .hero-note { margin-top: 10px; }
  .cta-row { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ── 디자인 2차 (2026-10-13, 지피 검수 반영): 메인 강약 · 원내 사진 · 본문 2열 ── */
/* 분야 — 사진 카드 (메인에서 가장 눈에 띄는 칸) */
.field-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field-cards li { margin: 0; }
.field-cards li { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); height: 100%; }
.field-cards img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); }
.field-cards strong { display: block; font-family: var(--font-head); font-size: 1.18rem; padding: 12px 14px 2px; }
.field-cards span { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 14px 14px; }
.field-cards span a { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; text-decoration: none; line-height: 1.4; }
.field-cards span a:hover { border-color: var(--teal); color: var(--teal-deep); }
@media (min-width: 760px) {
  .field-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .field-cards strong { font-size: 1.3rem; padding: 14px 18px 4px; }
  .field-cards span { padding: 8px 18px 18px; }
  .field-cards span a { font-size: .95rem; }
}
/* 의료진 — 큰 사진 */
.doctors-lg .doctor { grid-template-columns: 1fr; gap: 14px; }
.doctors-lg .doctor img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
@media (min-width: 760px) {
  .doctors-lg .doctor { grid-template-columns: 240px 1fr; gap: 28px; }
  .doctors-lg .doctor img { width: 240px; height: 300px; }
}
/* 진료 공간 */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery li { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery span { position: absolute; left: 0; bottom: 0; padding: 6px 12px; font-size: .9rem; font-weight: 600; color: #fff; background: rgba(27,42,43,.55); border-top-right-radius: var(--radius); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
/* 본문 2열 — PC에서 오른쪽에 바로 가기·예약 */
.side { display: none; }
@media (min-width: 1000px) {
  main.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 56px; align-items: start; }
  main.has-aside .content { max-width: var(--measure); }
  main.has-aside .page-toc { display: none; }           /* 위쪽 단추 줄 대신 오른쪽 목차 */
  .side { display: block; position: sticky; top: 128px; }
  .side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
  .side-title { margin: 0 0 8px; font-family: var(--font-head); font-size: 1.05rem; }
  .side-toc { list-style: none; margin: 0 0 16px; padding: 0; font-size: .95rem; }
  .side-toc li { margin: 0; border-top: 1px solid var(--line); }
  .side-toc a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; }
  .side-toc a:hover { color: var(--teal-deep); }
  .side-cta { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
  .side-cta .btn { text-align: center; }
  .side .note { margin: 0; font-size: .85rem; }
}

/* 위 메뉴 네 탭 (2026-10-13) */
.gnb .gnb-link { font-weight: 600; padding: 4px 0; color: var(--ink); text-decoration: none; }
.gnb .gnb-link:hover { color: var(--teal-deep); }
.gnb details[open] > .mega.mega-one { width: auto; min-width: 240px; grid-template-columns: 1fr; }
.gnb .mega { width: min(92vw, 560px); }
@media (max-width: 600px) { .gnb .wrap { gap: 2px 14px; font-size: .95rem; } }

/* ── 디자인 3차 (2026-10-13, 원장님: 마르엔처럼 화면 가득 영상 + 왼쪽 흰 글자) ── */
/* 머리: 로고 · 메뉴 · 예약을 한 줄에 */
.header-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.site-header .gnb { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 2px 22px; padding-bottom: 6px; }
.site-header .header-actions { margin-left: auto; }
@media (min-width: 1000px) {
  .header-bar { flex-wrap: nowrap; min-height: 80px; }
  .site-header .gnb { order: 0; width: auto; flex: 1; justify-content: center; padding-bottom: 0; gap: 2px 30px; font-size: 1.06rem; }
}
/* 첫 화면: 영상이 화면을 가득 채우고 글자는 왼쪽에 흰색 */
.hero, .hero.has-photo { display: flex; align-items: center; position: relative; background: #16292b; max-height: none; min-height: clamp(520px, 76vh, 780px); overflow: hidden; }
.hero .hero-photo, .hero.has-photo .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; object-position: 62% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,32,.80) 0%, rgba(10,30,32,.58) 42%, rgba(10,30,32,.18) 100%); pointer-events: none; }
.hero .hero-text, .hero.has-photo .hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 64px 20px 72px; justify-self: auto; color: #fff; }
.hero h1, .hero .hero-lead, .hero .hero-place, .hero .hero-note { color: #fff; }
.hero .hero-name { color: #a9dcd6; }
.hero .hero-lead { opacity: .94; max-width: 26em; }
.hero .hero-place { opacity: .78; }
.hero .hero-note { opacity: .72; }
.hero .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.hero .btn-line:hover { background: rgba(255,255,255,.14); }
.hero-pause, .hero .hero-pause { z-index: 2; top: auto; bottom: 16px; right: 16px; }
@media (max-width: 600px) {
  .hero, .hero.has-photo { min-height: 72vh; }
  .hero .hero-photo { height: 100%; }
  .hero .hero-text { padding: 48px 20px 56px; }
  .hero h1 { font-size: 2.1rem; }
}
/* 오른쪽 떠 있는 빠른 단추 (PC) */
.side-float { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 10px; z-index: 4; }
.side-float a { width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 4px 18px rgba(14,60,60,.18); display: grid; place-items: center; align-content: center; gap: 0; text-align: center; font-size: .7rem; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.15; }
.side-float strong { display: block; font-size: 1.05rem; color: var(--teal); line-height: 1; margin-bottom: 2px; }
.side-float a:hover { background: var(--mist); }
@media (min-width: 900px) { .side-float { display: flex; } }
/* PC 머리 한 줄 유지 — 1000~1399px에서는 전화번호 글자를 숨기고 메뉴 간격을 줄인다(예약하기 단추는 유지) */
@media (min-width: 1000px) and (max-width: 1499px) {
  .site-header .call { display: none; }
  .site-header .gnb { gap: 2px 18px; font-size: .98rem; }
  .logo img { height: 44px; }
}
@media (min-width: 1500px) { .site-header .gnb { gap: 2px 28px; } }
/* 넓은 화면: 머리 줄은 본문(1120px)보다 넓게 써서 메뉴 8개가 한 줄에 들어가게 (원장님 2026-10-14, 2000px 화면에서 두 줄로 접힘) */
@media (min-width: 1000px) {
  .site-header .header-bar { max-width: 1480px; }
}
@media (min-width: 1300px) {
  .site-header .gnb { flex-wrap: nowrap; }
  .gnb summary, .gnb .gnb-link { white-space: nowrap; }
}

/* 휴대폰·태블릿: 메뉴를 한 줄로 두고 옆으로 민다. 펼침 목록은 머리 아래 전체 폭으로 (원장님 2026-10-13) */
.header-bar { position: relative; }
@media (max-width: 999px) {
  .site-header .gnb { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; gap: 0 20px; padding: 2px 0 8px; -webkit-overflow-scrolling: touch; }
  .site-header .gnb::-webkit-scrollbar { display: none; }
  .gnb summary, .gnb .gnb-link { white-space: nowrap; }
  .gnb details { position: static; }
  .gnb details[open] > ul, .gnb details[open] > .mega, .gnb details[open] > .mega.mega-one { position: absolute; left: 0; right: 0; top: 100%; width: auto; min-width: 0; max-height: 60vh; overflow-y: auto; border-radius: 0 0 var(--radius) var(--radius); padding: 10px 20px 14px; }
  .gnb details[open] > .mega { grid-template-columns: 1fr 1fr; }
}

/* ── 휴대폰: ☰ 메뉴 단추로 펼치는 메뉴 + 아이콘 있는 아래 고정 줄 (원장님 2026-10-13, 가까이한의원 참고) ── */
.menu-toggle { display: none; }
@media (max-width: 999px) {
  .header-bar { min-height: 60px; padding: 4px 0; }
  .site-header .header-actions { gap: 10px; }
  .site-header .call { display: none; }
  .menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .62rem; font-weight: 700; cursor: pointer; }
  .menu-bars { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
  .menu-bars::before { top: -7px; } .menu-bars::after { top: 7px; }
  .is-open .menu-bars { background: transparent; }
  .is-open .menu-bars::before { top: 0; transform: rotate(45deg); } .is-open .menu-bars::after { top: 0; transform: rotate(-45deg); }
  /* 메뉴 본체: 평소엔 숨기고, 열면 머리 아래로 떨어지는 판 */
  .site-header .gnb { display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto; order: 0; flex-wrap: wrap; overflow: visible; padding: 6px 0 10px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(14,60,60,.14); max-height: calc(100vh - 140px); overflow-y: auto; }
  .site-header.is-open .gnb { display: block; }
  .gnb > details, .gnb > .gnb-link { display: block; margin: 0 20px; border-bottom: 1px solid var(--line); }
  .gnb > details:last-child, .gnb > .gnb-link:last-child { border-bottom: 0; }
  .gnb summary, .gnb .gnb-link { display: block; padding: 13px 0; font-size: 1.06rem; white-space: normal; }
  .gnb summary::after { content: "▾"; float: right; color: var(--muted); }
  .gnb details[open] > summary::after { content: "▴"; }
  .gnb details[open] > ul, .gnb details[open] > .mega, .gnb details[open] > .mega.mega-one { position: static; display: block; width: auto; max-height: none; overflow: visible; border: 0; box-shadow: none; padding: 0 0 10px 12px; border-radius: 0; }
  .gnb .mega > div + div { margin-top: 8px; }
  .gnb .mega strong { display: block; margin-bottom: 2px; }
  .gnb li a { padding: 6px 0; color: var(--muted); }
}
/* 아래 고정 줄 — 아이콘 + 글자, 전화는 채운 칸 */
.cta { background: #fff; border-top: 1px solid var(--line); }
.cta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; }
.cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); font-size: .78rem; font-weight: 700; color: var(--ink); text-decoration: none; border-left: 1px solid var(--line); }
.cta a:first-child { border-left: 0; }
.cta svg { width: 24px; height: 24px; fill: var(--teal); }
.cta a.cta-main { background: var(--teal); color: #fff; }
.cta a.cta-main svg { fill: #fff; }
/* ☰ 단추: 세 줄과 「메뉴/닫기」 글자가 겹치던 것 고침 — 세 줄을 16px 상자 안에 그린다 */
@media (max-width: 999px) {
  .menu-toggle { gap: 4px; }
  .menu-bars { width: 22px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 22px 2px no-repeat; }
  .menu-bars::before { top: 0; } .menu-bars::after { top: 14px; }
  .is-open .menu-bars { background: none; }
  .is-open .menu-bars::before { top: 7px; transform: rotate(45deg); } .is-open .menu-bars::after { top: 7px; transform: rotate(-45deg); }
}

/* ── 질환 페이지 첫 화면 띠: 묶음 훅 + 영상 (가까이한의원 통증 탭 참고, 2026-10-13) ── */
.band-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(360px, 52vh, 560px); background: #16292b; overflow: hidden; }
.band-media { position: absolute; inset: 0; }
.band-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.band-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,32,.28) 0%, rgba(10,30,32,.58) 55%, rgba(10,30,32,.86) 100%); pointer-events: none; }  /* 자연 영상은 밝아서 그늘을 더 줌 (2026-10-18) */
.band-text { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 0 18px rgba(0,0,0,.25); width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 48px 20px 44px; color: #fff; }
.band-label { margin: 0 0 10px; font-weight: 700; font-size: .98rem; color: #a9dcd6; }
.band-hook { margin: 0 0 14px; font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.3; max-width: 22em; }
.band-lead { margin: 0; max-width: 34em; opacity: .9; line-height: 1.7; }
@media (max-width: 600px) { .band-hero { min-height: 62vh; } .band-text { padding: 36px 20px 34px; } .band-label { font-size: 1.05rem; } .band-hook { font-size: 2.05rem; line-height: 1.28; } .band-lead { font-size: 1.08rem; line-height: 1.6; } }  /* 원장님 2026-10-14: 휴대폰에서 띠 글자가 작다 → 키움 */
@media (prefers-reduced-motion: reduce) { .band-video { display: none; } .band-hero { background: var(--teal-deep); } }

/* 실손24 안내(2026-10-18): 단계별 실제 앱 화면 사진 — 넓은 화면은 오른쪽, 휴대폰에서는 가운데 */
.content figure.shot { margin: 12px auto 18px; max-width: 220px; }
.content figure.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--mist); }
@media (min-width: 760px) { .content figure.shot { float: right; width: 220px; margin: 0 0 20px 28px; } .content figure.shot ~ h3 { clear: both; margin-top: 40px; } }

/* 제목 아래 한 줄 훅 (원장님 선택 2026-10-18, 페이지별) */
.page-hook { margin: -6px 0 22px; font-family: var(--font-head); font-size: 1.22rem; line-height: 1.55; color: var(--teal-deep); max-width: var(--measure); }
@media (min-width: 760px) { .page-hook { font-size: 1.35rem; } }

/* ── 메인: 태강은 이렇게 진료합니다 · 원장의 말 · 숫자 (2026-10-18, 원장님 인터뷰) ── */
.principles { list-style: none; margin: 0; padding: 0; counter-reset: pr; display: grid; gap: 18px; }
.principles li { counter-increment: pr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px 22px; position: relative; }
.principles li::before { content: "0" counter(pr); display: block; font-family: var(--font-head); font-size: .95rem; color: var(--teal); letter-spacing: .08em; margin-bottom: 8px; }
.principles strong { display: block; font-family: var(--font-head); font-size: 1.22rem; line-height: 1.35; margin-bottom: 8px; }
.principles span { color: var(--muted); line-height: 1.65; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); gap: 20px; } .principles strong { font-size: 1.3rem; } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.band-dark { background: var(--teal-deep); color: #fff; }
.band-dark h2 { color: #fff; }
.voice { display: grid; gap: 24px; align-items: center; }
.voice-photo { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); margin: 0 auto; }
.voice-text p { font-size: 1.05rem; line-height: 1.85; opacity: .95; max-width: 34em; }
.creed { max-width: 820px; }
.creed-slogan { font-family: var(--font-head); font-size: 1.6rem; color: #a9dcd6; margin: -6px 0 18px; }
.creed-text p { font-size: 1.05rem; line-height: 1.85; opacity: .95; }
@media (min-width: 900px) { .creed-text { columns: 2; column-gap: 48px; } .creed-text p { break-inside: avoid; margin-top: 0; font-size: 1.08rem; } }
@media (min-width: 900px) { .voice { grid-template-columns: 300px 1fr; gap: 48px; } .voice-text p { font-size: 1.12rem; } }
.numbers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.numbers li { border-top: 3px solid var(--teal); padding: 14px 4px 0; }
.numbers strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1.1; color: var(--teal-deep); }
.numbers span { display: block; font-weight: 600; margin-top: 6px; }
.numbers small { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; line-height: 1.45; }
@media (min-width: 760px) { .numbers { grid-template-columns: repeat(4, 1fr); gap: 24px; } .numbers strong { font-size: 2.4rem; } }

/* ── 띠 펼침(스크롤 연동) + 본문 순차 등장 — 가까이한의원 참고, 2026-10-18. band_motion: true 인 페이지만 ── */
/* 무대: 화면 높이 + 펼침 거리. 안의 띠는 sticky 로 붙어 있고, 스크롤 비율(--p: 0→1)을 스크립트가 넣는다 */
.band-stage { --p: 0; --extra: 80vh; --hdr: 80px; position: relative; height: calc(100vh - var(--hdr) + var(--extra)); }
.band-hero--motion { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); min-height: 0; background: var(--mist); }
/* 미디어: 처음엔 가운데 작은 상자(위 50%·좌우 14% 잘라냄) → 다 펼쳐지면 화면 전체 */
.band-hero--motion .band-media { clip-path: inset(calc(56% * (1 - var(--p))) 0 0 0);  /* 좌우는 처음부터 꽉 채움 (원장님 2026-10-18) */ will-change: clip-path; }
/* 덮개: 펼쳐질수록 짙게 */
.band-hero--motion::after { opacity: calc(.35 + .65 * var(--p)); }
/* 글자: 처음엔 위쪽(상자 위 빈자리)에 검은 글자 없이 — 흰 글자 그대로, 아래로 내려오며 또렷해짐 */
/* 글자: p=0 이면 위쪽 절반(상자 위 빈자리) 가운데 → p=1 이면 보통 띠처럼 아래쪽 */
.band-hero--motion .band-text { transform: translateY(calc((-72vh + 64px + 50%) * (1 - var(--p)))); will-change: transform; }
.band-hero--motion .band-lead { opacity: min(1, calc(var(--p) * 1.6)); }  /* 설명 줄은 펼쳐지면서 나타남 */
.band-hero--motion .band-label, .band-hero--motion .band-hook, .band-hero--motion .band-lead { color: #fff; }
/* 처음(상자 작을 때) 글자가 밝은 바탕 위에 놓이므로 바탕을 어둡게 */
.band-hero--motion { background: #16292b; }
@media (max-width: 999px) { .band-stage { --hdr: 60px; } }
@media (max-width: 600px) { .band-stage { --extra: 50vh; } .band-hero--motion .band-text { transform: translateY(calc((-72vh + 48px + 50%) * (1 - var(--p)))); } }
/* 스크립트가 없거나 움직임 줄이기면: 무대 없이 보통 띠 */
.band-stage.is-static { height: auto; }
.band-stage.is-static .band-hero--motion { position: relative; top: auto; height: auto; min-height: clamp(360px, 52vh, 560px); }
.band-stage.is-static .band-media { clip-path: none; }
.band-stage.is-static .band-text { transform: none; opacity: 1; }
.band-stage.is-static::after { opacity: 1; }
/* 본문 순차 등장: 스크립트가 .rv 를 붙인 뒤에만 숨겨지므로, 스크립트가 없으면 그대로 보인다 */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (max-width: 600px) { .rv { transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .band-stage { height: auto; }
  .band-hero--motion { position: relative; top: auto; height: auto; min-height: clamp(360px, 52vh, 560px); }
  .band-hero--motion .band-media { clip-path: none; }
  .band-hero--motion .band-text { transform: none; opacity: 1; }
  .band-hero--motion::after { opacity: 1; }
}

/* ── 강조 띠 (원장님 2026-10-18, 마르엔 참고 · 색은 옅게 — 원장님 10/18) — highlight: 로 지정한 절 하나 ── */
.content .callout { background: var(--mist); border: 1px solid #d6e6e4; color: var(--ink); border-radius: var(--radius); padding: 28px 24px 24px; margin: 48px 0 40px; }
.content .callout .callout-kicker { margin: 0 0 6px; font-size: .9rem; font-weight: 700; letter-spacing: .04em; color: var(--teal); }
.content .callout h2 { margin: 0 0 18px; padding: 0; border: 0; color: var(--teal-deep); font-size: 1.6rem; }
.content .callout p { color: var(--ink); }
.content .callout ul, .content .callout ol { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.content .callout li { margin: 0; background: #fff; border: 1px solid #d6e6e4; border-radius: 10px; padding: 12px 14px 12px 44px; position: relative; line-height: 1.55; }
.content .callout li::before { content: "→"; position: absolute; left: 16px; top: 11px; color: var(--teal); font-weight: 700; }
.content .callout li > ul { margin-top: 8px; }
.content .callout > p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .content .callout { margin-left: -20px; margin-right: -20px; border-radius: 0; border-left: 0; border-right: 0; padding: 26px 20px 22px; } .content .callout h2 { font-size: 1.4rem; } }
@media (min-width: 760px) { .content .callout { padding: 36px 36px 30px; } .content .callout h2 { font-size: 1.75rem; } }

/* 도해 설명 글 */
.content .figcap { margin: -12px 0 28px; font-size: .88rem; line-height: 1.6; color: var(--muted); }

/* 공지 띠 — content/_desk.yaml notice (데스크가 /admin/ 에서 켜고 끔) */
.site-notice { background: #fff6d6; border-bottom: 1px solid #f0dc9a; color: #5a4300; font-size: .95rem; }
.site-notice .wrap { padding: 10px 20px; }
.site-notice a { color: var(--teal-deep); font-weight: 600; margin-left: 6px; }

/* 질환 도해(지피 제작 26장, 2026-10-19) — 본문 너비, 비율 유지, 누르면 원본 새 창 */
.clinic-diagram{margin:2rem 0;width:100%;max-width:100%;clear:both}
.clinic-diagram__image{display:block;background:#fff;border:1px solid #e2e8ee;border-radius:12px;overflow:hidden}
.clinic-diagram__image:focus-visible{outline:3px solid #277e98;outline-offset:4px}
.clinic-diagram img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;margin:0}
.clinic-diagram figcaption{margin-top:.7rem;font-size:.94rem;line-height:1.65;color:#4b5b65}
.clinic-diagram__hint{display:block;margin-top:.25rem;font-size:.85rem;color:#447585}
li>.clinic-diagram{margin-top:1rem;margin-bottom:1.5rem}
.callout+.clinic-diagram{margin-top:1.2rem}
@media(max-width:640px){.clinic-diagram{margin:1.5rem 0}.clinic-diagram figcaption{font-size:.88rem}}

/* 오시는 길 단계 사진(원장님 촬영 2026-10-19, 얼굴·번호판 가림, 바닥 화살표) */
.content .route-steps + video.figure, .content video.figure.clip { margin-top: 8px; }
.route-steps { list-style: none; margin: 8px 0 24px; padding: 0; counter-reset: step; display: grid; gap: 22px; }
@media (min-width: 760px) { .route-steps { grid-template-columns: 1fr 1fr; } }
.route-steps li { counter-increment: step; position: relative; margin: 0; padding: 0; }
.route-steps li::before { content: counter(step); position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.route-steps img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 0; }
.route-steps p { margin: 10px 0 0; font-size: .95rem; line-height: 1.6; }
.parking .parking-warn { list-style: none; color: #8a3b12; background: #fff4ec; border: 1px solid #f3cfb3; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }

/* 세로 사진은 폭을 줄여 가운데 */
.content img.figure.tall { max-width: 520px; margin-left: auto; margin-right: auto; }

/* 본문 반복 영상(추나 클립, 2026-10-20) */
.content video.figure { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 24px 0; background: var(--mist); }

/* 첫 화면 영상 자르기 기준점 (원장님 2026-10-21): 넓은 화면은 더 높게 + 아래쪽(손·환자)이 보이게, 휴대폰은 오른쪽으로 밀어 글자 뒤에 얼굴이 안 겹치게 */
@media (min-width: 1300px) { .hero .hero-photo, .hero.has-photo .hero-photo { object-position: 60% 100%; } }
@media (max-width: 700px) { .hero .hero-photo, .hero.has-photo .hero-photo { object-position: 50% 50%; } .hero::after { background: linear-gradient(90deg, rgba(10,30,32,.72) 0%, rgba(10,30,32,.45) 60%, rgba(10,30,32,.25) 100%); } }

/* 함께 보기 — 관련 페이지 (2026-10-22) */
.related { margin: 36px 0 8px; padding: 18px 20px; background: var(--mist); border-radius: var(--radius); }
.related h2 { margin: 0 0 10px; font-size: 1.1rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.related li { margin: 0; line-height: 1.5; }
.related a { font-weight: 600; text-decoration: none; }
.related span { display: block; font-size: .9rem; color: var(--muted); }

.content .note-indiv { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--line); padding: 6px 12px; margin: 0 0 16px; }

/* 안내문 화면(layout: handout) — 메뉴·빠른바 없이 읽기에 집중 (원장님 2026-10-24) */
body.handout .header-bar { justify-content: space-between; }
body.handout .content { max-width: 760px; margin: 0 auto; }
body.handout main.wrap { padding-top: 8px; }
body.handout .band-hero, body.handout .band-stage { display: none; }
body.handout .page-hook { display: none; }
.handout-foot { margin: 40px auto 32px; max-width: 760px; padding: 18px 20px; background: var(--mist); border-radius: var(--radius); font-size: .95rem; }
.handout-foot p { margin: 0 0 10px; }
.handout-foot .btn { margin-right: 8px; }
@media print { body.handout .site-header, body.handout .site-footer, body.handout .handout-foot { display: none; } }
