/* ===========================================================
 * 삼성올바른치과 메인 리뉴얼 CSS  (#main-renewal 스코프)
 * 기존 common.css / default.css 와 충돌 차단을 위해
 * 모든 셀렉터는 #main-renewal 하위로 작성한다.
 * 의존성: Pretendard (CDN), Swiper 11 (CDN)
 * =========================================================== */

/* 스크롤 스냅 (데스크탑) — scroll-padding-top 을 스크롤 컨테이너(html)에 적용 */
@media (min-width: 769px) {
  html {
    scroll-snap-type: y mandatory; /* 7차 수정: 헤더 fixed 적용 후 GNB 사라짐 위험 0 → mandatory 복귀로 강제 스냅 */
    scroll-padding-top: var(--mr-header-h, 70px);
  }
  /* 6차 수정 — 메인페이지 한정으로 라이브 #header_wrap 을 fixed 로 고정.
     head.php 무수정 원칙 유지하면서 CSS 만으로 처리.
     :has(#main-renewal) 셀렉터로 메인페이지만 적용 → 서브페이지/게시판 등 영향 0.
     syncHeaderHeight() 가 fixed 감지 → 헤더 높이를 --mr-header-h 에 자동 주입 →
     아래의 padding-top + section height calc 가 자동 호환. */
  body:has(#main-renewal) #header_wrap {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #fff;
  }

  /* 8차 수정 — 메인페이지 한정으로 라이브 헤더 요소 재디자인
     (.bogun → 원형 아바타 + 두 줄 태그라인, .logo → main/logo.png 이미지)
     head.php 무수정. JS 가 .bogun 내부 마크업만 교체하고, 시각화는 CSS 가 담당.
     다른 페이지에는 :has(#main-renewal) 가 안 매치되므로 영향 0. */
  /* 9차 수정: .bogun 스타일은 메인/서브 모든 페이지 적용 (스코핑 제거).
     main_renewal.js 가 .bogun 마크업을 모든 페이지에서 동적 교체.
     모바일에서는 default.css 가 .bogun display:none 처리 → 자동 안 보임. */
  #header .bogun {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    background: none !important;
    line-height: 1.4;
  }
  #header .bogun .mr-bogun-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: url("../img/main/c1.jpg") center 30% / cover no-repeat;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }
  #header .bogun .mr-bogun-tagline {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  #header .bogun .mr-bogun-tagline span {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  /* 가운데 로고 — 라이브 기본 img 강제 숨김 + main/logo.png 를 background 로 */
  body:has(#main-renewal) #header a.logo img {
    display: none !important;            /* !important 로 라이브 기본 CSS override */
    visibility: hidden;                  /* 이중 안전장치 */
  }
  body:has(#main-renewal) #header a.logo {
    display: block;
    width: 340px;
    height: 110px;
    margin: 0 auto;
    background: url("../img/main/logo.png") center / contain no-repeat;
    text-indent: -9999px;                /* 텍스트가 있어도 화면 밖으로 (preview_live 호환) */
    overflow: hidden;
  }
  /* 본문 상단에 헤더 높이만큼 패딩 → 첫 섹션이 헤더 뒤로 안 가려짐 */
  #main-renewal { padding-top: var(--mr-header-h, 70px); }
  #main-renewal > section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

#main-renewal {
  /* 토큰 */
  --mr-green:        #3a8c5c;
  --mr-green-dark:   #2f7349;
  --mr-ink:          #1a1a1a;
  --mr-ink-soft:     #6b6b6b;
  --mr-white:        #ffffff;
  --mr-overlay-25:   rgba(0, 0, 0, 0.25);
  --mr-overlay-40:   rgba(0, 0, 0, 0.40);
  --mr-overlay-50:   rgba(0, 0, 0, 0.50);
  --mr-overlay-60:   rgba(0, 0, 0, 0.60);
  --mr-overlay-70:   rgba(0, 0, 0, 0.70);

  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--mr-ink);
  word-break: keep-all;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 공통 섹션 베이스 — 고정 height + border-box (3차 수정) */
#main-renewal > section {
  position: relative;
  height: calc(100vh - var(--mr-header-h, 70px));  /* min-height → height */
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;                           /* padding 이 height 에 포함 */
}

/* 모바일: 풀스크린 스냅 해제, 자연스크롤 + 헤더 56px 보정 (3차 수정) */
@media (max-width: 768px) {
  #main-renewal > section {
    height: calc(100svh - var(--mr-header-h, 56px));
    scroll-snap-align: none;
  }
}

