/* 포인트 컬러 */
:root {
  --point: #284c9b;
  --point-dark: #1e3a75;
  --point-light: #3d6bc9;
  --bg: #f8f9fc;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --white: #fff;
  --border: #e2e6ee;
}

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

.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;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-top: 130px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 헤더 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(40, 76, 155, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 85px;
  padding: 16px 24px;
  box-sizing: border-box;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--point);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo-wrap:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.logo {
  max-height: 31.5px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}

.logo-fallback {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 70px;
  padding-bottom: 8px;
}

.nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--point);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--point);
}

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

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--point);
}

/* 1024px 이하: PC 외 화면, 헤더 메뉴 숨김·우측 햄버거로 메뉴 접근 */
@media (max-width: 1024px) {
  .header-top {
    height: 56px;
    padding: 10px 16px;
  }
  .nav-toggle {
    display: flex;
    right: 16px;
  }
  .nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    z-index: 999;
  }
  .nav.open {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  body {
    padding-top: 56px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    right: 8px;
  }

  .header .logo {
    max-height: 22px;
  }
}

/* 섹션 공통 */
.section {
  padding: 72px 0;
}

.section:nth-child(even) {
  background: var(--white);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--point);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* 스크롤에 따라 섹션·그리드 순서대로 노출 */
.scroll-reveal .section-title,
.scroll-reveal .staff-intro,
.scroll-reveal .staff-grid > *,
.scroll-reveal .clinic-grid > *:nth-child(1),
.scroll-reveal .clinic-grid > *:nth-child(2),
.scroll-reveal .nonsurgical-grid > *,
.scroll-reveal .feature-grid-item,
.scroll-reveal .feature-grid-divider,
.scroll-reveal .equipment-slider,
.scroll-reveal .facility-header,
.scroll-reveal .facility-slider,
.scroll-reveal .parking-layout,
.scroll-reveal .info-layout > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-reveal.is-visible .section-title,
.scroll-reveal.is-visible .staff-intro {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.is-visible .staff-grid > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.scroll-reveal.is-visible .staff-grid > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.scroll-reveal.is-visible .staff-grid > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.scroll-reveal.is-visible .staff-grid > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }

.scroll-reveal.is-visible .clinic-grid > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.scroll-reveal.is-visible .clinic-grid > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }

.scroll-reveal.is-visible .nonsurgical-grid > * { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }

.scroll-reveal.is-visible .feature-grid-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.scroll-reveal.is-visible .feature-grid-divider { opacity: 0.2; transform: translateY(0); }
.scroll-reveal.is-visible .feature-grid-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.scroll-reveal.is-visible .feature-grid-item:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }

.scroll-reveal.is-visible .equipment-slider { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.scroll-reveal.is-visible .facility-header { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.scroll-reveal.is-visible .facility-slider { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.scroll-reveal.is-visible .parking-layout { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.scroll-reveal.is-visible .info-layout > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.scroll-reveal.is-visible .info-layout > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }

/* 석승엽정형외과 */
/* 히어로 (배경 이미지 슬라이드) */
.section-hero {
  position: relative;
  min-height: 820px;
  padding: 72px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--point);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

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

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

@media (max-width: 768px) {
  .section-hero {
    min-height: 560px;
    padding: 48px 0;
  }

  .hero-title .hero-title-line2 {
    display: block;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.65);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-content:not(.hero-animate) .hero-logo-wrap {
  opacity: 0;
}

.hero-content.hero-animate .hero-logo-wrap {
  animation: heroLogoIn 0.6s ease-out 0s forwards;
}

.hero-logo-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.hero-logo {
  max-height: 80px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.hero-logo-fallback {
  display: none;
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-text-slides {
  position: relative;
  min-height: 120px;
  text-align: center;
}

.hero-text-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.hero-text-slide.active:not(.hero-animate) .hero-title,
.hero-text-slide.active:not(.hero-animate) .hero-desc {
  opacity: 0;
}

.hero-text-slide.active.hero-animate .hero-title {
  animation: heroTextIn 0.5s ease-out 0.15s forwards;
}

.hero-text-slide.active.hero-animate .hero-desc {
  animation: heroTextIn 0.5s ease-out 0.35s forwards;
}

.hero-text-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  opacity: 0;
}

.hero-desc {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
  opacity: 0;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.intro-grid {
  max-width: 960px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

/* 의료진 소개 */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.staff-grid .staff-card:first-child {
  grid-column: 1 / -1;
}

.staff-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(40, 76, 155, 0.08);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(40, 76, 155, 0.12);
  border-color: var(--point-light);
}

/* 대표원장 카드: 이름·역할은 박스 밖, 박스는 사진+약력만 */
.staff-card--ceo {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.staff-ceo-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.staff-ceo-info {
  margin: 0;
  padding: 0;
}

.staff-ceo-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  justify-content: start;
}

.staff-ceo-photo-box {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(40, 76, 155, 0.08);
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 320px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.staff-ceo-boxes:hover .staff-ceo-photo-box {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(40, 76, 155, 0.12);
}

.section-staff:nth-child(even) .staff-ceo-photo-box {
  background: var(--white);
}

.staff-ceo-content-box {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(40, 76, 155, 0.08);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.staff-ceo-boxes:hover .staff-ceo-content-box {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(40, 76, 155, 0.12);
}

.staff-ceo-content-box .staff-content {
  max-height: none;
  overflow: visible;
}

.section-staff:nth-child(even) .staff-ceo-content-box {
  background: var(--white);
}

.staff-ceo-photo-box .staff-card-photo--left {
  width: 100%;
  height: 100%;
  min-height: 320px;
  position: relative;
  background: var(--border);
}

.staff-card-photo--left {
  background: var(--border);
}

.staff-card-photo--left img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.staff-ceo-photo-box .staff-card-photo--left img {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
}

.staff-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.staff-card-body .staff-content {
  flex: 1;
  max-height: none;
}

/* 부원장 카드: 이미지만 박스, 텍스트는 박스 밖 */
.staff-card--deputy {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.staff-deputy-photo-box {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(40, 76, 155, 0.08);
  border: 1px solid var(--border);
}

/* staff_deputy1: 박스 안에서 이미지 기준 위로(아래쪽이 보이도록) */
.staff-grid .staff-card--deputy:first-of-type .staff-card-photo--top img {
  object-position: bottom;
}

/* staff_deputy2: 박스 안에서 이미지 기준 아래로(위쪽이 보이도록) */
.staff-grid .staff-card--deputy:last-of-type .staff-card-photo--top img {
  object-position: top;
}

.staff-card-photo--top {
  aspect-ratio: 1;
  background: var(--border);
  overflow: hidden;
}

.staff-card-photo--top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
}

.staff-deputy-info {
  margin-top: 8px;
  margin-left: 12px;
  text-align: left;
}

/* 이름+역할 길이만큼 언더라인 (좌우 2px씩 연장) */
.staff-deputy-title {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 6px;
}

.staff-deputy-title::after {
  content: '';
  position: absolute;
  left: -2px;
  bottom: 0;
  width: calc(100% + 4px);
  height: 2px;
  background: var(--point);
}

.staff-deputy-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--point);
  margin: 0;
  letter-spacing: -0.02em;
}

.staff-deputy-role {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  margin-top: 2px;
}

.staff-intro {
  text-align: center;
  color: var(--point);
  font-size: 1.5rem;
  line-height: 1.65;
  margin: 0 auto 48px;
  max-width: 800px;
}

.staff-intro-line2 {
  display: block;
  margin-top: 0.35em;
  font-size: 1.75rem;
  color: var(--text);
}

.section-staff .staff-card {
  background: var(--bg);
}

.section-staff .staff-card--deputy,
.section-staff .staff-card--ceo {
  background: transparent;
  border: none;
  box-shadow: none;
}

.section-staff:nth-child(even) .staff-card {
  background: var(--white);
}

.section-staff:nth-child(even) .staff-card--deputy,
.section-staff:nth-child(even) .staff-card--ceo {
  background: transparent;
}

.staff-header {
  background: var(--point);
  color: var(--white);
  padding: 24px;
}

.staff-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.staff-role {
  font-size: 0.85rem;
  opacity: 0.9;
}

.staff-content {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.staff-content h4 {
  font-size: 0.95rem;
  color: var(--point);
  margin: 16px 0 8px;
}

.staff-content h4:first-child {
  margin-top: 0;
}

.staff-content ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.staff-content li {
  padding: 4px 0;
  padding-left: 1em;
  text-indent: -1em;
}

.staff-content li::before {
  content: "· ";
  color: var(--point);
}

.staff-placeholder {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-ceo-boxes {
    grid-template-columns: 1fr;
  }

  .staff-ceo-photo-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 0;
  }

  .staff-ceo-photo-box .staff-card-photo--left {
    min-height: 0;
  }

  .staff-card-photo--left {
    min-height: 280px;
  }

  .staff-card-photo--left img {
    min-height: 280px;
  }
}

/* 척추관절클리닉 */
.clinic-title {
  color: inherit;
  font-size: 1.5rem;
  line-height: 1.65;
}

.clinic-title-line1 {
  display: block;
  color: var(--point);
  font-size: 1.5rem;
}

.clinic-title-line2 {
  display: block;
  color: var(--text);
  font-size: 1.75rem;
}

.section-staff,
#staff.section {
  padding-top: 72px;
  padding-bottom: 72px !important;
  box-sizing: border-box;
}

.section-clinic {
  padding-top: 72px;
  padding-bottom: 0;
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.clinic-item {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.clinic-item:hover {
  transform: translateY(-6px);
}

.clinic-grid .clinic-item:nth-child(1),
.clinic-grid .clinic-item:nth-child(2) {
  width: 70%;
}

.clinic-grid .clinic-item:nth-child(1) {
  justify-self: end;
}

.clinic-grid .clinic-item:nth-child(2) {
  justify-self: start;
}

.clinic-item:hover {
  box-shadow: 0 12px 32px rgba(40, 76, 155, 0.15);
  border-color: var(--point-light);
}

.clinic-item-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.clinic-grid .clinic-item:nth-child(1) .clinic-item-img-wrap,
.clinic-grid .clinic-item:nth-child(2) .clinic-item-img-wrap {
  aspect-ratio: 16 / 14;
}

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

.clinic-item:hover .clinic-item-img-wrap img {
  transform: scale(1.06);
}

.clinic-item-body {
  padding: 24px 32px 32px;
}

.clinic-item h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--point);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.clinic-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 말풍선 박스 (두 카드 아래) */
.clinic-bubble {
  grid-column: 1 / -1;
  position: relative;
  max-width: 320px;
  margin: 44px auto 0;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(40, 76, 155, 0.08);
}

.clinic-faq-heading {
  grid-column: 1 / -1;
  text-align: center;
  margin: 32px 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.clinic-faq-heading-highlight {
  background: linear-gradient(to bottom, transparent 50%, rgba(102, 102, 153, 0.35) 50%);
  padding: 0 0.25em 0.08em;
  box-decoration-break: clone;
}

.clinic-bubble-question-wrap {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
  transform: translateX(-100px);
}

.clinic-bubble-img-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.1);
}
.clinic-bubble-question-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  transform: translateY(5px);
}

.clinic-bubble-question-wrap .clinic-bubble-img-circle {
  margin-left: -50px;
}

.clinic-bubble-question-wrap .clinic-bubble {
  margin-top: 0;
  margin-left: 20px;
  margin-right: 0;
}


.clinic-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 12px solid var(--white);
  filter: drop-shadow(-1px 0 0 var(--border));
}

.clinic-bubble::after {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 11px solid var(--white);
}

.clinic-bubble-text {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

.clinic-bubble-text .clinic-bubble-emphasis,
.clinic-bubble-emphasis {
  color: var(--point);
  font-weight: 700;
  font-size: 1.25rem;
}

/* 말풍선 아래 답변 말풍선 (꼬리 오른쪽) */
.clinic-bubble-reply-wrap {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 12px;
  transform: translateX(20px);
}

.clinic-bubble-reply-img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  flex-shrink: 0;
  transform: translateY(8px);
}

.clinic-bubble-reply-wrap .clinic-bubble-img-circle {
  margin-left: 20px;
}

.clinic-bubble-reply-wrap .clinic-bubble-reply {
  margin-top: 0;
  margin-left: -10px;
  margin-right: 0;
}

.clinic-bubble-reply {
  max-width: 520px;
  margin-top: 12px;
  text-align: center;
  padding: 18px 24px;
}

.clinic-bubble-reply::before {
  left: auto;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-right: none;
  border-left: 12px solid var(--white);
  filter: drop-shadow(1px 0 0 var(--border));
}

.clinic-bubble-reply::after {
  left: auto;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  border-right: none;
  border-left: 11px solid var(--white);
}

.clinic-bubble-reply .clinic-bubble-text {
  font-weight: 400;
  line-height: 1.7;
}

.clinic-bubble-reply-body {
  display: block;
  margin-top: 0.6em;
}

/* 말풍선 아래 원 5개 행 */
.clinic-circles-wrap {
  grid-column: 1 / -1;
  margin-top: 72px;
  padding-top: 72px;
  position: relative;
}

.clinic-circles-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: var(--border);
}

.clinic-grid .nonsurgical-banner.clinic-nonsurgical-banner {
  grid-column: 1 / -1;
  margin-top: 72px;
  height: auto;
  min-height: 280px;
  justify-content: flex-start;
  padding: 56px 0 120px;
}

.clinic-principle-media {
  margin-top: 48px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clinic-principle-buttons {
  display: flex;
  width: 878px;
  max-width: 100%;
  margin-bottom: 0;
}

.clinic-principle-btn {
  width: 219.5px;
  min-height: 68px;
  padding: 10px 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.clinic-principle-btn:hover {
  background: var(--point);
  border-color: var(--point);
  color: #fff;
}

.clinic-principle-btn:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.clinic-principle-btn.active {
  background: var(--point);
  border-color: var(--point);
  color: #fff;
}

.clinic-principle-btn.active:last-child {
  border-right-color: var(--point);
}

.clinic-principle-img-wrap {
  position: relative;
  width: 878px;
  max-width: 100%;
  height: 431px;
  overflow: hidden;
  background: #fff;
}

.clinic-principle-caption-wrap {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 36.4%;
  padding: 28px 24px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.clinic-principle-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  transform: translateY(-50%);
  padding: 24px 20px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.clinic-principle-caption.active {
  opacity: 1;
  visibility: visible;
}

.clinic-principle-caption-title {
  position: relative;
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #002355;
  line-height: 1.35;
  text-align: left;
  min-height: 2.8em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clinic-principle-caption-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #002355;
}

@media (min-width: 769px) {
  .clinic-principle-caption-title .caption-title-line2 {
    display: block;
  }
}

.clinic-principle-caption-body {
  margin: 0;
  padding-left: 20px;
  max-width: 100%;
  font-size: 0.8rem;
  font-weight: 400;
  color: #333;
  line-height: 1.65;
  text-align: left;
}

.clinic-principle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}

.clinic-principle-img-mobile {
  display: none;
}

.clinic-principle-desc-wrap {
  width: 570px;
  max-width: 100%;
  margin-top: 16px;
}

.clinic-principle-desc {
  display: none;
  color: #fff;
}

.clinic-principle-desc.active {
  display: block;
}

.clinic-principle-desc-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.clinic-principle-desc-body {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.clinic-circles-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 45px;
}

.clinic-circles-row + .clinic-circles-row {
  margin-top: 48px;
}

.clinic-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.clinic-circle-item:hover {
  transform: translateY(-6px) scale(1.02);
}

.clinic-circle-item-img-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.clinic-circle-item:hover .clinic-circle-item-img-wrap {
  box-shadow: 0 8px 20px rgba(40, 76, 155, 0.15), inset 0 2px 12px rgba(0, 0, 0, 0.1);
}

.clinic-circle-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.clinic-circle-item:hover .clinic-circle-item-img-wrap img {
  filter: blur(4px);
}

.clinic-circle-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}


.clinic-circle-item:hover .clinic-circle-item-overlay {
  opacity: 1;
}

.clinic-circle-item-title {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.clinic-circles-caption-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clinic-circles-row-caption {
  text-align: center;
  margin: 48px 0 16px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.clinic-circles-caption-img-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.clinic-circles-caption-img-wrap + .clinic-circles-caption-img-wrap {
  margin-top: 16px;
}

.clinic-circles-caption-img-wrap--round {
  border-radius: 12px;
  overflow: hidden;
}

.clinic-circles-caption-body {
  width: 100%;
  max-width: 800px;
  margin: 20px auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

.clinic-circles-caption-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .section-clinic .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-clinic .section-title.clinic-title {
    margin-bottom: 48px;
  }

  .clinic-title-line1,
  .clinic-title-line2 {
    display: block;
  }

  .clinic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .clinic-grid .clinic-item:nth-child(1),
  .clinic-grid .clinic-item:nth-child(2) {
    width: 100%;
    justify-self: stretch;
  }

  .clinic-item-body {
    padding: 18px 20px 24px;
  }

  .clinic-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .clinic-item p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .clinic-faq-heading {
    margin-top: 24px;
    font-size: 1rem;
  }

  .clinic-bubble-question-wrap {
    flex-direction: column;
    align-items: center;
    transform: none;
    margin-top: 16px;
    gap: 12px;
  }

  .clinic-bubble-question-wrap .clinic-bubble-img-circle {
    margin-left: 0;
  }

  .clinic-bubble-question-wrap .clinic-bubble {
    margin-left: 0;
  }

  .clinic-bubble-img-circle {
    width: 64px;
    height: 64px;
  }

  .clinic-bubble-question-img {
    width: 56px;
    height: 56px;
  }

  .clinic-bubble {
    max-width: 100%;
    margin-top: 0;
    padding: 14px 18px;
  }

  .clinic-bubble-text .clinic-bubble-emphasis,
  .clinic-bubble-emphasis {
    font-size: 1.1rem;
  }

  .clinic-bubble-reply-wrap {
    flex-direction: column;
    transform: none;
    margin-top: 12px;
    gap: 12px;
  }

  .clinic-bubble-reply-wrap .clinic-bubble-img-circle {
    margin-left: 0;
    order: 1;
  }

  .clinic-bubble-reply-wrap .clinic-bubble-reply {
    margin-left: 0;
    order: 2;
  }

  .clinic-bubble-reply-img {
    width: 64px;
    height: 64px;
  }

  .clinic-bubble-reply {
    max-width: 100%;
    padding: 14px 18px;
  }

  .clinic-bubble-reply .clinic-bubble-text {
    font-size: 0.9rem;
  }

  .clinic-bubble::before,
  .clinic-bubble::after,
  .clinic-bubble-reply::before,
  .clinic-bubble-reply::after {
    display: none;
  }

  .clinic-circles-wrap {
    margin-top: 48px;
    padding-top: 48px;
  }

  .clinic-circles-wrap::before {
    width: 60%;
  }

  .clinic-circles-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .clinic-circles-row + .clinic-circles-row {
    margin-top: 28px;
  }

  .clinic-circle-item {
    width: calc(50% - 10px);
    max-width: 140px;
  }

  .clinic-circle-item-img-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .clinic-circle-item-overlay {
    font-size: 0.8rem;
    padding: 8px;
    line-height: 1.4;
  }

  .clinic-circle-item-title {
    margin-top: 8px;
    font-size: 0.85rem;
  }

  .clinic-grid .nonsurgical-banner.clinic-nonsurgical-banner {
    margin-top: 48px;
    padding: 32px 16px 48px;
    min-height: auto;
  }

  .clinic-principle-media {
    margin-top: 28px;
  }

  .clinic-principle-buttons {
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
  }

  .clinic-principle-btn {
    width: 50%;
    min-width: 50%;
    min-height: 52px;
    padding: 12px 8px;
    font-size: 0.85rem;
    border-right: 1px solid var(--border);
  }

  .clinic-principle-btn:nth-child(2n) {
    border-right: 1px solid rgba(255, 255, 255, 0.6);
  }

  .clinic-principle-btn:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }

  .clinic-principle-img-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 0;
  }

  .clinic-principle-caption-wrap {
    position: static;
    order: 2;
    width: 100%;
    padding: 20px 16px;
    align-items: flex-start;
    min-height: 0;
  }

  .clinic-principle-caption {
    position: static;
    display: none;
    transform: none;
    padding: 0 0 16px;
    text-align: center;
  }

  .clinic-principle-caption.active {
    display: block;
  }

  .clinic-principle-caption-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
    min-height: auto;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25em;
  }

  .clinic-principle-caption-title::before {
    display: none;
  }

  .clinic-principle-caption-title .caption-title-line2 {
    display: inline;
  }

  .clinic-principle-caption-body {
    font-size: 0.75rem;
    line-height: 1.55;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    width: 80%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .clinic-principle-img-wrap .clinic-principle-img-desktop {
    display: none !important;
  }

  .clinic-principle-img-wrap .clinic-principle-img-mobile {
    display: block;
    order: 1;
    width: 100%;
    height: 320px;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
  }

  .clinic-principle-desc-wrap {
    margin-top: 12px;
  }
}

/* 비수술치료 */
.nonsurgical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nonsurgical-item {
  background: var(--bg);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.nonsurgical-item:hover {
  transform: translateY(-4px);
}

.section-nonsurgical .nonsurgical-item {
  background: var(--white);
}

.nonsurgical-item:hover {
  box-shadow: 0 12px 28px rgba(40, 76, 155, 0.12);
  border-color: var(--point-light);
}

.nonsurgical-item h3 {
  font-size: 1.15rem;
  color: var(--point);
  margin-bottom: 12px;
}

.nonsurgical-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 비수술치료 하단 배너 그리드 (높이 280px, 상하 흰색 바) */
.section-nonsurgical {
  padding: 72px 0;
}

.nonsurgical-banner {
  grid-column: 1 / -1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 280px;
  background: #002355;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.nonsurgical-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nonsurgical-banner-rule {
  display: block;
  width: 40px;
  height: 1pt;
  background: #fff;
  flex-shrink: 0;
  margin: 0 auto;
}

.nonsurgical-banner-rule:first-of-type {
  margin-bottom: 3px;
}

.nonsurgical-banner-rule:last-of-type {
  margin-top: 3px;
}

.nonsurgical-banner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 24px 32px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.65;
  font-weight: 400;
}

.nonsurgical-banner-line1 {
  display: block;
}

.nonsurgical-banner-line2 {
  display: block;
  margin-top: 0.35em;
}

.nonsurgical-banner-line3 {
  display: block;
  margin-top: 1.4em;
}

@media (max-width: 768px) {
  .nonsurgical-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nonsurgical-item {
    padding: 24px 20px;
  }

  .nonsurgical-item h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }

  .nonsurgical-item p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .section-nonsurgical {
    padding: 48px 0;
  }

  .nonsurgical-banner {
    height: auto;
    min-height: 200px;
    padding: 24px 0;
  }

  .nonsurgical-banner-inner {
    padding: 0 16px;
  }

  .nonsurgical-banner-text {
    font-size: 0.9rem;
    padding: 16px 20px;
    line-height: 1.6;
  }

  .nonsurgical-banner-line1,
  .nonsurgical-banner-line2,
  .nonsurgical-banner-line3 {
    display: block;
  }

  .nonsurgical-banner-line2 {
    margin-top: 0.3em;
  }

  .nonsurgical-banner-line3 {
    margin-top: 1em;
  }
}

/* 002355 그리드 바로 아래: 이미지 배경(12% 투명) + 좌 이미지 / 우 서브·타이틀·내용 × 3, 점선 구분 */
.section-feature-grid {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}

.feature-grid-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
}

.feature-grid-container {
  position: relative;
  z-index: 1;
}

.feature-grid-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-grid-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  transition: transform 0.3s ease;
}

