/* ==========================================================================
   진천미래산부인과 - 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 {
  --brand: #fbc637;
  --brand-strong: #f2a900;
  --brand-ink: #8f5800;
  --brand-soft: #fff7e0;
  --brand-softer: #fffbf0;
  --ink: #232323;
  --ink-2: #48443e;
  --muted: #6e685f;
  --line: #ebe5d8;
  --line-2: #f3efe6;
  --bg: #ffffff;
  --bg-2: #faf8f4;
  --red: #d64545;
  --blue: #2f6fcf;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(60, 40, 0, .08);
  --shadow-sm: 0 4px 14px rgba(60, 40, 0, .07);
  --hd-h: 76px;
  --font: "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(--ink); color: #fff; }
.btn-dark:hover { background: #000; 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-util { background: var(--bg-2); font-size: 13px; color: var(--muted); }
.hd-util .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.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(20, 15, 5, .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 ---------- */
/* hero — full-bleed photo */
.hero { position: relative; overflow: hidden; min-height: clamp(620px, 88vh, 900px); display: flex; flex-direction: column; background: #fbf6ec; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform-origin: 70% 40%; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-veil { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(255,250,240,.92) 0%, rgba(255,250,240,.78) 30%, rgba(255,250,240,.2) 55%, rgba(255,250,240,0) 70%),
  linear-gradient(0deg, rgba(255,250,240,.6) 0%, rgba(255,250,240,0) 22%); }
.hero-in { flex: 1; display: flex; align-items: center; padding-top: 72px; padding-bottom: 150px; }
.hero-copy { max-width: 560px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.65); border: 1px solid rgba(242,169,0,.28); backdrop-filter: blur(8px); }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-strong); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,169,0,.5); } 50% { box-shadow: 0 0 0 7px rgba(242,169,0,0); } }
.hero-title { margin-top: 24px; font-size: clamp(44px, 6.2vw, 84px); line-height: 1.1; font-weight: 700; letter-spacing: -.05em; color: #1d1b18; }
.hero-title .ln { display: block; }
.hero-title .hl { position: relative; display: inline-block; z-index: 0; }
.hero-title .hl::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .34em; background: var(--brand); opacity: .85; border-radius: 6px; z-index: -1; transform-origin: left; transform: scaleX(0); animation: hlGrow .9s 1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes hlGrow { to { transform: scaleX(1); } }
.hero-lead { margin-top: 26px; font-size: 18.5px; line-height: 1.8; color: #3d3a35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.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); }

/* glass info bar at the bottom of the hero */
.hero-bar { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; }
.hero-bar-in { display: flex; align-items: stretch; gap: 0; }
.hero-bar-in > * { background: rgba(255,255,255,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.75); padding: 16px 24px; display: flex; flex-direction: column; justify-content: center; }
.hero-bar-in > * + * { border-left: 0; }
.hero-bar-in > :first-child { border-radius: 20px 0 0 20px; }
.hb-label { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.hb-item strong { font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.hb-tags { flex: 1; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 6px; }
.hb-tags span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.8); color: var(--ink-2); }
.hb-call { background: var(--ink) !important; border-color: var(--ink) !important; border-radius: 0 20px 20px 0; color: #fff; transition: background .25s; }
.hb-call .hb-label { color: var(--brand); }
.hb-call strong { font-size: 22px; letter-spacing: .01em; }
.hb-call:hover { background: #000 !important; color: #fff; }

.scroll-cue { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .25em; color: var(--muted); }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--brand-strong), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* emotional banner (mother & baby) */
.moment { position: relative; margin-top: 120px; min-height: clamp(460px, 62vh, 640px); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #fbf6ec; }
.moment-media { position: absolute; inset: 0; z-index: -2; }
.moment-media img { width: 100%; height: 118%; object-fit: cover; object-position: 75% 35%; will-change: transform; }
.moment-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,250,240,.94) 0%, rgba(255,250,240,.8) 28%, rgba(255,250,240,.15) 52%, rgba(255,250,240,0) 64%); }
.moment-in { padding-top: 80px; padding-bottom: 80px; }
.moment-copy { max-width: 520px; }
.moment-title { margin-top: 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.22; font-weight: 700; letter-spacing: -.04em; }
.moment-title em { font-style: normal; color: var(--brand-ink); }
.moment-lead { margin-top: 20px; font-size: 17px; line-height: 1.85; color: #3d3a35; }
.moment-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* quick links */
.quicklinks { margin-top: 56px; position: relative; z-index: 2; }
.ql-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ql-grid a { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 26px 10px 22px; height: 100%; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.ql-grid a::before { content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--brand-soft); transition: height .35s cubic-bezier(.2,.8,.2,1); z-index: 0; }
.ql-grid a > * { position: relative; z-index: 1; }
.ql-grid a:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(80,50,0,.1); border-color: var(--brand); color: var(--ink); }
.ql-grid a:hover::before { height: 100%; }
.ql-grid strong { font-size: 16px; font-weight: 700; margin-top: 10px; }
.ql-grid span:last-child { font-size: 13px; color: var(--muted); }
.ql-ico { width: 54px; height: 54px; border-radius: 18px; background: var(--brand-soft); position: relative; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s; }
.ql-ico::before { content: ""; position: absolute; inset: 14px; background: var(--brand-ink); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ql-grid a:hover .ql-ico { transform: rotate(-8deg) scale(1.08); background: #fff; }

/* sections */
.sec { padding: 112px 0 0; }
.sec-head { margin-bottom: 40px; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--brand-ink); letter-spacing: .16em; text-transform: uppercase; }
.sec-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-strong); }
.sec-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.3; margin-top: 10px; }
.sec-desc { color: var(--muted); margin-top: 8px; }

