/* ============================================================
   FM DENTAL CLINIC — 메인페이지 스타일시트
   ============================================================ */

:root {
  --navy-900: #0c1830;
  --navy-800: #12203f;
  --navy-700: #1a2d54;
  --blue-500: #31C1FF;
  --blue-600: #1f57d6;
  --blue-100: #e8f0fe;
  --gray-900: #1c232f;
  --gray-600: #5b6472;
  --gray-400: #9aa3b2;
  --gray-100: #f4f6fa;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-section: 60px;
  --header-h: 76px;
  --container-w: 1180px;
  --edge-inset: max(24px, calc((100vw - var(--container-w)) / 2 + 24px));
  --ease: cubic-bezier(.4,0,.2,1);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,p { margin: 0; }
.inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
/* 폼 요소는 기본적으로 폰트를 상속하지 않으므로 body의 Pretendard 스택을 물려받도록 지정 */
button, input, select, textarea, optgroup { font-family: inherit; }
button { cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: all .25s var(--ease);
}
.btn-primary { background: var(--blue-500); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

.section-eyebrow {
  color: var(--blue-500);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.4;
}
.section-desc { color: var(--gray-600); margin-top: 14px; font-size: 1rem; }
.section-head.center { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head.light .section-title,
.section-head.light .section-desc { color: var(--white); }
.section-head.light .section-desc { color: rgba(255,255,255,.72); }
.section-head { margin-bottom: 40px; }

section { padding: 96px 0; }

/* ============ 헤더 ============ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: #141414;
}
.site-header .inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo img { height: 28px; }
.gnb { flex: 1; }
.gnb ul { display: flex; gap: 36px; justify-content: center; }
.gnb a {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,.88);
  position: relative;
  padding: 6px 2px;
}
.gnb a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.gnb a:hover::after { transform: scaleX(1); }
.gnb-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.gnb-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.site-header.is-nav-open .gnb-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-nav-open .gnb-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-nav-open .gnb-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 히어로 ============ */
.hero {
  position: relative;
  /* 40vw = hero-1 이미지 비율(2.49:1)의 역수. 폭이 커지면 높이도 같이 커져
     background-size:cover로 인한 상하 잘림이 광폭 화면에서 생기지 않는다.
     88vh 상한: 창 높이가 낮을 때 히어로가 화면을 다 차지하지 않도록.
     900px 상한: 초광폭 화면에서 과도하게 커지는 것을 방지. */
  height: clamp(480px, min(88vh, 40vw), 900px);
  min-height: 480px;
  padding: 0;
  overflow: hidden;
  background: var(--navy-900);
}
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  /* 슬라이드별 초점은 --hero-pos로 개별 지정 가능(index.php 참고). 기본값은
     상단 정렬 — 남는 잘림을 하단으로 몰아 인물 얼굴·머리가 잘리지 않게 한다. */
  background-position: var(--hero-pos, center top);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,14,28,.78) 0%, rgba(8,14,28,.6) 22%, rgba(8,14,28,0) 45%);
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}
.hero-eyebrow {
  font-weight: 700;
  letter-spacing: .12em;
  color: #9fc0ff;
  font-size: .85rem;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(16px);
  transition: all .7s var(--ease) .15s;
}
.hero-slide h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all .7s var(--ease) .25s;
}
.hero-desc {
  margin-top: 18px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  opacity: 0;
  transform: translateY(20px);
  transition: all .7s var(--ease) .35s;
}
.hero-slide.is-active .hero-eyebrow,
.hero-slide.is-active h2,
.hero-slide.is-active .hero-desc { opacity: 1; transform: translateY(0); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(12,24,48,.3);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), border-color .2s;
}
.hero-arrow:hover { background: rgba(43,108,246,.85); border-color: var(--blue-500); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-dots {
  position: absolute;
  z-index: 5;
  left: max(24px, calc(50% - (var(--container-w) / 2) + 24px));
  bottom: 28px;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 0;
  padding: 0;
  transition: all .25s var(--ease);
}
.hero-dots button.is-active { background: var(--blue-500); width: 26px; border-radius: 5px; }

/* ============ 병원소개 (풀블리드: 텍스트 54% / 이미지 46%, 이미지는 우측 끝까지) ============ */
.about { overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 54% 46%;
  align-items: stretch;
  min-height: 560px;
}
.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: var(--edge-inset);
  padding-right: 56px;
}
.about-media { display: flex; }
.about-media img {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}
.about-content .section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.eyebrow-plain { text-transform: none; font-size: 1.4rem; font-weight: 700; color:#0078e8; }
.text-accent { color: #0078e8; }
.about-desc { margin-top: 24px; }
.about-desc p { color: var(--gray-600); line-height: 1.7; font-size: 1.05rem; }
.about-desc p + p { margin-top: 18px; }

/* ============ 신뢰 요소 모자이크 (사진 + 하단/측면 솔리드 컬러 박스) ============ */
.mosaic { background: var(--gray-100); }
.mosaic-grid {
  display: flex;
  gap: 28px;
  height: 760px;
}
.mosaic-col { display: flex; flex-direction: column; gap: 28px; }
.mosaic-col-left { flex: 0.85; }
.mosaic-col-right { flex: 1; }
.mosaic-col-left .mosaic-floor-system { flex: 1.6; }
.mosaic-col-left .mosaic-safety { flex: 1; }
.mosaic-col-right .mosaic-20years { flex: 0.55; }
.mosaic-row { flex: 1; display: flex; gap: 28px; }
.mosaic-row .mosaic-card { flex: 1; }

.mosaic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.mosaic-img {
  position: relative;
  flex: 1;
  min-height: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s var(--ease);
  overflow: hidden;
}
.mosaic-card:hover .mosaic-img { transform: scale(1.06); }
.mosaic-20years .mosaic-img { background-position: center top; }

.mosaic-body {
  flex: none;
  padding: 20px 22px;
  color: var(--white);
}
.mosaic-body h3 { font-size: 1.1rem; font-weight: 800; }
.mosaic-body p { margin-top: 6px; font-size: .84rem; color: rgba(255,255,255,.88); line-height: 1.5; }

/* 카드별 박스 색상 (Figma 시안 기준) */
.mosaic-floor-system .mosaic-body { background: #006DE5; }
.mosaic-safety .mosaic-body { background: #6897F8; }
.mosaic-honesty .mosaic-body { background: #5255ED; }
.mosaic-conservative .mosaic-body { background: #3379DF; }

/* 20년간 한자리에서: 좌측 컬러 박스 + 우측 사진 가로 분할 */
.mosaic-20years { flex-direction: row; }
.mosaic-20years .mosaic-body {
  background: #49DDB2;
  flex: 0 0 56%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mosaic-20years .mosaic-img { flex: 1; }

/* ============ 병원급 규모 + 세심한 케어 (풀블리드: 이미지 우측 끝까지) ============ */
.value-props { background: var(--navy-900); overflow: hidden; }
.value-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: stretch;
  min-height: 560px;
}
.value-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: var(--edge-inset);
  padding-right: 56px;
}
.value-content .section-title { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.1rem); }
.value-list {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px dotted rgba(255,255,255,.25);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.value-list li { color: rgba(255,255,255,.72); line-height: 1.65; font-size: 1.15rem; }
.value-list strong { color: var(--blue-500); font-weight: 800; margin-right: 4px; font-size: 1.2rem; }
.value-media { display: flex; }
.value-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* ============ 의료진소개 (층별 가이드: 건물 사진 위에 층 목록이 겹쳐지는 형태) ============ */
/* 위 섹션(네이비)과 이어지도록 상단을 크게 둥글리고 그 위로 겹쳐 올림 */
.doctors {
  background: #fff;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  margin-top: calc(-1 * var(--radius-section));
  padding-top: calc(96px + var(--radius-section));
}
.doctor-guide { max-width: 980px; margin: 0 auto; }

/* ---- 층 탭 ---- */
.dg-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 52px;
}
.dg-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border: 3px solid #bcd9f5;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: #0078e8;
  background: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.dg-tab .dg-tab-floor { font-weight: 800; }
.dg-tab:hover:not(.is-disabled):not(.is-active) { border-color: #0078e8; background: #f0f7ff; }
.dg-tab.is-active { background: #0078e8; border-color: #0078e8; color: var(--white); }
/* 1F 탭: 클릭 불가지만 색상은 다른 탭의 기본(호버 전) 상태와 동일하게 통일 */
.dg-tab.is-disabled { cursor: default; }

/* ---- 프로필 무대 ---- */
.dg-stage { position: relative; overflow: hidden; }
.dg-doctor-track { width: 100%; }
.dg-card {
  display: none;
  gap: 44px;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
/* 사진 열은 항상 300px 고정, 경력 열은 각 원장의 실제 내용 폭만큼만 차지한다.
   그 결과 [사진 + 경력] 묶음의 전체 폭이 원장마다 달라지고,
   justify-content: center 가 그 묶음을 프로필마다 화면 정중앙에 맞춘다. */
.dg-card.is-active { display: flex; animation: dgFade 1.05s var(--ease); }
@keyframes dgFade { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }

.dg-card-figure {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dg-avatar {
  display: block;
  width: 300px; height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 32%, #eaf3ff, #d3e6fb);
}
.dg-avatar::after {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: #9cc4ec;
}
.dg-avatar img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.dg-card-name {
  width: 300px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.dg-card-name .doctor-badge {
  background: #0078e8;
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}
.dg-card-name .dg-role {
  background: var(--blue-100);
  color: #0078e8;
  font-size: .82rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}
.dg-card-name h3 {
  width: 100%;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-top: 4px;
}
.dg-card-name h3 em {
  font-style: normal;
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-600);
  margin-left: 4px;
}

.dg-card .doctor-cred { flex: 0 0 auto; min-width: 240px; max-width: 460px; text-align: left; }
.doctor-cred li {
  font-size: .9rem;
  color: var(--gray-600);
  padding-left: 16px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.55;
}
.doctor-cred li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #0078e8;
}

/* ---- 이전 · 다음 의료진 버튼 ---- */
.dg-prev,
.dg-next {
  position: absolute;
  top: 130px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid #9cc4ec;
  background: var(--white);
  color: #0078e8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.dg-prev { left: 0; }
.dg-next { right: 0; }
.dg-prev svg,
.dg-next svg { width: 20px; height: 20px; }

/* ---- 하단 썸네일 스트립 ---- */
.dg-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #eef1f6;
}
.dg-thumb {
  width: 99px; height: 99px;
  padding: 0;
  border: 4px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.dg-thumb:hover { transform: translateY(-2px); }
.dg-thumb.is-active { border-color: #0078e8; }
.dg-thumb .dg-avatar { width: 100%; height: 100%; margin: 0; box-shadow: none; }
.dg-thumb .dg-avatar::after { font-size: 2rem; }

/* ============ 진료소개 (밝은 배경, 카드가 간격 없이 붙어 하나의 덩어리) ============ */
.treatments { background: #F6F7FD; }
.treatment-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.treatment-card {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.treatment-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: rgba(8,14,28,.72);
  transition: background .5s var(--ease);
}
.treatment-card.is-active::before { background: rgba(8,14,28,.28); }

.treatment-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  transition: opacity .4s var(--ease);
}
.treatment-card.is-active .treatment-label { opacity: 0; }

.treatment-panel {
  position: absolute;
  top: 50%;
  right: 0;
  width: 46%;
  height: 60%;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  transform: translate(100%, -50%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.treatment-card.is-active .treatment-panel { transform: translate(0, -50%); opacity: 1; }
.treatment-badge {
  margin: 0 auto;
  display: inline-block;
  align-self: flex-start;
  background: var(--blue-500);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.treatment-panel p { color: var(--gray-600); font-size: 1.1rem; line-height: 1.65; text-align:center; }

/* ============ 갤러리 (자동 스크롤 + 드래그/화살표로 넘기기) ============ */
/* 자동 스크롤은 CSS 애니메이션이 아니라 JS(rAF)로 marquee.scrollLeft를 직접 증가시켜 구현한다.
   드래그·화살표 모두 같은 scrollLeft를 조작하므로 애니메이션과 충돌하지 않는다. */
.gallery { position: relative; padding-bottom: 110px; overflow: hidden; }
/* 다른 섹션(.inner)과 동일한 폭으로 가운데 정렬해, 카드가 몇 장만 보이는 뷰포트를 만든다.
   카드 폭은 고정 px가 아니라 JS(main.js galleryMarquee)가 이 뷰포트의 실제 폭과 카드
   최소폭을 비교해 몇 장이 들어갈지 역산한 뒤 넣는다 — .gallery-track이 width:max-content라
   CSS %만으로는 부모 폭 기준 등분이 불가능하기 때문. 데스크톱 5장 → 태블릿 3장 → 모바일 1장처럼
   화면 폭에 따라 장수 자체가 자동으로 줄어든다. */
.gallery-viewport {
  position: relative;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.gallery-marquee {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-marquee::-webkit-scrollbar { display: none; }
.gallery-marquee.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery-marquee.is-dragging * { user-select: none; }
.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 6px 0 28px;
}

.gallery-arrow {
  position: absolute;
  top: calc(50% - 14px);
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid #dbe2ee;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 10px 22px rgba(18,32,63,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.gallery-arrow:hover { background: var(--blue-500); color: var(--white); border-color: var(--blue-500); }
.gallery-arrow-prev { left: 0; }
.gallery-arrow-next { right: 0; }
@media (max-width: 760px) {
  /* 카드가 1장만 보이는 모바일에서는 화살표를 카드 절반 가까이 덮지 않도록 살짝 줄인다. */
  .gallery-arrow { width: 38px; height: 38px; top: calc(50% - 9px); }
}
.gallery-track li {
  flex: none;
  width: 300px; /* JS가 계산하기 전까지 잠깐 쓰이는 기본값(폴백) */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e2e6ee;
  box-shadow: 0 10px 22px rgba(18,32,63,.12);
}
.gallery-track img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.gallery-item-body { padding: 20px 22px 26px; }
.gallery-item-body h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy-900); COLOR: #0E3692; text-align:center;}
.gallery-item-body p { margin-top: 8px; font-size: .85rem; color: var(--gray-600); line-height: 1.55; text-align:center; text-wrap:balance;}
/* ============ 오시는길 ============ */
.location { background: var(--white); padding-bottom: 0; }
.location-grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 56px;
  align-items: start;
}

.location-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}
.location-head h2 { font-size: 1.7rem; font-weight: 800; color: var(--blue-600); }
.location-address { color: var(--gray-700); font-size: .95rem; }

.location-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.location-icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-500);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.location-icon svg { width: 18px; height: 18px; }
.location-line strong { color: var(--blue-600); font-weight: 700; font-size: 1.02rem; }

.location-hours { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e7ebf2; }
.location-hours-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.location-hours-head h3 { font-size: 1.15rem; font-weight: 800; color: var(--blue-600); }
.location-hours-head p { font-size: .78rem; color: #e0343c; }

.hours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hours-col:not(:first-child) { border-left: 1px solid #e7ebf2; padding-left: 20px; }
.hours-badge {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--blue-500);
  color: var(--blue-600);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hours-col dl div {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 16px;
  padding: 7px 0;
  font-size: .82rem;
  color: var(--gray-700);
  border-bottom: 1px dashed #eef1f6;
}
.hours-col dl div:last-child { border-bottom: 0; }
.hours-col dt { flex: none; width: 80px; white-space: nowrap; font-weight: 600; color: var(--gray-600); }
.hours-col dd { flex: none; text-align: left; white-space: nowrap; color: var(--navy-900); font-weight: 500; }
.hours-col dd em { font-style: normal; white-space: nowrap; color: var(--blue-600); font-weight: 700; margin-left: 4px; font-size: .74rem; }

/* 지도: 우측 뷰포트 끝까지 풀블리드 */
.location-map {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-right: calc(-1 * var(--edge-inset));
  width: calc(100% + var(--edge-inset));
}
.location-map #daumRoughmapContainer1785740218330 { width: 100%; max-width: 100%; }
.location-map #daumRoughmapContainer1785740218330 .wrap_controllers,
.location-map #daumRoughmapContainer1785740218330 .cont { display: none !important; }

.location-phone-bar {
  margin-top: 56px;
  background: var(--gray-100);
  padding: 22px 0;
  text-align: center;
}
.location-phone-bar p { font-size: 1.5rem; font-weight: 700; color: var(--navy-900); display:inline-flex; align-items:center; }
.location-phone-bar a { color: var(--blue-600); font-weight: 800; font-size: 1.5rem; margin: 0 4px; }
.location-phone-bar span { font-weight: 500; color: var(--gray-600); font-size: 1rem; }

/* ============ 푸터 ============ */
.site-footer {
  background: #161b22;
  color: rgba(255,255,255,.55);
  padding: 32px 0 36px;
  font-size: .82rem;
}
.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.footer-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.footer-links a:hover { background: rgba(255,255,255,.12); color: var(--white); }

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footer-logo { height: 45px; opacity: .95; justify-self: start; }
.footer-info { text-align: center; }
.footer-info p { margin-top: 6px; }
.footer-info p:first-child { margin-top: 0; }

.footer-copyright { text-align: center; color: rgba(255,255,255,.4); margin-top: 28px; }

/* ============ 반응형 ============ */

/* 태블릿·모바일(≤1024px): 의료진 소개 섹션의 약력(학력/경력) 리스트를
   가운데 정렬 + 좌측 불릿 제거 + 자연스러운 한글 줄바꿈으로 최적화.
   데스크톱(≥1025px)의 좌측 정렬 + 파란 불릿 디자인은 그대로 유지된다. */
@media (max-width: 1024px) {
  .dg-card .doctor-cred {
    text-align: center;
    list-style: none;
    padding-left: 0;
  }
  .doctor-cred li {
    padding-left: 0;
    margin-bottom: 14px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .doctor-cred li:last-child { margin-bottom: 0; }
  .doctor-cred li::before { display: none; }
}

@media (max-width: 980px) {
  /* 풀블리드 반반 섹션(병원소개/병원급규모) → 세로 스택, 풀블리드 해제 */
  h2.section-title{word-break:keep-all; text-wrap:balance;}
  .about-grid,
  .value-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .about-desc p{font-size:.85rem;}
  .about-content,
  .value-content { padding-left: 24px; padding-right: 24px; padding-top: 0; padding-bottom: 36px; }
  .about-media img,
  .value-media img { min-height: 0; height: 280px; border-radius: 0px; }
  .value-media { order: -1; }

  .value-props .value-content h2.section-title{padding-top: 34px; text-align:center;}
  .value-props .value-content li{ font-size:0.93rem; word-break:keep-all; text-wrap:balance;}
  .value-props img{ border-radius: 0px; }

  .mosaic-grid { flex-direction: column; height: auto; }
  .mosaic-col-left,
  .mosaic-col-right { flex: none; }
  .mosaic-col-left .mosaic-floor-system,
  .mosaic-col-left .mosaic-safety,
  .mosaic-col-right .mosaic-20years { flex: none; height: 260px; }
  .mosaic-row { flex: none; flex-direction: column; }
  .mosaic-row .mosaic-card { flex: none; height: 220px; }
  .mosaic-20years { flex-direction: column; }
  .mosaic-20years .mosaic-body { flex: none; }

  /* 섹션 라운드 겹침 반경 축소 */
  .doctors { border-radius: 32px 32px 0 0; margin-top: -32px; padding-top: calc(96px + 32px); }

  .treatment-card { height: 400px; }

  .location-grid { grid-template-columns: 1fr; }
  .location-map { margin-right: 0; width: 100%; border-radius: var(--radius-lg); }
  .hours-grid { grid-template-columns: 1fr 1fr; }
  .location-phone-bar p { display: flex; flex-direction: column; gap: 4px; }
  .dg-card { flex-direction: column; align-items: center; gap: 28px; min-height: 0; }
  .dg-card-figure { flex: none; }
  .dg-card .doctor-cred { width: 100%; min-width: 0; max-width: 460px; margin: 0 auto; padding-top: 0; }
  .dg-prev,
  .dg-next { top: 90px; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .doctors { padding-top: 64px; }
  .floor-guide-title { text-align: center; }
  .floor-guide-title .fg-line { display: block; }
  .floor-guide-title .fg-line:last-child { text-align: center; }
  .gnb, .gnb-cta { display: none; }
  .gnb-toggle { display: flex; margin-left: auto; }
  .site-header.is-nav-open .gnb {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #141414;
    padding: 8px 0;
    box-shadow: 0 16px 24px rgba(0,0,0,.25);
  }
  .site-header.is-nav-open .gnb ul { flex-direction: column; gap: 0; }
  .site-header.is-nav-open .gnb li { border-top: 1px solid rgba(255,255,255,.08); }
  .site-header.is-nav-open .gnb li:first-child { border-top: 0; }
  .site-header.is-nav-open .gnb a { display: block; padding: 15px 24px; }
  .site-header.is-nav-open .gnb a::after { display: none; }
  .footer-links { justify-content: center; }
  .footer-main { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .footer-logo { justify-self: center; }
  .hero { height: 620px; }
  .hero-slide {
    background-image: var(--hero-bg-m);
    background-position: var(--hero-pos-m, center);
  }
  .hero-slide-inner { padding-bottom: 64px; }
  .hero-arrow { width: 40px; height: 40px; }
  .dg-tabs { gap: 8px; margin-bottom: 36px; }
  .dg-tab { padding: 9px 16px; font-size: .85rem; }
  .dg-avatar { width: 220px; height: 220px; }
  .dg-avatar::after { font-size: 3rem; }
  /* 좁은 화면에서는 화면 중앙 기준으로 사진 양옆에 고정 (가장자리 잘림 방지) */
  .dg-prev,
  .dg-next { top: 72px; width: 38px; height: 38px; }
  .dg-prev { left: 50%; right: auto; transform: translateX(-150px); }
  .dg-next { left: auto; right: 50%; transform: translateX(150px); }
  .dg-thumbs { gap: 12px; margin-top: 36px; padding-top: 28px; }
  .dg-thumb { width: 78px; height: 78px; }
  .treatment-card { height: 240px; }
  .treatment-panel {
    width: 100%;
    height: auto;
    max-height: calc(100% - 32px);
    padding: 20px;
    border-radius: var(--radius-lg);
  }
  .treatment-panel p { font-size: .85rem; line-height: 1.6; }
  .treatment-label { font-size: 1.1rem; }
  .about-stats { gap: 24px; flex-wrap: wrap; }
  .hours-grid { grid-template-columns: 1fr; gap: 24px; }
  .hours-col:not(:first-child) { border-left: 0; padding-left: 0; border-top: 1px solid #e7ebf2; padding-top: 20px; }
}
