/* ═════════════════════════════════════════════════════════════
   기존 본문(html/*.html)에 쓰인 클래스들을 새 디자인으로 다시 정의
   출처: 기존 사이트 css/main.css. 모양은 새 디자인(둥근 모서리, 회색 바탕, 로고 두 색)에 맞춤
   ═════════════════════════════════════════════════════════════ */

/* ── 글자 ── */
.legacy { font-size: 16px; line-height: 1.85; color: var(--ink); }
.legacy .tbold, .legacy b { font-weight: 800; color: var(--ink); }
.legacy .ct3 { display: inline-block; margin: 6px 0 2px; font-size: 16px; font-weight: 800; color: var(--brand-purple); }
.legacy .c_point { display: block; margin: 10px 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.legacy .c8-f2 { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.25; color: var(--purple-deep); }
.legacy .c8-f3 { display: block; font-size: 20px; font-weight: 800; line-height: 1.4; color: var(--magenta); }
.legacy font[style*="color:red"], .legacy span[style*="color:red"] { color: #c0392b !important; font-weight: 700; }
.legacy .liner { height: 0; border: 0; border-bottom: 1px dashed var(--line-strong); margin: 14px 0 22px; }
.legacy h2:not(.ct) { font-size: 20px; font-weight: 800; margin: 24px 0 10px; }
.legacy p { margin: 0 0 1em; }

/* ── 목록 ── */
.legacy ul, .legacy ol { margin: 6px 0 18px; padding: 0; }
.legacy .c_ul { list-style: none; counter-reset: cul; display: grid; gap: 8px; }
.legacy .c_ul > li {
  counter-increment: cul; position: relative;
  padding: 12px 16px 12px 52px; border-radius: var(--r-md);
  background: var(--grey-50); line-height: 1.65;
}
.legacy .c_ul > li::before {
  content: counter(cul); position: absolute; left: 14px; top: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 800; line-height: 1;
}
.legacy .c_ul2, .legacy .c_ul3, .legacy ul:not([class]) { list-style: none; display: grid; gap: 6px; }
.legacy .c_ul2 > li, .legacy .c_ul3 > li, .legacy ul:not([class]) > li {
  position: relative; padding-left: 22px; line-height: 1.7;
  background: none; margin-left: 0;
}
.legacy .c_ul2 > li::before, .legacy ul:not([class]) > li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 8px; height: 8px; border-radius: 3px; background: var(--brand-purple); transform: rotate(45deg);
}
.legacy .c_ul3 > li::before {
  content: ""; position: absolute; left: 6px; top: .78em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong);
}
.legacy td ul, .legacy td ol { margin: 4px 0; }

/* ── 표 (기존처럼 글자 가운데, 첫 줄은 회색 머리) ── */
.legacy table th, .legacy table td { text-align: center; vertical-align: middle; }
.legacy table th { color: var(--purple-deep); background: var(--grey-50); font-weight: 800; }
.legacy table td { color: var(--ink); }
.legacy .c_table_c, .legacy td.left, .legacy th.left { text-align: left; }
.legacy .c_table_tr, .legacy .c_table_tr2 { background: var(--grey-50); }
.legacy .c_table3, .legacy .c_table5, .legacy .c_table6 { font-size: 14px; }
.legacy .c_table3 td, .legacy .c_table5 td, .legacy .c_table6 td, .legacy .c_table7 td { padding: 9px 10px; }
.legacy .c_table5 td, .legacy .c_table6 td { border-right: 1px solid var(--line); }
.legacy .c_table5 td:last-child, .legacy .c_table6 td:last-child { border-right: 0; }
.legacy .c_table4 td { font-size: 15px; line-height: 1.8; }
.legacy .c_table4 td ul li { padding-left: 22px; }
.legacy .c_table2 td { padding: 18px 14px; }
.legacy table caption { caption-side: top; text-align: left; padding: 0 0 8px; font-weight: 800; }

