:root {
  --teal: #0db1ca;
  --teal-dark: #098298;
  --teal-light: #5edef1;
  --accent-font: 'Gmarket Sans', 'Malgun Gothic', sans-serif;
  --ink: #2b2f33;
  --ink-soft: #5a6065;
  --cream: #faf8f4;
  --line: #e7e2d8;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Gmarket Sans", "Malgun Gothic", dotum, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* 헤더 */
#treatment, #doctors, #location { scroll-margin-top: 90px; }

header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
header.site .brand { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 27px; flex: none; font-family: var(--accent-font); }
header.site .header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-call {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease;
}
.btn-call:hover { background: var(--teal-dark); }
.btn-call svg { width: 14px; height: 14px; flex: none; color: #fff; }
.mark {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
}
footer.site .mark { width: 30px; height: 30px; }
header.site nav { display: flex; gap: 28px; font-size: 17px; }
header.site nav .nav-disabled { color: #b8b8b8; cursor: default; }
header.site nav a:hover { color: var(--teal); }

/* 모바일 메뉴(햄버거) */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  flex: none;
}
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* 플로팅 상담 버튼 */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 40;
}
.floating-actions a {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  transition: transform .15s ease;
}
.floating-actions a:hover { transform: translateY(-2px); }
.floating-actions .fab-home { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.floating-actions .fab-home:hover { background: var(--cream); }
.floating-actions .fab-home svg { width: 26px; height: 26px; }
.floating-actions .fab-blog { background: #03C75A; color: #fff; font-family: var(--accent-font); font-weight: 800; font-size: 20px; }
.floating-actions .fab-blog:hover { background: #02a84c; }
.floating-actions .fab-call { background: var(--teal); color: #fff; }
.floating-actions .fab-call:hover { background: var(--teal-dark); }
.floating-actions .fab-call svg { width: 29px; height: 29px; }
.floating-actions .fab-kakao { background: #FEE500; color: #391B1B; }
.floating-actions .fab-kakao svg { width: 31px; height: 31px; }
@media (max-width: 520px) {
  .floating-actions { right: 14px; bottom: 16px; gap: 10px; }
  .floating-actions a { width: 56px; height: 56px; }
}

/* 히어로 */
.hero {
  background: var(--cream);
  padding: 72px 0;
  text-align: center;
}
.hero .eyebrow {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  font-family: var(--accent-font);
}
.hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 14px 0 18px;
  line-height: 1.4;
  font-family: var(--accent-font);
  word-break: keep-all;
}
.hero h1 strong { color: var(--teal-dark); white-space: nowrap; }
.hero p { color: var(--ink-soft); font-size: 16px; max-width: 560px; margin: 0 auto; word-break: keep-all; }
/* 히어로 설명문 — PC는 자연 줄바꿈, 모바일은 지정 줄바꿈(이종옥 지시, 2026-11-12) */
.hero .mobile-only { display: none; }
@media (max-width: 760px) {
  .hero .desktop-only { display: none; }
  .hero .mobile-only { display: block; }
}

/* 히어로 — 사진 배경 버전(초안용) */
.hero.photo {
  position: relative;
  background-size: cover;
  background-position: center 65%;
  padding: 0;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}
.hero.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 45%, rgba(10,10,10,.5) 100%);
}
.hero.photo .wrap { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 40px; }
.hero.photo .eyebrow { color: #fff; opacity: .85; }
.hero.photo h1, .hero.photo h1 strong { color: #fff; }
.hero.photo p { color: rgba(255,255,255,.92); }

/* 섹션 공통 */
section { padding: 64px 0; }
section.alt { background: var(--cream); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--accent-font); }
.section-head h2 { font-size: 26px; margin: 8px 0 10px; font-family: var(--accent-font); }
.section-head p { color: var(--ink-soft); font-size: 15px; }

/* 강점 4개 */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.values .value { text-align: center; padding: 20px 10px; }
.values .value strong { display: block; font-size: 16px; margin-top: 4px; font-family: var(--accent-font); color: var(--teal); }

/* 진료과목 카드 */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow .15s ease, transform .15s ease;
}
.service-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.service-card h3 { font-size: 17px; margin: 0 0 8px; font-family: var(--accent-font); }
.service-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* 의료진 */
.doctors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.doctor-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.doctor-card .name { font-size: 20px; font-weight: 700; font-family: var(--accent-font); }
.doctor-card .role { color: var(--teal-dark); font-size: 14px; margin-bottom: 14px; }
.doctor-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.doctor-card ul li { margin-bottom: 4px; }
.doctor-card .specialty { margin-top: 14px; font-size: 13px; color: var(--teal-dark); }

/* 의료진 — 사진 원본 비율 그대로(크롭 없음), 가운데 여백에 제목만 자연스럽게, 카드는 아래 일반 배치 — 2026-11-12 이종옥 승인("나쁘지 않네"), 기본 패턴으로 기억 */
#doctors.photo-bg { padding-top: 0; }
#doctors.photo-bg .doctors-photo {
  width: 100%;
  aspect-ratio: 1903 / 470;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}
#doctors.photo-bg .doctors-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 42% 85% at center, rgba(9,34,38,.58) 0%, rgba(9,34,38,.26) 55%, rgba(9,34,38,0) 78%);
}
#doctors.photo-bg .doctors-photo .section-head {
  position: relative;
  z-index: 1;
  max-width: 380px;
  padding: 0 16px;
  margin-bottom: 0;
}
#doctors.photo-bg .doctors-photo .section-head .eyebrow { color: #fff; opacity: .9; }
#doctors.photo-bg .doctors-photo .section-head h2 { color: #fff; }
#doctors.photo-bg .doctors-photo .section-head p { color: rgba(255,255,255,.92); font-size: 13px; word-break: keep-all; }
@media (max-width: 760px) {
  /* 모바일에서는 사진 비율 유지 시 띠가 96px 안팎으로 짧아진다 — 제목을 작게 맞춰서
     그 안에 넣는다. 얼굴 위로 글자가 살짝 겹치는 것은 감수한다(이종옥 지시, 2026-11-12). */
  #doctors.photo-bg .doctors-photo .section-head { max-width: 260px; padding: 0 12px; }
  #doctors.photo-bg .doctors-photo .section-head .eyebrow { font-size: 10px; letter-spacing: .05em; }
  #doctors.photo-bg .doctors-photo .section-head h2 { font-size: 17px; margin: 3px 0 0; line-height: 1.25; }
  #doctors.photo-bg .doctors-photo .section-head p { display: none; }
}

