/* =============================================
   큐브산부인과 메인페이지 리뉴얼 CSS
   260528
   ============================================= */
   @font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}


/* --- 변수 --- */
:root {
  --color-brown: #8B6F5E;
  --color-brown-light: #A5846F;
  --color-brown-dark: #6B5043;
  --color-beige: #F7F0E8;
  --color-beige-dark: #EDE3D7;
  --color-text: #333333;
  --color-text-sub: #666666;
  --color-text-light: #999999;
  --color-white: #ffffff;
  --color-border: #E0D5C8;
  --font-ko: 'Noto Serif KR', 'Noto Sans KR', '나눔명조', serif;
  --font-ko-sans: 'Noto Sans KR', '맑은 고딕', sans-serif;
  --font-en: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

/* =============================================
   섹션 공통
   ============================================= */
.renewal-section {
  width: 100%;
}
*{
  font-family: 'Pretendard';
}

/* =============================================
   1. 메인 비주얼 (inc_main_visual.php 영역)
   ============================================= */
.main-visual-wrap {
  position: relative;
  width: 100%;
  background: #f0ebe3;
  overflow: hidden;
  min-height: 520px;
}

/* =============================================
   2. 배너 이미지 / 텍스트 영역 (m-bn-img, m-bn-txt)
   기존 구조 유지하되 숨김 처리 또는 새 디자인 적용
   ============================================= */
.m-bn-img,
.m-bn-txt {
  display: none; /* 새 디자인에서 제거 */
}

/* =============================================
   3. 진료안내 섹션
   ============================================= */
.section-medical {
  padding: 80px 0 90px;
  background: #fff;
  text-align: center;
}

.section-medical .section-label {
  font-size: 15px;
  letter-spacing: 0.25em;
  color: var(--color-brown-light);
  text-transform: uppercase;
  display: block;
}

.section-medical .section-title {
  font-family: var(--font-ko);
  font-size: 40px;
  font-weight: 700;
  color: #111;
  margin: 0 0 50px;
  letter-spacing: -0.02em;
}

.medical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.medical-item {
  padding: 60px 10px 50px;
  text-align: center;
  border: 1px solid var(--color-border);
  margin: -1px 0 0 -1px;
  transition: background 0.25s, box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  align-items: center;
}

.medical-item:hover {
  background: var(--color-beige);
  z-index: 1;
  position: relative;
  box-shadow: 0 4px 20px rgba(139,111,94,0.13);
}

.medical-item .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.medical-item .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.medical-item .item-name {
  font-family: 'Pretendard';
  font-size: 21px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  margin-top: 8px;
  letter-spacing: -1px;
  line-height: 20px;
}

.medical-item .item-desc {
  font-family: 'Pretendard';
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.medical-item .arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--color-brown-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  transition: background 0.2s, border-color 0.2s;
}

.medical-item:hover .arrow-btn {
  background: var(--color-brown);
  border-color: var(--color-brown);
}

.medical-item .arrow-btn svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--color-brown);
  stroke-width: 2;
  transition: stroke 0.2s;
}

.medical-item:hover .arrow-btn svg {
  stroke: #fff;
}

/* =============================================
   4. ABOUT CUBE 섹션
   ============================================= */
.section-about {
  background: var(--color-beige);
  padding: 70px 0;
  overflow: hidden;
}

.section-about .about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.section-about .about-content {
  flex: 1;
  padding-right: 60px;
}

