/* 1. 컨트롤 박스 위치 잡기 (우측 하단) */
.swiper-controls {
  position: absolute;
  bottom: 50px; /* 바닥에서의 높이 (시안에 맞춰 조절) */
  right: 15%; /* 우측에서의 거리 (시안에 맞춰 조절) */
  z-index: 10;
  display: flex; /* 가로 배치 핵심 */
  align-items: center; /* 수직 중앙 정렬 */
  gap: 30px; /* 점과 숫자 사이의 간격 */
}

/* 2. 불릿(점) 스타일 커스텀 */
/* Swiper 기본 절대위치 속성을 해제해야 flex 안에서 잘 보입니다 */
.swiper-controls .swiper-pagination {
  position: static;
  width: auto;
  text-align: left;
}

.swiper-controls .swiper-pagination-bullet {
  width: 10px; /* 점 너비 */
  height: 10px; /* 점 높이 */
  background: #fff; /* 점 색상 */
  opacity: 0.4; /* 비활성 투명도 */
  margin: 0 6px !important; /* 점 사이 간격 */
  vertical-align: middle;
  position: relative;
  transition: all 0.5s;
}

.swiper-controls .swiper-pagination-bullet-active {
  opacity: 1; /* 활성 투명도 (진하게) */
  background: #8feadf;
}
.swiper-controls .swiper-pagination-bullet:after {
  content: "";
  position: absolute;
  border: 1px solid #8feadf;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  border-radius: 999px;
  transition: all 0.5s;
  opacity: 0;
}
.swiper-controls
  .swiper-pagination-bullet.swiper-pagination-bullet-active:after {
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  opacity: 1;
}
/* 3. 숫자(Fraction) 스타일 커스텀 */
.fraction-pagination {
  white-space: nowrap;
  color: #fff;
  font-family: "Noto Sans KR", sans-serif; /* 폰트 설정 */
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* (선택) 현재 페이지 숫자를 더 굵게 만들고 싶다면 JS에서 <b>태그 감싸고 아래 추가 */
.fraction-pagination b {
  font-weight: 700;
}

.main-slide-sub {
  z-index: 2;
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  overflow: hidden;
  padding-top: 100px;
}
.main-slide-sub h2 {
  transition: all 1s;
  font-size: 70px;
  font-weight: 400;
  transform: translateY(100%);
  opacity: 0;
}
.main-slide-sub p{
  font-size: 28px;
}
.main-slide-sub a{
  display: inline-block;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 999px;
  padding: 4px 30px;
  opacity: 0.7;
  transition: opacity 0.5s;
}
.main-slide-sub a:hover{
  opacity: 1;
}
.main-slide .swiper-slide-active h2 {
  transform: translateY(0);
  opacity: 1;
}
.main-slide h2 span {
  font-weight: 700;
}
.swiper-wrapper > div {
  overflow: hidden;
}
.main-slide-02 .slide2-sub {
  background-color: #ffffffde;
  border-radius: 999px;
  gap: 10px;
  padding: 0px 12px;
  font-weight: 800;
  display: flex;
  margin: 0 auto;
  width: 370px;
  align-items: center;
  justify-content: center;
}
.main-slide-02 .slide2-sub img {
  width: 40px;
}
.main-slide-02 .slide2-sub span {
  color: #000;
  font-weight: 700;
  font-size: 28px;
}
.main-slide {
  overflow: hidden;
}
.main-slide img {
  width: 100%;
  transition: all 5s;
  transform: scale(1);
}
/* .main-slide .swiper-slide-active > img {
  transform: scale(1);
} */

.slide-btn-con{
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  width: 100%;
}

.slide-btn-con > li{
  width: 33.333%;
}

.slide-btn-con .slide-btn{
  padding: 20px;
  margin: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  border: 1px solid #fff;
  border-radius: 15px;
  background-color: #ffffff37;
  height: 250px;
  line-height: 1.2;
}
.slide-btn-con .slide-btn p{
  font-size: 18px;
}

.slide-btn-con .slide-btn > img{
  height: 70px;
  width: auto;
}

@media(max-width:1200px) {
  .main-slide-sub p{
    font-size: 18px;
  }
  .slide-btn-con{
    margin-top: 20px;
  }
  .slide-btn-con .slide-btn{
      height: 150px;
      padding: 10px;
  }
  .slide-btn-con .slide-btn > img{
    height: 50px;
  }
}

@media(max-width:769px) {
  .slide-btn-con .slide-btn{
    border-radius: 10px;
  }
  .slide-btn-con{
    margin-top: 20px;
  }
  .main-slide-sub a{
    padding: 4px 12px;
    font-size: 14px;
    opacity: 1;
  }
  .slide-btn-con .slide-btn{
      height: 150px;
      padding: 10px;
      gap: 14px;
  }
  .slide-btn-con .slide-btn p{
    font-size: 16px;
  }
  .main-slide-sub p{
    font-size: 14px;
  }
}

@media(max-width:429px) {
  .slide-btn-con{
    margin-top: 0;
  }
  .slide-btn-con .slide-btn p{
    font-size: 14px;
  }
}

.m-slide-img{
  display: none;
}

@media(max-width:650px) {
  .m-slide-img{
    display: block;
  }
  .pc-slide-img{
    display: none;
  }
}

/* quick-btn */
.quick-btn-card-con .quick-btn-card {
  margin: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s;
}
.quick-btn-card-con .quick-btn-card:hover {
  transform: translateY(-10px);
  filter: brightness(1.1);
}
.quick-btn-card-con .quick-btn-card > div:nth-child(1) {
  position: relative;
  border-radius: 20px;
}
.quick-btn-card-con .quick-btn-card > div:nth-child(1) img {
  border-radius: 20px;
}
.quick-btn-card-con .quick-btn-card > div:nth-child(1) strong {
  color: #fff;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  font-size: 24px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 28px;
  white-space: nowrap;
}

.quick-btn-card-con strong {
  background-color: #005666;
}

.quick-btn-card-con .quick-btn-card > div:nth-child(2) {
  text-align: center;
  width: 100%;
  min-height: 150px;
  padding: 50px 20px 20px 20px;
  border-radius: 20px;
  box-shadow: 9px 10px 21px -3px #59595940;
  background-color: #fff;
  color: #000;
}
@media(max-width:1200px) {
  .quick-btn-card-con .quick-btn-card > div:nth-child(1) img {
    border-radius: 10px;
  }
  .quick-btn-card-con .quick-btn-card > div:nth-child(2) {
    border-radius: 10px;
  }

  .quick-btn-card-con .quick-btn-card > div:nth-child(1) strong {
    font-size: 18px;
  }
}

@media(max-width:769px) {
  .quick-btn-card-con .quick-btn-card > div:nth-child(2) {
    height: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media(max-width:429px) {
  .quick-btn-card-con .quick-btn-card > div:nth-child(1) strong{
    font-size: 18px;
    padding: 4px 10px;
  }
  .quick-btn-card-con .quick-btn-card > div:nth-child(2) {
    padding: 40px 10px 20px 10px;
    min-height: 100px;
  }
}

/* 01 */

/* main-tit-common */
.main-sub-tit h2 {
    font-weight: 900;
    color: #37b0a130;
    font-style: italic;
    font-size: 68px;
}

.main-sub-tit2 h2 {
    font-weight: 900;
    color: #ffffff30;
    font-style: italic;
    font-size: 68px;
}

.main01{
    color: #fff;
    background: url(../img/main/main01-bg.jpg) center/cover no-repeat;
    background-attachment: fixed;
}

.main01 .sub-box{
    text-align: center;
    padding: 180px 0;
}
.main01 p{
    font-size: 24px;
    white-space: pre-line;
}
.main01 h4 {
    font-size: 50px;
    font-weight: 800;
}

.highness-main-logo {
  display: inline-block;
  margin-bottom: 20px;
}

@media(max-width:768px) {
  .highness-main-logo {
    max-width: 200px;
  }
    .main01 p{
        font-size: 18px;
    }
    .main01 h4 {
        font-size: 28px;
    }
    .main01 .sub-box{
        padding: 250px 0;
    }
    .main-sub-tit h2, .main-sub-tit2 h2 {
        font-size: 60px;
    }
}

@media(max-width:429px) {
  .main01 .sub-box{
      padding: 130px 0;
  }
}

/* 02 */

.main02  {
    background: url(../img/main/main02-bg.jpg) center/cover no-repeat;
}

.main02 .sub-box {
    padding: 280px 0 280px 150px;
}

.main02 p{
    font-size: 24px;
    white-space: pre-line;
}
.main02 h4 {
    font-size: 50px;
    font-weight: 800;
}

@media(max-width:1400px) {
    .main02 .sub-box {
        padding: 240px 40px;
    }
    .main02 p{
        font-size: 18px;
    }
    .main02 h4 {
        font-size: 45px;
    }
}

@media(max-width:769px) {
    .main02 .inner > .flex {
      flex-direction: column-reverse;
    }
    .main02 .sub-box {
        padding: 80px 0;
    }
    .main02  {
        padding-bottom: 80px;
        background: #f3f3f3;
    }
    .main02 h4 {
        font-size: 35px;
    }
}
@media(max-width:500px) {
    .main02 .inner{
        padding-left: 40px;
        padding-right: 40px;
    }
    .main02 p{
        font-size: 16px;
    }
    .main02 h4 {
        font-size: 28px;
    }
}

/* 03 */
.main03 {
    background-color: #e7f2ee;
}

.main03 .inner {
    padding: 80px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main03 .sub-box {
    flex-shrink: 0;
    margin-right: 80px;
}

.main03 p{
    font-size: 24px;
    white-space: pre-line;
}
.main03 h4 {
    font-size: 50px;
    font-weight: 800;
}

@media(max-width:1200px) {
    .main03-img-box{
        margin: 40px 30px 0 30px;
    }
    .main03 .sub-box {
        margin: 0 30px;
    }
}

@media(max-width:769px) {
  .main03 .inner {
        flex-direction: column;
        align-items: start;
    }
    .main03 h4 {
        font-size: 35px;
    }
}
@media(max-width:500px) {
    .main03 p{
        font-size: 16px;
    }
    .main03 h4 {
        font-size: 28px;
    }
}

/* 04 */
.main04{
    color: #fff;
    background: url(../img/main/main04-bg.jpg) center/cover no-repeat;
    background-attachment: fixed;
}

.main04 .sub-box{
    text-align: center;
    padding: 280px 0;
}
.main04 p{
    font-size: 24px;
    white-space: pre-line;
}
.main04 h4 {
    font-size: 50px;
    font-weight: 800;
}

@media(max-width:768px) {
    .main04 p{
        font-size: 18px;
    }
    .main04 h4 {
        font-size: 28px;
    }
    .main04 .sub-box{
        padding: 250px 0;
    }
    .main-sub-tit h2, .main-sub-tit2 h2 {
        font-size: 60px;
    }
}
@media(max-width:429px) {
    .main04 .sub-box{
        padding: 120px 0;
    }
}

/* BA */
.ba-section {
  background-color: #f7f6f6;
  padding-bottom: 150px;
}

.ba-box{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ba-box-after .ba-img{
  transform: scale(1.2);
  border: 8px solid #37b0a1;
}

.ba-box strong {
  font-size: 28px;
}

.ba-box .ba-img{
  margin: 40px 60px 60px 60px;
  box-sizing: border-box;
  border-radius: 30px;
  max-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 9px 10px 21px -3px #59595940;
}

.ba-box .ba-login-cover{
    backdrop-filter: blur(2px);
    background-color: #000000c3;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.ba-box .ba-login-cover p{
    color: #fff;
    font-size: 20px;
}

.ba-box .ba-login-cover img{
    max-width: 80px;
}

.ba-tit {
  font-size: 24px;
}

@media(max-width:769px) {
  .ba-box strong{
    font-size: 24px;
  }
  .ba-tit {
    font-size: 18px;
  }
  .ba-box .ba-img {
    border-radius: 15px;
    margin: 10px 20px 20px 20px;
  }
  .ba-box-after {
    padding-top: 40px;
  }
  .ba-box-after .ba-img{
    transform: scale(1.1);  
  }
  .ba-box-after .ba-img{
    border: 4px solid #37b0a1;
  }
  .ba-box .ba-login-cover img{
    max-width: 50px;
  }
  .ba-box .ba-login-cover {
    gap: 10px;
  }
  .ba-box .ba-login-cover p {
    font-size: 14px;
  }
}

/* 치료후기 */

.main-review{
    display: flex;
    flex-direction: column;
}
.main-review > li {
    height: 200px;
    margin: 0 20px;
    box-sizing: border-box;
    border-top: 1px solid #37b0a1;
}
.main-review > li:last-child {
    border-bottom: 1px solid #37b0a1;
}
.ba-name {
  color: #37b0a1;;
    font-weight: 800;
    transition: all 0.3s;
}
.main-review .ba-ico{
    padding: 40px 0;
    display: flex;
    align-items: center;
    gap: 30px;
}
.main-review .ba-ico img{
    position: absolute;
    bottom: -5px;
    right: 50%;
    transform: translate(50%,0);
    transition: all 0.3s;
}
.main-review .ba-ico p {
    font-size: 24px;
}
.main-review .ba-ico > div:first-child{
    border-radius: 999px;
    width: 120px;
    height: 120px;
    overflow: hidden;
    position: relative;
    background-color: #d4d4d4;
    flex-shrink: 0;
    transition: all 0.3s;
}

@media(max-width:1200px) {
  .main-review .ba-ico p {
    font-size: 18px;
  }
}

@media(max-width:429px) {
  .main-review .ba-ico p {
    font-size: 16px;
  }
  .main-review > li {
      height: auto;
  }
}

/* doctor-intro */
.doctor-intro {
  margin-top: 150px;
  padding-bottom: 120px;
  position: relative;

  background: url(../img/main/doctor-intro-bg.jpg) bottom/contain no-repeat;
  background-color: #e7f2ee;
}
.doctor-intro p{
  font-size: 24px;
  
}
.intro-doc-name{
  margin-top: 80px;
  font-size: 24px;
  font-weight: 700;
}
.intro-doc-name p{
  font-weight: 700;
}
.intro-doc-name > span:last-child b{
  font-size: 35px;
}

@media(max-width:1400px) {
  .doctor-intro p{
    font-size: 18px;
  }
}


@media(max-width:769px) {
  .doctor-intro {
    margin-top: 120px;
    padding-bottom: 0;
    background: none;
    background-color: #e7f2ee;
  }
}

@media(max-width:429px) {
  .doctor-intro p{
    font-size: 16px;
  }
}

/* info-map */
.info-map {
  padding-bottom: 120px;
  background-color: #e7f2ee;
}
.info-map h4.info-map-title-con {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.info-map p {
  font-size: 18px;
}
.info-map h4.info-map-title-con > span:first-child {
  flex-shrink: 0;
}
.info-map h4.info-map-title-con img {
  height: 35px;
  width: 35px;
  flex-shrink: 0;
}
.info-map .info-map-sub {
    display: flex;
    flex-direction: column;
    font-size: 24px;
    font-weight: 800;
    gap: 4px;
}
.info-map h2.info-map-sub {
  font-weight: 800;
}

/* --- 진료시간 자간 및 양쪽 정렬 수정 영역 --- */
.info-map-sub .info-time {
  display: flex;
  gap: 80px;
  align-items: center;
}

/* 첫 번째 li (요일/제목) 영역 자간 균등 배분 */
.info-map-sub .info-time li:nth-child(1) {
    width: 150px;                   /* 폰트 크기(24px) 대비 적절한 너비로 조정 */
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;  /* ★ 한글 글자 단위 자간 균등 배분 핵심 속성 */
    flex-shrink: 0;                 /* 너비 줄어듦 방지 */
    white-space: nowrap;
}
/* ------------------------------------------- */

/* 카카오 지도 박스 높이 등 레이아웃 보정 */
.info-map .root_daum_roughmap {
  width: 100% !important;
  border-radius: 15px;
  overflow: hidden;
}

/* 오시는 길 카테고리 카드 */
.info-map-category .info-map-category-box {
  text-align: center;
  background-color: #fff;
  box-shadow: 9px 10px 21px -3px #1a6db617;
  border-radius: 30px;
  padding: 20px;
}
.info-map-category .info-map-category-box strong {
  font-weight: 700;
  font-size: 24px;
}
.info-map-category .info-map-category-box > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  height: 150px;
}
.info-map-category .info-map-category-box > div:first-child {
  border-bottom: 1px solid #00000010;
}

/* 미디어 쿼리 (반응형) */
@media(max-width:1200px) {
  .info-map .info-map-sub {
    font-size: 20px;
  }
  .info-map-btn a {
    font-size: 18px;
    padding: 8px;
  }
}

@media(max-width:769px) {
  .info-map h4.info-map-title-con{
    font-size: 16px;
  }
  .info-map {
    padding-bottom: 80px;
  }
  .info-map-btn {
    max-width: 100%;
  }
  .info-map-btn a {
    font-size: 18px;
    padding: 2px;
  }
  .info-map .info-map-sub {
    font-size: 18px;
  }
  .info-map-sub .info-time {
    gap: 20px;
  }
  
  /* 모바일 화면에서 요일 항목 너비 자동 조정 */
  .info-map-sub .info-time li:nth-child(1) {
    width: 95px;
  }

  .info-map-category .info-map-category-box .info-map-category-box-con > div {
    max-height: 170px;
    height: auto;
  }
  .info-map-category .info-map-category-box p {
    font-size: 16px;
    font-weight: 700;
  }
}