/* ── 버튼 ── */
.legacy .down_btn, .legacy .down_btn_01, .legacy .down, .legacy .c9_btn a, .legacy .c9_btn_01 a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; height: auto;
  margin: 0 8px 10px 0; padding: 10px 18px;
  border-radius: 999px;
  background: var(--magenta); color: #fff !important;
  font-size: 14px; font-weight: 800; line-height: 1.3; text-decoration: none;
}
.legacy .down_btn:hover, .legacy .down_btn_01:hover, .legacy .down:hover, .legacy .c9_btn a:hover { background: var(--magenta-deep); color: #fff !important; }
.legacy .c9_btn_box { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0; }
.legacy .c9_btn, .legacy .c9_btn_01 { display: inline-block; margin: 0; background: none; }
.legacy .c9_btn_01 a { background: var(--grey-100); color: var(--ink) !important; }
.legacy .c9_btn_01 a:hover { background: var(--purple-tint); color: var(--purple-deep) !important; }

/* ── 주요 전화번호 (html/1-3.html) ── */
.legacy .tell .tb01, .legacy .floor_intro .tb01 { width: 100%; border-top: 0; }
.legacy .tell .tb01 th, .legacy .floor_intro .tb01 th {
  background: var(--brand-grad); color: #fff; font-size: 17px; font-weight: 800; padding: 14px 12px;
}
.legacy .tell .tb01 td { font-size: 16px; padding: 12px; }
.legacy .tell .tb01 td a, .legacy .tell .tb01 td strong { font-weight: 800; color: var(--magenta-deep); }

/* ── 층별 안내 표 (기존 html/1-2.html. 새 사이트는 시설안내를 따로 그림) ── */
.legacy .floor_intro { position: static; padding-left: 0; }
.legacy .floor_intro img { position: static; height: auto; max-width: 240px; float: right; margin: 0 0 16px 24px; }

/* ── 산후조리원 시설(html/8-3.html)의 겹친 탭 상자: 겹치지 않게 차례로 ── */
.legacy .c02-box { position: static; width: auto; height: auto; }
.legacy .c02-box > div, .legacy [style*="position:absolute"] {
  position: static !important; width: auto !important; height: auto !important; visibility: visible !important;
}
.legacy .c02-box iframe { width: 100%; height: 520px; border-radius: var(--r-lg); }

/* ── 고정폭 정리 ── */
.legacy .fix { width: auto; padding: 32px 0; }
.legacy [style*="width:730px"], .legacy [style*="width: 730px"] { width: auto !important; }
.legacy [style*="float:left; width:410px"], .legacy [style*="float:left; width:350px"] { float: none !important; width: auto !important; padding-left: 0 !important; }
.legacy img[style*="float:left"] { float: left; margin: 0 24px 16px 0; border-radius: var(--r-lg); max-width: 45%; }
.legacy img[align="absmiddle"] { vertical-align: middle; border-radius: 0; box-shadow: none; }

/* ── 사이트맵 (html/10-1.html) ── */
.legacy [class^="smap"] {
  float: none; width: auto; height: auto;
  display: inline-block; vertical-align: top;
  min-width: 170px; margin: 0 12px 18px 0; padding: 16px 18px;
  border-radius: var(--r-lg); background: var(--grey-50); font-size: 14px;
}

@media (max-width: 699px) {
  .legacy img[style*="float:left"], .legacy .floor_intro img { float: none; max-width: 100%; margin: 0 0 16px; }
  .legacy .c_ul > li { padding-left: 46px; }
  .legacy [class^="smap"] { display: block; margin-right: 0; }
}

/* ═════ 퀵메뉴 '전화하기' 목록 ═════ */
.call-sheet {
  position: fixed; z-index: 60;
  right: 112px; top: 50%;
  width: 320px;
  padding: 18px 18px 16px;
  border-radius: var(--r-xl);
  background: #2b1e27; color: #fff;
  box-shadow: 0 24px 50px -18px rgb(30 10 25 / 0.55);
  opacity: 0; translate: 16px -50%; scale: .96;
  transform-origin: right center;
}
.call-sheet.is-open { opacity: 1; translate: 0 -50%; scale: 1; }
.call-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.call-sheet-head p { margin: 0; font-size: 15px; font-weight: 800; }
.call-sheet-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.1); color: #fff; cursor: pointer; }
.call-sheet-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.call-sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.call-sheet li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: var(--r-md);
  color: #fff; text-decoration: none;
}
.call-sheet li a span { font-size: 14.5px; color: rgb(255 255 255 / 0.7); }
.call-sheet li a strong { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.call-sheet li a:hover, .call-sheet li a:focus-visible { background: rgb(255 255 255 / 0.08); }
.call-sheet li:first-child a { background: var(--brand-grad); }
.call-sheet li:first-child a span { color: rgb(255 255 255 / 0.9); }
.call-sheet-note { margin: 10px 4px 0; font-size: 13px; color: rgb(255 255 255 / 0.6); }
.call-sheet-note a { color: #fff; font-weight: 800; }
.call-backdrop { display: none; }

@media (max-width: 1439px) {
  .call-sheet { right: auto; left: 50%; top: auto; bottom: 92px; translate: -50% 16px; transform-origin: center bottom; }
  .call-sheet.is-open { translate: -50% 0; }
}
@media (max-width: 599px) {
  .call-sheet {
    left: 0; right: 0; bottom: 0; width: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    translate: 0 100%; scale: 1;
  }
  .call-sheet.is-open { translate: 0 0; }
  .call-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgb(30 15 25 / 0.45); opacity: 0; }
  .call-backdrop.is-open { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .call-sheet { transition: opacity .22s ease, translate .32s cubic-bezier(.2, .8, .2, 1), scale .25s ease; }
  .call-backdrop { transition: opacity .22s ease; }
  .call-sheet li { opacity: 0; translate: 10px 0; transition: opacity .3s ease, translate .35s cubic-bezier(.2, .8, .2, 1); }
  .call-sheet.is-open li { opacity: 1; translate: 0 0; transition-delay: calc(.06s + var(--i) * .04s); }
}

/* ═════ 상담 게시판 ═════ */
.board-intro { margin: 0 0 18px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--grey-50); color: var(--muted); font-size: 15px; }
.board-list .lock { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: var(--brand-purple); stroke-width: 2; stroke-linecap: round; }
.board-list .meta .ans { padding: 2px 10px; border-radius: 999px; background: var(--grey-100); color: var(--muted); font-size: 12px; font-weight: 700; }
.board-list .meta .ans.is-done { background: var(--purple-tint); color: var(--purple-deep); }
.board-list .meta .who { color: var(--muted); }
.lock-chip { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--purple-tint); color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.post-meta > span + time, .post-meta > span + span { margin-left: 8px; }

.pw-box {
  max-width: 460px; margin: 8px auto 0; padding: 36px 32px 28px;
  border-radius: 28px; background: var(--paper); box-shadow: var(--shadow-1);
  text-align: center;
}
.pw-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--brand-grad); }
.pw-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; }
.pw-box h2 { margin-top: 14px; font-size: 22px; font-weight: 800; }
.pw-box > p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.pw-error { color: #c0392b !important; font-weight: 700; }
.pw-row { display: flex; gap: 8px; margin-top: 18px; }
.pw-row input { flex: 1; min-width: 0; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font: inherit; font-size: 15px; }
.pw-row button { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--magenta); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pw-row button:hover { background: var(--magenta-deep); }
.pw-help { font-size: 13px !important; }

.answers { display: grid; gap: 12px; margin-top: 32px; }
.answer { padding: 20px 22px; border-radius: var(--r-xl); background: var(--grey-50); }
.answer.is-hospital { background: var(--purple-tint); }
.answer-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 14px; }
.answer-head strong { color: var(--purple-deep); }
.answer-head time { color: var(--muted); font-variant-numeric: tabular-nums; }
.answer-body { font-size: 15.5px; line-height: 1.8; }
.answers-empty { margin-top: 28px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--grey-50); color: var(--muted); font-size: 14px; }