.section-about .section-label {
  font-size: 15px;
  letter-spacing: 0.25em;
  color: var(--color-brown-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0;
}


.section-about .about-title {
  font-family: var(--font-ko);
  font-size: 40px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin: 0 0 30px;
  letter-spacing: -0.03em;
}

.section-about .about-desc {
  font-family: 'Pretendard';
  font-size: 18px;
  color: #333;
  line-height: 25px;
  margin-bottom: 24px;
  letter-spacing: -.5px;
}

.section-about .about-name {
  font-family: 'Pretendard';
  font-size: 18px;
  color: #333;
  font-weight: 700;
}

.section-about .about-img {
  flex: 0 0 340px;
  text-align: right;
  position: relative;
}

.section-about .about-img img {
  width: 400px;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* =============================================
   5. 오시는길 / 지도 섹션
   ============================================= */
.section-location {
  background: #fff;
  width: 1400px;
  margin: 100px auto 0;
}

.location-map-wrap {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
  background: #e8e4de;
  border-radius: 20px;
}

.location-map-wrap img,
.location-map-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.location-info-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 40px 60px;
  display: flex;
  gap: 400px;
  align-items: flex-start;
}

.location-left {
  flex: 0 0 auto;
}

.location-left .section-label {
  font-size: 15px;
  letter-spacing: 0.25em;
  color: var(--color-brown-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0;
}

.location-left .location-title {
  font-family: var(--font-ko);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.location-left .btn-map {
  display: inline-block;
  padding: 11px 22px;
  background: transparent;
  border: 1.5px solid var(--color-brown);
  color: var(--color-brown);
  
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.location-left .btn-map:hover {
  background: var(--color-brown);
  color: #fff;
}

.location-right {
  flex: 1;
}

/* 진료시간 + 오시는길 공통 행 */
.hours-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.hours-row + .hours-row {
  margin-top: 24px;
}

/* 라벨 (진료시간 / 오시는길) */
.hours-label {
  flex: 0 0 72px;
  font-family: var(--font-ko-sans);
  font-size: 18px;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--color-brown);
  padding-top: 2px;
  white-space: nowrap;
}

/* 테이블 영역 */
.hours-body {
  flex: 1;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ko-sans);
  font-size: 14px;
  margin-bottom: 14px;
  margin-top: 9px;
}

.hours-table tr {
  line-height: 1;
}

.hours-table tr + tr td,
.hours-table tr + tr th {
  padding-top: 14px;
}

.hours-table th {
  font-family: 'Pretendard';
  font-size: 16px;
  color: var(--color-text);
  font-weight: 500;
  padding: 0 28px 0 0;
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
  width: 120px;
}

.hours-table td {
  font-family: 'Pretendard';
  padding: 0;
  vertical-align: top;
  font-size: 16px;
  color: #111;
  font-weight: 600;
}

.hours-notes {
  font-family: 'Pretendard';
  font-size: 12.5px;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 0;
}

.hours-notes p {
  font-family: 'Pretendard';
  margin: 0;
  padding: 0;
  font-size: 14px;
  margin-bottom: -3px;
}

.hours-notes p::before {
  content: '* ';
}

/* 오시는길 주소 */
.location-addr {
  font-family: 'Pretendard';
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.7;
  padding-top: 2px;
}

.location-addr strong {
  display: none; /* 라벨은 .hours-label 로 대체 */
}


/* =============================================
   6. CTA / 상담 섹션
   ============================================= */
.section-cta {
  background: var(--color-beige);
  padding: 72px 0 68px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.section-cta .cta-title {
  font-family: var(--font-ko);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.section-cta .cta-desc {
  font-family: 'Pretendard';
  font-size: 18px;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin: 0 0 60px;
  letter-spacing: -.5px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 40px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-width: 160px;
  justify-content: center;
}

.cta-btn:hover {
  border-color: var(--color-brown);
  box-shadow: 0 4px 16px rgba(139,111,94,0.15);
}

.cta-btn .btn-icon {
  font-size: 18px;
  line-height: 1;
}

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

.cta-btn.cta-phone .btn-icon { color: var(--color-brown); }
.cta-btn.cta-kakao .btn-icon { color: #f5c842; }
.cta-btn.cta-naver .btn-icon { color: #03c75a; }

/* =============================================
   m-bn word 섹션 (기존 word 섹션 오버라이드)
   ============================================= */
.m-bn.word {
  display: none; /* 새 섹션들로 대체 */
}

/* =============================================
   기존 new_map_wrap 숨김
   ============================================= */
.new_map_wrap {
  display: none;
}

/* =============================================
   컨테이너 공통
   ============================================= */
.renewal-con {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   구분선 장식
   ============================================= */
.deco-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}


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

/* ── 1280px 이하: 컨테이너 여백 조정 ── */
@media (max-width: 1280px) {
  .section-location {
    width: auto;
    margin: 80px 40px 0;
  }

  .location-info-wrap {
    gap: 60px;
    padding: 40px 0 50px;
  }
}

/* ── 1024px 이하: 2단 → 세로 전환 ── */
@media (max-width: 1024px) {
  /* 공통 컨테이너 */
  .renewal-con {
    padding: 0 24px;
  }

  /* 진료안내 그리드: 4열 유지하되 여백 축소 */
  .medical-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 100%;
    padding: 0 20px;
  }

  .medical-item {
    padding: 40px 8px 36px;
  }

  .medical-item .item-name {
    font-size: 18px;
  }

  .medical-item .item-desc {
    font-size: 13px;
  }

  /* About 섹션 */
  .section-about {
    padding: 60px 0;
  }

  .section-about .about-inner {
    flex-direction: column-reverse;
    padding: 0 24px;
    gap: 32px;
  }

  .section-about .about-content {
    padding-right: 0;
  }

  .section-about .about-img {
    flex: none;
    text-align: center;
    width: 100%;
  }

  .section-about .about-img img {
    width: 220px;
    height: 280px;
  }

  /* 오시는길 */
  .section-location {
    width: auto;
    margin: 60px 24px 0;
  }

  .location-info-wrap {
    flex-direction: column;
    gap: 36px;
    padding: 40px 0 50px;
    max-width: 100%;
  }

  .location-right {
    width: 100%;
  }

  .hours-row {
    gap: 24px;
  }

  .hours-label {
    flex: 0 0 80px;
  }
}

/* ── 768px 이하: 모바일 ── */
@media (max-width: 768px) {
  /* 공통 */
  .renewal-con {
    padding: 0 16px;
  }

  /* 진료안내 */
  .medical-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
  }

  .section-medical {
    padding: 52px 0 56px;
  }

  .section-medical .section-label {
    font-size: 13px;
  }

  .section-medical .section-title {
    font-size: 24px;
    padding: 0 20px;
    margin-bottom: 32px;
  }

  .medical-item {
    padding: 32px 8px 28px;
    border-radius: 14px;
  }

  .medical-item .icon-wrap {
    width: 48px;
    height: 48px;
  }

  .medical-item .item-name {
    font-size: 16px;
    line-height: 1.3;
  }

  .medical-item .item-desc {
    font-size: 12px;
    display: none; /* 모바일에서 설명 숨김 */
  }

  /* About */
  .section-about {
    padding: 50px 0;
  }

  .section-about .about-inner {
    padding: 0 16px;
    gap: 28px;
  }

  .section-about .section-label {
    font-size: 13px;
  }

  .section-about .about-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .section-about .about-desc {
    font-size: 15px;
    line-height: 1.75;
  }

  .section-about .about-img img {
    width: 160px;
    height: 200px;
  }

  /* 오시는길 */
  .section-location {
    margin: 48px 16px 0;
  }

  .location-map-wrap {
    height: 240px;
    border-radius: 14px;
  }

  .location-info-wrap {
    padding: 32px 0 40px;
    gap: 28px;
  }

  .location-left .section-label {
    font-size: 13px;
  }

  .location-left .location-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .hours-row {
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .hours-label {
    flex: 0 0 100%;
    font-size: 16px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .hours-body {
    width: 100%;
  }

  .hours-table th {
    font-size: 14px;
    width: 100px;
    padding-right: 16px;
  }

  .hours-table td {
    font-size: 14px;
  }

  .hours-table tr + tr td,
  .hours-table tr + tr th {
    padding-top: 10px;
  }

  .hours-notes p {
    font-size: 12px;
  }

  .location-addr {
    font-size: 14px;
  }

  /* CTA */
  .section-cta {
    padding: 56px 0 52px;
  }

  .section-cta .cta-title {
    font-size: 24px;
    padding: 0 20px;
  }

  .section-cta .cta-desc {
    font-size: 15px;
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px;
    gap: 12px;
  }

  .cta-btn {
    min-width: auto;
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* ── 480px 이하: 소형 모바일 ── */
@media (max-width: 480px) {
  .medical-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px;
  }

  .medical-item {
    padding: 24px 6px 20px;
    border-radius: 12px;
  }

  .medical-item .item-name {
    font-size: 14px;
  }

  .section-medical .section-title,
  .section-about .about-title,
  .section-cta .cta-title,
  .location-left .location-title {
    font-size: 20px;
  }

  .section-about .about-desc {
    font-size: 14px;
  }

  .location-map-wrap {
    height: 200px;
    border-radius: 10px;
  }
}