.feature-grid-item:hover {
  transform: translateY(-4px);
}

.feature-grid-item:first-child {
  padding-top: 62px;
}

.feature-grid-item:last-child {
  padding-bottom: 62px;
}

.feature-grid-img-wrap {
  width: 60%;
  max-width: 60%;
  margin-left: auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
  aspect-ratio: 4 / 3;
}

.feature-grid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feature-grid-item:hover .feature-grid-img-wrap img {
  transform: scale(1.05);
}

.feature-grid-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 65%;
}

.feature-grid-subtitle {
  font-size: 0.9rem;
  color: var(--point);
  font-weight: 600;
  margin: 0;
}

.feature-grid-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  margin-top: -2px;
  letter-spacing: -0.02em;
}

.feature-grid-content {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.feature-grid-divider {
  height: 0;
  width: 70%;
  margin: 0 auto;
  border: none;
  border-top: 2px dashed var(--text-muted);
  opacity: 0.2;
}

@media (max-width: 768px) {
  .section-feature-grid {
    padding: 48px 0;
  }

  .section-feature-grid .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .feature-grid-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    padding: 28px 0;
    align-items: start;
    justify-items: start;
  }

  .feature-grid-item:first-child {
    padding-top: 32px;
  }

  .feature-grid-item:last-child {
    padding-bottom: 32px;
  }

  .feature-grid-img-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .feature-grid-body {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-items: flex-start;
    text-align: left;
  }

  .feature-grid-subtitle,
  .feature-grid-title,
  .feature-grid-content {
    text-align: left;
  }

  .feature-grid-subtitle {
    font-size: 0.85rem;
  }

  .feature-grid-title {
    font-size: 1.15rem;
  }

  .feature-grid-content {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .feature-grid-divider {
    width: 85%;
  }
}

/* 보유장비 타이틀 */
.equipment-title-line1 {
  font-size: 1.5rem;
  color: var(--point);
}

.equipment-title-line2 {
  display: block;
  font-size: 1.75rem;
  color: #1a1a1a;
}

.section-equipment .section-title.equipment-title {
  font-size: 1.5rem;
  line-height: 1.65;
}

/* 보유장비 14개 */
.section-equipment {
  background: #fff;
}

.equipment-slider {
  position: relative;
}

.equipment-slider-btn,
.equipment-dots {
  display: none;
}

.equipment-slider-viewport {
  overflow: visible;
}

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

.equipment-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  min-height: 440px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.equipment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(40, 76, 155, 0.12);
  border-color: var(--point-light);
}

