@charset "utf-8";
/* ======================================================================================================================= */
/* ======================================================= main style ==================================================== */
/* ======================================================================================================================= */

main {
    position: relative;
}
#wrapper {
    /* overflow: hidden; */
}
.content:first-of-type {
    padding-top: 0;
}

.content-slide{
    background-color: #000;
}
.main-slide {
    
    max-width: 1920px;
    margin: 0 auto;
}

.main-slide .swiper-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.main-slide .swiper-slide .img {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.2);
    transition: transform 0.8s ease-in-out;
}

.main-slide .swiper-pagination {
    left: 0;
    bottom: 40px !important;
    top: auto !important;
    width: 100%;
}
.main-slide .swiper-pagination-bullet {
    margin: 0 4px;
    width: 14px;
    height: 14px;
    background: #ffffffdd;
    transition: all 0.4s ease-in-out;
}
.main-slide .swiper-pagination-bullet-active {
    background: #00a0b8;
    opacity: 1;
}

.main-tit {
    margin-bottom: 40px;
    text-align: center;
}
.main-tit .sub-tit {
    font-weight: 600;
    white-space: pre-line;
}
.main-tit .tit {
    font-weight: 900;
    font-family: 'NanumSquare', san-serif;
    transform: skew(-0.1deg);
    white-space: pre-line;
}
.main-tit .sub {
    margin-top: 30px;
    white-space: pre-line;
}


/* ===================== Mobile size : 425px ======================= */

@media screen and (max-width: 480px) {
    main {
        margin-top: 55px;
    }

    .main-tit {
        margin-bottom: 20px;
    }
}

/* ===================== Mobile size : 425px ======================= */

@media screen and (max-width: 480px) and (min-height: 720px) {
    
}

@media screen and (max-width: 480px) and (min-height: 850px) {
    .main-slide .swiper-slide {
        height: calc(var(--vh, 1vh) * 100 - 285px);
    }
}

/* ======================================================================================================================= */
/* ======================================================= main style ==================================================== */
/* ======================================================================================================================= */

/* event-section */
.event-section{
  background: url(../img/main/event-section-bg.jpg) top/cover no-repeat;
  padding-bottom: 120px;
}

.open-title{
  padding: 250px 0 320px 0;
}

.event-content-deco > img{
  width: 100%;
}

.event-content{
  text-align: center;
  padding: 10px;
  transform: translateY(-10%);
}

@media(max-width:769px) {
  .open-title{
    padding: 150px 0;
  }
}

/* ba-section */
    .ba-section{
      color: #fff;
       padding: 180px 0;
       background: url(../img/main/ba-sectio-bg.jpg) bottom/cover no-repeat;
    }

   .ba-section .case-box {
        margin: 40px 50px;
        text-align: center;
    }

    .case-box h4 {
      font-weight: 600;
    }

    .case-box img{
      pointer-events: none;
    }

    /* 컨테이너: 이미지 비율에 맞춰 크기 설정 */
    .compare-container {
        position: relative;
        width: 100%;
        margin: 0 auto;
        user-select: none; /* 드래그 시 텍스트 선택 방지 */
        cursor: grab;
        margin-top:20px;
    }
    .compare-container:after {
        content: '';
        position: absolute;
        display: block;
        background-color: #ffd5e1;
        left: 0;
        right: 0;
        bottom: -5px;
        height: 5px;
        z-index: 2;
    }

    /* 이미지 레이어 공통 */
    .img-layer {
        box-shadow: 10px 10px 15px 0px rgba(0,0,0,0.23);
        border-radius: 10px;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden; /* 핵심: 이미지가 잘리도록 설정 */
    }

    /* 이미지가 찌그러지지 않도록 설정 */
    .img-layer img {
        display: block;
        width: 100%; 
        height: auto;
        max-width: none; 
    }

    /* Before 레이어 (초기값 50%) */
    .img-before {
        width: 50%; /* JS로 제어될 값 */
        z-index: 2;
        position: absolute;
        border-right: 1px solid white;
    }

    .img-before img{
        position: absolute;
        right: 0;
        left: 0;
    }

    

    /* After 레이어 (배경 역할) */
    .img-after {
        position: relative; /* 높이를 잡기 위해 relative */
        width: 100%;
        z-index: 1;
    }

    /* 핸들 스타일 */
    .handle {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%; /* JS로 제어될 값 */
        width: 4px;
        z-index: 3;
        background-color: #dcdcdc;
        transform: translateX(-50%); /* 중앙 정렬 보정 */
        pointer-events: none; /* 핸들이 마우스 이벤트를 가로채지 않도록 설정 (부드러운 조작) */
    }

    /* 핸들 중앙 아이콘 꾸미기 */
    .handle-circle {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        background: #808080;
        border: 5px solid #dcdcdc;
        border-radius: 50%;
        color: #fff;
        text-align: center;
        line-height: 36px; /* 이미지 수직 중앙 정렬 보정 */
        font-weight: bold;
        box-shadow: 0 0 5px rgba(0,0,0,0.3);

        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .handle-circle img {
        vertical-align: middle;
    }

    /* 라벨 텍스트 (전/후) */
    .label {
        position: absolute;
        bottom: 10px;
        color: #fff;
        font-size: 24px;
        font-weight: 700;
        /* background: rgba(0,0,0,0.3);  */
        border-radius: 4px;
    }
    .img-before .label { left: 10px; }
    .img-after .label { right: 10px; }

    .case-sub{
        text-align: center;
        margin-top:40px;
        opacity: 0.1;

        transition: all 1s;
    }

    .case-sub.active{
        opacity: 1;
    }

    /* 1400px */
    @media(max-width: 1400px){
        .ba-section{
            padding: 80px 0;
        }
    }

    /* 1200 */
    @media(max-width: 1200px){
        .case-sub{
            font-size: 12px !important;
        }
        .compare-container{
            margin-top: 20px;
        }
    }

    /* 769 */
    @media(max-width: 769px){
       .ba-section .case-box {
          margin: 40px;
       }
        .sub-list p{
            font-size: 14px;
        }
    }

    /* 페이지네이션이 들어갈 하단 공간 확보 */
.laminate-swiper-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 50px; /* 상하 20px, 좌우 50px 여백 (화살표 공간) */
    position: relative;
}

    /* 고유 클래스 스타일링 */
