@font-face { font-family: 'Pretendard'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/Pretendard-Regular.subset.woff2) format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/Pretendard-SemiBold.subset.woff2) format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/Pretendard-Bold.subset.woff2) format('woff2'); }
/* 레이아웃: 한 장짜리 긴 페이지.
   세이지 히어로(로고 원본과 같은 배경색) → 흰 정보띠 → 아이보리 진료 분야 → 흰 의료진
   → 아이보리 진료시간(하루 24시간 중 진료 구간을 비율 막대로 표시) → 흰 오시는 길 → 세이지 푸터.
   로고 이미지는 배경색이 #637464인 면 위에서만 사용한다. */
:root {
  --sage: #637464;
  --sage-deep: #35483B;
  --sage-light: #A6B2A4;
  --ivory: #F4F3EE;
  --white: #FFFFFF;
  --ink: #2B3A31;
  --mute: #5E6A61;
  --line: #D9DDD6;
  --track: #E4E8E1;
  --font: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gutter: 20px;
  --max: 1120px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--sage); z-index: 30; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.28; color: var(--sage-deep); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .notice :focus-visible { outline-color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* 개원 안내 띠 */
.notice { background: var(--sage-deep); color: var(--white); font-size: 14px; }
.notice .wrap { padding-block: 9px; text-align: center; }

/* 헤더 */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--sage); border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--sage-deep); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav a { font-size: 15px; font-weight: 600; color: var(--white); text-decoration: none; padding: 8px 2px; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.brand-logo { display: block; flex: none; }
.brand-logo img { height: 26px; width: auto; display: block; }

/* 히어로 */
.hero { background: var(--sage); color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; left: -260px; bottom: -500px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding-block: 64px 72px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: #E3E9E1; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(32px, 5.2vw, 54px); font-weight: 700; line-height: 1.2; }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: clamp(16px, 1.9vw, 18px); color: #F1F4F0; }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.btn-light { background: var(--white); color: var(--sage-deep); }
.btn-light:hover { background: var(--ivory); }
.btn-line { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-line:hover { background: rgba(255, 255, 255, 0.1); }
.btn-solid { background: var(--sage); color: var(--white); }
.btn-solid:hover { background: var(--sage-deep); }
.btn-outline { border-color: var(--sage); color: var(--sage-deep); background: var(--white); }
.btn-outline:hover { background: var(--ivory); }
.hero-logo { justify-self: center; width: min(100%, 400px); }

/* 정보띠 */
.glance { background: var(--white); border-bottom: 1px solid var(--line); }
.glance .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.glance-item { padding: 26px 20px; border-left: 1px solid var(--line); }
.glance-item:first-child { border-left: 0; padding-left: 0; }
.glance-item dt { font-size: 14px; font-weight: 700; color: var(--sage); }
.glance-item small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--mute); }
.glance-item dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; color: var(--sage-deep); font-variant-numeric: tabular-nums; line-height: 1.45; }
.glance dl { margin: 0; display: contents; }

/* 공통 섹션 */
.section { padding-block: 88px; }
.section-ivory { background: var(--ivory); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--sage); letter-spacing: 0.04em; margin-bottom: 12px; }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
.section h2.lede { font-size: clamp(24px, 3.4vw, 36px); font-weight: 500; line-height: 1.4; }
.section h2.lede strong { font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--mute); font-size: 16px; }
.tel { text-decoration: none; font-variant-numeric: tabular-nums; }
.tel:hover { text-decoration: underline; }

