/* ==========================================================
   365필요한의원 — 디자인 시스템
   로고 기준 브랜드 컬러: 그린 #01564D / 노랑 #F6BA17 / 흰색
   초록은 상단 바·모바일 하단 바·본문 중간의 강조 블록 하나·작은 포인트에만 쓰고,
   넓은 면(첫 화면, 페이지 상단, 예약 안내, 푸터)은 밝게 둡니다.
   ========================================================== */
:root {
  --yellow: #F6BA17;
  --yellow-hover: #FFC93A;
  --yellow-soft: #FFF3CC;
  --green: #01564D;
  --green-2: #0B6257;
  --green-deep: #003F38;
  --green-soft: #E6F0EC;
  --green-line: rgba(255, 255, 255, .14);
  --on-green: #D6E6E1;
  --on-green-muted: #9DC2B9;
  --ink: #14201E;
  --text: #1A2422;
  --muted: #56605D;
  --paper: #F7F6F1;
  --white: #FFFFFF;
  --line: #E3E5DF;
  --line-2: #D3D6CF;
  --ph: #E1E3DC;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 68px;
  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
svg { width: 1.15em; height: 1.15em; flex: none; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 880px; }
.br-pc { display: none; }
@media (min-width: 900px) { .br-pc { display: inline; } .br-m { display: none; } }

/* 자리표시자 — 실제 정보로 교체할 곳 */
.todo { background: rgba(246, 186, 23, .24); border-bottom: 1px dashed #A77A00; padding: 0 2px; border-radius: 2px; }
.split-green .todo, .site-header .todo, .mobile-bar .todo { background: rgba(246, 186, 23, .18); border-bottom-color: var(--yellow); }
.sample-note { margin: -16px 0 20px; font-size: .9rem; color: var(--muted); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-hover); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-2); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--green); color: var(--green); }
.text-link { font-weight: 600; text-decoration: none; color: var(--green); border-bottom: 2px solid var(--yellow); padding-bottom: 1px; display: inline-flex; align-items: center; gap: 4px; }
.text-link::after { content: "→"; }
.text-link:hover { background: var(--yellow-soft); }