/* ═════ 모바일 메뉴 버튼과 펼침 메뉴 ═════ */
@media (max-width: 1099px) {
  .m-nav summary {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 14px 0 12px;
    border: 0; border-radius: 999px;
    background: var(--grey-100); color: var(--ink);
    font-size: 14px; font-weight: 800;
  }
  .m-nav[open] summary { background: var(--brand-grad); color: #fff; border: 0; }
  .burger { position: relative; display: inline-block; width: 18px; height: 14px; }
  .burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
  .burger i:nth-child(1) { top: 0; }
  .burger i:nth-child(2) { top: 6px; }
  .burger i:nth-child(3) { top: 12px; }
  .m-nav[open] .burger i:nth-child(1) { top: 6px; rotate: 45deg; }
  .m-nav[open] .burger i:nth-child(2) { opacity: 0; }
  .m-nav[open] .burger i:nth-child(3) { top: 6px; rotate: -45deg; }

  .m-nav-panel {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    display: flex; flex-direction: column; gap: 0;
    padding: 0; max-height: none;
    background: var(--grey-50);
    border: 0; border-radius: 0; box-shadow: none;
    overflow: hidden;
  }
  .m-nav-sections {
    flex: 1; overflow-y: auto; overscroll-behavior: contain;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; align-content: start;
    padding: 16px var(--gutter) 20px;
  }
  .m-nav-sections section { padding: 16px 18px 12px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-1); }
  .m-nav-panel h2 {
    margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--purple-deep);
    display: flex; align-items: center; gap: 8px;
  }
  .m-nav-panel h2::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--brand-grad); }
  .m-nav-panel ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
  .m-nav-panel ul a {
    display: block; padding: 7px 12px; border-radius: 999px;
    background: var(--grey-50); font-size: 14px; font-weight: 600; text-decoration: none;
  }
  .m-nav-panel ul a:hover, .m-nav-panel ul a:focus-visible { background: var(--purple-tint); color: var(--purple-deep); }
  .m-nav-call {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
    background: #2b1e27; color: #fff; text-decoration: none;
  }
  .m-nav-call span { font-size: 14px; color: rgb(255 255 255 / 0.7); }
  .m-nav-call strong { font-size: 20px; font-weight: 800; }
  .m-nav-call:hover { color: #fff; }
  body:has(.m-nav[open]) { overflow: hidden; }
  body:has(.m-nav[open]) .quick { display: none; }
}
@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  .burger i { transition: top .2s ease, rotate .2s ease, opacity .15s ease; }
  .m-nav[open] .m-nav-panel { animation: navIn .25s ease both; }
  .m-nav[open] .m-nav-sections section { animation: navItem .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .03s); }
  @keyframes navIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes navItem { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 419px) {
  .m-nav-label { display: none; }
  .m-nav summary { width: 42px; padding: 0; justify-content: center; }
}

/* ═════ 메인 팝업: 넘겨보기 + 썸네일 ═════ */
.popups {
  --pp-w: 440px;
  width: var(--pp-w); max-width: calc(100vw - 32px);
  padding: 0; border: 0; overflow: hidden;
  border-radius: 24px;
  background: #2b1e27;
  box-shadow: 0 30px 70px -20px rgb(20 5 15 / 0.6);
}
.popups::backdrop { background: rgb(30 15 25 / 0.55); backdrop-filter: blur(2px); }
.pp-stage { position: relative; background: #fff; }
.pp-track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  outline: none;
}
.pp-track::-webkit-scrollbar { display: none; }
.pp-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--grey-100); }
.pp-slide a { display: contents; }
.pp-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pp-arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  display: grid; place-items: center;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.92); color: var(--ink);
  box-shadow: var(--shadow-1); cursor: pointer;
}
.pp-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-arrow:hover { background: var(--magenta); color: #fff; }
.pp-arrow.is-prev { left: 10px; }
.pp-arrow.is-next { right: 10px; }
.pp-count {
  position: absolute; right: 12px; bottom: 12px;
  padding: 3px 10px; border-radius: 999px;
  background: rgb(30 15 25 / 0.6); color: #fff;
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}

.pp-thumbs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 12px 4px; scroll-padding: 12px;
}
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumbs button {
  flex: 0 0 64px; height: 80px; padding: 0;
  border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: #3a2b35; cursor: pointer; opacity: .55;
}
.pp-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumbs button:hover { opacity: .85; }
.pp-thumbs button[aria-selected="true"] { opacity: 1; border-color: #f07ab8; box-shadow: 0 0 0 2px rgb(240 122 184 / 0.3); }
.pp-dots { display: none; justify-content: center; gap: 6px; padding: 12px 0 2px; }
.pp-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgb(255 255 255 / 0.35); }
.pp-dots i.is-on { width: 18px; background: var(--brand-grad); }

