/* ========================================
   88플러스내과·산부인과 홈페이지 — 공유 스타일
   메인 컬러: #6E9230 (어두운 올리브)
   ======================================== */

/* 푸터 주소: 데스크톱은 한 줄, 모바일은 줄바꿈 허용 */
.footer-addr { white-space: nowrap; }
@media (max-width: 880px) {
  .footer-addr { white-space: normal; }
}

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-text-light: #8a8a8a;
  --color-primary: #6E9230;        /* 어두운 올리브 — 버튼·배경·테두리·아이콘 등 강조 */
  --color-primary-text: #5C7F22;   /* 텍스트용 짙은 녹색 — 가독성 확보 */
  --color-primary-dark: #547321;   /* hover, 더 짙은 강조 */
  --color-primary-soft: #F2F7E5;   /* 옅은 배경 톤 */
  --color-line: #e5e5e0;
  --color-line-soft: #f0f0eb;
  --color-warning: #8b5a00;
  --color-warning-soft: #fdf6e3;
  --color-accent: #c9302c;
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --container: 1100px;
  --container-narrow: 880px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  font-weight: 400;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;       /* 한글 어절 단위 줄바꿈 (단어 중간에서 끊기지 않음) */
  overflow-wrap: break-word;  /* 매우 긴 단어/URL은 예외적으로 줄바꿈 허용 */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Top bar (전화·예약 강조) ========== */
.top-bar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.top-bar a {
  opacity: 0.9;
  transition: opacity 0.15s;
}

.top-bar a:hover { opacity: 1; }

.top-bar .tel strong {
  font-weight: 600;
  margin-left: 6px;
  font-feature-settings: 'tnum';
}

/* ========== Site Header (Nav) ========== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo .logo-img {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 880px) {
  .site-logo .logo-img { height: 44px; }
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover {
  color: var(--color-primary-text);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--color-primary-text);
}

.main-nav a.active::after {
  transform: scaleX(1);
}

/* Hamburger (모바일 메뉴) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.menu-toggle svg { width: 24px; height: 24px; stroke: currentColor; }

.mobile-nav {
  display: none;
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-line-soft);
  font-size: 14.5px;
  color: var(--color-text);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--color-primary-text); font-weight: 600; }

@media (max-width: 880px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .top-bar { display: none; }
}

/* ========== Hero ========== */
.hero {
  background: var(--color-bg-soft);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero .label {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--color-primary-text);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 26px;
}

.hero h1 strong {
  color: var(--color-primary-text);
  font-weight: 700;
}

.hero .lead {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  border-color: var(--color-primary-text);
  color: var(--color-primary-text);
  background: var(--color-surface);
}

.btn-outline:hover {
  background: var(--color-primary-soft);
}

.hero-visual {
  background: transparent;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-visual img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 880px) {
  .hero { padding: 50px 0 60px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 26px; }
  .hero .lead { font-size: 14.5px; }
}

