/* =========================
   FONT
========================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@latest/dist/web/static/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap");


:root{
  /* canvas */
  --page-w: 1922px;
  --page-h: 5532px;
  --container: 1280px;

  /* brand colors */
  --c-main: #003D9D;   /* main */
  --c-sub1: #001F60;   /* sub1 */
  --c-sub2: #0067C8;   /* sub2 */
  --c-sub3: #0099FF;   /* sub3 (accent blue) */
  --c-soft: #F3F6FB;   /* hero bg soft */

  /* text colors */
  --t-900: #191919;
  --t-700: #404040;
  --t-500: #919191;
  --t-sky: #57BCFF;
  --t-200: #CECECE;

  /* line colors */
  --line-1: #B3B3B3;
  --line-2: #C3C3C3;
  --line-3: #E6ECF6;

  /* fonts */
  --ff-main: "Nanum Square", Pretendard, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --ff-body: Pretendard, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;

  /* radius */
  --r-10: 10px;
  --r-12: 12px;
  --r-16: 16px;
  --r-20: 20px;

  /* shadow */
  --shadow-sm: 0 6px 18px rgba(0,0,0,.06);
}

/* =========================
   RESET / BASE
========================= */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; overflow-x: hidden; }
body{
  font-family: var(--ff-body);
  color: var(--t-900);
  background:#fff;
}

.wrap{
  max-width: var(--page-w);
  width: 100%;
  margin: 0 auto;
  overflow-x: clip;   /* hidden보다 clip이 더 안전 */
}

.container{
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* =========================
   TYPOGRAPHY (guide-based)
========================= */
.typo-hero{
  font-family: var(--ff-main);
  font-weight: 800;
  font-size: 74px;
  line-height: 1.2;
  letter-spacing: 0;
}
.typo-body{
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.6;
  letter-spacing: 0;
}
.typo-body2{
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: 0;
}

/* =========================
   HEADER (screenshot style)
========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-3);
}

.header__inner{
  width: var(--container);
  height: 109px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand__logo{ height: 65.75px; width:auto; }

.gnb{
  display:flex;
  align-items:center;
  gap: 44px;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--t-900);
}

.gnb a{
  position: relative;
  padding: 10px 0;
}
.gnb a:hover{ color: var(--c-sub3); }
.gnb a::after{
  content:"";
  position:absolute;
  left:0; bottom: 6px;
  width:0; height:2px;
  background: var(--c-sub3);
  transition: width .2s ease;
}
.gnb a:hover::after{ width:100%; }


.menu-btn{
  display:none;            /* 모바일에서만 표시 */
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
}

.menu-btn__icon{
  width: 24px;
  height: 24px;
  display: block;
}

/* 기본: 햄버거만 보이기 */
.menu-btn__icon--close{ display:none; }

/* 열림 상태: X만 보이기 */
.header.is-open .menu-btn__icon--open{ display:none; }
.header.is-open .menu-btn__icon--close{ display:block; }

/* ===== Mobile menu panel ===== */
.mnav{
  position: fixed;
  left: 0;
  right: 0;
  top: 109px; /* 기본은 데스크탑 헤더 높이 기준 */
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-3);
  z-index: 99;

  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.mnav__inner{
  width: min(92vw, 420px);
  margin: 0 auto;
  padding: 18px 0 22px;
  display: grid;
  gap: 12px;
}

.mnav a{
  display:block;
  padding: 12px 6px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--t-900);
}

/* 열림 상태 */
.header.is-open .mnav{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ✅ body 스크롤 잠금 클래스 */
body.nav-lock{
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 480px){
  .header__inner{
    width: 92vw;
    height: 72px;            /* 모바일 헤더 높이 */
  }
  .brand__logo{ height: 44px; }

  .gnb{ display:none; }
  .menu-btn{ display:flex; align-items:center; justify-content:center; }

  .mnav{ top: 72px; }        /* 모바일 헤더 높이와 맞춤 */
}




/* =========================
   HERO (match screenshot)
========================= */
.hero{
  height: 771px;
  background: var(--c-soft);
}

.hero .swiper{
  height: 771px;
}



.hero-slide{
  position: relative;
  height: 771px;
  overflow: hidden;
}

.hero-slide__bg{
  position:absolute;
  inset:0;
}

.hero-slide__bg img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: right center;
  filter: saturate(.92) brightness(1.05);
}

