:root {
  --ink: #12232b;
  --ink-2: #44565e;
  --ink-3: #6f8088;
  --line: #e2e8ea;
  --bg: #ffffff;
  --tint: #f3f7f7;
  --brand: #0e4a5a;
  --brand-2: #13697d;
  --brand-soft: #e3f0f2;
  --accent: #e8893a;
  --accent-soft: #fdf1e6;
  --dark: #0b2f39;
  --foot: #0a1f26;
  --page: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(14, 74, 90, .08);
  --head-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 17px; line-height: 1.75; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.03em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: .15s; white-space: nowrap; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* 머리 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { height: var(--head-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo b { display: block; font-size: 20px; letter-spacing: -0.04em; line-height: 1.1; }
.logo small { display: block; font-size: 9.5px; letter-spacing: .14em; color: var(--ink-3); font-weight: 600; }
.gnb { margin-left: auto; }
.gnb > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 10px 16px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 10px; }
.nav-item.is-active > a, .nav-item > a:hover { color: var(--brand); background: var(--brand-soft); }
.sub { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 6px 0 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.sub a:hover, .sub a[aria-current] { background: var(--tint); color: var(--brand); }
.head-cta { display: flex; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); padding: 12px 16px 24px; background: #fff; max-height: calc(100vh - var(--head-h)); overflow: auto; }
.mnav div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mnav p { margin: 0 0 4px; font-weight: 800; color: var(--brand); font-size: 14px; }
.mnav a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 14px 0 0; margin: 0; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }

/* 첫 화면 */
.hero { background: var(--hero, radial-gradient(1200px 500px at 85% 0%, var(--brand-soft), transparent 60%), linear-gradient(180deg, #fff, var(--tint))); padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand-2); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; margin-bottom: 18px; }
.hl { color: var(--brand); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-art { position: relative; height: 380px; }
.hero-card { position: absolute; width: 230px; padding: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 4px; color: var(--brand); }
.hero-card b { color: var(--ink); font-size: 19px; margin-top: 6px; }
.hero-card span { color: var(--ink-3); font-size: 14px; }
.hc1 { top: 0; left: 12%; }
.hc2 { top: 120px; right: 0; border-top: 4px solid var(--accent); }
.hc3 { bottom: 0; left: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 48px 0 0; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stats b { display: block; font-size: 30px; color: var(--brand); letter-spacing: -0.03em; line-height: 1.2; }
.stats span { color: var(--ink-2); font-size: 15px; }

/* 섹션 */
.sec { padding: 88px 0; }
.sec-tint { background: var(--tint); }
.sec-dark { background: var(--dark); color: rgba(255,255,255,.86); }
.sec-dark .sec-title { color: #fff; }
.num { font-size: 13px; font-weight: 800; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.sec-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 28px; }
.sec-title.sm { font-size: 24px; margin: 40px 0 18px; }
.sec-title.sm:first-child { margin-top: 0; }
.sec-title a { color: inherit; text-decoration: none; }
.sec-lead { color: var(--ink-2); font-size: 18px; }
.sec-more { margin-top: 28px; font-weight: 700; }
.sec-more a { text-decoration: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.phil { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phil.col { grid-template-columns: 1fr; }
.phil > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.phil-n { display: block; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.phil h2, .phil h3 { font-size: 21px; }
.phil p { color: var(--ink-2); margin: 0; }

.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.t-grid.big { margin-top: 0; }
.t-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: .18s; }
.t-card:hover { border-color: var(--brand-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.t-card.big { padding: 34px 30px; }
.t-ico { color: var(--brand); width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 8px; }
.t-card:not(.big) .t-ico { width: 52px; height: 52px; }
.t-name { font-size: 21px; font-weight: 800; }
.t-desc { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.more { color: var(--brand-2); font-weight: 700; font-size: 15px; margin-top: 8px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 15px; font-weight: 800; color: var(--accent); }
.steps b { display: block; }
.steps span { color: var(--ink-2); font-size: 15.5px; }

.doc-row { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.doc-photo { position: relative; margin: 0; aspect-ratio: 428 / 536; border-radius: 24px; overflow: hidden; background: #e9e9e9; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.doc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.doc-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--dark) 85%, transparent); color: #fff; font-size: 14px; backdrop-filter: blur(4px); }
.doc-photo figcaption b { font-size: 18px; margin-right: 4px; }
.work-row { align-items: center; }
.work-photo { margin: 0 auto; max-width: 520px; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.work-photo img { display: block; width: 100%; height: auto; }
.doc-quote { font-size: 18px; color: #fff; border-left: 3px solid var(--accent); padding-left: 18px; }
.doc-row.light .doc-quote { color: var(--ink); }
.doc-career { padding-left: 20px; margin: 20px 0 28px; }
.doc-career.dark { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips a { display: block; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); text-decoration: none; font-weight: 600; font-size: 15px; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.area-grid a { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
.area-grid a:hover { border-color: var(--brand-2); }
.area-grid b { display: block; font-size: 18px; margin-bottom: 4px; }
.area-grid span { font-size: 14.5px; color: var(--ink-2); }

.posts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.posts a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.posts a:hover { border-color: var(--brand-2); }
.post-meta { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.posts b { font-size: 17px; line-height: 1.5; }
.post-ex { font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 17.5px; position: relative; display: flex; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: '−'; }
.faq p { display: flex; gap: 12px; color: var(--ink-2); padding: 0 0 22px; margin: 0; }
.q, .a { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.q { background: var(--brand); color: #fff; }
.a { background: var(--accent-soft); color: var(--accent); }

.nap { display: grid; grid-template-columns: 80px 1fr; gap: 10px 16px; margin: 0 0 24px; }
.nap dt { font-weight: 700; color: var(--ink-3); }
.nap dd { margin: 0; }
.map-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hours th, .hours td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { width: 110px; font-weight: 700; }
.hours em { font-style: normal; font-size: 13px; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; margin-left: 6px; }
.hours tr.off td { color: var(--ink-3); }
.hours-note { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.big-quote { font-size: 20px; font-weight: 600; line-height: 1.7; margin-bottom: 32px; }

/* 하위 페이지 머리 */
.page-head { padding: 48px 0 56px; background: var(--hero, linear-gradient(180deg, #fff, var(--tint))); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.page-lead { font-size: 18.5px; color: var(--ink-2); max-width: 44em; margin: 0; }

/* 진료 글 */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 56px 0 88px; }
.summary-box { background: var(--brand-soft); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 48px; }
.summary-box h2 { font-size: 20px; color: var(--brand); }
.summary-box ul { margin: 0; padding-left: 20px; }
.summary-box li { margin: 6px 0; }
.art-sec { margin-bottom: 52px; }
.art-sec h2 { font-size: 27px; font-weight: 800; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.art-sec p { color: var(--ink-2); }
.check, .warn { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li, .warn li { position: relative; padding: 14px 18px 14px 50px; border-radius: 12px; background: var(--tint); }
.check li::before { content: '✓'; position: absolute; left: 18px; top: 13px; font-weight: 800; color: var(--brand-2); }
.warn li { background: var(--accent-soft); }
.warn li::before { content: '!'; position: absolute; left: 20px; top: 13px; font-weight: 900; color: var(--accent); }
.def-list { margin: 0; display: grid; gap: 10px; }
.def-list > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.def-list dt { font-weight: 800; margin-bottom: 4px; }
.def-list dd { margin: 0; color: var(--ink-2); }
.def-list.small > div { padding: 12px 16px; }
.table-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15.5px; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.cmp thead th { background: var(--brand); color: #fff; }
.cmp tbody th { background: var(--tint); white-space: nowrap; }
.reviewed { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.reviewed p { margin: 0; font-size: 15px; }
.reviewed span { color: var(--ink-3); font-size: 14px; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.side { position: relative; }
.side > * { margin-bottom: 16px; }
.toc { position: sticky; top: calc(var(--head-h) + 20px); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.toc p, .side-t { font-weight: 800; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.side-card { padding: 22px; border-radius: var(--radius); background: var(--tint); font-size: 15px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { display: block; padding: 6px 0; text-decoration: none; font-weight: 600; }

/* 상담 띠 */
.cta-band { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: rgba(255,255,255,.9); padding: 56px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band .eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.cta-band p { margin: 0; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* 바닥 */
.site-footer { background: var(--foot); color: rgba(255,255,255,.66); padding: 64px 0 100px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.2fr; gap: 36px; }
.site-footer h2 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.logo-inv b { color: #fff; }
.logo-inv small { color: rgba(255,255,255,.5); }
.foot-desc { margin: 16px 0; }
.foot-sns { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-sns a { padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 14px; }
.hours.compact { background: transparent; border: 0; font-size: 14px; }
.hours.compact th, .hours.compact td { padding: 5px 0; border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.82); }
.hours.compact th { width: 76px; }
.site-footer .hours-note { color: rgba(255,255,255,.5); }
.foot-nap { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; }
.foot-nap b { color: #fff; }
.legal { font-size: 13.5px; color: rgba(255,255,255,.5); }
.copy { font-size: 13px; color: rgba(255,255,255,.38); margin: 0; }

.mobile-bar { display: none; }

/* 태블릿 */
@media (max-width: 1080px) {
  .gnb, .head-cta { display: none; }
  .menu-btn { display: block; }
  .hero-grid, .two-col, .doc-row { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .doc-photo { max-width: 280px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* 휴대폰 */
@media (max-width: 680px) {
  :root { --head-h: 60px; }
  body { font-size: 16px; }
  .hero { padding: 36px 0 28px; }
  .hero-lead { font-size: 16.5px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .stats li { padding: 16px; }
  .stats b { font-size: 24px; }
  .stats span { font-size: 13.5px; }
  .sec { padding: 60px 0; }
  .phil, .t-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .art-sec h2 { font-size: 23px; }
  .summary-box { padding: 22px; }
  .hours th, .hours td { padding: 11px 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-btns .btn { flex: 1; justify-content: center; }
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; font-size: 12px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
  .mobile-bar a:first-child { color: #fff; background: var(--brand); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- 색 시안 (html data-theme) — 바탕·강조색만 바뀌고 배치는 같음 ---------- */
/* 블루: 맑고 신뢰감 있는 파랑. 지금 블로그 배너의 파란 띠와 어울림 */
[data-theme="blue"] {
  --brand: #1d4fb8; --brand-2: #2f6fe0; --brand-soft: #e7effd;
  --accent: #f29d38; --accent-soft: #fff3e3;
  --tint: #eef4ff; --dark: #0f2a5c; --foot: #0b1d40; --line: #dbe4f3;
  --hero: radial-gradient(900px 480px at 85% 10%, #cfe0ff, transparent 65%), linear-gradient(180deg, #e8f0ff, #f4f8ff);
}
/* 그린: 편안하고 자연스러운 초록. 잇몸·건강 이미지 */
[data-theme="green"] {
  --brand: #1f6b4a; --brand-2: #2b8a61; --brand-soft: #e5f3eb;
  --accent: #e28a3b; --accent-soft: #fcf0e4;
  --tint: #eef6f1; --dark: #133b2b; --foot: #0e2a1f; --line: #d9e8df;
  --hero: radial-gradient(900px 480px at 85% 10%, #cdebd9, transparent 65%), linear-gradient(180deg, #e6f4ec, #f3f9f5);
}
/* 옐로우: 밝고 따뜻한 크림·노랑. 글자·버튼은 진한 호박색이라 잘 읽힘 */
[data-theme="yellow"] {
  --brand: #8a5a08; --brand-2: #b07612; --brand-soft: #fff1c9;
  --accent: #e0a100; --accent-soft: #fff6d8;
  --tint: #fff7dc; --dark: #3a2c12; --foot: #2b210e; --line: #efe3c2; --page: #fffdf6;
  --hero: radial-gradient(900px 480px at 85% 10%, #ffe38a, transparent 65%), linear-gradient(180deg, #fff3c4, #fffaea);
}
/* 추천: 네이비 × 민트 — 석계탑치과 로고(남색·청록)와 같은 색 */
[data-theme="logo"] {
  --brand: #1e3a6d; --brand-2: #1f9a8a; --brand-soft: #e2f4f1;
  --accent: #1f9a8a; --accent-soft: #e2f4f1;
  --tint: #eef7f6; --dark: #142a52; --foot: #0e1f3d; --line: #d9e6e8;
  --hero: radial-gradient(900px 480px at 85% 10%, #c4ece5, transparent 65%), linear-gradient(160deg, #e6edf9, #ecf8f6);
}
[data-theme="logo"] .num, [data-theme="logo"] .phil-n, [data-theme="logo"] .steps li::before { color: var(--brand-2); }

/* 시안 비교용 색 바꾸기 단추 (시안 만들기 때만 들어감) */
.theme-pick { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }
.theme-pick button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.theme-pick button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 680px) { .theme-pick { bottom: 76px; right: 10px; } }

/* 로고 그림 */
.logo img { display: block; height: 40px; width: auto; }
@media (max-width: 680px) { .site-header .logo img { height: 32px; } }

/* 병원 둘러보기 · 단체 사진 · 포스터 */
.tour { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 20px; }
.tour figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--tint); position: relative; }
.tour img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.tour figure:hover img { transform: scale(1.03); }
.tour figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; }
.team-photo { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.team-photo img { display: block; width: 100%; height: auto; }
.team-photo figcaption { padding: 12px 16px; font-size: 14px; color: var(--ink-3); background: var(--page); }
.work-photo.wide { max-width: 900px; }
.work-photo img, .doc-photo img { max-width: 100%; }
.poster { margin: 0 0 32px; max-width: 520px; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.posters { display: flex; gap: 16px; margin: 0 0 32px; }
.posters .poster { margin: 0; flex: 1 1 0; }
.poster-center { margin: 0 auto; }
@media (max-width: 640px) { .posters { flex-direction: column; } }
.poster img { display: block; width: 100%; height: auto; }

/* 치료 사례 */
.case { margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--page); box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.case-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 16px; }
.case-no { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--brand); }
.case-head h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.case-head .case-info { flex-basis: 100%; margin: 0; font-size: 13.5px; color: var(--ink-3); }
.case-row + .case-row { margin-top: 14px; }
.case-step { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-2, var(--ink)); }
.case-step::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--brand); vertical-align: middle; }
.case-pics { display: flex; align-items: center; gap: 10px; }
.case-pics figure { position: relative; flex: 1 1 0; min-width: 0; margin: 0; border-radius: 14px; overflow: hidden; background: #0d0f12; aspect-ratio: var(--ar, 4 / 3); }
.case-pics img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-pics figcaption { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(17,20,24,.72); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -0.01em; backdrop-filter: blur(4px); }
.case-pics figure.is-after figcaption { background: var(--brand); }
.case-arrow { flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--tint); position: relative; }
.case-arrow::after { content: ''; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; border-top: 2px solid var(--brand); border-right: 2px solid var(--brand); transform: rotate(45deg); }
.case-note-text { margin: 16px 0 0; }
.case-risk { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: 13.5px; line-height: 1.6; }
.case-risk b { margin-right: 6px; }
.case-note { font-size: 13px; color: var(--ink-3); }
@media (max-width: 680px) {
  .case { padding: 16px; border-radius: 18px; }
  .case-pics { gap: 6px; }
  .case-arrow { flex-basis: 14px; height: 14px; }
  .case-arrow::after { left: 3px; top: 4px; width: 5px; height: 5px; }
  .case-pics figcaption { left: 6px; top: 6px; padding: 3px 8px; font-size: 11px; }
}