.equipment-inner {
  width: 100%;
  height: 100%;
  padding: 32px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(40, 76, 155, 0.04) 0%, rgba(40, 76, 155, 0.08) 100%);
}

/* 장비 간략 설명: 한국어, 작은 폰트 */
.equipment-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 6px;
  line-height: 1.3;
}

/* 장비 이름: 볼드 영어 */
.equipment-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--point);
  margin: 0 0 8px;
  font-family: inherit;
}

/* 장비 상세 설명 */
.equipment-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin: 0 0 12px;
  padding: 0 15px;
  line-height: 1.4;
  flex: 1;
  max-width: 100%;
  box-sizing: border-box;
}

/* 이미지 영역: 카드 하단 고정 높이로 전체 하단 정렬, 하단 여백 없음 */
.equipment-img-wrap {
  width: 100%;
  height: 240px;
  min-height: 240px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  overflow: hidden;
  transition: transform 0.4s ease;
  transform-origin: center center;
}

.equipment-card:hover .equipment-img-wrap {
  transform: scale(1.05);
}

.equipment-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 세로로 긴 이미지: 아래 35% 잘리도록 확대 */
.equipment-img-wrap--tall {
  align-items: flex-start;
}

.equipment-img-wrap--tall img {
  height: 100%;
  width: auto;
  max-height: none;
  transform: scale(1.538);
  transform-origin: top center;
}