/* 공통 컨테이너 */
#main-renewal .mr-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  #main-renewal .mr-wrap { padding: 0 20px; }
}

/* 공통 배경 이미지 */
#main-renewal .mr-bg {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}
#main-renewal .mr-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: transparent;
}
#main-renewal .mr-overlay-25::after { background: var(--mr-overlay-25); }
#main-renewal .mr-overlay-40::after { background: var(--mr-overlay-40); }
#main-renewal .mr-overlay-50::after { background: var(--mr-overlay-50); }
#main-renewal .mr-overlay-60::after { background: var(--mr-overlay-60); }
#main-renewal .mr-overlay-70::after { background: var(--mr-overlay-70); }

#main-renewal .mr-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* 공통 카피 */
#main-renewal .mr-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--mr-green);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}
#main-renewal .mr-headline {
  font-size: clamp(28px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
#main-renewal .mr-sub {
  margin-top: 16px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--mr-ink-soft);
  line-height: 1.7;
}

/* ===== 섹션 1: 좌측 텍스트(흰 박스 카드) + 배경 + 우하단 검정 캡션 ===== */
#main-renewal .mr-sec1 { color: var(--mr-ink); }
/* 메인 카피 — 검정 굵은 글씨 (배경 박스 없음) */
#main-renewal .mr-sec1 .mr-headline {
  color: var(--mr-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-shadow: none;
}
#main-renewal .mr-sec1 .mr-headline strong {
  font-weight: 700;
  color: var(--mr-ink);
}
/* 우하단 캡션 — 의사 가운(흰색) 위라 검정 글씨로 또렷이 */
#main-renewal .mr-sec1 .mr-caption {
  position: absolute;
  right: clamp(20px, 5%, 90px);
  bottom: clamp(40px, 10%, 110px);
  color: var(--mr-ink);
  text-align: right;
  z-index: 1;
  text-shadow: none;
  margin: 0;
  line-height: 1.4;
}
#main-renewal .mr-sec1 .mr-caption-title {
  display: block;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: clamp(4px, 0.6vw, 8px);
}
#main-renewal .mr-sec1 .mr-caption-name {
  display: block;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  #main-renewal .mr-sec1 .mr-caption { right: 20px; bottom: 24px; }
}

/* ===== 섹션 2: 좌측 인물 사진 + 우측 절반 중앙 텍스트 ===== */
#main-renewal .mr-sec2 { background: var(--mr-white); }
/* 배경 이미지를 좌측에 contain 으로 배치 — 인물 사진이 좌측에 자연스레 자리 잡음 */
#main-renewal .mr-sec2 .mr-bg {
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
}
/* 우측 절반에 텍스트, 그 안에서 중앙정렬 */
#main-renewal .mr-sec2 .mr-wrap {
  max-width: none;
  padding: 0;
}
#main-renewal .mr-sec2 .mr-content {
  width: 50%;
  margin-left: auto;
  margin-right: 0;
  text-align: center;
  padding: 0 32px;
}
#main-renewal .mr-sec2 .mr-headline {
  color: var(--mr-ink);
  font-weight: 700;
}
/* 모바일: 상단 이미지 / 하단 텍스트 스택 */
@media (max-width: 768px) {
  #main-renewal .mr-sec2 {
    display: block;
    align-items: stretch;
    padding: 40px 0;
  }
  #main-renewal .mr-sec2 .mr-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: 50vh;
    background-size: contain;
    background-position: center center;
  }
  #main-renewal .mr-sec2 .mr-content {
    width: 100%;
    margin: 0;
    padding: 24px 20px 0;
    text-align: center;
  }
}