/* 진료 분야 */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards > li { display: flex; min-width: 0; }
.card { flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; text-decoration: none; color: inherit; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover, .card:focus-visible { background: #F3F7F2; border-color: var(--sage); box-shadow: 0 6px 18px rgba(53, 72, 59, 0.08); }
.ico { width: 54px; height: 54px; color: var(--sage); flex: none; }
.card h3 { margin-top: 8px; font-size: 21px; font-weight: 700; }
.card p { font-size: 15.5px; color: var(--mute); line-height: 1.7; }
.card .more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; color: var(--sage); }
.card .more::after { content: " →"; }
.disclaimer { margin-top: 28px; font-size: 14px; color: var(--mute); max-width: 52em; }

/* 진료시간 */
.hours { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.hours .section-head { margin-bottom: 0; }
.hours-note { margin-top: 24px; font-size: 14px; color: var(--mute); }
.timetable { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; min-width: 0; }
.tt-row { display: grid; grid-template-columns: 112px 1fr 128px; column-gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.tt-row:first-of-type { border-top: 0; }
.tt-axis { padding: 0 0 10px; border-top: 0; }
.tt-axis .scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.tt-label { font-weight: 700; color: var(--sage-deep); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.today-tag { font-size: 12px; font-weight: 700; color: var(--white); background: var(--sage); border-radius: 4px; padding: 1px 7px; line-height: 1.6; }
.tt-row:not(.is-today) .today-tag { display: none; }
.tt-time { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.track { position: relative; height: 14px; border-radius: 7px; background: var(--track); overflow: hidden; background-image: linear-gradient(to right, transparent calc(33.333% - 1px), rgba(255, 255, 255, 0.9) calc(33.333% - 1px), rgba(255, 255, 255, 0.9) 33.333%, transparent 33.333%, transparent calc(66.667% - 1px), rgba(255, 255, 255, 0.9) calc(66.667% - 1px), rgba(255, 255, 255, 0.9) 66.667%, transparent 66.667%); }
.track .fill { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--sage); }
.track .gap { position: absolute; top: 0; bottom: 0; background: var(--white); z-index: 1; }
.tt-row.is-today .track .fill { background: var(--sage-deep); }
.tt-extra { padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.tt-extra dt { font-weight: 700; color: var(--sage-deep); }
.tt-extra dd { margin: 0; color: var(--mute); text-align: right; }
.timetable dl { margin: 0; }
.todo { color: var(--mute); }

/* 오시는 길 */
.visit { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.visit .section-head { margin-bottom: 28px; }
.address { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--sage-deep); line-height: 1.4; }
.address small { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--mute); }
.visit .actions { margin-top: 26px; }
.facts { margin: 26px 0 0; }
.fact { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact dt { font-weight: 700; color: var(--sage-deep); white-space: nowrap; }
.fact dd { margin: 0; color: var(--ink); text-align: right; }
.fact dd.todo { color: var(--mute); }
.map { position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--ivory); border: 1px solid var(--line); }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; padding: 24px; }
.map-addr { font-size: 18px; font-weight: 700; color: var(--sage-deep); }
.map-sub { font-size: 14px; color: var(--mute); }
.parking { margin-top: 56px; }
.parking h3 { font-size: 22px; font-weight: 700; }
.parking-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.park { background: var(--ivory); border-radius: var(--radius); padding: 26px 28px; }
.park h4 { margin: 0; font-size: 18px; font-weight: 700; color: var(--sage-deep); }
.park p { margin-top: 10px; }
.park .park-note { font-size: 14px; color: var(--mute); }

/* 의료진 */
.doctor { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.doctor-photo { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--ivory); border: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--mute); font-size: 15px; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: var(--radius); }
.doctor-role { font-size: 14px; font-weight: 700; color: var(--sage); }
.doctor-name { margin-top: 6px; font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; }
.doctor-name.todo { color: var(--mute); }
.bio { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.bio-block h4 { margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--sage); font-size: 16px; font-weight: 700; color: var(--sage-deep); }
.bio-block ul { list-style: none; margin: 0; padding: 0; }
.bio-block li { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* 푸터 */
.site-footer { background: var(--sage); color: var(--white); }
.site-footer .wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; align-items: center; padding-block: 56px 48px; }
.footer-logo { width: min(100%, 240px); }
.footer-info { font-size: 15px; line-height: 1.8; color: #F1F4F0; }
.footer-info strong { font-size: 17px; color: var(--white); }
.footer-info p + p { margin-top: 6px; }
.legal { margin-top: 18px; font-size: 13px; color: #DDE5DB; line-height: 1.7; }

@media (max-width: 900px) {
  .section { padding-block: 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 56px; }
  .hero-logo { order: -1; width: 220px; justify-self: start; margin-left: -18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hours, .visit { grid-template-columns: 1fr; gap: 36px; }
  .section-head { margin-bottom: 32px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 20px; }
  .footer-logo { width: 190px; margin-left: -14px; }
  .glance .wrap { grid-template-columns: repeat(2, 1fr); }
  .glance-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .glance-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .parking-grid { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; gap: 28px; }
  .doctor-photo { max-width: 260px; }
  .map { min-height: 300px; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .glance .wrap { grid-template-columns: 1fr; }
  .glance-item, .glance-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .glance-item:first-child { border-top: 0; }
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
  .brand-name { font-size: 16px; }
  .site-header .wrap { gap: 10px; }
  .bio { grid-template-columns: 1fr; gap: 24px; }
  .parking { margin-top: 40px; }
  .timetable { padding: 20px 18px; }
  .tt-row { grid-template-columns: 1fr auto; row-gap: 10px; }
  .tt-label { grid-row: 1; grid-column: 1; }
  .tt-time { grid-row: 1; grid-column: 2; text-align: right; }
  .tt-row .track { grid-row: 2; grid-column: 1 / -1; }
  .tt-axis > span { display: none; }
  .tt-axis .scale { grid-row: 1; grid-column: 1 / -1; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 진료 과정 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: none; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; min-width: 0; }
.step-no { display: block; font-size: 14px; font-weight: 700; color: var(--sage); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 8px; font-size: 18px; font-weight: 700; }
.steps p { margin-top: 8px; font-size: 15px; color: var(--ink); }

/* 자주 묻는 질문 */
.faq-wrap { max-width: 860px; }
.faq-group { margin: 36px 0 8px; font-size: 18px; font-weight: 700; color: var(--sage); }
.faq-group:first-of-type { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-size: 17px; font-weight: 700; color: var(--sage-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--sage); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 20px; color: var(--ink); }
.faq .ans p + p { margin-top: 10px; }
.faq .ans ul { margin: 10px 0; padding-left: 20px; }
.faq .ans li { margin: 4px 0; }
.faq .ans a { color: var(--sage-deep); font-weight: 600; }
.faq .ans .todo { color: var(--mute); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } .nav { gap: 10px; } .nav a { font-size: 13.5px; } }

/* 상세 페이지 */
.detail { padding-block: 40px 72px; }
.detail .wrap { max-width: 860px; }
.crumb { font-size: 14px; color: var(--mute); }
.crumb a { color: var(--mute); }
.page-title { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.page-title h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 700; }
.page-title .ico { width: 52px; height: 52px; }
.page-lead { margin-top: 16px; font-size: 18px; color: var(--mute); max-width: 36em; }
.d-h { margin-top: 48px; margin-bottom: 18px; font-size: 22px; font-weight: 700; color: var(--sage-deep); }
.when { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.when li { background: var(--ivory); border-radius: 10px; padding: 14px 18px; }
.emergency { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--sage); border-radius: 10px; background: #F3F7F2; font-size: 15.5px; }
.detail .steps { grid-template-columns: repeat(5, 1fr); }
.cta { margin-top: 48px; padding: 28px; background: var(--ivory); border-radius: var(--radius); }
.cta p { font-weight: 700; color: var(--sage-deep); font-size: 18px; }
.cta .actions { margin-top: 16px; }
.detail .disclaimer { margin-top: 24px; }
.dlg { border: 0; padding: 0; width: min(920px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; background: var(--white); color: var(--ink); font-family: var(--font); line-height: 1.7; word-break: keep-all; }
.dlg::backdrop { background: rgba(43, 58, 49, 0.45); }
.dlg .detail { padding-top: 24px; }
.dlg-close { font: inherit; font-weight: 700; background: var(--ivory); border: 0; border-radius: 8px; padding: 8px 14px; color: var(--sage-deep); cursor: pointer; }
@media (max-width: 900px) { .detail .steps { grid-template-columns: 1fr 1fr; } .cards { gap: 16px; } }
@media (max-width: 620px) { .detail .steps { grid-template-columns: 1fr; } .page-title .ico { width: 42px; height: 42px; } .brand-logo img { height: 22px; } .card { padding: 26px 22px 22px; } }

.map-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.faq-cats { border-top: 2px solid var(--sage); }
.faq-cat { border-bottom: 1px solid var(--line); }
.faq-cat > summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 4px; font-size: 20px; font-weight: 700; color: var(--sage-deep); position: relative; }
.faq-cat > summary::-webkit-details-marker { display: none; }
.faq-cat > summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--sage); }
.faq-cat[open] > summary::after { content: "–"; }
.faq-cat > .faq { margin: 0 0 18px; padding: 0 4px; background: var(--ivory); border-radius: 10px; }
.faq-cat .faq details:first-child { border-top: 0; }
.faq-cat .faq details:last-child { border-bottom: 0; }
.faq-cat .faq summary { font-size: 16.5px; padding-left: 14px; }
.faq-cat .faq .ans { padding-left: 14px; padding-right: 14px; }
