/* ==========================================================================
   김포 서울여성병원 - site.css
   ========================================================================== */
@font-face { font-family: "Noto Sans KR"; font-weight: 300; font-display: swap; src: url("/font/NotoSansKR-Light.woff") format("woff"); }
@font-face { font-family: "Noto Sans KR"; font-weight: 400; font-display: swap; src: url("/font/NotoSansKR-Regular.woff") format("woff"); }
@font-face { font-family: "Noto Sans KR"; font-weight: 500; font-display: swap; src: url("/font/NotoSansKR-Medium.woff") format("woff"); }
@font-face { font-family: "Noto Sans KR"; font-weight: 700; font-display: swap; src: url("/font/NotoSansKR-Bold.woff") format("woff"); }

:root {
  /* 로고 색(진녹 #0c7f40 · 연두 #8dc63f · 자주 #b9519f)을 파스텔 톤으로 옮긴 팔레트 */
  --brand: #a8dcbf;
  --brand-strong: #4fae7b;
  --brand-ink: #11774a;
  --brand-soft: #e6f5ec;
  --brand-softer: #f3faf6;
  --pink: #f2c4de;
  --pink-soft: #fcedf5;
  --pink-ink: #a5468a;
  --lime: #cfe8a8;
  --lime-soft: #f1f8e5;
  --lav-soft: #f1ecfa;
  --sky-soft: #e8f3fb;
  --deep: #1d5e41;
  --ink: #1f2b25;
  --ink-2: #3e4a44;
  --muted: #68756e;
  --line: #dde9e2;
  --line-2: #edf4f0;
  --bg: #ffffff;
  --bg-2: #f6faf8;
  --red: #d64545;
  --blue: #2f6fcf;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(20, 70, 45, .08);
  --shadow-sm: 0 4px 14px rgba(20, 70, 45, .07);
  --hd-h: 80px;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

/* ---------- icons (CSS masks) ---------- */
.ico { display: inline-block; width: 1.1em; height: 1.1em; background: currentColor; vertical-align: -.15em;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.ico-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2zm3 6v2h2V9zm4 0v2h2V9zm4 0v2h2V9z'/%3E%3C/svg%3E"); }
.ico-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.ico-up { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5l7 7-1.4 1.4L13 8.8V20h-2V8.8l-4.6 4.6L5 12z'/%3E%3C/svg%3E"); }
.ico-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.4 3.5 2.1-.9 1.6L11 13V6h2z'/%3E%3C/svg%3E"); }
.ico-cal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3zm-2 7v10h14V9zm2 2h4v4H7z'/%3E%3C/svg%3E"); }
.ico-baby { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm0 9c4.4 0 8 2.7 8 6v1a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4v-1c0-3.3 3.6-6 8-6zm-2.5 5.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E"); }
.ico-won { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 7h3l1.6 6L8.5 7h2.1l1.9 6L14.4 7h2.1l1.9 6L20 7h2l-1 3h1v2h-1.7l-2.3 7h-2l-2.2-7h-.6L11 19H9l-2.3-7H5v-2h1z'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: var(--brand-strong); color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-strong); color: var(--ink); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: #134530; color: #fff; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); font-weight: 500; }
.link-more::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.link-more:hover { color: var(--brand-ink); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line-2); }

.hd-tel strong { color: var(--ink); margin-left: 4px; }
.hd-tel .ico { color: var(--brand-strong); margin-right: 4px; }
.hd-member { display: flex; gap: 16px; }
.hd-main .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--hd-h); gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 44px; height: 44px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo-txt em { font-style: normal; font-size: 11px; letter-spacing: .02em; color: var(--brand-ink); font-weight: 500; }
.logo-txt strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

.gnb-list { display: flex; gap: 4px; }
.gnb-item { position: relative; }
.gnb-link { display: flex; align-items: center; height: var(--hd-h); padding: 0 14px; font-size: 16px; font-weight: 500; color: var(--ink); position: relative; }
.gnb-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 3px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
.gnb-item:hover .gnb-link::after, .gnb-item:focus-within .gnb-link::after, .gnb-item.is-active .gnb-link::after { transform: scaleX(1); }
.gnb-sub { position: absolute; top: calc(var(--hd-h) - 8px); left: 50%; min-width: 168px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s; }
.gnb-item:hover .gnb-sub, .gnb-item:focus-within .gnb-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb-sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.gnb-sub a:hover, .gnb-sub a:focus-visible { background: var(--brand-soft); color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle .bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* mobile drawer */
.mnav { position: fixed; inset: 0; z-index: 300; background: rgba(10, 40, 25, .45); }
.mnav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff; display: flex; flex-direction: column; animation: slideIn .22s ease-out; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.mnav-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); font-size: 18px; }
.mnav-close { width: 44px; height: 44px; border: 0; background: var(--bg-2); border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.mnav-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.mnav-grp { border-bottom: 1px solid var(--line-2); }
.mnav-grp summary { list-style: none; cursor: pointer; padding: 15px 20px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.mnav-grp summary::-webkit-details-marker { display: none; }
.mnav-grp summary::after { content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.mnav-grp[open] summary::after { transform: rotate(-135deg); }
.mnav-grp ul { padding: 0 20px 12px; }
.mnav-grp li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; }
.mnav-grp li a:hover { background: var(--brand-soft); }
.mnav-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
body.nav-open { overflow: hidden; }

/* ---------- main page ---------- */

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(79,174,123,.5); } 50% { box-shadow: 0 0 0 7px rgba(79,174,123,0); } }

@keyframes hlGrow { to { transform: scaleX(1); } }

.btn .arr { display: inline-block; transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-glass { background: rgba(255,255,255,.55); color: var(--ink); border-color: rgba(255,255,255,.8); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.85); color: var(--ink); }

@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }


/* scroll reveal (JS adds .js to <html>; without JS everything is visible) */
html.js [data-reveal], html.js .ct > .ct-sec, html.js .ct > .ct-lead, html.js .gallery figure {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0s);
}
html.js .is-in { opacity: 1 !important; transform: none !important; }
.hd { transition: box-shadow .3s; }
.hd-main .wrap { transition: height .3s; }
body.is-scrolled .hd { box-shadow: 0 6px 24px rgba(20,70,45,.06); }
@media (min-width: 1024px) {
  body.is-scrolled .hd-main .wrap { height: 64px; }
  body.is-scrolled .subnav { top: 64px; }
  body.is-scrolled .gnb-link { height: 64px; }
  body.is-scrolled .gnb-link::after { bottom: 12px; }
  body.is-scrolled .gnb-sub { top: 56px; }
}

