/* ============================================================
   common.css — 마포공덕서울비뇨의학과 상세페이지 공통 스타일
   사용법: <link rel="stylesheet" href="common.css">
   버전: 1.0 / 2025
   ============================================================ */

/* ──────────────────────────────────────────────
   1. RESET & BASE
   ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 18px;
  color: #1a2236;
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
strong { font-weight: 700; }
a { color: inherit; text-decoration: none; }

/* ──────────────────────────────────────────────
   2. CSS 변수 (컬러·그림자·반경)
   ────────────────────────────────────────────── */
:root {
  /* 브랜드 컬러 */
  --primary:        #0a4fa8;
  --primary-dark:   #073a7c;
  --primary-light:  #e8f0fb;
  --accent:         #1e90d8;
  --accent-light:   #d6eef9;

  /* 텍스트 */
  --text-dark:  #1a2236;
  --text-mid:   #3d4f6e;
  --text-muted: #7a8ca8;

  /* 배경 */
  --white:       #ffffff;
  --bg-light:    #f5f8fd;
  --bg-section:  #f7f7f7;

  /* 경고/성공 */
  --red:          #e63946;
  --red-light:    #fde8ea;
  --green:        #1a9e5f;
  --green-light:  #e6f7ef;
  --orange:       #e67e22;
  --orange-light: #fff3e0;

  /* 기타 */
  --border:  #dce6f5;
  --shadow:  0 8px 32px rgba(10,79,168,0.10);
  --shadow-lg: 0 20px 56px rgba(10,79,168,0.14);
  --radius:  4px;
}

/* ──────────────────────────────────────────────
   3. 레이아웃
   ────────────────────────────────────────────── */

/* 기본 inner 래퍼 */
.inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ──────────────────────────────────────────────
   4. 섹션 공통 헤더 (.sec-head)
   ────────────────────────────────────────────── */