/* ===== 섹션 3: 어두운 배경, 좌하단 카피 + 중앙 상단 카운터 ===== */
#main-renewal .mr-sec3 { color: var(--mr-white); }
/* 섹션3 — 배경 이미지 2초 후 두 번째 이미지로 부드럽게 전환 */
#main-renewal .mr-sec3 .mr-bg-swap {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
#main-renewal .mr-sec3.is-swapped .mr-bg-swap {
  opacity: 1;
}
#main-renewal .mr-sec3 .mr-headline {
  color: var(--mr-white);
  position: absolute;
  /* 카운터 첫 컬럼 좌측 가장자리 + 100px 우측 이동, 좌측 정렬 */
  left: calc(5% + 100px);
  width: calc((100% - 10%) / 3);
  bottom: 10%;
  z-index: 2;
  text-align: left;
}
/* 화면 중앙에 3등분 균등 분배된 카운터 */
#main-renewal .mr-sec3 .mr-counter-row {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  z-index: 2;
  padding: 0 5%;
}
#main-renewal .mr-sec3 .mr-counter {
  text-align: center;
  color: var(--mr-white);
}
/* 라벨과 값을 동일한 큰 굵은 글씨로 통일 (디자인 시안 기준) */
#main-renewal .mr-sec3 .mr-counter .mr-counter-label,
#main-renewal .mr-sec3 .mr-counter .mr-counter-value {
  display: block;
  font-size: clamp(22px, 2.8vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--mr-white);
  opacity: 1;
}
#main-renewal .mr-sec3 .mr-counter .mr-counter-label {
  margin-bottom: clamp(8px, 1.2vw, 18px);
}
/* + 표시를 값과 동일 크기/굵기로 */
#main-renewal .mr-sec3 .mr-counter .mr-counter-value::after {
  content: "+";
  font-size: 1em;
  margin-left: 2px;
  vertical-align: baseline;
  opacity: 1;
  font-weight: 700;
}
#main-renewal .mr-sec3 .mr-counter--since .mr-counter-value::after { content: ""; }
@media (max-width: 768px) {
  #main-renewal .mr-sec3 .mr-counter-row {
    padding: 0 16px;
    gap: 8px;
  }
  #main-renewal .mr-sec3 .mr-counter .mr-counter-label,
  #main-renewal .mr-sec3 .mr-counter .mr-counter-value {
    font-size: clamp(15px, 4.5vw, 22px);
  }
  #main-renewal .mr-sec3 .mr-headline {
    left: 20px; bottom: 32px;
    width: auto;
    text-align: left;
    font-size: clamp(24px, 7vw, 36px);
  }
}

/* ===== 섹션 4: 사진 그대로 + 중앙 흰 텍스트 (그림자로 가독성 확보) ===== */
#main-renewal .mr-sec4 .mr-content {
  text-align: center;
  color: var(--mr-white);
}
#main-renewal .mr-sec4 .mr-headline {
  color: var(--mr-white);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  /* 밝은 배경 위에서도 또렷이 읽히도록 부드러운 다층 그림자 */
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.55);
}

/* ===== 섹션 5: 인테리어 풀스크린 슬라이더 (Swiper 11) ===== */
#main-renewal .mr-sec5 {
  background: #000;
  padding: 0;
  align-items: stretch; /* 섹션 베이스의 align-items: center 무력화 */
}
#main-renewal .mr-sec5 .swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}
#main-renewal .mr-sec5 .swiper-wrapper { height: 100%; }
#main-renewal .mr-sec5 .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #1a1a1a;
}
#main-renewal .mr-sec5 .swiper-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* 좌하단 텍스트 가독성을 위한 그라데이션 오버레이 */
#main-renewal .mr-sec5 .swiper-slide::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  pointer-events: none;
}
/* 좌하단 캡션 */
#main-renewal .mr-sec5 .mr-slide-caption {
  position: absolute;
  left: clamp(20px, 5vw, 90px);
  bottom: clamp(40px, 8vh, 90px);
  color: var(--mr-white);
  z-index: 2;
  max-width: min(640px, 70vw);
}
/* 데스크탑(≥769px)에서는 캡션을 100px 추가로 우측 이동 */
@media (min-width: 769px) {
  #main-renewal .mr-sec5 .mr-slide-caption {
    left: calc(clamp(20px, 5vw, 90px) + 100px);
  }
}
#main-renewal .mr-sec5 .mr-slide-caption .mr-slide-label {
  display: block;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  color: var(--mr-white);
}
#main-renewal .mr-sec5 .mr-slide-caption .mr-slide-desc {
  display: block;
  margin: 0 0 18px;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}
