/* 부드러운 앵커 이동(메뉴 클릭 시) */
html {
  scroll-behavior: smooth;
}

/* 모든 섹션 애니메이션 */

/*
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

*/

/* 슬라이드 네비 버튼 - 모바일 */
@media (max-width: 768px) {
    .slider-nav button {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }
}

/* description */
.description {
    font-weight: 400;
}

/* 팝업 (모바일) */
@media (max-width: 768px) {
    .hd_pops_con {
        width: 100% !important;
        height: auto !important;
        padding: 0;
        box-sizing: border-box;
    }
    .hd_pops_con img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    #hd_pop {
        width:100%;
        top:80px;
    }
    .hd_pops {
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto;
        top: 10px !important;
    }
}

/* 퀵메뉴 */
.quick-menu {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 90px;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  text-align: center;
  overflow: hidden;
}

.quick-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-menu li {
  padding: 12px 0;
}

@media (min-width: 769px) {
  .quick-menu li {
    margin: 8px 8px;
  }
  .quick-menu li:not(:last-child) {
    border-bottom: 1px solid #ccc;
  }
}

.quick-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 15px;
}

.quick-menu img.icon {
  display: block;
  margin-bottom: 4px;
}

.quick-menu .to-top {
  width: 100%;
  padding: 10px 0;
  background: #af2c62;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

/* 모바일 전환 */
@media (max-width: 768px) {
  .quick-menu {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    display: flex;
    justify-content: space-around;
  }
  .quick-menu ul {
    display: flex;
    width: 100%;
    justify-content: space-around;
  }
  .quick-menu li {
    flex: 1;
    padding: 8px 0;
    margin: 0;
  }
  .quick-menu li:not(:last-child) {
    border-right: 1px solid #ccc;
  }
  .quick-menu .to-top {
    display: none;
  }
}

/* 의료진 프로필 스타일 */
.main_con.sec_profile {
    padding-top: 120px;
    padding-bottom: 0;
}

.description1 {
    font-weight: 400;
    color:#ffffff;
}

.main_con.sec_profile .tt h2 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .main_con.sec_profile .tt h2 {
        font-size: 22px;
    }
}

.main_con.sec_profile .tt h2 .bold {
  font-weight: 700;
  font-size: 40px;
  color:#ffffff;
}

@media (max-width: 768px) {
  .main_con.sec_profile .tt h2 .bold {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .bottom-list {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
    .profile-lists ul {
        width: 80%;
        padding-bottom: 30px;
    }
}

@media (min-width: 1024px) {
    .profile-img {
        padding-bottom: 50px;
    }
    .profile-info {
        padding-top: 40px;
    }
}

/* 진료과목 그리드 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.subject-box {
  background-color: #fff;
  border-radius: 1rem;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.subject-box img {
  width: 150px;
  height: 150px;
  margin-bottom: 1.2rem;
  object-fit: contain;
}

.subject-box h3 {
  font-size: 25px;
  margin: 0.5rem 0 0.8rem;
  font-weight: 700;
  color: #333;
}

.subject-box p {
  font-size: 16px;
  color: #000;
  font-weight: 400;
  line-height: 1.5;
}

/* 반응형 */
@media (max-width: 768px) {
  .grid-container { grid-template-columns: repeat(2, 1fr); }
  .subject-box img { width: 120px; height: 120px; }
  .subject-box h3 { font-size: 20px; }
  .subject-box p { font-size: 13px; }
}

@media (max-width: 480px) {
  .grid-container { grid-template-columns: 1fr; }
  .subject-box img { width: 90px; height: 90px; }
  .subject-box h3 { font-size: 20px; }
  .subject-box p { font-size: 13px; }
}




/* 내부 탕전실 / 치료 내용 - 강제 교정 버전 */
.ivsec-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  overflow: hidden; /* 영역 밖으로 나가는 것 방지 */
}

.ivsec-intro {
  display: flex !important;
  flex-direction: row; /* PC에서는 가로 */
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  width: 100% !important;
  box-sizing: border-box;
}

.ivsec-textbox {
  flex: 1 !important; /* 남은 공간 모두 활용 */
  min-width: 0; /* flex 자식 요소의 넘침 방지 핵심 */
}

.ivsec-imgbox {
  /* PC 이미지 450px 고정 */
  flex: 0 0 450px !important; 
  width: 450px !important;
  max-width: 450px !important;
}

.ivsec-imgbox img {
  width: 100% !important;
  height: auto !important;
  border-radius: 20px;
  display: block;
}

.ivsec-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #af2c62;
  word-break: keep-all;
}

.ivsec-desc {
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
}

/* 모바일 대응 (반드시 768px 이하에서 작동) */
@media (max-width: 768px) {
  .ivsec-wrapper {
    padding: 30px 15px !important;
  }

  .ivsec-intro {
    flex-direction: column !important; /* 모바일은 무조건 세로 배치 */
    gap: 30px !important;
  }

  .ivsec-textbox {
    width: 100% !important;
    flex: none !important;
  }

  .ivsec-imgbox {
    /* 모바일에서는 고정 크기 해제 및 100% */
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ivsec-title {
    font-size: 28px !important;
    text-align: left;
  }

  .ivsec-desc {
    font-size: 16px !important;
    text-align: left;
  }
}

.ivsec-divider {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  margin: 40px 0;
}


/* 병원 둘러보기 */
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.gallery-top {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 16px;
}

.gallery-thumbs .swiper-slide {
  opacity: 0.4;
}

.gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #007bff;
}

@media (max-width: 768px) {
  .gallery-top { aspect-ratio: 4/3; }
}

/* 진료시간 */
.main_con.sec_info .txt li.lunch1 * {
  font-size: 17px;
  color: #666;
}

@media (max-width: 1024px) {
  .main_con.sec_info .txt li.lunch1 * {
    font-size: 15px;
  }
}

.main_con.sec_info .txt li.lunch1 {
  margin-top: -12px;
}

.main_con.sec_info .txt li.lunch1 span {
  width: 100%;
  color: #000;
}

/* 지도 */
.maps iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .maps iframe {
    height: 250px;
  }
}