.sec-head {
  text-align: center;
  padding: 80px 20px 52px;
}
.sec-head .num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  display: block;
}
.sec-head .title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.sec-head .desc {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ──────────────────────────────────────────────
   5. HERO 섹션
   ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a2a5e 0%, #0a4fa8 55%, #1e90d8 100%);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(30,144,216,0.15) 0%, transparent 70%);
}
/* 배경 사진 (선택) */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0;
  transition: opacity 0.3s;
}
.hero-bg-img.loaded { opacity: 1; }
/* 오버레이 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7,58,124,0.92) 0%,
    rgba(10,79,168,0.70) 42%,
    rgba(10,79,168,0.18) 75%,
    transparent 100%
  );
}
/* inner */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 88px 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.hero-text { max-width: 600px; color: #fff; }
.hero-label {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -1.5px;
}
.hero-title-sub {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 26px;
}
.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  line-height: 1.9;
  margin-bottom: 34px;
}
.hero-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-keyword {
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 2px;
}
/* 우측 포인트 카드 */
.hero-points { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.hero-point {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  padding: 18px 24px;
  min-width: 220px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
}
.hero-point strong {
  display: block;
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.hero-point span { font-size: 14px; color: var(--text-muted); }
/* Hero 장식 SVG */
.hero-deco {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px; height: 240px;
  opacity: 0.07;
  pointer-events: none;
}

/* ──────────────────────────────────────────────
   6. 사진 공통 (.photo-wrap)
   ────────────────────────────────────────────── */
.photo-wrap {
  background: var(--bg-section);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.photo-wrap img.loaded { opacity: 1; }
/* 플레이스홀더 */
.photo-wrap .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  width: 100%; height: 100%;
  padding: 16px;
  justify-content: center;
  pointer-events: none;
}
.photo-wrap .ph-box {
  width: 48px; height: 48px;
  border: 1.5px dashed var(--border);
  border-radius: 2px;
}
.photo-wrap .ph span { font-weight: 600; color: var(--text-mid); font-size: 14px; }
.photo-wrap .ph small { font-size: 12px; opacity: 0.5; }

/* ──────────────────────────────────────────────
   7. 탭 & 패널
   ────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 36px;
  background: var(--white);
}
.tab {
  flex: 1;
  padding: 17px 20px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  border-right: 1px solid var(--border);
}
.tab:last-child { border-right: none; }
.tab.is-active { background: var(--primary); color: var(--white); }
.tab:not(.is-active):hover { background: var(--bg-light); color: var(--primary); }
.panel { display: none; }
.panel.is-active { display: block; }

/* ──────────────────────────────────────────────
   8. FAQ 아코디언
   ────────────────────────────────────────────── */
.faq-section { background: var(--white); padding-bottom: 88px; }
.faq-list {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 12px;
}
.faq-question:hover { background: var(--primary-light); }
.faq-icon {
  font-size: 22px;
  color: var(--primary);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 20px 28px 26px;
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.9;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }

/* ──────────────────────────────────────────────
   9. 추천 대상 카드
   ────────────────────────────────────────────── */
.recommend-section { background: var(--bg-section); padding-bottom: 72px; }
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.recommend-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.recommend-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.recommend-card p { font-size: 16px; color: var(--text-mid); line-height: 1.75; }
.recommend-card p strong {
  display: block;
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 5px;
}

/* ──────────────────────────────────────────────
   10. 정보 칩 (.info-chip)
   ────────────────────────────────────────────── */
.info-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.info-chip {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 2px;
}
.info-chip.red  { background: var(--red-light);    color: var(--red);   }
.info-chip.green{ background: var(--green-light);  color: var(--green); }

/* ──────────────────────────────────────────────
   11. 경고 박스
   ────────────────────────────────────────────── */
.warn-box {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 28px;
}
.warn-box .warn-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}
.warn-box p { font-size: 17px; color: #c0392b; line-height: 1.8; }

/* ──────────────────────────────────────────────
   12. CTA 섹션
   ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0a2a5e 0%, #0a4fa8 100%);
  padding: 80px 20px;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
}
.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
  padding: 18px 52px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: 0.3px;
}
.cta-btn:hover { opacity: 0.9; }
.cta-link {
  display: inline-block;
  margin-top: 20px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

/* ──────────────────────────────────────────────
   13. 통계 박스 (.stat-row)
   ────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-box {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.stat-box .stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-box .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ──────────────────────────────────────────────
   14. 뱃지 / 태그 공통
   ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
}
.badge-primary { background: var(--accent-light); color: var(--primary-dark); }
.badge-green   { background: var(--green-light);  color: var(--green); }
.badge-orange  { background: var(--orange-light); color: var(--orange); }
.badge-red     { background: var(--red-light);    color: var(--red); }
.badge-alert {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}

/* ──────────────────────────────────────────────
   15. 스크롤 Fade 애니메이션
   ────────────────────────────────────────────── */
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────────
   16. 반응형 기본값
   ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .inner { padding: 0 36px; }
  .hero-inner { padding: 72px 36px; }
}
@media (max-width: 768px) {
  .inner { padding: 0 20px; }
  .hero-inner { padding: 56px 20px; flex-direction: column; }
  .hero-deco { display: none; }
  .hero-points { display: none; }
  .sec-head { padding: 56px 20px 40px; }
  .recommend-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs { flex-wrap: wrap; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .faq-question { font-size: 17px; padding: 18px 22px; }
  .faq-answer { font-size: 16px; padding: 18px 22px 22px; }
}
@media (max-width: 480px) {
  .recommend-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .hero-keywords { gap: 6px; }
}

/* ──────────────────────────────────────────────
   17. JS FAQ 초기화 스니펫 (참고용 주석)
   ────────────────────────────────────────────── */
/*
  페이지 하단에 아래 JS 붙여넣기:

  // Fade 애니메이션
  const observer = new IntersectionObserver(entries => {
    entries.forEach(e => {
      if (e.isIntersecting) { e.target.classList.add('show'); observer.unobserve(e.target); }
    });
  }, { threshold: 0.08 });
  document.querySelectorAll('.fade').forEach(el => observer.observe(el));

  // FAQ 아코디언
  document.querySelectorAll('.faq-question').forEach(btn => {
    btn.addEventListener('click', function() {
      const item = this.closest('.faq-item');
      const isOpen = item.classList.contains('open');
      document.querySelectorAll('.faq-item').forEach(i => i.classList.remove('open'));
      if (!isOpen) item.classList.add('open');
    });
  });

  // 탭 전환
  document.querySelectorAll('.tab').forEach(tab => {
    tab.addEventListener('click', function() {
      this.closest('.tabs').querySelectorAll('.tab').forEach(t => t.classList.remove('is-active'));
      this.classList.add('is-active');
      const panelId = this.dataset.panel;
      document.querySelectorAll('.panel').forEach(p => p.classList.remove('is-active'));
      document.getElementById(panelId).classList.add('is-active');
    });
  });
*/


#sh_content {
  max-width: 100% !important;
  border-left: none !important;
  border-right: none !important;
  padding: 0 !important;

}

/* ════════════════════════════════════════════════
   전역 폰트 크기 시스템 — 모든 페이지 공통 적용
════════════════════════════════════════════════ */

/* ── 기본 본문 ── */
p, li, span, td, label { font-size: 16px; line-height: 1.85; }

/* ── 제목 ── */
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: 20px; }
h5 { font-size: 18px; }