#main-renewal .mr-sec5 .mr-slide-caption .mr-slide-tag {
  display: block;
  margin: 0;
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--mr-white);
}
/* 밝은 배경 슬라이드 — 어두운 그라데이션 제거 + 진한 회색 텍스트 */
#main-renewal .mr-sec5 .swiper-slide.mr-slide--bright::after {
  background: none;
}
#main-renewal .mr-sec5 .swiper-slide.mr-slide--bright .mr-slide-label,
#main-renewal .mr-sec5 .swiper-slide.mr-slide--bright .mr-slide-desc,
#main-renewal .mr-sec5 .swiper-slide.mr-slide--bright .mr-slide-tag {
  color: #2a2a2a;
}
#main-renewal .mr-sec5 .swiper-slide.mr-slide--bright .mr-slide-desc {
  color: #4a4a4a;
}

/* 좌·우 끝 화살표 */
#main-renewal .mr-sec5 .swiper-button-prev,
#main-renewal .mr-sec5 .swiper-button-next {
  width: 52px; height: 52px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: var(--mr-ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  margin-top: -26px;
  z-index: 3;
  transition: background 0.2s ease;
}
#main-renewal .mr-sec5 .swiper-button-prev:hover,
#main-renewal .mr-sec5 .swiper-button-next:hover {
  background: var(--mr-white);
}
#main-renewal .mr-sec5 .swiper-button-prev { left: clamp(16px, 2.5vw, 40px); }
#main-renewal .mr-sec5 .swiper-button-next { right: clamp(16px, 2.5vw, 40px); }
#main-renewal .mr-sec5 .swiper-button-prev::after,
#main-renewal .mr-sec5 .swiper-button-next::after {
  font-size: 18px; font-weight: 700;
}
@media (max-width: 768px) {
  #main-renewal .mr-sec5 .swiper-button-prev,
  #main-renewal .mr-sec5 .swiper-button-next {
    width: 40px; height: 40px;
    margin-top: -20px;
  }
  #main-renewal .mr-sec5 .swiper-button-prev::after,
  #main-renewal .mr-sec5 .swiper-button-next::after {
    font-size: 14px;
  }
}

/* ===== 섹션 6: 진료안내 — 4구획 호버 (카드 그리드 1920×450) ===== */
#main-renewal .mr-sec6 {
  padding: 0;
  align-items: center;   /* 그리드를 섹션 세로 중앙에 배치 */
  position: relative;
  background: var(--mr-white);   /* 검정 → 흰색 */
}
/* 평소 통합 배경 — 그리드와 동일한 가로 100% × 세로 450px, 세로 중앙 */
#main-renewal .mr-sec6 .mr-bg-default {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
#main-renewal .mr-sec6 .mr-bg-default::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
/* 카드별 자체 배경 (호버 시 카드 영역 전체가 부드럽게 fade-in) */
#main-renewal .mr-sec6 .mr-treatment-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#main-renewal .mr-sec6 .mr-treatment-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.25); /* 통합 배경(0.55)보다 옅어 호버 시 환해 보임 */
}
/* 그리드 어느 카드에라도 마우스가 들어오면 4개 카드 모두 동시 fade-in */
#main-renewal .mr-sec6 .mr-treatment-grid:hover .mr-treatment-bg {
  opacity: 1;
}
/* 상단 헤드 */
#main-renewal .mr-sec6 .mr-treatment-head {
  position: absolute;
  top: clamp(40px, 7%, 80px);
  left: 0; right: 0;
  text-align: center;
  z-index: 3;
  color: var(--mr-ink);
}
#main-renewal .mr-sec6 .mr-treatment-head .mr-eyebrow {
  color: #b5b5b5;
  margin: 0;
}
#main-renewal .mr-sec6 .mr-treatment-head h2 {
  color: var(--mr-ink);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
}
/* 4구획 그리드 — flex 로 변경 (호버 시 비율 변화 → 카드 확대) */
#main-renewal .mr-sec6 .mr-treatment-grid {
  position: relative;
  z-index: 2;
  display: flex;
  height: 450px;
  width: 100%;
}
#main-renewal .mr-sec6 .mr-treatment-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  flex: 1;                              /* 평소 균등 1:1:1:1 */
  min-width: 0;                         /* flex 축소 허용 */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 7vh, 80px) clamp(20px, 2vw, 32px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: flex 0.5s ease, background-color 0.3s ease;
}
#main-renewal .mr-sec6 .mr-treatment-card:last-child {
  border-right: none;
}
/* 그리드에 마우스 진입 시: 호버한 카드는 크게, 나머지는 축소 */
#main-renewal .mr-sec6 .mr-treatment-grid:hover .mr-treatment-card:not(:hover) {
  flex: 0.5;
}
#main-renewal .mr-sec6 .mr-treatment-grid:hover .mr-treatment-card:hover {
  flex: 2.5;
}
#main-renewal .mr-sec6 .mr-treatment-content {
  position: relative;
  z-index: 1;
  text-align: left;
}
#main-renewal .mr-sec6 .mr-treatment-en {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin: 0 0 10px;
}
#main-renewal .mr-sec6 .mr-treatment-ko {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.01em;
}
#main-renewal .mr-sec6 .mr-treatment-sub {
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
/* 모바일 — 4구획 → 2x2 (flex → grid 로 복귀, 확대 효과 해제) */
@media (max-width: 768px) {
  #main-renewal .mr-sec6 .mr-treatment-grid {
    display: grid;                /* flex → grid */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: auto;
  }
  #main-renewal .mr-sec6 .mr-treatment-card {
    flex: none;                   /* 데스크탑 flex 비율 해제 */
    aspect-ratio: 1 / 1;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 32px 20px;
  }
  /* 모바일에서는 확대 효과 비활성 */
  #main-renewal .mr-sec6 .mr-treatment-grid:hover .mr-treatment-card:not(:hover),
  #main-renewal .mr-sec6 .mr-treatment-grid:hover .mr-treatment-card:hover {
    flex: none;
  }
  #main-renewal .mr-sec6 .mr-treatment-card:nth-child(2n) { border-right: none; }
  #main-renewal .mr-sec6 .mr-treatment-card:nth-child(n+3) { border-bottom: none; }
  #main-renewal .mr-sec6 .mr-treatment-head { top: 24px; }
}