/* ========== Section Common ========== */
.section {
  padding: 80px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-alt {
  background: var(--color-bg-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-head .label {
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.25em;
  color: var(--color-primary-text);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-head .desc {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 23px; }
  .section-head .desc { font-size: 14px; }
}

/* ========== Quick Services (4 cards) ========== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quick-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
}

.quick-card:hover {
  border-color: var(--color-primary-text);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(70, 140, 40, 0.12);
}

.quick-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: background 0.2s;
}

.quick-card:hover .icon {
  background: var(--color-primary);
  color: #fff;
}

.quick-card .icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.quick-card .title {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.quick-card .desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quick-card { padding: 24px 14px; }
  .quick-card .icon { width: 48px; height: 48px; margin-bottom: 12px; }
  .quick-card .title { font-size: 14.5px; }
}

/* ========== Doctor Cards ========== */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.doctor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.doctor-card:hover {
  border-color: var(--color-primary-text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.doctor-photo {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 533 / 800;
  background: var(--color-primary-soft);
  overflow: hidden;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-info {
  flex: 1;
  padding: 28px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-info .role {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--color-primary-text);
  font-weight: 600;
  margin-bottom: 6px;
}

.doctor-info h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-line-soft);
}


.doctor-info ul {
  list-style: none;
}

.doctor-info ul li {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 4px 0;
  line-height: 1.7;
  position: relative;
  padding-left: 12px;
}

.doctor-info ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--color-primary-text);
  font-weight: 600;
}

@media (max-width: 880px) {
  .doctor-grid { gap: 16px; }
  .doctor-card { flex-direction: column; align-items: center; padding-top: 24px; }
  .doctor-photo {
    flex: 0 0 auto;
    width: 220px;
    height: auto;
    aspect-ratio: 533 / 800;
    border-radius: 4px;
  }
  .doctor-info {
    padding: 22px 24px 26px;
    text-align: center;
    width: 100%;
  }
  .doctor-info ul {
    text-align: left;
    display: inline-block;
  }
}

/* ========== 의료진 카드 우측 진료 일정 (PC 전용) ========== */
.doctor-schedule {
  display: none; /* 모바일에서는 숨김 */
}

@media (min-width: 881px) {
  .doctor-schedule {
    display: block;
    flex: 0 0 auto;
    align-self: center;
    padding: 0 28px 0 0;
    min-width: 270px;
  }
  .ds-title {
    font-family: var(--font-serif);
    font-size: 13.5px;
    color: var(--color-primary-text);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
  }
  .ds-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 13px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 4px;
    overflow: hidden;
  }
  .ds-table thead th {
    background: var(--color-primary-soft);
    color: var(--color-primary-text);
    font-weight: 600;
    padding: 7px 0;
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid var(--color-line);
  }
  .ds-table tbody th {
    background: var(--color-primary-soft);
    color: var(--color-text-muted);
    font-weight: 500;
    padding: 7px 8px;
    font-size: 12px;
    text-align: center;
    border-right: 1px solid var(--color-line);
  }
  .ds-table tbody td {
    padding: 7px 0;
    text-align: center;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-line-soft);
    font-size: 12px;
  }
  .ds-table tbody tr:last-child td,
  .ds-table tbody tr:last-child th {
    border-bottom: none;
  }
  .ds-table .o {
    color: var(--color-primary-text);
    font-weight: 600;
  }
}

/* ========== Department Grid ========== */
.dept-block {
  margin-bottom: 60px;
}

.dept-block:last-child { margin-bottom: 0; }

.dept-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-primary);
}

.dept-head h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dept-head .label {
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--color-primary-text);
  text-transform: uppercase;
  font-weight: 600;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dept-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 22px 22px 24px;
  transition: border-color 0.15s;
}

.dept-item:hover {
  border-color: var(--color-primary-text);
}

.dept-item .num {
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--color-primary-text);
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 6px;
}

.dept-item .name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dept-item .info {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 880px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dept-item { padding: 16px 14px 18px; }
  .dept-item .name { font-size: 14.5px; }
  .dept-item .info { font-size: 12px; }
}

/* ========== Hours / Map row ========== */
.info-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: stretch;
}

.hours-card,
.map-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 32px 30px;
}

.hours-card h3,
.map-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hours-card h3::before,
.map-card h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 2px;
}

.hours-list {
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-line-soft);
  font-size: 15.5px;
}

.hours-list li:last-child { border-bottom: none; }

.hours-list .day {
  color: var(--color-text);
  font-weight: 500;
}

.hours-list .time {
  color: var(--color-text-muted);
  font-feature-settings: 'tnum';
  letter-spacing: -0.01em;
}

.hours-list li.closed .time { color: var(--color-accent); }

/* 의료진별 진료 일정 (full width below info-row) */
.schedule-section {
  margin-top: 48px;
}