/* ── 섹션 헤더 ── */
.sec-head .num   { font-size: 13px; }
.sec-head .title { font-size: clamp(26px, 3.2vw, 40px); }
.sec-head .desc  { font-size: 17px; }

/* ── 히어로 ── */
.hero-label        { font-size: 13px; }
.hero-title        { font-size: clamp(36px, 5.5vw, 68px); }
.hero-title-sub    { font-size: clamp(18px, 2.4vw, 26px); }
.hero-desc         { font-size: 18px; }
.hero-keyword      { font-size: 14px; }
.hero-point strong { font-size: 17px; }
.hero-point span   { font-size: 15px; }

/* ── 카드 공통 ── */
.diff-card h4       { font-size: 17px; }
.diff-card p        { font-size: 15px; }
.merit-item strong  { font-size: 17px; }
.merit-item span    { font-size: 16px; }
.check-item span    { font-size: 16px; }
.flow-step h4       { font-size: 16px; }
.flow-step p        { font-size: 15px; }
.diag-card h4       { font-size: 16px; }
.diag-card p        { font-size: 15px; }
.diag-card-num      { font-size: 12px; }

/* ── FAQ ── */
.faq-question span  { font-size: 17px; }
.faq-answer         { font-size: 16px; line-height: 1.9; }

/* ── 추천 카드 ── */
.recommend-card h4  { font-size: 17px; }
.recommend-card p   { font-size: 16px; }

/* ── CTA ── */
.cta-section h2     { font-size: clamp(24px, 3vw, 36px); }
.cta-section p      { font-size: 17px; }
.cta-btn            { font-size: 17px; }

/* ── 테이블 ── */
table th            { font-size: 15px; }
table td            { font-size: 16px; }

/* ── op-hero 수술 히어로 ── */
.op-kicker           { font-size: 12px; }
.op-hero-content h3  { font-size: clamp(24px, 3.2vw, 38px); }
.op-hero-content p   { font-size: 17px; }
.op-point            { font-size: 15px; }
.op-callout strong   { font-size: 16px; }
.op-callout span     { font-size: 14px; }

/* ── 배지·태그 ── */
.info-chip           { font-size: 15px; }
.type-tag            { font-size: 12px; }
.cause-card-num      { font-size: 12px; }

/* ════════════════════════════════
   통계 강조 바 — 네이비 한줄
   (정관수술 특징과 동일 스타일)
════════════════════════════════ */
.feature-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1e3a 0%, #1a4a7e 100%);
  border-radius: var(--radius);
  padding: 28px 40px;
  gap: 0;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}

.feature-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.feature-bar-icon { font-size: 28px; line-height: 1; }

.feature-bar-num {
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.feature-bar-item strong {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  line-height: 1.3;
}

.feature-bar-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .feature-bar { flex-wrap: wrap; gap: 24px; padding: 24px; }
  .feature-bar-divider { display: none; }
  .feature-bar-item { flex: 0 0 calc(50% - 12px); }
}