/* ===== 섹션 7: 원장 인사 (단일 배경 이미지) ===== */
#main-renewal .mr-sec7 { color: var(--mr-ink); }
#main-renewal .mr-sec7 .mr-bg { background-position: center center; }
#main-renewal .mr-sec7 .mr-content {
  max-width: 560px;
  margin-left: 150px; /* 좌측에서 150px 우측 이동 */
}
/* 모바일은 화면 폭이 작으니 좌측 패딩으로 복귀 */
@media (max-width: 768px) {
  #main-renewal .mr-sec7 .mr-content { margin-left: 0; }
}
#main-renewal .mr-sec7 .mr-quote {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.7;
  margin-bottom: 36px;
  color: var(--mr-ink);
  font-weight: 500;
  position: relative;
  padding-left: 0; /* 본문 첫 글자가 이름과 동일 가로 위치에 정렬되도록 */
  padding-top: 0;
}
/* 시작 따옴표 — 본문 좌측 바깥에 두어 "한" 자 옆에 자리잡게 */
#main-renewal .mr-sec7 .mr-quote::before {
  content: "“";
  position: absolute;
  left: -45px; top: -10px;
  font-size: 60px;
  color: var(--mr-ink);
  font-family: Georgia, serif;
  line-height: 1;
}
#main-renewal .mr-sec7 .mr-quote::after {
  content: "”";
  margin-left: 6px;
  font-size: 60px;
  color: var(--mr-ink);
  font-family: Georgia, serif;
  line-height: 1;
  vertical-align: -22px;
}
#main-renewal .mr-sec7 .mr-doctor-name {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  color: var(--mr-ink);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
#main-renewal .mr-sec7 .mr-doctor-name small {
  font-size: 0.5em;
  font-weight: 500;
  margin-left: 8px;
  letter-spacing: 0.04em;
  color: var(--mr-ink-soft);
}
#main-renewal .mr-sec7 .mr-credentials {
  list-style: none;
  padding: 0; margin: 18px 0 0;
  color: var(--mr-ink);
}
#main-renewal .mr-sec7 .mr-credentials li {
  position: relative;
  padding-left: 12px;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.95;
  color: var(--mr-ink);
}
#main-renewal .mr-sec7 .mr-credentials li::before {
  content: "•";
  position: absolute; left: 0; top: 0;
  color: var(--mr-ink);
}

/* ===== 섹션 리뷰: 네이버 리뷰 마퀴 (두 행 좌우 무한 흐름) ===== */
#main-renewal .mr-sec-reviews {
  background: #fafafa;
  padding: clamp(60px, 8vw, 100px) 0;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
}
#main-renewal .mr-sec-reviews .mr-sec-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
  padding: 0 20px;
}
#main-renewal .mr-sec-reviews .mr-eyebrow {
  color: #c9a063;
  letter-spacing: 0.24em;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
