/* 한의원 데모 — 와이어프레임 버전 (/homepage-demo/wf/)
   섹션 내용은 와이어프레임, 생김새는 린다이어트·다이트한의원 기준 (2026-11-02 사용자 요청)
   - 흰 바탕 · 연회색 섹션 교대 + 어두운 띠 두 번(큰 숫자, 마지막 CTA)
   - 테두리 없는 배경색 블록. 큰 카드 32px · 중간 16px · 작은 카드·버튼 12px
   - 주 버튼은 업체 주조색 하나(「네이버 예약」). 글꼴 Pretendard 하나, 굵기 700까지 */

:root {
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ink: #1d232b;
  --muted: #5f6873;
  --line: #e3e6ea;
  --card: #f1f3f5;
  --gray: #f7f8f9;
  --dark: #15191e;
  --bar-h: 68px;
  --cta: #18a856; /* 포인트색 기본값 — 실제 값은 body style(업체관리 포인트색)이 덮는다 (2026-11-03) */
  --cta-ink: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; letter-spacing: -0.02em; color: var(--ink); background: #fff; word-break: keep-all; padding-bottom: var(--bar-h); overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
b, strong, h1, h2, h3 { font-weight: 700; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hl { font-style: normal; color: var(--brand-text); }

.w-wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.w-narrow { width: min(880px, 100% - 40px); }
.w-sec { padding: 72px 0; }
.w-gray { background: var(--gray); }
.w-sec h2, .w-title { font-size: clamp(26px, 5.6vw, 38px); line-height: 1.32; letter-spacing: -0.035em; margin-bottom: 20px; }
.w-label { font-size: 16px; font-weight: 700; color: var(--brand-text); margin-bottom: 10px; }
.w-lead { color: var(--muted); margin-bottom: 24px; }
.w-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.w-note a { color: var(--brand-text); font-weight: 700; }
.w-center { display: flex; justify-content: center; margin-top: 36px; }
/* 가운데 정렬 섹션 머리 (린다이어트) */
.w-chead { text-align: center; margin-bottom: 40px; }
.w-chead h2 { margin-bottom: 0; }

/* 버튼 — 호버 시 배경만 살짝 어둡게 (글자색은 그대로) */
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.w-btn-lg { height: 60px; padding: 0 34px; font-size: 18px; }
.w-btn-main { background: var(--cta); color: var(--cta-ink); }
.w-btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.w-btn-soft { background: var(--card); height: 40px; padding: 0 16px; font-size: 15px; }
@media (hover: hover) { .w-btn:hover, .w-bar-main:hover { background-image: linear-gradient(rgb(0 0 0 / .08), rgb(0 0 0 / .08)); } }
.w-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.w-btns .w-btn { flex: 1 1 0; }
/* 긴 화살표 버튼 — 글자 화살표(→)보다 길게 (2026-11-02 사용자 요청) */
.w-arrow { gap: 12px; }
.w-arrow::after { content: ''; width: 30px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h27M23 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h27M23 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
@media (hover: hover) { .w-arrow:hover::after { transform: translateX(4px); } }
/* 히어로 전화상담 버튼 — 호버 시 초록 배경 (2026-11-02 사용자 요청) */
.w-btn-tel { gap: 8px; transition: background-color .2s, color .2s; }
.w-tel-num { font-variant-numeric: tabular-nums; }
@media (hover: hover) { .w-btn-tel:hover { background: var(--cta); color: var(--cta-ink); box-shadow: none; background-image: none; } }
.w-more { display: inline-flex; gap: 6px; margin-top: 22px; font-weight: 700; color: var(--brand-text); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* 진료시간 띠 + 헤더 */
.w-topbar { background: var(--dark); color: #c9cfd6; font-size: 14px; }
.w-topbar .w-wrap { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; }
.w-topbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-topbar a { display: none; font-weight: 700; color: #fff; white-space: nowrap; }
.w-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.w-header-main { display: flex; align-items: center; gap: 10px; height: 64px; }
.w-logo { margin-right: auto; }
.w-logo img { height: 32px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; } /* 가로로 긴 로고도 헤더 안에 — 높이·폭 둘 다 제한 */
.w-nav { display: none; }
.w-nav.open { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
.w-nav.open a { padding: 12px 0; font-weight: 700; border-bottom: 1px solid var(--line); }
.w-head-cta { display: none; }
.w-menu { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--card); }

/* 히어로 — 누끼 원장을 바닥에 붙인다 (다이트·린다이어트) */
.w-hero { background: var(--card); overflow: hidden; }
.w-hero-grid { display: grid; }
.w-hero-copy { padding: 44px 0 28px; }
.w-kicker { font-size: clamp(17px, 4.4vw, 24px); font-weight: 700; letter-spacing: -0.01em; color: var(--brand-text); margin-bottom: 18px; }
.w-hero h1 { font-size: clamp(32px, 7.8vw, 56px); line-height: 1.25; letter-spacing: -0.05em; margin-bottom: 30px; }
.w-hero .w-lead { max-width: 470px; margin-bottom: 36px; }
.w-checks { display: grid; gap: 10px; margin-bottom: 40px; }
.w-checks li { display: flex; align-items: center; gap: 12px; font-size: clamp(17px, 4.4vw, 20px); font-weight: 700; }
.w-checks svg { color: var(--cta); flex: none; width: 20px; height: 20px; stroke-width: 2.2; }
.w-hero-figure { position: relative; height: 420px; display: flex; justify-content: center; align-items: flex-end; }
.w-hero-director { position: relative; height: 100%; width: auto; max-width: none; }
/* 원장 뒤 원 — 피그마 수정본에서 빠짐 (2026-11-02) */
.w-hero-figure::before { display: none; content: ''; position: absolute; left: 50%; bottom: -12%; width: min(92%, 640px); aspect-ratio: 1; margin-left: calc(min(92%, 640px) / -2); border-radius: 50%; background: color-mix(in oklab, var(--brand) 14%, #fff); translate: 0 calc(var(--py, 0) * .08px); }

/* 히어로 첫 등장 — 글만 차례로 떠오른다. 원장 사진은 고정 (2026-11-02 사용자 요청). 동작 줄이기 설정이면 끔 */
@keyframes w-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes w-grow { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .w-hero-copy > * { animation: w-up .8s cubic-bezier(.2, .7, .2, 1) both; }
  .w-hero-copy > :nth-child(2) { animation-delay: .1s; }
  .w-hero-copy > :nth-child(3) { animation-delay: .2s; }
  .w-hero-copy > :nth-child(4) { animation-delay: .3s; }
  .w-hero-copy > :nth-child(5) { animation-delay: .4s; }
  .w-hero-figure::before { animation: w-grow 1.2s cubic-bezier(.2, .7, .2, 1) both; }
}

/* 어두운 띠 — 큰 숫자 (린다이어트) */
.w-band { position: relative; isolation: isolate; overflow: hidden; background: var(--brand); color: var(--brand-ink); text-align: center; padding: 72px 0; }
/* 띠 양옆 사진 — 왼쪽 진료 사진 · 오른쪽 건물 외관, 주조색에 물들여 가운데로 갈수록 사라지게 (사용자 피그마 수정본, 2026-11-02) */
.w-band::before, .w-band::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: -1; width: 36%; background: center / cover no-repeat; opacity: .1; mix-blend-mode: luminosity; } /* 모바일은 글 뒤에 겹치니 더 옅게 */
.w-band::before { left: 0; background-image: var(--band-left, url('stock/acupuncture.webp')); -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent); mask-image: linear-gradient(90deg, #000 35%, transparent); }
.w-band::after { right: -12px; top: -12px; bottom: -12px; filter: blur(3px); /* 건물 사진은 살짝 흐리게 — 가장자리가 비치지 않게 바깥으로 조금 키움 */ background-image: var(--band-right, url('stock/exterior.webp')); -webkit-mask-image: linear-gradient(270deg, #000 35%, transparent); mask-image: linear-gradient(270deg, #000 35%, transparent); } /* 배경은 업체 주조색 (2026-11-02 사용자 요청) — 글자색은 주조색 밝기에 따라 흰색/먹색 */
.w-band-label { font-size: clamp(19px, 4.6vw, 26px); font-weight: 700; }
.w-band-num { font-size: clamp(60px, 17vw, 140px); font-weight: 700; line-height: 1.1; letter-spacing: -0.06em; margin: 8px 0 14px; font-variant-numeric: tabular-nums; }
/* 라벨 위 별 세 개 (작은 별 · 큰 별 · 작은 별, 아치) */
.w-band .stars { display: block; width: 72px; height: 33px; margin: 0 auto 14px; fill: currentColor; }
.w-band-note { font-size: 15px; opacity: .75; }

/* 주력 ② · 숫자 강조형 */
.w-split { display: grid; gap: 36px; align-items: center; }
.w-top { align-items: start; }
.w-photo { aspect-ratio: 4 / 3; border-radius: 32px; background: var(--card) center / 112% auto no-repeat; } /* 시차용으로 조금 크게 */
.w-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w-nums li { position: relative; display: grid; gap: 2px; padding: 20px 16px; background: var(--card); border-radius: 12px; } /* 테두리 없음 (2026-11-02 사용자 요청) */

.w-nums span, .w-metrics span { font-size: 15px; font-weight: 700; color: var(--brand-text); }
.w-nums b { font-size: clamp(26px, 6vw, 32px); line-height: 1.25; letter-spacing: -0.03em; }

/* 주력 ③ · Step 아이콘 줄 (다이트 진료 과정) */
.w-steps-head { display: grid; gap: 8px; margin-bottom: 36px; }
.w-badge-row { display: grid; gap: 12px; justify-items: start; padding-left: 20px; border-left: 2px solid var(--brand); color: var(--muted); } /* 배지 줄 — 왼쪽 초록 선 + 알약 배지 + 설명 (2026-11-02 사용자 요청으로 상자형에서 바꿈) */
.w-badge-row p { font-size: 15px; line-height: 1.6; }
.w-badge { color: var(--brand-text); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; } /* 아이콘·배경 없이 글자만, 크고 진하게 (2026-11-02 사용자 요청) */
.w-stepline { display: grid; gap: 10px; }
.w-stepline li { position: relative; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border-radius: 16px; }
.w-stepline svg { grid-row: 1 / 3; width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: color-mix(in oklab, var(--brand) 10%, #fff); color: var(--brand-text); stroke-width: 1.4; } /* 연초록 동그라미 안 아이콘 (2026-11-02 사용자 시안) */
.w-stepline strong { font-size: 19px; }
.w-step-d { font-size: 15px; color: var(--muted); }

/* 대표원장 — 큰 둥근 카드 + 누끼 */
.w-doctor { display: grid; gap: 36px; align-items: center; }
.w-doctor-photo { height: 420px; border-radius: 32px; background: var(--card); display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.w-doctor-img { height: 94%; width: auto; max-width: none; }
.w-cv { display: grid; gap: 20px; margin-bottom: 20px; }
.w-cv h3 { font-size: 16px; margin-bottom: 6px; }
.w-cv li { color: var(--muted); }
.w-cv li::before { content: '· '; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w-chips span { padding: 6px 12px; border-radius: 8px; background: var(--card); font-size: 14px; font-weight: 700; }

/* 모바일 가로 넘김 카드 줄 (다이트) */
.w-swipe { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
.w-swipe::-webkit-scrollbar { display: none; }
.w-swipe > li { scroll-snap-align: start; }

/* 차별점 */
.w-points li { position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; min-height: 190px; padding: 28px 26px; background: #fff; border-radius: 16px; }
.w-points li > :not(.w-point-icon) { position: relative; z-index: 1; max-width: 78%; }
/* 카드 오른쪽 위 아이콘 — 사진 대신, 면(filled) 두 톤으로 볼륨감 (2026-11-02) */
.w-point-icon { position: absolute; top: 26px; right: 26px; color: var(--brand-text); line-height: 0; } /* 호버 효과 없음 (2026-11-02 사용자 요청) */
.w-point-icon svg { width: 48px; height: 48px; } /* 면 아이콘 두 톤 */
.w-points span { font-size: 16px; font-weight: 700; color: var(--brand-text); }
.w-points strong { font-size: 21px; letter-spacing: -0.03em; }
.w-points p { color: var(--muted); font-size: 16px; }

/* 증상 → 진료 / 진료과목 */
/* 증상 → 진료 줄 목록 (위 차별점 카드와 다른 형식) */
.w-symptoms { display: grid; border-top: 1.5px solid var(--ink); }
.w-symptoms a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 6px; border-bottom: 1px solid var(--line); }
.w-sym-text { display: grid; gap: 2px; }
.w-sym-text strong { font-size: 20px; letter-spacing: -0.03em; }
.w-sym-text span { font-size: 15px; color: var(--muted); }
.w-sym-go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--card); color: var(--brand-text); font-size: 16px; transition: background-color .2s, color .2s; }
@media (hover: hover) { .w-symptoms a:hover .w-sym-go { background: var(--cta); color: var(--cta-ink); } } /* 호버는 밝은 초록 (2026-11-02 사용자 요청) */

/* 비급여 */
.w-prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w-prices li { display: grid; gap: 2px; padding: 22px 20px; background: #fff; border-radius: 16px; }
.w-prices span { font-size: 14px; color: var(--muted); }
.w-prices strong { font-size: 19px; }
.w-prices b { font-size: 22px; color: var(--brand-text); }

/* FAQ */
.w-faq { border-top: 1.5px solid var(--ink); }
.w-faq details { border-bottom: 1px solid var(--line); }
.w-faq summary { display: flex; align-items: center; gap: 14px; padding: 20px 4px; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; }
.w-faq summary::-webkit-details-marker { display: none; }
.w-q { flex: none; color: var(--brand-text); }
.w-faq-q { flex: 1; }
.w-faq summary svg { flex: none; color: var(--muted); transition: transform .2s; }
.w-faq details[open] summary svg { transform: rotate(45deg); }
.w-faq p { padding: 0 4px 20px 32px; color: var(--muted); }

/* 리뷰 · 신뢰 지표 */
.w-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 10px; margin-bottom: 32px; text-align: center; }
.w-metrics li { display: grid; gap: 2px; }
/* 지표 사이 세로선 (2026-11-02 사용자 요청) — 모바일 2×2는 가운데 한 줄, 넓은 화면 4칸은 칸마다 */
.w-metrics li:nth-child(even) { border-left: 1px solid #d5dae0; }
.w-metrics b { font-size: clamp(34px, 8vw, 52px); line-height: 1.15; letter-spacing: -0.03em; }

/* 건강칼럼 */
.w-cols { gap: 20px; } /* 칼럼 사이 간격 넓게 (2026-11-02 사용자 요청) */
.w-cols a { display: grid; gap: 12px; }
.w-thumb { aspect-ratio: 16 / 10; border-radius: 16px; background: var(--card) center / cover; transition: transform .3s; }
.w-cols li { overflow: hidden; }
@media (hover: hover) { .w-cols a:hover .w-thumb { transform: scale(1.03); } }
.w-cols strong { font-size: 19px; line-height: 1.45; }
.w-meta { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 마지막 전환 — 어두운 CTA + 내원 순서 STEP 카드 (린다이어트) */
.w-dark { background: color-mix(in oklab, var(--brand) 9%, #fff); color: var(--ink); padding: 80px 0; } /* 검정 대신 연초록 (2026-11-02 사용자 요청) */
.w-dark h2 { font-size: clamp(30px, 6.6vw, 46px); line-height: 1.28; letter-spacing: -0.04em; }
.w-visit li { display: grid; gap: 6px; align-content: start; min-height: 170px; padding: 26px 24px; background: #fff; border-radius: 16px; }
.w-visit span { font-size: 14px; font-weight: 700; color: var(--brand-text); }
.w-visit strong { font-size: 20px; }
.w-visit p { font-size: 15px; color: var(--muted); }
.w-dark-note { margin-top: 20px; text-align: center; font-size: 15px; color: var(--muted); }

/* 오시는 길 */
.w-mapbox { aspect-ratio: 4 / 3; border-radius: 32px; overflow: hidden; background: var(--card); display: grid; place-items: center; color: var(--muted); }
.w-mapbox iframe { width: 100%; height: 100%; border: 0; }
.w-loc .w-title { margin-bottom: 10px; }
.w-addr { color: var(--muted); margin-bottom: 18px; }
.w-hours { display: grid; gap: 4px; margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.w-hours div { display: grid; grid-template-columns: 90px 1fr; }
.w-hours dt { color: var(--muted); }
.w-hours dd { font-weight: 700; }

/* 푸터 + 하단 CTA 바 */
.w-footer { background: var(--gray); color: var(--muted); padding: 44px 0 36px; font-size: 15px; border-top: 1px solid var(--line); }
.w-footer .w-logo { display: inline-block; margin-bottom: 16px; }
.w-footer p + p { margin-top: 8px; }
.w-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.w-link { color: var(--ink); font-weight: 700; font-size: 15px; }
.w-demo { margin-top: 20px !important; font-size: 13px; }
.w-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--bar-h); padding: 0 6px env(safe-area-inset-bottom); background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 20px rgb(20 30 25 / .08); }
/* 하단 고정 바 — 오른쪽 퀵메뉴를 아래로 옮긴 모양: 아이콘 + 글자 5칸, 바로예약만 초록 (2026-11-03 사용자 시안) */
.w-bar-item { display: grid; justify-items: center; align-content: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink); }
.w-bar-item::before { content: ''; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--bi) center / contain no-repeat; mask: var(--bi) center / contain no-repeat; }
.w-bar-main { margin: 7px 0; border-radius: 12px; background: var(--cta); color: var(--cta-ink); }
.b-home { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.3 2.8a1.1 1.1 0 0 1 1.4 0l8 6.6c.3.2.4.5.4.9V20a1.5 1.5 0 0 1-1.5 1.5H15v-6a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v6H4.4A1.5 1.5 0 0 1 2.9 20v-9.7c0-.4.1-.7.4-.9z'/%3E%3C/svg%3E"); }
.b-call { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='m5.1070189 42.6776047c-1.6749215-4.5321426-2.8572195-9.1628075-2.5616448-14.0890465.1970496-3.0542717 1.3793476-5.6159153 3.6454179-7.7834606 2.3645964-2.2660694 4.7291918-4.7291908 7.0937862-6.9952621 3.0542698-3.0542688 6.9952621-3.0542688 10.04953 0 1.8719711 1.8719711 3.8424664 3.8424683 5.7144375 5.7144375 1.8719711 1.8719711 3.7439423 3.6454201 5.5173874 5.5173912 3.2513199 3.2513199 3.2513199 7.0937843 0 10.3451042-2.2660713 2.3645973-4.6306667 4.6306686-6.9952602 6.8967361-.5911503.5911484-.6896744 1.0837784-.3941002 1.8719788 1.5763969 3.7439423 3.7439423 6.9952583 6.3055897 10.1480522 5.024765 6.2070656 10.8377266 11.7244492 17.6359406 16.0595474 1.4778709.8867188 3.0542679 1.5763931 4.6306686 2.3645935.7881966.394104 1.2808189.295578 1.9704933-.394104 2.2660751-2.3645935 4.6306725-4.729187 6.995266-7.0937805 3.0542679-3.0542679 6.9952545-3.0542679 10.0495224 0 3.7439499 3.7439499 7.5864105 7.4878845 11.3303528 11.3303528 3.1527939 3.1527939 3.1527939 7.0937805 0 10.246582-2.1675415 2.1675415-4.4336166 4.2365723-6.4041061 6.5026398-2.9557495 3.2513199-6.6011658 4.3350906-10.8377304 4.1380386-6.1085358-.295578-11.822979-2.3646011-17.2418404-5.024765-12.1185532-5.9114914-22.5621815-14.0890503-31.2323647-24.4341507-6.5026378-7.5864182-11.822977-15.9610253-15.2713456-25.3208847zm92.3704744 2.0769615c-2.2489243-22.1946163-19.8594513-39.8657713-42.0263748-42.2082837-2.6760826-.2827976-5.022686 1.7730143-5.022686 4.4639959v.0860453c0 2.305078 1.7475281 4.2205386 4.039917 4.4620624 17.8650245 1.8822439 32.1644249 16.1027505 34.0702781 34.0283372.2456741 2.3106766 2.1878738 4.0644722 4.5114365 4.0389404h.0000153c2.6108169-.0286865 4.6906356-2.2734222 4.4274139-4.8710975zm-47.0490647-20.7359142v.0629139c0 2.1482372 1.5047836 4.0575371 3.6221886 4.420208 4.351284.7452908 8.3767281 2.8243656 11.5506325 5.9982719s5.2529755 7.1993446 5.9982681 11.5506363c.3626709 2.1174049 2.2719727 3.6221886 4.4202118 3.6221886h.0395126c2.7709503 0 4.9226227-2.4918022 4.4381104-5.2200699-2.249649-12.6677151-12.261734-22.6825562-24.8668022-24.8750553-2.7227516-.473589-5.2021218 1.6772727-5.2021218 4.4409065z'/%3E%3C/svg%3E"); }
.b-talk { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5c5.2 0 9.5 3.4 9.5 7.6s-4.3 7.6-9.5 7.6c-1 0-1.9-.1-2.8-.3L4.6 20.6c-.5.2-1-.3-.8-.8l1.2-3.7C3.5 14.8 2.5 13 2.5 11.1c0-4.2 4.3-7.6 9.5-7.6z'/%3E%3C/svg%3E"); }
.b-book { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M8 2.5a1 1 0 0 1 1 1V5h6V3.5a1 1 0 1 1 2 0V5h1.5A2.5 2.5 0 0 1 21 7.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 18.5v-11A2.5 2.5 0 0 1 5.5 5H7V3.5a1 1 0 0 1 1-1zM3 9.2v1.4h18V9.2z'/%3E%3C/svg%3E"); }
.b-map { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a7.5 7.5 0 0 1 7.5 7.5c0 5.6-6.4 11.4-6.8 11.7a1 1 0 0 1-1.4 0C10.9 20.9 4.5 15.1 4.5 9.5A7.5 7.5 0 0 1 12 2zm0 4.7a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6z'/%3E%3C/svg%3E"); }

.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px); z-index: 40; transform: translate(-50%, 12px); max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- 태블릿 이상 ---- */
@media (min-width: 720px) {
  .w-nums { grid-template-columns: repeat(4, 1fr); }
  .w-prices { grid-template-columns: repeat(4, 1fr); }
  .w-metrics { grid-template-columns: repeat(4, 1fr); }
  .w-metrics li + li { border-left: 1px solid #d5dae0; }
  .w-cv { grid-template-columns: 1fr 1fr; }
  .w-swipe { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .w-points, .w-cols { grid-template-columns: repeat(3, 1fr); }
  .w-cols { column-gap: 40px; }
  .w-visit { grid-template-columns: repeat(5, 1fr); }
  /* 내원 순서 카드 사이에도 화살표 동그라미 (교통사고 Step과 같은 모양, 2026-11-02) */
  .w-visit li { position: relative; }
  .w-visit li:not(:last-child)::after { content: ''; position: absolute; right: -18px; top: 50%; z-index: 1; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2.5 6.5 5 4 7.5'/%3E%3C/svg%3E") center / 10px 10px no-repeat; }
  .w-stepline { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .w-stepline li { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; gap: 6px; padding: 28px 14px; } /* 위에 붙여 카드마다 아이콘 높이 맞춤 */
  .w-stepline svg { grid-row: auto; order: -1; width: 56px; height: 56px; padding: 12px; margin-bottom: 8px; } /* 동그라미만 줄임, 아이콘 32px 그대로 */
  /* 단계 사이 화살표 동그라미 (다이트) */
  .w-stepline li:not(:last-child)::after { content: ''; position: absolute; right: -18px; top: 50%; z-index: 1; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2.5 6.5 5 4 7.5'/%3E%3C/svg%3E") center / 10px 10px no-repeat; } /* 글자(›) 대신 그린 화살표로 원 정중앙에 (2026-11-02 사용자 요청) */
}

/* ---- 데스크톱 ---- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .w-sec { padding: 104px 0; }
  .w-chead { margin-bottom: 56px; }
  .w-topbar a { display: block; }
  .w-header-main { height: 80px; gap: 64px; }
  .w-logo { margin-right: 0; }
  .w-nav { display: flex; gap: 34px; margin-right: auto; font-size: 17px; font-weight: 700; }
  .w-nav a:hover { color: var(--brand-text); }
  .w-head-cta { display: inline-flex; height: 48px; padding: 0 26px; font-size: 16px; }
  .w-head-call, .w-menu { display: none; }
  .w-bar { display: none; }
  .toast { bottom: 24px; }

  .w-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; min-height: clamp(760px, calc(100svh - 116px), 860px); } /* 피그마 수정본: 히어로 길게 (위 고정바 36 + 헤더 80 제외) */
  .w-hero-copy { padding: 80px 0; align-self: center; }
  .w-btns .w-btn { flex: 0 0 auto; }
  .w-hero-figure { height: clamp(700px, calc(100svh - 160px), 780px); }

  .w-band { padding: 100px 0; }
  .w-band::before, .w-band::after { opacity: .16; }
  .w-split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .w-split-even { gap: 56px; }
  .w-loc { grid-template-columns: 1.2fr 1fr; }
  .w-symptoms { grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; }
  .w-symptoms li:nth-child(-n+2) a { border-top: 1.5px solid var(--ink); }
  .w-steps-head { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
  .w-doctor { grid-template-columns: 5fr 6fr; gap: 80px; }
  .w-doctor-photo { height: 560px; }
  .w-dark { padding: 112px 0; }
}

/* ---- 스크롤 인터랙션 (와이어프레임 버전 메인, 2026-11-02 승인) — JS가 html.js-reveal을 붙일 때만(동작 줄이기면 안 붙음) ---- */
/* 섹션 제목·글 덩어리: 화면에 들어오면 위에서부터 차례로 떠오름 */
.js-reveal .w-chead > *, .js-reveal .w-reveal > * { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.w-chead.in > *, .w-reveal.in > * { opacity: 1; transform: none; }
.w-chead.in > :nth-child(2), .w-reveal.in > :nth-child(2) { transition-delay: .1s; }
.w-reveal.in > :nth-child(3) { transition-delay: .2s; }
.w-reveal.in > :nth-child(4) { transition-delay: .28s; }
.w-reveal.in > :nth-child(n+5) { transition-delay: .34s; }
/* Step 5칸 순차 등장은 뺌 — 카드와 사이 화살표가 따로 움직여 엉켜 보였음 (2026-11-02 사용자 지적) */
/* 헤더: 내리면 숨고 올리면 나타남 */
.w-header { transition: transform .3s ease; }
.w-header.hide { transform: translateY(-100%); }

/* 오른쪽 빠른 메뉴 — 둥근 사각 판. 본문(1200px) 옆에 자리가 나는 넓은 화면에서만 (2026-11-02 사용자 요청) */
.w-quick { display: none; }
@media (min-width: 1360px) {
  .w-quick { position: fixed; right: 20px; top: 50%; z-index: 25; transform: translateY(-36%); display: grid; gap: 10px; } /* 가운데보다 조금 아래 (2026-11-02 사용자 요청) */
  .w-quick-panel { display: grid; width: 84px; padding: 6px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); } /* 그림자 없이 얇은 테두리만 (2026-11-02 사용자 요청) */
  .w-quick-item { display: grid; justify-items: center; gap: 6px; padding: 14px 4px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; transition: background-color .2s, color .2s; }
  .w-quick-item::before { content: ''; width: 22px; height: 22px; /* 면(filled) 아이콘 (2026-11-02 사용자 요청) */ background: currentColor; -webkit-mask: var(--qi) center / contain no-repeat; mask: var(--qi) center / contain no-repeat; }
  .w-quick-item { position: relative; }
  /* 칸 사이 선은 ::after로 — 호버 배경이 둥근 모서리를 유지하게 (2026-11-02 사용자 요청) */
  .w-quick-item:not(.is-off) ~ .w-quick-item::after { content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--line); }
  .w-quick-item:hover::after, .w-quick-item:hover + .w-quick-item::after { opacity: 0; }
  .q-book { --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M8 2.5a1 1 0 0 1 1 1V5h6V3.5a1 1 0 1 1 2 0V5h1.5A2.5 2.5 0 0 1 21 7.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 18.5v-11A2.5 2.5 0 0 1 5.5 5H7V3.5a1 1 0 0 1 1-1zM3 9.2v1.4h18V9.2z'/%3E%3C/svg%3E"); } /* 네이버 예약도 다른 칸과 같은 흰 칸 (2026-11-02 사용자 요청) */
  .q-talk { --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5c5.2 0 9.5 3.4 9.5 7.6s-4.3 7.6-9.5 7.6c-1 0-1.9-.1-2.8-.3L4.6 20.6c-.5.2-1-.3-.8-.8l1.2-3.7C3.5 14.8 2.5 13 2.5 11.1c0-4.2 4.3-7.6 9.5-7.6z'/%3E%3C/svg%3E"); }
  .q-map { --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a7.5 7.5 0 0 1 7.5 7.5c0 5.6-6.4 11.4-6.8 11.7a1 1 0 0 1-1.4 0C10.9 20.9 4.5 15.1 4.5 9.5A7.5 7.5 0 0 1 12 2zm0 4.7a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6z'/%3E%3C/svg%3E"); }
  .q-blog { --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6 2.5h8.2l5.3 5.3V19a2.5 2.5 0 0 1-2.5 2.5H6A2.5 2.5 0 0 1 3.5 19V5A2.5 2.5 0 0 1 6 2.5zM8 12.5a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2zm0 3.8a1 1 0 1 0 0 2h5a1 1 0 1 0 0-2zM14 3v4.5c0 .3.2.5.5.5H19z'/%3E%3C/svg%3E"); }
  .q-top { --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E"); color: var(--muted); }
  /* 전화는 따로 — 밝은 초록 둥근 사각, 번호를 끊어 크게. 수화기 아이콘은 사용자가 준 SVG (2026-11-02) */
  .w-quick-tel { position: relative; display: grid; width: 84px; padding: 30px 10px 14px; border-radius: 18px; background: var(--cta); color: var(--cta-ink); font-size: 16px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
  .w-quick-tel::before { content: ''; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='m5.1070189 42.6776047c-1.6749215-4.5321426-2.8572195-9.1628075-2.5616448-14.0890465.1970496-3.0542717 1.3793476-5.6159153 3.6454179-7.7834606 2.3645964-2.2660694 4.7291918-4.7291908 7.0937862-6.9952621 3.0542698-3.0542688 6.9952621-3.0542688 10.04953 0 1.8719711 1.8719711 3.8424664 3.8424683 5.7144375 5.7144375 1.8719711 1.8719711 3.7439423 3.6454201 5.5173874 5.5173912 3.2513199 3.2513199 3.2513199 7.0937843 0 10.3451042-2.2660713 2.3645973-4.6306667 4.6306686-6.9952602 6.8967361-.5911503.5911484-.6896744 1.0837784-.3941002 1.8719788 1.5763969 3.7439423 3.7439423 6.9952583 6.3055897 10.1480522 5.024765 6.2070656 10.8377266 11.7244492 17.6359406 16.0595474 1.4778709.8867188 3.0542679 1.5763931 4.6306686 2.3645935.7881966.394104 1.2808189.295578 1.9704933-.394104 2.2660751-2.3645935 4.6306725-4.729187 6.995266-7.0937805 3.0542679-3.0542679 6.9952545-3.0542679 10.0495224 0 3.7439499 3.7439499 7.5864105 7.4878845 11.3303528 11.3303528 3.1527939 3.1527939 3.1527939 7.0937805 0 10.246582-2.1675415 2.1675415-4.4336166 4.2365723-6.4041061 6.5026398-2.9557495 3.2513199-6.6011658 4.3350906-10.8377304 4.1380386-6.1085358-.295578-11.822979-2.3646011-17.2418404-5.024765-12.1185532-5.9114914-22.5621815-14.0890503-31.2323647-24.4341507-6.5026378-7.5864182-11.822977-15.9610253-15.2713456-25.3208847zm92.3704744 2.0769615c-2.2489243-22.1946163-19.8594513-39.8657713-42.0263748-42.2082837-2.6760826-.2827976-5.022686 1.7730143-5.022686 4.4639959v.0860453c0 2.305078 1.7475281 4.2205386 4.039917 4.4620624 17.8650245 1.8822439 32.1644249 16.1027505 34.0702781 34.0283372.2456741 2.3106766 2.1878738 4.0644722 4.5114365 4.0389404h.0000153c2.6108169-.0286865 4.6906356-2.2734222 4.4274139-4.8710975zm-47.0490647-20.7359142v.0629139c0 2.1482372 1.5047836 4.0575371 3.6221886 4.420208 4.351284.7452908 8.3767281 2.8243656 11.5506325 5.9982719s5.2529755 7.1993446 5.9982681 11.5506363c.3626709 2.1174049 2.2719727 3.6221886 4.4202118 3.6221886h.0395126c2.7709503 0 4.9226227-2.4918022 4.4381104-5.2200699-2.249649-12.6677151-12.261734-22.6825562-24.8668022-24.8750553-2.7227516-.473589-5.2021218 1.6772727-5.2021218 4.4409065z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='m5.1070189 42.6776047c-1.6749215-4.5321426-2.8572195-9.1628075-2.5616448-14.0890465.1970496-3.0542717 1.3793476-5.6159153 3.6454179-7.7834606 2.3645964-2.2660694 4.7291918-4.7291908 7.0937862-6.9952621 3.0542698-3.0542688 6.9952621-3.0542688 10.04953 0 1.8719711 1.8719711 3.8424664 3.8424683 5.7144375 5.7144375 1.8719711 1.8719711 3.7439423 3.6454201 5.5173874 5.5173912 3.2513199 3.2513199 3.2513199 7.0937843 0 10.3451042-2.2660713 2.3645973-4.6306667 4.6306686-6.9952602 6.8967361-.5911503.5911484-.6896744 1.0837784-.3941002 1.8719788 1.5763969 3.7439423 3.7439423 6.9952583 6.3055897 10.1480522 5.024765 6.2070656 10.8377266 11.7244492 17.6359406 16.0595474 1.4778709.8867188 3.0542679 1.5763931 4.6306686 2.3645935.7881966.394104 1.2808189.295578 1.9704933-.394104 2.2660751-2.3645935 4.6306725-4.729187 6.995266-7.0937805 3.0542679-3.0542679 6.9952545-3.0542679 10.0495224 0 3.7439499 3.7439499 7.5864105 7.4878845 11.3303528 11.3303528 3.1527939 3.1527939 3.1527939 7.0937805 0 10.246582-2.1675415 2.1675415-4.4336166 4.2365723-6.4041061 6.5026398-2.9557495 3.2513199-6.6011658 4.3350906-10.8377304 4.1380386-6.1085358-.295578-11.822979-2.3646011-17.2418404-5.024765-12.1185532-5.9114914-22.5621815-14.0890503-31.2323647-24.4341507-6.5026378-7.5864182-11.822977-15.9610253-15.2713456-25.3208847zm92.3704744 2.0769615c-2.2489243-22.1946163-19.8594513-39.8657713-42.0263748-42.2082837-2.6760826-.2827976-5.022686 1.7730143-5.022686 4.4639959v.0860453c0 2.305078 1.7475281 4.2205386 4.039917 4.4620624 17.8650245 1.8822439 32.1644249 16.1027505 34.0702781 34.0283372.2456741 2.3106766 2.1878738 4.0644722 4.5114365 4.0389404h.0000153c2.6108169-.0286865 4.6906356-2.2734222 4.4274139-4.8710975zm-47.0490647-20.7359142v.0629139c0 2.1482372 1.5047836 4.0575371 3.6221886 4.420208 4.351284.7452908 8.3767281 2.8243656 11.5506325 5.9982719s5.2529755 7.1993446 5.9982681 11.5506363c.3626709 2.1174049 2.2719727 3.6221886 4.4202118 3.6221886h.0395126c2.7709503 0 4.9226227-2.4918022 4.4381104-5.2200699-2.249649-12.6677151-12.261734-22.6825562-24.8668022-24.8750553-2.7227516-.473589-5.2021218 1.6772727-5.2021218 4.4409065z'/%3E%3C/svg%3E") center / contain no-repeat; }
  @media (hover: hover) { .w-quick-tel:hover { background-image: linear-gradient(rgb(0 0 0 / .1), rgb(0 0 0 / .1)); } }
  @media (hover: hover) { .w-quick-item:hover { color: var(--brand-text); background: color-mix(in oklab, var(--brand) 8%, #fff); } }
}

/* 마지막 CTA 버튼 두 개 (네이버 예약 + 전화상담, 히어로와 같은 모양, 2026-11-02) */
.w-start-btns { justify-content: center; }
@media (min-width: 720px) { .w-start-btns .w-btn { flex: 0 0 auto; } }

/* ==== 하위 페이지 — 메뉴의 모든 항목을 한 단계 페이지로 (2026-11-03) ==== */
/* 지금 페이지 메뉴 표시 — 글자색만, 밑줄 없음 (2026-11-06 사용자 요청) */
.w-nav a[aria-current='page'] { color: var(--brand-text); }

/* 페이지 머리 — 회색 띠 · 경로 · 큰 제목 · 설명 + 오른쪽 사진(또는 원장 누끼) */
.w-page-head { background: var(--card); overflow: hidden; }
.w-page-grid { display: grid; gap: 28px; padding: 36px 0 44px; }
.w-crumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.w-crumb a:hover { color: var(--brand-text); }
.w-crumb b { color: var(--brand-text); }
.w-page-head h1 { font-size: clamp(30px, 7vw, 50px); line-height: 1.26; letter-spacing: -0.04em; margin-bottom: 18px; }
.w-page-head .w-lead { margin-bottom: 0; max-width: 560px; }
.w-page-photo { aspect-ratio: 4 / 3; border-radius: 32px; background: var(--gray) center / cover no-repeat; }
.w-page-head-doc .w-page-grid { padding-bottom: 0; }
.w-page-figure { height: 340px; display: flex; justify-content: center; align-items: flex-end; }
.w-page-director { height: 90%; width: auto; max-width: none; } /* 한의원 소개 원장 사진 (2026-11-03 사용자 요청) */

/* 요점 3칸 — 선으로만 나눔 */
.w-pts { display: grid; border-top: 1.5px solid var(--ink); }
.w-pts li { display: grid; gap: 4px; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.w-pts li > span { font-size: 15px; font-weight: 700; color: var(--brand-text); }
.w-pts strong { font-size: 21px; letter-spacing: -0.03em; }
.w-pts p { color: var(--muted); }

/* 자가 체크 목록 */
.w-checklist { display: grid; gap: 12px; margin: 4px 0 32px; }
.w-checklist li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.w-checklist svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #fff; color: var(--cta); }

.w-center-text { text-align: center; }
.w-faq-cat { flex: none; min-width: 64px; font-size: 14px; color: var(--brand-text); }



/* 건강칼럼 */
.w-col-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: color-mix(in oklab, var(--brand) 10%, #fff); color: var(--brand-text); font-size: 13px; font-weight: 700; }

/* 오시는 길 */
.w-mapbox-wide { aspect-ratio: 16 / 9; }
.w-map-btns { margin-top: 16px; }
.w-ways { display: grid; gap: 10px; }
.w-ways div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 18px 20px; background: #fff; border-radius: 12px; }
.w-ways dt { font-weight: 700; color: var(--brand-text); }
.w-hours-card { padding: 22px 24px; background: #fff; border-radius: 16px; border-top: 0; }
.w-btn-block { display: flex; width: 100%; }

/* 자주 묻는 질문 분류 탭 */
.w-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.w-tabs button { height: 40px; padding: 0 18px; border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 700; color: var(--muted); }
.w-tabs button[aria-selected='true'] { background: var(--brand); color: var(--brand-ink); }

/* 비급여 표 — 회색 틀 안 흰 표 */
.w-table-card { padding: 16px; background: var(--card); border-radius: 16px; overflow-x: auto; }
.w-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 16px; }
.w-table th, .w-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.w-table th { font-size: 14px; color: var(--muted); }
.w-table td:last-child { text-align: right; font-weight: 700; color: var(--brand-text); }
.w-table tr:last-child td { border-bottom: 0; }

@media (min-width: 720px) {
  .w-pts { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  }
@media (min-width: 1024px) {
  .w-page-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 72px; padding: 64px 0 72px; }
  .w-page-head-doc .w-page-grid { align-items: end; padding: 0; }
  .w-page-head-doc .w-page-copy { padding: 72px 0; align-self: center; }
  .w-page-figure { height: 520px; }
}

/* ==== 하위 페이지 2차 — 메인과 겹치지 않는 구성 (2026-11-03) ==== */
/* 진료과목 탭 — 페이지 머리 아래, 스크롤하면 위에 붙는다 */

/* 마무리 상담 띠 — 한 줄 */
.w-consult { background: color-mix(in oklab, var(--brand) 9%, #fff); padding: 36px 0; }
.w-consult .w-wrap { display: grid; gap: 18px; align-items: center; }
.w-consult p { display: grid; gap: 4px; }
.w-consult strong { font-size: clamp(19px, 4.4vw, 24px); letter-spacing: -0.03em; }
.w-consult p span { font-size: 15px; color: var(--muted); }
.w-consult .w-btns .w-btn { flex: 1 1 0; }

/* 진료 과정 — 단계별 사진·글 지그재그 */
.w-zigzag { display: grid; gap: 16px; }
.w-zigzag li { display: grid; background: #fff; border-radius: 24px; overflow: hidden; }
.w-zz-photo { min-height: 200px; background: var(--card) center / cover no-repeat; }
.w-zz-text { padding: 26px 26px 30px; }
.w-zz-text > span { font-size: 14px; font-weight: 700; color: var(--brand-text); }
.w-zz-text h3 { font-size: clamp(21px, 4.4vw, 26px); letter-spacing: -0.03em; margin: 4px 0 8px; }
.w-zz-text p { color: var(--muted); }

/* 권합니다 / 다른 진료를 권합니다 비교 */
.w-compare { display: grid; gap: 16px; }
.w-compare > div { padding: 30px 28px; border-radius: 24px; }
.w-compare-yes { background: color-mix(in oklab, var(--cta) 8%, #fff); }
.w-compare-yes .w-checklist { margin-bottom: 0; }
.w-compare-no { background: var(--card); }
.w-compare-no ul { display: grid; gap: 10px; margin-bottom: 14px; }
.w-compare-no li { position: relative; padding-left: 18px; font-weight: 700; }
.w-compare-no li::before { content: ''; position: absolute; left: 0; top: .75em; width: 8px; height: 2px; background: var(--muted); }

/* 진료 안내표 */
.w-guide { display: grid; border-top: 1.5px solid var(--ink); margin-bottom: 10px; }
.w-guide div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.w-guide dt { color: var(--muted); }
.w-guide dd { font-weight: 700; }

/* 관련 칼럼 · 대표 칼럼 */
.w-feature { display: grid; background: var(--gray); border-radius: 24px; overflow: hidden; }
.w-feature-thumb { min-height: 200px; background: var(--card) center / cover no-repeat; }
.w-feature-text { display: grid; gap: 8px; align-content: center; padding: 28px; }
.w-feature-text strong { font-size: clamp(20px, 4.4vw, 26px); line-height: 1.4; letter-spacing: -0.03em; }
.w-feature-text .w-col-tag, .w-feature-text .w-more { justify-self: start; }

/* 진료안내 — 6개 과목 비교 카드 */
.w-modgrid { display: grid; gap: 16px; }
.w-modgrid a { display: grid; grid-template-rows: auto 1fr; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: border-color .2s; }
.w-modgrid a:hover { border-color: var(--brand); }
.w-modgrid-photo { aspect-ratio: 16 / 9; background: var(--card) center / cover no-repeat; }
.w-modgrid-text { display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; }
.w-modgrid-text .w-label { margin-bottom: 0; }
.w-modgrid-text strong { font-size: 20px; letter-spacing: -0.03em; }
.w-modgrid-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.w-modgrid-tags > span { padding: 3px 10px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; }
.w-modgrid-row { font-size: 14px; color: var(--muted); }
.w-modgrid-row b { margin-right: 8px; color: var(--ink); }

/* 어떤 진료가 맞을지 모를 때 */
.w-unsure { display: grid; gap: 28px; align-items: center; }
.w-unsure .w-lead { margin-bottom: 0; }
.w-unsure-steps { display: grid; gap: 10px; }
.w-unsure-steps li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border-radius: 16px; font-weight: 700; }
.w-unsure-steps b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 15px; }

/* 한의원 소개 — 연도별 약력 */
.w-timeline { position: relative; display: grid; gap: 18px; padding-left: 26px; }
.w-timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: color-mix(in oklab, var(--brand) 25%, #fff); }
.w-timeline li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.w-timeline li::before { content: ''; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--brand); }
.w-timeline li:last-child::before { background: var(--brand); }
.w-timeline b { color: var(--brand-text); }
.w-timeline span { font-weight: 700; }
/* 진료 공간 */
.w-spaces { display: grid; gap: 20px; }
.w-spaces li { display: grid; gap: 6px; }
.w-space-photo { aspect-ratio: 4 / 3; border-radius: 24px; background: var(--card) center / cover no-repeat; margin-bottom: 8px; }
.w-spaces strong { font-size: 19px; }
.w-spaces span:not(.w-space-photo) { color: var(--muted); }
.w-addr-big { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }


/* 오시는 길 — 역에서 오는 길 */
.w-route { display: grid; gap: 16px; }
.w-route li { display: grid; gap: 10px; }
.w-route-photo { aspect-ratio: 4 / 3; border-radius: 20px; background: #e4e7ea; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.w-route b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 15px; }
.w-route p { font-weight: 700; }
.w-hours-line { background: var(--gray); }

@media (min-width: 720px) {
  .w-zigzag li { grid-template-columns: 1fr 1.3fr; }
  .w-zigzag li:nth-child(even) .w-zz-photo { order: 2; }
  .w-zz-text { padding: 36px 40px; align-self: center; }
  .w-compare { grid-template-columns: 1.2fr 1fr; }
  .w-feature { grid-template-columns: 1fr 1.3fr; }
  .w-modgrid { grid-template-columns: repeat(2, 1fr); }
  .w-spaces, .w-route { grid-template-columns: repeat(3, 1fr); }
  .w-consult .w-wrap { grid-template-columns: 1fr auto; }
  .w-consult .w-btns .w-btn { flex: 0 0 auto; }
  }
@media (min-width: 1024px) {
  .w-modgrid { grid-template-columns: repeat(3, 1fr); }
  .w-unsure { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .w-zigzag { gap: 20px; }
}
.w-sec:not(.w-gray) .w-ways div { background: var(--gray); } /* 흰 섹션에서도 칸이 보이게 */

/* 건강칼럼 — 큰 칼럼 카드만 세로로 (2026-11-03) */
.w-features { display: grid; gap: 36px; } /* 카드 사이 간격 넓게 (2026-11-03 사용자 요청) */
.w-features .w-lead { margin: 0; }

/* ==== 모바일 반응형 (720px 미만, 2026-11-03) ====
   원칙: 첫 화면에 원장 사진이 보이게 히어로를 줄이고, 세로로 길게 쌓이던 사진 카드는 「작은 사진 + 글」 가로 카드나 가로 넘김으로 바꾼다.
   데스크톱 규칙은 건드리지 않도록 이 블록 안에서만 덮는다. */
.w-topbar-short, .w-nav-cta, .w-menu-close { display: none; }
@media (max-width: 719px) {
  .w-sec { padding: 56px 0; }
  .w-chead { margin-bottom: 28px; }
  .w-sec h2, .w-title { font-size: clamp(24px, 6.6vw, 30px); }

  /* 진료시간 띠 — 짧은 문구 */
  .w-topbar-full { display: none; }
  .w-topbar-short { display: block; }

  /* 메뉴 — 헤더 아래로 펼쳐지는 전체 폭 패널 */
  .w-menu .w-menu-open, .w-menu .w-menu-close { line-height: 0; }
  .w-menu[aria-expanded='true'] .w-menu-open { display: none; }
  .w-menu[aria-expanded='true'] .w-menu-close { display: block; }
  .w-nav.open { display: grid; gap: 0; position: absolute; left: 0; right: 0; top: 100%; height: calc(100svh - 100%); padding: 8px 20px 24px; overflow-y: auto; background: #fff; border-top: 1px solid var(--line); align-content: start; }
  .w-nav.open > a { padding: 16px 4px; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .w-nav.open > a[aria-current='page'] { color: var(--brand-text); }
  .w-nav.open .w-nav-cta { display: grid; gap: 10px; margin-top: 24px; }
  .w-nav.open .w-nav-cta .w-btn { width: 100%; height: 54px; }

  /* 히어로 — 체크는 칩 한 줄, 버튼 두 개 나란히, 원장 사진을 첫 화면 안으로 */
  .w-hero-copy { padding: 28px 0 20px; }
  .w-kicker { font-size: 15px; margin-bottom: 10px; }
  .w-hero h1 { font-size: clamp(28px, 8vw, 34px); margin-bottom: 14px; }
  .w-hero .w-lead { font-size: 16px; margin-bottom: 18px; }
  .w-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
  .w-checks li { gap: 4px; padding: 6px 12px 6px 9px; border-radius: 999px; background: #fff; font-size: 14px; }
  .w-checks svg { width: 15px; height: 15px; }
  .w-hero .w-btns { flex-wrap: nowrap; }
  .w-hero .w-btns .w-btn { height: 54px; padding: 0 12px; font-size: 17px; }
  .w-tel-num { display: none; }
  .w-hero-figure { height: 340px; }

  /* 숫자 띠 */
  .w-band { padding: 52px 0; }
  .w-band-label { font-size: 18px; }

  /* 단계 · 마지막 CTA 버튼 두 개는 나란히 */
  .w-start-btns { flex-wrap: nowrap; }
  .w-start-btns .w-btn { flex: 1 1 0; padding: 0 12px; }

  /* 하위 페이지 머리 — 사진은 낮게 */
  .w-page-grid { gap: 20px; padding: 24px 0 28px; }
  .w-crumb { margin-bottom: 12px; }
  .w-page-head h1 { font-size: clamp(26px, 7.6vw, 32px); margin-bottom: 12px; }
  .w-page-head .w-lead { font-size: 16px; }
  .w-page-photo { aspect-ratio: 16 / 9; border-radius: 20px; }
  .w-page-figure { height: 280px; }

  /* 진료 과정 지그재그 → 작은 사진 + 글 가로 카드 */
  .w-zigzag { gap: 10px; }
  .w-zigzag li { grid-template-columns: 92px 1fr; align-items: stretch; border-radius: 18px; }
  .w-zz-photo { min-height: 0; height: 100%; }
  .w-zz-text { padding: 16px 16px 18px; }
  .w-zz-text h3 { font-size: 18px; margin: 2px 0 4px; }
  .w-zz-text p { font-size: 15px; }

  /* 진료안내 비교 카드 → 작은 사진 + 글 가로 카드 */
  .w-modgrid { gap: 10px; }
  .w-modgrid a { grid-template-rows: none; grid-template-columns: 104px 1fr; border-radius: 18px; }
  .w-modgrid-photo { aspect-ratio: auto; height: 100%; }
  .w-modgrid-text { gap: 5px; padding: 16px 16px 18px; }
  .w-modgrid-text strong { font-size: 17px; }
  .w-modgrid-row { font-size: 13px; }

  /* 칼럼 큰 카드 → 사진 위 · 글 아래, 사진은 낮게 */
  .w-features { gap: 20px; }
  .w-feature-thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .w-feature-text { padding: 20px 20px 22px; gap: 6px; }
  .w-feature-text strong { font-size: 19px; }
  .w-features .w-lead { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* 진료 공간 · 역에서 오는 길 → 가로 넘김 */
  .w-spaces, .w-route { grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
  .w-spaces::-webkit-scrollbar, .w-route::-webkit-scrollbar { display: none; }
  .w-spaces li, .w-route li { scroll-snap-align: start; }

  /* 권합니다 / 다른 진료 */
  .w-compare > div { padding: 24px 20px; border-radius: 20px; }
  .w-checklist li { font-size: 16px; align-items: flex-start; }
  .w-checklist svg { margin-top: 1px; }

  /* 진료 안내표 — 항목 이름 폭 줄임 */
  .w-guide div { grid-template-columns: 88px 1fr; }

  /* 마무리 상담 띠 — 버튼 두 개 나란히 */
  .w-consult { padding: 28px 0; }
  .w-consult .w-btns { flex-wrap: nowrap; }
  .w-consult .w-btns .w-btn { padding: 0 12px; }

  /* 오시는 길 지도 */
  .w-mapbox, .w-mapbox-wide { aspect-ratio: 1 / 1; border-radius: 20px; }

  /* 푸터 — 하단 고정 바에 가리지 않게 */
  .w-footer { padding-bottom: 28px; }
}
@media (max-width: 719px) { html:has(.w-nav.open) .w-bar { display: none; } } /* 메뉴가 열리면 하단 고정 바 숨김 */

/* ==== 모바일 히어로 — 위아래로 나누지 않고 한 화면 안에 원장과 정보를 겹쳐 둔다 (2026-11-03 사용자 요청) ====
   글은 위, 원장 누끼는 오른쪽 아래, 체크 칩은 원장 왼쪽 빈자리, 버튼은 맨 아래에 올린다 */
@media (max-width: 719px) {
  .w-hero-grid { position: relative; display: block; min-height: clamp(620px, calc(100svh - 168px), 760px); }
  .w-hero-copy { padding: 26px 0 0; }
  .w-hero .w-lead { max-width: 100%; }
  .w-hero-figure { position: absolute; right: -22%; bottom: 0; z-index: 1; height: 60%; pointer-events: none; }
  .w-checks { position: absolute; left: 0; bottom: 98px; z-index: 3; flex-direction: column; align-items: flex-start; margin: 0; }
  .w-checks li { box-shadow: 0 2px 10px rgb(20 30 25 / .08); }
  .w-hero .w-btns { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; }
  /* 버튼 뒤 옅은 바탕 — 원장 사진 위에서도 버튼이 또렷하게 */
  .w-hero-grid::after { content: ''; position: absolute; left: -20px; right: -20px; bottom: 0; z-index: 2; height: 120px; background: linear-gradient(rgb(241 243 245 / 0), var(--card) 72%); pointer-events: none; }
}

/* PC에서 모바일 화면을 볼 때 — 가로 넘김 영역을 마우스로 끌어서 넘긴다 */
.w-drag { cursor: grab; }
.w-drag.is-dragging { cursor: grabbing; scroll-snap-type: none !important; user-select: none; }
.w-drag.is-dragging a { pointer-events: none; }
/* 모바일 히어로 2차 — 제목 세 줄, 글은 왼쪽 좁게, 원장은 오른쪽 더 크게 (2026-11-03 사용자 요청) */
br.w-br-m { display: none; }
@media (max-width: 719px) {
  br.w-br-m { display: inline; }
  .w-hero h1 { font-size: min(36px, 9.2vw); white-space: nowrap; line-height: 1.24; }
  .w-hero .w-lead { max-width: 54%; font-size: 15px; line-height: 1.6; }
  /* 원장 얼굴 가운데를 화면 오른쪽 70% 지점에 — 화면 폭이 달라도 사람이 덜 잘리게 (2026-11-03) */
  .w-hero-figure { right: auto; left: 70%; transform: translateX(-50%); height: 66%; }
}

/* 가로 넘김 아래 점 — 지금 카드는 진한 주조색, 나머지는 옅게 (2026-11-03) */
.w-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.w-dots[hidden] { display: none; }
.w-dots button { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in oklab, var(--brand) 18%, #fff); transition: background-color .2s; }
.w-dots button.on { background: var(--brand); }
.w-dark .w-dots button:not(.on) { background: color-mix(in oklab, var(--brand) 25%, #fff); }

/* 진료과목 탭 — 모바일은 가로 넘김 대신 두 줄로 다 보이게 (2026-11-03 사용자 요청) */
@media (max-width: 719px) {
}

/* 리뷰 — 네이버 플레이스 숫자 3칸 + 큰 링크 카드 (2026-11-03) */
.w-review { max-width: 880px; margin: 0 auto; }
.w-metrics-3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w-metrics-3 li + li { border-left: 1px solid #d5dae0; }
.w-metrics-3 b { font-size: clamp(26px, 7vw, 48px); }
.w-metrics-3 span { font-size: 14px; }
.w-review-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff; border-radius: 20px; border: 1px solid var(--line); transition: border-color .2s; }
.w-review-card:hover { border-color: #03c75a; }
.w-review-badge { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #03c75a; color: #fff; font-size: 22px; font-weight: 700; }
.w-review-text { flex: 1; display: grid; gap: 2px; }
.w-review-text strong { font-size: 18px; }
.w-review-text span { font-size: 15px; color: var(--muted); }
.w-review-go { flex: none; font-size: 22px; font-weight: 700; color: var(--muted); transition: transform .2s; }
.w-review-card:hover .w-review-go { transform: translateX(4px); color: #03c75a; }
@media (min-width: 720px) { .w-metrics-3 span { font-size: 15px; } }
@media (max-width: 719px) { .w-hero .w-lead { display: none; } } /* 모바일 히어로는 제목 아래 설명을 뺀다 (2026-11-03 사용자 요청) */

/* ==== 로고·원장 사진 자동 맞춤 (2026-11-03) — 업체마다 손으로 조절하지 않게 규칙으로 ==== */
@media (max-width: 719px) {
  .w-header-main .w-logo img { height: 28px; max-width: 44vw; }
}
/* 단체 사진(업체관리 「원장 단체 사진」) — 높이 대신 폭에 맞춰 전원이 다 보이게 */
.w-hero-figure:has(.is-group) .w-hero-director { height: auto; width: 100%; max-height: 100%; object-fit: contain; object-position: center bottom; }
.w-doctor-photo:has(.is-group) .w-doctor-img, .w-page-figure:has(.is-group) .w-page-director { height: auto; width: 96%; max-height: 96%; object-fit: contain; object-position: center bottom; }
@media (min-width: 1024px) {
  /* 데스크톱 단체 사진 — 사진 칸을 넓히고 히어로 높이는 사진에 맞춰 줄인다 */
  .w-hero-grid:has(.is-group) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); column-gap: 32px; min-height: 620px; }
  .w-hero-figure:has(.is-group) { height: auto; align-self: end; padding-top: 48px; }
}
@media (max-width: 719px) {
  /* 모바일 — 체크 칩은 제목 아래로 올리고, 단체 사진은 화면 폭 전체를 바닥에 붙인다 */
  .w-hero-grid:has(.is-group) .w-checks { position: static; flex-direction: row; flex-wrap: wrap; margin: 4px 0 0; }
  .w-hero-figure:has(.is-group) { left: -28px; right: -28px; width: auto; transform: none; height: auto; bottom: 80px; }
  .w-hero-figure:has(.is-group) .w-hero-director { width: 100%; max-height: none; }
}

/* 관리자 미리보기 띠 — 업체관리 [홈페이지] 버튼으로 열었을 때 (2026-11-03) */
.w-preview-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding: 8px 16px; background: #fef3c7; color: #92400e; font-size: 14px; font-weight: 700; text-align: center; }
.w-preview-bar a { color: #78350f; text-decoration: underline; text-underline-offset: 3px; }

/* 네이버 지도 칸 (2026-11-04) — 인증 실패면 site.js가 안에 구글 iframe을 넣는다 */
.nmap { width: 100%; height: 100%; }
.nmap iframe { width: 100%; height: 100%; border: 0; }

/* ==== 다인 원장 히어로 (2026-11-04 사용자 시안) ====
   글은 1인 히어로와 같다. 오른쪽 단체 누끼를 크게·위로 올리고, 아래는 바탕색으로 흐려지며 이름 알약을 얹는다 */
.w-team-grid { position: relative; }
.w-hero-team .w-hero-copy { position: relative; z-index: 2; }
.w-team-figure { position: relative; margin: 0 -20px; overflow: hidden; }
.w-team-photo { position: relative; line-height: 0; margin-bottom: -6%; }
.w-team-img { display: block; width: 100%; height: auto; }
/* 아래 흐림 — 사진 끝이 바탕색으로 사라지게 */
.w-team-figure::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 34%; background: linear-gradient(rgb(241 243 245 / 0), var(--card) 78%); pointer-events: none; }
.w-team-names { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; margin: 0; padding: 0; list-style: none; line-height: 1.2; }
.w-team-names li { position: absolute; bottom: 0; translate: -50% 0; white-space: nowrap; padding: 6px 11px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgb(20 30 25 / .1); font-size: 12px; color: var(--muted); }
.w-team-names b { color: var(--ink); font-weight: 700; margin-right: 2px; }
@media (max-width: 719px) {
  /* 모바일 (2026-11-04 사용자 요청) — 글은 가운데 정렬, 체크 칩은 제목 아래 가운데, 사람은 그 바로 아래로 올리고,
     이름 알약은 사람 밑, 버튼은 맨 아래. 글 칸을 풀어(display: contents) 순서를 정한다 */
  .w-hero-team { text-align: center; }
  .w-team-grid { display: flex; flex-direction: column; align-items: center; min-height: 0; padding-top: 26px; }
  .w-hero-team .w-hero-copy { display: contents; }
  .w-hero-team .w-kicker { order: 1; }
  .w-hero-team h1 { order: 2; }
  .w-hero-team .w-checks { order: 3; position: static; justify-content: center; flex-direction: row; flex-wrap: wrap; margin: 0; }
  /* 체크 칩은 2개까지 — 한 줄에 들어가게 (2026-11-04 사용자 요청) */
  .w-hero-team .w-checks li:nth-child(n+3) { display: none; }
  .w-team-figure { order: 4; position: relative; inset: auto; width: calc(100% + 40px); margin: 32px -20px 0; overflow: hidden; } /* 머리가 체크 칩에 붙지 않게 32px — 위가 꽉 찬 단체 사진 기준. 히어로 높이는 내용에 따라 늘어난다 (2026-11-04) */
  .w-team-photo { width: 100%; margin: 0 0 -4%; }
  .w-team-img { width: 100%; height: auto; }
  /* 흐림은 사진 아래 끝에만 (이름 알약 자리 위) */
  .w-team-figure::after { height: 40%; background: linear-gradient(rgb(241 243 245 / 0), var(--card) 85%); }
  /* 이름 알약은 모바일에서 보이지 않는다 (2026-11-04 사용자 요청) — PC에서만 */
  .w-team-names { display: none; }
  .w-hero-team .w-btns { order: 5; position: relative; z-index: 2; width: 100%; margin: -14px 0 24px; } /* 모바일은 이름표가 없으니 버튼을 사진 아래 흐린 끝에 살짝만 겹친다 (2026-11-04) */
}
@media (min-width: 1024px) {
  /* 데스크톱 — 사진 칸을 글 쪽으로 겹쳐 넓게, 바닥에 붙인다. 히어로 높이는 글 높이에 맞추고 사람은 위쪽까지 */
  /* PC 높이는 1인 히어로와 같게 (위 고정바 36 + 헤더 80 제외, 760~860px) */
  .w-team-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; min-height: clamp(760px, calc(100svh - 116px), 860px); }
  .w-hero-team .w-hero-copy { align-self: center; padding: 56px 0; }
  /* 사람 머리가 위쪽에 오게 — 사진 칸을 세로 가운데로 올리고, 아래는 흐림으로 바탕에 녹인다 */
  .w-team-figure { margin: 0 -60px 0 -13%; align-self: center; }
  .w-team-names { bottom: 30px; }
  .w-team-names li { padding: 9px 16px; font-size: 15px; }
}

/* 모바일 1인 히어로 높이 줄임 — 설명 문장을 뺀 뒤 제목과 사진 사이가 비어 보여서 (2026-11-04 사용자 요청) */
@media (max-width: 719px) {
  .w-hero-grid { min-height: clamp(480px, calc(100svh - 340px), 520px); }
  /* 원장은 크게 — 글(왼쪽)과 원장(오른쪽)이 반반 들어가게. 글은 사진 위로 */
  .w-hero .w-kicker, .w-hero h1 { position: relative; z-index: 2; }
  .w-hero-figure { left: 72%; height: 82%; }
}

/* PC 다인 원장 히어로만 넓게 — 1인 히어로·다른 섹션은 1200px 그대로 (2026-11-04 사용자 요청) */
@media (min-width: 1024px) {
  .w-hero-team > .w-wrap { width: min(1440px, 100% - 160px); } /* 너무 벌어지지 않게 1440px까지 */
}

/* 의료진 소개 — 원장 이름 탭 (2026-11-04). 가운데 정렬된 한 줄 트랙 위로 진한 알약이 미끄러져 옮겨 간다 (사용자 요청: 위로 올라오는 효과 대신) */
.w-doc-tabs { position: relative; display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 32px; padding: 6px; border-radius: 999px; background: var(--card); overflow-x: auto; scrollbar-width: none; }
.w-doc-tabs::-webkit-scrollbar { display: none; }
.w-doc-pill { position: absolute; top: 6px; left: 0; height: calc(100% - 12px); width: 0; border-radius: 999px; background: var(--brand); box-shadow: 0 6px 16px color-mix(in oklab, var(--brand) 30%, transparent);
  transition: transform .7s cubic-bezier(.4, 0, .2, 1), width .7s cubic-bezier(.4, 0, .2, 1); }
.w-doc-tab { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px 0 5px; border-radius: 999px; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; transition: color .3s; }
.w-doc-tab b { color: var(--ink); font-weight: 700; margin-right: 2px; transition: color .3s; }
.w-doc-tab:not([aria-selected='true']):hover b { color: var(--brand-text); }
.w-doc-face { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; display: flex; align-items: flex-start; justify-content: center; }
.w-doc-face img { width: 130%; max-width: none; margin-top: 2px; }
.w-doc-tab[aria-selected='true'] { color: color-mix(in oklab, var(--brand-ink) 80%, transparent); }
.w-doc-tab[aria-selected='true'] b { color: var(--brand-ink); }
/* 알약이 아직 자리를 못 잡았을 때(스크립트 전)는 고른 탭에 바로 색 */
.w-doc-tabs:not(.is-ready) .w-doc-tab[aria-selected='true'] { background: var(--brand); }
.w-doc-panel[hidden] { display: none; }
/* 바뀔 때: 사진은 고른 방향에서 옆으로 밀려 들어오고, 글은 제자리에서 차례로 또렷해진다 (2026-11-04 너무 빠르다는 의견 — 느리고 짧은 거리로) */
.w-doc-panel.is-enter .w-doctor-photo > * { animation: w-doc-photo .9s cubic-bezier(.4, 0, .2, 1) both; }
.w-doc-panel.is-enter .w-doctor-photo + div > * { animation: w-doc-fade .8s ease both; }
.w-doc-panel.is-enter .w-doctor-photo + div > :nth-child(2) { animation-delay: .1s; }
.w-doc-panel.is-enter .w-doctor-photo + div > :nth-child(3) { animation-delay: .2s; }
.w-doc-panel.is-enter .w-doctor-photo + div > :nth-child(4) { animation-delay: .3s; }
@keyframes w-doc-photo { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } to { opacity: 1; transform: none; } }
@keyframes w-doc-fade { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .w-doc-pill { transition: none; } .w-doc-panel.is-enter * { animation: none !important; } }
@media (max-width: 719px) {
  .w-doc-tabs { margin-bottom: 20px; }
  .w-doc-tab { height: 44px; font-size: 14px; padding-right: 14px; }
  .w-doc-face { width: 34px; height: 34px; }
}
.w-doc-face i { align-self: center; font-style: normal; font-weight: 800; font-size: 15px; color: var(--brand-text); }
.w-doc-tab[aria-selected='true'] .w-doc-face i { color: var(--brand); }
.w-doctor-photo.is-empty { align-items: center; }
.w-doc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #b8bfc7; }
.w-doc-empty svg { width: 96px; height: 96px; }
.w-doc-empty em { font-style: normal; font-size: 15px; color: var(--muted); }

/* 진료안내 드롭다운 (2026-11-05) — PC: 올리면 아래로 펼침 / 모바일 메뉴: 늘 펼침. 화살표 없음 (2026-11-06) */
.w-nav-drop-head { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.w-nav-sub { display: none; }
.w-nav-sub a { display: block; }
@media (min-width: 1024px) {
  .w-nav-drop { position: relative; display: flex; align-items: center; }
  /* 메뉴 줄과 하위 메뉴 사이에 빈틈이 없게 위쪽 여백을 패딩으로 */
  .w-nav-sub { display: block; position: absolute; left: 50%; top: 100%; z-index: 50; min-width: 200px; padding-top: 14px; translate: -50% 6px; opacity: 0; visibility: hidden; transition: opacity .2s, translate .2s, visibility .2s; }
  .w-nav-sub::before { content: ''; position: absolute; inset: 14px 0 0; border-radius: 16px; background: #fff; border: 1px solid var(--line); } /* 그림자 없이 선만 (2026-11-06 사용자 요청) */
  .w-nav-sub a { position: relative; padding: 11px 22px; font-size: 16px; font-weight: 600; white-space: nowrap; }
  .w-nav-sub a:first-of-type { margin-top: 8px; }
  .w-nav-sub a:last-of-type { margin-bottom: 8px; }
  .w-nav-sub a:hover, .w-nav-sub a[aria-current='page'] { color: var(--brand-text); }
  .w-nav-drop:hover .w-nav-sub, .w-nav-drop:focus-within .w-nav-sub { opacity: 1; visibility: visible; translate: -50% 0; }
}
/* 모바일·태블릿 메뉴 */
@media (max-width: 1023px) {
  .w-nav.open > .w-nav-drop { border-bottom: 1px solid var(--line); }
  .w-nav.open .w-nav-drop-head > a { flex: 1; padding: 16px 4px; font-size: 19px; font-weight: 700; }
  .w-nav.open .w-nav-drop-head > a[aria-current='page'] { color: var(--brand-text); }
  .w-nav.open .w-nav-sub { display: grid; padding: 0 4px 12px; }
  .w-nav.open .w-nav-drop a { border-bottom: 0; box-shadow: none; } /* 예전 모바일 메뉴 줄 규칙 끄기 */
  .w-nav.open .w-nav-sub a { padding: 10px 12px 10px 16px; border-radius: 8px; font-size: 16px; font-weight: 600; color: var(--muted); }
  .w-nav.open .w-nav-sub a[aria-current='page'] { color: var(--brand-text); background: var(--card); }
}

/* 실제 병원 사이트 (2026-11-05) — 리뷰 숫자가 1·2개뿐일 때, 연도 없는 약력. 하단 바는 위에서 칸 수에 맞춰 나눈다(예약·카톡이 없으면 3칸) */
.w-metrics-1 { grid-template-columns: 1fr; }
.w-metrics-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .w-metrics-1 { grid-template-columns: 1fr; } .w-metrics-2 { grid-template-columns: repeat(2, 1fr); } }
.w-timeline-plain li { grid-template-columns: 1fr; }

/* ---------- 메인 새 섹션 (2026-11-05 레이아웃 모듈화 L-2) — 지금 메인 톤: 주조색 띠 · 가운데 큰 제목 · 테두리 없는 회색 블록 ---------- */
/* 1) 진료시간 강조 — 숫자 띠(.w-band)와 같은 모양. 숫자 대신 글자라 크기만 조금 줄인다 */
.w-band-text { font-size: clamp(42px, 11vw, 96px); letter-spacing: -0.05em; }
.w-band-text .hl { color: inherit; }
/* 2) 진료과목 나열 · 아이콘 */
.w-modicons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w-modicons a { display: grid; justify-items: center; align-content: start; gap: 8px; height: 100%; padding: 26px 12px 22px; border-radius: 20px; background: var(--card); text-align: center; transition: background-color .15s; }
.w-modicons i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--brand-text); }
.w-modicons strong { font-size: 18px; letter-spacing: -0.02em; }
.w-modicons a > span { font-size: 14px; color: var(--muted); }
@media (hover: hover) { .w-modicons a:hover { background: color-mix(in oklab, var(--brand) 10%, var(--card)); } }
@media (min-width: 720px) { .w-modicons { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .w-modicons { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
/* 진료과목이 8개면 4×2 두 줄 (2026-11-23 사용자 요청) */
@media (min-width: 720px) { .w-modicons:has(> li:nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); } }
/* 3) 진료과목 나열 · 사진 — 사진과 글을 한 장의 흰 카드로 (2026-11-05 사용자 스케치) */
.w-modphotos a { display: grid; grid-template-rows: auto 1fr; height: 100%; background: #fff; border-radius: 24px; overflow: hidden; transition: box-shadow .15s; }
.w-modphotos-img { aspect-ratio: 4 / 3; background: var(--card) center / cover no-repeat; }
.w-modphotos-text { display: grid; align-content: start; gap: 0; padding: 16px 22px 16px; } /* 사용자 조정값 (2026-11-05) */
@media (hover: hover) { .w-modphotos a:hover { box-shadow: 0 10px 28px rgb(20 30 25 / .08); } }
.w-modphotos-text strong { font-size: 20px; letter-spacing: -0.03em; }
.w-modphotos-text span { color: var(--muted); }
@media (min-width: 1024px) { .w-modphotos.w-swipe { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; overflow: visible; margin: 0; padding: 0; } }
/* 4) 원장 인사말 — 뒤에 사진을 연하게 (2026-11-05 사용자 요청) */
.w-greeting-sec { position: relative; isolation: isolate; overflow: hidden; }
.w-greeting-sec::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; aspect-ratio: 3 / 2; background: url('stock/greeting.webp') center / cover no-repeat; opacity: .2; -webkit-mask-image: linear-gradient(270deg, transparent, #000 45%); mask-image: linear-gradient(270deg, transparent, #000 45%); } /* 얼굴이 크지 않게 섹션 높이에 맞춘 사진을 왼쪽에(2026-11-05 사용자 요청), 오른쪽 끝을 흐리게 — 흐림은 사진 자체 기준이라 화면 폭과 상관없이 끊기지 않는다 */
.w-greeting { text-align: center; }
.w-greeting-face { display: block; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: color-mix(in oklab, var(--brand) 12%, #fff); margin: 14px auto 18px; } /* 「인사말」 아래 · 제목 위 원장 얼굴 — 테두리·그림자 없이 (2026-11-05 사용자 요청) */
.w-greeting-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: translateY(14%) scale(1.2); transform-origin: center top; } /* 머리 위에 여백 (2026-11-05 사용자 요청) */
.w-greeting h2 { font-size: clamp(28px, 6.4vw, 44px); line-height: 1.3; letter-spacing: -0.04em; margin: 6px 0 28px; }
.w-greeting-body { font-size: clamp(17px, 4.2vw, 19px); line-height: 1.9; color: #3a4048; text-wrap: pretty; }
.w-greeting-sign { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.w-greeting-sign span { color: var(--muted); font-size: 15px; }
.w-greeting-sign b { font-size: 24px; letter-spacing: .08em; }
/* 5) 병원 사진 — 첫 장 크게 */
.w-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w-gallery li { aspect-ratio: 1; border-radius: 20px; background: var(--card) center / cover no-repeat; }
.w-gallery li:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.w-gallery li.is-empty { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.w-gallery li.is-empty::before { content: '병원 사진'; }
.is-editing .w-gallery li.is-empty::before { content: '눌러서 사진 올리기'; }
.w-gallery-2 li:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 1024px) {
  .w-gallery { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 14px; }
  .w-gallery li, .w-gallery li:first-child { aspect-ratio: auto; grid-column: auto; }
  .w-gallery li:first-child { grid-row: span 2; }
  .w-gallery-4 li:last-child { grid-column: 2 / 4; }
  .w-gallery-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 360px; }
  .w-gallery-2 li:first-child, .w-gallery-2 li:last-child { grid-row: auto; grid-column: auto; }
  .w-gallery-1 { grid-template-columns: 1fr; grid-auto-rows: 440px; }
}
/* 6) 숫자 강조 */
.w-bignums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 10px; text-align: center; }
.w-bignums li { display: grid; gap: 4px; }
.w-bignums b { font-size: clamp(34px, 8vw, 56px); line-height: 1.15; letter-spacing: -0.04em; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.w-bignums span { font-size: 15px; font-weight: 700; color: var(--muted); }
.w-bignums-1, .w-bignums-3 { grid-template-columns: repeat(var(--n, 1), 1fr); }
.w-bignums-3 { --n: 3; }
@media (min-width: 1024px) { .w-bignums { grid-template-columns: repeat(var(--n, 4), 1fr); } .w-bignums-2 { --n: 2; } .w-bignums-1 { --n: 1; } .w-bignums li + li { border-left: 1px solid #d5dae0; } }
/* 섹션 견본 페이지 (/homepage-demo/sections) — 섹션마다 이름표 */
.w-catalog-tag { position: sticky; top: var(--head-h, 0); z-index: 5; background: #1d232b; color: #fff; padding: 10px 0; font-size: 14px; }
.w-catalog-tag .w-wrap { display: flex; gap: 12px; align-items: baseline; }
.w-catalog-tag span { color: #b9c0c8; }

/* ---------- 건강칼럼 글 페이지 (2026-11-06 칼럼 C-3) — 분류 칩 · 제목 H1 · 날짜 · 본문 + 옆 위젯 ---------- */
.w-article { padding-top: 56px; }
.w-art-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .w-art-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; } }
.w-art-head { margin-bottom: 36px; }
.w-art-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--soft, #f1ebe4); color: #5c4a3a; font-size: 14px; font-weight: 700; }
.w-art-head h1 { margin: 18px 0 12px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.35; letter-spacing: -0.03em; text-wrap: balance; }
.w-art-head time { color: #b0b5bb; font-size: 14px; }
/* 본문 */
/* 칼럼 본문 — 2026-11-20 편집 규칙 개편 (네이버 블로그 참고 글 5편 기준).
   여백을 한 값으로 쓰지 않고 종류별로 나눈다: 문단 사이 · 제목과 첫 문단 · 사진·표·상자 앞뒤 · 큰 섹션 · 목록 항목 · FAQ 질문·답변 · FAQ 묶음.
   빈 문단이나 <br> 로 간격을 만들지 않는다. 블록 역할은 칼럼 원고 도구가 data-block 으로 보낸다 (정리 규칙 columns.ts BLOCKS) */
.w-prose {
  --gap-p: 26px;        /* 일반 문단 사이 (참고 글 24~29px) */
  --gap-section: 56px;  /* 중제목·FAQ 앞 (48~60px) */
  --gap-head: 26px;     /* 중제목 뒤 첫 블록 (24~29px) */
  --gap-sub: 36px;      /* 소제목(행동 지침·체크리스트) 앞 = 다음 그룹 전 */
  --gap-sub-head: 12px; /* 소제목 뒤 목록 */
  --gap-media: 32px;    /* 사진·표·안내 상자 앞뒤 */
  --gap-item: 8px;      /* 목록 항목 사이 */
  font-size: 16px; line-height: 1.8; color: #2a2f35; word-break: keep-all; overflow-wrap: anywhere;
}
.w-prose > * { margin: 0; } /* figure 기본 좌우 40px 등 브라우저 기본 여백을 모두 지우고 아래 규칙만 쓴다 */
.w-prose > * + * { margin-top: var(--gap-p); }
.w-prose > :where(figure, table, blockquote, section[data-block="notice"], p:has(> img:only-child)),
.w-prose > :where(figure, table, blockquote, section[data-block="notice"], p:has(> img:only-child)) + * { margin-top: var(--gap-media); }
.w-prose > :first-child { margin-top: 0; }

/* 제목 — 주요 소제목·FAQ 제목은 같은 계열(마루부리, 칼럼 페이지에서만 서체를 불러온다) */
.w-prose h2 { font-family: 'MaruBuriBold', 'MaruBuri', 'Nanum Myeongjo', serif; font-size: 24px; font-weight: 700; font-synthesis: none; line-height: 1.8; letter-spacing: -0.01em; color: var(--ink); scroll-margin-top: 140px; }
.w-prose > h2, .w-prose > section[data-block="faq"] { margin-top: var(--gap-section); }
.w-prose > h2 + * { margin-top: var(--gap-head); }
.w-prose h3 { font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.w-prose > h3 { margin-top: var(--gap-sub); }
.w-prose > h3 + * { margin-top: var(--gap-sub-head); }

/* 사진 — 본문과 같은 폭, 둥근 모서리 없음(2026-11-20, 예전 「둥근 모서리」 요청을 바꿈). 불러오기 전 3:2 자리를 잡아 글이 튀지 않게, 세로 사진은 잘라내지 않고 높이만 제한 */
.w-prose figure { margin-left: 0; margin-right: 0; }
.w-prose img { display: block; width: 100%; height: auto; aspect-ratio: auto 3 / 2; max-height: 760px; object-fit: contain; border-radius: 0; }

/* 일반 목록 */
.w-prose ul, .w-prose ol { padding-left: 1.3em; }
.w-prose ul { list-style: disc; }
.w-prose ol { list-style: decimal; }
.w-prose li + li { margin-top: var(--gap-item); }
.w-prose li > p { margin: 0; } /* 목록 안 문단 — 문단 여백이 겹치지 않게 */
.w-prose li > p + p { margin-top: var(--gap-item); }

/* 번호 항목(①…)·체크리스트(□)·행동 지침 — 표시는 왼쪽 칸에 고정, 줄이 넘어가면 글 시작점에 맞춰 들여쓴다 */
.w-prose :is(ol[data-block="steps"], ul[data-block="checklist"], ul[data-block="rules"]) { list-style: none; padding-left: 0; }
.w-prose :is(ol[data-block="steps"], ul[data-block="checklist"], ul[data-block="rules"]) > li { position: relative; padding-left: 1.75em; }
.w-prose span[data-block="mark"] { position: absolute; left: 0; top: 0; color: var(--brand-text); font-weight: 700; }
.w-prose ul[data-block="rules"] > li { padding-left: 1.1em; }
.w-prose ul[data-block="rules"] > li::before { content: '•'; position: absolute; left: .15em; color: #b5b9be; }

/* FAQ — 제목은 독립 섹션, 질문·답변은 묶음 */
.w-prose section[data-block="faq"] > * { margin: 0; }
.w-prose section[data-block="faq"] > h2 + section { margin-top: var(--gap-head); }
.w-prose section[data-block="faq-item"] + section[data-block="faq-item"] { margin-top: 28px; } /* 한 답변과 다음 질문 사이 24~32px */
.w-prose section[data-block="faq-item"] > * { margin: 0; }
.w-prose section[data-block="faq-item"] > * + * { margin-top: 10px; } /* 질문과 답변 사이 8~12px */
.w-prose p[data-block="q"] { font-weight: 700; color: var(--ink); }

/* 유의사항 — 표가 아닌 안내 상자. 제목만 굵게, 본문은 일반 굵기 */
.w-prose section[data-block="notice"] { padding: 20px 22px; background: #f6f3ef; border-radius: 12px; color: #4a4038; font-size: 15px; line-height: 1.7; }
.w-prose section[data-block="notice"] > * { margin: 0; }
.w-prose section[data-block="notice"] > * + * { margin-top: 6px; }
.w-prose p[data-block="notice-title"] { font-weight: 700; }

.w-prose blockquote { padding: 18px 22px; border-radius: 16px; background: #f6f3ef; color: #4a4038; }
.w-prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }

/* 표 — 본문 폭이 기본, 머리글만 굵게, 셀 안 문단 여백 없음 */
.w-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.w-prose th, .w-prose td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.w-prose th { background: #f6f3ef; font-weight: 700; }
.w-prose td { font-weight: 400; }
.w-prose :is(th, td) > p { margin: 0; }
.w-prose td[colspan] { background: #fbfaf8; color: #5b6168; font-size: 14px; } /* 표 끝 행 주의 문구 */
.w-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* 본문 하단 — 원장님이 올린 시설 사진이 있을 때만 갤러리 (column-page.ts articleEnd). 병원 안내·30초 요약은 뺐다(2026-11-20 사용자) */
.w-art-end { margin-top: 56px; }
.w-end-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.w-end-gallery img { display: block; width: 100%; height: auto; aspect-ratio: auto 4 / 3; }
/* 옆 위젯 */
.w-art-side { display: grid; gap: 28px; align-content: start; }
@media (min-width: 1024px) { .w-art-side { position: sticky; top: 140px; } }
.w-art-w .w-art-wt { margin-bottom: 12px; font-size: 17px; font-weight: 700; } /* 위젯 제목 — 본문 소제목(H2)과 섞이지 않게 제목 태그를 쓰지 않는다 (2026-11-06) */
.w-art-doc { display: grid; justify-items: start; gap: 18px; }
.w-art-doc-photo { display: block; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: color-mix(in oklab, var(--brand) 12%, #fff); } /* 동그란 원 안에 (2026-11-06 사용자 요청) */
.w-art-doc-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: translateY(18%) scale(1.5); transform-origin: 50% 22%; } /* 얼굴을 원 가운데로 크게 (2026-11-17 사용자 요청) — 원장 사진(누끼, 더미 데모 김도현 기준) */
/* 업체관리 「홈페이지 의료진」 사진 (365경희바른 안형준 기준, 2026-11-19 사용자 지정: 77×120 · 위 2px · 왼쪽 20px) */
.w-art-doc-img[src*="/asset/doctor-"] { width: 77px; height: 120px; padding: 2px 0 0 20px; }
.w-art-doc p { font-size: 18px; }
.w-art-doc b { font-weight: 700; }
.w-art-toc ol { display: grid; gap: 8px; }
/* 목차 — 명도 높은 초록(포인트색) 계열 (2026-11-06 사용자 요청) */
.w-art-toc a { display: block; padding: 11px 14px; border-radius: 8px; background: color-mix(in oklab, var(--cta) 9%, #fff); font-size: 14px; font-weight: 600; line-height: 1.45; color: #2b2b2b; transition: background-color .2s, color .2s; }
.w-art-toc a:hover { background: color-mix(in oklab, var(--cta) 16%, #fff); }
.w-art-toc a.is-on { background: var(--cta); color: var(--cta-ink); }
.w-art-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--soft, #f1ebe4); color: #444; transition: filter .15s; } /* 오시는 길·진료시간 안내 — 바탕색(업체관리, 기본 베이지) · #444 글자 (2026-11-06 사용자 지정), 아이콘만 키컬러 */
.w-art-btn:hover { filter: brightness(.95); }
.w-art-btn-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #fff; color: var(--brand); flex: none; }
.w-art-btn-text { display: grid; line-height: 1.25; }
.w-art-btn-text small { font-size: 13px; opacity: .92; }
.w-art-btn-text b { font-size: 21px; }
.w-art-map + .w-art-hours, .w-art-hours + .w-art-map { margin-top: -16px; } /* 두 버튼은 붙여서 한 묶음처럼 */
.w-art-contact { display: grid; gap: 8px; }
.w-art-related ul { display: grid; gap: 10px; }
.w-art-related a { font-size: 15px; font-weight: 600; line-height: 1.45; }
.w-art-related a:hover { text-decoration: underline; }
@media (max-width: 1023px) { .w-art-side { padding-top: 32px; border-top: 1px solid var(--line); } }

/* 관리자 미리보기 건강칼럼 — 칼럼 쓰기 버튼 (2026-11-06) */
.w-col-admin { display: flex; justify-content: flex-end; margin-bottom: 24px; }

/* 퀵메뉴 끈 항목 (레이아웃 고르기, 2026-11-06) — 다 끄면 칸째 숨김 */
.w-quick .is-off { display: none !important; }
.w-quick-panel:not(:has(.w-quick-item:not(.is-off))) { display: none; }
.w-quick:not(:has(.w-quick-item:not(.is-off), .w-quick-tel:not(.is-off))) { display: none; }

/* ---- 한의원 소개 메뉴 페이지 (2026-11-17 사용자 요청) — 병원 소개 · 의료진 · 진료 시간 · 시설안내 · 공지사항 ---- */
/* 병원 소개: 인사말 (원장 사진 + 편지) */
.w-intro { display: grid; gap: 32px; align-items: center; }
.w-intro-figure { border-radius: 32px; background: var(--card); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; display: flex; align-items: flex-end; justify-content: center; }
.w-intro-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.w-intro-body { color: var(--muted); font-size: 18px; line-height: 1.8; margin-bottom: 14px; white-space: pre-line; }
.w-intro-letter .w-greeting-sign { margin-top: 22px; }
@media (min-width: 1024px) { .w-intro { grid-template-columns: 420px 1fr; gap: 72px; } .w-intro.no-photo { grid-template-columns: 1fr; max-width: 880px; } }
/* 병원 소개: 한눈에 보기 (주조색 띠) */
.w-intro-facts { background: var(--brand); color: var(--brand-ink); padding: 44px 0; }
.w-intro-facts-label { font-size: 15px; font-weight: 700; opacity: .8; margin-bottom: 18px; text-align: center; }
.w-intro-facts-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; text-align: center; }
.w-intro-facts-list b { display: block; font-size: clamp(24px, 5vw, 34px); letter-spacing: -0.03em; line-height: 1.25; }
.w-intro-facts-list span { font-size: 15px; opacity: .85; }
@media (min-width: 720px) { .w-intro-facts-3 { grid-template-columns: repeat(3, 1fr); } .w-intro-facts-4 { grid-template-columns: repeat(4, 1fr); } }
/* 병원 소개: 진료 공간 미리보기 */
.w-intro-fac-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.w-intro-fac-head .w-more { margin-top: 0; }
.w-intro-fac { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.w-intro-fac li { aspect-ratio: 4 / 3; border-radius: 16px; background: var(--card) center / cover no-repeat; }
.w-intro-fac li.is-empty, .w-facility-photo.is-empty { background: repeating-linear-gradient(45deg, var(--card) 0 10px, #fff 10px 20px); }
@media (max-width: 719px) { .w-intro-fac { grid-template-columns: 1fr 1fr; } .w-intro-fac li:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

/* 의료진 소개: 학회 · 함께하는 의료진 */
.w-doc-soc-title { margin: 26px 0 10px; font-size: 17px; }
.w-doc-soc { display: grid; gap: 6px; color: var(--muted); }
.w-doc-soc li::before { content: '\00B7  '; }
.w-staff { display: grid; gap: 20px; }
.w-staff-card { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px; border-radius: 24px; background: var(--gray); }
.w-staff-photo { width: 120px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--card); }
.w-staff-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.w-staff-img.is-empty { display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--brand-text); background: color-mix(in oklab, var(--brand) 10%, #fff); }
.w-staff-name { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.w-staff-name b { font-size: 21px; color: var(--ink); margin-right: 4px; }
.w-staff-bio { display: grid; gap: 3px; font-size: 15px; }
.w-staff-bio.is-sub { margin-top: 8px; color: var(--muted); font-size: 14px; }
.w-miniweek { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.w-miniweek li { display: grid; justify-items: center; min-width: 40px; padding: 5px 4px; border-radius: 8px; background: #fff; font-size: 12px; line-height: 1.4; }
.w-miniweek li span { color: var(--muted); }
.w-miniweek li b { font-size: 13px; }
.w-miniweek .s-all b { color: var(--brand-text); }
.w-miniweek .s-off b, .w-miniweek .s-none b { color: #b8bfc7; font-weight: 600; }
@media (min-width: 1024px) { .w-staff { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 719px) { .w-staff-card { grid-template-columns: 88px 1fr; gap: 14px; padding: 16px; } .w-staff-photo { width: 88px; } }

/* 진료 시간: 요일별 표 · 오시기 전에 */
.w-week { display: grid; padding: 8px 24px; border-radius: 16px; background: var(--gray); }
.w-week div { display: grid; grid-template-columns: 80px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.w-week div:last-child { border-bottom: 0; }
.w-week dt { color: var(--muted); font-weight: 600; }
.w-week dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.w-week .is-off dd { color: #c03a2b; }
.w-week .is-lunch { border-top: 1.5px solid var(--ink); }
.w-week-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-size: 12px; vertical-align: 2px; }
.w-hours-tips li { font-size: 17px; }
.w-hours-tips svg { background: var(--gray); }
/* 진료 시간: 의료진별 진료 일정 */
.w-sched-card { padding: 16px; background: var(--card); border-radius: 16px; overflow-x: auto; }
.w-sched { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 12px; overflow: hidden; font-size: 16px; text-align: center; }
.w-sched th, .w-sched td { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.w-sched tr:last-child th, .w-sched tr:last-child td { border-bottom: 0; }
.w-sched thead th { font-size: 14px; color: var(--muted); }
.w-sched tbody th { text-align: left; padding-left: 18px; white-space: nowrap; }
.w-sched tbody th span { color: var(--muted); font-weight: 500; font-size: 14px; }
.w-sched td { font-weight: 700; }
.w-sched .s-all { color: var(--brand-text); background: color-mix(in oklab, var(--brand) 9%, #fff); }
.w-sched .s-am, .w-sched .s-pm { color: var(--ink); background: var(--soft, #f1ebe4); }
.w-sched .s-off, .w-sched .s-none { color: #b8bfc7; font-weight: 600; }
.w-sched-notes { display: grid; gap: 4px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.w-sched-notes b { color: var(--ink); margin-right: 6px; }

/* 시설안내: 사진 + 설명 */
.w-facility { display: grid; gap: 22px 16px; grid-template-columns: 1fr; }
.w-facility figure { margin: 0; }
.w-facility-photo { aspect-ratio: 4 / 3; border-radius: 16px; background: var(--card) center / cover no-repeat; }
.w-facility figcaption { margin-top: 10px; font-size: 16px; font-weight: 700; text-align: center; }
@media (min-width: 720px) { .w-facility { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .w-facility { grid-template-columns: repeat(3, 1fr); }
  .w-facility > li:first-child { grid-column: span 2; grid-row: span 2; }
  .w-facility > li:first-child figure { height: 100%; display: flex; flex-direction: column; }
  .w-facility > li:first-child .w-facility-photo { aspect-ratio: auto; flex: 1; min-height: 360px; }
  .w-facility-1 > li:first-child { grid-column: 1 / -1; }
}

/* 공지사항: 목록 · 글 */
.w-notices { border-top: 1.5px solid var(--ink); }
.w-notices li a { display: flex; align-items: center; gap: 12px; padding: 20px 6px; border-bottom: 1px solid var(--line); }
.w-notices strong { flex: 1; font-size: 18px; font-weight: 600; }
.w-notices .w-meta { flex: none; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .w-notices li a:hover strong { color: var(--brand-text); } }
.w-notice-pin { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 13px; font-weight: 700; }
.w-notice-head { padding-bottom: 22px; border-bottom: 1.5px solid var(--ink); }
.w-notice-head .w-notice-pin { display: inline-block; margin-bottom: 10px; }
.w-notice-head h1 { font-size: clamp(26px, 5.6vw, 36px); line-height: 1.35; letter-spacing: -0.035em; margin-bottom: 8px; }
.w-notice-body { padding: 32px 0 40px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.85; }
.w-notice-body p + p { margin-top: 18px; }
.w-notice-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 24px; }
.w-notice-nav a:not(.w-btn) { display: grid; gap: 2px; font-weight: 600; font-size: 15px; overflow: hidden; }
.w-notice-nav a:not(.w-btn) span { font-size: 13px; color: var(--muted); font-weight: 500; }
.w-notice-nav a:last-child { text-align: right; }
@media (max-width: 719px) { .w-notice-nav { grid-template-columns: 1fr 1fr; } .w-notice-nav .w-btn { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }

/* ---- 인물 사진 크기·여백 맞춤 (2026-11-18 사용자 요청 — 365경희바른한의원 기준 점검) ----
   원장 누끼 사진은 머리가 사진 맨 위에 붙어 있고 잘린 범위가 사람마다 다르다 → 높이 기준으로 맞추고(얼굴 크기가 같아진다) 바닥에 붙이며,
   블록 위에 일정한 여백을 둬 머리가 가장자리에 닿지 않게 한다 */
.w-staff-photo { width: 140px; padding-top: 9%; display: flex; align-items: flex-end; justify-content: center; }
.w-staff-img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.w-staff-img.is-empty { align-self: stretch; }
.w-staff-card { grid-template-columns: 140px 1fr; }
@media (max-width: 719px) { .w-staff-card { grid-template-columns: 96px 1fr; } .w-staff-photo { width: 96px; } }
/* 병원 소개 인사말 사진 — 확대해 자르지 않고 바닥에 붙여 위에 여백 */
.w-intro-figure { padding-top: 8%; }
.w-intro-photo { object-fit: contain; object-position: center bottom; }
/* 메인 대표원장 소개 — 단체 사진뿐인 다인 병원은 칸 높이를 사진에 맞춰 위가 비지 않게 */
.w-doctor-photo:has(.is-group) { height: auto; padding-top: 48px; }
.w-doctor-photo:has(.is-group) .w-doctor-img { max-height: none; }
/* 메인 첫 화면 1인 원장 사진 — PC에서 92% 크기로 (2026-11-18 사용자 지정: 757 → 694px). 다인 단체 사진은 그대로 */
@media (min-width: 1024px) { .w-hero-figure:not(:has(.is-group)) .w-hero-director { height: 92%; } }

/* 원장별 진료 일정 — 의료진 소개 카드 아래 표 · 메인 의료진 탭 요일 줄 (2026-11-18 사용자 요청) */
.w-staff-sched { margin-top: 48px; }
.w-staff-sched .w-title { margin-bottom: 16px; }
.w-doc-days-label { margin: 22px 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.w-doctor .w-miniweek { margin-top: 0; }
.w-doctor .w-miniweek li { background: var(--card); min-width: 44px; }
/* 한눈에 보기 — 항목 사이 세로 구분선 (2026-11-18 사용자 요청). 선 색은 띠 글자색, 모바일 2열은 같은 줄 두 항목 사이만 */
.w-intro-facts-list li { position: relative; }
.w-intro-facts-list li::before { content: ''; position: absolute; left: -6px; top: 50%; width: 1.5px; height: 48px; translate: 0 -50%; background: currentColor; opacity: .5; display: none; }
.w-intro-facts-list li:nth-child(2n)::before { display: block; }
@media (min-width: 720px) {
  .w-intro-facts-list li::before { display: none; }
  .w-intro-facts-list li + li::before { display: block; }
}

/* 주력 진료 전부 · 사진 카드 (2026-11-23 365경희바른한의원) — PC 두 칸, 모바일 한 칸 */
.w-focuscards { display: grid; gap: 28px; }
.w-focuscards a { display: grid; grid-template-rows: auto 1fr; height: 100%; background: var(--card); border-radius: 32px; overflow: hidden; transition: box-shadow .15s; }
@media (hover: hover) { .w-focuscards a:hover { box-shadow: 0 10px 28px rgb(20 30 25 / .08); } }
.w-focuscards-img { aspect-ratio: 16 / 10; background: #e4e7ea center / cover no-repeat; }
.w-focuscards-text { display: grid; align-content: start; padding: 26px 28px 30px; }
.w-focuscards-text .w-label { margin-bottom: 8px; }
.w-focuscards-text strong { font-size: clamp(23px, 5.6vw, 28px); line-height: 1.32; letter-spacing: -0.03em; }
.w-focuscards-d { margin-top: 12px; color: var(--muted); line-height: 1.7; }
.w-focuscards .w-more { justify-self: start; margin-top: 18px; }
@media (min-width: 720px) { .w-focuscards { grid-template-columns: repeat(2, 1fr); } }

/* 오시는 길 — 자차 · 버스 안내 (2026-11-23) */
.w-trans { display: grid; gap: 20px; }
.w-trans-card { padding: 28px; border-radius: 24px; background: #fff; }
.w-trans-card h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 16px; }
.w-trans-card h3 i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--brand-text); }
.w-trans-car { display: grid; gap: 6px; }
.w-trans-car strong { font-size: 19px; }
.w-trans-car span { color: var(--muted); }
.w-trans-photos { display: grid; gap: 12px; margin-top: 18px; }
.w-trans-photos li { border-radius: 16px; overflow: hidden; background: #e4e7ea; min-height: 120px; }
/* 두 장의 세로 길이가 달라도 칸 비율을 같게 하고 아래쪽 기준으로 맞춘다 — 사진 아래 설명 띠가 나란히 (2026-11-23 사용자 요청) */
.w-trans-photos li { aspect-ratio: 7 / 6; }
.w-trans-photos img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.w-trans-bus { display: grid; gap: 18px; }
.w-trans-bus dt { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.w-trans-bus dd { position: relative; padding-left: 14px; color: #3a4048; line-height: 1.75; }
.w-trans-bus dd::before { content: ''; position: absolute; left: 2px; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
/* 자차·버스는 한 줄에 하나씩 — 주차 사진을 크게 (2026-11-23 사용자 요청 「사진이 잘 안 보여서」) */
@media (min-width: 900px) { .w-trans-photos { grid-template-columns: 1fr 1fr; gap: 16px; } .w-trans-bus { grid-template-columns: 1fr 1fr; gap: 18px 32px; } }