/* 내부 시설 — 히어로 1장 + 아래 3장 */
.gallery-b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-b .hero-shot { grid-column: 1 / -1; width: 100%; display: block; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.gallery-b img:not(.hero-shot) { width: 100%; display: block; border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; }

/* 약도 — 지도+주소·주차 나란히 */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 100%; display: block; border: 0; }
.map-embed svg { width: 100%; height: 100%; display: block; }
.map-embed .naver-link {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.map-embed .naver-link .naver-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #03C75A;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  flex: none;
}

/* 주차 안내 */
.parking-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.parking-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.parking-card:last-child { border-bottom: 0; padding-bottom: 0; }
.parking-card .name { font-weight: 700; margin-bottom: 6px; }
.parking-card p { color: var(--ink-soft); font-size: 14px; margin: 0 0 12px; }
.parking-card .map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
}
.parking-card .map-link:hover { text-decoration: underline; }

/* 안내 */
.info-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.info-grid dl { margin: 0; }
.info-grid dt { font-weight: 700; margin-top: 16px; }
.info-grid dt:first-child { margin-top: 0; }
.info-grid dd { margin: 4px 0 0; color: var(--ink-soft); }

/* 체크리스트 / 번호 카드 (서브페이지 공통) */
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-list li {
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px 16px 56px;
  margin-bottom: 12px;
  position: relative;
  color: var(--ink-soft);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 28px 0;
  font-size: 16px;
  color: var(--ink);
}
.quote-box p { margin: 0 0 10px; }
.quote-box p:last-child { margin-bottom: 0; }

.note-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* 자주 묻는 질문 */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 24px;
  margin-bottom: 12px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 0;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "Q.";
  color: var(--teal-dark);
  margin-right: 8px;
}
.faq-list details p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 18px;
  padding-left: 22px;
}