/* ---------- sub pages ---------- */
.sub-hero { background: linear-gradient(120deg, var(--brand-softer) 0%, var(--pink-soft) 100%); padding: 48px 0 40px; position: relative; overflow: hidden; }
.sub-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--brand); opacity: .22; filter: blur(30px); animation: blobMove 16s ease-in-out infinite alternate; }
.sub-hero::before { content: ""; position: absolute; left: 38%; bottom: -120px; width: 240px; height: 240px; border-radius: 50%; background: #d9ccf3; opacity: .35; filter: blur(40px); animation: blobMove 20s ease-in-out infinite alternate-reverse; }
.sub-hero .wrap { position: relative; z-index: 1; }
.sub-eyebrow, .sub-title, .crumb { animation: fadeUp .8s cubic-bezier(.2,.8,.2,1) both; }
.sub-title { animation-delay: .08s; } .crumb { animation-delay: .16s; }
@keyframes blobMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(.96); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sub-hero-2::after { background: #cfe8a8; } .sub-hero-3::after { background: #f2b9d8; } .sub-hero-4::after { background: #c9bdf0; } .sub-hero-5::after { background: #b9dcf3; }
.sub-eyebrow { font-size: 14px; font-weight: 500; color: var(--brand-ink); }
.sub-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.3; margin-top: 2px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); position: relative; z-index: 1; }
.crumb li + li::before { content: "›"; margin-right: 6px; color: #b9b1a3; }
.subnav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: var(--hd-h); z-index: 50; transition: top .3s; }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 15px 16px; font-size: 15px; color: var(--muted); white-space: nowrap; position: relative; }
.subnav a.is-active { color: var(--ink); font-weight: 700; }
.subnav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--brand); border-radius: 3px 3px 0 0; }
.sub-body { padding-top: 40px; padding-bottom: 96px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs a { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.tabs a:hover { border-color: var(--brand-strong); }
.tabs a.is-active { background: var(--deep); color: #fff; border-color: var(--deep); }
.article { max-width: none; }

/* ---------- content vocabulary (contents/*.html) ---------- */
.ct { font-size: 16.5px; color: var(--ink-2); }
.ct p { margin: 0 0 14px; }
.ct strong { color: var(--ink); }
.ct-lead { font-size: 18.5px; line-height: 1.8; color: var(--ink); padding: 22px 26px; border-left: 4px solid var(--brand); background: var(--brand-softer); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 36px !important; }
.ct-sec { margin-bottom: 48px; }
.ct-h { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-bottom: 16px; padding-left: 16px; position: relative; line-height: 1.4; }
.ct-h::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 5px; border-radius: 4px; background: var(--brand); }
.ct-h small { font-size: 14px; font-weight: 400; color: var(--muted); }
.ct-sub { font-size: 18px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.ct-list { margin: 0 0 16px; }
.ct-list li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.ct-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-strong); }
.ct-steps { counter-reset: st; margin: 0 0 16px; display: grid; gap: 12px; }
.ct-steps li { counter-increment: st; position: relative; padding: 16px 18px 16px 64px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.ct-steps li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--deep); font-weight: 700; display: grid; place-items: center; }
.ct-steps li strong { display: block; margin-bottom: 2px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.ct-card { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line-2); }
.ct-card h4 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.ct-card p { font-size: 15px; margin: 0; }
.ct-card ul { margin-top: 6px; }
.ct-note { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--pink-soft); border: 1px solid #f6d3e6; color: #6e2f5c; font-size: 15px; margin: 0 0 16px; }
.ct-fig { margin: 0 0 24px; text-align: center; }
.ct-fig img { border-radius: var(--radius-sm); }
.ct-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.ct-table, .legacy table.tb01 { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; border-top: 2px solid var(--ink); }
.ct-table th, .ct-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ct-table thead th { background: var(--bg-2); font-weight: 700; color: var(--ink); }
.ct-table tbody th { width: 30%; background: var(--bg-2); color: var(--ink); font-weight: 500; }
.ct-empty { padding: 40px 0; color: var(--muted); }
.legacy table { max-width: 100%; }
.legacy img { height: auto; }

/* gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--brand-soft); }
.gallery figure a { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s; }
.gallery figure a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); transition: opacity .4s; }
.gallery figure a::after { content: "+"; position: absolute; z-index: 2; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 22px; display: grid; place-items: center; opacity: 0; transform: scale(.6) rotate(-90deg); transition: opacity .35s, transform .35s; }
.gallery figure:hover a::after { opacity: 1; transform: none; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption { position: absolute; z-index: 2; left: 18px; bottom: 14px; color: #fff; font-weight: 500; font-size: 15px; margin: 0; pointer-events: none; transition: transform .35s; }
.gallery figcaption::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--brand); margin-right: 8px; vertical-align: middle; transition: width .35s; }
.gallery figure:hover figcaption::before { width: 26px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } .gallery figure { border-radius: 14px; } .gallery figcaption { left: 12px; bottom: 10px; font-size: 13px; } }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 20px; animation: lbIn .3s ease-out; }
.lightbox img { animation: lbImg .4s cubic-bezier(.2,.8,.2,1); }
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbImg { from { opacity: 0; transform: scale(.94); } }
.lightbox img { max-height: 82vh; border-radius: 8px; }
.lightbox p { color: #fff; text-align: center; margin-top: 10px; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* ---------- schedule ---------- */
.sch-title { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.sch-weeks { display: grid; gap: 14px; }
.sch-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.sch-table th, .sch-table td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); line-height: 1.35; word-break: keep-all; }
.sch-table tr > :first-child { border-left: 0; width: 13%; }
.sch-table tbody tr:last-child > * { border-bottom: 0; }
.sch-table thead th { background: var(--brand-soft); font-weight: 500; }
.sch-table thead .sch-corner { background: var(--brand); }
.sch-table tbody th { background: var(--bg-2); font-weight: 700; }
.sch-date { display: block; font-weight: 700; font-size: 14px; }
.sch-dow { display: block; font-size: 11.5px; color: var(--muted); }
.sch-daynote { display: block; font-size: 11.5px; color: var(--red); font-weight: 700; }
/* 일요일 = 빨강, 토요일 = 파랑 (기본), 공휴일 = 사용자가 체크한 날만 빨강 + 공휴일명 */
.sch-table .d0 .sch-date, .sch-table .d0 .sch-dow, .sch-table .is-holiday .sch-date, .sch-table .is-holiday .sch-dow { color: var(--red); }
.sch-table .d6 .sch-date, .sch-table .d6 .sch-dow { color: var(--blue); }
.sch-table thead th.d0 { background: #ffecec; }
.sch-table thead th.d6 { background: #eaf1ff; }
.sch-table td.d0 { background: #fff7f7; }
.sch-table td.d6 { background: #f6f9ff; }
.sch-table thead th.is-holiday { background: #ffdede; }
.sch-table td.is-holiday { background: #fff0f0; }
.sch-table th.is-adj .sch-date { font-weight: 500; }
.sch-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- nonpay ---------- */
.np-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.np-search input { width: min(100%, 360px); height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.np-search input:focus { outline: none; border-color: var(--brand-strong); background: #fff; }
.np-updated { font-size: 14px; color: var(--muted); }
.np-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.np-jump a { padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); font-size: 14px; }
.np-cat { margin-bottom: 44px; }
.np-catnote { font-size: 14px; color: var(--muted); }
.np-scroll { overflow-x: auto; border-top: 2px solid var(--ink); }
.np-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.np-table th { background: var(--bg-2); font-weight: 700; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.np-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.np-table .np-price, .np-table .np-price_min, .np-table .np-price_max { text-align: right; white-space: nowrap; font-weight: 500; }
.np-table td.np-price { color: var(--ink); }
.np-table .np-note_text { font-size: 13.5px; color: var(--muted); min-width: 180px; }
.np-table tr:hover td { background: var(--brand-softer); }
.np-none, .np-empty { color: var(--muted); padding: 24px 0; text-align: center; }

/* ---------- popups ---------- */
.pops { position: fixed; inset: 0; z-index: 500; overflow-y: auto; overscroll-behavior: contain; padding: 88px 20px 40px; scrollbar-width: none; }
.pops::-webkit-scrollbar { display: none; }
.pops-dim { position: fixed; inset: 0; background: rgba(10,40,25,.35); }
.pops-track { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; align-items: flex-start; max-width: 1700px; margin: 0 auto; }
.pop { flex: 0 0 auto; width: min(var(--pop-w, 400px), calc(100vw - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); scroll-snap-align: center; animation: popIn .25s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pop-body { overflow: visible; }
.pop-body img { display: block; width: 100%; }
.pop-schedule .pop-body { padding: 16px 12px 12px; }
.pop-schedule .sch-title { font-size: 17px; text-align: center; margin-bottom: 10px; }
.pop-schedule .sch-weeks { gap: 8px; }
.pop-schedule .sch-table { font-size: 11.5px; border-radius: 8px; }
.pop-schedule .sch-table th, .pop-schedule .sch-table td { padding: 3px 2px; line-height: 1.25; }
.pop-schedule .sch-table thead th { padding: 4px 2px; }
.pop-schedule .sch-date { font-size: 12.5px; display: inline; }
.pop-schedule .sch-dow { display: inline; margin-left: 2px; font-size: 11px; }
.pop-schedule .sch-daynote { font-size: 10.5px; }
.pop-schedule .sch-note { font-size: 12px; margin-top: 8px; }
.pop-text { padding: 24px; }
.pop-text h3 { font-size: 19px; margin-bottom: 10px; }
.pop-more { display: block; margin: 0 14px 14px; padding: 10px; border-radius: 10px; background: var(--brand-soft); text-align: center; font-weight: 500; }
.pop-foot { display: flex; background: var(--ink); }
.pop-foot button { flex: 1; min-height: 46px; border: 0; background: transparent; color: #fff; font-size: 14px; cursor: pointer; }
.pop-foot button + button { border-left: 1px solid rgba(255,255,255,.2); }
.pop-foot button:hover { background: #000; }

/* ---------- footer & quick ---------- */
.ft { background: #1f1d1a; color: rgba(255,255,255,.7); font-size: 14px; padding: 44px 0 calc(56px + env(safe-area-inset-bottom)); }
.ft-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 20px; }
.logo-ft img { width: 36px; height: 36px; }
.logo-ft .logo-txt strong { color: #fff; font-size: 19px; }
.logo-ft .logo-txt em { color: var(--brand); }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ft-links a:hover { color: #fff; }
.ft-links strong { color: var(--brand); font-weight: 500; }
.ft-info { font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ft-info a:hover { color: #fff; }
.ft-copy { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.45); }
.ft-admin { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.45); }
.ft-admin:hover { color: #fff; }
.quick { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.quick-btn { width: 60px; height: 60px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-2); gap: 2px; transition: transform .2s; }
.quick-btn .ico { font-size: 20px; color: var(--brand-ink); }
.quick-btn:hover { transform: translateY(-2px); color: var(--ink); }
.quick-tel { background: var(--brand); border-color: var(--brand); }
.quick-tel .ico { color: var(--ink); }
.quick-top { opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.show-top .quick-top { opacity: 1; visibility: visible; }

/* ---------- calculators (check pages) ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc-form { padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line-2); }
.calc-form label { display: block; font-weight: 500; margin: 0 0 6px; }
.calc-form .field { margin-bottom: 18px; }
.calc-form input, .calc-form select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.calc-form .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.calc-result { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); min-height: 220px; }
.calc-result .big { font-size: 30px; font-weight: 700; color: var(--ink); }
.calc-result dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.calc-result dt { color: var(--muted); }
.calc-result dd { font-weight: 700; }
.calc-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 18px; text-align: center; font-size: 13px; }
.calc-cal .h { font-weight: 700; color: var(--muted); }
.calc-cal span { padding: 7px 0; border-radius: 8px; }
.calc-cal .fert { background: #ffe1ea; }
.calc-cal .ovul { background: #ff8fab; color: #fff; font-weight: 700; }
.calc-cal .mens { background: #f0ece4; }
.calc-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; margin-top: 10px; color: var(--muted); }
.calc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .gnb-link { padding: 0 10px; font-size: 15px; }
  .gnb-link::after { left: 10px; right: 10px; }
}
@media (max-width: 1023px) {
  :root { --hd-h: 64px; }
  .gnb { display: none; }
  .nav-toggle { display: flex; }
  .subnav { top: var(--hd-h); }
  
  
  
  
  
  
  
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .hd-tel { font-size: 12px; }
  .logo img { width: 38px; height: 38px; }
  .logo-txt strong { font-size: 19px; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
    .sub-hero { padding: 32px 0 28px; }
  .sub-body { padding-top: 28px; padding-bottom: 72px; }
  .ct { font-size: 15.5px; }
  .ct-lead { font-size: 16.5px; padding: 18px 18px; }
  .ct-h { font-size: 21px; }
  .ct-table tbody th { width: 38%; }
  .sch-table { font-size: 11.5px; }
  .sch-table th, .sch-table td { padding: 6px 2px; }
  .sch-date { font-size: 12.5px; }
  /* nonpay table -> cards */
  .np-scroll { border-top: 0; overflow: visible; }
  .np-table thead { display: none; }
  .np-table, .np-table tbody, .np-table tr, .np-table td { display: block; width: 100%; }
  .np-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; background: #fff; }
  .np-table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right !important; }
  .np-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex-shrink: 0; }
  .np-table td.is-empty { display: none; }
  .np-table td.np-name { font-weight: 700; color: var(--ink); }
  .np-table .np-note_text { min-width: 0; }
  .pops { padding: 72px 0 24px; }
  .pops-track { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px; scroll-padding: 0 20px; scrollbar-width: none; max-width: none; }
  .pops-track::-webkit-scrollbar { display: none; }
  .pop { scroll-snap-align: start; }
  .quick { right: 12px; bottom: 12px; flex-direction: row; }
  .quick-btn { width: 52px; height: 52px; border-radius: 16px; }
  .quick-btn:not(.quick-tel):not(.quick-top) { display: none; }
  .ft { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .hd, .subnav, .quick, .ft, .pops { display: none !important; }
  .sub-hero { background: none; padding: 0; }
}

/* ---------- member login ---------- */
.login-box { max-width: 440px; margin: 0 auto; }
.login-desc { text-align: center; color: var(--muted); margin-bottom: 20px; }
.login-links { display: flex; justify-content: center; gap: 18px; margin: 18px 0 0 !important; font-size: 14px; color: var(--muted); }

/* profile-style section: figure next to its list (e.g. 의료진안내) */
@media (min-width: 720px) {
  .ct-sec:has(> .ct-fig + .ct-list) { display: grid; grid-template-columns: 260px 1fr; column-gap: 36px; align-items: start; }
  .ct-sec:has(> .ct-fig + .ct-list) > .ct-h { grid-column: 1 / -1; }
  .ct-sec:has(> .ct-fig + .ct-list) > .ct-fig { margin: 0; text-align: left; }
  .ct-sec:has(> .ct-fig + .ct-list) > .ct-list { padding-top: 8px; }
}

/* google map embed */
.map-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 480px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 12px; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.map-link { text-align: right; font-size: 14px; margin-bottom: 32px !important; }
.map-link a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

/* header admin button (board super-admin only) */
.hd-admin { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 500; font-size: 12px; }
.hd-admin:hover { background: #000; }

/* 진료 스케줄 팝업: PC에서는 700px, 한 화면에 들어오도록 촘촘하게 */
@media (min-width: 768px) {
  .pop-schedule .pop-body { padding: 14px 16px 10px; }
  .pop-schedule .sch-title { font-size: 18px; margin-bottom: 8px; }
  .pop-schedule .sch-weeks { gap: 6px; }
  .pop-schedule .sch-table { font-size: 12.5px; }
  .pop-schedule .sch-table tr > :first-child { width: 9%; }
  .pop-schedule .sch-table th, .pop-schedule .sch-table td { padding: 2px 2px; line-height: 1.25; word-break: keep-all; }
  .pop-schedule .sch-table td { font-size: 12px; letter-spacing: -.02em; }
  .pop-schedule .sch-table thead th { padding: 3px 3px; }
  .pop-schedule .sch-date { font-size: 13px; }
  .pop-schedule .sch-dow { font-size: 11px; }
  .pop-schedule .sch-daynote { display: block; margin-top: 1px; font-size: 11px; line-height: 1.2; }
  .pop-schedule .sch-note { font-size: 12px; margin-top: 6px; }
  .pop-schedule .pop-more { margin: 0 16px 10px; padding: 7px; font-size: 13px; }
}

/* 공휴일로 체크한 날은 요일과 관계없이 날짜·요일을 빨간색으로 (토요일 파랑보다 우선) */
.sch-table th.is-holiday .sch-date, .sch-table th.is-holiday .sch-dow { color: var(--red); }

/* 그리드 칸이 긴 글(말줄임 공지 제목 등) 때문에 화면보다 넓어지지 않도록 */
.calc > * { min-width: 0; }
/* 어떤 요소가 넘쳐도 페이지가 옆으로 밀리지 않게 (sticky 헤더에는 영향 없음) */
html, body { overflow-x: clip; }

/* 모바일 팝업: 진료 스케줄 숨김 + Swiper 좌우 슬라이드 */
@media (max-width: 767px) {
  .pops .pop-schedule { display: none !important; }
  .pops .pops-swiper { width: calc(100vw - 48px); max-width: 420px; margin: 0 auto; padding-top: 30px; overflow: visible; }
  .pops-swiper .pops-track { flex-wrap: nowrap; overflow: visible; gap: 0; padding: 0; scroll-snap-type: none; max-width: none; margin: 0; justify-content: flex-start; }
  .pops-swiper .pop { width: 100% !important; max-width: none; height: auto !important; animation: none; }
  .pops .pops-pagination.swiper-pagination { top: 4px !important; bottom: auto !important; height: 14px; line-height: 0; }
  .pops-pagination .swiper-pagination-bullet { width: 8px; height: 8px; background: #fff; opacity: .55; }
  .pops-pagination .swiper-pagination-bullet-active { opacity: 1; width: 22px; border-radius: 4px; background: var(--brand); }
}
.pops .pops-swiper .swiper-wrapper { align-items: flex-start; transition-property: transform, height; transition-timing-function: ease; }

/* ==========================================================================
   서울여성병원 리뉴얼 - 파스텔 테마 / 메인 섹션 / 본문 추가 요소
   ========================================================================== */
.ico-heart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.4C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.1 4.4 2.5h2c.8-1.4 2.3-2.5 4.4-2.5 3.6 0 5.7 3.7 4.2 7.1C19.5 16.4 12 21 12 21zm-1-12v2.5H8.5v2H11V16h2v-2.5h2.5v-2H13V9z'/%3E%3C/svg%3E"); }
img.is-missing { visibility: hidden; }
@media (max-width: 640px) { .pc-only { display: none; } }

/* header */

.logo-txt em { color: var(--pink-ink); }
.logo-txt strong { color: #0c7f40; }
.gnb-link::after { background: linear-gradient(90deg, var(--brand), var(--pink)); }

/* footer: 밝은 파스텔 */
.ft { background: #fff; color: var(--ink-2); border-top: 1px solid rgba(31,43,37,.1); }
.ft-top { border-bottom-color: var(--line); }
.logo-ft .logo-txt strong { color: #0c7f40; }
.logo-ft .logo-txt em { color: var(--pink-ink); }
.ft-links a:hover, .ft-info a:hover { color: var(--brand-ink); }
.ft-links strong { color: var(--brand-ink); font-weight: 700; }
.ft-mid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.ft-info { flex: 1 1 520px; color: var(--muted); }
.ft-sns { display: flex; gap: 8px; align-items: flex-start; }
.ft-sns a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.ft-sns a:hover { border-color: var(--brand-strong); color: var(--brand-ink); }
.ft-copy { color: var(--muted); }
.ft-admin { color: var(--muted); border-left-color: var(--line); }
.ft-admin:hover { color: var(--ink); }

/* sub pages */
.sub-eyebrow { color: var(--pink-ink); }
.subnav a.is-active::after { background: linear-gradient(90deg, var(--brand-strong), var(--pink)); }
.tbl-scroll { overflow-x: auto; margin: 0 0 16px; }
.tbl-scroll > .ct-table { margin: 0; min-width: 520px; }

/* 병원 연혁 */
.ct-timeline { position: relative; margin: 0 0 16px; padding-left: 28px; }
.ct-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--pink)); border-radius: 2px; }
.ct-timeline > li { position: relative; padding: 0 0 24px; }
.ct-timeline > li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand-strong); }
.ct-timeline > li:nth-child(even)::before { border-color: var(--pink); }
.ct-timeline > li > strong { display: block; font-size: 22px; font-weight: 700; color: var(--deep); line-height: 1.3; margin-bottom: 6px; }
.ct-timeline ul li { position: relative; padding-left: 14px; margin-bottom: 4px; }
.ct-timeline ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }

/* 의료진 */
.ct-dept { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-ink); font-size: 13.5px; font-weight: 500; margin-bottom: 10px !important; }
.ct-sec:has(> .ct-dept) { padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.ct-sec:has(> .ct-dept) .ct-fig img { border-radius: 18px; }
@media (min-width: 720px) {
  .ct-sec:has(> .ct-dept) { display: grid; grid-template-columns: 300px 1fr; column-gap: 36px; align-items: start; }
  .ct-sec:has(> .ct-dept) > .ct-dept, .ct-sec:has(> .ct-dept) > .ct-h { grid-column: 1 / -1; justify-self: start; }
  .ct-sec:has(> .ct-dept) > .ct-fig { grid-column: 1; grid-row: 3 / span 6; margin: 0; }
  .ct-sec:has(> .ct-dept) > :not(.ct-fig):not(.ct-dept):not(.ct-h) { grid-column: 2; }
  .ct-sec:has(> .ct-dept) > .ct-sub:first-of-type { margin-top: 0; }
}

/* 사이트맵 */
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.sm-grp { padding: 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-2); }
.sm-grp h3 { font-size: 19px; margin-bottom: 12px; color: var(--deep); }
.sm-grp li { margin: 6px 0; }
.sm-grp li ul { margin: 4px 0 8px 12px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 640px) {
  
  
  .ct-sec:has(> .ct-dept) { padding: 20px; }
}

/* ==========================================================================
   main v2 - 헤더 · 서브 상단 · 메인 페이지 (m- 접두사)
   ========================================================================== */
body { letter-spacing: -.01em; }

/* header: 한 줄, 오른쪽에 회원 링크 + 전화 버튼 */
.hd { background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(29,94,65,.07); }
.hd-main .wrap { gap: 20px; }
.logo img { width: 40px; height: 40px; }
.logo-txt em { font-size: 10.5px; letter-spacing: .04em; }
.logo-txt strong { font-size: 21px; letter-spacing: -.04em; }
.gnb { flex: 1; display: flex; justify-content: center; }
.gnb-list { gap: 2px; }
.gnb-link { font-size: 16.5px; font-weight: 600; padding: 0 16px; letter-spacing: -.02em; }
.gnb-link::after { left: 50%; right: auto; width: 5px; height: 5px; border-radius: 50%; bottom: 20px; transform: translateX(-50%) scale(0); background: var(--pink-ink); }
.gnb-item:hover .gnb-link::after, .gnb-item:focus-within .gnb-link::after, .gnb-item.is-active .gnb-link::after { transform: translateX(-50%) scale(1); }
.gnb-item.is-active .gnb-link { color: var(--deep); }
.gnb-sub { border: 0; border-radius: 18px; padding: 8px; box-shadow: 0 18px 50px rgba(20,60,40,.14); }
.gnb-sub a { border-radius: 10px; padding: 9px 14px; }
.hd-side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hd-member { gap: 12px; font-size: 13.5px; color: var(--muted); }
.hd-member a:hover { color: var(--ink); }
.hd-call { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--deep); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0; transition: background .2s; }
.hd-call:hover { background: #134530; color: #fff; }
.hd-call .ico { font-size: 15px; }
body.is-scrolled .hd { box-shadow: 0 8px 30px rgba(20,60,40,.06); }

/* buttons */
.btn { font-weight: 600; letter-spacing: -.01em; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn-ghost { background: #fff; border-color: rgba(29,94,65,.16); }
.btn-ghost:hover { background: var(--brand-softer); border-color: var(--brand-strong); }
.link-more { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }

/* sub page top: 둥근 카드형 */
.sub-hero { background: none; padding: 20px 0 0; overflow: visible; }
.sub-hero::before, .sub-hero::after { display: none; }
.sub-hero .wrap { padding: 52px 56px 46px; border-radius: 28px; background: radial-gradient(70% 140% at 100% 0%, var(--pink-soft) 0%, rgba(252,237,245,0) 60%), linear-gradient(120deg, var(--brand-soft) 0%, var(--lime-soft) 100%); }
.sub-hero-4 .wrap { background: radial-gradient(70% 140% at 100% 0%, #fbe3f0 0%, rgba(251,227,240,0) 60%), linear-gradient(120deg, var(--pink-soft) 0%, var(--lav-soft) 100%); }
.sub-hero-5 .wrap { background: radial-gradient(70% 140% at 100% 0%, var(--lime-soft) 0%, rgba(241,248,229,0) 60%), linear-gradient(120deg, var(--brand-soft) 0%, var(--sky-soft) 100%); }
.sub-eyebrow { font-weight: 700; letter-spacing: .02em; }
.sub-title { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.045em; margin-top: 6px; }
.subnav { border-bottom: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); margin-top: 14px; }
.subnav ul { gap: 6px; padding: 8px 0; }
.subnav a { padding: 9px 18px; border-radius: 999px; font-weight: 500; }
.subnav a:hover { background: var(--bg-2); color: var(--ink); }
.subnav a.is-active { background: var(--deep); color: #fff; font-weight: 600; }
.subnav a.is-active::after { display: none; }
.tabs a { border-color: rgba(29,94,65,.16); }
.tabs a.is-active { background: var(--brand-soft); color: var(--deep); border-color: var(--brand); font-weight: 600; }
.ct-lead { border-left: 0; border-radius: 24px; background: var(--bg-2); padding: 26px 30px; }

/* ---------- main (v3) ----------
   모든 영역은 .wrap 하나의 폭(1200px)에 맞춘다. 섹션 간격은 --sec-y 하나로 통일. */
.is-main { --sec-y: 128px; --line-soft: rgba(31,43,37,.1); }
.m-sec { padding: var(--sec-y) 0; }
.m-sec-alt { background: #f7f8f6; }
.m-sec-tight { padding-top: 0; }  /* 흰 섹션이 이어질 때 위 여백 중복 제거 */

/* 섹션 머리: 얇은 선 + 번호 라벨 | 제목 | 설명 */
.m-head { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 340px); gap: 24px 40px; align-items: end; margin-bottom: 56px; }
.m-label { align-self: start; display: flex; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.m-label span { color: var(--deep); }
.m-title { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.28; font-weight: 600; letter-spacing: -.045em; color: var(--ink); }
.m-desc { font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.m-head .link-more { justify-self: end; }
.m-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.link-more { gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.link-more::after { display: none; }
.link-more:hover { color: var(--deep); border-color: var(--deep); }

/* hero */
.m-hero { padding: 48px 0 0; background: linear-gradient(180deg, #eef4f0 0%, #f6f3f7 100%); }
.m-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.m-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.m-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink-ink); }
.m-hero-title { margin-top: 22px; font-size: clamp(40px, 5vw, 68px); line-height: 1.14; font-weight: 700; letter-spacing: -.055em; color: var(--ink); }
.m-hero-title em { font-style: normal; color: var(--deep); }
.m-hero-lead { margin-top: 24px; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.m-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.m-hero-hours { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(31,43,37,.12); }
.m-hero-hours dt { font-size: 13px; color: var(--muted); }
.m-hero-hours dd { margin-top: 2px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.m-hero-visual { position: relative; aspect-ratio: 1 / 1.05; border-radius: 28px; overflow: hidden; background: var(--brand-softer); }
.m-hero-visual picture, .m-hero-visual img { display: block; width: 100%; height: 100%; }
.m-hero-visual img { object-fit: cover; object-position: 72% 30%; }
.m-hero-call { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; padding: 14px 24px 14px 14px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(20,40,30,.12); transition: transform .3s; }
.m-hero-call:hover { transform: translateY(-3px); color: var(--ink); }
.m-hero-call > .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--deep); position: relative; -webkit-mask: none; mask: none; }
.m-hero-call > .ico::before { content: ""; position: absolute; inset: 13px; background: #fff; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.m-hero-call small { display: block; font-size: 12.5px; color: var(--muted); }
.m-hero-call strong { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.25; }
.m-hero-tags { display: none; }

/* 바로가기: 히어로 바로 아래, 같은 폭, 선으로만 구분 */
.m-quick { padding: 48px 0 72px; background: #f6f3f7; }
.m-quick-list { display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(20,40,30,.06); overflow: hidden; }
.m-quick-list li + li { border-left: 1px solid var(--line-soft); }
.m-quick-list a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 88px; font-size: 15.5px; font-weight: 600; color: var(--ink); transition: background .25s, color .25s; }
.m-quick-list a:hover { background: var(--brand-softer); color: var(--deep); }
.qi { width: 20px; height: 20px; position: relative; flex-shrink: 0; }
.qi::before { content: ""; position: absolute; inset: 0; background: var(--deep); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* 진료 클리닉: 4열 카드 (사진 위, 글 아래) */
.m-clinics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.m-card { position: relative; display: flex; flex-direction: column; }
.m-card-link { position: absolute; inset: 0; z-index: 1; }
.m-card-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--brand-softer); transition: filter .4s; }
.m-card:hover .m-card-img { filter: brightness(1.04) saturate(1.05); }
.m-card-body { padding: 22px 4px 0; }
.m-card-en { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.m-card h3 { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.035em; }
.m-card h3::after { content: "→"; font-size: 17px; color: var(--muted); transition: transform .3s, color .3s; }
.m-card:hover h3::after { transform: translateX(4px); color: var(--deep); }
.m-card-desc { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.m-chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.m-chips a { font-size: 14px; color: var(--ink-2); }
.m-chips a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 4px; }
.m-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.m-more strong { font-size: 15px; font-weight: 600; color: var(--ink); margin-right: 8px; }
.m-more span { font-size: 15px; color: var(--muted); }
.m-more a { font-size: 15px; font-weight: 600; color: var(--deep); }
.m-more a::after { content: " →"; }
.m-more a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* about */
.m-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.m-about-lead { font-size: 18px; line-height: 1.85; color: var(--ink-2); }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line-soft); }
.m-stats div { padding: 22px 0 0; }
.m-stats div + div { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.m-stats dt { font-size: 13px; color: var(--muted); }
.m-stats dd { margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.m-stats small { font-size: 14px; font-weight: 500; color: var(--muted); }
.m-about-visual { aspect-ratio: 4 / 3.3; border-radius: 28px; overflow: hidden; background: var(--pink-soft); }
.m-about-visual img { width: 100%; height: 100%; object-fit: cover; }

/* 건강검진 배너 (사진은 칸 안에서만, 확대 없음) */
.m-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: #f4f0f6; }
.m-banner-copy { padding: 72px 64px; align-self: center; }
.m-banner .m-label { margin-bottom: 20px; }
.m-banner .m-desc { margin-top: 18px; max-width: 420px; }
.m-banner-visual { min-height: 440px; }
.m-banner-visual picture, .m-banner-visual img { display: block; width: 100%; height: 100%; }
.m-banner-visual img { object-fit: cover; object-position: 70% 40%; }

/* 진료 정보 */
.m-info { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 24px; }
.m-box { padding: 32px; border-radius: 20px; background: #fff; display: flex; flex-direction: column; }
.m-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.m-box-title { font-size: 19px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 12px; }
.m-box-head .m-box-title { margin-bottom: 0; }
.m-box-head .link-more { font-size: 13.5px; }
.m-box-hours { background: var(--deep); color: rgba(255,255,255,.88); }
.m-box-hours .m-box-title { color: #fff; }
.m-hours div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.m-hours dt { width: 64px; flex-shrink: 0; color: rgba(255,255,255,.6); }
.m-hours-note { margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.m-tel { margin-top: auto; padding-top: 24px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.m-tel:hover { color: #c9f0d9; }
.m-notice li a { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.m-notice li:last-child a { border-bottom: 0; }
.m-notice li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-notice li a:hover span { color: var(--deep); }
.m-notice time { flex-shrink: 0; font-size: 13.5px; color: var(--muted); }
.m-notice .is-empty { padding: 20px 0; color: var(--muted); }
.m-comm a { position: relative; display: flex; flex-direction: column; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.m-comm li:last-child a { border-bottom: 0; }
.m-comm a::after { content: "→"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--muted); transition: transform .25s, color .25s; }
.m-comm a:hover { color: var(--ink); }
.m-comm a:hover::after { color: var(--deep); transform: translate(4px, -50%); }
.m-comm strong { font-size: 15px; font-weight: 600; }
.m-comm span { font-size: 13px; color: var(--muted); }

/* 둘러보기: 같은 폭 안에서 4열 */
.m-tour { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.m-tour a { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.m-tour a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.m-tour img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.m-tour a:hover img { transform: scale(1.04); }

/* 오시는 길 */
.m-loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: stretch; }
.m-loc-addr { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.m-loc-dl { margin-top: 20px; border-top: 1px solid var(--line-soft); }
.m-loc-dl div { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.m-loc-dl dt { width: 80px; color: var(--muted); }
.m-loc-map { min-height: 380px; border-radius: 20px; overflow: hidden; background: var(--bg-2); }
.m-loc-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* responsive */
@media (max-width: 1180px) {
  .hd-member { display: none; }
  .gnb-link { padding: 0 11px; font-size: 15.5px; }
}
@media (max-width: 1023px) {
  .is-main { --sec-y: 96px; }
  .gnb { display: none; }
  .nav-toggle { display: flex; }
  .hd-call span:last-child { display: none; }
  .hd-call { width: 42px; padding: 0; justify-content: center; }
  .m-head { grid-template-columns: 1fr; gap: 14px; }
  .m-head .link-more { justify-self: start; }
  .m-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .m-hero-visual { aspect-ratio: 4 / 3; }
  .m-quick-list { grid-template-columns: repeat(3, 1fr); }
  .m-quick-list li:nth-child(4) { border-left: 0; }
  .m-quick-list li:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .m-clinics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .m-about-grid, .m-loc { grid-template-columns: 1fr; gap: 40px; }
  .m-banner { grid-template-columns: 1fr; }
  .m-banner-visual { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .m-info { grid-template-columns: 1fr 1fr; }
  .m-box-comm { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .m-hero-visual { aspect-ratio: 4 / 4.6; }
  .m-hero-visual img { object-position: 50% 20%; }
  .m-banner-visual { aspect-ratio: 1 / 1; }
  .m-banner-visual img { object-position: 50% 35%; }
}
@media (max-width: 640px) {
  .is-main { --sec-y: 80px; }
  .m-hero { padding-top: 20px; }
  .m-hero-title { font-size: 38px; margin-top: 16px; }
  .m-hero-lead { font-size: 16px; }
  .m-hero-actions .btn { flex: 1; }
  .m-hero-hours { grid-template-columns: repeat(2, auto); gap: 12px 28px; }
  .m-hero-visual { border-radius: 22px; }
  .m-hero-call { left: 12px; right: 12px; bottom: 12px; }
  .m-quick { padding: 32px 0 48px; }
  .m-quick-list a { flex-direction: column; gap: 8px; height: 84px; font-size: 13.5px; }
  .m-head { margin-bottom: 36px; }
  .m-clinics { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .m-card-img { aspect-ratio: 1 / 1.1; border-radius: 16px; }
  .m-card h3 { font-size: 17px; }
  .m-card-desc { display: none; }
  .m-chips { gap: 2px 10px; }
  .m-chips a { font-size: 13px; }
  .m-more { margin-top: 40px; gap: 4px 16px; }
  .m-banner-in { margin-top: 56px; }
  .m-stats div + div { padding-left: 14px; }
  .m-stats dd { font-size: 18px; }
  .m-about-visual, .m-banner { border-radius: 22px; }
  .m-banner-copy { padding: 36px 24px 40px; }
  .m-info { grid-template-columns: 1fr; gap: 16px; }
  .m-box { padding: 26px 22px; }
  .m-tour { grid-template-columns: 1fr 1fr; gap: 10px; }
  .m-tour a { border-radius: 12px; }
  .m-loc-map, .m-loc-map iframe { min-height: 300px; }
  .sub-hero { padding-top: 12px; }
  .sub-hero .wrap { width: calc(100% - 24px); padding: 32px 24px 28px; border-radius: 22px; }
  .subnav { margin-top: 8px; }
}

/* 바로가기 선형 아이콘 (stroke, 같은 굵기) */
.qi-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E"); }
.qi-cal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.qi-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.5a8 8 0 0 1-11.7 7.1L4 19.8l1.2-4.4A8 8 0 1 1 20.5 11.5z'/%3E%3Cpath d='M8.5 11.5h.01M12 11.5h.01M15.5 11.5h.01'/%3E%3C/svg%3E"); }
.qi-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4.5' width='14' height='16.5' rx='2.5'/%3E%3Cpath d='M9 3h6v3H9zM9 13.2l2.2 2.2 4-4.2'/%3E%3C/svg%3E"); }
.qi-receipt { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-1.8-3 1.8-3-1.8L6 21z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3.5'/%3E%3C/svg%3E"); }
.qi-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11.4a7 7 0 0 1 14 0C19 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.6' r='2.6'/%3E%3C/svg%3E"); }
.qi { width: 22px; height: 22px; }

/* 빠른 메뉴 (오른쪽 아래) */
.quick { gap: 6px; }
.quick-btn { width: 56px; height: 56px; border-radius: 20px; border: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(20,60,40,.12); font-size: 11px; font-weight: 600; }
.quick-btn .ico { color: var(--deep); }
.quick-tel { background: var(--deep); color: #fff; }
.quick-tel .ico { color: #fff; }
.quick-tel:hover { color: #fff; }

/* ==========================================================================
   sub v3 - 서브페이지 (상단 사진 카드 · 2단 본문 · 번호 소제목)
   ========================================================================== */
.m-banner-in { margin-top: 96px; }

/* 상단: 왼쪽 제목, 오른쪽 대메뉴별 사진 */
.sub-hero { --sub-img: url("/assets/img/main/about.jpg"); --sub-pos: 50% 50%; }
.sub-hero-2 { --sub-img: url("/assets/img/main/hero.jpg"); --sub-pos: 70% 30%; }
.sub-hero-3 { --sub-img: url("/assets/img/main/clinic-myoma.jpg"); --sub-pos: 50% 55%; }
.sub-hero-4 { --sub-img: url("/assets/img/main/clinic-check.jpg"); --sub-pos: 60% 50%; }
.sub-hero-5 { --sub-img: url("/assets/img/main/moment.jpg"); --sub-pos: 72% 35%; }
.sub-hero .wrap, .sub-hero-4 .wrap, .sub-hero-5 .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: 48px; min-height: 300px; padding: 0 0 0 56px; border-radius: 28px; overflow: hidden; background: #f3f5f2;
}
.sub-hero .wrap::after { content: ""; grid-column: 2; grid-row: 1 / -1; background: var(--sub-img) var(--sub-pos) / cover no-repeat; }
.sub-hero .sub-eyebrow { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.sub-hero .sub-title { grid-column: 1; grid-row: 3; margin-top: 8px; font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.05em; color: var(--ink); }
.sub-hero .crumb { grid-column: 1; grid-row: 4; margin-top: 18px; font-size: 13px; }
.sub-hero .crumb li:last-child { color: var(--ink); font-weight: 600; }

/* 2차 메뉴 · 탭 */
.subnav { margin-top: 0; padding-top: 18px; background: rgba(255,255,255,.94); }
.subnav ul { padding: 0 0 14px; border-bottom: 1px solid rgba(31,43,37,.1); gap: 4px; }
.subnav a { padding: 9px 18px; font-size: 15px; }
.sub-body { padding-top: 56px; padding-bottom: 120px; }
.tabs { gap: 0; margin-bottom: 56px; border-bottom: 1px solid rgba(31,43,37,.1); }
.tabs a { position: relative; padding: 12px 20px; border: 0; border-radius: 0; font-size: 15.5px; color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { background: none; color: var(--ink); font-weight: 600; border: 0; }
.tabs a.is-active::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px; background: var(--deep); }

/* 본문 */
.ct { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); counter-reset: sec; }
.ct > .ct-lead { margin: 0 0 72px !important; padding: 0 0 48px; border: 0; border-bottom: 1px solid rgba(31,43,37,.1); border-radius: 0; background: none;
  font-size: clamp(21px, 2.2vw, 27px); line-height: 1.6; font-weight: 500; letter-spacing: -.035em; color: var(--ink); max-width: 900px; }
.ct > .ct-lead::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 24px; border-radius: 2px; background: linear-gradient(90deg, var(--deep), var(--pink-ink)); }

/* 섹션: 왼쪽 번호 + 소제목, 오른쪽 내용 */
.ct > .ct-sec:not(:has(> .ct-dept)) { counter-increment: sec; display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 56px; padding-top: 40px; margin-bottom: 72px; border-top: 1px solid rgba(31,43,37,.1); }
.ct > .ct-sec:not(:has(> .ct-dept)) > * { grid-column: 2; }
.ct > .ct-sec:not(:has(> .ct-dept)) > .ct-h { grid-column: 1; grid-row: 1 / span 20; align-self: start; position: sticky; top: calc(var(--hd-h) + 90px); }
.ct-h { padding: 0; margin: 0 0 16px; font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: -.04em; color: var(--ink); }
.ct-h::before { display: none; }
.ct > .ct-sec > .ct-h::before { content: counter(sec, decimal-leading-zero); display: block; position: static; width: auto; height: auto; margin-bottom: 10px; background: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--pink-ink); }
.ct-h small { display: block; margin-top: 4px; font-size: 14px; }
.ct-sub { margin: 32px 0 12px; font-size: 18.5px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.ct-sec > .ct-sub:first-of-type, .ct-sec > .ct-h + .ct-sub { margin-top: 0; }
.ct p { margin: 0 0 16px; }

.ct-list li { padding-left: 22px; margin-bottom: 10px; }
.ct-list li::before { left: 2px; top: .62em; width: 10px; height: 6px; border-radius: 0; background: none; border: solid var(--deep); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.ct-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ct-card { padding: 26px 26px 24px; border-radius: 20px; background: #fff; border: 1px solid rgba(31,43,37,.1); transition: border-color .3s, box-shadow .3s, transform .3s; }
.ct-card:hover { border-color: transparent; box-shadow: 0 16px 40px rgba(20,40,30,.08); transform: translateY(-2px); }
.ct-card h4 { font-size: 17.5px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 8px; }
.ct-card h4::before { content: ""; display: block; width: 24px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--deep); }
.ct-grid > .ct-card:nth-child(even) h4::before { background: var(--pink-ink); }
.ct-card p { font-size: 15px; line-height: 1.7; color: var(--muted); }

.ct-steps { gap: 0; counter-reset: st; border-top: 1px solid rgba(31,43,37,.1); margin-bottom: 24px; }
.ct-steps li { padding: 24px 0 24px 76px; border: 0; border-bottom: 1px solid rgba(31,43,37,.1); border-radius: 0; background: none; }
.ct-steps li::before { content: counter(st, decimal-leading-zero); left: 0; top: 22px; width: auto; height: auto; border-radius: 0; background: none; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--brand-strong); display: block; }
.ct-steps li strong { font-size: 17px; margin-bottom: 4px; }

.ct-note { position: relative; padding: 22px 24px 22px 60px; border: 0; border-radius: 16px; background: #f6f2f6; color: var(--ink-2); font-size: 15.5px; }
.ct-note::before { content: "i"; position: absolute; left: 22px; top: 21px; width: 24px; height: 24px; border-radius: 50%; background: var(--pink-ink); color: #fff; font-size: 13px; font-weight: 700; font-style: italic; font-family: Georgia, serif; display: grid; place-items: center; }

.ct-table, .legacy table.tb01 { border-top: 0; font-size: 15px; }
.tbl-scroll, .ct > .ct-table, .ct-sec > .ct-table { border: 1px solid rgba(31,43,37,.1); border-radius: 16px; overflow: hidden; }
.tbl-scroll > .ct-table { border: 0; }
.ct-table th, .ct-table td { padding: 14px 18px; border-bottom: 1px solid rgba(31,43,37,.08); }
.ct-table tr:last-child > * { border-bottom: 0; }
.ct-table thead th { background: #f3f5f2; font-size: 14px; font-weight: 600; color: var(--muted); }
.ct-table tbody th { background: #fafbfa; font-weight: 600; }
.ct-table tbody tr:hover td { background: var(--brand-softer); }

.ct-fig img { border-radius: 20px; }
.gallery { gap: 16px; }
.gallery figure { border-radius: 18px; }
.map-embed { border-radius: 20px; border: 0; }

/* 의료진 카드 */
.ct-sec:has(> .ct-dept) { padding: 36px; margin-bottom: 24px; border: 0; border-radius: 28px; background: #f6f7f5; }
.ct-sec:has(> .ct-dept) .ct-h { font-size: 28px; }
.ct-dept { background: #fff; color: var(--deep); }

/* 사이트맵 */
.sm-grp { border: 0; background: #f6f7f5; border-radius: 22px; }

@media (max-width: 1023px) {
  .ct > .ct-sec:not(:has(> .ct-dept)) { grid-template-columns: 1fr; }
  .ct > .ct-sec:not(:has(> .ct-dept)) > .ct-h { grid-column: 1; grid-row: auto; position: static; }
  .ct > .ct-sec:not(:has(> .ct-dept)) > * { grid-column: 1; }
}
@media (max-width: 767px) {
  .sub-hero .wrap, .sub-hero-4 .wrap, .sub-hero-5 .wrap { grid-template-columns: 1fr; grid-template-rows: 140px auto auto auto; min-height: 0; padding: 0 0 28px; }
  .sub-hero .wrap::after { grid-column: 1; grid-row: 1; }
  .sub-hero .sub-eyebrow, .sub-hero .sub-title, .sub-hero .crumb { padding: 0 24px; }
  .sub-hero .sub-eyebrow { margin-top: 24px; }
  .sub-body { padding-top: 32px; padding-bottom: 80px; }
  .tabs { margin-bottom: 36px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs a { white-space: nowrap; padding: 12px 14px; }
  .ct > .ct-lead { margin-bottom: 48px !important; padding-bottom: 32px; font-size: 19px; }
  .ct > .ct-sec:not(:has(> .ct-dept)) { margin-bottom: 48px; padding-top: 28px; }
  .ct-h { font-size: 21px; }
  .ct-steps li { padding-left: 56px; }
  .ct-steps li::before { font-size: 21px; }
  .ct-sec:has(> .ct-dept) { padding: 22px; }
}

/* 상단 카드 폭을 본문(.wrap 안쪽)과 맞춤, 이중 선 정리 */
.sub-hero .wrap, .sub-hero-4 .wrap, .sub-hero-5 .wrap { width: calc(100% - 40px); max-width: 1160px; }
.ct > .ct-lead { border-bottom: 0; padding-bottom: 0; margin-bottom: 64px !important; }
.ct > .ct-sec:first-child { border-top: 0; padding-top: 8px; }
@media (max-width: 640px) {
  .sub-hero .wrap, .sub-hero-4 .wrap, .sub-hero-5 .wrap { width: calc(100% - 32px); }
}
.ct > .ct-sec:has(> .ct-dept) > .ct-h::before { display: none; }

/* 서브 상단 v4: 흰 배경 제목 + 아래 가로 사진 띠 (상자/반반 분할 없음) */
.sub-hero { padding: 64px 0 0; }
.sub-hero .wrap, .sub-hero-4 .wrap, .sub-hero-5 .wrap {
  width: auto; max-width: 1200px; padding: 0 20px; min-height: 0; border-radius: 0; overflow: visible; background: none;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 32px;
}
.sub-hero .sub-eyebrow { grid-column: 1; grid-row: 1; margin: 0; color: var(--pink-ink); }
.sub-hero .sub-title { grid-column: 1; grid-row: 2; margin-top: 10px; font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.055em; line-height: 1.15; }
.sub-hero .crumb { grid-column: 2; grid-row: 2; align-self: end; margin: 0 0 8px; color: var(--muted); }
.sub-hero .wrap::after { grid-column: 1 / -1; grid-row: 3; height: 260px; margin-top: 40px; border-radius: 24px; }
.subnav { padding-top: 28px; }
@media (max-width: 767px) {
  .sub-hero { padding-top: 32px; }
  .sub-hero .wrap, .sub-hero-4 .wrap, .sub-hero-5 .wrap { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; padding: 0 16px; width: auto; }
  .sub-hero .sub-eyebrow, .sub-hero .sub-title, .sub-hero .crumb { padding: 0; }
  .sub-hero .sub-eyebrow { margin-top: 0; }
  .sub-hero .crumb { grid-column: 1; grid-row: 3; margin: 12px 0 0; }
  .sub-hero .wrap::after { grid-column: 1; grid-row: 4; height: 150px; margin-top: 24px; border-radius: 18px; }
  .subnav { padding-top: 16px; }
}

/* 서브 상단 v5: 사진 없이 은은한 그라데이션 + 선 패턴 (대메뉴별 색조만 다르게) */
.sub-hero { --t1: rgba(168,220,191,.45); --t2: rgba(242,196,222,.40); position: relative; overflow: hidden; padding: 76px 0 64px;
  background: radial-gradient(55% 140% at 88% 0%, var(--t2) 0%, transparent 62%), radial-gradient(45% 120% at 8% 100%, var(--t1) 0%, transparent 60%), #f7f9f8; }
.sub-hero::before { content: ""; display: block; position: absolute; right: -90px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27520%27%20height=%27520%27%20viewBox=%270%200%20520%20520%27%20fill=%27none%27%20stroke=%27%231d5e41%27%20stroke-opacity=%27.10%27%3E%3Ccircle%20cx=%27260%27%20cy=%27260%27%20r=%2740%27/%3E%3Ccircle%20cx=%27260%27%20cy=%27260%27%20r=%2770%27/%3E%3Ccircle%20cx=%27260%27%20cy=%27260%27%20r=%27100%27/%3E%3Ccircle%20cx=%27260%27%20cy=%27260%27%20r=%27130%27/%3E%3Ccircle%20cx=%27260%27%20cy=%27260%27%20r=%27160%27/%3E%3Ccircle%20cx=%27260%27%20cy=%27260%27%20r=%27190%27/%3E%3Ccircle%20cx=%27260%27%20cy=%27260%27%20r=%27220%27/%3E%3Ccircle%20cx=%27260%27%20cy=%27260%27%20r=%27250%27/%3E%3C/svg%3E") center / contain no-repeat; opacity: 1; filter: none; animation: none; left: auto; bottom: auto; border-radius: 0; }
.sub-hero::after { display: none; }
.sub-hero-2 { --t1: rgba(207,232,168,.50); --t2: rgba(168,220,191,.40); }
.sub-hero-3 { --t1: rgba(242,196,222,.45); --t2: rgba(214,200,240,.45); }
.sub-hero-4 { --t1: rgba(168,220,191,.40); --t2: rgba(207,232,168,.45); }
.sub-hero-5 { --t1: rgba(214,200,240,.40); --t2: rgba(242,196,222,.45); }
.sub-hero .wrap, .sub-hero-4 .wrap, .sub-hero-5 .wrap { position: relative; z-index: 1; background: none; }
.sub-hero .wrap::after { display: none; }
.subnav { padding-top: 0; border-top: 0; }
.subnav ul { padding-top: 14px; }
@media (max-width: 767px) {
  .sub-hero { padding: 40px 0 32px; }
  .sub-hero::before { width: 300px; height: 300px; right: -110px; }
}
.sub-hero::before { display: none; }  /* 원형 선 패턴 제거 - 그라데이션만 사용 */

/* 모바일: PC와 같은 사진을 작게(가로형) 맨 위에 - 모바일 전용 사진은 쓰지 않음 */
@media (max-width: 1023px) {
  .m-hero-visual { order: -1; aspect-ratio: 16 / 10; }
  .m-hero-visual img { object-position: 74% 32%; }
}
@media (max-width: 767px) {
  .m-hero-visual { aspect-ratio: 4 / 3; border-radius: 20px; }
  .m-hero-visual img { object-position: 76% 30%; }
  .m-hero-call { display: none; }
  .m-hero-grid { gap: 28px; }
  .m-banner-visual { aspect-ratio: 16 / 10; }
  .m-banner-visual img { object-position: 78% 35%; }
}
@media (max-width: 767px) { .m-about-visual { aspect-ratio: 16 / 10; } }