#main-renewal .mr-sec-reviews .mr-sec-reviews-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  margin: 14px 0 0;
  color: var(--mr-ink);
  letter-spacing: -0.01em;
}

/* 마퀴 컨테이너 — 좌우 그라데이션 마스킹으로 가장자리 자연스럽게 페이드 */
#main-renewal .mr-marquee {
  overflow: hidden;
  width: 100%;
  margin-bottom: 20px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
#main-renewal .mr-marquee:last-of-type { margin-bottom: 0; }

#main-renewal .mr-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: mr-marquee 80s linear infinite;
  will-change: transform;
}
#main-renewal .mr-marquee--rtl .mr-marquee-track {
  animation-direction: reverse;
}
#main-renewal .mr-marquee:hover .mr-marquee-track {
  animation-play-state: paused;
}
@keyframes mr-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 리뷰 카드 */
#main-renewal .mr-review-card {
  flex: 0 0 auto;
  width: clamp(280px, 26vw, 340px);
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
}
#main-renewal .mr-review-body {
  font-size: 14px;
  line-height: 1.7;
  color: #4a4a4a;
  margin: 0;
  /* 본문 최대 7줄까지 표시 후 말줄임 */
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
#main-renewal .mr-review-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}
#main-renewal .mr-review-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #ede5d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #c9a063;
  flex-shrink: 0;
}
#main-renewal .mr-review-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}
#main-renewal .mr-review-source {
  text-align: center;
  font-size: 13px;
  color: #999999;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 0 20px;
}

@media (max-width: 768px) {
  #main-renewal .mr-review-card {
    width: 260px;
    padding: 20px 18px;
    min-height: 200px;
  }
  #main-renewal .mr-marquee-track {
    animation-duration: 60s;
    gap: 14px;
  }
  #main-renewal .mr-marquee {
    margin-bottom: 14px;
  }
}

/* 모션 환경설정 존중 — 마퀴 정지 */
@media (prefers-reduced-motion: reduce) {
  #main-renewal .mr-marquee-track {
    animation: none;
  }
}

/* ===== 섹션 8: 좌 35% 패널 + 우 65% 지도 ===== */
#main-renewal .mr-sec8 {
  padding: 0;
  background: var(--mr-white);
}
#main-renewal .mr-sec8 .mr-sec8-grid {
  display: grid;
  grid-template-columns: 35% 65%;
  width: 100%;
  min-height: calc(100vh - var(--mr-header-h, 0px));
}
#main-renewal .mr-sec8 .mr-info {
  background: #2a2a2a;
  color: var(--mr-white);
  padding: 80px 56px 80px 156px; /* 좌측 +100px 우측 이동 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#main-renewal .mr-sec8 .mr-info .mr-info-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
#main-renewal .mr-sec8 .mr-info h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#main-renewal .mr-sec8 .mr-info h2::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--mr-green);
  border-radius: 50%;
}
#main-renewal .mr-sec8 .mr-hours { margin-bottom: 32px; }
#main-renewal .mr-sec8 .mr-hours dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 8px;
  margin: 0;
  font-size: 15px;
}
#main-renewal .mr-sec8 .mr-hours dt {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
#main-renewal .mr-sec8 .mr-hours dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}
#main-renewal .mr-sec8 .mr-hours dd small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}
#main-renewal .mr-sec8 .mr-hours .mr-closed {
  position: relative;
  margin: 14px 0 0; /* 텍스트는 dt와 동일한 좌측 정렬 */
  padding: 12px 0 0; /* 구분선 아래 여백 */
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border-top: none;
}
/* 구분선 — 가운데 정렬을 위해 50px 더 왼쪽으로 평행 이동 */
#main-renewal .mr-sec8 .mr-hours .mr-closed::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100px;
  right: 50px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}
#main-renewal .mr-sec8 .mr-contact .mr-contact-label {
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; gap: 6px;
}
#main-renewal .mr-sec8 .mr-contact .mr-tel {
  display: inline-block;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  color: var(--mr-white);
  text-decoration: none;
  letter-spacing: 0.02em;
}
#main-renewal .mr-sec8 .mr-contact .mr-tel:hover { color: var(--mr-green); }
#main-renewal .mr-sec8 .mr-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: #eee;
}
#main-renewal .mr-sec8 .mr-map iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}
@media (max-width: 768px) {
  #main-renewal .mr-sec8 .mr-sec8-grid {
    grid-template-columns: 1fr;
  }
  #main-renewal .mr-sec8 .mr-info { padding: 40px 24px; }
  #main-renewal .mr-sec8 .mr-map { min-height: 320px; aspect-ratio: 4 / 3; }
}

