/* 함소아한의원 인천점 — 기본 스타일
   톤: 함소아 노랑(#FFD200)·네이비(#003575)를 지키고, 여백과 라운드 카드로 정돈한다. */
:root {
  --yellow: #ffd200;
  --yellow-deep: #f5b800;
  --yellow-soft: #fff6cc;
  --cream: #fffbef;
  --navy: #003575;
  --navy-deep: #00224d;
  --ink: #1b1b1b;
  --ink-2: #444;
  --ink-3: #777;
  --line: #ececec;
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --wrap: 1240px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-text { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.04em; }
.brand-text b { color: var(--yellow-deep); font-weight: 800; }
.brand-branch {
  font-size: 13px; font-weight: 700; color: var(--navy);
  background: var(--yellow-soft); border-radius: 99px; padding: 3px 10px;
}
.gnb { display: flex; gap: 34px; margin-left: auto; height: 100%; }
.gnb-item { display: flex; align-items: center; height: 100%; }
.gnb-top { white-space: nowrap; font-weight: 600; font-size: 16px; color: var(--ink-2); position: relative; padding: 6px 0; }
.gnb-top:hover, .gnb-top[aria-current="page"] { color: var(--ink); }
.gnb-item.is-open .gnb-top { color: var(--navy); }
.gnb-top[aria-current="page"]::after, .gnb-item.is-open .gnb-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--yellow);
}
.site-header > .wrap { max-width: 1400px; }
/* 분야별 드롭다운 (본사 레이아웃: 제목·소개 | 구분선 | 하위 메뉴 2열) */
.drop { position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s; }
.gnb-item.is-open .drop { opacity: 1; visibility: visible; transform: none; }
.drop .wrap { display: grid; grid-template-columns: 360px 1fr; height: auto; padding-top: 48px; padding-bottom: 56px; align-items: start; }
.drop-head { padding-right: 48px; border-right: 1px solid var(--line); min-height: 100%; }
.drop-head strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.drop-head p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-3); }
.drop-head .live { display: inline-flex; margin-top: 22px; }
.drop-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 4), auto); grid-auto-flow: column; column-gap: 56px; padding-left: 72px; align-content: start; }
.drop-links a { font-size: 17px; padding: 11px 0; color: var(--ink); font-weight: 500; }
.drop-links a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (max-width: 1320px) {
  .gnb { gap: 26px; }
  .drop .wrap { grid-template-columns: 300px 1fr; }
  .drop-links { padding-left: 48px; }
}
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 99px; white-space: nowrap; transition: transform .2s var(--ease), background .2s;
}
.header-cta:hover { background: var(--yellow-deep); transform: translateY(-1px); }
.menu-btn { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: "";
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn span { top: 19px; }
.menu-btn span::before { left: 0; top: -7px; }
.menu-btn span::after { left: 0; top: 7px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 99px; font-weight: 700; font-size: 16px;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- section common ---------- */
.section { padding: 130px 0; }
.section-sm { padding: 90px 0; }
.eyebrow {
  display: inline-block; font-size: 15px; font-weight: 700; color: var(--navy);
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.eyebrow.dot::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); margin-right: 8px; vertical-align: 2px;
}
.h-xl { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.22; font-weight: 800; letter-spacing: -0.045em; }
.h-lg { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; }
.h-md { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; font-weight: 750; letter-spacing: -0.035em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.7; }
.muted { color: var(--ink-3); }
.sec-head { margin-bottom: 56px; }
.sec-head.center { text-align: center; }
.sec-head .lead { margin-top: 18px; }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); }