/* equipment2 이미지 20% 확대 */
.equipment-card:nth-child(2) .equipment-img-wrap img {
  transform: scale(1.2);
  transform-origin: center center;
}
.equipment-card:nth-child(2) .equipment-img-wrap--tall img {
  transform: scale(1.846);
  transform-origin: top center;
}

/* equipment10 이미지 5% 추가 확대 (위로 잘리지 않도록 이동 제거) */
.equipment-card:nth-child(10) .equipment-img-wrap img {
  transform: scale(1.1025);
  transform-origin: center center;
}
.equipment-card:nth-child(10) .equipment-img-wrap--tall img {
  transform: scale(1.696);
  transform-origin: top center;
}

/* equipment12 이미지 10% 확대 */
.equipment-card:nth-child(12) .equipment-img-wrap img {
  transform: scale(1.1);
  transform-origin: center center;
}
.equipment-card:nth-child(12) .equipment-img-wrap--tall img {
  transform: scale(1.692);
  transform-origin: top center;
}

/* equipment7 이미지 10% 축소 */
.equipment-card:nth-child(7) .equipment-img-wrap img {
  transform: scale(0.9);
  transform-origin: center center;
}
.equipment-card:nth-child(7) .equipment-img-wrap--tall img {
  transform: scale(1.384);
  transform-origin: top center;
}