/* clinic cards */
.clinic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.clinic-card { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; min-height: 360px; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; isolation: isolate; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, color .3s; }
.clinic-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c, var(--brand)); clip-path: circle(0% at 90% 8%); transition: clip-path .6s cubic-bezier(.2,.8,.2,1); }
.clinic-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(80,50,0,.14); }
.clinic-card:hover::before { clip-path: circle(150% at 90% 8%); }
.c-infert { --c: #ffe08a; } .c-lap { --c: #ffd2b3; } .c-obs { --c: #ffd6df; } .c-gyn { --c: #d7ecd2; }
.clinic-no { font-size: 46px; font-weight: 300; line-height: 1; color: rgba(35,35,35,.18); letter-spacing: -.03em; transition: color .3s; }
.clinic-card:hover .clinic-no { color: rgba(35,35,35,.35); }
.clinic-en { margin-top: 26px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); font-weight: 500; }
.clinic-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; }
.clinic-card h3 a { display: inline-flex; align-items: center; gap: 8px; }
.clinic-card h3 a::after { content: ""; position: absolute; inset: 0; }
.clinic-card h3 .arr { font-size: 18px; transition: transform .3s; }
.clinic-card:hover h3 .arr { transform: translateX(6px); }
.clinic-desc { font-size: 14px; color: var(--ink-2); margin: 10px 0 20px; }
.clinic-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; position: relative; z-index: 1; }
.clinic-card li a { position: relative; z-index: 2; display: inline-block; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid rgba(0,0,0,.06); color: var(--ink-2); transition: background .2s; }
.clinic-card li a:hover { background: #fff; color: var(--ink); }


/* info */
.info-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; }
.info-card { padding: 30px; border-radius: 26px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; transition: box-shadow .3s; }
.info-card:hover { box-shadow: 0 16px 36px rgba(80,50,0,.08); }
.info-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.info-title { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.info-head .info-title { margin-bottom: 0; }
.info-hours { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.info-hours::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--brand); opacity: .14; }
.info-hours .info-title { color: var(--brand); }
.hours div { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.15); font-size: 15px; }
.hours dt { width: 64px; flex-shrink: 0; color: rgba(255,255,255,.65); }
.hours-note { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 12px; }
.info-tel { font-size: 30px; font-weight: 700; color: var(--brand); margin: 14px 0 6px; letter-spacing: .01em; }
.info-tel:hover { color: #fff; }
.info-hours .link-more { color: rgba(255,255,255,.8); margin-top: auto; }
.notice-list li a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; transition: padding .25s, color .2s; }
.notice-list li a:hover { padding-left: 6px; }
.notice-list li:last-child a { border-bottom: 0; }
.nt-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list time { flex-shrink: 0; font-size: 13px; color: var(--muted); }
.notice-list .is-empty { padding: 20px 0; color: var(--muted); }
.comm-list { display: grid; gap: 10px; }
.comm-list a { position: relative; display: flex; flex-direction: column; padding: 13px 18px; border-radius: 14px; background: var(--bg-2); transition: background .25s, transform .25s; }
.comm-list a::after { content: "→"; position: absolute; right: 16px; top: 50%; transform: translate(-6px, -50%); opacity: 0; transition: opacity .25s, transform .25s; color: var(--brand-ink); }
.comm-list a:hover { background: var(--brand-soft); color: var(--ink); }
.comm-list a:hover::after { opacity: 1; transform: translate(0, -50%); }
.comm-list strong { font-size: 15px; }
.comm-list span { font-size: 13px; color: var(--muted); }