/* 연락 수단 버튼 묶음 (오시는 길) */
.contact-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* 미니 달력 */
.mini-calendar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #fff;
}
.mini-calendar .cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mini-calendar .cal-header {
  font-weight: 700;
  font-family: var(--accent-font);
  color: var(--ink);
}
.mini-calendar .cal-arrow {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.mini-calendar .cal-arrow:hover { border-color: var(--teal); color: var(--teal-dark); }
.mini-calendar table { width: 100%; border-collapse: collapse; text-align: center; }
.mini-calendar th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 0 8px;
}
.mini-calendar th.sun { color: #d9534f; }
.mini-calendar th.sat { color: var(--teal-dark); }
.mini-calendar td {
  font-size: 13px;
  padding: 6px 0;
  color: var(--ink);
}
.mini-calendar td.sun { color: #d9534f; font-weight: 600; }
.mini-calendar .day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  color: var(--ink);
  font-weight: 600;
}
.mini-calendar td.sat .day-badge { border-color: var(--teal-dark); color: var(--teal-dark); }
.mini-calendar .day-badge.today-badge {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
}
.mini-calendar .cal-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}
.btn-contact:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-contact.call { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-contact.call:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-contact svg { width: 13px; height: 13px; vertical-align: -2px; }
.btn-contact.kakao { background: #FEE500; border-color: #FEE500; color: #391B1B; }
.btn-contact.kakao:hover { background: #f5db00; color: #391B1B; }

/* 서브페이지 서브 네비 */
.subnav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.subnav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
}
.subnav a.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* 푸터 */
footer.site {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
footer.site .brand-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; font-size: 20px; font-weight: 700; color: var(--ink); font-family: var(--accent-font); }
footer.site .brand-line img { height: 22px; }

@media (max-width: 860px) {
  header.site .wrap { position: relative; }
  .nav-burger { display: flex; order: 5; }
  header.site nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  header.site nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  header.site nav a:first-child { border-top: none; }
  .nav-toggle:checked ~ nav { display: flex; }
  .values, .services, .doctors { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .map-embed { aspect-ratio: 4/3; }
}
@media (max-width: 520px) {
  .values, .services, .doctors { grid-template-columns: 1fr; }
  /* 좁은 화면에서 전화번호 글자가 화면 밖으로 넘친다 — 아래 플로팅 전화 버튼이 이미 있어 숨겨도 기능 손실 없음 */
  .btn-call { display: none; }
}

/* 블로그(컬럼) 목록 */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.blog-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.blog-card .tag { color: var(--teal-dark); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; margin: 0 0 8px; font-family: var(--accent-font); }
.blog-card h3 { font-size: 19px; margin: 0 0 8px; font-family: var(--accent-font); color: var(--ink); word-break: keep-all; }
.blog-card p.excerpt { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; word-break: keep-all; }
.blog-card .blog-date { font-size: 13px; color: var(--ink-soft); margin: 0; }

.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; font-size: 14px; }
.blog-pagination a, .blog-pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 10px;
}
.blog-pagination span.current { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.blog-pagination a:hover { border-color: var(--teal); color: var(--teal-dark); }

/* 블로그 상세(칼럼) */
.article-block { max-width: 760px; margin: 0 auto; }
.article-back { display: inline-block; font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.article-back:hover { color: var(--teal-dark); }
.article-meta { color: var(--teal-dark); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; margin: 0 0 8px; font-family: var(--accent-font); }
.article-block h1 { font-size: 26px; margin: 0 0 24px; font-family: var(--accent-font); line-height: 1.4; }
.article-body h2 { font-size: 19px; margin: 32px 0 12px; font-family: var(--accent-font); }
.article-body p { font-size: 16px; color: var(--ink); margin: 0 0 16px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.article-body table th, .article-body table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; word-break: keep-all; }
.article-body table th { background: var(--cream); color: var(--ink); font-family: var(--accent-font); }
@media (max-width: 520px) {
  .article-body table { font-size: 13px; }
  .article-body table th, .article-body table td { padding: 8px 8px; }
}
.article-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 24px 28px;
  text-align: center;
  margin: 36px 0;
}
.article-cta p { margin: 0 0 14px; font-size: 15px; color: var(--ink); }
.ref-list { padding-left: 18px; color: var(--ink-soft); font-size: 13px; }
.ref-list li { margin-bottom: 6px; }

/* 작성 의료진 */
.article-author { margin: 32px 0; }
.article-author h2 { font-size: 16px; margin: 0 0 12px; font-family: var(--accent-font); color: var(--ink-soft); }
.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 20px 24px;
}
.author-card .mark-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--accent-font);
  flex: none;
}
.author-card .name { font-size: 16px; font-weight: 700; margin: 0 0 4px; font-family: var(--accent-font); }
.author-card .cred { font-size: 13px; color: var(--ink-soft); margin: 0 0 6px; }
.author-card a { font-size: 13px; color: var(--teal-dark); font-weight: 600; }
.author-card a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .blog-card { padding: 20px 22px; }
  .article-block h1 { font-size: 22px; }
}