.pp-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px; }
.pp-bar button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border: 0; border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.pp-today { background: transparent; color: rgb(255 255 255 / 0.75); }
.pp-today svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pp-today:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
.pp-close { background: #fff; color: var(--ink); padding-inline: 20px !important; }
.pp-close:hover { background: var(--magenta); color: #fff; }

/* 휴대폰: 화면 너비의 70%(최대는 PC와 같은 440px), 썸네일 대신 점 */
@media (max-width: 699px) {
  .popups { width: min(70vw, var(--pp-w)); max-width: min(70vw, var(--pp-w)); border-radius: 20px; }
  .pp-arrow, .pp-thumbs { display: none; }
  .pp-dots { display: flex; }
  .pp-bar { flex-direction: column; align-items: stretch; gap: 4px; }
  .pp-bar button { justify-content: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .popups[open] { animation: ppIn .35s cubic-bezier(.2, .8, .2, 1); }
  .pp-dots i { transition: width .25s ease, background-color .25s ease; }
  .pp-thumbs button { transition: opacity .2s ease, border-color .2s ease; }
  @keyframes ppIn { from { opacity: 0; translate: 0 20px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
}

.pw-box + .post-back { text-align: center; }

/* ═════ 기존 본문: 큰 제목 단위 카드 ═════ */
main:has(.legacy), main:has(.facility-floor), main:has(.board-list), main:has(.cal), main:has(.dr-list), main:has(.ab), main:has(.post-body), main:has(.pw-box) { background: var(--grey-50); }
main:has(.legacy) .sub-hero, main:has(.facility-floor) .sub-hero, main:has(.board-list) .sub-hero, main:has(.cal) .sub-hero,
main:has(.dr-list) .sub-hero, main:has(.ab) .sub-hero, main:has(.post-body) .sub-hero, main:has(.pw-box) .sub-hero { background: var(--grey-0); }
.legacy { max-width: none; display: grid; gap: 18px; }
.lg-sec {
  display: flow-root;
  padding: 30px 34px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.lg-sec > .gap:first-child { display: none; }
.legacy .lg-sec > h2.ct:first-child,
.legacy .lg-sec > .gap:first-child + h2.ct,
.legacy h2.ct {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px; padding: 0; border: 0;
  font-size: 22px;
}
.legacy h2.ct::before {
  content: ""; flex: none; width: 6px; height: 24px; border-radius: 3px; background: var(--brand-grad);
}
.legacy h3.ct2 {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 26px 0 10px; padding: 5px 14px 5px 10px;
  border-radius: 999px; background: var(--purple-tint);
  color: var(--purple-deep); font-size: 16px;
}
.legacy h3.ct2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-purple); }
.lg-sec > h3.ct2:first-child, .lg-sec > .gap:first-child + h3.ct2 { margin-top: 0; }
/* 카드 안의 표, 목록 정리 */
.lg-sec table, .lg-sec .c_table { box-shadow: none; border: 1px solid var(--line); border-radius: var(--r-lg); }
.lg-sec .c_ul > li, .lg-sec .c_ul2 > li { background-color: transparent; }
.lg-sec .c_ul > li { background: var(--grey-50); }
.lg-sec .c_img { box-shadow: none; }
.facility-floor { padding: 26px 28px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-1); }
.facility-floor h2 { margin-bottom: 18px; }
.cal, .board-list, .board-intro { background: var(--paper); }
.board-intro { box-shadow: var(--shadow-1); }

@media (max-width: 699px) {
  .lg-sec { padding: 22px 18px; border-radius: var(--r-xl); }
  .legacy h2.ct { font-size: 19px; }
  .facility-floor { padding: 18px 16px; }
}

/* ═════ 진료스케줄 달력 ═════ */
.cal-head { align-items: center; padding: 14px 16px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-1); margin-bottom: 14px; }
.cal-head h2 { font-size: 24px; }
.cal-nav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; background: var(--grey-100);
  font-size: 14px; font-weight: 800; color: var(--ink) !important; text-decoration: none;
}
.cal-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cal-nav:hover { background: var(--brand-grad); color: #fff !important; }
.cal-legend { gap: 8px; margin: 0 0 14px; }
.cal th { background: var(--grey-50); color: var(--muted); font-size: 13px; }
.cal th:last-child, .cal td:last-child .cal-day { color: var(--brand-purple); }
.cal td { height: 118px; padding: 8px; }
.cal td.is-today { background: var(--purple-tint); box-shadow: inset 0 0 0 2px var(--brand-purple); }
.cal td.is-today .cal-day::after { content: "오늘"; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--brand-purple); color: #fff; font-size: 10px; vertical-align: 2px; }
.cal-day { font-size: 15px; margin-bottom: 6px; }
.cal-entry { display: flex; flex-direction: column; gap: 3px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  max-width: 100%; padding: 2px 8px 2px 3px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--grey-100); color: var(--ink);
}
.chip b { padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--muted); }
.chip.t-duty { background: var(--purple-tint); }
.chip.t-duty b { background: var(--brand-purple); }
.chip.t-off { background: #fbecef; color: #8f2b3c; }
.chip.t-off b { background: #d1435b; }
.chip.t-half { background: #e9f1fb; color: #24518a; }
.chip.t-half b { background: #3b72b8; }
.chip.t-note { padding-left: 8px; }
.cal-list .cal-entry { flex-direction: row; flex-wrap: wrap; }
.cal-list li { background: var(--paper); }

/* ═════ 사이트맵 ═════ */
.smap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.smap-card { padding: 22px 22px 18px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-1); }
.smap-card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 18px; font-weight: 800; }
.smap-card h2::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--brand-grad); }
.smap-card h2 a { text-decoration: none; }
.smap-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.smap-card > ul > li > a { display: block; padding: 7px 10px; border-radius: var(--r-sm); font-size: 15px; font-weight: 700; text-decoration: none; }
.smap-card > ul > li > a:hover { background: var(--purple-tint); color: var(--purple-deep); }
.smap-card li ul { margin: 0 0 6px 10px; padding-left: 10px; border-left: 2px solid var(--grey-100); }
.smap-card li ul a { display: block; padding: 3px 8px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.smap-card li ul a:hover { color: var(--magenta-deep); }

/* ═════ 개인정보처리방침·환자권리장전 ═════ */
.legacy .bul { display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 2px; border-radius: 50%; background: var(--brand-purple); }
.legacy .lg-sec { font-size: 15.5px; line-height: 1.9; }

/* 소제목은 항상 한 줄을 차지 (뒤 글이 옆에 붙지 않게) */
.legacy h3.ct2 { display: flex; width: fit-content; margin-bottom: 8px; }
.legacy h3.ct2 + .gap { display: none; }

/* 숨긴 요소는 어떤 화면 규칙보다 우선해서 숨긴다 (투명한 배경막이 화면 터치를 막던 문제) */
.call-backdrop[hidden], .call-sheet[hidden] { display: none !important; }
/* 모바일 메뉴 펼침: 투명도 애니메이션이 멈춰 안 보이는 경우가 없도록 위치만 움직인다 */
@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  .m-nav[open] .m-nav-panel { animation: none; }
}
.m-nav { position: relative; z-index: 70; }

/* ═════ 게시판 목록 줄 정리 ═════ */
.board-list li { align-items: center; }
.board-list a { min-width: 0; display: flex; align-items: flex-start; gap: 0; line-height: 1.5; }
.board-list a .lock { flex: none; margin-top: 3px; }
.board-list .meta { align-items: center; flex-wrap: nowrap; }
.board-list .meta > * { flex: none; white-space: nowrap; line-height: 1.6; }
.board-list .meta .ans { align-self: center; height: auto; }
@media (max-width: 799px) {
  .board-list { padding: 4px 18px; }
  .board-list li { flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 0; }
  .board-list .meta { justify-content: flex-start; gap: 8px; font-size: 13px; }
  .board-list .meta .ans { order: 3; margin-left: auto; }
}

@media (max-width: 899px) { .subnav .subnav-call, .subnav .subnav-head { display: none !important; } }

/* 머리말 전화번호는 뺐다: 진료상담 버튼을 오른쪽 끝으로 */
.site-header .cta { margin-left: auto; }
@media (max-width: 1099px) { .m-nav { margin-left: auto; } }