.hero-slide__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(244,247,252,.92) 0%,
      rgba(244,247,252,.85) 35%,
      rgba(244,247,252,.55) 55%,
      rgba(244,247,252,.18) 75%,
      rgba(244,247,252,0) 100%
    );
}
  
.hero-slide__content{
  position: relative;
  width: var(--container);
  height:100%;
  margin: 0 auto;
  padding-left: 70px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 12px;
}

.hero-kicker{
  margin:0;
  font-family: var(--ff-body);
  font-weight: 200;
  font-size: 19.5px;
  line-height: 1.2;
  letter-spacing: .12em;
  color: rgba(0,0,0,.18);
}

.hero-title{
  margin:0;
  font-family: var(--ff-main);
  font-weight: 800;
  font-size: 74px;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--c-sub3);
}

.hero-desc{
  margin:0;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.7;
  color:#484848;
  
  white-space: nowrap;   /* ✅ 한 줄 */
}

/* hero pagination: 이미지처럼 (active=캡슐, inactive=원) */
.hero-pagination{
  position:absolute !important;
  left: calc((100% - var(--container))/2 + 70px) !important;
  bottom: 92px !important;
  width: auto !important;

  display: flex !important;
  align-items: center;
  gap: 8px; /* 원들 사이 간격 */
}

.hero-pagination .swiper-pagination-bullet{
  width: 12.79px;
  height: 12.79px;
  margin: 0 !important;          /* Swiper 기본 margin 제거 */
  border-radius: 999px;
  background: rgba(0,0,0,.35);   /* 비활성 회색 */
  opacity: 1;
  transition: width .25s ease, background-color .25s ease;
}

.hero-pagination .swiper-pagination-bullet-active{
  width: 24.92px;                 /* 활성만 길게 */
  background: var(--c-sub3);      /* 파란색 */
}

/* =========================
   COMMON SECTION
========================= */
.section{
  padding: 88px 0;
}


.center{ text-align:center; }

/* =========================
   ABOUT (병원소개 - screenshot vibe)
========================= */
.about3{
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background:#fff;
  height: 880px;
  width: 100%;
}

/* BG 1: 복도 배경 */
.about3__bgHall{
  position: absolute;
  inset: 0;
  opacity: .22;
  transform: scale(1.02);
  z-index: 0;

}

.about3__bgHall img{
  width:1400px;
  height:100%;
  object-fit: cover;
}

.about3__inner{
  position: relative;
  z-index: 2;
  min-height: 320px;
  margin-top: 150px;
}

/* 텍스트 박스(이미지처럼 가운데 정렬) */
.about3__textBox{
  margin-top:100px;
  width: 634px;
  text-align: center;
}

.about3__title{
  margin: 0 0 16px;
  font-family: var(--ff-main);
  font-weight: 800;
  font-size: 50px;
  color: var(--c-sub2);
}

.about3__headline{
  margin: 60px 0 14px;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.5;
  color: var(--t-900);
}

.about3__body{
  font-size: 20px;
  line-height: 1.7;
  color: rgba(25,25,25,.55);
  font-weight: 400;
  word-break: keep-all;        /* ✅ 한글 단어 중간 잘림 방지 */
  overflow-wrap: break-word;  /* ✅ 긴 문장 안전 처리 */
}

.about3__body span{
  display: block;
}


.about3__photoCard{
  position: absolute;
  right: -25%;
  top: -30%;
  transform: translateY(0%);
  width: 860px;
  height: 550px;
  overflow: hidden;
  background:#fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 42px rgba(0,0,0,.20);
}

.about3__photoCard img{
  width:100%;
  height:100%;
  object-fit: cover;
}




/* =========================
   DOCTORS (의료진소개 - screenshot vibe)
========================= */
.doctors{
  position: relative;
  background:#fff;
  padding-bottom: 70px;
  overflow: hidden;
}


  .doctors__grid{
  position: relative;
  display:grid;
  grid-template-columns: 1fr 520px;
  gap: 50px;
  align-items:center;
  min-height: 520px;
}