/* ---------- 로고 ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 32px; width: auto; }
@media (min-width: 1000px) { .logo img { height: 36px; } }
.footer-brand .logo img { height: 34px; }

/* ---------- 헤더 (초록 바 — 여기만 넓게 초록) ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--green); color: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 12px; flex-wrap: wrap; }
.header-side { display: flex; align-items: center; gap: 8px; }
.header-phone { display: none; align-items: center; gap: 6px; color: var(--white); text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.nav-toggle { color: var(--white); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav-cta { display: none; }
@media (min-width: 480px) { .nav-cta { display: inline-flex; } }

.site-nav { display: none; }
.site-nav.is-open { display: flex; flex-direction: column; gap: 16px; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); color: var(--text); border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: 0 16px 24px rgba(1,50,44,.12); }
.nav-list > li > a { display: block; padding: 12px 0; font-weight: 600; text-decoration: none; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
.nav-list .sub { padding: 6px 0 8px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.nav-list .sub a { display: block; padding: 8px 0; text-decoration: none; color: var(--muted); }
.nav-list a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (min-width: 1000px) {
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav, .site-nav.is-open { display: flex; order: 1; flex: 1; justify-content: center; flex-direction: row; align-items: center; position: static; padding: 0; box-shadow: none; border: 0; background: none; color: inherit; max-height: none; overflow: visible; }
  .header-side { order: 2; }
  .nav-mobile-actions { display: none; }
  .nav-list { display: flex; gap: 4px; }
  .nav-list > li { position: relative; }
  .nav-list > li > a { border: 0; padding: 10px 12px; font-size: 1rem; border-radius: 8px; }
  .nav-list > li > a:hover { background: rgba(255,255,255,.1); }
  .nav-list > li.is-active > a { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
  .nav-list a[aria-current="page"] { color: var(--yellow); text-decoration: none; }
  .nav-list .sub { display: block; position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 32px rgba(1,50,44,.12); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
  .nav-list .has-sub:hover .sub, .nav-list .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .nav-list .sub a { padding: 10px 12px; border-radius: 8px; color: var(--text); }
  .nav-list .sub a:hover { background: var(--paper); }
  .nav-list .sub a[aria-current="page"] { color: var(--green); text-decoration: none; background: var(--green-soft); }
}

/* ---------- 사진 자리 ---------- */
.photo { width: 100%; max-width: 100%; border-radius: var(--radius); object-fit: cover; }
.ph { display: flex; align-items: flex-end; padding: 16px; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(1,50,44,.04) 14px 15px), var(--ph); color: var(--muted); }
.ph-label { font-size: .82rem; line-height: 1.45; }
.ph-label b { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #7E8A85; margin-bottom: 2px; }

/* ---------- 홈: 첫 화면 (밝은 바탕) ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 32px; padding-block: 44px 40px; align-items: center; }
.hero-title { font-size: clamp(2.5rem, 9vw, 4.8rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.12; margin-top: 6px; }
.hero-title em { font-style: normal; color: var(--green); background: linear-gradient(transparent 68%, var(--yellow) 68% 92%, transparent 92%); padding: 0 .04em; }
.hero-sub { margin-top: 22px; font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--text); background: var(--paper); transition: border-color .15s, color .15s, background .15s; }
.hero-tags a:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-visual { max-width: 460px; width: 100%; justify-self: center; }
@media (max-width: 899px) { .hero-visual { max-width: none; } .hero-photo { aspect-ratio: 16 / 10 !important; } .hero-actions .btn { flex: 1 1 180px; } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr 1fr; padding-block: 72px 64px; gap: 56px; } .hero-visual { justify-self: end; } }

.info-strip { background: var(--paper); border-top: 1px solid var(--line); font-size: .92rem; color: var(--text); }
.info-link { margin-left: auto; color: var(--green); font-weight: 600; text-decoration: none; }
.info-link::after { content: " →"; }

/* ---------- 섹션 공통 ---------- */
.sec { padding-block: 64px; }
.sec-white { background: var(--white); }
.sec-line { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sec { padding-block: 96px; } }
.sec-head { margin-bottom: 32px; max-width: 42em; }
.sec-head h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); font-weight: 700; }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-desc { margin-top: 12px; color: var(--muted); }
.sec-more { margin-top: 32px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--green); margin-bottom: 10px; }
.eyebrow-light { color: var(--yellow); }
.lede-p { font-size: 1.08rem; }

/* ---------- 진료 카드 ---------- */
.t-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .t-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .t-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.t-card > a { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.sec-white .t-card > a { background: var(--paper); }
.t-card > a:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(1,50,44,.08); }
.t-card .photo { border-radius: 0; }
.t-card-body { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name arrow" "copy arrow"; gap: 4px 10px; padding: 14px 14px 16px; flex: 1; align-content: start; }
.t-card-name { grid-area: name; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.03em; }
.t-card-copy { grid-area: copy; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.t-card-arrow { grid-area: arrow; align-self: end; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--green); transition: background .15s, border-color .15s, color .15s; }
.t-card > a:hover .t-card-arrow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.t-card-guide > a { border-style: dashed; }
@media (max-width: 699px) { .t-card-body { grid-template-columns: 1fr; grid-template-areas: "name" "copy" "arrow"; } .t-card-arrow { justify-self: end; margin-top: 6px; width: 28px; height: 28px; } }
@media (min-width: 700px) { .t-card-body { padding: 20px 20px 22px; } .t-card-name { font-size: 1.2rem; } .t-card-copy { font-size: .96rem; } }

/* ---------- 좌/우 강조 블록 (초록 + 흰색) ---------- */
.split-block { display: grid; }
@media (min-width: 900px) { .split-block { grid-template-columns: 1fr 1fr; } }
.split-green { background: var(--green); color: var(--white); }
.split-white { background: var(--white); }
.split-inner { padding: 56px var(--gutter); max-width: calc(var(--wrap) / 2); }
.split-green .split-inner { margin-left: auto; }
@media (min-width: 900px) { .split-inner { padding: 88px 48px; } .split-green .split-inner { padding-right: 56px; } .split-white .split-inner { padding-left: 56px; display: grid; gap: 16px; align-content: center; } }
.split-title { font-size: clamp(1.6rem, 4.6vw, 2.3rem); font-weight: 700; }
.num-list { margin-top: 28px; display: grid; gap: 14px; counter-reset: n; }
.num-list li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; font-size: 1.04rem; color: var(--on-green); }
.num-list li::before { content: counter(n); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .9rem; display: grid; place-items: center; margin-top: 1px; }
.split-caption { margin-top: 28px; padding: 16px 18px; background: rgba(255,255,255,.08); border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0; color: var(--white); font-size: .98rem; }
.split-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; }
.split-card + .split-card { margin-top: 12px; }
@media (min-width: 900px) { .split-card + .split-card { margin-top: 0; } }
.split-card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.split-card h3::before { content: ""; width: 10px; height: 10px; background: var(--yellow); border-radius: 3px; flex: none; }
.split-card p { color: var(--muted); font-size: .98rem; }

