/* =========================================================
   연세온마음치과 - 공통 스타일 (네이비 테마)
   색상/크기는 아래 :root 변수만 바꾸면 사이트 전체에 반영됩니다.
   ========================================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --navy: #013378;         /* 메인 네이비 */
  --navy-deep: #00214f;    /* 진한 네이비 (패널/푸터) */
  --blue: #2067c9;
  --sky: #5886e9;          /* 포인트 블루 */
  --sky-light: #9ebcff;
  --ice: #f0f4fb;          /* 밝은 섹션 배경 */
  --coral: #fb6654;        /* 작은 강조용 */
  --slate: #232a35;        /* 다크 섹션 */
  --text: #222;
  --text2: #4a4f57;
  --muted: #8a909a;
  --line: #dfe4ec;
  --hd: 70px;              /* 헤더 높이 */
  --hd-top: 18px;          /* 헤더 위 여백 */
  --gut: 36px;
  --wrap: 1008px;          /* 본문 폭 */
  --consult-h: 0px;        /* 하단 상담 신청 바를 뺐으므로 0 (2026-11-15) */
  --radius: 20px;
  --en: 'Outfit', 'Pretendard Variable', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text); background: #fff; line-height: 1.6; word-break: keep-all;
  -webkit-font-smoothing: antialiased; padding-bottom: var(--consult-h);
  background: var(--navy-deep);
}
main { background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
b, strong { font-weight: 700; }

.container { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.container.wide { max-width: 1440px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hl { color: var(--navy); }
.dark .hl, .navy .hl { color: var(--sky-light); }
.dark .hl.sky, .hl.sky { color: var(--sky); }

/* ---------- 이미지 자리(슬롯) ---------- */
.slot { position: relative; background-color: #dde4ee; background-position: center; background-size: cover; background-repeat: no-repeat; overflow: hidden; }
.slot:not(.is-loaded) { background-image: repeating-linear-gradient(-45deg, rgba(1,51,120,.045) 0 12px, transparent 12px 24px); }
.slot .ph-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; text-align: center; color: #7d8aa0; font-size: 14px; line-height: 1.4; pointer-events: none; }
.slot .ph-label::before { content: ''; width: 34px; height: 26px; margin-bottom: 6px; border: 2px solid currentColor; border-radius: 4px; opacity: .55; background: linear-gradient(135deg, transparent 55%, currentColor 55% 62%, transparent 62%); }
.slot .ph-label b { font-weight: 600; font-size: 15px; }
.slot .ph-label small { font-size: 12px; opacity: .85; font-family: ui-monospace, Consolas, monospace; }
.slot.is-loaded .ph-label { display: none; }
.slot.ph-dark { background-color: #2c3647; }
.slot.ph-dark .ph-label { color: #8e9bb2; }
.slot.contain { background-size: contain; }
.slot.contain.is-loaded { background-color: transparent; }
.slot[data-ph="corner"] .ph-label { inset: auto auto calc(var(--consult-h) + 28px) 28px; align-items: flex-start; text-align: left; }
.slot[data-ph="corner"] .ph-label::before { display: none; }

/* ---------- 공통 타이포 ---------- */
.en-eyebrow { font-family: var(--en); font-size: 16px; font-weight: 500; letter-spacing: .08em; color: var(--navy); text-transform: uppercase; }
.dark .en-eyebrow, .navy .en-eyebrow { color: var(--sky-light); }
.eyebrow { font-size: 18px; font-weight: 700; color: var(--navy); }
.dark .eyebrow { color: var(--sky-light); }
.tag { display: inline-block; padding: 4px 12px; background: var(--sky); color: #fff; font-size: 19px; font-weight: 600; }
.h-xl { font-size: 46px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; color: var(--text); }
.h-lg { font-size: 38px; font-weight: 700; line-height: 1.32; letter-spacing: -.035em; color: var(--text); }
.h-md { font-size: 30px; font-weight: 700; line-height: 1.38; letter-spacing: -.03em; color: var(--text); }
.lead { font-size: 18px; line-height: 1.75; color: var(--text2); }
.lead b { color: var(--text); }
.lead + .lead { margin-top: 22px; }
.dark { background: var(--slate); color: #fff; }
.navy { background: var(--navy-deep); color: #fff; }
.dark .h-xl, .dark .h-lg, .dark .h-md, .navy .h-xl, .navy .h-lg, .navy .h-md { color: #fff; }
.dark .lead, .navy .lead { color: #c9d1de; }
.dark .lead b, .navy .lead b { color: #fff; }
.center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; font-size: 17px; font-weight: 600; background: var(--navy); color: #fff; border-radius: 26px; transition: background .25s, color .25s; }
.btn:hover { background: var(--blue); }
.btn.line { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn.line:hover { background: var(--navy); color: #fff; }
.btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- 스크롤 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .85s ease, transform .85s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =========================================================
   헤더 (떠 있는 둥근 헤더)
   ========================================================= */
.site-header { position: fixed; top: var(--hd-top); left: var(--gut); right: var(--gut); height: var(--hd); z-index: 100; background: rgba(255,255,255,.97); border-radius: calc(var(--hd) / 2); box-shadow: 0 6px 28px rgba(0,33,79,.12); transition: top .3s, box-shadow .3s; }
.site-header.scrolled { top: 10px; box-shadow: 0 6px 24px rgba(0,33,79,.18); }
.hd-inner { height: 100%; display: flex; align-items: center; padding: 0 22px 0 34px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--navy); }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; background-color: transparent; border: 1px dashed #a9b6ca; }
.logo-mark:not(.is-loaded) { background-image: none; }
.logo-mark .ph-label { padding: 0; font-size: 9px; }
.logo-mark .ph-label::before, .logo-mark .ph-label small, .logo-mark .ph-label b { display: none; }
.logo-mark .ph-label::after { content: '로고'; }
.logo-mark.is-loaded { border: 0; background-size: contain; }
.consult-brand .logo-mark.is-loaded, .footer .logo-mark.is-loaded { background-color: #fff; background-size: 92%; box-shadow: 0 0 0 2px #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.logo-text small { font-family: var(--en); font-size: 9.5px; font-weight: 500; letter-spacing: .06em; color: var(--muted); margin-top: 3px; }

.gnb { margin-left: auto; height: 100%; }
.gnb > ul { display: flex; height: 100%; }
.gnb > ul > li { position: relative; height: 100%; }
.gnb > ul > li > a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 20px; font-size: 15.5px; font-weight: 500; color: #333; transition: color .25s; }
.gnb > ul > li > a::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: 18px; height: 2px; background: var(--navy); transform: scaleX(0); transition: transform .3s; }
.gnb > ul > li.on > a, .gnb > ul > li:hover > a { color: var(--navy); }
.gnb > ul > li.on > a::after, .gnb > ul > li:hover > a::after { transform: scaleX(1); }
.gnb .sub { position: absolute; top: calc(100% + 6px); left: 50%; min-width: 200px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(0,33,79,.14); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .25s; }
.gnb .sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.gnb li:hover > .sub, .gnb li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub a { display: block; padding: 10px 16px; border-radius: 10px; font-size: 14.5px; color: #555; white-space: nowrap; text-align: center; }
.gnb .sub a:hover, .gnb .sub a.on { color: var(--navy); background: var(--ice); font-weight: 600; }
.hd-tel { display: flex; align-items: center; gap: 8px; margin-left: 14px; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--navy); color: #fff; font-family: var(--en); font-size: 17px; font-weight: 600; flex-shrink: 0; transition: background .25s; }
.hd-tel:hover { background: var(--blue); }
.hd-tel svg { width: 16px; height: 16px; }

.hamburger { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.hamburger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--navy); border-radius: 2px; }
.hamburger span:nth-child(1) { top: 13px; } .hamburger span:nth-child(2) { top: 19px; } .hamburger span:nth-child(3) { top: 25px; }

/* 모바일 메뉴 */
.m-nav { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.m-nav .dim { position: absolute; inset: 0; background: rgba(0,20,50,.5); opacity: 0; transition: .3s; }
.m-nav .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff; transform: translateX(100%); transition: transform .35s ease; display: flex; flex-direction: column; }
.m-nav.open { visibility: visible; }
.m-nav.open .dim { opacity: 1; }
.m-nav.open .panel { transform: none; }
.m-nav .m-top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--navy); }
.m-nav .m-close { width: 40px; height: 40px; font-size: 28px; line-height: 1; }
.m-nav ul.m-menu { flex: 1; overflow: auto; }
.m-nav .m-menu > li { border-bottom: 1px solid var(--line); }
.m-nav .m-menu > li > a, .m-nav .m-menu > li > button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 18px 22px; font-size: 16px; font-weight: 600; text-align: left; }
.m-nav .m-menu > li > button::after { content: '+'; font-weight: 400; font-size: 20px; transition: transform .25s; }
.m-nav .m-menu > li.open > button::after { transform: rotate(45deg); }
.m-nav .m-sub { display: none; background: var(--ice); padding: 6px 0; }
.m-nav .m-menu > li.open .m-sub { display: block; }
.m-nav .m-sub a { display: block; padding: 11px 32px; font-size: 15px; color: #555; }
.m-nav .m-tel { margin: 20px; height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 26px; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; }
.m-nav .m-tel svg { width: 18px; height: 18px; }

/* =========================================================
   우측 퀵메뉴 (네이비 알약형)
   ========================================================= */
.quick-wrap { position: fixed; right: var(--gut); top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.quick { width: 66px; padding: 18px 0; border-radius: 33px; background: var(--navy); box-shadow: 0 10px 30px rgba(0,33,79,.25); display: flex; flex-direction: column; gap: 4px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; color: #fff; font-size: 10.5px; letter-spacing: -.04em; transition: opacity .2s; }
.quick a:hover { opacity: .75; }
.quick svg { width: 22px; height: 22px; }
.to-top { width: 66px; height: 66px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0,33,79,.16); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 26px; height: 26px; }
.m-quick { display: none; }

/* =========================================================
   하단 상담 바 (네이비, 접기 가능)
   ========================================================= */
.consult { position: fixed; left: 50%; bottom: 0; z-index: 95; width: min(1000px, calc(100% - var(--gut) * 2)); transform: translateX(-50%); transition: transform .4s ease; }
.consult.folded { transform: translate(-50%, calc(100% - 0px)); }
.consult-tab { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 30px; border-radius: 16px 16px 0 0; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.consult-tab svg { width: 18px; height: 18px; transition: transform .3s; }
.consult.folded .consult-tab svg { transform: rotate(180deg); }
.consult-box { background: var(--navy); color: #fff; border-radius: 26px 26px 0 0; height: var(--consult-h); padding: 0 36px; display: grid; grid-template-columns: 210px 1fr 180px; align-items: center; gap: 28px; box-shadow: 0 -8px 30px rgba(0,33,79,.25); }
.consult-brand { display: flex; align-items: center; gap: 10px; }
.consult-brand .logo-mark { border-color: rgba(255,255,255,.5); }
.consult-brand .logo-mark .ph-label { color: #fff; }
.consult-brand strong { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.consult-form { display: grid; grid-template-columns: 1fr 1fr 1fr 80px; grid-template-rows: auto auto; gap: 8px 8px; align-items: center; }
.consult-form input[type=text], .consult-form input[type=tel], .consult-form select { height: 34px; width: 100%; padding: 0 10px; border: 0; border-radius: 3px; background: #fff; color: #222; font-size: 13.5px; }
.consult-form select:invalid { color: #999; }
.consult-form input::placeholder { color: #999; }
.consult-form button[type=submit] { grid-row: 1 / span 2; grid-column: 4; height: 52px; border-radius: 6px; background: #fff; color: var(--navy); font-weight: 700; font-size: 14.5px; transition: background .2s; }
.consult-form button[type=submit]:hover { background: var(--ice); }
.consult-agree { grid-column: 1 / span 3; display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.consult-agree input { width: 16px; height: 16px; accent-color: var(--sky); }
.consult-agree a { text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
.consult-call small { display: block; font-size: 12.5px; opacity: .85; }
.consult-call a { font-family: var(--en); font-size: 25px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.consult-toggle { display: none; }

/* =========================================================
   메인 1 - 히어로
   ========================================================= */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: #1b2a44; }
.hero > .slot { position: absolute; inset: 0; background-color: #2a3a57; }
.hero > .slot.is-loaded { animation: heroZoom 16s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 21px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 15px; font-weight: 600; color: #fff; }
.hero-points svg { width: 18px; height: 18px; color: var(--sky-light); flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .hero > .slot.is-loaded { animation: none; } }
.hero > .slot .ph-label { color: rgba(255,255,255,.8); z-index: 2; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,22,58,.25), rgba(0,22,58,.55)); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: calc(var(--hd) + var(--hd-top)) 20px var(--consult-h); }
.hero .en-eyebrow { color: #dfe8ff; letter-spacing: .2em; font-size: 15px; }
.hero h1 { margin-top: 20px; font-size: 56px; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.hero h1 em { font-style: normal; color: #b9cdff; }
.hero .hero-desc { margin-top: 34px; font-size: 19px; font-weight: 500; color: #eef2fa; }
.hero .hero-name { margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.scroll-hint { position: absolute; left: 50%; bottom: calc(var(--consult-h) + 54px); z-index: 2; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--en); font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.8); }
.scroll-hint::after { content: ''; width: 1px; height: 46px; background: linear-gradient(#fff, transparent); animation: drop 1.8s infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
/* 화면 세로가 낮으면(노트북·모바일) SCROLL 표시가 문구와 겹치므로 숨깁니다 */
@media (max-height: 920px) { .scroll-hint { display: none; } }

/* =========================================================
   메인 2 - 1:1 책임진료 (이미지 + 네이비 패널)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split > .slot { min-height: 560px; }
.split-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 40px; }
.split-panel .ring { position: absolute; right: -120px; top: 50%; width: 520px; height: 520px; margin-top: -260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.04); box-shadow: inset 0 0 0 30px rgba(255,255,255,.02); }
.split-panel .small { position: relative; font-size: 20px; font-weight: 600; color: #dfe6f2; }
.split-panel .big { position: relative; margin-top: 18px; font-size: 38px; font-weight: 700; line-height: 1.38; letter-spacing: -.03em; }
.split-panel .big em { font-style: normal; color: var(--sky-light); }
.split-panel .vline { position: relative; width: 1px; height: 64px; background: rgba(255,255,255,.7); margin: 30px 0; }
.split-panel .name { position: relative; font-size: 44px; font-weight: 800; letter-spacing: -.04em; }
.split-panel .name-en { position: relative; margin-top: 8px; font-family: var(--en); font-size: 16px; letter-spacing: .18em; color: var(--sky-light); }

/* =========================================================
   메인 3 - 의료진 (프로필형)
   ========================================================= */
.doctor { position: relative; overflow: hidden; padding: 130px 0 0; background: linear-gradient(180deg, #f3f6fb 0%, #e9eff8 100%); }
.doctor .wm { position: absolute; left: 30px; bottom: 10px; font-family: var(--en); font-size: 128px; font-weight: 700; letter-spacing: -.01em; color: rgba(1,51,120,.04); white-space: nowrap; pointer-events: none; line-height: 1; }
.doctor-head .h-xl { margin-top: 14px; }
.doc-tabs { display: flex; gap: 10px; margin-top: 34px; }
.doc-tabs button { height: 42px; padding: 0 22px; border-radius: 21px; border: 1px solid #c5d0e2; background: #fff; font-size: 15px; font-weight: 600; color: #556; transition: .25s; }
.doc-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.doc-panel { position: relative; display: none; grid-template-columns: 1fr 400px; gap: 30px; align-items: end; margin-top: 40px; }
.doc-panel.on { display: grid; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.doc-info { padding-bottom: 120px; }
.doc-name { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid #c9d3e3; }
.doc-name strong { font-size: 46px; font-weight: 800; letter-spacing: .32em; color: var(--text); }
.doc-name .tag { background: var(--navy); font-size: 17px; }
.doc-careers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 28px; }
.doc-careers ul + ul { margin-top: 14px; }
.doc-careers li { position: relative; padding-left: 13px; font-size: 14.5px; line-height: 1.95; color: #444; }
.doc-careers li::before { content: ''; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--navy); }
.doc-photo { aspect-ratio: 400 / 520; background-color: transparent; }
.doc-photo:not(.is-loaded) { background-color: rgba(1,51,120,.06); border-radius: 200px 200px 0 0; }
.doc-photo.is-loaded { background-size: contain; background-position: bottom center; }
.doc-photo.cover { align-self: center; border-radius: 200px 200px 24px 24px; box-shadow: 0 20px 50px rgba(0,33,79,.16); margin-bottom: 60px; }
.doc-photo.cover.is-loaded { background-size: cover; background-position: center top; background-color: #eef1f5; }
/* 사진 없는 원장님: 약력만 넓게 */
.doc-panel.no-photo { grid-template-columns: 1fr; }
.doc-panel.no-photo .doc-info { padding: 40px 48px 56px; margin-bottom: 80px; background: #fff; border-radius: 24px; box-shadow: 0 14px 40px rgba(0,33,79,.08); }
.doc-panel.no-photo .doc-careers { grid-template-columns: 1fr 1fr; gap: 0 60px; }

/* 배너 띠 */
.bnr { display: flex; align-items: center; justify-content: center; gap: 20px; height: 80px; background: linear-gradient(90deg, #013378, #2067c9 55%, #013378); color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.03em; transition: filter .25s; }
.bnr:hover { filter: brightness(1.08); }
.bnr em { font-style: normal; color: var(--sky-light); }
.bnr .circle-arr { width: 44px; height: 44px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; transition: transform .25s; }
.bnr:hover .circle-arr { transform: translateX(6px); }
.bnr .circle-arr svg { width: 22px; height: 22px; }

/* 소개 카드 */
.intro-card-sec { position: relative; padding-bottom: 120px; }
.intro-card-sec > .slot { height: 220px; }
.intro-card { position: relative; margin-top: -90px; display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: center; padding: 46px 56px; background: #fff; border-radius: 20px; box-shadow: 0 16px 44px rgba(0,33,79,.1); }
.intro-card .ic-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--navy); }
.intro-card .ic-logo .logo-mark { width: 92px; height: 92px; }
.intro-card .ic-logo strong { font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.intro-card .ic-logo small { font-family: var(--en); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.intro-card .h-md { color: var(--text); }
.intro-card .h-md .hl { color: var(--navy); }
.intro-card p.lead { margin-top: 14px; font-size: 16.5px; }

/* =========================================================
   메인 4 - 진료과목 (탭 + 슬라이드)
   ========================================================= */
.subjects { padding: 30px 0 130px; }
.sec-head { text-align: center; margin-bottom: 50px; }
.sec-head .h-xl, .sec-head .h-lg { margin-top: 12px; }
.sec-head .lead { margin-top: 16px; }
.subj-tabs { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
.subj-tabs button { position: relative; height: 56px; font-size: 16px; font-weight: 500; color: #444; transition: color .2s; }
.subj-tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--navy); transform: scaleX(0); transition: transform .3s; }
.subj-tabs button.on { color: var(--navy); font-weight: 700; }
.subj-tabs button.on::after { transform: scaleX(1); }
.subj-stage { position: relative; margin-top: 30px; }
.subj-panel { display: none; grid-template-columns: 504px 1fr; gap: 58px; align-items: center; }
.subj-panel.on { display: grid; animation: fadeUp .5s ease; }
.subj-panel .slot { aspect-ratio: 504 / 370; border-radius: 20px; border: 1px solid var(--line); }
.subj-panel .en { font-family: var(--en); font-size: 15px; letter-spacing: .04em; color: var(--sky); }
.subj-panel h3 { margin-top: 6px; font-size: 36px; font-weight: 700; letter-spacing: -.03em; }
.subj-panel p { margin-top: 20px; font-size: 16.5px; line-height: 1.8; color: var(--text2); }
.subj-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 46px; }
.subj-ctrl .count { font-family: var(--en); font-size: 15px; color: var(--muted); margin-right: 8px; }
.subj-ctrl .count b { font-size: 19px; color: var(--navy); }
.subj-ctrl .arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ccd3de; display: grid; place-items: center; color: #555; transition: .2s; }
.subj-ctrl .arrow:hover { border-color: var(--navy); color: var(--navy); }
.subj-ctrl .arrow svg { width: 16px; height: 16px; }
.subj-ctrl .more { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.subj-ctrl .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   메인 5 - 디지털 장비 브랜딩 (다크)
   ========================================================= */
.brand { padding: 130px 0; }
.brand .sec-head .tag { font-size: 17px; }
.brand-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand-card { border: 1px solid rgba(255,255,255,.14); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.03); transition: transform .35s, border-color .35s; }
.brand-card:hover { transform: translateY(-6px); border-color: rgba(158,188,255,.5); }
.brand-card .slot { aspect-ratio: 1 / .78; background-color: #2f3a4b; }
.brand-card .body { padding: 28px 28px 34px; }
.brand-card .mark { font-family: var(--en); font-size: 30px; font-weight: 700; letter-spacing: .02em; color: #fff; line-height: 1.1; }
.brand-card .mark span { color: var(--sky-light); }
.brand-card h3 { margin-top: 10px; font-size: 19px; font-weight: 700; color: #dfe6f2; }
.brand-card p { margin-top: 14px; font-size: 15px; line-height: 1.75; color: #aeb8c8; }
.brand-note { margin-top: 26px; text-align: center; font-size: 13px; color: #7f8a9c; }

/* =========================================================
   메인 6 - 임플란트 (오스템)
   ========================================================= */
.implant-sec { padding: 130px 0; overflow: hidden; }
.imp-grid { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }
.imp-text .h-lg { margin-top: 16px; }
.imp-text .lead { margin-top: 22px; font-size: 17px; }
.imp-pills { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px; margin-top: 36px; }
.imp-pills button { height: 40px; padding: 0 22px; border-radius: 20px; background: #fff; border: 1px solid #c9d3e3; font-size: 14.5px; font-weight: 600; color: #333; transition: .25s; }
.imp-pills button:hover { border-color: var(--navy); }
.imp-pills button.on { background: var(--sky); border-color: var(--sky); color: #fff; }
.imp-view { position: relative; }
.imp-view::before { content: ''; position: absolute; left: -60px; right: -400px; top: 120px; bottom: -40px; background: var(--ice); border-radius: 60px 0 0 0; z-index: -1; }
.imp-item { display: none; }
.imp-item.on { display: block; animation: fadeUp .45s ease; }
.imp-item .slot { aspect-ratio: 440 / 250; border-radius: 16px; }
.imp-item h3 { margin-top: 30px; font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.imp-item p { margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--text2); }
.imp-sec-wrap { position: relative; z-index: 0; }

/* 임플란트 과정 4단계 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 80px; }
.step { padding: 30px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.step .no { font-family: var(--en); font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--sky); }
.step h4 { margin-top: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.step p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--text2); }

/* =========================================================
   메인 7 - 편안한 진료 (무통마취 · 미온수 스케일링)
   ========================================================= */
.comfort { padding: 130px 0; background: var(--ice); }
.comfort-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.comfort-card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,33,79,.06); display: flex; flex-direction: column; }
.comfort-card .slot { aspect-ratio: 16 / 9; }
.comfort-card .body { padding: 34px 36px 38px; flex: 1; }
.comfort-card .en { font-family: var(--en); font-size: 14px; letter-spacing: .08em; color: var(--sky); }
.comfort-card h3 { margin-top: 6px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.comfort-card p { margin-top: 14px; font-size: 16px; line-height: 1.75; color: var(--text2); }
.mini-steps { display: grid; gap: 10px; margin-top: 24px; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 15px; color: #333; line-height: 1.6; }
.mini-steps li::before { content: counter(ms); width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--en); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.mini-steps li b { display: block; color: var(--text); }

/* =========================================================
   메인 8 - 처음 오시는 분 / 9 - 자주 묻는 질문
   ========================================================= */
.visit { padding: 130px 0; }
.visit-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.visit-steps::before { content: ''; position: absolute; left: 10%; right: 10%; top: 31px; height: 2px; background: repeating-linear-gradient(90deg, var(--sky-light) 0 8px, transparent 8px 14px); }
.visit-steps li { position: relative; text-align: center; padding: 0 6px; }
.visit-steps .no { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #fff; border: 2px solid var(--navy); font-family: var(--en); font-size: 19px; font-weight: 700; color: var(--navy); transition: .3s; }
.visit-steps li:hover .no { background: var(--navy); color: #fff; }
.visit-steps h3 { margin-top: 18px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.visit-steps p { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--text2); }
.visit-cta { display: flex; justify-content: center; gap: 10px; margin-top: 54px; flex-wrap: wrap; }
.visit-cta .btn.line span[data-site] { font-family: var(--en); font-weight: 700; }

.faq { padding: 130px 0; background: var(--ice); }
.faq-grid { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--hd) + var(--hd-top) + 30px); }
.faq-head .h-xl { margin: 12px 0 20px; }
.faq .qa { margin-top: 0; }
.faq .qa details[open] { border-color: var(--sky-light); box-shadow: 0 8px 24px rgba(0,33,79,.06); }

/* =========================================================
   메인 10 - 병원 둘러보기
   ========================================================= */
.tour { padding: 130px 0 120px; }
.tour-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.tour-grid .slot { border-radius: 16px; }
.tour-grid .slot:first-child { grid-row: span 2; }
.tour-grid .slot:nth-child(4) { grid-column: span 2; }
.tour .center { margin-top: 40px; }

/* =========================================================
   공통 하단 - 진료시간/오시는길/푸터
   ========================================================= */
.info { padding: 110px 0 80px; }
.info-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; }
.info h3 { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: #fff; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.25); }
.info h3 svg { width: 22px; height: 22px; color: var(--sky-light); }
.hours { width: 100%; border-collapse: collapse; margin-top: 12px; }
.hours th, .hours td { text-align: left; font-size: 16.5px; font-weight: 500; color: #fff; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hours th { width: 150px; color: #c7d3e8; font-weight: 600; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 14px; border-radius: 16px; background: rgba(255,255,255,.1); font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.open-badge i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.22); }
.open-badge.open i { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); animation: pulse 2s infinite; }
.open-badge.break i { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.25); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74,222,128,.08); } }
.loc-list .open-badge, .m-status .open-badge { margin: 0 0 6px; background: var(--ice); color: var(--navy); }
.m-status { padding: 14px 20px 0; }
.hours tr.today th, .hours tr.today td { background: rgba(88,134,233,.16); color: #fff; }
.hours tr.today th::after { content: '오늘'; margin-left: 8px; padding: 1px 7px; border-radius: 8px; background: var(--sky); font-size: 11.5px; font-weight: 700; color: #fff; vertical-align: 2px; }
.hours-note { margin-top: 18px; font-size: 14.5px; color: #c7d3e8; }
.hours-note strong { color: #fff; margin-left: 2px; }
.hours-note em { font-style: normal; color: var(--coral); font-weight: 700; }
.info .loc { margin-top: 60px; }
.addr-btn { margin-top: 20px; width: 100%; height: 52px; border-radius: 26px; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16.5px; font-weight: 600; transition: background .2s; }
.addr-btn:hover { background: var(--ice); }
.addr-btn svg { width: 18px; height: 18px; }
.transit { margin-top: 18px; font-size: 14.5px; color: #c7d3e8; line-height: 1.8; }
.map { border-radius: 20px; aspect-ratio: 560 / 470; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.footer { border-top: 1px solid rgba(255,255,255,.1); padding: 34px 0 60px; color: #b7c3d8; font-size: 13.5px; }
.footer .f-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .logo { color: #fff; }
.footer .logo-mark { border-color: rgba(255,255,255,.35); }
.footer .logo-mark .ph-label { color: #aab; }
.footer .logo-text small { color: #8d9bb4; }
.footer .f-btns { display: flex; gap: 8px; }
.footer .f-btns button, .footer .f-btns a { height: 34px; padding: 0 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 17px; color: #fff; font-size: 13px; display: inline-flex; align-items: center; }
.footer .f-btns button:hover, .footer .f-btns a:hover { background: rgba(255,255,255,.08); }
.footer p { margin-top: 24px; line-height: 1.95; }
.footer .sep { margin: 0 9px; opacity: .5; }
.footer .disclaimer { margin-top: 14px; font-size: 12.5px; color: #8d9bb4; }

/* =========================================================
   서브페이지 공통
   ========================================================= */
.sub-hero { position: relative; height: 440px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: #22324f; }
.sub-hero > .slot { position: absolute; inset: 0; background-color: #2a3a57; }
.sub-hero > .slot .ph-label { color: rgba(255,255,255,.75); z-index: 2; inset: auto auto 20px 28px; align-items: flex-start; }
.sub-hero > .slot .ph-label::before { display: none; }
.sub-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,22,58,.35), rgba(0,22,58,.6)); z-index: 1; }
.sub-hero .txt { position: relative; z-index: 2; padding-top: calc(var(--hd) + var(--hd-top)); }
.sub-hero .txt p { font-family: var(--en); font-size: 14px; letter-spacing: .2em; color: #cfdcf7; }
.sub-hero .txt h1 { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; }
.sub-tabs { display: flex; justify-content: center; gap: 8px; margin: -27px auto 0; position: relative; z-index: 3; }
.sub-tabs a { height: 54px; padding: 0 30px; display: inline-flex; align-items: center; border-radius: 27px; background: #fff; color: #555; font-weight: 600; box-shadow: 0 8px 24px rgba(0,33,79,.12); transition: .2s; }
.sub-tabs a.on, .sub-tabs a:hover { background: var(--navy); color: #fff; }

.sec { padding: 120px 0; }
.sec.ice { background: var(--ice); }

/* 이미지+텍스트 교차 블록 */
.feature { padding: 100px 0; background: #fff; }
.feature:nth-of-type(odd) { background: var(--ice); }
.feature-grid { display: grid; grid-template-columns: 480px 1fr; gap: 70px; align-items: center; }
.feature-grid.rev { grid-template-columns: 1fr 480px; }
.feature-grid.rev .feature-img { order: 2; }
.feature-img { border-radius: 20px; aspect-ratio: 480 / 380; }
.feature-text .en-eyebrow { font-size: 14px; }
.feature-text .h-lg { margin: 10px 0 26px; font-size: 36px; }
.feature-text .h-lg .hl { color: var(--navy); }
.feature-text .lead { font-size: 17px; }
.points { margin-top: 26px; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; font-size: 16px; color: #333; }
.points li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.2 4.7-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.qa { margin-top: 30px; display: grid; gap: 10px; }
.qa details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.qa summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: 'Q.'; font-family: var(--en); color: var(--sky); margin-right: -8px; }
.qa summary span { flex: 1; }
.qa summary::after { content: '+'; font-weight: 400; transition: transform .25s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding-bottom: 18px; color: #555; font-size: 15.5px; line-height: 1.75; }
.notice-box { margin-top: 30px; padding: 22px 26px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 15px; color: #555; line-height: 1.8; }
.notice-box b { color: var(--navy); }

.intro-plain { padding: 120px 0 90px; text-align: center; }
.intro-plain .h-xl { margin: 14px 0 26px; }
.intro-plain .lead { max-width: 820px; margin: 0 auto; }

.intro-dark { position: relative; padding: 130px 0 110px; overflow: hidden; }
.intro-dark .wm { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); font-family: var(--en); font-size: 96px; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.05); white-space: nowrap; }
.intro-dark .container { position: relative; }
.intro-dark .h-xl { margin: 16px 0 26px; }
.intro-dark .lead { max-width: 900px; }
.intro-dark .wide-img { margin-top: 60px; border-radius: 20px; aspect-ratio: 1008 / 440; }

/* 시설 - 9단계 멸균 */
.steri-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.steri-rules li { padding: 18px 22px; border-radius: 16px; background: rgba(88,134,233,.14); border: 1px solid rgba(158,188,255,.3); font-size: 14.5px; color: #c9d1de; }
.steri-rules b { display: block; margin-bottom: 4px; font-size: 18px; color: #fff; }
.steri-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.steri-steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; padding: 24px 22px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); transition: border-color .3s, background .3s; }
.steri-steps li:hover { border-color: rgba(158,188,255,.5); background: rgba(255,255,255,.07); }
.steri-steps .no { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sky); font-family: var(--en); font-size: 16px; font-weight: 700; color: #fff; }
.steri-steps h3 { font-size: 18px; font-weight: 700; color: #fff; margin-top: 2px; }
.steri-steps p { margin-top: 4px; font-size: 14.5px; line-height: 1.65; color: #aeb8c8; }

/* 시설 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gal-item { position: relative; border-radius: 16px; aspect-ratio: 4 / 3; cursor: zoom-in; overflow: hidden; }
.gal-item .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 18px; color: #fff; font-weight: 600; font-size: 16px; background: linear-gradient(transparent, rgba(0,22,58,.7)); transform: translateY(100%); transition: transform .35s; }
.gal-item:hover .cap, .gal-item:focus-visible .cap { transform: none; }
.gal-item .slot { position: absolute; inset: 0; transition: transform .6s; }
.gal-item:hover .slot { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,14,36,.9); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox .lb-cap { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: #fff; font-size: 16px; }
.lightbox .lb-close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 40px; line-height: 1; }

/* 의료진 페이지 */
.greet { padding: 110px 0 120px; }
.greet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.greet .banner { aspect-ratio: 1 / 1.05; border-radius: 24px; }
.greet-grid.no-banner { grid-template-columns: 1fr; max-width: 860px; }
.greet-grid.no-banner > div { padding: 56px 60px; border-radius: 24px; background: var(--ice); }
@media (max-width: 1100px) { .greet-grid.no-banner > div { padding: 32px 22px; } }
.greet .h-md { margin: 14px 0 28px; }
.greet .sign { margin-top: 34px; font-size: 16px; color: #555; }
.greet .sign b { font-size: 24px; color: var(--navy); margin-left: 8px; letter-spacing: .1em; }
.doctor.page { padding-top: 110px; }
.doctor.page .doc-panel { display: grid; animation: none; margin-top: 50px; }
.doctor.page .doc-panel + .doc-panel { margin-top: 0; padding-top: 80px; border-top: 1px solid #d3dcea; }

/* 장비 페이지 상단 브랜드 요약 */
.brand-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.brand-strip a { padding: 22px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: center; transition: .25s; }
.brand-strip a:hover { border-color: var(--navy); transform: translateY(-4px); }
.brand-strip strong { display: block; font-family: var(--en); font-size: 19px; font-weight: 700; color: var(--navy); }
.brand-strip span { display: block; margin-top: 4px; font-size: 13.5px; color: #666; }

/* 턱관절 */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.icard { padding: 28px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.icard .no { font-family: var(--en); font-size: 13px; font-weight: 600; color: var(--sky); letter-spacing: .06em; }
.icard h4 { margin-top: 8px; font-size: 18px; font-weight: 700; }
.icard p { margin-top: 8px; font-size: 14.5px; color: var(--text2); line-height: 1.7; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* 오시는 길 페이지 */
.loc-card { display: grid; grid-template-columns: 1fr 440px; gap: 50px; align-items: stretch; }
.loc-card .map { aspect-ratio: auto; min-height: 460px; }
.loc-list { display: grid; border-top: 2px solid var(--navy); }
.loc-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 20px 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
.loc-list dt { font-weight: 700; color: var(--navy); }
.loc-list dd { color: #444; line-height: 1.7; }
.loc-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.transit-quotes { display: grid; gap: 8px; margin: 0 0 28px; }
.transit-quotes p { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }

/* =========================================================
   모달 / 토스트
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .dim { position: absolute; inset: 0; background: rgba(0,14,36,.6); }
.modal .box { position: relative; width: min(720px, 100%); max-height: 82vh; background: #fff; border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; }
.modal .box header { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 700; color: var(--navy); }
.modal .box header button { font-size: 30px; line-height: 1; width: 36px; height: 36px; color: #333; }
.modal .box .body { padding: 24px 26px 30px; overflow: auto; font-size: 14.5px; line-height: 1.8; color: #444; }
.modal .body h4 { font-size: 15.5px; color: #111; margin: 20px 0 6px; }
.modal .body table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.modal .body th, .modal .body td { border: 1px solid #dde3ec; padding: 10px 12px; text-align: left; }
.modal .body th { background: var(--ice); }
#modal-nonpay .box { width: min(820px, 100%); }
.np-unit { text-align: right; font-size: 13px; color: var(--muted); }
.np-table { font-size: 14px; }
.np-table thead th { background: var(--navy); color: #fff; text-align: center; font-weight: 600; border-color: var(--navy); }
.np-table tbody th { background: var(--ice); color: var(--navy); text-align: center; vertical-align: middle; font-weight: 700; white-space: nowrap; }
.np-table td { text-align: center; }
.np-table .np-price { font-weight: 700; color: var(--text); white-space: nowrap; }
.np-table .np-sub { background: #f7f9fc; font-weight: 700; color: var(--navy); }
.np-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.modal.notice .box { width: min(460px, 100%); }
.modal.notice .body { padding: 0; }
.modal.notice .body img { width: 100%; display: block; }
.modal.notice .body p { padding: 24px 26px; font-size: 15.5px; line-height: 1.8; color: #333; }
.modal.notice footer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.modal.notice footer button { height: 50px; font-size: 14.5px; font-weight: 600; color: #555; }
.modal.notice footer button + button { border-left: 1px solid var(--line); color: var(--navy); }

/* 접근성: 본문 바로가기 · 키보드 포커스 */
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 12px 18px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
main:focus { outline: none; }

.toast { position: fixed; left: 50%; bottom: calc(var(--consult-h) + 24px); transform: translate(-50%, 20px); z-index: 500; background: var(--navy-deep); color: #fff; padding: 14px 22px; border-radius: 26px; font-size: 15px; opacity: 0; transition: .3s; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1280px) {
  .gnb > ul > li > a { padding: 0 13px; font-size: 15px; }
  .gnb > ul > li > a::after { left: 13px; right: 13px; }
  .quick-wrap { right: 14px; }
}

@media (max-width: 1100px) {
  :root { --hd: 60px; --hd-top: 10px; --gut: 18px; --consult-h: 0px; }
  body { padding-bottom: 62px; }
  .gnb, .hd-tel, .quick-wrap { display: none; }
  .hamburger { display: block; }
  .hd-inner { padding: 0 10px 0 18px; }
  .logo-text strong { font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; }

  .m-quick { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; height: 62px; z-index: 96; background: var(--navy); }
  .m-quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; font-size: 11px; }
  .m-quick svg { width: 20px; height: 20px; }

  .consult { left: 0; right: 0; width: auto; bottom: 62px; transform: translateY(calc(100% + 62px)); }
  .consult.folded { transform: translateY(calc(100% + 62px)); }
  .consult.open { transform: none; }
  .consult-tab { display: none; }
  .consult-box { height: auto; grid-template-columns: 1fr; gap: 14px; padding: 22px 20px 24px; border-radius: 22px 22px 0 0; }
  .consult-call { display: none; }
  .consult-form { grid-template-columns: 1fr 1fr; }
  .consult-form input[type=text], .consult-form input[type=tel], .consult-form select { height: 44px; font-size: 15px; }
  .consult-form select { grid-column: span 2; }
  .consult-form button[type=submit] { grid-row: auto; grid-column: span 2; height: 48px; }
  .consult-agree { grid-column: span 2; }
  .consult-toggle { display: flex; position: fixed; right: 14px; bottom: 76px; z-index: 97; height: 46px; padding: 0 20px; align-items: center; gap: 8px; border-radius: 23px; background: var(--sky); color: #fff; font-weight: 700; box-shadow: 0 6px 20px rgba(0,33,79,.3); }
  .consult-toggle svg { width: 18px; height: 18px; }
  .consult.open ~ .consult-toggle { display: none; }
  .consult .c-close { position: absolute; right: 12px; top: 10px; color: #fff; font-size: 28px; width: 40px; height: 40px; z-index: 2; }

  .hero { height: calc(100svh - 62px); min-height: 560px; }
  .hero h1 { font-size: 36px; }
  .hero .hero-desc { font-size: 15.5px; }
  .hero .hero-name { font-size: 24px; }
  .hero-points { gap: 6px; margin-top: 24px; }
  .hero-points li { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .hero-points svg { width: 14px; height: 14px; }
  .scroll-hint { bottom: 24px; }
  .slot[data-ph="corner"] .ph-label { bottom: 20px; left: 20px; }

  .h-xl { font-size: 30px; } .h-lg { font-size: 27px; } .h-md { font-size: 23px; }
  .lead { font-size: 15.5px; }
  .en-eyebrow { font-size: 13px; }

  .split { grid-template-columns: 1fr; }
  .split > .slot { min-height: 300px; }
  .split-panel { padding: 60px 24px; }
  .split-panel .big { font-size: 26px; }
  .split-panel .name { font-size: 32px; }
  .split-panel .name-en { font-size: 12px; }

  .doctor { padding-top: 80px; }
  .doctor .wm { font-size: 60px; }
  .doc-panel, .doc-panel.on, .doctor.page .doc-panel { grid-template-columns: 1fr; }
  .doc-photo { order: -1; max-width: 300px; margin: 0 auto; width: 100%; }
  .doc-info { padding-bottom: 60px; }
  .doc-name strong { font-size: 32px; letter-spacing: .2em; }
  .doc-careers, .doc-panel.no-photo .doc-careers { grid-template-columns: 1fr; }
  .doc-panel.no-photo .doc-info { padding: 28px 22px 34px; margin-bottom: 50px; }
  .doc-photo.cover { margin-bottom: 0; }
  .np-table { font-size: 12.5px; }
  .np-table th, .np-table td { padding: 8px 6px; }
  .doc-careers > div + div { margin-top: 14px; }

  .bnr { height: 64px; font-size: 17px; gap: 12px; }
  .bnr .circle-arr { width: 34px; height: 34px; }

  .intro-card-sec { padding-bottom: 70px; }
  .intro-card { grid-template-columns: 1fr; gap: 20px; padding: 34px 24px; text-align: center; }

  .subjects { padding-bottom: 80px; }
  .subj-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .subj-tabs::-webkit-scrollbar { display: none; }
  .subj-tabs button { flex: 0 0 auto; padding: 0 16px; font-size: 15px; }
  .subj-panel, .subj-panel.on { grid-template-columns: 1fr; gap: 24px; }
  .subj-panel h3 { font-size: 26px; }
  .subj-panel p { font-size: 15.5px; }
  .subj-ctrl { margin-top: 26px; }

  .brand, .implant-sec, .comfort, .tour, .visit, .faq { padding: 80px 0; }
  .visit-steps { grid-template-columns: 1fr; gap: 0; }
  .visit-steps::before { left: 31px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sky-light) 0 8px, transparent 8px 14px); }
  .visit-steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; padding: 0 0 22px; }
  .visit-steps .no { grid-row: span 2; margin: 0; }
  .visit-steps h3 { margin-top: 8px; }
  .visit-steps p { margin-top: 4px; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-head { position: static; }
  .brand-cards { grid-template-columns: 1fr; }
  .imp-grid { grid-template-columns: 1fr; gap: 40px; }
  .imp-pills { grid-template-columns: repeat(2, 1fr); }
  .imp-view::before { display: none; }
  .steps { grid-template-columns: 1fr 1fr; margin-top: 50px; }
  .comfort-grid { grid-template-columns: 1fr; }
  .comfort-card .body { padding: 26px 22px 30px; }
  .tour-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 150px); }
  .tour-grid .slot:first-child { grid-column: span 2; grid-row: auto; }
  .tour-grid .slot:nth-child(4) { grid-column: span 2; }

  .info { padding: 70px 0 40px; }
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .info h3 { font-size: 22px; }
  .hours th, .hours td { font-size: 15px; }
  .hours th { width: 110px; }
  .footer { font-size: 12.5px; }
  .footer .sep { margin: 0 5px; }

  .sub-hero { height: 300px; }
  .sub-hero .txt h1 { font-size: 30px; }
  .sub-tabs { flex-wrap: wrap; margin-top: 20px; padding: 0 18px; }
  .sub-tabs a { height: 42px; padding: 0 18px; font-size: 14px; box-shadow: none; border: 1px solid var(--line); }
  .sec { padding: 80px 0; }
  .feature { padding: 60px 0; }
  .feature-grid, .feature-grid.rev { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid.rev .feature-img { order: 0; }
  .feature-text .h-lg { font-size: 26px; margin: 8px 0 18px; }
  .feature-text .lead { font-size: 15.5px; }
  .intro-plain { padding: 80px 0 50px; }
  .intro-dark { padding: 80px 0 60px; }
  .intro-dark .wm { font-size: 42px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steri-rules, .steri-steps { grid-template-columns: 1fr; }
  .steri-steps li { padding: 18px; }
  .gal-item .cap { transform: none; font-size: 14px; padding: 10px 12px; }
  .greet { padding: 70px 0; }
  .greet-grid { grid-template-columns: 1fr; gap: 30px; }
  .brand-strip { grid-template-columns: 1fr 1fr; }
  .cards-4, .cards-3 { grid-template-columns: 1fr 1fr; }
  .loc-card { grid-template-columns: 1fr; }
  .loc-card .map { min-height: 300px; }
  .transit-quotes p { font-size: 17px; }
  .toast { bottom: 140px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 29px; }
  .h-xl { font-size: 26px; }
  .gallery, .cards-4, .cards-3, .steps { grid-template-columns: 1fr; }
  .imp-pills { grid-template-columns: 1fr 1fr; }
  .imp-pills button { padding: 0 10px; font-size: 13.5px; }
  .loc-list > div { grid-template-columns: 76px 1fr; font-size: 15px; }
}

/* PREMIUM IMAGERY — each subject keeps its own natural composition. */
.slot.product-full { background-size: auto 87%; background-color: #fff; }
.slot.product-wide { background-size: contain; background-color: #e7e7e7; }
.slot.art-full { background-size: contain; background-color: #f1f3f2; }
.slot .image-note { position: absolute; bottom: 10px; right: 12px; z-index: 2; color: #687482; background: rgba(255,255,255,.86); padding: 3px 8px; border-radius: 4px; font-size: 10px; line-height: 1.5; letter-spacing: 0; }
.slot[data-img="images/comfort-anesthesia.webp"],
.slot[data-img="images/equip-anesthesia.webp"] { background-size: contain; background-color: #f2f1ef; }
.hero::after { background: linear-gradient(90deg, rgba(0,16,42,.25), rgba(0,16,42,.08)), linear-gradient(0deg, rgba(0,16,42,.35), transparent 55%); }
.hero h1, .hero-desc, .hero-name { text-shadow: 0 2px 22px rgba(0,15,40,.28); }
.sub-hero > .slot { background-position: center 48%; }
.slot[data-img="images/intro-strip.webp"] { background-position: center 58%; }
.slot[data-img="images/split-doctor.webp"] { background-position: 47% center; }
@media (min-width: 961px) {
  .hero-content { width: min(1120px, calc(100% - 144px)); text-align: left; padding-left: 0; padding-right: 0; }
  .hero h1 { max-width: 660px; font-size: clamp(44px, 4.2vw, 56px); }
  .hero .hero-desc { max-width: 550px; font-size: 17px; }
  .hero-points { max-width: 590px; justify-content: flex-start; }
  .hero-points li { font-size: 13px; }
}
@media (max-width: 760px) {
  .hero > .slot { background-position: 76% center; }
  .hero::after { background: linear-gradient(180deg, rgba(0,16,42,.45), rgba(0,16,42,.65)); }
  .sub-hero > .slot { background-position: 72% center; }
  .slot .image-note { font-size: 9px; bottom: 8px; right: 8px; }
}

.slot[data-img="images/brand-trios.webp"] { background-color: #fff; background-size: 100% auto; }

/* WARM IMAGERY — room for the complete digital equipment composition. */
.intro-card-sec > .slot { height: clamp(300px, 33.333vw, 580px); }
.intro-card { margin-top: -28px; }
.slot[data-img="images/intro-strip.webp"] { background-position: center; background-color: #eee3d2; }
.slot[data-img="images/subject-scaling.webp"],
.slot[data-img="images/comfort-scaling.webp"],
.slot[data-img="images/natural-04.webp"],
.slot[data-img="images/equip-scaling.webp"] { background-position: 44% center; }
@media (max-width: 760px) {
  .intro-card-sec > .slot { height: clamp(160px, 46vw, 280px); }
  .slot[data-img="images/intro-strip.webp"] { background-size: auto 100%; background-position: 57% center; }
  .intro-card { margin-top: -12px; }
}

/* =========================================================
   원장 인사말 (2026-11-15) — 편지 형식, 따뜻한 종이 느낌 배경
   메인 화면 #greeting (site.js 의 SITE.greeting)
   ========================================================= */
.greet-letter {
  position: relative;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(255,255,255,.75), transparent 46%),
    radial-gradient(ellipse at 88% 85%, rgba(214,200,180,.35), transparent 50%),
    radial-gradient(ellipse at 60% 40%, rgba(255,255,255,.35), transparent 60%),
    #f5f0e8;
}
.gl-eyebrow { font-family: var(--en); font-size: 15px; font-weight: 600; letter-spacing: .32em; color: var(--navy); }
.gl-title { margin-top: 22px; font-size: 36px; font-weight: 700; line-height: 1.45; letter-spacing: -.03em; color: var(--text); }
.gl-body { color: #4a4f57; font-size: 17.5px; line-height: 1.95; }
.gl-body p + p { margin-top: 22px; }
.gl-body b { color: var(--text); font-weight: 700; }
.gl-motto { padding-top: 10px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); line-height: 1.5; }
.gl-body .gl-motto + p { margin-top: 8px; }
.gl-closing { color: #666; }
.gl-sign { margin-top: 36px !important; font-size: 16px; color: #555; }
.gl-sign b { margin-left: 10px; font-size: 26px; letter-spacing: .12em; color: var(--navy); }

/* 왼쪽 사진(오른쪽으로 번지듯 사라짐) · 오른쪽 편지 */
/* 오른쪽 여백: 글이 다른 섹션 본문 오른쪽 끝에 맞춰 끝나고, 오른쪽 퀵메뉴와 겹치지 않게 */
.gl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 56px; padding: 110px max(110px, calc((100vw - var(--wrap)) / 2)) 130px 0; align-items: start; }
.gl-photo { position: sticky; top: calc(var(--hd) + var(--hd-top) + 40px); aspect-ratio: 980 / 612; background-color: transparent; background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%); mask-image: linear-gradient(90deg, #000 72%, transparent 100%); }
.gl-photo:not(.is-loaded) { background-color: rgba(1,51,120,.05); }
.gl-text { padding-top: 20px; }
.gl-text .gl-body { margin-top: 44px; }


@media (max-width: 1100px) {
  .gl-wrap { grid-template-columns: 1fr; gap: 0; padding: 0 0 80px; }
  .gl-photo { position: relative; top: 0; aspect-ratio: 980 / 612; background-position: center;
    -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%); mask-image: linear-gradient(180deg, #000 65%, transparent 100%); }
  .gl-text { padding: 10px var(--gut) 0; max-width: 720px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .gl-eyebrow { font-size: 12.5px; letter-spacing: .22em; }
  .gl-title { margin-top: 16px; font-size: 25px; }
  .gl-body { font-size: 16.5px; line-height: 1.9; }
  .gl-text .gl-body { margin-top: 30px; }
  .gl-motto { font-size: 20px; }
  .gl-sign b { font-size: 22px; }
}

/* 원내 사진 (2026-11-15) — 세로 사진이 가로 칸에 들어갈 때 잘 보이는 위치 */
.slot[data-img="images/clinic-room-1.webp"] { background-position: center 62%; }
.slot[data-img="images/clinic-room-2.webp"] { background-position: center 58%; }
.slot[data-img="images/clinic-powder.webp"] { background-position: 40% 52%; }
.slot[data-img="images/clinic-lobby.webp"] { background-position: center 62%; }
.slot[data-img="images/clinic-principle.webp"] { background-position: center 54%; }
.slot[data-img="images/clinic-lounge.webp"] { background-position: center 60%; }

/* 오시는 길 약도 — 글자가 잘리지 않게 정사각형 그대로 */
.feature-img.map-img { aspect-ratio: 1 / 1; background-color: #fff; box-shadow: 0 14px 40px rgba(0,33,79,.10); border: 1px solid var(--line); }
.feature-grid.map-grid { grid-template-columns: 560px 1fr; gap: 60px; }
@media (max-width: 1100px) { .feature-grid.map-grid { grid-template-columns: 1fr; } .feature-img.map-img { max-width: 560px; width: 100%; margin: 0 auto; } }