/* equipment8 이미지 10% + 10% 축소 */
.equipment-card:nth-child(8) .equipment-img-wrap img {
  transform: scale(0.81);
  transform-origin: center center;
}
.equipment-card:nth-child(8) .equipment-img-wrap--tall img {
  transform: scale(1.246);
  transform-origin: top center;
}

.equipment-placeholder {
  display: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.equipment-placeholder.show {
  display: inline;
}

/* 태블릿·모바일: 보유장비 슬라이드 */
@media (max-width: 1024px) {
  .equipment-slider-btn,
  .equipment-dots {
    display: flex;
  }
  .equipment-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--point);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
  }
  .equipment-slider-btn:hover {
    background: var(--point);
    color: var(--white);
  }
  .equipment-slider-btn.prev {
    left: 8px;
  }
  .equipment-slider-btn.next {
    right: 8px;
  }
  .equipment-slider-viewport {
    overflow: hidden;
    border-radius: 12px;
  }
  .equipment-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: unset;
    gap: 0;
    width: 1400%;
    transition: transform 0.35s ease-out;
  }
  .equipment-card {
    flex: 0 0 7.142857%;
    min-width: 7.142857%;
  }
  .equipment-dots {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
  }
  .equipment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
  }
  .equipment-dot.active {
    background: var(--point);
  }
}