/* 접근성 — 키보드 포커스 표시 */
#main-renewal a:focus-visible,
#main-renewal button:focus-visible {
  outline: 2px solid var(--mr-green);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 모션 환경설정 존중 */
@media (prefers-reduced-motion: reduce) {
  #main-renewal *,
  #main-renewal *::before,
  #main-renewal *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== 스크롤 다운 인디케이터 (모든 섹션 하단 중앙 고정) ===== */
.mr-scroll-indicator {
  position: fixed;
  bottom: clamp(18px, 3vh, 36px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  color: #ffffff;
  /* 어두운/밝은 배경 모두에서 보이도록 강한 다중 그림자 */
  filter:
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.6))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: opacity 0.4s ease;
}
.mr-scroll-indicator.is-hidden {
  opacity: 0;
}
.mr-scroll-indicator svg {
  display: block;
  width: 14px;
  height: auto;
}
.mr-scroll-indicator .mr-scroll-mouse {
  width: 20px;
}
/* 마우스 휠 점 애니메이션 — 위→아래 반복 */
.mr-scroll-indicator .mr-scroll-mouse line {
  animation: mrScrollMouseDot 1.6s ease-in-out infinite;
}
@keyframes mrScrollMouseDot {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(6px); opacity: 1; }
}
/* 모션 환경설정 존중 — 점 애니메이션 정지 */
@media (prefers-reduced-motion: reduce) {
  .mr-scroll-indicator .mr-scroll-mouse line {
    animation: none;
  }
}
@media (max-width: 768px) {
  .mr-scroll-indicator { display: none; }  /* 모바일은 자연스크롤이라 인디케이터 불필요 */
}

/* =====================================================
   에어플로우 단계별 스케일링 카드 섹션 — co_id=gum 전용
   적용 페이지: /bbs/content.php?co_id=gum
   추가일: 2026-05-28
   배경: 에디터 콘텐츠 필터가 display/linear-gradient/box-shadow/border-radius/overflow 등을 strip 하므로,
   인라인 대신 신규 클래스로 분리해 stylesheet에서 디자인 100% 복원.
   다른 페이지 영향 0 (어디서도 .gum_steps 미사용).
   ===================================================== */
.gum_steps {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 100px 20px;
  text-align: center;
}
.gum_steps > h2 {
  margin: 0 0 60px 0;
  color: #145cab;
  font-size: 40px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}
.gum_steps > h2 strong { font-weight: 700; }

.gum_steps .step_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.gum_steps .step_item {
  flex: 1 1 280px;
  max-width: 380px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gum_steps .step_item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(20, 92, 171, 0.12);
}

/* 이미지 영역 — 좌상단 파란 클립 코너 + 흰 이탤릭 숫자 */
.gum_steps .step_img {
  position: relative;
  background: #f6f9fc;
  padding: 30px 14px 20px 14px;
}
.gum_steps .step_img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 60px solid #145cab;
  border-right: 60px solid transparent;
  z-index: 0;
}
.gum_steps .step_num {
  position: absolute;
  top: 6px;
  left: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.5px;
  z-index: 1;
}
.gum_steps .step_img img {
  position: relative;
  z-index: 0;
  max-width: 100%;
  height: auto;
}

/* 본문 영역 */
.gum_steps .step_body {
  padding: 26px 20px 30px 20px;
  text-align: center;
}
.gum_steps .step_title {
  display: block;
  margin: 0 0 14px 0;
  color: #145cab;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.gum_steps .step_desc {
  margin: 0;
  color: #666666;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .gum_steps .step_item { flex: 1 1 calc(50% - 24px); max-width: 380px; }
}
@media (max-width: 768px) {
  .gum_steps { padding: 0 20px 60px 20px; }
  .gum_steps > h2 { margin: 0 0 36px 0; font-size: 28px; }
  .gum_steps .step_list { gap: 20px; }
  .gum_steps .step_item { flex: 1 1 100%; max-width: 100%; }
  .gum_steps .step_title { font-size: 20px; }
  .gum_steps .step_desc { font-size: 14px; }
}