.schedule-section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-align: center;
}

.schedule-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-family: var(--font-sans);
  background: var(--color-surface);
}

.schedule-table thead th {
  padding: 16px 10px;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.schedule-table thead th:last-child { border-right: none; }

.schedule-table tbody th.doc {
  text-align: center;
  padding: 18px 12px;
  border-bottom: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
  font-weight: 500;
  white-space: nowrap;
  background: var(--color-surface);
  vertical-align: middle;
  min-width: 130px;
}

.schedule-table tbody th.doc .doc-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  margin: 0 auto 10px;
  border: 2px solid var(--color-primary-soft);
}
/* 김기진 원장 사진 — 다른 두 분과 얼굴 크기 맞추기 위해 살짝 확대 */
.schedule-table tbody th.doc span.doc-photo {
  display: block;
  overflow: hidden;
  padding: 0;
}
.schedule-table tbody th.doc span.doc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.15);
  transform-origin: center 35%;
  display: block;
}

.schedule-table tbody th.doc .doc-name {
  font-size: 16px;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.schedule-table tbody th.doc .doc-name span {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 3px;
}

.schedule-table tbody th.doc .doc-dept {
  font-size: 12.5px;
  color: var(--color-primary-text);
  font-weight: 500;
  margin-top: 4px;
}

.schedule-table tbody th.time-row {
  padding: 14px 16px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line-soft);
  font-size: 14.5px;
  color: var(--color-text-muted);
  font-weight: 500;
  background: var(--color-bg-soft);
  text-align: center;
  white-space: nowrap;
}

.schedule-table tbody td {
  text-align: center;
  padding: 14px 6px;
  border-bottom: 1px solid var(--color-line-soft);
  border-right: 1px solid var(--color-line-soft);
  font-size: 16px;
  vertical-align: middle;
  background: var(--color-surface);
}

.schedule-table tbody td:last-child { border-right: none; }

/* 오후 row: 의료진 사이 구분선 진하게 */
.schedule-table tbody tr:nth-child(even) td,
.schedule-table tbody tr:nth-child(even) th.time-row {
  border-bottom: 1px solid var(--color-line);
}

.schedule-table tbody tr:last-child th,
.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table .open {
  color: var(--color-primary-text);
  font-size: 16px;
}

/* 빈 칸 (휴진) — 옅은 회색 배경 */
.schedule-table tbody td:empty {
  background: #f5f5f2;
}

.schedule-note-bottom {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--color-text-light);
  text-align: right;
}

@media (max-width: 880px) {
  .schedule-section { margin-top: 36px; }
  .schedule-section-title { font-size: 18px; margin-bottom: 14px; }
  .schedule-table { font-size: 13.5px; }
  .schedule-table thead th { padding: 11px 4px; font-size: 12.5px; }
  .schedule-table tbody th.doc { padding: 12px 6px; min-width: 80px; }
  .schedule-table tbody th.doc .doc-photo { width: 48px; height: 48px; margin-bottom: 6px; }
  .schedule-table tbody th.doc .doc-name { font-size: 13px; }
  .schedule-table tbody th.doc .doc-name span { font-size: 11px; }
  .schedule-table tbody th.doc .doc-dept { font-size: 11px; }
  .schedule-table tbody th.time-row { padding: 10px 6px; font-size: 12.5px; }
  .schedule-table tbody td { padding: 10px 2px; font-size: 13px; }
  .schedule-table .open { font-size: 13px; }
  .schedule-note-bottom { font-size: 12px; }
}

.hours-card .note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--color-warning-soft);
  border-left: 3px solid var(--color-warning);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

.map-embed {
  background: var(--color-bg-soft);
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 13px;
  margin-bottom: 18px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.map-btn {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
}

.map-btn:hover {
  border-color: var(--color-primary-text);
  color: var(--color-primary-text);
  background: var(--color-primary-soft);
}

.map-info {
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text-muted);
}