/* 태블릿만: 한 화면에 2장, 카드 간격 */
@media (min-width: 769px) and (max-width: 1024px) {
  .equipment-grid {
    width: calc(700% + 13 * 24px);
    gap: 24px;
  }
}

/* 모바일: 한 화면에 1장 (1400% 유지) */
@media (max-width: 768px) {
  .equipment-inner {
    padding: 24px 12px 0;
  }
  .equipment-summary {
    font-size: 0.875rem;
  }
  .equipment-name {
    font-size: 1.15rem;
  }
  .equipment-desc {
    font-size: 0.68rem;
  }
}

/* 내부시설 슬라이드 */
.section.section-facility {
  background: #002355;
}

.section-facility .section-title {
  color: #fff;
}

.section-facility .facility-header .facility-desc {
  color: #fff;
}

.facility-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.facility-logo {
  display: block;
  margin: 0 auto 0.75rem;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.facility-header .section-title {
  margin-bottom: 0.35rem;
}

.facility-desc {
  margin: 0 0 2.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.facility-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.slider-track {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16/9;
  background: #1a1a2e;
}

.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slider-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.slide-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--point) 0%, var(--point-dark) 100%);
  color: var(--white);
  font-size: 1.2rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--point);
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.2s, color 0.2s;
}

.slider-btn:hover {
  background: var(--point);
  color: var(--white);
}

.slider-btn.prev {
  left: -24px;
}

