@charset "utf-8";
/* ═══════════════════════════════════════════════════════════
   연세내일치과 지축 — common.css
   토큰 · 리셋 · 헤더 · 푸터 · 퀵메뉴 · 공용 컴포넌트
   ═══════════════════════════════════════════════════════════ */

/* ───────── 토큰 ───────── */
:root {
  /* Brand — 기존 로고에서 추출한 실제 값 (#235093) */
  --brand:        #235093;
  --brand-dark:   #1A3D71;
  --brand-deep:   #0E2547;   /* 히어로·푸터 배경 */
  --brand-deeper: #081729;
  --brand-light:  #3A6DBB;
  --brand-pale:   #EDF2FA;
  --brand-line:   #C9D8EE;

  /* Neutral */
  --white:    #FFFFFF;
  --gray-50:  #F8F9FB;
  --gray-100: #EFF1F5;
  --gray-200: #DFE3EA;
  --gray-300: #C4CAD4;
  --gray-400: #97A0AE;
  --gray-500: #6B7484;
  --gray-600: #4A5261;
  --gray-700: #2E3542;
  --gray-900: #171B23;

  /* Typography */
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          system-ui, 'Malgun Gothic', sans-serif;

  /* Layout */
  --max-w: 1280px;
  --pad-x: 40px;
  --header-h: 84px;
  --header-h-sm: 64px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ───────── 리셋 ───────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* 공백 없는 중국어·일본어가 컨테이너를 넘치지 않게. break-word는 flex/grid에서 무력 */
  overflow-wrap: anywhere;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.35; letter-spacing: -0.035em; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* 스크린리더 전용 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 본문 바로가기 */
.skip-link {
  position: absolute; left: 50%; top: -100px; z-index: 2000;
  transform: translateX(-50%);
  padding: 12px 24px; background: var(--brand); color: #fff;
  border-radius: 0 0 8px 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ───────── 레이아웃 유틸 ───────── */
.inner { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

.section { padding: 120px 0; }
.section--tight { padding: 88px 0; }
.section--pale { background: var(--gray-50); }
.section--brand { background: var(--brand-deep); color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--brand); text-transform: uppercase;
  margin-bottom: 18px;
}
.section--brand .eyebrow { color: var(--brand-light); }

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--gray-900);
  margin-bottom: 20px;
}
.section--brand .section-title { color: var(--white); }

.section-lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--gray-500);
  max-width: 62ch;
}
.section--brand .section-lead { color: rgba(255,255,255,.72); }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 32px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border: 1px solid var(--gray-300); color: var(--gray-700); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--light:hover { background: #fff; color: var(--brand-deep); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }

/* ───────── 이미지 플레이스홀더 ───────── */
/* 실사진 확보 전 자리표시. data-ph 값이 화면에 라벨로 뜹니다.
   교체 시 이 div를 <img src alt>로 바꾸고 alt를 반드시 채울 것. */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, var(--brand-pale) 0%, #DCE6F5 50%, var(--brand-pale) 100%);
  color: var(--brand);
  overflow: hidden;
  isolation: isolate;
}
.ph::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(35,80,147,.05) 0 12px, transparent 12px 24px);
}
.ph::after {
  content: attr(data-ph);
  display: block;
  padding: 12px 18px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
  color: var(--brand);
  background: rgba(255,255,255,.72);
  border: 1px dashed var(--brand-line);
  border-radius: 8px;
  max-width: 88%;
}
.ph--dark {
  background: linear-gradient(135deg, var(--brand-deep) 0%, #14335C 50%, var(--brand-deeper) 100%);
}
.ph--dark::before { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 12px, transparent 12px 24px); }
.ph--dark::after { color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.ph--r { border-radius: 14px; }

/* ───────── 약도 (SVG 를 HTML 에 직접 박는다 — tools/inline-map.mjs) ─────────
   🔴 크기는 여기서만 정한다. SVG 태그에 인라인 style 을 적으면 아래 미디어 쿼리가 못 이긴다.
   🔴 좁은 화면은 세로형으로 바꿔 끼운다 — 가로형을 줄이면 글자가 6px 대로 떨어진다. */
.map-svg svg { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--gray-200); font-family: var(--font); }
.map-svg .map-mob { display: none; }
@media (max-width: 760px) {
  .map-svg .map-desk { display: none; }
  .map-svg .map-mob { display: block; }
}
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.map-links a { padding: 9px 16px; border: 1px solid var(--brand-line); border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--brand); background: var(--white); }