/* ---------- 의료진 ---------- */
.doctors { display: grid; gap: 24px; }
.doctor { display: grid; gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 20px; }
.sec-white .doctor { background: var(--paper); border-color: transparent; }
@media (min-width: 760px) { .doctor { grid-template-columns: minmax(220px, 300px) 1fr; gap: 40px; padding: 28px; align-items: center; } }
.doctor-role { font-size: .9rem; color: var(--muted); }
.doctor-name { font-size: 1.6rem; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags li { font-size: .82rem; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; }
.doctor-quote { margin: 18px 0 18px; padding: 0; font-size: 1.1rem; font-weight: 500; line-height: 1.65; }
.doctor-quote p::before { content: "“"; color: var(--green); font-weight: 700; margin-right: 2px; }
.doctor-quote p::after { content: "”"; color: var(--green); font-weight: 700; }
.doctor-career { display: grid; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: .96rem; }
.doctor-career li { padding-left: 14px; position: relative; }
.doctor-career li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1.5px; background: var(--muted); }

/* ---------- 진료 과정(순서) ---------- */
.steps { display: grid; gap: 12px; }
.step { position: relative; background: var(--paper); border-radius: var(--radius); padding: 20px 20px 20px 72px; }
.sec:not(.sec-white) .step { background: var(--white); border: 1px solid var(--line); }
.step-num { position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--yellow); font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.1rem; }
.step p { margin-top: 6px; color: var(--muted); font-size: .96rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .steps-6 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps-5 { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .step { padding: 22px; padding-top: 76px; }
  .step-num { top: 22px; left: 22px; }
  .steps-4 .step:not(:last-child)::after, .steps-5 .step:not(:last-child)::after { content: ""; position: absolute; top: 40px; left: 68px; right: -8px; height: 1.5px; background: repeating-linear-gradient(90deg, #B9C2BE 0 6px, transparent 6px 11px); }
}

/* ---------- 증상 목록 ---------- */
.symptoms { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .symptoms { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.symptoms li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--paper); border-radius: 12px; font-weight: 500; }
.sec:not(.sec-white) .symptoms li { background: var(--white); border: 1px solid var(--line); }
.symptoms svg { color: var(--green); margin-top: .2em; width: 1.2em; height: 1.2em; stroke-width: 2.2; }

/* ---------- 치료법 그리드 ---------- */
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .methods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .methods { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.methods li { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon name" "icon en"; gap: 0 14px; align-items: center; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.sec-white .methods li { background: var(--paper); border-color: transparent; }
.m-icon { grid-area: icon; width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.m-icon svg { width: 22px; height: 22px; }
.m-name { grid-area: name; font-weight: 700; }
.m-en { grid-area: en; font-size: .7rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; overflow-wrap: anywhere; line-height: 1.3; }

/* ---------- 자동차보험 안내 ---------- */
.zero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .zero-grid { grid-template-columns: 340px 1fr; gap: 56px; } }
.zero { background: var(--green); color: var(--white); border-radius: calc(var(--radius) + 6px); padding: 36px 28px; text-align: center; }
.zero-label { font-size: .95rem; color: var(--on-green); }
.zero-big { font-size: clamp(3.6rem, 12vw, 5.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; color: var(--yellow); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-size: .94rem; font-weight: 500; }
.gallery img { cursor: zoom-in; }

/* ---------- 건강 정보 ---------- */
.posts { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.posts::-webkit-scrollbar { height: 6px; }
.posts::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
@media (min-width: 1000px) { .posts { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 20px; } }
.posts-grid { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; }
@media (min-width: 700px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post { scroll-snap-align: start; }
.post > a { display: grid; gap: 8px; height: 100%; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s; }
.sec:not(.sec-white) .post > a { background: var(--white); }
.post > a:hover { border-color: var(--green); transform: translateY(-2px); }
.post time { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-title { font-weight: 700; font-size: 1.02rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-summary { font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { margin-top: auto; padding-top: 6px; font-size: .88rem; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; } .faq-grid .sec-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-list { border-top: 2px solid var(--green); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q::before { content: "Q"; color: var(--green); font-weight: 700; margin-right: 12px; }
.faq-icon { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: transform .2s, background .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq[open] .faq-icon { background: var(--yellow); border-color: var(--yellow); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 0 22px 28px; color: var(--muted); display: grid; gap: 10px; }

/* ---------- 하단 공통: 예약 → 진료시간 · 오시는 길 (밝은 바탕) ---------- */
.visit { background: var(--white); border-top: 1px solid var(--line); padding-block: 64px; }
@media (min-width: 900px) { .visit { padding-block: 96px; } }
.visit-cta { text-align: center; max-width: 40em; margin: 0 auto 44px; }
.visit-title { font-size: clamp(1.8rem, 5.4vw, 2.7rem); }
.visit-title .accent { color: var(--green); }
.visit-sub { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.visit-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.visit-actions .btn { flex: 1 1 200px; max-width: 280px; }
.visit-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.visit-card { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 24px; }
@media (min-width: 900px) { .visit-card { padding: 32px; } }
.visit-h { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin-bottom: 14px; }
.visit-h svg { color: var(--green); }
.visit-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.visit-addr { font-size: 1.12rem; font-weight: 600; margin-bottom: 12px; }
.hours { margin: 0; font-variant-numeric: tabular-nums; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours-row dt { font-weight: 500; flex: none; }
.hours-row dd { margin: 0; text-align: right; }
.hours-sub dt { color: var(--muted); }
.hours-row.is-today dt::after { content: "오늘"; margin-left: 8px; font-size: .74rem; font-weight: 700; background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.map-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.map-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px 0 8px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; justify-content: center; }
.map-btn b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; }
.map-naver { background: #03C75A; color: var(--white); }
.map-naver b { background: var(--white); color: #03C75A; }

/* ---------- 하위 페이지 상단 (밝은 바탕) ---------- */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 36px 48px; }
@media (min-width: 900px) { .page-hero { padding-block: 52px 72px; } }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.page-title { font-size: clamp(1.85rem, 6vw, 3rem); font-weight: 700; letter-spacing: -0.04em; }
.page-title .accent { color: var(--green); }
.page-lead { margin-top: 18px; font-size: 1.08rem; color: var(--muted); max-width: 36em; }

/* ---------- 진료 상세 기타 ---------- */
.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding: 14px 16px 14px 48px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.sec-white .check-list li { background: var(--paper); border-color: transparent; }
.check-list li::before { content: ""; position: absolute; left: 18px; top: 1.3em; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: translateY(-50%) rotate(-45deg); }
.prep { display: grid; gap: 12px; }
@media (min-width: 900px) { .prep { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.prep li { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.sec:not(.sec-white) .prep li { background: var(--white); }
.prep h3 { font-size: 1.12rem; margin-bottom: 8px; }
.prep p { color: var(--muted); }
.info-block + .info-block { margin-top: 44px; }
.info-block h3 { font-size: 1.3rem; margin-bottom: 14px; }
.info-block p + p { margin-top: 12px; }
.info-block > p { color: var(--muted); }
.equip-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .equip-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.spec { margin: 0; border-top: 2px solid var(--green); }
.spec > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; font-size: .94rem; }
.spec dd { margin: 0; color: var(--muted); }
.spec-sm { border-top: 0; }
.spec-sm > div { grid-template-columns: 5.5em 1fr; padding: 9px 0; }
@media (max-width: 480px) { .spec > div { grid-template-columns: 1fr; gap: 2px; } }
.fine { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.notes { display: grid; gap: 12px; }
@media (min-width: 760px) { .notes { grid-template-columns: 1fr 1fr; gap: 20px; } }
.note { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.sec-white .note { background: var(--paper); border-color: transparent; }
.note h3 { font-size: 1.12rem; }
.note p { color: var(--muted); }

/* ---------- 소개 ---------- */
.about-name-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .about-name-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.about-name-grid > div { border-top: 2px solid var(--green); padding-top: 20px; }
.about-name-grid p:not(.big-num):not(.big-word) { color: var(--muted); }
.big-num, .big-word { font-size: clamp(3rem, 10vw, 4.8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-bottom: 18px; color: var(--green); }
.big-word { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .16em; text-underline-offset: .1em; }

/* ---------- 오시는 길 ---------- */
.loc-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .loc-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.map-ph { aspect-ratio: 4 / 3; }
.hours-card { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 12px 24px 24px; margin-bottom: 24px; }

/* ---------- 비용표 · 문서 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.fee-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .96rem; }
.fee-table th, .fee-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table thead th { background: var(--green); color: var(--white); font-weight: 600; }
.fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.prose h2 { font-size: 1.2rem; margin-top: 36px; margin-bottom: 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

/* ---------- 푸터 (밝은 바탕) ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); padding-block: 44px; font-size: .9rem; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr 2fr; } }
.footer-slogan { margin-top: 12px; color: var(--green); font-weight: 600; }
.footer-info { display: grid; gap: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block: 10px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal, .footer-copy { font-size: .84rem; }

/* ---------- 모바일 하단 고정 바 (초록) ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.35fr 1fr; background: var(--green-deep); border-top: 1px solid var(--green-line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 58px; color: var(--white); text-decoration: none; font-weight: 600; font-size: .96rem; }
.mobile-bar a.is-main { background: var(--yellow); color: var(--ink); font-size: 1.02rem; }
body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1000px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- 사진 확대 ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); }
.lightbox::backdrop { background: rgba(0,40,35,.86); }
.lightbox img { border-radius: 10px; max-height: 84vh; }
.lightbox button { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.4rem; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 정보 띠 (진료시간 · 오시는 길) ---------- */
.info-grid { display: grid; gap: 20px; padding-block: 22px; }
@media (min-width: 760px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 26px; } }
.info-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); margin-bottom: 8px; font-size: 1rem; }
.info-h svg { width: 1.2em; height: 1.2em; }
.info-dl { margin: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.info-dl > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; }
.info-dl dt { font-weight: 600; }
.info-dl dd { margin: 0; color: var(--text); }
.info-addr { font-weight: 600; }
.info-sub { color: var(--muted); font-size: .94rem; margin-top: 2px; }
.info-strip .info-link { display: inline-block; margin-top: 8px; margin-left: 0; }
.hero-photo { object-fit: cover; }
@media (max-width: 899px) { .hero-photo { aspect-ratio: 1 / 1 !important; max-width: 420px; margin-inline: auto; } }
.zero-stack .zero { margin-bottom: 32px; }
.zero-stack .sec-head { margin-bottom: 16px; }
.notes:has(> .note:only-child) { grid-template-columns: 1fr; }

/* ---------- 첫 화면 사진 슬라이드 (페이드) ---------- */
.hero-slides { position: relative; margin-top: 22px; aspect-ratio: 2 / 1; max-width: 34em; border-radius: var(--radius); overflow: hidden; background: var(--ph); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-slides img.is-on { opacity: 1; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.slide-dots li { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .3s, transform .3s; }
.slide-dots li.is-on { background: var(--yellow); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: none; } }
.steps-vertical { grid-template-columns: 1fr !important; max-width: 760px; }
.steps-vertical .step { padding: 22px 22px 22px 76px !important; }
.steps-vertical .step-num { top: 20px !important; left: 22px !important; }
.steps-vertical .step::after { display: none; }
.sec + .visit { border-top: 0; }

/* ---------- 첫 화면: 화면 가득 배경 슬라이드 ---------- */
.hero-full { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; color: var(--white); border-bottom: 0; background: #2b2622; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #2b2622; }
.hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg img.is-on, .hero-bg video.is-on { opacity: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.42) 50%, rgba(0,0,0,.72) 100%); }
.hero-full-inner { position: relative; padding-block: 72px 88px; }
.hero-full .hero-title { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-full .hero-sub { text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-full .hero-title em { color: var(--yellow); background: none; padding: 0; }
.hero-full .hero-sub { color: rgba(255,255,255,.88); }
.hero-full .hero-tags a { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: var(--white); backdrop-filter: blur(4px); }
.hero-full .hero-tags a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.hero-full .slide-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1; }
.hero-full .slide-dots li { background: rgba(255,255,255,.45); }
.hero-full .slide-dots li.is-on { background: var(--yellow); }
.btn-line-light { border-color: rgba(255,255,255,.55); color: var(--white); background: rgba(255,255,255,.06); }
.btn-line-light:hover { background: var(--white); color: var(--green); border-color: var(--white); }
@media (max-width: 899px) {
  /* 휴대폰: 사진은 3:2 비율로 잘리지 않게 통째로, 글은 그 아래 어두운 띠에 */
  .hero-full { display: block; min-height: 0; }
  .hero-bg { position: relative; aspect-ratio: 3 / 2; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,.35) 100%); }
  .hero-full-inner { background: var(--white); color: var(--text); padding-block: 26px 30px; }
  .hero-full .hero-title { font-size: 2.2rem; color: var(--ink); text-shadow: none; }
  .hero-full .hero-title em { color: var(--green); background: linear-gradient(transparent 68%, var(--yellow) 68% 92%, transparent 92%); padding: 0 .04em; }
  .hero-full .eyebrow-light { color: var(--green); }
  .hero-full .hero-sub { color: var(--muted); }
  .hero-full .hero-actions { display: none; }
  .hero-full .hero-tags { margin-top: 16px; }
  .hero-full .hero-tags a { background: var(--paper); border-color: var(--line-2); color: var(--text); backdrop-filter: none; }
  .hero-full .hero-sub { margin-top: 10px; font-size: 1rem; text-shadow: none; }
  .hero-full .slide-dots { bottom: 12px; z-index: 1; }
}
}

/* 첫 화면 아래: 협진 이미지 띠 */
.team-band { background: var(--white); }
.team-grid { display: grid; gap: 28px; padding-block: 48px; align-items: center; }
@media (min-width: 900px) { .team-grid { grid-template-columns: 380px 1fr; gap: 56px; padding-block: 64px; } }
.team-photo { max-width: 380px; margin-inline: auto; }
.team-copy h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); margin-bottom: 14px; }
.team-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; max-width: 30em; }
.team-copy .hero-actions { margin-top: 22px; }
.team-band .info-strip { border-top: 1px solid var(--line); }
