/* ============================================================
 *  전문직 사무소 홈페이지 스타일
 *  업종별 색상은 아래 [업종 테마]에서 바꿀 수 있습니다.
 * ============================================================ */
:root {
  --accent: #14a08f;
  --accent-dark: #0d7f72;
  --accent-soft: #e6f6f3;
  --bg: #ffffff;
  --alt: #f5f8f8;
  --text: #1b2626;
  --soft: #627070;
  --line: #e2e9e8;
  --radius: 14px;
  --hd: 68px;
  --wrap: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 12px); -webkit-text-size-adjust: 100%; }
body { font-family: "Pretendard Variable", -apple-system, "Malgun Gothic", sans-serif; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased; padding-bottom: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--soft); }
.small { font-size: 13px; margin-top: 10px; }
.pre { white-space: pre-line; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: background .15s, transform .1s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--line { border: 1px solid var(--line); background: #fff; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--glass { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.28); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.link { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link svg { width: 16px; height: 16px; }
.chip { display: inline-block; padding: 3px 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; vertical-align: middle; }

/* ---------- 머리 ---------- */
.notice-bar { background: var(--text); color: #fff; font-size: 14px; font-weight: 600; text-align: center; padding: 9px 0; }
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 24px; height: var(--hd); }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo__text b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo__text small { font-size: 10px; letter-spacing: .12em; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gnb { display: flex; align-items: center; gap: 4px; }
.gnb a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: #3a4646; }
.gnb a:hover, .gnb a.is-active { color: var(--accent); }
.gnb a.is-active { background: var(--accent-soft); }
.gnb .gnb__cta { margin-left: 8px; background: var(--accent); color: #fff !important; padding: 9px 16px; }
.gnb .gnb__cta:hover { background: var(--accent-dark); }
.hd__tel { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); font-size: 17px; white-space: nowrap; }
.hd__menu { display: none; width: 44px; height: 44px; place-items: center; margin-right: -10px; }
.hd__menu svg { width: 24px; height: 24px; }

/* 오늘 진료 정보 */
.today { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -48px; background: #fff; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(20,40,40,.12); padding: 0; }
.today__item { display: flex; align-items: center; gap: 12px; padding: 22px 22px; min-width: 0; }
.today__item + .today__item { border-left: 1px solid var(--line); }
.today__item svg { width: 26px; height: 26px; color: var(--accent); }
.today__item b { display: block; font-size: 16px; }
.today__item small { display: block; color: var(--soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today__item > div { min-width: 0; }
a.today__item:hover b { color: var(--accent); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; background: #aab; box-shadow: 0 0 0 4px rgba(170,170,187,.2); }
.dot--on { background: #18b56a; box-shadow: 0 0 0 4px rgba(24,181,106,.2); animation: pulse 2s infinite; }
.dot--lunch, .dot--before { background: #f2a516; box-shadow: 0 0 0 4px rgba(242,165,22,.2); }
.dot--off { background: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.18); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(24,181,106,.08); } }

/* ---------- 섹션 ---------- */
.sec { padding: 88px 0; }
.sec--alt { background: var(--alt); }
.sec__en { font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--accent); }
.sec__title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 28px; }
.sec__more { margin-top: 28px; text-align: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two .sec__more { text-align: left; }
.ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 26px; flex: none; }
.ico--lg { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero__slide { transition: none; } }

.features { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features li { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.features b { display: block; margin-top: 16px; font-size: 18px; }
.features p { margin-top: 6px; color: var(--soft); font-size: 15px; }

.tx-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tx-grid a { display: flex; flex-direction: column; height: 100%; padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tx-grid a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,40,40,.08); border-color: var(--accent); }
.tx-grid b { margin-top: 16px; font-size: 19px; }
.tx-grid p { margin-top: 6px; color: var(--soft); font-size: 15px; flex: 1; }
.tx-grid .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: 14px; }
.tx-grid .more svg { width: 16px; height: 16px; }

/* 의료진 */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.docs--brief { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.doc { display: flex; gap: 22px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc__photo { width: 120px; height: 150px; border-radius: 12px; object-fit: cover; flex: none; }
.doc__photo--mono { display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent) 22%, #fff)); color: var(--accent); }
.doc__photo--mono span { font-size: 48px; font-weight: 800; }
.doc__title { font-size: 13px; font-weight: 700; color: var(--accent); }
.doc__name { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.doc__spec { color: var(--soft); font-size: 15px; }
.doc__career { list-style: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 14px; color: #3a4646; }
.doc__career li::before { content: "·"; color: var(--accent); font-weight: 800; margin-right: 6px; }
.docs--brief .doc { align-items: center; }
.docs--brief .doc__photo { width: 84px; height: 84px; border-radius: 50%; }
.docs--brief .doc__photo--mono span { font-size: 34px; }

/* 사진 줄 */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip button, .gal button { aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: var(--line); }
.strip img, .gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.strip button:hover img, .gal button:hover img { transform: scale(1.05); }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#galleryMore { margin-top: 20px; }

/* 공지 */
.nlist { list-style: none; border-top: 2px solid var(--text); }
.nlist a { display: flex; align-items: center; gap: 10px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.nlist a:hover .t { color: var(--accent); }
.nlist .t { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlist time { color: var(--soft); font-size: 14px; flex: none; }
.pin { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.post header { padding-bottom: 20px; border-bottom: 2px solid var(--text); }
.post header h2 { font-size: 24px; margin: 8px 0 4px; }
.post header time { color: var(--soft); font-size: 14px; }
.post__body { padding: 28px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.9; }

/* 진료시간 표 */
.hours { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); }
.hours th, .hours td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; }
.hours th { font-weight: 600; width: 40%; }
.hours td { font-weight: 700; font-variant-numeric: tabular-nums; }
.hours .is-off td { color: #e5484d; }
.hours .is-today { background: var(--accent-soft); }
.hours .is-lunch th, .hours .is-lunch td { color: var(--soft); font-weight: 500; }
.today-tag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.hours-notes { list-style: none; margin-top: 14px; display: grid; gap: 4px; color: var(--soft); font-size: 14px; }
.hours-notes li::before { content: "※ "; }
.status-line { display: flex; align-items: center; gap: 8px; margin: -14px 0 16px; }
.big-tel { display: inline-flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.big-tel svg { width: 30px; height: 30px; }

/* 하위 페이지 머리 */
.ph { padding: 64px 0 52px; background: linear-gradient(135deg, var(--accent-soft), #fff 70%); border-bottom: 1px solid var(--line); }
.ph__en { font-size: 12px; letter-spacing: .24em; color: var(--accent); font-weight: 800; }
.ph h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.ph p:not(.ph__en) { margin-top: 8px; color: var(--soft); }

/* 병원 소개 */
.greet__body { display: flex; gap: 40px; align-items: flex-start; }
.greet__body .doc__photo { width: 220px; height: 270px; }
.greet__body .doc__photo--mono span { font-size: 80px; }
.greet__text { font-size: 17px; line-height: 2; }
.greet__sign { margin-top: 24px; font-weight: 800; }
.values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.values li { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.values span { font-size: 28px; font-weight: 800; color: var(--accent); opacity: .5; }
.values b { display: block; font-size: 20px; margin-top: 4px; }
.values p { color: var(--soft); margin-top: 4px; }
.equip { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.equip li { padding: 24px; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--accent); }
.equip b { font-size: 17px; }
.equip p { color: var(--soft); font-size: 15px; margin-top: 4px; }

/* 진료 안내 */
.chips { position: sticky; top: var(--hd); z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.chips__in { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.chips__in::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; background: #fff; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.tx__head { display: flex; gap: 18px; align-items: center; margin-bottom: 28px; }
.tx__head .sec__title { margin: 0; }
.tx__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tx__box { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tx__box h3, .caution h3 { font-size: 17px; margin-bottom: 14px; }
.check { list-style: none; display: grid; gap: 8px; }
.check li { position: relative; padding-left: 28px; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.steps b { font-size: 16px; }
.steps span { color: var(--soft); font-size: 14px; }
.caution { margin-top: 20px; padding: 20px 24px; border-radius: var(--radius); background: #fff8eb; border: 1px solid #f6e3bd; }
.caution ul { margin-left: 18px; color: #6b5a33; font-size: 15px; display: grid; gap: 4px; }
.faq { margin-top: 20px; display: grid; gap: 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--accent); font-weight: 800; margin-right: 4px; }
.faq summary::after { content: "+"; color: var(--accent); margin-left: auto; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--soft); }
.table-wrap { overflow-x: auto; }
.fees { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); min-width: 480px; }
.fees th, .fees td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.fees th { background: var(--alt); font-size: 14px; }
.fees .num { text-align: right; font-weight: 700; white-space: nowrap; }

/* 오시는 길 */
.location__addr { font-size: 17px; font-weight: 600; }
.location__tel { display: none; }
.map { height: 400px; margin-top: 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--line); }
.map iframe, .map img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.navi { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: #fff; }
.navi a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 52px; font-weight: 600; font-size: 15px; }
.navi a + a { border-left: 1px solid var(--line); }
.navi a:hover { background: var(--alt); }
.transport { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.transport div { padding: 20px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.transport dt { font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.transport dd { white-space: pre-line; font-size: 15px; }

/* 예약 · 상담 */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 48px; }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.way:hover { border-color: var(--accent); }
.way svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.way b { font-size: 17px; }
.way small { color: var(--soft); }
.cform { display: grid; gap: 18px; margin-top: 24px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.cfield { border: 0; min-width: 0; }
.cfield > label, .cfield > legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.cfield em { color: #e5484d; font-style: normal; }
.cfield input:not([type=radio]), .cfield select, .cfield textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.cfield textarea { height: auto; padding: 12px 14px; resize: vertical; }
.cfield input:focus, .cfield select:focus, .cfield textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; }
.seg label { padding: 13px; text-align: center; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.seg input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.consent { padding: 16px 18px; background: var(--alt); border-radius: 12px; font-size: 14px; }
.consent label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); }
.consent p { margin: 6px 0 0 26px; color: var(--soft); font-size: 13px; }
.consent a { color: var(--accent); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.cmsg { min-height: 1em; color: #e5484d; font-weight: 600; font-size: 14px; }
.done { margin-top: 24px; padding: 40px; text-align: center; border-radius: var(--radius); border: 1px solid var(--line); }
.done__icon { font-size: 42px; }
.done h3 { font-size: 21px; margin: 6px 0; }
.done p { color: var(--soft); }

.policy h2 { font-size: 18px; margin: 28px 0 8px; }
.policy p, .policy li { color: #3a4646; line-height: 1.8; }
.policy ul { margin-left: 20px; }

/* ---------- 꼬리 ---------- */
.ft { background: #1b2424; color: #c2cccc; padding: 48px 0 56px; font-size: 14px; }
.ft__in { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.ft__name { font-size: 20px; font-weight: 800; color: #fff; }
.ft__status { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ft__info { display: grid; gap: 4px; }
.ft__info a { color: #fff; }
.ft__sns, .ft__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.ft__copy { margin-top: 10px; color: #7d8a8a; }

/* ---------- 빠른 메뉴 (모바일 하단) ---------- */
.quick { display: none; }

/* ---------- 라이트박스 · 모달 · 토스트 · 데모 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,12,.95); display: flex; align-items: center; justify-content: center; }
.lightbox__track { display: flex; width: 100%; height: 100%; transition: transform .35s ease; }
.lightbox__track figure { flex: 0 0 100%; display: grid; place-items: center; padding: 56px 12px; }
.lightbox__track img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 10px; right: 14px; z-index: 2; width: 44px; height: 44px; color: #fff; font-size: 34px; }
.lightbox__nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 64px; margin-top: -32px; color: #fff; font-size: 42px; opacity: .75; }
.lightbox__prev { left: 6px; } .lightbox__next { right: 6px; }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; color: #fff; text-align: center; font-size: 14px; opacity: .8; }
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal__sheet { position: relative; width: min(480px, 92vw); max-height: 86vh; overflow: auto; padding: 32px 24px; background: #fff; border-radius: 16px; }
.modal__close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; font-size: 28px; color: var(--soft); }
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 120; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; background: rgba(20,30,30,.92); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.demo-bar { position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(20,20,20,.84); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.demo-bar button, .demo-bar a { padding: 7px 13px; border-radius: 999px; color: #fff; font-size: 13px; white-space: nowrap; }
.demo-bar button.is-active { background: #fff; color: #111; font-weight: 700; }
.demo-bar a { opacity: .8; border-left: 1px solid rgba(255,255,255,.2); border-radius: 0 999px 999px 0; }

/* ============================================================
 *  반응형
 * ============================================================ */
@media (max-width: 1080px) {
  .hd__tel span { display: none; }
  .gnb a { padding: 8px 9px; font-size: 14px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --hd: 60px; }
  body { padding-bottom: 64px; }
  .hd__menu { display: grid; }
  .hd__tel { display: none; }
  .gnb { position: fixed; top: var(--hd); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; overflow-y: auto; }
  .menu-open .gnb { transform: none; visibility: visible; transition: transform .25s ease; }
  .menu-open { overflow: hidden; }
  .gnb a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .gnb a.is-active { background: none; }
  .gnb .gnb__cta { margin: 20px 0 0; text-align: center; border-radius: 12px; border: 0; }
  .today { grid-template-columns: 1fr 1fr; margin-left: 16px; margin-right: 16px; }
  .today__item { padding: 16px; }
  .today__item:nth-child(3) { border-left: 0; }
  .today__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec { padding: 64px 0; }
  .two, .tx__cols, .ft__in { grid-template-columns: 1fr; gap: 40px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: 1fr 1fr; gap: 8px; }
  .greet__body { flex-direction: column; gap: 24px; }
  .greet__body .doc__photo { width: 160px; height: 200px; }
  .cgrid { grid-template-columns: 1fr; }
  .map { height: 300px; }
  .quick { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 64px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.05); padding-bottom: env(safe-area-inset-bottom); }
  .quick a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: #3a4646; }
  .quick a svg { width: 22px; height: 22px; }
  .quick .quick__main { background: var(--accent); color: #fff; }
  .demo-bar { bottom: 76px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .doc { flex-direction: column; }
  .doc__photo { width: 100%; height: 220px; }
  .docs--brief .doc { flex-direction: row; }
  .docs { grid-template-columns: 1fr; }
  .logo__text small { display: none; }
  .big-tel { font-size: 26px; }
}


/* 인물 사진: 얼굴이 위쪽에 오도록 */
.doc__photo { object-position: center 20%; }
.demo-note { margin-top: 16px; font-size: 12px; color: var(--soft); }

/* ============================================================
 *  사진이 들어간 진료 안내 · 메인 블록
 * ============================================================ */
/* 메인 섹션 배경 번갈아 (흰색 / 연한 색) */
body[data-page="home"] #main > section.sec:nth-of-type(odd) { background: #fff; }
body[data-page="home"] #main > section.sec:nth-of-type(even) { background: var(--alt); }

/* 메인: 병원 소개 요약 */
.intro__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.intro__photo { aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(20,40,40,.12); }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }
.intro__text .sec__title { margin-bottom: 16px; line-height: 1.45; font-size: clamp(21px, 2.3vw, 27px); }
.intro__desc { color: var(--soft); font-size: 16px; line-height: 1.8; }
.intro__values { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; }
.intro__values li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); }
.intro__values b { color: var(--accent); flex: none; min-width: 4em; }
.intro__values span { font-size: 15px; }

/* 메인: 사진 있는 진료 과목 카드 */
.tx-grid a.has-photo { padding: 0; overflow: hidden; }
.tx-grid__img { position: relative; display: block; aspect-ratio: 16/10; background: var(--line); }
.tx-grid__clip { position: absolute; inset: 0; overflow: hidden; }
.tx-grid__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tx-grid a:hover .tx-grid__img img { transform: scale(1.05); }
.tx-grid__img .ico { position: absolute; z-index: 1; left: 16px; bottom: -22px; width: 48px; height: 48px; font-size: 24px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.tx-grid__body { display: flex; flex-direction: column; flex: 1; }
.tx-grid a.has-photo .tx-grid__body { padding: 32px 22px 22px; }
.tx-grid a.has-photo b { margin-top: 0; }

/* 진료 안내: 사진 + 설명 */
.tx__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 24px; }
.tx__intro.is-rev .tx__photo { order: 2; }
.tx__photo { aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(20,40,40,.1); }
.tx__photo img { width: 100%; height: 100%; object-fit: cover; }
.tx__text .tx__head { margin-bottom: 22px; }
.tx__for { padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.tx__for h3 { font-size: 16px; margin-bottom: 12px; }
.tx__box--wide { margin-top: 4px; }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.steps--row li { grid-template-columns: 1fr; row-gap: 6px; }
.steps--row li::before { grid-row: auto; }

@media (max-width: 860px) {
  .intro__in, .tx__intro { grid-template-columns: 1fr; gap: 24px; }
  .tx__intro.is-rev .tx__photo { order: 0; }
  .steps--row { grid-template-columns: 1fr; }
  .steps--row li { grid-template-columns: 32px 1fr; column-gap: 12px; }
  .steps--row li::before { grid-row: span 2; }
}

/* ============================================================
 *  [업종 테마]
 * ============================================================ */
[data-type="tax"] { --accent: #1f5f8b; --accent-dark: #174a6d; --accent-soft: #e8f0f6; --alt: #f5f7f9; --text: #17212b; --soft: #5d6a76; --line: #e1e6eb; --gold: #c9a45c; }
[data-type="law"] { --accent: #1d2b4a; --accent-dark: #121c33; --accent-soft: #ebedf2; --alt: #f6f5f1; --text: #191c24; --soft: #60646f; --line: #e4e2dc; --gold: #b08d57; }
[data-type="labor"] { --accent: #2c7a5b; --accent-dark: #205d45; --accent-soft: #e7f3ed; --alt: #f5f8f6; --text: #18241f; --soft: #5c6b64; --line: #e0e8e3; --gold: #d2a24c; }
[data-type="judicial"] { --accent: #6b2e3e; --accent-dark: #52222f; --accent-soft: #f5ebee; --alt: #f8f6f4; --text: #221a1d; --soft: #6c6164; --line: #ebe3e4; --gold: #b8955a; }
[data-type] .ft { background: var(--text); }

/* ============================================================
 *  전문직 사무소 전용
 * ============================================================ */
:root { --radius: 6px; --serif: "Noto Serif KR", "Nanum Myeongjo", serif; }
.btn { border-radius: 4px; }
.logo__mark { border-radius: 4px; font-family: var(--serif); font-weight: 700; }
.hero__title, .sec__title, .ph h1, .greet .sec__title, .cta h2, .stat b, .ex__name, .post header h2, .pc__title { font-family: var(--serif); letter-spacing: -.01em; }
.sec__title { font-weight: 700; }
.sec__en { color: var(--gold); letter-spacing: .24em; }
.ph { background: var(--accent); color: #fff; border-bottom: 0; }
.ph__en { color: var(--gold); }
.ph p:not(.ph__en) { color: rgba(255,255,255,.8); }
.center { text-align: center; }
.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: #f1f1f1; }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn svg { width: 18px; height: 18px; }

/* 메인 비주얼: 글 + 사진 */
.hero { background: linear-gradient(180deg, var(--alt), #fff); padding: 56px 0 64px; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__en { font-size: 12px; letter-spacing: .3em; color: var(--gold); font-weight: 700; }
.hero__title { margin-top: 14px; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.3; font-weight: 700; color: var(--text); }
.hero__intro { margin-top: 18px; font-size: clamp(16px, 1.8vw, 18px); color: var(--soft); line-height: 1.75; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__status { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--soft); font-size: 14px; }
.hero__photo { position: relative; aspect-ratio: 4/4.4; border-radius: 4px; overflow: hidden; box-shadow: 24px 24px 0 var(--accent-soft); background: var(--line); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__badge { position: absolute; left: 18px; bottom: 18px; padding: 9px 16px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; border-left: 3px solid var(--gold); }

/* 숫자 */
.stats { background: var(--accent); color: #fff; }
.stats__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 30px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); }
.stat b { display: block; font-size: 40px; font-weight: 700; line-height: 1.1; }
.stat b small { font-size: 17px; margin-left: 3px; color: var(--gold); }
.stat span { display: block; margin-top: 6px; font-size: 14px; opacity: .8; }

/* 업무 분야 카드 */
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-grid a { display: flex; flex-direction: column; height: 100%; padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .2s; }
.svc-grid a:hover { background: var(--accent-soft); }
.svc-grid .ico { background: none; border: 1px solid var(--line); border-radius: 4px; }
.svc-grid b { margin-top: 18px; font-size: 19px; }
.svc-grid p { margin-top: 6px; color: var(--soft); font-size: 15px; flex: 1; }
.svc-grid .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: 14px; }
.svc-grid .more svg { width: 16px; height: 16px; }

/* 신고 일정 */
.due { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.due li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.due li.is-soon { border-top-color: #d9534f; }
.due__date { grid-row: span 2; text-align: center; min-width: 62px; padding-right: 16px; border-right: 1px solid var(--line); }
.due__date b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--accent); }
.due__date small { color: var(--soft); font-size: 12px; }
.due__body b { display: block; font-size: 16px; line-height: 1.4; }
.due__body small { display: block; color: var(--soft); font-size: 13px; margin-top: 2px; }
.due__dd { justify-self: start; padding: 2px 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; border-radius: 3px; }
.is-soon .due__dd { background: #fdecec; color: #c63e3a; }

/* 구성원 */
.exs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.ex { background: #fff; border: 1px solid var(--line); }
.ex__photo { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; object-position: center 22%; display: block; background: var(--alt); }
.ex__photo--mono { display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent) 20%, #fff)); color: var(--accent); }
.ex__photo--mono span { font-family: var(--serif); font-size: 72px; font-weight: 700; }
.ex__body { padding: 22px 24px 26px; }
.ex__title { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.ex__name { font-size: 25px; font-weight: 700; margin-top: 2px; }
.ex__areas { margin-top: 4px; color: var(--soft); font-size: 15px; }
.ex__intro { margin-top: 14px; padding: 14px 16px; background: var(--alt); font-size: 15px; line-height: 1.7; color: #39424a; }
.ex__career { list-style: none; margin-top: 14px; display: grid; gap: 4px; font-size: 14px; color: #3a4450; }
.ex__career li::before { content: "—"; color: var(--gold); margin-right: 8px; }
.exs--full { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.greet__body .ex__photo { width: 220px; height: 280px; aspect-ratio: auto; flex: none; }
.greet__body .ex__photo--mono span { font-size: 80px; }

/* 연혁 */
.hist { list-style: none; border-left: 2px solid var(--line); margin-left: 8px; display: grid; gap: 22px; }
.hist li { position: relative; padding-left: 28px; display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; }
.hist li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.hist b { font-family: var(--serif); font-size: 20px; color: var(--accent); }

/* 업무 분야 상세 */
.svc__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.svc__in.no-photo { grid-template-columns: 1fr; max-width: 820px; }
.svc__photo { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; box-shadow: 16px 16px 0 var(--accent-soft); }
.svc__photo img { width: 100%; height: 100%; object-fit: cover; }
.svc__head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.svc__head .sec__title { margin: 0; }
.svc__head .ico { background: none; border: 1px solid var(--line); border-radius: 4px; }
.svc .check { margin-bottom: 20px; }
.svc .steps--row { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.svc__go { margin-top: 22px; }
.docs-box { padding: 18px 20px; background: #fffbf2; border: 1px solid #efe2c4; border-radius: 4px; }
.docs-box h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; color: #6b5424; }
.docs-box h3 svg { color: var(--gold); }
.docs-box ul { margin-left: 18px; display: grid; gap: 3px; font-size: 15px; color: #5a4a2a; }
.docs-box--live { margin-top: -4px; }
.done .docs-box { text-align: left; margin-top: 22px; }

/* 사례 · 칼럼 */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.tabs button { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; background: #fff; }
.tabs button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.posts { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.pc { display: flex; flex-direction: column; height: 100%; padding: 26px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.pc:hover { border-color: var(--accent); box-shadow: 0 12px 28px rgba(20,30,40,.07); }
.pc__cat { align-self: flex-start; padding: 3px 10px; font-size: 12px; font-weight: 800; border-radius: 3px; background: var(--accent-soft); color: var(--accent); }
.pc__cat--case { background: var(--accent); color: #fff; }
.pc__cat--news { background: #f1f1ee; color: #6a6a62; }
.pc__title { margin-top: 14px; font-size: 19px; line-height: 1.45; font-weight: 700; }
.pc__sum { margin-top: 8px; color: var(--soft); font-size: 15px; flex: 1; }
.pc__meta { margin-top: 16px; font-size: 13px; color: var(--soft); }
.post header { border-bottom-color: var(--accent); }
.post header .pc__cat { display: inline-block; }
.disclaim { margin-top: 18px; padding: 14px 18px; background: var(--alt); color: var(--soft); font-size: 14px; }
.post__cta { margin-top: 28px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--accent-soft); flex-wrap: wrap; }
.post__cta p { font-weight: 700; font-size: 17px; }

/* 상담 신청 */
.cfield__label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; background: #fff; transition: background .15s, border-color .15s; }
.pick input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.big-mail a { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: var(--soft); }

/* 하단 상담 띠 */
.cta { background: var(--accent); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; }
.cta h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; }
.cta p { margin-top: 6px; opacity: .85; }
.cta .btn-row { margin-top: 0; }

@media (max-width: 860px) {
  .hero { padding: 28px 0 44px; }
  .hero__in { grid-template-columns: 1fr; gap: 30px; }
  .hero__photo { order: -1; aspect-ratio: 16/11; box-shadow: none; }
  .stat { padding: 22px 10px; }
  .stat b { font-size: 30px; }
  .svc__in { grid-template-columns: 1fr; gap: 26px; }
  .svc__photo { box-shadow: none; }
  .greet__body .ex__photo { width: 160px; height: 200px; }
  .seg--3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats__in { grid-template-columns: repeat(3, 1fr); }
  .stat b { font-size: 26px; }
  .stat b small { font-size: 14px; }
  .stat span { font-size: 12px; }
  .hist li { grid-template-columns: 1fr; gap: 2px; }
  .seg--3 label { padding: 13px 4px; font-size: 14px; }
  .cta .btn-row .btn { flex: 1; }
}

/* 판매 페이지 스크린샷 (?shot=1) */
.is-shot .reveal { opacity: 1; transform: none; transition: none; }