.map-info strong {
  color: var(--color-text);
  font-weight: 600;
}

.map-info .row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
}

.map-info .row .label {
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary-text);
  font-weight: 600;
  min-width: 50px;
}

@media (max-width: 880px) {
  .info-row { grid-template-columns: 1fr; gap: 18px; }
  .hours-card, .map-card { padding: 24px 22px; }
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.cta-banner h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 14.5px;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.85;
}

.cta-banner .btn-white {
  background: #fff;
  color: var(--color-primary-text);
  border-color: #fff;
}

.cta-banner .btn-white:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
}

@media (max-width: 880px) {
  .cta-banner { padding: 44px 0; }
  .cta-banner h3 { font-size: 20px; }
}

/* ========== Footer ========== */
.site-footer {
  background: #1f1f1c;
  color: #c9c9c4;
  padding: 28px 0 18px;
  font-size: 14px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 18px;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.site-footer ul { list-style: none; }

.site-footer ul li {
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.site-footer ul li a:hover { color: #fff; }

.site-footer .info-line {
  font-size: 13.5px;
  line-height: 1.85;
  color: #999994;
}

.site-footer .info-line strong { color: #fff; font-weight: 500; }

.site-footer .copyright {
  border-top: 1px solid #2c2c28;
  padding-top: 14px;
  font-size: 11.5px;
  color: #666661;
  text-align: center;
}

@media (max-width: 880px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 18px; margin-bottom: 14px; }
  .site-footer { padding: 22px 0 16px; }
}

/* ========== Notice Box ========== */
.notice {
  background: var(--color-warning-soft);
  border-left: 3px solid var(--color-warning);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.notice .notice-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-warning);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.info-box {
  background: var(--color-primary-soft);
  border-left: 3px solid var(--color-primary);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.info-box .info-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-primary-text);
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* ========== To-top Button ========== */
/* ========== 병원 시설 갤러리 ========== */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.facility-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-bg-soft);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.facility-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.facility-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.facility-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 880px) {
  .facility-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* 라이트박스 */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 40px;
  animation: lbFade 0.2s ease;
}

.lightbox.visible { display: flex; }

@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  font-family: var(--font-sans);
  z-index: 1;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-feature-settings: 'tnum';
  letter-spacing: 0.05em;
}

@media (max-width: 880px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 24px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ========== 공지 팝업 ========== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: popupFade 0.2s ease;
}

.popup-overlay.visible { display: flex; }

@keyframes popupFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-box {
  background: #fff;
  border-radius: 8px;
  max-width: 440px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  animation: popupSlide 0.25s ease;
}

@keyframes popupSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1;
  color: #555;
  line-height: 1;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.15s;
}

.popup-close:hover { background: #fff; color: #000; }

.popup-image {
  width: 100%;
  display: block;
  border-radius: 8px 8px 0 0;
}

/* 독립 팝업 창 (각자 떠 있고 각자 닫기) */
.float-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: popupSlide 0.3s ease;
}
.float-popup.visible {
  display: block;
}
/* PC: 두 창이 화면 좌/우로 멀리 떨어져서 독립적으로 표시 */
#floatPopup1 {
  top: 100px;
  left: 4%;
  width: 480px;
  max-width: 45vw;
}
#floatPopup2 {
  top: 100px;
  right: 4%;
  width: 660px;
  max-width: 57vw;
}
#floatPopup3 {
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 60vw;
  z-index: 1001;
}
.float-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  color: #555;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.float-popup-image {
  width: 100%;
  display: block;
}
.float-popup-actions {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-line);
  gap: 10px;
  background: #fff;
}
.float-popup-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  cursor: pointer;
}
.float-popup-checkbox input {
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.float-popup-closebtn {
  padding: 6px 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.float-popup-closebtn:hover {
  background: var(--color-primary-dark);
}
@media (max-width: 880px) {
  /* 모바일: 세 팝업을 상단에 계단식으로 배치 — 아래 콘텐츠 가림 최소화 */
  .float-popup { width: 70vw; max-width: 260px; }
  #floatPopup1 {
    top: 60px;
    left: 50%;
    transform: translateX(calc(-50% - 40px));
  }
  #floatPopup3 {
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    max-width: 260px;
    z-index: 1001;
  }
  #floatPopup2 {
    top: 120px;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(calc(-50% + 40px));
    z-index: 999;
  }
}