.doctors__text{
  text-align: right;
  margin-right: 200px;
}

.doctors h3{
  margin: 0 0 16px;
  font-family: var(--ff-main);
  font-weight: 800;
  font-size: 50px;
  color: var(--c-sub2);}

.doctor-name{
  margin: 80px 0 30px 0;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  color: var(--t-700);
}

.doctor-name strong{
  display:inline-block;
  margin-top: 6px;
  font-family: var(--ff-main);
  font-weight: 800;
  font-size: 39px;
  color: var(--t-900);
}

.doctor-profile h4{

  margin: 18px 0 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 30px;
  color: var(--t-700);
}

.doctor-profile ul{
  margin:0;
  padding-left: 16px;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  color: var(--t-500);
  list-style: none;

}

.doctors__photo{
  position: relative;
  display:flex;
  justify-content:flex-end;
  z-index:2;

}

.doctors__photo img{
  display: block;
  max-width: 640px;    /* 원하는 사이즈로 조절 */
  height: auto;
}

.doctors__accent{
  position: absolute;
  right: -25%;
  top: 30%;
  transform: translateY(-50%);
  width: 520px;          /* 그래픽 크기 */
  height: 520px;
  background: url("./img/doctor_bg.png")contain;
  z-index: 1;           
  pointer-events: none; 
  opacity: 1;  
}


/* =========================
   TREAT (진료 소개) - screenshot style
========================= */
.treat{
  position: relative;
  background: linear-gradient(
      180deg,
      #001F60 0%,
      #002f86 35%,   /* 🔹 기존보다 살짝 밝은 블루 */
      #00276f 55%,
      #041a44 100%
    );
  color:#eaf0ff;
  padding: 86px 0 86px;
  overflow: hidden;
  height: 880px;
}

.treat__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}


.treat__bg img{
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
/* 1) 배경 이미지 */
.treat__bg::before{
  content:"";
  position: absolute;
  inset: 0;
  background: url("/img/treat_bg.jpg") no-repeat center / cover;
  transform: scale(1.03);  /* 가장자리 틈 방지 */
  filter: saturate(0.9) contrast(1.05);
  opacity: 1;
}




.treat__bg::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% -10%,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,.08) 22%,
      rgba(255,255,255,0) 55%),
    linear-gradient(180deg,
      rgba(0,31,96,.82) 0%,   /* #001F60 */
      rgba(0,47,134,.76) 35%,
      rgba(0,39,111,.82) 55%,
      rgba(4,26,68,.92) 100%);
  mix-blend-mode: multiply; /* ✅ 이미지 위에 자연스럽게 덮임 */
}


.treat .container{
  position: relative;
  z-index: 3;
}

/* 좌(설명) + 우(슬라이더) */
.treat__grid{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items:center;
  padding: 100px 0 0 0 ;
}

/* 왼쪽 텍스트 */
.treat__left .section-title{
  margin: 0 0 12px;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 50px;
  color: rgba(255,255,255,.95);
}

.treat__desc{
  margin:0;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.9;
  color: rgba(255,255,255,.72);
}

/* 오른쪽 영역 */
.treat__right{
  position: relative;
  min-width: 0;
}

/* Swiper */
.treat-swiper{
  position: relative;
  width: 1200px;
  overflow: hidden;     /* ✅ 옆 슬라이드가 잘리지 않게 */
  padding-top: 8px;
  padding-bottom: 52px;
  padding-right: 6px;
}

/* 카드 크기 고정(3개 보이도록) */
.treat-card{
  width: 365px;                 /* ✅ 3개 딱 보이는 폭 */
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px ;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
}

/* 이미지 */
.treat-card img{
  width: 365px;
  height: 300px;
  object-fit: cover;
  display:block;
}

/* 텍스트 영역 패딩 */
.treat-card h4{
  margin: 12px 12px 6px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 23px;
  color: #fff;
}

.treat-card p{
  margin: 0 12px 14px;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}

/* 화살표(스샷처럼 우측 상단) */
/* .treat-nav{
  position:absolute;
  right: 0;
  top: -2px;
  display:flex;
  gap: 10px;
  z-index: 10;
} */