.sec-location { padding-bottom: 110px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.loc-addr { font-size: 19px; font-weight: 500; margin: 18px 0; }
.loc-dl div { display: flex; gap: 12px; padding: 4px 0; }
.loc-dl dt { width: 72px; color: var(--muted); }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.loc-map { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.loc-map img { width: 100%; transition: transform .8s; }
.loc-map:hover img { transform: scale(1.03); }

/* 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(60,40,0,.06); }
@media (min-width: 1024px) {
  body.is-scrolled .hd-main .wrap { height: 64px; }
  body.is-scrolled .subnav { top: calc(64px + 34px); }
  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%, #fff3cf 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: #ffd0c2; opacity: .3; 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-3::after { background: #ffb98a; } .sub-hero-4::after { background: #ffc4d2; } .sub-hero-5::after { background: #b9dcb4; } .sub-hero-7::after { background: #bcd4f5; }
.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: calc(var(--hd-h) + 34px); 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(--ink); color: #fff; border-color: var(--ink); }
.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(--ink); 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: #fff6f0; border: 1px solid #fde1cd; color: #6c3f1f; 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(20,15,5,.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; }
  .hd-util .wrap { height: 32px; }
  .subnav { top: calc(var(--hd-h) + 32px); }
  .hero-in { padding-bottom: 200px; }
  .hero-veil { background: linear-gradient(90deg, rgba(255,250,240,.94) 0%, rgba(255,250,240,.8) 40%, rgba(255,250,240,.1) 75%), linear-gradient(0deg, rgba(255,250,240,.7) 0%, rgba(255,250,240,0) 30%); }
  .hero-bar-in { flex-wrap: wrap; }
  .hb-tags { display: none !important; }
  .hero-bar-in > .hb-item { flex: 1; }
  .scroll-cue { display: none; }
  .moment-veil { background: linear-gradient(90deg, rgba(255,250,240,.95) 0%, rgba(255,250,240,.85) 42%, rgba(255,250,240,.1) 78%); }
  .ql-grid { grid-template-columns: repeat(3, 1fr); }
  .clinic-card { min-height: 0; }
  .clinic-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-community { grid-column: 1 / -1; }
  .comm-list { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; gap: 28px; }
  .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; }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { flex: 1; }
  .ql-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ql-grid a { padding: 18px 8px; border-radius: 18px; }
  .quicklinks { margin-top: 36px; }
  .sec { padding-top: 76px; }
  .hero { min-height: 0; }
  .hero-media img { object-position: 60% 20%; }
  .hero-veil { background: linear-gradient(0deg, #fbf6ec 0%, rgba(251,246,236,.96) 38%, rgba(251,246,236,.5) 58%, rgba(251,246,236,0) 75%); }
  .hero-in { align-items: flex-end; padding-top: 330px; padding-bottom: 24px; }
  .hero-title { font-size: 42px; margin-top: 16px; }
  .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-bar { position: relative; bottom: auto; padding-bottom: 8px; }
  .hero-bar-in > * { padding: 12px 16px; }
  .hero-bar-in > :first-child { border-radius: 16px 0 0 0; }
  .hero-bar-in > .hb-item:nth-child(2) { border-radius: 0 16px 0 0; }
  .hb-call { flex: 1 1 100%; border-radius: 0 0 16px 16px; flex-direction: row !important; justify-content: space-between !important; align-items: center; }
  .hb-call strong { font-size: 20px; }
  .moment { margin-top: 76px; flex-direction: column; align-items: stretch; min-height: 0; }
  .moment-media { position: relative; inset: auto; height: 300px; z-index: 0; }
  .moment-media img { height: 100%; object-position: 55% 30%; }
  .moment-veil { display: none; }
  .moment-in { padding-top: 32px; padding-bottom: 40px; }
  .moment-title { font-size: 30px; }
  .moment-lead { font-size: 15.5px; }
  .moment-lead br { display: none; }
  .clinic-card { padding: 24px 22px; }
  .clinic-no { font-size: 36px; }
  .clinic-en { margin-top: 14px; }
  .clinic-grid, .info-grid, .comm-list { grid-template-columns: 1fr; }
    .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; }
.loc-map .map-embed { margin: 0; border: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.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); }

/* 그리드 칸이 긴 글(말줄임 공지 제목 등) 때문에 화면보다 넓어지지 않도록 */
.info-grid > *, .clinic-grid > *, .loc-grid > *, .ql-grid > *, .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; }