/* ---------- reveal (스크롤 등장) ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal-scale.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero ---------- */
.hero { padding: 16px var(--gutter) 0; }
.hero-frame {
  position: relative; max-width: 1680px; margin: 0 auto;
  height: min(calc(100vh - var(--header-h) - 40px), 780px); min-height: 560px;
  border-radius: var(--radius-xl); overflow: hidden; background: var(--cream);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,251,239,.94) 0%, rgba(255,251,239,.7) 32%, rgba(255,251,239,0) 60%);
}
.hero-copy {
  position: absolute; z-index: 2; left: clamp(28px, 6vw, 96px); top: 50%; transform: translateY(-50%);
  max-width: 560px;
}
.hero-copy .eyebrow { background: #fff; padding: 6px 14px; border-radius: 99px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.hero-copy h1 { margin: 6px 0 22px; }
.hero-copy .lead { color: var(--ink-2); margin-bottom: 34px; }
.hero-copy .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-text { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.hero-text.is-active { opacity: 1; pointer-events: auto; }
.hero-text .hero-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-text.is-active .hero-copy > * { opacity: 1; transform: none; }
.hero-text.is-active .hero-copy > *:nth-child(2) { transition-delay: .1s; }
.hero-text.is-active .hero-copy > *:nth-child(3) { transition-delay: .2s; }
.hero-text.is-active .hero-copy > *:nth-child(4) { transition-delay: .3s; }
.hero-dots { position: absolute; z-index: 3; left: clamp(28px, 6vw, 96px); bottom: 36px; display: flex; gap: 8px; align-items: center; }
.hero-dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(0,0,0,.2); transition: width .4s var(--ease), background .3s; }
.hero-dots button.is-active { width: 34px; background: var(--ink); }
.hero-count { margin-left: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* 빠른 메뉴 */
.quick { max-width: 1680px; margin: 16px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick a {
  display: flex; align-items: center; gap: 16px; padding: 24px 28px;
  background: var(--bg-2); border-radius: var(--radius-md); transition: background .25s, transform .25s var(--ease);
}
.quick a:hover { background: var(--yellow-soft); transform: translateY(-3px); }
.quick .ico {
  width: 48px; height: 48px; border-radius: 14px; background: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.quick .ico svg { width: 24px; height: 24px; }
.quick strong { display: block; font-size: 17px; font-weight: 700; }
.quick small { font-size: 14px; color: var(--ink-3); }

/* ---------- 스크롤 하이라이트 문장 (signal) ---------- */
.signal { padding: 150px 0 120px; }
.signal-list { margin-top: 40px; }
.signal-list li {
  font-size: clamp(26px, 4.2vw, 52px); font-weight: 800; line-height: 1.35; letter-spacing: -0.045em;
  color: #d9d9d9; transition: color .5s ease; padding: 6px 0;
}
.signal-list li.is-on { color: var(--ink); }
.signal-list li.is-on em { color: var(--navy); }
.signal-list em { font-style: normal; }
.signal-foot { margin-top: 56px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- 진료 프로그램 탭 ---------- */
.programs { background: var(--cream); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 36px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; padding: 12px 22px; border-radius: 99px; font-weight: 700; font-size: 16px;
  background: #fff; color: var(--ink-3); border: 1.5px solid transparent; transition: all .25s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tab-panel .h-lg { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 34px; }
.chip { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 99px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.tab-media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--yellow-soft); }
.tab-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- bento (진료 방식) ---------- */
.approach { background: var(--yellow); }
.approach .eyebrow { color: var(--ink); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-card {
  background: #fff; border-radius: var(--radius-lg); padding: 38px 36px; position: relative; overflow: hidden;
  min-height: 300px; display: flex; flex-direction: column;
}
.bento-card .num { font-size: 14px; font-weight: 800; color: var(--yellow-deep); margin-bottom: 10px; }
.bento-card h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 14px; }
.bento-card p { color: var(--ink-2); font-size: 16px; }
.bento-card.span-7 { grid-column: span 7; }
.bento-card.span-5 { grid-column: span 5; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-8 { grid-column: span 8; }
.bento-card.photo { padding: 0; color: #fff; justify-content: flex-end; }
.bento-card.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-card.photo .cap { position: relative; padding: 36px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.bento-card.photo h3, .bento-card.photo p { color: #fff; }
.bento-card.navy { background: var(--navy); color: #fff; }
.bento-card.navy p { color: rgba(255,255,255,.78); }
.bento-card.navy .num { color: var(--yellow); }
.bento-card .deco { position: absolute; right: -20px; bottom: -20px; width: 160px; opacity: .9; }

/* ---------- 원장 ---------- */
.doctors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.doctor {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center;
  background: var(--bg-2); border-radius: var(--radius-lg); padding: 28px;
}
.doctor-photo { aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; background: var(--yellow-soft); display: grid; place-items: center; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo .ph { text-align: center; color: var(--ink-3); font-size: 14px; padding: 12px; }
.doctor-role { font-size: 14px; font-weight: 700; color: var(--navy); }
.doctor-name { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; margin: 2px 0 14px; }
.doctor-quote { font-size: 17px; color: var(--ink); margin-bottom: 16px; line-height: 1.6; }
.doctor ul li { font-size: 15px; color: var(--ink-3); padding-left: 12px; position: relative; }
.doctor ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: #bbb; }
.todo { display: inline-block; font-size: 12px; font-weight: 700; color: #a15c00; background: #fff1c2; padding: 2px 8px; border-radius: 6px; }

/* ---------- 숫자 ---------- */
.numbers { background: var(--navy); color: #fff; border-radius: var(--radius-xl); padding: 80px clamp(28px, 6vw, 80px); }
.numbers .eyebrow { color: var(--yellow); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.numbers-grid dt { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.numbers-grid dd { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.numbers-grid dd small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.numbers-note { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- 칼럼 카드 ---------- */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.col-card { display: block; }
.col-card .thumb { aspect-ratio: 16/11; border-radius: var(--radius-md); overflow: hidden; background: var(--yellow-soft); margin-bottom: 18px; }
.col-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.col-card:hover .thumb img { transform: scale(1.05); }
.col-card .thumb.ph { display: grid; place-items: center; }
.col-card .thumb.ph span { font-weight: 800; font-size: 22px; color: var(--yellow-deep); }
.col-card .cat { font-size: 14px; font-weight: 700; color: var(--navy); }
.col-card h3 { font-size: 20px; line-height: 1.45; font-weight: 750; letter-spacing: -0.035em; margin: 6px 0 8px; }
.col-card p { font-size: 15px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- 지역 ---------- */
.areas { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.area-list { display: grid; gap: 10px; }
.area {
  border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 22px 26px; transition: border-color .25s, background .25s;
}
.area:hover, .area.is-open { border-color: var(--yellow); background: var(--cream); }
.area summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.area summary::-webkit-details-marker { display: none; }
.area summary strong { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.area summary small { font-size: 14px; color: var(--ink-3); margin-left: 10px; font-weight: 500; }
.area summary .plus { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); position: relative; flex-shrink: 0; }
.area summary .plus::before, .area summary .plus::after { content: ""; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; background: var(--ink); transition: transform .3s; }
.area summary .plus::after { transform: rotate(90deg); }
.area[open] summary .plus::after { transform: rotate(0); }
.area p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.area .route { margin-top: 10px; font-size: 15px; color: var(--ink-2); background: #fff; border-radius: 12px; padding: 12px 14px; }
.map-card { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-2); }
.map-card .map { aspect-ratio: 1 / .9; position: relative; background: var(--cream); }
.map-card .map svg { width: 100%; height: 100%; }
.map-card .info { padding: 28px 32px 32px; }
.map-card .info strong { display: block; font-size: 20px; font-weight: 800; }

/* ---------- 진료시간 ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.visit-card { border-radius: var(--radius-lg); padding: 44px; background: var(--bg-2); }
.visit-card.dark { background: var(--ink); color: #fff; }
.visit-card.dark .muted { color: rgba(255,255,255,.6); }
.hours { width: 100%; border-collapse: collapse; margin-top: 22px; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 17px; }
.visit-card.dark .hours th, .visit-card.dark .hours td { border-bottom-color: rgba(255,255,255,.12); }
.hours th { font-weight: 600; width: 34%; }
.hours td { font-weight: 700; }
.tel { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; display: block; margin: 14px 0 6px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); border-radius: var(--radius-xl); padding: 72px clamp(28px, 6vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band .btns { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.site-footer { background: #f4f4f2; padding: 64px 0 120px; margin-top: 130px; font-size: 14px; color: var(--ink-3); }
.site-footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.site-footer .brand-text { font-size: 18px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; color: var(--ink-2); }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer .copy { margin-top: 18px; color: #aaa; }

/* 모바일 하단 고정 바 */
.mbar { display: none; }

/* ---------- 서브 페이지 ---------- */
.page-hero { padding: 72px 0 56px; }
.page-hero .crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.page-hero .crumb a:hover { color: var(--ink); }
.page-hero .lead { margin-top: 20px; max-width: 720px; }
.page-visual { margin: 0 var(--gutter); border-radius: var(--radius-xl); overflow: hidden; max-width: 1680px; height: clamp(280px, 42vw, 560px); }
@media (min-width: 1728px) { .page-visual { margin: 0 auto; } }
.page-visual img { width: 100%; height: 100%; object-fit: cover; }

.prose-grid { display: grid; grid-template-columns: 280px 1fr; gap: 72px; }
.side-nav { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.side-nav a { display: block; padding: 10px 0 10px 16px; border-left: 2px solid var(--line); color: var(--ink-3); font-weight: 600; font-size: 15px; transition: all .2s; }
.side-nav a:hover, .side-nav a.is-on { color: var(--ink); border-left-color: var(--yellow); }

.sym-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sym { background: var(--bg-2); border-radius: var(--radius-md); padding: 22px 24px; font-weight: 600; display: flex; gap: 12px; align-items: flex-start; }
.sym::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1b1b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 26px; border: 1.5px solid var(--line); border-radius: var(--radius-md); }
.step::before { content: counter(s, decimal-leading-zero); font-size: 26px; font-weight: 800; color: var(--yellow-deep); }
.step h4 { font-size: 19px; font-weight: 750; margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 16px; }
.block { margin-bottom: 96px; scroll-margin-top: calc(var(--header-h) + 24px); }
.block > h2 { margin-bottom: 26px; }
.block > p { color: var(--ink-2); margin-bottom: 14px; }
.note { font-size: 14px; color: var(--ink-3); background: var(--bg-2); border-radius: 14px; padding: 16px 18px; margin-top: 18px; }

.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; display: flex; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--yellow-deep); font-weight: 800; }
.faq details p { margin-top: 12px; padding-left: 28px; color: var(--ink-2); }

/* 진료 카드 그리드 (진료안내 메인) */
.clinic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.clinic-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; background: var(--yellow-soft); color: #fff; }
.clinic-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.clinic-card:hover img { transform: scale(1.06); }
.clinic-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.clinic-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.clinic-card p { font-size: 14px; opacity: .9; margin-top: 4px; }
.clinic-card .go { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; transition: background .2s; }
.clinic-card:hover .go { background: var(--yellow); }

/* 아치형 카드 (아이누리 자가진단 섹션 차용) */
.arch-row { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter) 30px; scroll-snap-type: x mandatory; }
.arch-row::-webkit-scrollbar { display: none; }
.arch { flex: 0 0 250px; scroll-snap-align: start; aspect-ratio: 5/7; border-radius: 140px 140px 32px 32px; overflow: hidden; position: relative; color: #fff; transition: transform .4s var(--ease); }
.arch:nth-child(even) { margin-top: 40px; }
.arch:hover { transform: translateY(-8px); }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch .cap { position: absolute; inset: auto 0 0; padding: 24px; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.arch strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.arch span { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; background: var(--yellow); color: var(--ink); padding: 6px 14px; border-radius: 99px; }

/* ---------- 칼럼 상세 ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-head { text-align: center; padding: 64px 0 40px; }
.article-head .cat { display: inline-block; font-weight: 700; color: var(--navy); background: var(--yellow-soft); padding: 6px 14px; border-radius: 99px; font-size: 14px; }
.article-head h1 { margin: 18px 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.3; font-weight: 800; letter-spacing: -0.045em; }
.article-head .dek { color: var(--ink-2); font-size: 18px; }
.article-head .meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.article-hero { max-width: 1040px; margin: 0 auto 56px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--yellow-soft); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.summary-box { background: var(--cream); border-radius: var(--radius-md); padding: 28px 30px; margin-bottom: 48px; }
.summary-box strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 10px; }
.summary-box li { padding-left: 20px; position: relative; margin: 6px 0; font-weight: 600; }
.summary-box li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.article-body { font-size: 18px; line-height: 1.85; }
.article-body h2 { font-size: 26px; line-height: 1.4; font-weight: 800; letter-spacing: -0.04em; margin: 56px 0 18px; }
.article-body p { margin-bottom: 20px; color: #2b2b2b; }
.article-body ul { margin: 0 0 24px; }
.article-body ul li { padding-left: 20px; position: relative; margin: 8px 0; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-deep); }
.article-body figure { margin: 36px 0; }
.article-body figure img { border-radius: var(--radius-md); width: 100%; }
.article-body figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; text-align: center; }
.tip { background: var(--bg-2); border-left: 4px solid var(--yellow); border-radius: 0 14px 14px 0; padding: 22px 24px; margin: 28px 0; }
.tip strong { display: block; margin-bottom: 6px; }
.visit-box { margin-top: 64px; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 40px; }
.visit-box p { color: rgba(255,255,255,.82); margin: 10px 0 22px; font-size: 16px; }
.visit-box .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .gnb, .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav-open .gnb {
    display: flex; flex-direction: column; gap: 0; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 20px var(--gutter);
  }
  .nav-open .gnb a { font-size: 24px; font-weight: 800; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .tab-panel.is-active, .areas, .prose-grid { grid-template-columns: 1fr; gap: 36px; }
  .side-nav { display: none; }
  .bento-card.span-7, .bento-card.span-5, .bento-card.span-4, .bento-card.span-8 { grid-column: span 12; }
  .doctors, .visit { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .clinic-grid { grid-template-columns: repeat(2, 1fr); }
  .col-grid { grid-template-columns: repeat(2, 1fr); }
  .map-card { position: static; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; --radius-xl: 28px; --radius-lg: 22px; }
  body { font-size: 16px; }
  .section { padding: 88px 0; }
  .brand-text { font-size: 17px; }
  .brand-branch { display: none; }
  .hero { padding-top: 8px; }
  .hero-frame { height: auto; min-height: 0; aspect-ratio: 3/4.2; }
  .hero-slide::after { background: linear-gradient(180deg, rgba(255,251,239,.96) 0%, rgba(255,251,239,.8) 38%, rgba(255,251,239,0) 66%); }
  .hero-slide img { object-position: 70% center; }
  .hero-copy { top: 32px; transform: none; left: 22px; right: 22px; }
  .hero-copy .lead { margin-bottom: 22px; font-size: 16px; }
  .hero-dots { left: 22px; bottom: 22px; }
  .quick { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .quick a { padding: 18px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .doctor { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 200px; }
  .col-grid, .sym-grid { grid-template-columns: 1fr; }
  .clinic-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .clinic-card h3 { font-size: 19px; }
  .clinic-card .cap { padding: 16px; }
  .clinic-card p { display: none; }
  .numbers { padding: 56px 24px; }
  .visit-card { padding: 30px 24px; }
  .bento-card { padding: 30px 26px; min-height: 240px; }
  .arch { flex-basis: 200px; }
  .cta-band { padding: 48px 26px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .mbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
  .mbar a svg { width: 22px; height: 22px; }
  .mbar a.main { color: var(--ink); }
  .mbar a.main span.b { background: var(--yellow); border-radius: 12px; padding: 4px 12px; }
  .site-footer { padding-bottom: 110px; }
  .article-body { font-size: 17px; }
}

/* ---------- 생애 흐름 (가족 평생 주치의) ---------- */
.life { background: linear-gradient(180deg, #fff 0%, var(--cream) 18%, var(--cream) 100%); }
.life-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; margin-top: 24px; }
.life-nav { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; list-style: none; border-left: 2px solid #eadfb8; }
.life-nav li { padding: 12px 0 12px 20px; font-weight: 700; color: #b9ad86; position: relative; transition: color .3s; font-size: 16px; }
.life-nav li span { display: block; font-size: 13px; font-weight: 600; }
.life-nav li::before { content: ""; position: absolute; left: -7px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: #eadfb8; transition: background .3s, transform .3s; }
.life-nav li.is-on { color: var(--ink); }
.life-nav li.is-on::before { background: var(--yellow); transform: scale(1.3); box-shadow: 0 0 0 4px rgba(255,210,0,.25); }
.life-stages { display: grid; gap: 28px; }
.stage { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 10px 40px rgba(120, 90, 0, .06); min-height: 420px; }
.stage:nth-child(even) .stage-media { order: 2; }
.stage-media { position: relative; background: var(--yellow-soft); }
.stage-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-age { position: absolute; left: 20px; top: 20px; background: var(--yellow); font-weight: 800; padding: 8px 16px; border-radius: 99px; font-size: 15px; }
.stage-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.stage-no { font-size: 14px; font-weight: 800; color: var(--yellow-deep); }
.stage-body h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; letter-spacing: -0.045em; margin: 6px 0 14px; }
.stage-body p { color: var(--ink-2); }
.stage-body .chips { margin: 22px 0 0; }
.stage-body a.chip { transition: background .2s, border-color .2s; }
.stage-body a.chip:hover { background: var(--yellow-soft); border-color: var(--yellow); }

.space-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.space-grid figure { margin: 0; }
.space-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); }
.space-grid figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.map-card .pin.is-on circle { fill: var(--yellow); }
.bento-card .deco { width: 140px; right: 10px; bottom: 10px; }

@media (max-width: 1080px) {
  .life-grid { grid-template-columns: 1fr; }
  .life-nav { display: none; }
}
@media (max-width: 720px) {
  .stage { grid-template-columns: 1fr; min-height: 0; }
  .stage:nth-child(even) .stage-media { order: 0; }
  .stage-media { aspect-ratio: 4/3; }
  .space-grid { grid-template-columns: 1fr; }
}

/* 전속모델 */
.model { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; background: #eaf6ff; border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 64px); }
.model-copy .lead { margin-top: 18px; }
.model-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.model-photos img { width: 100%; aspect-ratio: 6/5; object-fit: cover; border-radius: var(--radius-md); background: #fff; }
.model-photos img:nth-child(2) { transform: translateY(24px); }
@media (max-width: 1080px) { .model { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .model-photos img:nth-child(2) { transform: none; } }

/* 진료 카드 9개: 3열 */
.clinic-grid { grid-template-columns: repeat(3, 1fr); }
.clinic-card { aspect-ratio: 4/3.6; }
@media (max-width: 720px) {
  .clinic-grid .clinic-card:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 16/9; }
}

/* PC 우측 고정 버튼 */
.fab { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.fab a {
  width: 76px; padding: 12px 6px; border-radius: 20px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.1);
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.fab a:hover { transform: translateX(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.fab a svg { width: 22px; height: 22px; }
.fab a.fab-main { background: var(--navy); color: #fff; }
.fab a.fab-talk { background: #fee500; color: #191919; }
@media (max-width: 1280px) { .fab { right: 12px; } .fab a { width: 64px; } }
@media (max-width: 720px) { .fab { display: none; } }

/* 받으실 수 있는 진료 */
.treat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.treat { border-radius: var(--radius-md); padding: 24px; background: var(--cream); border: 1.5px solid #f5ecc8; }
.treat strong { display: block; font-size: 18px; font-weight: 750; margin-bottom: 4px; }
.treat p { color: var(--ink-2); font-size: 15px; }

/* 처방 안내 */
.rx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.rx { border-radius: var(--radius-lg); padding: 28px 26px; background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.rx:hover { border-color: var(--yellow); transform: translateY(-4px); }
.rx-age { display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--yellow-soft); padding: 4px 10px; border-radius: 99px; }
.rx h4 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; margin: 12px 0 2px; }
.rx p { font-size: 14px; margin-bottom: 10px; }
.rx li { font-size: 15px; color: var(--ink-2); padding-left: 14px; position: relative; margin: 6px 0; }
.rx li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow-deep); }

/* 버스 */
.bus-list { display: grid; gap: 12px; }
.bus { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px 26px; border: 1.5px solid var(--line); border-radius: var(--radius-md); }
.bus h4 { font-size: 18px; font-weight: 750; }
.bus p { font-size: 14px; }
.bus-no { display: flex; gap: 6px; flex-wrap: wrap; }
.bus-no span { font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 10px; background: #e8f1ff; color: #1d55c4; }

.center-cta { text-align: center; margin-top: 48px; }

@media (max-width: 1080px) { .rx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .treat-grid, .rx-grid { grid-template-columns: 1fr; } }

/* ---------- 메가 메뉴 ---------- */
.mega { position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.mega .wrap { display: grid; grid-template-columns: repeat(4, 1fr) 220px; gap: 32px; padding-top: 32px; padding-bottom: 36px; height: auto; align-items: start; }
.mega-col strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 12px; }
.mega-col a { display: block; padding: 6px 0; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.mega-col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.mega-cta { background: var(--cream); border-radius: var(--radius-md); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.mega-cta .tel { font-size: 22px; font-weight: 800; margin: 0; }

/* 진료중 표시 */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.live:empty { display: none; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #bbb; }
.live.on::before { background: #21b35a; box-shadow: 0 0 0 4px rgba(33,179,90,.18); animation: pulse 2s infinite; }
.live.on { color: #13803f; }
.live.break::before { background: #f0a400; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(33,179,90,0); } }
.site-header .live { margin-left: 4px; }
@media (max-width: 1280px) { .site-header .wrap > .live { display: none; } }

/* 푸터 사이트맵 */
.foot-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; padding: 28px 0; margin-bottom: 24px; border-top: 1px solid #e4e4e0; border-bottom: 1px solid #e4e4e0; }
.foot-map strong { display: block; color: var(--ink); margin-bottom: 8px; }
.foot-map a { display: block; padding: 3px 0; }
.foot-map a:hover { color: var(--ink); }

/* 검색 박스 */
.search-box { margin-bottom: 18px; }
.search-box input { width: 100%; font: inherit; font-size: 18px; padding: 18px 22px 18px 52px; border-radius: 99px; border: 2px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 20px center/20px no-repeat; outline: none; transition: border-color .2s; }
.search-box input:focus { border-color: var(--yellow); }

/* 증상 사전 */
.sym-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sym-card { border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; transition: border-color .2s, transform .3s var(--ease); }
.sym-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.sym-card .cat { font-size: 13px; font-weight: 700; color: var(--navy); }
.sym-card h3 { font-size: 19px; font-weight: 750; letter-spacing: -0.03em; margin: 6px 0 8px; }
.sym-card p { font-size: 15px; color: var(--ink-2); }
.sym-card .red { margin-top: 10px; font-size: 14px; color: #b3261e; background: #fdf0ee; border-radius: 10px; padding: 8px 10px; }
.sym-links { margin-top: auto; padding-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--navy); }

/* FAQ 허브 */
.faq-item .more { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* 자가진단 */
.quiz { border: 1.5px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); }
.quiz-head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; margin-bottom: 26px; }
.quiz-head img { width: 120px; height: 140px; object-fit: cover; border-radius: 60px 60px 20px 20px; }
.quiz-head .h-lg { margin: 2px 0 6px; }
.q-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.q-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); cursor: pointer; font-weight: 600; font-size: 16px; transition: background .2s; }
.q-item input { appearance: none; flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #ccc; background: #fff; margin-top: 1px; cursor: pointer; transition: all .15s; }
.q-item input:checked { background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1b1b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--yellow); }
.q-item:has(input:checked) { background: var(--yellow-soft); }
.quiz-result { margin-top: 24px; background: var(--cream); border-radius: var(--radius-md); padding: 24px; }
.meter { height: 10px; border-radius: 10px; background: #efe6c4; overflow: hidden; margin-bottom: 14px; }
.meter span { display: block; height: 100%; width: 0; background: var(--yellow-deep); border-radius: 10px; transition: width .5s var(--ease); }
.res-text { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.res-text small { display: block; font-weight: 500; font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.quiz-result .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.calc { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.calc label { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.calc input[type=number] { width: 110px; font: inherit; font-size: 18px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); }
.seg { border: 0; display: flex; background: var(--bg-2); border-radius: 99px; padding: 4px; }
.seg label { cursor: pointer; }
.seg input { display: none; }
.seg span { display: block; padding: 10px 18px; border-radius: 99px; font-weight: 700; color: var(--ink-3); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.calc-out { margin-top: 22px; }
.calc-out .big { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; color: var(--navy); }
.calc-out .range { color: var(--ink-2); font-weight: 600; }
.quiz + .quiz, .quiz + #height { margin-top: 28px; }
.arch-row { justify-content: flex-start; }
@media (min-width: 1300px) { .arch-row { justify-content: center; } }

/* 계절 */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.season { background: var(--bg, #fff); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; min-height: 360px; }
.season.is-now { outline: 3px solid var(--yellow); }
.season-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 40px; }
.season-en { font-size: 28px; font-weight: 800; color: rgba(0,0,0,.18); letter-spacing: -0.02em; }
.season h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 10px; }
.season p { font-size: 15px; color: var(--ink-2); }
.season .chips { margin: auto 0 0; padding-top: 18px; }
.season .chip { background: rgba(255,255,255,.7); border: 0; }
.now-badge { display: inline-block; margin-left: 6px; font-size: 12px; background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 99px; }

/* 홈: 증상 찾기 */
.finder { background: var(--navy); border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 72px); color: #fff; }
.finder .eyebrow { color: var(--yellow); }
.finder .search-box input { border-color: transparent; }
.finder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.finder-chips a { padding: 10px 16px; border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.finder-chips a:hover { background: var(--yellow); color: var(--ink); }
.finder-results { display: grid; gap: 8px; margin-top: 8px; }
.finder-results a { display: block; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 18px; font-weight: 700; }
.finder-results a small { display: block; font-weight: 500; color: var(--ink-3); }

/* 홈: 사실표 */
.facts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.fact-table { width: 100%; border-collapse: collapse; }
.fact-table th, .fact-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.fact-table th { width: 32%; color: var(--ink-3); font-weight: 600; }
.fact-table td { font-weight: 600; }

/* 진료 페이지 보강 */
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.type { background: var(--bg-2); border-radius: var(--radius-md); padding: 22px 24px; }
.type strong { display: block; font-size: 18px; margin-bottom: 4px; }
.type p { color: var(--ink-2); font-size: 15px; }
.care { counter-reset: c; display: grid; gap: 10px; }
.care > div { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.care > div::before { content: counter(c); width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; }
.care strong { display: block; font-size: 17px; }
.care p { color: var(--ink-2); font-size: 15px; }
.redflag { background: #fdf3f1; border-radius: var(--radius-md); padding: 26px 28px; }
.redflag li { padding-left: 22px; position: relative; margin: 8px 0; font-weight: 600; color: #7a1f17; }
.redflag li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #d9483b; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tl div { border-top: 4px solid var(--yellow); padding-top: 16px; }
.tl strong { display: block; font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.tl p { font-size: 15px; color: var(--ink-2); }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--yellow-soft); border-radius: var(--radius-md); padding: 22px 26px; margin: -40px 0 80px; }
.inline-cta strong { font-size: 18px; }

@media (max-width: 1080px) {
  .mega { display: none; }
  .nav-open .mega { display: block; position: fixed; top: calc(var(--header-h) + 0px); bottom: 0; overflow: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; z-index: 61; }
  .nav-open .mega .wrap { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-open .gnb { display: none; }
  .seasons, .sym-cards { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .tl { grid-template-columns: repeat(2, 1fr); }
  .foot-map { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .seasons, .sym-cards, .q-list, .types { grid-template-columns: 1fr; }
  .quiz-head { grid-template-columns: 80px 1fr; gap: 16px; }
  .quiz-head img { width: 80px; height: 96px; }
  .nav-open .mega .wrap { grid-template-columns: 1fr; }
  .mega-cta { display: none; }
}
@media (max-width: 1080px) {
  .nav-open .mega { bottom: auto; height: calc(100dvh - var(--header-h)); background: #fff; }
  .nav-open .mega-col a { font-size: 17px; padding: 8px 0; }
}

/* 오시는 길 지도 */
.route { margin: 8px 0 28px; }
.route-map { height: 380px; border-radius: var(--radius-md); overflow: hidden; background: #eef1f4; border: 1px solid var(--line); z-index: 0; }
.route-map .map-fail { padding: 24px; color: var(--ink-2); }
.route-hint { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.pickable { cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.pickable:hover { border-color: var(--navy); }
.pickable.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #f6f9fd; }
.pickable:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pin { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; }
.pin span { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); position: relative; }
.pin span::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: inherit; border-bottom: 0; }
.pin-clinic span { background: var(--yellow); color: #1a1a1a; font-size: 14px; }
.pin-clinic span::after { border-top-color: var(--yellow); }
.pin-sub span, .pin-bus span { background: var(--navy); color: #fff; }
.pin-sub span::after, .pin-bus span::after { border-top-color: var(--navy); }
.pin-park span { background: #1a1a1a; color: #fff; }
.pin-park span::after { border-top-color: #1a1a1a; }
.pin-park { transform: translate(10px, -50%); }
.pin-park span::after { left: -5px; bottom: auto; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-color: #1a1a1a; border-left: 0; }
.pin-left { transform: translate(calc(-100% - 10px), -50%); }
.pin-left span::after { left: auto; right: -5px; bottom: auto; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: var(--yellow); border-right: 0; }
.pin-right { transform: translate(10px, -50%); }
.pin-bus.pin-right span::after { left: -5px; bottom: auto; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-color: var(--navy); border-left: 0; }
.pin-bus.pin-left span::after { border-left-color: var(--navy); }
.pin-door span { font-size: 12px; padding: 4px 8px; }
.pin-door span::after { border-top-color: #fff; }
@media (max-width: 640px) { .route-map { height: 300px; } }

/* 블로그·인스타 링크 */
.social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.social a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; }
.social a svg { width: 16px; height: 16px; }
.social a:hover { border-color: var(--navy); color: var(--navy); }
.social-lg a { padding: 10px 16px; font-size: 14px; }
.sns-line { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.sns-line a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sns-banner { margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius-md); background: var(--cream); }
.sns-banner strong { font-size: 18px; }
.sns-banner p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.sns-banner .social { margin-top: 0; }

/* 함소아 특급처방 */
.rx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rx-card { display: block; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); overflow: hidden; padding-bottom: 22px; transition: transform .25s var(--ease), box-shadow .25s; }
.rx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,.08); }
.rx-card-img { aspect-ratio: 4/3; background: #f3f1ec; display: grid; place-items: center; overflow: hidden; margin-bottom: 18px; }
.rx-card-img img { width: 100%; height: 100%; object-fit: cover; }
.rx-card .cat, .rx-card h3, .rx-card p { padding: 0 22px; }
.rx-card .cat { font-size: 13px; color: var(--navy); font-weight: 700; }
.rx-card h3 { font-size: 22px; margin: 6px 0 8px; letter-spacing: -0.03em; }
.rx-card p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.rx-hero { padding: calc(var(--header-h) + 40px) 0 64px; }
.rx-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.rx-hero-img { border-radius: var(--radius-lg, 28px); overflow: hidden; background: #f3f1ec; aspect-ratio: 4/3; }
.rx-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.rx-body { max-width: 980px; }
.rx-body .block p { margin-bottom: 12px; }
.rx-wide { width: 100%; border-radius: var(--radius-md); margin-bottom: 18px; aspect-ratio: 21/8; object-fit: cover; }
.herb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.herb-grid figure { margin: 0; text-align: center; }
.herb-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #f3f1ec; }
.herb-grid figcaption { margin-top: 8px; font-weight: 700; font-size: 15px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; background: #fff; }
.feat-img { aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: #f3f1ec; margin-bottom: 16px; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-no { font-size: 13px; font-weight: 800; color: var(--yellow-deep); }
.feat h3 { font-size: 19px; margin: 4px 0 6px; }
.feat p { font-size: 15px; color: var(--ink-2); margin: 0 !important; }
.lineup { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid var(--line); }
.lineup > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lineup strong { display: block; font-size: 17px; }
.lineup p { font-size: 15px; color: var(--ink-2); margin: 4px 0 0 !important; }
.quality { counter-reset: q; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; list-style: none; padding: 0; }
.quality li { counter-increment: q; display: flex; gap: 12px; align-items: baseline; padding: 14px 18px; background: var(--cream); border-radius: 14px; font-size: 15px; }
.quality li::before { content: counter(q); font-weight: 800; color: var(--yellow-deep); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check-grid .check { background: #f7f8fa; border-radius: 16px; padding: 20px; }
.check-grid .check span { font-size: 12px; font-weight: 800; color: var(--navy); letter-spacing: .04em; }
.check-grid .check p { font-size: 16px; font-weight: 600; margin: 6px 0 0 !important; line-height: 1.5; }
@media (max-width: 900px) {
  .rx-cards { grid-template-columns: 1fr 1fr; }
  .rx-hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .herb-grid { grid-template-columns: repeat(4, 1fr); }
  .check-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rx-cards, .lineup, .quality, .check-grid { grid-template-columns: 1fr; }
  .herb-grid { grid-template-columns: repeat(3, 1fr); }
}
.rx-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--navy); }
.rx-note { margin: 48px 0 0; }
.rx-others { margin-top: 72px; }
.rx-others h2 { margin-bottom: 20px; }

/* 안내 페이지 */
.g-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 16px; }
.g-table th { text-align: left; font-size: 14px; color: var(--ink-3); font-weight: 700; padding: 10px 14px; border-bottom: 2px solid var(--ink); }
.g-table td { padding: 14px; border-bottom: 1px solid var(--line); }
.g-table td:first-child { font-weight: 700; white-space: nowrap; width: 34%; }
.g-sub { margin-top: 22px; font-weight: 700; font-size: 15px; }
.g-list { padding-left: 1.2em; }
.g-list li { margin: 8px 0; }