.info2-day1{
  letter-spacing:32px;
}
.info2-day2{
  letter-spacing:8px;}

/* ✅ pagination을 "긴 바"처럼 */
.treat-pagination{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 14px !important;
  width: 100% !important;
  height: 6px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap: 10px;
}

/* Swiper 기본 bullet을 바 형태로 */
.treat-pagination .swiper-pagination-bullet{
  width: 120px !important;              /* 긴 바 */
  height: 4px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.28);
  opacity: 1;
  margin: 0 !important;
}

/* 활성 바 */
.treat-pagination .swiper-pagination-bullet-active{
  background: rgba(255,255,255,.95);
  color:#0099FF;
}


/* (선택) 카드 hover 시 약간 밝게 */
.treat-card:hover{
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}



/* =========================
   EQUIP (장비소개 - swiper)
========================= */
.equip{

  position: relative;
  padding: 100px 0;
  overflow: hidden;          /* 배경 삐져나오는 거 방지 */
  background: #fff;
  height: 880px;
  width: 100%;

}

.equip .section-title{
  margin: 0 0 12px;
  font-family: var(--ff-main);
  font-weight: 800;
  font-size: 50px;
  color: var(--c-sub2);
}

.equip_bg{
  position: absolute;
  inset: 0;
  z-index: 0;                /* 컨텐츠보다 뒤 */
  pointer-events: none;
}
.equip_bg img{
  position: absolute;
  right: -60px;              /* 원하는 만큼 조절 */
  top: 50%;
  transform: translateY(-50%);
  width: 760px;              /* 배경 크기 */
  height: auto;
  opacity: .12;              /* ✅ 투명도 */
  filter: grayscale(1);      /* 필요 없으면 삭제 */
}
.equip .container{
  position: relative;
  z-index: 2;                /* 배경보다 앞 */
}

.equip-swiper{
  position: relative;
  padding-top: 8px;
  padding-bottom: 42px;
  
}

.equip-card{
  border-radius: 14px;
  background:#fff;
  padding: 30px;
  text-align:center;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  margin-top: 50px;
  height: 441px;

}

.equip-card img{
  width: 364px;
  height: 305px;
  object-fit: contain;
}

.equip-name{
  margin: 12px 0 0;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 23px;
  color: #0067C8;
  margin-top: 20px;

}
.equip-nav{
  position:absolute;
  left:-100px;
  right:-100px;
  top: 55%;
  transform: translateY(-50%);
  display:flex;
  justify-content:space-between;
  pointer-events:none;
  z-index: 5;
  padding: 0 18px; /* 좌우 여백 */
}