.laminate-swiper-container {
    width: 100%;
    /* max-width: 1600px; */
    margin: 0 auto;
    overflow: hidden;
    padding: 40px 0;
}

.laminate-swiper-container .swiper-wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
}

.laminate-swiper-container .swiper-slide {
    height: auto;
}

/* 화살표 기본 크기 및 하얀색 설정 */
.laminate-swiper-container {
    --swiper-navigation-color: #ffffff; /* 하얀색 화살표 */
    --swiper-navigation-size: 30px;     /* 화살표 크기 (원하는 대로 조절 가능) */
}

/* 좌우 화살표 위치 세부 조정 */
.laminate-button-prev {
    left: 15px !important;
}

.laminate-button-next {
    right: 15px !important;
}

/* insta-section */
.insta-section {
  position: relative;
}
.insta-section img{
  width: 100%;
}

.video-area{
  position: absolute;
  top: 12.4%;
  left: 34.8%;
  right: 34.8%;
  bottom: 10.5%;
}


/* info-dentist */
.info-dentist {
  overflow: hidden;
  position: relative;
  padding: 120px 0;
  background: url(../img/main/info-dentist-bg.jpg) bottom/cover no-repeat;
  background-attachment: fixed;
}

.info-dentist .doctor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 570px;
}
.info-dentist .doctor img{
    transform: translateX(20%);
}

.info-dentist ul > li:before{
  content: '·';
  margin-right: 8px;
}

.info-dentist h3{
  margin-top: 40px;
  margin-bottom: 20px;
  color: #666664;
  font-size: 35px;
  font-weight: 400;
}
.info-dentist ul > li {
  color: #666664;
  font-weight: 400;
}

.info-dentist h3:last-of-type{
  color: #70444b;
}
.info-dentist ul:last-of-type > li {
  color: #70444b;
}

.doctor-name {
  font-size: 50px;
}
.doctor-name b{
  font-weight: 900;
  margin-left: 30px;
}

@media(max-width:1200px) {
  .doctor-name {
    font-size: 40px;
  }
  .info-dentist h3{
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .doctor-name b{
    margin-left: 20px;
  }

  .info-dentist ul > li {
    font-size: 16px;
  }
}

@media(max-width:769px) {
 .info-dentist .doctor img{
      display: none;
  }
}

/* info-map */

/* 카카오맵 설명 숨김 */
.root_daum_roughmap .cont .section_address {
  display: none;
}

.info-map {
  padding-bottom: 120px;
  color: #fff;
  background-color: #70444b;
  background: url(../img/main/info-map-bg.jpg) bottom/cover no-repeat;
}
.info-map h4.info-map-title-con {
  font-size: 24px;
  font-weight: 600;
  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: 600;
    gap: 4px;
}
.info-map h2.info-map-sub {
  font-weight: 600;
}
.info-map-tel{
  font-size: 35px !important;
}

/* --- 진료시간 자간 및 양쪽 정렬 수정 영역 --- */
.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;
  overflow: hidden;
}

/* 오시는 길 카테고리 카드 */
.info-map-category .info-map-category-box {
  text-align: center;
  background-color: #fff;
  color: #000;
  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;
  }
}
