/* =========================================================
   치과소개 (about.php)
   ========================================================= */
body { background: #f5f6f8; color: #1f2937; }   /* 시안 0910 — 밝은 버전 기본 배경 */

.page { display: block; }

/* ---- 페이지 배너 ---- */
.page-hero {
    position: relative;
    min-height: 260px;
    display: flex; align-items: center;
    overflow: hidden; color: #fff;
}
.page-hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background: #263d5e url('/assets/images/hero.webp') center/cover no-repeat;
}
.page-hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6,16,38,.72) 0%, rgba(6,16,38,.45) 60%, rgba(6,16,38,.3) 100%);
}
.page-hero__inner {
    position: relative;
    width: 100%; max-width: 1100px; margin: 0 auto;
    padding: calc(var(--header-h) + 20px) 24px 28px;
}
.page-hero__title { margin: 0 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.page-hero__subtitle { margin: 0; font-size: 16px; font-weight: 400; color: rgba(255,255,255,.8); }

/* ---- 페이지 네비(breadcrumb) ---- */
.page-nav { border-bottom: 1px solid #e8ebf0; background: #fff; }
.page-nav__inner {
    max-width: 1100px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; color: #6b7280;
}
.page-nav__inner a { color: #6b7280; }
.page-nav__inner strong { color: #1f2937; font-weight: 700; }
.page-nav__sep { color: #c2c8d0; }

/* ---- 섹션 공통 ---- */
.sec { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.sec__head { margin-bottom: 32px; }
.sec__eyebrow {
    display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
    color: #9aa5b1; text-transform: uppercase; margin-bottom: 6px;
}
.sec__title { margin: 0; font-size: 26px; font-weight: 700; color: #111827; }
.sec__title::before {
    content: ""; display: inline-block; width: 7px; height: 7px;
    background: var(--brand); border-radius: 50%; vertical-align: middle;
    margin-right: 8px; transform: translateY(-3px);
}

/* 이미지 자리표시자 */
.greet__photo, .tour__main, .tour__thumb {
    background: #e9edf2; color: #97a2af;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; border-radius: 8px;
}

/* ---- 대표원장 인사말 ---- */
.greet { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.greet__photo {
    width: 100%; align-self: start; overflow: hidden;
    background: linear-gradient(180deg, #eef2f7, #fbfcfd);
}
.greet__photo img { width: 100%; height: auto; display: block; }
.greet__lead-sm { margin: 0 0 10px; color: #8b96a3; font-size: 16px; }
.greet__lead { margin: 0 0 24px; font-size: 28px; font-weight: 700; color: #111827; line-height: 1.4; }
.greet__lead strong { color: var(--brand); }
.greet__text { margin: 0 0 28px; font-size: 15.5px; line-height: 1.9; color: #4b5563; }
.greet__sign { margin: 0; font-size: 16px; font-weight: 700; color: #1f2937; }
.greet__sign strong { font-size: 19px; }

/* ---- 병원내부 ---- */
/* 대표 1장(2×2) + 썸네일 4장 — 모든 셀이 같은 비율의 균일 그리드 */
.tour { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 14px; aspect-ratio: 8 / 3; }
.tour__main { grid-column: span 2; grid-row: span 2; }
.tour__main, .tour__thumb { min-height: 0; overflow: hidden; }
.tour__main img, .tour__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- 운영시간 ---- */
.hours-table { overflow-x: auto; }
.hours-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.hours-table th, .hours-table td {
    border: 1px solid #e5e8ec; padding: 16px 8px; text-align: center; font-size: 15px;
}
.hours-table thead th { background: #f1f2f2; color: #374151; font-weight: 700; }
.hours-table tbody th { background: #fafbfc; color: #374151; font-weight: 600; white-space: nowrap; }
.hours-table tbody td { color: #4b5563; }
.hours-table td.off { color: #b0b8c1; }
/* 오늘 요일 열 강조 (살짝 파란 포커스) */
.hours-table thead th.is-today { background: #f7ece7; color: #c1907e; }
.hours-table tbody td.is-today { background: #eef4ff; color: #c1907e; font-weight: 700; }
.hours-table tbody td.is-today.off { color: #c9a89c; font-weight: 600; }

.hours-summary li.is-today { background: #eef4ff; }
.hours-summary li.is-today .hours-summary__k { color: #c1907e; }

.hours-today-tag {
    display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px;
    background: #eef4ff; color: #c1907e; font-size: 12.5px; font-weight: 700;
}

.hours-summary { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid #eceff3; }
.hours-summary li {
    display: flex; align-items: center; gap: 20px;
    padding: 16px 4px; border-bottom: 1px solid #eceff3;
}
.hours-summary__k { width: 140px; flex-shrink: 0; color: #6b7280; font-weight: 600; font-size: 15px; }
.hours-summary__v { color: #1f2937; font-weight: 600; font-size: 15px; }
.hours-note { margin: 18px 0 0; color: #8b96a3; font-size: 14px; line-height: 1.7; }

/* ---- 오시는 길 ---- */
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.directions__map iframe {
    width: 100%; height: 320px; border: 0; border-radius: 10px; display: block;
}
.directions__addr {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 14px; font-size: 15px; color: #374151;
}
.directions__copy {
    flex-shrink: 0; padding: 7px 14px; border: 1px solid #d1d6db; border-radius: 8px;
    background: #fff; color: #4b5563; font-size: 13.5px; cursor: pointer;
}
.directions__copy:hover { background: #f1f2f2; }

.dir-item { padding: 22px 0; border-bottom: 1px solid #eceff3; }
.dir-item:first-child { padding-top: 0; }
.dir-item__title { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: #111827; }
.dir-item p { margin: 0 0 8px; font-size: 15px; color: #4b5563; line-height: 1.6; }
.dir-item p:last-child { margin-bottom: 0; }
.dir-line { color: var(--brand); }
.dir-tag {
    display: inline-block; min-width: 48px; text-align: center;
    padding: 3px 8px; margin-right: 8px; border-radius: 5px;
    font-size: 12.5px; font-weight: 700; color: #fff;
}
.dir-tag--green { background: #2db400; }
.dir-tag--blue { background: #c1907e; }
.dir-tag--red { background: #e0453a; }
.dir-tag--gray { background: #8b96a3; }
.dir-tag--sky { background: #00a2c7; }

/* ---- 진료철학 — 풀스크린 시네마틱 (스크롤 진입 시 줌 + 텍스트 등장) ---- */
.philo { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #101c2c; display: flex; align-items: center; }
.philo__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.14); transition: transform 2.4s cubic-bezier(.2, .6, .2, 1); will-change: transform; }
.philo.is-in .philo__bg { transform: scale(1); }
.philo__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,40,.62) 0%, rgba(8,18,40,.42) 50%, rgba(8,18,40,.72) 100%); }
.philo__inner { position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; color: #fff; text-align: center; }
.philo__eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #d6ab9c; margin-bottom: 22px; opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.philo__q { margin: 0 0 22px; font-size: clamp(26px, 4.4vw, 50px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; text-shadow: 0 2px 40px rgba(0,0,0,.3); opacity: 0; transform: translateY(24px); transition: opacity .9s ease .15s, transform .9s ease .15s; }
.philo__d { margin: 0; font-size: clamp(15px, 1.8vw, 19px); line-height: 1.8; color: rgba(255,255,255,.88); opacity: 0; transform: translateY(24px); transition: opacity .9s ease .35s, transform .9s ease .35s; }
.philo.is-in .philo__eyebrow, .philo.is-in .philo__q, .philo.is-in .philo__d { opacity: 1; transform: none; }
@media (max-width: 640px) { .philo { height: 86vh; min-height: 460px; } }
@media (prefers-reduced-motion: reduce) {
    .philo__bg { transform: scale(1); transition: none; }
    .philo__eyebrow, .philo__q, .philo__d { opacity: 1; transform: none; transition: none; }
}

/* ---- 진료철학 statement (구) ---- */
.sec--philosophy { padding-bottom: 24px; }
.about-statement { text-align: center; padding: 8px 0; }
.about-statement .sec__eyebrow { margin-bottom: 14px; }
.about-statement__q {
    margin: 0 0 14px; font-size: clamp(22px, 3vw, 30px); font-weight: 700;
    color: #111827; line-height: 1.45; letter-spacing: -.01em;
}
.about-statement__d { margin: 0; font-size: 16px; color: #6b7280; line-height: 1.7; }

/* ---- 본문 단락 블록 ---- */
.about-prose { max-width: 900px; }
.about-prose__sub { margin: 0 0 14px; font-size: 19px; font-weight: 700; color: var(--brand); }
.about-prose p { margin: 0 0 12px; font-size: 16px; line-height: 1.85; color: #4b5563; }
.about-prose p:last-child { margin-bottom: 0; }

/* ---- 진료 원칙 카드 ---- */
.principle-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px;
}
.principle-card {
    padding: 30px 28px; border: 1px solid #e8ebf0; border-radius: 14px;
    background: #fafbfc;
}
.principle-card__no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 18px; font-weight: 700;
}
.principle-card__t { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #111827; line-height: 1.4; }
.principle-card__t span { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: #8b96a3; }
.principle-card__d { margin: 0; font-size: 14.5px; line-height: 1.75; color: #6b7280; }

/* ---- 사이트 푸터 ---- */
/* 전역 푸터 스타일은 page.css 가 담당한다.
   여기서 같은 특정도로 다시 선언하면 뒤에 로드되는 about.css 가 이겨
   푸터가 밝은 회색 + 흰 글씨로 깨지므로 규칙을 두지 않는다. (260904) */

/* ---- 반응형 ---- */
@media (max-width: 900px) {
    .greet { grid-template-columns: 1fr; gap: 28px; }
    .greet__photo { max-width: 280px; }
    .directions { grid-template-columns: 1fr; gap: 28px; }
    .principle-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
    .page-hero__title { font-size: 22px; }
    .page-hero__subtitle { font-size: 14px; }
    .sec { padding: 48px 18px; }
    .sec__title { font-size: 22px; }
    .greet__lead { font-size: 23px; }
    /* 모바일: 대표 사진 전체폭 + 썸네일 2×2, 모두 동일 비율 */
    .tour { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; aspect-ratio: auto; }
    .tour__main { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
    .tour__thumb { aspect-ratio: 4 / 3; }
    .hours-summary li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hours-summary__k { width: auto; }
    .site-footer-b__top { flex-direction: column; align-items: flex-start; }
}

/* 진료원칙 카드 상단 사진 (기획안 2·3·4번 사진) */
.principle-card { overflow: hidden; }
.principle-card__img {
    width: calc(100% + 2px); margin: -1px -1px 20px; display: block;
    aspect-ratio: 16 / 10; object-fit: cover;
}

/* 타이포 조임 (detail.css 와 동일 기조) */
.about-prose p { letter-spacing: -0.05em; line-height: 1.7; }
.principle-card__t { letter-spacing: -0.05em; line-height: 1.35; }
.principle-card__d { letter-spacing: -0.05em; line-height: 1.65; }
.philo__q { letter-spacing: -0.05em; line-height: 1.3; }
.philo__d { letter-spacing: -0.04em; line-height: 1.6; }
.hours-table th, .hours-table td { letter-spacing: -0.04em; }
.dir-item__title { letter-spacing: -0.05em; }
.dir-item p { letter-spacing: -0.04em; line-height: 1.5; }

/* ---- 치과소개 실사진 배치 ---- */
.about-figure { margin: clamp(28px, 4vw, 48px) 0 0; }
.about-figure img {
    width: 100%; height: auto; display: block;
    aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px;
}
.about-figure--wide img { aspect-ratio: 16 / 9; margin-bottom: clamp(28px, 4vw, 44px); }
.about-figure figcaption {
    margin-top: 14px; text-align: center; font-size: 15px; font-weight: 600;
    color: #6b7280; letter-spacing: -.04em;
}

/* 첨단 장비 2-up */
.equip-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px);
    margin-top: clamp(32px, 4vw, 52px); align-items: end;
}
.equip-card { margin: 0; background: #f7f8f9; border-radius: 4px; padding: 30px 26px 26px; text-align: center; }
.equip-card img {
    width: 100%; height: clamp(180px, 22vw, 260px); object-fit: contain; display: block;
    margin: 0 auto 20px; mix-blend-mode: multiply;
}
.equip-card figcaption { text-align: center; }
.equip-card strong {
    display: block; font-size: 19px; font-weight: 700; color: #111827;
    letter-spacing: -.05em; margin-bottom: 8px;
}
.equip-card span {
    display: block; font-size: 15px; font-weight: 300; color: #6b7280;
    line-height: 1.6; letter-spacing: -.04em;
}
@media (max-width: 760px) {
    .equip-grid { grid-template-columns: 1fr; }
    .about-figure img { aspect-ratio: 4 / 3; }
}

/* =========================================================
   치과소개 리디자인 — 2단 레이아웃 · 원칙 카드 · 장비 교차
   ========================================================= */

/* 좌 텍스트 / 우 이미지 2단 */
.split2 {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 72px); align-items: center;
}
.split2--rev .split2__text { order: 2; }
.split2__media { margin: 0; }
.split2__media img {
    width: 100%; height: 100%; max-height: 460px; object-fit: cover;
    display: block; border-radius: 4px;
}
/* 좌측 정렬 헤더 */
.dhead--left { text-align: left; margin-bottom: 26px; }
.dhead--left .dhead__badge { margin-bottom: 20px; }
.about-prose--left { text-align: left; margin: 0; }

/* ---- 첨단 장비 교차 슬라이드 ---- */
.equip-stage {
    position: relative; background: none; min-height: clamp(320px, 34vw, 460px);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.equip-slide {
    position: absolute; inset: 0; margin: 0; padding: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    opacity: 0; transform: translateY(10px);
    transition: opacity 1s ease, transform 1s cubic-bezier(.16, .7, .18, 1);
    will-change: opacity; backface-visibility: hidden;
}
.equip-slide.is-active { opacity: 1; transform: none; }
.equip-slide img { max-width: 80%; max-height: 320px; object-fit: contain; }
.equip-slide figcaption { font-size: 16px; font-weight: 700; color: #263d5e; letter-spacing: -.04em; }

.equip-nav { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.equip-nav button {
    width: 100%; text-align: left; background: none; cursor: pointer; font-family: inherit;
    border: 1px solid #e5e8ec; border-radius: 4px; padding: 16px 20px;
    transition: border-color .25s, background .25s, transform .25s;
}
.equip-nav button:hover { border-color: #c9d2dc; transform: translateX(3px); }
.equip-nav button.is-active { border-color: #263d5e; background: #f7f9fc; }
.equip-nav strong {
    display: block; font-size: 16.5px; font-weight: 700; color: #111827;
    letter-spacing: -.05em; margin-bottom: 4px;
}
.equip-nav span { display: block; font-size: 14px; font-weight: 300; color: #8b96a3; letter-spacing: -.04em; }
.equip-nav button.is-active strong { color: #263d5e; }

@media (max-width: 900px) {
    .split2 { grid-template-columns: 1fr; }
    .split2--rev .split2__text { order: 0; }
    .split2__media img { max-height: 320px; }
    .principle-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}



/* 진료 원칙 본문 중앙정렬 */
.about-prose--center { text-align: center; margin-inline: auto; }



/* =========================================================
   상단 사진 밴드 + 인사말 오버랩 (레퍼런스 comtop 방식)
   ========================================================= */
.dband--tall {
    height: clamp(360px, 46vw, 620px);
    background-position: center 26%;   /* 인물 머리가 잘리지 않도록 위쪽 기준 */
}
/* 하단 흰 플레이트 — 사진 아래를 덮으며 인사말 영역과 이어짐 */
.dband--tall .dband__plate {
    width: min(1500px, 92vw); height: 34%; max-height: 190px;
    box-shadow: 0 -1px 0 #fff;
}
/* 인사말은 플레이트 위로 살짝 걸쳐 올라옴 */
.dgreet {
    position: relative; z-index: 2;
    margin-top: clamp(-120px, -9vw, -60px);
    padding-top: 0;
    background: #fff;
    max-width: min(1500px, 92vw);
    padding-left: clamp(24px, 5vw, 90px);
    padding-right: clamp(24px, 5vw, 90px);
}
@media (max-width: 768px) {
    .dband--tall { height: 240px; }
    .dband--tall .dband__plate { height: 26%; max-height: 60px; width: calc(100% - 24px); }
    .dgreet { margin-top: -34px; padding-left: 20px; padding-right: 20px; max-width: 100%; }
}

/* =========================================================
   진료시간 — 사인월 사진 + 안내, 하단 주간 그리드
   ========================================================= */
.hoursbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.4vw, 48px);
    align-items: center; margin-top: clamp(30px, 4vw, 48px);
}
.hoursbar__media { overflow: hidden; border-radius: 4px; background: #f4f6f8; }
.hoursbar__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.hoursbar__info { padding-left: clamp(0px, 1.5vw, 24px); }
.hoursbar__tel {
    display: block; text-align: center; font-size: clamp(28px, 3.6vw, 42px); font-weight: 700;
    letter-spacing: -.02em; color: var(--d-tx-strong, #1a1a1a); text-decoration: none;
    padding-bottom: clamp(14px, 2vw, 22px); border-bottom: 1px solid #e6e9ee;
}
.hoursbar__list { list-style: none; margin: 0; padding: clamp(16px, 2.2vw, 26px) 0; }
.hoursbar__list li {
    display: flex; align-items: baseline; gap: 18px;
    padding: 7px 0; font-size: clamp(14.5px, 1.7vw, 17px); color: #98a0aa; letter-spacing: -.03em;
}
.hoursbar__k { flex: 0 0 auto; min-width: 9.5em; }
.hoursbar__v { color: #8b9199; }
.hoursbar__list li.is-today { color: var(--d-navy, #263d5e); font-weight: 700; }
.hoursbar__list li.is-today .hoursbar__v { color: var(--d-navy, #263d5e); }
.hoursbar__notes { list-style: none; margin: 0; padding: clamp(14px, 2vw, 20px) 0 0; border-top: 1px solid #e6e9ee; }
.hoursbar__notes li { position: relative; padding-left: 12px; font-size: 13.5px; line-height: 1.9; color: #9aa2ac; }
.hoursbar__notes li::before { content: '·'; position: absolute; left: 0; }

.hoursgrid { margin-top: clamp(30px, 4vw, 48px); overflow-x: auto; }
.hoursgrid table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: center; }
.hoursgrid thead th {
    background: var(--d-navy, #263d5e); color: #fff; font-weight: 700;
    font-size: 14.5px; padding: 15px 8px; letter-spacing: .02em;
}
.hoursgrid thead th.is-today { background: #263d5e; }
.hoursgrid tbody th {
    font-weight: 500; font-size: 14px; color: #6b7280; background: #fafbfc;
    padding: 16px 8px; border: 1px solid #e6e9ee; white-space: nowrap;
}
.hoursgrid tbody td { padding: 16px 8px; border: 1px solid #e6e9ee; }
.hoursgrid tbody td.is-today { background: #f4f8ff; }
.hoursgrid__dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: #7fb3f0; vertical-align: middle;
}
.hoursgrid tbody td.is-today .hoursgrid__dot { background: var(--d-navy, #263d5e); }
.hoursgrid__txt { font-size: 13.5px; color: #8b9199; }
.hoursgrid tbody td.is-off { background: #fafbfc; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================
   오시는 길 — 지도(위) + 교통편(아래)
   ========================================================= */
.dirmap { margin-top: clamp(30px, 4vw, 48px); }
.dirmap__frame { position: relative; width: 100%; aspect-ratio: 16 / 7; background: #eef1f4; overflow: hidden; }
.dirmap__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.dirmap__bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding: 16px 18px; background: #fafbfc; border: 1px solid #e6e9ee; border-top: 0;
    font-size: 14.5px; color: #4e5968; letter-spacing: -.03em;
}
.dirmap__acts { display: inline-flex; gap: 8px; }
.dirmap__btn {
    display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px;
    border: 1px solid #dde2e9; background: #fff; color: #4e5968;
    font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: border-color .3s ease, color .3s ease;
}
.dirmap__btn:hover { border-color: var(--d-navy, #263d5e); color: var(--d-navy, #263d5e); }
.dirmap__btn--naver { border-color: #03c75a; color: #03c75a; }
.dirmap__btn--naver:hover { background: #03c75a; border-color: #03c75a; color: #fff; }

.dirway { margin-top: clamp(30px, 4vw, 46px); border-top: 1px solid #e6e9ee; }
.dirway__row {
    display: grid; grid-template-columns: 88px 1fr; gap: clamp(14px, 2vw, 26px);
    align-items: start; padding: clamp(24px, 3vw, 34px) 0; border-bottom: 1px solid #e6e9ee;
}
.dirway__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 88px; height: 88px; border-radius: 12px;
    background: #f2f6fc; color: var(--d-navy, #263d5e);
}
.dirway__ico svg { width: 40px; height: 40px; }
.dirway__t { margin: 4px 0 12px; font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: #1a1a1a; letter-spacing: -.035em; }
.dirway__d { margin: 0 0 8px; font-size: clamp(14px, 1.6vw, 15.5px); line-height: 1.8; color: #6b7280; letter-spacing: -.03em; }
.dirway__d:last-child { margin-bottom: 0; }
.dirway__note { margin: 10px 0 0; font-size: 13px; color: #9aa2ac; }
.dirway__line {
    display: inline-block; padding: 2px 10px; margin: 0 2px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; color: #fff;
}
.dirway__line--1 { background: #0052a4; }   /* 1호선 */
.dirway__line--5 { background: #996cac; }   /* 5호선 */
.dirway .dbadge__k {
    display: inline-block; min-width: 42px; padding: 3px 9px; margin-right: 8px; border-radius: 4px;
    color: #fff; font-size: 12px; font-weight: 700; text-align: center;
}

@media (max-width: 900px) {
    .hoursbar { grid-template-columns: 1fr; }
    .hoursbar__info { padding-left: 0; }
    .dirway__row { grid-template-columns: 60px 1fr; }
    .dirway__ico { width: 60px; height: 60px; border-radius: 10px; }
    .dirway__ico svg { width: 28px; height: 28px; }
    .dirmap__frame { aspect-ratio: 4 / 3; }
}

/* =========================================================
   404 — 없는 주소
   ========================================================= */
.sec--404 { display: flex; align-items: center; justify-content: center;
            min-height: clamp(480px, 72vh, 820px); padding: 80px var(--gutter); }
.nf { width: 100%; max-width: 680px; margin: 0 auto; text-align: center; }
.nf__code {
    margin: 0 0 10px;
    font-family: 'Orbitron', 'Pretendard', sans-serif;
    font-size: clamp(56px, 12vw, 108px); font-weight: 700; line-height: 1;
    letter-spacing: .04em; color: #5a90e0;
}
.nf__title { margin: 0 0 14px; font-size: clamp(21px, 3vw, 30px); font-weight: 700;
             letter-spacing: -.03em; color: #0d1b2e; }
.nf__desc  { margin: 0 0 34px; font-size: clamp(14.5px, 1.4vw, 16px); line-height: 1.75; color: #5f6b7a; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.nf__link {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
    border-radius: 100px; border: 1px solid #d9dee7; background: #fff;
    font-size: 14px; font-weight: 600; color: #273e5e;
    transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.nf__link:hover { border-color: #5a90e0; color: #5a90e0; transform: translateY(-2px); }
.nf__home {
    display: inline-flex; align-items: center; justify-content: center;
    height: 52px; padding: 0 34px; border-radius: 4px;
    background: #5a90e0; color: #fff; font-size: 15px; font-weight: 600;
    transition: background .25s ease;
}
.nf__home:hover { background: #4a80d2; }


/* =========================================================
   진료시간 표 — 모바일 가로 넘침 제거
   ---------------------------------------------------------
   표에 min-width:640px 이 걸려 있어 375px 화면에서 262px 이 넘쳤다.
   .hoursgrid 가 overflow-x:auto 로 잘라 주긴 하지만, 표를 보려면
   좌우로 밀어야 했고 페이지 자체도 가로로 밀렸다.
   요일이 한 글자, 칸 내용이 점 하나뿐이라 여백만 줄이면 다 들어간다.
   ========================================================= */
@media (max-width: 640px) {
    .hoursgrid { overflow-x: visible; }
    .hoursgrid table { min-width: 0; table-layout: fixed; }
    .hoursgrid thead th { font-size: 12.5px; padding: 11px 2px; }
    .hoursgrid tbody th { font-size: 11.5px; padding: 11px 4px; white-space: nowrap; letter-spacing: -.04em; }
    .hoursgrid tbody td { padding: 11px 2px; }
    .hoursgrid__dot { width: 7px; height: 7px; }
    .hoursgrid__txt { font-size: 11px; }
    /* 시간대 열만 넉넉히, 요일 7칸은 같은 폭으로 나눠 갖는다 */
    .hoursgrid tbody th:first-child,
    .hoursgrid thead th:first-child { width: 96px; }

    /* 예전 표(.hours-table)도 같은 이유로 넘친다 */
    .hours-table { overflow-x: visible; }
    .hours-table table { min-width: 0; table-layout: fixed; }
    .hours-table th, .hours-table td { padding: 11px 3px; font-size: 12px; }
}