/* ───────── 스크롤 등장 ───────── */
/* 주의: 필터·페이지네이션으로 새로 생기는 요소에는 걸지 말 것.
   opacity:0인 채 남아 목록이 비어 보이는 사고가 난다. */
/* 숨김은 html.js 스코프에서만. JS가 로드되지 않거나 IntersectionObserver가
   동작하지 않는 환경에서 본문이 통째로 사라지는 것을 막는다. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   헤더
   ═══════════════════════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  /* 🔴 사진 위 투명 → 흰색 전환은 넉넉하게. 짧으면 「흰 여백이 툭 내려온다」고 느낀다.
     (2026-09-02 광고주 지적) 대신 글자·로고 전환도 같은 길이로 맞춰야
     헤더만 늦게 변하는 어긋남이 생기지 않는다. */
  transition: background .55s var(--ease), box-shadow .55s var(--ease);
}
.header-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* 투명(메인 히어로 위) / 솔리드 */
.header.is-transparent { background: transparent; }
.header.is-solid {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 rgba(14,37,71,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  font-size: 21px; font-weight: 800; letter-spacing: -.045em;
  color: var(--brand-deep);
  transition: color .35s var(--ease);
}
.logo-mark em { font-style: normal; color: var(--brand); }
.header.is-transparent .logo-mark { color: #fff; }
.header.is-transparent .logo-mark em { color: #fff; opacity: .75; }

/* 로고 이미지 — 아현점과 같은 브랜드 원본(.ai 에서 뽑은 벡터)
   히어로 위에서는 헤더가 투명해지므로 흰색 판을 따로 둔다. */
/* display 로 갈아 끼우면 로고만 딱 바뀌어 헤더 전환과 따로 논다.
   두 판을 겹쳐 두고 투명도로 교차시킨다. */
.logo { position: relative; }
.logo-img { display: block; height: 34px; width: auto; transition: opacity .55s var(--ease); }
.logo-img--white {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  opacity: 0; pointer-events: none;
}
.header.is-transparent .logo-img--color { opacity: 0; }
.header.is-transparent .logo-img--white { opacity: 1; }

/* 지점 표기 — 로고에는 「지축」이 없다. 이게 빠지면 아현점과 구분되지 않는다. */
.logo-branch {
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: var(--brand); padding-left: 10px; margin-left: 2px;
  border-left: 1px solid var(--gray-200); line-height: 1;
  transition: color .55s var(--ease), border-color .55s var(--ease);
}
.header.is-transparent .logo-branch { color: #fff; border-left-color: rgba(255,255,255,.35); }
@media (max-width: 768px) {
  .logo-img { height: 28px; }
  .logo-branch { font-size: 13px; padding-left: 8px; }
}

/* GNB */
.gnb { display: flex; height: 100%; }
.gnb > li > a {
  display: flex; align-items: center; height: var(--header-h);
  padding: 0 24px;
  /* 🔴 메뉴 이름은 절대 줄바꿈하지 않는다.
     전역에 걸어 둔 overflow-wrap:anywhere(중국어·일본어 넘침 방지용)가
     메뉴 글자까지 쪼개, 폭이 조금만 좁아지면 「병원소 / 개」처럼 갈라졌다.
     min-content 폭도 줄어들어 flex 가 내비를 더 짓눌렀다. (2026-09-02) */
  white-space: nowrap; overflow-wrap: normal; word-break: keep-all;
  font-size: 16px; font-weight: 600;
  color: var(--gray-700);
  transition: color .55s var(--ease);   /* 헤더 배경 전환과 길이를 맞춘다 */
}
.header.is-transparent .gnb > li > a { color: rgba(255,255,255,.92); }
.gnb > li > a:hover,
.gnb > li.is-active > a { color: var(--brand); }
.header.is-transparent .gnb > li > a:hover { color: #fff; }

.header-util { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* 다른 지점 이동 — 아현점과 같은 사양 */
.branch-links { position: relative; }
.branch-links__label {
  display: flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 0 14px; border: 1px solid var(--gray-300); border-radius: 999px;
  color: var(--gray-700); font-size: 13px; font-weight: 700; white-space: nowrap;
  cursor: default; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.branch-links__label::after { content: ''; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.header.is-transparent .branch-links__label { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(0,0,0,.08); }
.branch-links__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 174px; padding: 8px;
  border: 1px solid var(--gray-200); border-radius: 12px; background: #fff;
  box-shadow: 0 12px 32px rgba(10,36,72,.14); opacity: 0; visibility: hidden;
  pointer-events: none; transform: translateY(5px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 60;
}
/* 🔴 라벨과 메뉴 사이에 13px 빈 틈이 있어, 마우스를 아래로 내리는 동안
   그 틈에서 :hover 가 끊겨 메뉴가 닫혔습니다. 「눌러 보려 하면 사라진다」
   (2026-09-07 광고주 지적). 두 가지로 막습니다.
   ① 메뉴에 보이지 않는 다리(::before)를 얹어 틈을 메웁니다 — 틈 위에서도
      계속 메뉴 위에 있는 셈이라 :hover 가 유지됩니다.
   ② 닫힐 때만 0.18초 늦춥니다. 대각선으로 빠르게 내려가다 잠깐 벗어나도
      바로 닫히지 않습니다. 열릴 때는 지연 없이 즉시 뜹니다. */
.branch-links__menu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.branch-links__menu { transition-delay: .18s; }
.branch-links:hover .branch-links__menu,
.branch-links:focus-within .branch-links__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }

/* 라벨 자체도 아래쪽 판정 영역을 조금 넓혀 둡니다(레이아웃은 그대로) */
.branch-links::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.branch-links__menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--gray-700); font-size: 13px; font-weight: 650; white-space: nowrap; }
.branch-links__menu a:hover, .branch-links__menu a:focus-visible { color: var(--brand); background: var(--brand-pale); }
.header-tel {
  display: flex; flex-direction: column; line-height: 1.25;
  font-weight: 800; color: var(--brand-deep);
}
.header-tel span { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--gray-400); }
.header-tel strong { font-size: 19px; letter-spacing: -.02em; }
.header.is-transparent .header-tel { color: #fff; }
.header.is-transparent .header-tel span { color: rgba(255,255,255,.6); }

/* 탭별 드롭다운
   🔴 탭마다 자기 하위메뉴가 그 탭 바로 아래에 뜬다.
   전에는 화면 전체를 덮는 메가메뉴 한 판(.mega)이었는데, 5칸이 탭 8개와
   짝이 맞지 않아 엉뚱한 탭 아래에 엉뚱한 칸이 놓였다. (2026-09-02 교체) */
.gnb > li { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 196px; padding: 18px 22px 20px;
  background: #fff;                       /* 반투명으로 두면 뒤 글자가 비친다 */
  border: 1px solid var(--gray-200); border-radius: 14px;
  box-shadow: 0 18px 38px rgba(14,37,71,.14);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 60;
}
.gnb > li:hover > .submenu,
.gnb > li:focus-within > .submenu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.submenu li + li { margin-top: 11px; }
.submenu a {
  display: block; white-space: nowrap;
  font-size: 14.5px; color: var(--gray-500);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.submenu a:hover { color: var(--brand); padding-left: 4px; }


/* 모바일 토글 */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.header.is-transparent .nav-toggle span { background: #fff; }
/* 🔴 메뉴가 열리면 헤더 배경이 흰색이 된다. 그런데 위의
   .header.is-transparent .nav-toggle span (클래스 3개) 이 더 강해서
   막대가 흰색으로 남아 닫기(X) 버튼이 통째로 안 보였다. 그래서 이 규칙도
   .header 를 끼워 넣어 우선순위를 올린다. (2026-09-02) */
body.is-nav-open .header .nav-toggle span { background: var(--gray-700); }
body.is-nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.is-nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 모바일 드로어 */
.drawer {
  position: fixed; inset: 0; z-index: 999;
  background: #fff;
  padding: calc(var(--header-h-sm) + 20px) 24px 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
body.is-nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer-group + .drawer-group { border-top: 1px solid var(--gray-100); }
.drawer-group > a,
.drawer-group > .drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; font-size: 17px; font-weight: 700; color: var(--gray-900);
  width: 100%;
}
.drawer-head::after {
  content: ''; width: 9px; height: 9px;
  border-right: 2px solid var(--gray-400); border-bottom: 2px solid var(--gray-400);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease);
}
.drawer-group.is-open .drawer-head::after { transform: rotate(-135deg) translateY(-2px); }
.drawer-sub { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.drawer-group.is-open .drawer-sub { max-height: 520px; }
.drawer-sub li a { display: block; padding: 12px 4px 12px 14px; font-size: 15px; color: var(--gray-500); }
.drawer-sub { padding-bottom: 10px; }
.drawer-cta { display: flex; gap: 10px; margin-top: 28px; }
.drawer-cta .btn { flex: 1; }
.drawer-branches { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.drawer-branches__title { display: block; margin-bottom: 10px; color: var(--gray-500); font-size: 13px; font-weight: 700; }
.drawer-branches__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-branches__links a { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--gray-300); border-radius: 10px; color: var(--gray-700); font-size: 14px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   서브 페이지 상단
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 340px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #16375F 55%, var(--brand-deeper) 100%);
  color: #fff;
  margin-top: 0;
  padding-top: var(--header-h);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 16px; }

/* breadcrumb */
.breadcrumb { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; height: 52px; font-size: 13px; color: var(--gray-400); }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: var(--gray-300); }
.breadcrumb li:last-child { color: var(--gray-600); font-weight: 600; }

/* 서브 탭 */
.subtab { border-bottom: 1px solid var(--gray-200); background: #fff; position: sticky; top: var(--header-h); z-index: 900; }
.subtab-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subtab-list::-webkit-scrollbar { display: none; }
.subtab-list a {
  display: block; padding: 18px 20px; white-space: nowrap;
  font-size: 15px; font-weight: 600; color: var(--gray-500);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.subtab-list a:hover { color: var(--brand); }
.subtab-list a.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* ═══════════════════════════════════════════════════════════
   FAQ (AEO — 화면에 반드시 노출)
   ═══════════════════════════════════════════════════════════ */
.faq-list { border-top: 1px solid var(--gray-900); }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  padding: 26px 44px 26px 0;
  position: relative;
  font-size: clamp(16px, 1.5vw, 18px); font-weight: 700; color: var(--gray-900);
}
.faq-q::before { content: 'Q'; color: var(--brand); font-weight: 800; flex-shrink: 0; }
.faq-q::after {
  content: ''; position: absolute; right: 8px; top: 34px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gray-400); border-bottom: 2px solid var(--gray-400);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-item.is-open .faq-q::after { transform: rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.is-open .faq-a { max-height: 640px; }
.faq-a-inner {
  display: flex; gap: 14px;
  padding: 0 44px 28px 0;
  color: var(--gray-500); font-size: 15.5px;
}
.faq-a-inner::before { content: 'A'; color: var(--gray-300); font-weight: 800; flex-shrink: 0; }
.faq-a-inner p + p { margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════
   의료광고 주의문구
   ═══════════════════════════════════════════════════════════ */
.med-notice {
  background: var(--gray-50);
  border-left: 3px solid var(--brand-line);
  padding: 22px 26px;
  font-size: 14px; color: var(--gray-500); line-height: 1.75;
  border-radius: 0 8px 8px 0;
}
.med-notice strong { display: block; margin-bottom: 6px; color: var(--gray-700); font-size: 14.5px; }

/* ═══════════════════════════════════════════════════════════
   푸터
   ═══════════════════════════════════════════════════════════ */
.footer { background: var(--brand-deeper); color: rgba(255,255,255,.62); padding: 72px 0 40px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo-row { display: flex; align-items: center; }
.footer-brand .footer-logo { height: 34px; width: auto; display: block; }
.logo-branch--footer { color: var(--brand-light); border-left-color: rgba(255,255,255,.3); }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.8; }
.footer-links { display: flex; gap: 36px; flex-wrap: wrap; }
.footer-links h3 { font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-links li + li { margin-top: 9px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-info { padding-top: 32px; line-height: 1.9; }
.footer-info dl { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-info dt { font-weight: 600; color: rgba(255,255,255,.42); }
.footer-info dd { margin-right: 12px; }
.footer-bottom { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.38); }
.footer-policy { display: flex; gap: 18px; }
.footer-policy a { color: rgba(255,255,255,.62); }
.footer-updated { font-size: 12.5px; }

/* ═══════════════════════════════════════════════════════════
   메인·서브 공용 블록
   ═══════════════════════════════════════════════════════════ */

/* ───────── 의료진 카드 ───────── */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doc-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 16px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.doc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14,37,71,.1); }
.doc-card .ph { aspect-ratio: 3 / 4; }
.doc-card-body { padding: 26px 26px 30px; }
.doc-card-role { font-size: 13.5px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.doc-card-name { font-size: 23px; color: var(--gray-900); margin: 4px 0 12px; }
.doc-card-badge {
  display: inline-block; margin-bottom: 14px;
  padding: 5px 12px; border-radius: 6px;
  background: var(--brand-pale); color: var(--brand);
  font-size: 12.5px; font-weight: 700; letter-spacing: -.02em;
}
.doc-card-body ul li { position: relative; padding-left: 15px; font-size: 14.5px; color: var(--gray-500); }
.doc-card-body ul li + li { margin-top: 7px; }
.doc-card-body ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gray-300);
}

/* ───────── 연령대별 (온가족) ───────── */
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.age-card {
  padding: 32px 26px; border-radius: 14px;
  background: #fff; border: 1px solid var(--gray-200);
}
.age-card-age {
  display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--brand-light); margin-bottom: 12px;
}
.age-card h3 { font-size: 19px; color: var(--gray-900); margin-bottom: 10px; }
.age-card p { font-size: 14.5px; color: var(--gray-500); }

/* ───────── 장비 목록 ───────── */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.equip-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 22px; border-radius: 12px;
  background: #fff; border: 1px solid var(--gray-200);
}
.equip-item b { font-size: 15.5px; color: var(--gray-900); font-weight: 700; }
.equip-item span { font-size: 13.5px; color: var(--gray-400); letter-spacing: 0; }

/* ───────── 건강보험 카드 ───────── */
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ins-card {
  position: relative;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 14px;
  overflow: hidden;
}
.ins-card-head {
  background: var(--brand); color: #fff;
  padding: 14px 20px; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ins-rate {
  flex-shrink: 0;
  background: rgba(255,255,255,.18); border-radius: 999px;
  padding: 3px 11px; font-size: 12.5px; font-weight: 700; letter-spacing: -.02em;
}
.ins-card-body { padding: 22px 22px 26px; }
.ins-card-body dt {
  font-size: 13px; font-weight: 700; color: var(--brand);
  padding-left: 9px; border-left: 3px solid var(--brand-line);
  margin-bottom: 6px;
}
.ins-card-body dd { font-size: 15px; color: var(--gray-600); }
.ins-card-body dd + dt { margin-top: 18px; }

@media (max-width: 1024px) {
  .doc-grid { grid-template-columns: 1fr; gap: 16px; }
  .doc-card { display: grid; grid-template-columns: 210px 1fr; }
  .doc-card .ph { aspect-ratio: auto; height: 100%; min-height: 260px; }
  .age-grid, .equip-grid, .ins-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .doc-card { grid-template-columns: 1fr; }
  .doc-card .ph { aspect-ratio: 4 / 3; min-height: 0; }
  .age-grid, .equip-grid, .ins-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   퀵 / 하단 고정 바
   ═══════════════════════════════════════════════════════════ */
/* 채널별 고유 색상 — 사용자가 아이콘만 보고 무엇인지 알 수 있게 한다 */
:root {
  --naver: #03C75A;
  --insta: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
}

.quick {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}

.quick-item {
  display: flex; align-items: center; justify-content: flex-end;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14,37,71,.16), 0 1px 3px rgba(14,37,71,.08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quick-item:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14,37,71,.22); }

/* 라벨 — 평소엔 접혀 있다가 호버·포커스 시 왼쪽으로 펼쳐진다 */
.quick-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0;
  font-size: 14px; font-weight: 700; letter-spacing: -.03em;
  transition: max-width .38s var(--ease), opacity .28s var(--ease), padding .38s var(--ease);
}
.quick-item:hover .quick-label,
.quick-item:focus-visible .quick-label { max-width: 160px; opacity: 1; padding: 0 4px 0 20px; }

.quick-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.quick-icon svg { width: 24px; height: 24px; }

/* 전화 — 브랜드 컬러 */
.quick-item--tel { background: var(--brand); color: #fff; }
.quick-item--tel:hover { background: var(--brand-dark); }

/* 네이버 예약 — 네이버 그린 */
.quick-item--naver { background: var(--naver); color: #fff; }
.quick-item--naver .quick-icon svg { width: 21px; height: 21px; }

/* 인스타그램 — 브랜드 그라디언트 */
.quick-item--insta { background: var(--insta); color: #fff; }

/* 오시는 길 · 맨 위로 — 흰 바탕에 브랜드 컬러 */
.quick-item--map,
.quick-item--top { color: var(--brand-deep); }
.quick-item--map .quick-icon,
.quick-item--top .quick-icon { color: var(--brand); }
.quick-item--map:hover { background: var(--brand-pale); }
.quick-item--top:hover { background: var(--brand-pale); }

.quick-top {
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quick.is-scrolled .quick-top { opacity: 1; visibility: visible; }

/* 모바일 하단 바 */
.mobile-bar { display: none; }

/* ───────── 실사진이 들어간 플레이스홀더 ─────────
   .ph 의 종횡비·라운드 규칙을 그대로 쓰면서 안쪽에 <picture>를 채운다.
   교체 시 .ph 를 지우지 않고 .is-filled 만 붙이는 이유는,
   `.treat-card .ph { aspect-ratio }` 같은 기존 규칙을 잃지 않기 위해서다. */
.ph.is-filled { background: var(--gray-100); }
.ph.is-filled::before,
.ph.is-filled::after { content: none; }
.ph.is-filled picture { position: absolute; inset: 0; display: block; }
.ph.is-filled img { width: 100%; height: 100%; object-fit: cover; }
/* 히어로는 어둡게 깔아야 흰 글씨가 읽힌다 (::after 오버레이는 .hero-slide 쪽에 있음) */
.hero-slide .ph.is-filled { background: var(--brand-deeper); }