/* 아이콘 버튼 베이스 */
.equip-nav .nav-btn{
  pointer-events:auto;
  width: 64px;
  height:64px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.equip-nav .nav-btn:hover::before{
  border-left-color:#0099FF;
  border-bottom-color: #0099FF;}


.equip-nav .nav-btn::before{
  content:"";
  position:absolute;
  top: 50%;
  left: 50%;
  width: 18px;              /* 화살표 크기 */
  height: 18px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-left: 6px solid rgba(0,0,0,.12);   /* 기본: 연한 회색 */
  border-bottom: 6px solid rgba(0,0,0,.12);
  border-radius: 2px;       /* 모서리 살짝 둥글 */
}

.equip-nav .equip-next::before{
  transform: translate(-50%, -50%) rotate(-135deg);
}


/* (선택) 왼쪽/오른쪽 기본 톤을 스샷처럼 다르게 주고 싶으면 */
.equip-nav .equip-prev::before{
  border-left-color: rgba(0,0,0,.10);
  border-bottom-color: rgba(0,0,0,.10);
}
.equip-nav .equip-next::before{
  border-left-color: rgba(0,153,255,.85);
  border-bottom-color: rgba(0,153,255,.85);
}
/* =========================
   INFO (진료시간/오시는길)
========================= */
/* INFO2 (screenshot-like layout) */
.info2{
  background:#F6F6F6;
  padding: 0;
}

/* 좌/우 2단 레이아웃을 flex로 */
.info2__wrap{
  max-width: 1922px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

/* LEFT */
.info2__left{
  flex: 1;
  padding: 76px 80px 70px 250px;
}

/* RIGHT MAP 고정 폭 */
.info2__map {
  width: 861px;          /* PC 기준 */
  background: #fff;
  border-left: 1px solid #e9eef7;
  overflow: hidden;
  position: relative;
}

/* 카카오맵 wrapper */
.info2__map .root_daum_roughmap {
  width: 100% !important;
  height: 100% !important;
  min-height: 881px;     /* PC에서 이미지처럼 크게 */
}

/* 내부 map div 강제 풀사이즈 */
.info2__map .root_daum_roughmap > div {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 1024px) {
  .info2__wrap {
    flex-direction: column;
  }

  .info2__map {
    width: 100%;
    height: 360px;
    border-left: 0;
    border-top: 1px solid #e9eef7;
  }

  .info2__map .root_daum_roughmap {
    min-height: 360px;
  }
}




/* 공통 row: (왼쪽 라벨 + 오른쪽 내용) */
.info2__row{
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

.info2__row--mt{ margin-top: 42px; }

/* 왼쪽 파란 라벨 */
.info2__label{
  width: 140px;
  flex: 0 0 140px;
  font-family: var(--ff-main);
  font-weight: 800;
  font-size: 32px;
  color: var(--c-sub3);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* 오른쪽 컨텐츠 */
.info2__content{
  flex: 1;
  min-width: 0;
}

/* 진료시간 줄 */
.info2__content p{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--t-700);
  white-space: nowrap;  /* ✅ AM/PM 줄바꿈 방지 */
}

.info2__content p b{
  display: inline-block;
  width: 80px;          /* ✅ 평일/토요일/점심시간 정렬 */
  font-weight: 800;
  color: var(--t-900);
  white-space: nowrap;
  
}


/* 안내문구 */
.info2__content small{
  display:block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--t-500);
}

/* TEL */
.info2__tel-num{
  margin: 0;
  font-family: var(--ff-main);
  font-weight: 700;
  font-size: 30px;
  color: var(--t-700);
}

/* 주소 */
.info2__addr{
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.7;
  color: var(--t-700);
  font-weight: 700;

}

.info2__addr-sub{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--t-500);  
 
}

/* ROUTE LIST */
.info2__route{
  list-style:none;
  padding: 0;
  margin: 22px 0 0;
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.info2__route li{
  display:flex;
  align-items:center;
  gap: 18px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--t-700);
}

.info2__route b{
  font-weight: 800;
  color: var(--t-900);
}

.info2__ico{
  width: 54px;
  height: 54px;
  display:block;
  object-fit: contain;
}

.info2__fine2{
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--t-500);

  
}

.info2__map{
  width: 100%;
  overflow: hidden;
}
.map-open-btn{
  display:none;
}

@media (max-width:480px){
  .map-open-btn{
    padding: 14px;
    text-align: center;
    border-radius: 10px;
    background: #3c1e1e;
    color:#fff;
    font-weight:600;
    display: inline-flex;
    width: auto;                 /* ⬅️ 핵심 */
    padding: 12px 20px;          /* 좌우 여백만 */
    margin: 12px;         /* 가운데 정렬 */
    justify-content: center;
  }
}



/* =========================
   FOOTER (no bottom gap)
========================= */.footer{
  background: #072e6a;
  padding: 42px 0 38px;
  margin: 0;
}

.footer__inner{
  display: flex;
  flex-direction: column;      /* ✅ 세로 정렬 */
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* 로고 */
.footer__logo{
  height: 42px;
  width: auto;
  display: block;
}

/* 링크 영역 */
.footer__links{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 6px 0 4px;
  list-style: none;
}

.footer__links a{
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.footer__links a:hover{
  text-decoration: underline;
}

.footer__links .dot{
  color: rgba(255,255,255,.45);
  font-size: 12px;
  line-height: 1;
}

/* 카피라이트 */
.footer__copyright{
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.75);
}

/* 하단 여백 차단 */
footer, .footer{
  margin-bottom: 0;
}
body{
  padding-bottom: 0;
}


/* =========================================
   RESPONSIVE
   - Tablet: <= 1024 (834 포함)
   - Mobile: <= 480 (375 포함)
========================================= */

/* ✅ 공통: 큰 화면 고정값이 깨지지 않게 */
@media (max-width: 1280px){
  :root{
    --container: 92vw;
  }
  .container{
    width: var(--container);
  }
}

/* =========================
   TABLET (<= 1024px)
========================= */
@media (max-width: 1024px){

  /* wrap이 1922 고정처럼 보이지 않게 */
  .wrap{
    max-width: 100%;
    width: 100%;
  }

  /* HEADER */
  .header__inner{
    width: var(--container);
    height: 88px;
  }
  .brand__logo{ height: 52px; }
  .gnb{
    gap: 22px;
    font-size: 14px;
  }

  /* HERO */
  .hero{ height: 560px; }
  .hero .swiper{ height: 560px; }
  .hero-slide{ height: 560px; }
  .hero-slide__content{
    padding-left: 24px;
  }
  .hero-kicker{ font-size: 13px; }
  .hero-title{ font-size: 48px; }
  .hero-desc{ font-size: 18px; }

  .hero-pagination{
    left: calc((100% - var(--container))/2 + 24px) !important;
    bottom: 56px !important;
  }

  /* ABOUT */
  .about3{
    height: auto;
    padding: 90px 0;
  }
  .about3__inner{
    margin-top: 40px;
  }
  .about3__textBox{
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }
  .about3__title{ font-size: 40px; }
  .about3__headline{ font-size: 24px; margin-top: 28px; }
  .about3__body{ font-size: 16px; line-height: 1.7; }

  /* 오른쪽 큰 카드: 태블릿에서는 아래로 내려오게 */
  .about3__photoCard{
    position: static;
    width: 100%;
    max-width: 820px;
    height: 420px;
    margin: 34px auto 0;
  }
  .about3__bgHall img{
    width: 100%;
  }

  /* DOCTORS */

  .doctors{
    padding-bottom: 60px;
  }

  .doctors__grid{
    grid-template-columns: 1fr 420px; /* 사진 조금 줄임 */
    gap: 32px;
    min-height: auto;
  }

  .doctors__text{
    margin-right: 0;          /* ❗ 한 줄 유지 핵심 */
    text-align: left;         /* 태블릿에서는 가독성 ↑ */
  }

  .doctors h3{
    font-size: 40px;
  }

  .doctor-name{
    margin: 40px 0 20px;
    font-size: 18px;
    text-align: center;
  }

  .doctor-name strong{
    font-size: 32px;
  }

  .doctor-profile h4{
    font-size: 22px;
  }

  .doctor-profile ul{
    font-size: 16px;
  }

  .doctors__photo img{
    max-width: 420px;         /* grid 컬럼과 맞춤 */
  }

  .doctors__accent{
    width: 360px;
    height: 360px;
    right: -18%;
    top: 40%;
    opacity: .9;
  }
  /* TREAT */
  .treat{
    height: auto;
    padding: 86px 0 70px;
  }
  .treat__grid{
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 60px;
  }
  .treat__left .section-title{ font-size: 40px; }
  .treat__desc{ font-size: 16px; }

  .treat-swiper{
    width: 100%;
    overflow: visible; /* 태블릿에서 3.x 보여주기 자연스럽게 */
  }
  .treat-card{
    width: auto; /* JS의 slidesPerView 기반으로 */
    height: 420px;          /* 원하는 값으로 미세조정 가능 */
    display: flex;
    flex-direction: column;
  }
  .treat-card img{
    height: 260px;          /* 카드 높이에 맞춰 조절 */
    width: 100%;
    object-fit: cover;
    flex: 0 0 auto;
  }
  .treat-card h4{ 
    font-size: 18px;
    flex: 0 0 auto; }
 .treat-card p br{
    display: none;
  }
  .treat-card p{ 
    line-height: 1.7;
    -webkit-line-clamp: 4;


}


   .only-pc{ display: none; } 


  /* EQUIP */
  .equip{
    height: auto;
    padding: 86px 0 70px;
  }
  .equip .section-title{ font-size: 40px; }
  .equip_bg img{
    right: -120px;
    width: 520px;
    opacity: .10;
  }
  .equip-card{
    height: auto;
    padding: 22px;
  }
  .equip-card img{
    width: 100%;
    height: 240px;
  }
  .equip-name{ font-size: 18px; }

  /* 화살표: 잘림 방지 + 화면 양 끝에 붙이기 */
  .equip-nav{
    left: 0;
    right: 0;
    padding: 0 10px;
  }

  /* INFO */
  .info2__wrap{
    flex-direction: column;
  }
  .info2__left{
    padding: 56px 24px 40px;
  }
  .info2__map{
    width: 100%;
    border-left: 0;
    border-top: 1px solid #e9eef7;
  }
  .info2__map iframe{
    min-height: 420px;
  }

  .info2__label{
    width: 120px;
    flex: 0 0 120px;
    font-size: 24px;
  }
  .info2__content p{
    font-size: 16px;
    white-space: normal; /* 태블릿부터는 줄바꿈 허용 */
  }
  .info2__content p b{
    width: 72px;
  }
  .info2__tel-num{ font-size: 22px; }
  .info2__addr{ font-size: 16px; }
  .info2__route li{ font-size: 13px; }
  .info2__ico{ width: 44px; height: 44px; }

   .header__inner{
    width: 100%;
    padding: 0 18px;
    height: 72px;           /* 모바일 헤더 높이 줄이면 더 예쁨 */
  }

  .brand__logo{ height: 46px; }

  .gnb{ display:none; }     /* ✅ 모바일에서 GNB 숨김 */

  .menu-btn{
    display: inline-flex;   /* ✅ 햄버거 보이기 */
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
  }

  .menu-btn__line{
    width: 22px;
    height: 2px;
    background: var(--t-900);
    border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
  }

  /* 패널 위치도 헤더 높이에 맞춰 수정 */
  .mnav{
    display:block;
    top: 72px;
  }

  /* ✅ 열렸을 때 */
  body.menu-open .mnav{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* ✅ 햄버거 -> X 애니메이션 */
  body.menu-open .menu-btn__line:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }
  body.menu-open .menu-btn__line:nth-child(2){
    opacity: 0;
  }
  body.menu-open .menu-btn__line:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }

}

/* =========================
   MOBILE (<= 480px)
========================= */
@media (max-width: 480px){

  /* HEADER: 메뉴는 숨기고 심플하게 */
  .header__inner{
    height: 72px;
  }  
  .gnb{
    display: none;
  }
  .brand__logo{ height: 46px; }

  /* HERO */
  .hero{ height: 460px; }
  .hero .swiper{ height: 460px; }
  .hero-slide{ height: 460px; }
  .hero-slide__content{
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero-kicker{ font-size: 11px; }
  .hero-title{ font-size: 32px; line-height: 1.12; }
  .hero-desc{ 
    white-space: normal;   /* 줄바꿈 허용 */
    max-width: 200px;      /* ✅ 이 값으로 2줄 고정 */
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-pagination{
    left: calc((100% - var(--container))/2 + 18px) !important;
    bottom: 42px !important;
  }

  /* ABOUT */
  .about3{
    padding: 70px 0;
  }
  .about3__title{ font-size: 34px; }
  .about3__headline{ font-size: 17px; }
  .about3__body{ 
    font-size: 14px;
    padding: 0 38px;}

  .about3__photoCard{
    height: 260px;
  }

  /* DOCTORS */
  .doctors{
    padding: 60px 0;
  }
   .doctors__grid{
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }
  .doctors h3{ font-size: 34px;}
  .doctor-name strong{ font-size: 30px; }
  .doctor-profile ul{ font-size: 14px;
    padding: 0;
   }
  .doctors__photo { justify-content: flex-start;}
  .doctors__photo img{ 
    max-width: 340px;
    }
  .doctors__accent{
    width: 260px;
    height: 260px;
    right: -30%;
    top: 78%;
  }
  .doctors__text {
  text-align: center;
}

  }

/* =========================
   Treat - Mobile (≤480px)
   ========================= */
@media (max-width: 480px){

  .treat{
    height: auto;
    padding: 56px 0 64px;
  }

  .treat__grid{
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 48px;
  }

  /* 왼쪽 텍스트 */
  .treat__left .section-title{
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .treat__desc{
    font-size: 14px;
    line-height: 1.75;
  }

  /* Swiper 영역 */
  .treat-swiper{
    width: 100%;
    padding-right: 0;
    padding-bottom: 28px;
  }

  /* 카드: 1장 중심 + 다음 카드 살짝 노출 */
  .treat-card{
    width: 100%;
    max-width: none;
    border-radius: 14px;
    height: 300px;
  }

  .treat-card img{
    width: 100%;
    height: 210px;
    object-fit: cover;
  }

  .treat-card h4{
    font-size: 17px;
    margin: 10px 12px 4px;
  }

  .treat-card p{
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding: 0 23px ;

  }

  /* pagination bar */
  .treat-pagination{
    bottom: 8px !important;
    gap: 6px;
  }

  .treat-pagination .swiper-pagination-bullet{
    width: 52px !important;
    height: 3px !important;
  }

  /* 자간 과도한 부분 조정 */
  .info2-day1{ letter-spacing: 8px; }
  .info2-day2{ letter-spacing: 3px; }

  /* PC 전용 숨김 */
  .only-pc{ display: none; }
}


  
  .only-pc{ display: none; }

  /* EQUIP */
  
  .equip{
    height: auto;                 /* 고정 높이 해제 */
    padding: 70px 0;
  }

  .equip .section-title{
    font-size: 30px;
    margin-bottom: 18px;
  }

  /* 배경 이미지 크기/위치 조정(선택) */
  .equip_bg img{
    width: 364px;
  height: 305px;
  }

  /* ✅ swiper 폭을 화면에 맞추기 */
  .equip-swiper{
  padding-top: 8px;
  padding-bottom: 42px;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden; 
  }

  /* ✅ 핵심: 슬라이드 1개씩 */


  .equip-card{
    width: 100%;
    height: auto;                 /* 카드 높이 고정 해제 */
    margin-top: 20px;
    padding: 18px;
  }

  /* ✅ 이미지 고정폭 해제 */
  .equip-card img{
    width: 100%;
    height: 220px;
    object-fit: contain;
  }

  .equip-name{
    font-size: 16px;
    margin-top: 12px;
  }

  /* 화살표가 잘리면 안쪽으로 */
  .equip-nav{
    left: 0;
    right: 0;
    padding: 0 10px;
    top: 52%;
  }

  /* INFO */.info2__row{
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
 .info2__label{
   width: auto !important;   /* ✅ 140px 고정 해제 */
    flex: none !important;    /* ✅ flex:0 0 140px 해제 */
    margin: 0 0 6px !important;
    line-height: 1.2;
    display: inline-block;    /* ✅ 내용만큼만 영역 */
    padding: 0;               /* 혹시 있으면 제거 */
  }
  /* 각 줄(p): 라벨(b) 위 / 시간(span) 아래 */
  .info2__content p{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
      margin-bottom: 12px; 
    white-space: normal; /* 기존 nowrap 무력화 */
  }

  /* 라벨(b) 고정폭 제거 (PC에서 width 주던거 무력화) */
  .info2__content p b{
    width: auto !important;
    letter-spacing: 0 !important; /* 모바일에서 글자 벌어짐 방지 */
  }
  .info2__fine {
   text-align: center;

  }
  /* 시간 줄 */
  .info2__content .info-time{
    display: block;
    white-space: nowrap; /* 시간은 한 줄 유지 */
  }

  /* FOOTER */
  .footer{
    padding: 34px 0 30px;
  }
  .footer__logo{ height: 34px; }
  .footer__links a{ font-size: 12px; }
  .footer__copyright{ font-size: 11px;
  padding: 0 40px; }


/* 모바일: 자연 줄바꿈 기기별 차이 제거 */
@media (max-width: 768px){
  .about3__body{

    font-size: 14px;
    line-height: 1.7;
  }

  .about3__body span{
    display: inline;   /* ✅ 강제 줄바꿈 제거 */
  }
}