.popup-actions {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-line);
  gap: 12px;
}

.popup-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.popup-checkbox input {
  cursor: pointer;
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary-text);
}

.popup-close-btn {
  padding: 8px 18px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  transition: background 0.15s;
}

.popup-close-btn:hover { background: var(--color-primary-dark); }

@media (max-width: 880px) {
  .popup-overlay { padding: 12px; }
  .popup-box { max-width: 95vw; }
  .popup-actions { padding: 12px 16px; }
  .popup-checkbox { font-size: 12px; }
}

/* ========== 예약 방법 카드 ========== */
.reservation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.reservation-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reservation-card:hover {
  border-color: var(--color-primary-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.reservation-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary-text);
}

.reservation-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reservation-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--color-text);
}

.reservation-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  line-height: 1.7;
}

.reservation-contact {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary-text);
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
  margin-bottom: 14px;
}

.reservation-meta {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

@media (max-width: 880px) {
  .reservation-grid { grid-template-columns: 1fr; gap: 14px; }
  .reservation-card { padding: 28px 22px; }
  .reservation-contact { font-size: 22px; }
}

/* ========== 비급여 가격표 ========== */
.pricing-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--color-line);
  margin-bottom: 32px;
}

.pricing-tab-btn {
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  letter-spacing: -0.01em;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.pricing-tab-btn:hover {
  color: var(--color-primary-text);
}

.pricing-tab-btn.active {
  color: var(--color-primary-text);
  border-bottom-color: var(--color-primary-text);
  font-weight: 600;
}

.pricing-pane { display: none; }
.pricing-pane.active { display: block; }

@media (max-width: 880px) {
  .pricing-tab-btn { padding: 12px 18px; font-size: 14px; }
}

.price-section { margin-bottom: 48px; }

.price-section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-section-title::before {
  content: '';
  width: 6px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 2px;
  display: inline-block;
}

.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.price-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--color-line);
  line-height: 1.5;
}

.price-table tr:hover td {
  background: var(--color-bg-soft);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table .item {
  color: var(--color-text);
  font-weight: 500;
}

.price-table .item .sub {
  display: inline-block;
  margin-left: 4px;
  color: var(--color-text-light);
  font-weight: 400;
  font-size: 12.5px;
}

.price-table .price {
  text-align: right;
  color: var(--color-primary-text);
  font-weight: 600;
  white-space: nowrap;
  font-feature-settings: 'tnum';
}

@media (max-width: 880px) {
  .price-section-title { font-size: 17px; }
  .price-table { font-size: 13.5px; }
  .price-table td { padding: 11px 10px; }
}

.to-top-btn {
  position: fixed;
  top: 50%;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.15s;
  z-index: 200;
}

.to-top-btn.visible {
  opacity: 0.92;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.to-top-btn:hover {
  background: var(--color-primary-dark);
  opacity: 1;
}

.to-top-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 880px) {
  .to-top-btn { right: 14px; width: 40px; height: 40px; }
  .to-top-btn svg { width: 16px; height: 16px; }
}

/* ========== Page Banner (sub pages) ========== */
.page-banner {
  background: var(--color-primary-soft);
  padding: 60px 0;
  border-bottom: 1px solid var(--color-line);
}

.page-banner .label {
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.25em;
  color: var(--color-primary-text);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .page-banner { padding: 40px 0; }
  .page-banner h1 { font-size: 22px; }
}