/* 로그인·회원가입 (회원 기능은 2단계에서 옮길 때까지 기존 사이트로 연결) */
.member-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.member-links a { padding: 6px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.member-links a:hover { background: var(--grey-100); color: var(--ink); }
.member-links + .cta { margin-left: 4px; }
.m-nav-member { display: none; }
@media (max-width: 1099px) {
  .member-links { display: none; }
  .m-nav-member { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px var(--gutter) 0; }
  .m-nav-member a { display: block; padding: 11px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-1); text-align: center; font-size: 14px; font-weight: 800; text-decoration: none; }
  .m-nav-member a + a { background: var(--brand-grad); color: #fff; box-shadow: none; }
}

/* ═════ 비급여 수가목록 ═════ */
.fee { display: grid; gap: 16px; }
.fee-intro { margin: 0; padding: 18px 22px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-1); color: var(--muted); font-size: 15px; }
.fee-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.fee-jump a { padding: 7px 14px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-1); font-size: 14px; font-weight: 700; text-decoration: none; }
.fee-jump a:hover { background: var(--purple-tint); color: var(--purple-deep); }
.fee-sec { scroll-margin-top: calc(var(--header-h) + 16px); }
.fee-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 21px; font-weight: 800; }
.fee-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--brand-grad); }
.fee-title span { font-size: 13px; font-weight: 600; color: var(--muted); }
.fee-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fee-list li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--grey-50);
}
.fee-name { font-weight: 700; font-size: 15px; line-height: 1.45; }
.fee-note { grid-column: 1; font-size: 13px; color: var(--muted); }
.fee-price { grid-column: 2; grid-row: 1 / span 2; font-weight: 900; font-size: 16px; color: var(--purple-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-foot { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 799px) { .fee-list { grid-template-columns: 1fr; } }

/* ═════ 머리말: 창 너비 100%, 메뉴 간격은 창 크기에 맞춰 고르게 ═════ */
.site-header .bar.wrap {
  max-width: none;
  padding-inline: clamp(16px, 4vw, 110px);
  gap: clamp(16px, 2.4vw, 48px);
}
.site-header .brand { flex: none; }
.site-header .gnb { flex: 1 1 auto; min-width: 0; }
.site-header .gnb > ul { justify-content: space-evenly; gap: 0; }
.site-header .gnb-item > a {
  padding-inline: clamp(4px, .7vw, 14px);
  font-size: clamp(14.5px, 1.02vw, 17px);
  font-weight: 700;
}
.site-header .member-links { margin-left: 0; flex: none; }
.site-header .member-links a { font-size: clamp(13px, .85vw, 14.5px); }
.site-header .cta { margin-left: 0; flex: none; padding: 11px clamp(16px, 1.3vw, 24px); font-size: clamp(14px, .95vw, 16px); }
@media (max-width: 1279px) {
  .site-header .member-links { display: none; }
}
@media (max-width: 1099px) {
  .site-header .bar.wrap { padding-inline: var(--gutter); }
}

/* ═════ 회원 로그인·가입 ═════ */
.member-links form { margin: 0; }
.member-links button { padding: 6px 10px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.member-links button:hover { background: var(--grey-100); color: var(--ink); }
.member-name { padding: 0 6px; font-size: 13.5px; font-weight: 800; color: var(--purple-deep); white-space: nowrap; }
.m-nav-member form { margin: 0; }
.m-nav-member button, .m-nav-hello { display: block; width: 100%; padding: 11px; border: 0; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-1); font: inherit; font-size: 14px; font-weight: 800; text-align: center; cursor: pointer; }

main:has(.mb-wrap) { background: var(--grey-50); }
.mb-wrap { display: grid; place-items: center; padding: 56px var(--gutter) 88px; }
.mb-card { width: min(420px, 100%); padding: 36px 32px 28px; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow-1); text-align: center; }
.mb-card.is-wide { width: min(620px, 100%); text-align: left; }
.mb-card.is-wide .mb-icon, .mb-card.is-wide h1, .mb-card.is-wide .mb-lead { text-align: center; margin-inline: auto; display: block; }
.mb-card.is-wide .mb-icon { display: grid; }
.mb-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--brand-grad); }
.mb-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mb-card h1 { margin-top: 14px; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.mb-lead { margin: 6px 0 22px; color: var(--muted); font-size: 15px; }
.mb-field { display: grid; align-content: start; gap: 6px; margin-bottom: 14px; text-align: left; }
.mb-field > span { font-size: 14px; font-weight: 800; }
.mb-field small { font-size: 12.5px; color: var(--muted); }
.mb-field small.is-ok { color: #1f8a4c; font-weight: 700; }
.mb-field small.is-bad { color: #c0392b; font-weight: 700; }
.mb-field input { width: 100%; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 14px; font: inherit; font-size: 15px; }
.mb-field input:focus { outline: none; border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgb(123 58 160 / .15); }
.mb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
.mb-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.mb-check input { width: 18px; height: 18px; accent-color: var(--magenta); }
.mb-terms { margin: 6px 0 4px; padding: 12px 16px; border-radius: 14px; background: var(--grey-50); font-size: 13.5px; }
.mb-terms summary { cursor: pointer; font-weight: 800; }
.mb-terms p { margin: 10px 0 0; color: var(--muted); line-height: 1.8; }
.mb-btn { width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: 999px; background: var(--magenta); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.mb-btn:hover { background: var(--magenta-deep); }
.mb-alt { margin: 16px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.mb-alt a { font-weight: 800; color: var(--magenta-deep); }
.mb-help { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.mb-help a { color: var(--magenta-deep); font-weight: 700; }
.mb-help.is-left { margin: -4px 0 0; text-align: left; }
.mb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 20px; padding: 4px; border-radius: 999px; background: var(--grey-50); }
.mb-tabs a { padding: 9px 0; border-radius: 999px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--muted); text-decoration: none; }
.mb-tabs a[aria-current="page"] { background: #fff; color: var(--ink, #2a2230); font-weight: 800; box-shadow: 0 1px 4px rgb(42 34 48 / .12); }
.mb-btn.is-link { display: block; text-align: center; text-decoration: none; }
.mb-error { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; background: #fbecef; color: #c0392b; font-weight: 700; font-size: 14px; text-align: left; }
.mb-ok { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; background: var(--purple-tint); color: var(--purple-deep); font-weight: 700; font-size: 14px; }
@media (max-width: 599px) { .mb-row { grid-template-columns: 1fr; } .mb-card { padding: 28px 20px 22px; } }

/* 관리 화면에서 지정한 공휴일 */
.cal td.is-sun .cal-day, .cal-list li.is-holiday time { color: #c0392b; }
.cal-holiday { display: inline-block; margin: 0 0 4px; padding: 2px 8px; border-radius: 999px; background: #fbecef; color: #c0392b; font-size: 12px; font-weight: 800; }

/* 자연출산앨범: 사진 바둑판 */
.album { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.album a { display: grid; gap: 6px; text-decoration: none; color: var(--ink); }
.album-photo { display: block; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 16px; background: var(--grey-50); }
.album-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.album a:hover .album-photo img { transform: scale(1.04); }
.album a:focus-visible { outline: none; }
.album a:focus-visible .album-photo { outline: 3px solid var(--magenta); outline-offset: 2px; }
.album-title { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.45; }
.album a:hover .album-title { color: var(--magenta-deep); }
.album time { font-size: 13px; color: var(--muted); }
@media (max-width: 899px) { .album { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 479px) { .album { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .album-photo img { transition: none; } }

/* 퀸스맘클래스 수강신청 */
.ap { display: grid; gap: 22px; }
.ap h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.ap-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px 28px; align-items: center; padding: 24px 26px; border-radius: 22px; background: var(--blush); }
.ap-head p { margin: 0; color: var(--muted); }
.ap-head a, .ap-rules a { color: var(--magenta-deep); font-weight: 800; }
.ap-classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-classes li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--paper); font-weight: 800; }
.ap-classes span { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--magenta-deep); font-size: 12.5px; }
.ap-classes li.is-closed { color: var(--muted); font-weight: 600; }
.ap-classes li.is-closed span { background: var(--grey-100); color: var(--muted); }
.ap-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-rules li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.ap-rules li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--magenta); }
.ap-rules b { color: var(--ink); }
.ap-login { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); text-align: center; }
.ap-login p { margin: 0 0 16px; color: var(--muted); }
.ap-login-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ap-login-btns .mb-btn { width: auto; min-width: 160px; margin: 0; padding: 13px 28px; }
.ap-btn-line { display: inline-flex; align-items: center; padding: 13px 28px; border-radius: 999px; border: 1.5px solid var(--magenta); color: var(--magenta-deep); font-weight: 800; text-decoration: none; }
.ap-form { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); }
.ap-form h2 { margin-bottom: 16px; }
.ap-pick { margin: 0 0 16px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-pick legend { margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.ap-pick label { cursor: pointer; }
.ap-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ap-pick span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 700; }
.ap-pick input:checked + span { border-color: var(--magenta); background: var(--tint); color: var(--magenta-deep); font-weight: 800; }
.ap-pick input:focus-visible + span { outline: 3px solid var(--magenta); outline-offset: 2px; }
.ap-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 14px; font: inherit; font-size: 15px; resize: vertical; }
.ap-mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-mine li { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.ap-mine-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ap-mine-head time { margin-left: auto; font-size: 13px; color: var(--muted); }
.ap-state { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--grey-100); color: var(--muted); }
.ap-state.s-1 { background: #e6f5ec; color: #1f7a45; }
.ap-state.s-2 { background: #fff1e0; color: #a35400; }
.ap-mine-body { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.ap-answer { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--purple-tint); font-size: 14px; line-height: 1.7; }
@media (max-width: 767px) { .ap-head { grid-template-columns: 1fr; padding: 20px; } .ap-form { padding: 20px; } }

/* 옛 글의 내어쓰기(text-indent 음수, 손으로 쓴 "- " 자리)를 없애고 점 자리만큼 띄운다 */
.legacy .c_ul2 > li, .legacy .c_ul3 > li, .legacy ul:not([class]) > li { text-indent: 0 !important; padding-left: 22px !important; }
.legacy .c_ul2 > li *, .legacy .c_ul3 > li *, .legacy ul:not([class]) > li * { text-indent: 0; }

/* 모바일 메뉴: 로그인·회원가입 줄은 고정, 아래 목록만 스크롤 (겹쳐 보이지 않게 바탕과 경계선) */
@media (max-width: 1099px) {
  .m-nav-panel .m-nav-member { flex: none; position: relative; z-index: 1; padding-bottom: 14px; background: var(--grey-50); box-shadow: 0 1px 0 var(--line), 0 8px 14px -12px rgb(51 41 47 / .35); }
  .m-nav-sections { padding-top: 14px; }
}

/* ── 층별 안내: 짧은 층 이름(모바일), 모바일에서 층 안내는 아래에서 올라오는 창 ── */
.fn-short { display: none; }
.stop-close, .stop-backdrop { display: none; }

@media (max-width: 899px) {
  /* 건물 그림 + 층 목록을 나란히. 층 높이는 그림 폭에 맞춰 계산한다 (그림 240×598, 13칸) */
  .directory {
    --bw: min(38vw, 190px);
    --floor-h: calc(var(--bw) * 598 / 240 / 13) !important;
    grid-template-columns: var(--bw) minmax(0, 1fr); gap: 0 10px; padding-bottom: 40px;
  }
  .bldg { display: block; width: var(--bw); height: auto; }
  .floors { padding-inline: 8px; }
  .floor-btn, .floor-static { gap: 8px; padding: 0 4px 0 2px; }
  .floor-label { width: 50px; height: calc(var(--floor-h) - 8px); max-height: 30px; border-width: 1.5px; font-size: 13px; }
  .floor-name { min-width: 0; font-size: 13.5px; line-height: 1.25; }
  .fn-full { display: none; }
  .fn-short { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .floor-static .floor-name { font-size: 13px; }

  /* 아래에서 올라오는 창 */
  .stop-panels {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    max-height: 88vh; margin: 0; overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px rgb(30 20 28 / .25);
    transform: translateY(105%); visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .is-sheet-open .stop-panels { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  .stop-panels .stop { border-radius: 0; box-shadow: none; }
  .stop-backdrop {
    display: block; position: fixed; inset: 0; z-index: 999;
    background: rgb(30 20 28 / .45); opacity: 0; transition: opacity .25s ease;
  }
  .stop-backdrop[hidden] { display: none; }
  .is-sheet-open .stop-backdrop { opacity: 1; }
  .stop-close {
    display: grid; place-items: center; position: sticky; top: 12px; z-index: 3;
    width: 40px; height: 40px; margin: 12px 12px -52px auto;
    border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--ink);
    box-shadow: 0 4px 14px rgb(30 20 28 / .2); cursor: pointer;
  }
  .stop-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .stop-panels::before {
    /* 손잡이 모양 */
    content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; z-index: 4;
    width: 40px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .85);
  }
}
html.no-scroll, html.no-scroll body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .stop-panels, .stop-backdrop { transition: none !important; }
}

/* 게시판 고정 공지 */
.bn { margin: 0 0 18px; }
.bn-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bn ul { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.bn li + li { border-top: 1px solid var(--line); }
.bn summary { display: flex; align-items: center; gap: 10px; padding: 13px 18px; cursor: pointer; list-style: none; }
.bn summary::-webkit-details-marker { display: none; }
.bn summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -2px; transition: rotate .2s ease; }
.bn details[open] summary::after { rotate: 225deg; translate: 0 2px; }
.bn summary:hover .bn-subject { color: var(--magenta-deep); }
.bn-tag { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--magenta-deep); font-size: 12px; font-weight: 800; }
.bn-subject { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn time { flex: none; font-size: 13px; color: var(--muted); }
.bn details[open] .bn-subject { white-space: normal; }
.bn-body { padding: 4px 18px 18px 62px; font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.bn-body img { max-width: 100%; height: auto; }
@media (max-width: 599px) {
  .bn time { display: none; }
  .bn-body { padding-left: 18px; }
}

/* 수강신청: 관리자에게만 보이는 관리 버튼 */
.ap-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: #33292f; }
.ap-admin span { margin-right: 4px; font-size: 13px; font-weight: 800; color: #ff9fcf; }
.ap-admin a { padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / .12); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; }
.ap-admin a:hover { background: var(--magenta); }
/* 수강신청: 이번 달 신청 상태, 대기 강좌 */
.ap-window { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0; padding: 14px 18px; border-radius: 16px; font-size: 15px; }
.ap-window.is-open { background: #e6f5ec; color: #1f5f3a; }
.ap-window.is-closed { background: #fff1e0; color: #8a4500; }
.ap-window span { font-size: 14px; opacity: .85; }
.ap-classes li.is-wait span { background: #fff1e0; color: #a35400; }
.ap-pick small { font-weight: 600; color: #a35400; }

/* ═════ 머리말 영문 사이트 버튼 (진료상담 버튼 자리) ═════ */
.site-header .cta-en {
  display: inline-flex; align-items: center; gap: 8px;
  padding-left: 10px;
  background: #1f2a4d; color: #fff;
}
.site-header .cta-en:hover { background: #2b3a69; color: #fff; }
/* 모바일: 메뉴 버튼 왼쪽에 같은 높이의 둥근 버튼 */
@media (max-width: 1099px) {
  .site-header .cta-en {
    display: inline-flex; margin-left: auto;
    height: 42px; padding: 0 14px 0 9px; gap: 7px;
    font-size: 14px;
  }
  .site-header .cta-en + .m-nav { margin-left: 0; }
}
/* 아주 좁은 화면: 메뉴 버튼처럼 동그라미만 */
@media (max-width: 419px) {
  .site-header .cta-en { width: 42px; padding: 0; justify-content: center; }
  .site-header .cta-en .cta-en-label { display: none; }
}

/* ═════ 자연주의 출산센터(/page/34) 맨 위 소개: 병원소개의 인용 카드(.ab-quote)와 같은 모양 ═════ */
.legacy .lg-sec:has(> .c3-2-top) { padding: 0; background: transparent; box-shadow: none; }
.legacy .lg-sec:has(> .c3-2-top) > br { display: none; }
.legacy .c3-2-top {
  display: flex; flex-direction: column; gap: 12px;
  padding: 40px 48px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.legacy .c3-2-top > br, .legacy .c3-2-top > .gap { display: none; }
.legacy .c3-2-top .c3-2 {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 5px 14px 5px 10px; border-radius: 999px;
  background: var(--purple-tint); color: var(--purple-deep);
  font-size: 15px; font-weight: 800;
}
.legacy .c3-2-top .c3-2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-purple); }
.legacy .c3-2-top .c3-2-s {
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.5; color: var(--ink);
}
@media (max-width: 699px) {
  .legacy .c3-2-top { padding: 26px 20px; border-radius: var(--r-xl); }
}

/* 주소 끝 #이름 으로 들어온 카드·제목이 고정 머리글에 가리지 않게 (예: 오늘 진료 → /page/19#내과진료시간) */
.lg-sec[id], .pb-title[id] { scroll-margin-top: calc(var(--header-h, 82px) + 24px); }
.lg-sec:target { outline: 3px solid var(--brand-purple, #7b2d8e); outline-offset: 4px; animation: lg-target 2.4s ease forwards 1s; }
@keyframes lg-target { to { outline-color: transparent; } }

/* 진료스케줄·강좌일정 모바일 목록: 오늘 표시 */
.cal-list li.is-today {
  margin: 4px -12px; padding: 12px; border-bottom: 0; border-radius: 14px;
  background: var(--tint, #fbeef5); box-shadow: inset 3px 0 0 var(--magenta, #b5176f);
  scroll-margin: calc(var(--header-h, 64px) + 80px) 0 120px;
}
.cal-list li.is-today time { color: var(--magenta-deep, #8e1257); }
.cal-today {
  display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--magenta, #b5176f); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; line-height: 1.5;
}
.cal-none { color: var(--muted); font-size: 14px; }

/* 진료스케줄·강좌일정: 달력으로 보기 / 목록으로 보기 / 링크 복사 */
.cal-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 14px; }
.cal-tools:not(:has(> *:not(.is-mobile))) { display: none; }
.cal-tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font: inherit; font-size: 14px; font-weight: 800; color: var(--ink) !important; text-decoration: none; cursor: pointer;
}
.cal-tool svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-tool:hover { border-color: var(--magenta); color: var(--magenta-deep) !important; }
.cal-tool.is-share { background: var(--magenta); border-color: var(--magenta); color: #fff !important; }
.cal-tool.is-share:hover { background: var(--magenta-deep); color: #fff !important; }
@media (max-width: 799px) {
  .cal-tools:has(> .is-mobile) { display: flex; justify-content: stretch; }
  .cal-tool.is-mobile { flex: 1; justify-content: center; padding: 12px 16px; background: var(--magenta); border-color: var(--magenta); color: #fff !important; }
}
/* 휴대폰 목록: 오늘 위치로 내려가도 '달력으로 보기'가 머리글 아래에 계속 보이게 */
@media (max-width: 799px) {
  .cal-tools:has(> .is-mobile) {
    position: sticky; top: calc(var(--header-h, 64px) + 8px); z-index: 5;
    margin-inline: -4px; padding: 4px; border-radius: 999px;
    background: rgb(246 244 247 / .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .cal-tool.is-mobile { box-shadow: 0 6px 16px rgb(181 23 111 / .25); }
}

/* 달력 주소(/page/20/calendar): 화면 폭과 상관없이 항상 PC처럼 달력 표. 좁으면 옆으로 밀어 보기 */
.cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 24px; }
.cal.is-forced { display: table !important; min-width: 760px; }
.cal-list[hidden] { display: none !important; }
@media (max-width: 799px) {
  .cal.is-forced td { height: 96px; padding: 6px; }
  .cal.is-forced .chip { font-size: 11.5px; }
}

/* 모든 페이지: 손가락으로 페이지 전체가 확대되지 않게 (iOS는 viewport 설정을 무시하므로 touch-action도). 달력 주소에서는 달력 상자 안에서만 확대(site.js) */
html { touch-action: pan-x pan-y; }
.cal-scroll { touch-action: pan-x pan-y; overscroll-behavior-x: contain; background: var(--paper); box-shadow: var(--shadow-1); }
.cal-scroll.is-zoomed { outline: 2px solid var(--magenta); outline-offset: -2px; }
.cal-zoom { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 0 10px; }
.cal-zoom span { margin-right: auto; font-size: 13px; color: var(--muted); }
.cal-zoom button {
  min-width: 40px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font: inherit; font-size: 18px; font-weight: 800; color: var(--ink); cursor: pointer;
}
.cal-zoom button.is-fit { font-size: 13.5px; white-space: nowrap; }
.cal-zoom span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal-zoom button:hover { border-color: var(--magenta); color: var(--magenta-deep); }
@media (min-width: 800px) { .cal-zoom { display: none; } }

/* 휴대폰·태블릿 하위 메뉴 둘째 줄: 위에서 고른 메뉴(분홍 알약)와 같은 색 계열의 판 + 그 알약을 가리키는 꼭지
   (꼭지 위치 --notch-x 는 site.js가 고른 알약 가운데에 맞춘다) */
.subnav-sub { display: none; }
@media (max-width: 899px) {
  .subnav:has(.subnav-sub) { overflow: visible; }
  /* 바깥 판(테두리·배경은 늘 또렷) 안에서 메뉴 줄만 옆으로 밀리고, 흐림도 안쪽 줄에만 */
  .subnav .subnav-panel {
    margin: 0 0 12px; padding: 3px; border-radius: 14px; background: var(--tint, #fbeef5);
    border: 1px solid color-mix(in srgb, var(--magenta, #b5176f) 22%, #fff);
  }
  .subnav .subnav-sub {
    position: relative;
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
    list-style: none; margin: 0; padding: 2px; border-radius: 10px;
  }
  .subnav .subnav-sub::-webkit-scrollbar { display: none; }
  /* 꼭지: 판 위로 솟은 세모 (바깥 세모 = 테두리 색, 안쪽 세모 = 판 색) */
  .subnav .subnav-wrap { position: relative; padding-top: 10px; }
  .subnav .subnav-wrap::before, .subnav .subnav-wrap::after {
    content: ""; position: absolute; z-index: 1; left: var(--notch-x, 40px); translate: -50% 0;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }
  .subnav .subnav-wrap::before { top: 0; width: 24px; height: 12px; background: color-mix(in srgb, var(--magenta, #b5176f) 22%, #fff); }
  .subnav .subnav-wrap::after { top: 1.5px; width: 21px; height: 11px; background: var(--tint, #fbeef5); }
  .subnav .subnav-sub li { flex: 1 0 auto; border: 0; }
  .subnav .subnav-sub a, .subnav .subnav-sub a[aria-current="page"] {
    display: block; padding: 9px 14px !important; border-radius: 10px !important;
    text-align: center; white-space: nowrap; text-decoration: none;
    font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--magenta-deep, #8e1257) 65%, var(--muted)) !important;
    background: none !important; box-shadow: none !important; translate: none !important;
  }
  .subnav .subnav-sub a::before { content: none; }
  .subnav .subnav-sub a[aria-current="page"] {
    background: var(--paper) !important; color: var(--magenta-deep) !important; font-weight: 800;
    box-shadow: 0 1px 2px rgb(142 18 87 / .10), 0 3px 10px rgb(142 18 87 / .10) !important;
  }
}

/* 휴대폰 가로 메뉴(두 줄 모두): 옆으로 더 있으면 그쪽 끝을 흐리게 → 밀어서 볼 수 있다는 느낌 */
@media (max-width: 899px) {
  .subnav > ul, .subnav .subnav-sub {
    overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    scroll-behavior: smooth; touch-action: pan-x pan-y;
    --fade-l: 0px; --fade-r: 0px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  }
  .subnav > ul.is-more-r, .subnav .subnav-sub.is-more-r { --fade-r: 48px; }
  .subnav > ul.is-more-l, .subnav .subnav-sub.is-more-l { --fade-l: 32px; }
}

/* 진료과 휴진 일정 (관리 화면 '휴진 일정'에서 넣음) — 진료시간 안내 칸 제목 아래, 검진안내 */
.closure-note {
  margin: 0 0 16px; padding: 14px 18px; border-radius: 16px;
  background: #fdf0f2; border: 1px solid #f5c9d1;
}
.closure-note .closure-title { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 800; color: #c0283f; }
.closure-note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.closure-note li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; color: var(--ink); }
.closure-note .closure-date { font-weight: 800; font-variant-numeric: tabular-nums; }
.closure-note .closure-tag {
  padding: 1px 9px; border-radius: 999px; background: #fff; border: 1px solid #f0b3bf;
  font-size: 12.5px; font-weight: 800; color: #c0283f;
}
.closure-note li.is-today .closure-tag { background: #c0283f; border-color: #c0283f; color: #fff; }
.closure-note .closure-memo { font-size: 14px; color: var(--muted); }
.hg-facts .closure-note { margin-top: 4px; }
/* 메인 '오늘 진료': 임시 휴진은 빨간 글자 */
.today-list .is-closure .t-state { color: #c0283f; }
.legacy .closure-note li { padding-left: 0; background: none; }
.legacy .closure-note li::before, .legacy .closure-note li::marker { content: none; }
/* 메인 '오늘 진료': 임시 휴진 점도 '진료 중'처럼 깜박임 (빨간색) */
.today-list .is-closure .t-state::before { box-shadow: 0 0 0 4px rgb(192 40 63 / .2); }
@media (prefers-reduced-motion: no-preference) {
  .today-list .is-closure .t-state::before { animation: closureBlink 1.6s ease-in-out infinite; }
  @keyframes closureBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgb(192 40 63 / .22); }
    50%      { opacity: .35; box-shadow: 0 0 0 7px rgb(192 40 63 / 0); }
  }
}

/* 게시판 글 보기: 관리자로 로그인했을 때만 보이는 기능 */
.admin-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0 0 18px; padding: 10px 14px; border-radius: 14px;
  background: #2a2230; color: #fff; font-size: 14px;
}
.admin-bar-tag { font-weight: 800; }
.admin-bar a { color: #f3c6dc; font-weight: 700; }
.admin-bar form { margin-left: auto; }
.admin-bar-del, .answer-del button {
  padding: 6px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: #c0283f; color: #fff; font: inherit; font-size: 13px; font-weight: 800;
}
.answer-del { display: inline; margin-left: auto; }
.answer-del button { padding: 3px 10px; font-size: 12px; }
.answer-head:has(.answer-del) { display: flex; align-items: center; gap: 10px; }
.admin-answer {
  display: grid; gap: 10px; margin-top: 18px; padding: 18px; border-radius: 16px;
  background: var(--paper); border: 2px dashed color-mix(in srgb, var(--magenta) 35%, transparent);
}
.admin-answer label { font-weight: 800; color: var(--magenta-deep); }
.admin-answer label small { margin-left: 6px; font-weight: 500; color: var(--muted); }
.admin-answer textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 15px; resize: vertical; box-sizing: border-box; }
.admin-answer button { justify-self: end; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--magenta); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.answer-head:has(.answer-del) { flex-wrap: nowrap; justify-content: flex-start; }
.answer-head:has(.answer-del) time { margin-left: auto; }
.answer-head .answer-del { display: block; flex: none; width: auto; margin: 0; }