.slider-btn.next {
  right: -24px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dot.active {
  background: var(--point);
}

@media (max-width: 768px) {
  .slider-btn.prev { left: 8px; }
  .slider-btn.next { right: 8px; }
}

/* 주차장 완비 */
.section-parking {
  background: #002355;
  color: var(--text);
}

.parking-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.parking-photo {
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
  aspect-ratio: 4/3;
}

.parking-photo {
  overflow: hidden;
}

.parking-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.parking-photo:hover img {
  transform: scale(1.05);
}

.parking-body {
  min-width: 0;
}

.section-parking .section-title {
  color: #fff;
  text-align: left;
  margin-bottom: 12px;
}

.parking-text {
  text-align: left;
  font-size: 1.1rem;
  margin: 0 0 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.parking-address {
  position: relative;
  text-align: left;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  padding-top: 16px;
}

.parking-address::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 90%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .parking-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .parking-photo {
    max-width: 400px;
    margin: 0 auto;
  }

  .section-parking .section-title,
  .parking-text,
  .parking-address {
    text-align: center;
  }
}

/* 진료안내 */
.section-info {
  background: #002355;
}

.section-info .section-title {
  color: var(--point);
}

.info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.info-map {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.info-map iframe,
.info-map #info-map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.info-box {
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.section-info:nth-child(even) .info-box {
  background: var(--white);
}

.info-box .info-card {
  padding: 24px 28px;
  background: none;
  border-radius: 0;
  border: none;
}

.info-box .info-card:last-child {
  padding-bottom: 28px;
}

.info-card {
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(40, 76, 155, 0.1);
  border-color: var(--point-light);
}

.section-info .info-card {
  background: var(--bg);
}

.section-info:nth-child(even) .info-card {
  background: var(--white);
}

.info-card h3 {
  font-size: 1.1rem;
  color: var(--point);
  margin-bottom: 12px;
}

.info-card p,
.info-card ul {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.info-card li {
  padding: 4px 0;
}

.info-card .info-label {
  font-weight: 700;
}

.info-card .info-note {
  font-size: 0.85em;
  color: var(--text-muted);
}

.info-card a {
  color: var(--point);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.info-card a:hover {
  text-decoration: underline;
  color: var(--point-light);
  opacity: 0.9;
}

.info-card a.info-phone {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.info-card a.info-phone:hover {
  color: var(--text);
  opacity: 1;
}

@media (max-width: 768px) {
  .info-layout {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .info-map {
    min-height: 240px;
  }

  .section-info .section-title {
    text-align: center;
  }

  .info-box,
  .info-box .info-card {
    text-align: center;
  }
}

/* 모바일: 섹션별 중앙정렬 통일 + 타이틀 크기 조정(불필요한 줄바꿈 방지) */
@media (max-width: 768px) {
  .section-title {
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .section-clinic .section-title.clinic-title,
  .clinic-title-line1,
  .clinic-title-line2 {
    text-align: center;
  }

  .section-clinic .section-title.clinic-title {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .clinic-title-line1 {
    font-size: 1.2rem;
  }

  .clinic-title-line2 {
    font-size: 1.25rem;
  }

  .section-staff .staff-intro {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 48px;
  }

  .staff-intro-line2 {
    font-size: 1.25rem;
  }

  .section-equipment .section-title.equipment-title,
  .equipment-title-line1,
  .equipment-title-line2 {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .equipment-title-line1 {
    font-size: 1.2rem;
  }

  .equipment-title-line2 {
    font-size: 1.25rem;
  }

  .section-parking .section-title {
    font-size: 1.2rem;
  }

  .section-facility .section-title {
    font-size: 1.2rem;
  }

  .section-info .section-title {
    font-size: 1.2rem;
  }

  .clinic-faq-heading {
    text-align: center;
  }

  .clinic-bubble,
  .clinic-bubble-reply,
  .clinic-bubble-text {
    text-align: center;
  }

  .section-equipment .section-title.equipment-title,
  .equipment-title-line1,
  .equipment-title-line2 {
    text-align: center;
  }

  .section-staff .staff-intro,
  .staff-intro-line2 {
    text-align: center;
  }

  .staff-deputy-info,
  .staff-deputy-title {
    text-align: center;
  }

  .staff-ceo-boxes {
    justify-content: center;
    justify-items: center;
  }

  .staff-ceo-info,
  .staff-ceo-content-box .staff-content,
  .staff-ceo-content-box .staff-content h4,
  .staff-ceo-content-box .staff-content ul {
    text-align: center;
  }

  .staff-grid {
    justify-items: center;
  }

  .staff-grid .staff-card {
    max-width: 100%;
  }

  .section-parking .section-title,
  .parking-text,
  .parking-address {
    text-align: center;
  }

  .parking-address::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .section-facility .facility-header,
  .section-facility .section-title,
  .facility-desc {
    text-align: center;
  }

  .facility-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .section-feature-grid .feature-grid-body,
  .section-feature-grid .feature-grid-subtitle,
  .section-feature-grid .feature-grid-title,
  .section-feature-grid .feature-grid-content {
    text-align: left;
  }

  .clinic-item,
  .clinic-item-body,
  .clinic-item h3,
  .clinic-item p {
    text-align: center;
  }

  .clinic-circle-item-title {
    text-align: center;
  }

  .nonsurgical-banner-text,
  .nonsurgical-banner-line1,
  .nonsurgical-banner-line2,
  .nonsurgical-banner-line3 {
    text-align: center;
  }
}

/* 푸터 */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 48px 24px 24px;
}

.footer-logo-wrap {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-logo {
  max-height: 22px;
  width: auto;
  display: inline-block;
  opacity: 0.95;
  vertical-align: middle;
}

.footer-logo-fallback {
  display: none;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.footer-menu a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-menu a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-info {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-info p:not(.copyright) {
  white-space: pre-line;
}

.copyright {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* 우측 위젯 */
.widget {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  width: 84px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(40, 76, 155, 0.2);
  overflow: hidden;
}

.widget-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--point);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: background 0.25s ease, transform 0.25s ease;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  gap: 6px;
}

.widget-item:not(.widget-top) {
  min-height: 72px;
  padding: 14px 14px;
}

.widget-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.widget-text {
  font-size: 0.95rem;
  line-height: 1.2;
}

.widget-top {
  background: var(--text-muted);
  min-height: 38px;
  padding: 8px 14px;
  font-weight: 400;
}

.widget-item:last-child {
  border-bottom: none;
}

.widget-item:hover {
  background: var(--point-dark);
  transform: scale(1.05);
}

.widget-top:hover {
  background: var(--text);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .widget {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    width: 100%;
    max-width: none;
    min-height: 56px;
    border-radius: 0;
    box-shadow: 0 -2px 16px rgba(40, 76, 155, 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .widget-item {
    flex: 1;
    min-height: 56px;
    padding: 10px 8px;
    font-size: 0.75rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .widget-item:last-of-type {
    border-right: none;
  }

  .widget-item:not(.widget-top) {
    min-height: 56px;
    padding: 10px 8px;
  }

  .widget-item.widget-top {
    flex: 0;
    min-width: 56px;
    min-height: 56px;
    padding: 10px;
    margin-left: auto;
  }

  .widget-icon-img {
    width: 22px;
    height: 22px;
  }

  .widget-text {
    font-size: 0.75rem;
  }
}

/* 비급여항목안내 모달 */
.nonsurgical-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.nonsurgical-modal.is-open {
  display: flex;
}

.nonsurgical-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.nonsurgical-modal-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  padding: 48px 24px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nonsurgical-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--border);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.nonsurgical-modal-close:hover {
  background: var(--point);
  color: var(--white);
}

.nonsurgical-modal-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.nonsurgical-modal-images img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
