/* 반응형 스타일 */
@media (max-width: 768px) { 
  * {
    overflow-x: hidden;
  }

  main {
    padding: 80px 20px;    
  }

  .header-m {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    color: white;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    z-index: 1000;
  }

  .header-m .logo {
    display: flex;
    align-items: center;
  }

  .header-m .logo-icon {
    font-size: 20px;
    margin-right: 8px;
  }

  .header-m .clinic-name {
    font-size: 18px;
  }

  .header-m .menu-toggle {
    font-size: 18px;
    cursor: pointer;
    color: white;
  }
  
  /* 사이드 메뉴 */
  .side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: white;
    transition: right 0.3s ease;
    z-index: 999;
  }

  /* 사이드 메뉴 */
  .side-menu2 {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: white;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .side-menu2.open {
    right: 0; /* 화면 왼쪽으로 이동 */
  }


  .menu-content {
    margin: 15px;
  }

  .menu-items {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }

  #close-flex {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px;
  }

  #close-flex p {
    color: #4E3524;
    font-size: 14px;
    vertical-align: middle;
  }

  .menu-items li {
    justify-content: space-between; 
    align-items: center;
    padding: 10px;
  }

  .menu-items li a {
    color: #4E3524;
    text-decoration: none;
    font-size: 18px;
    display: block;
  }

  /* 하위 메뉴 */
  .submenu {
    display: none;
    list-style-type: none;
    padding-left: 20px;
    margin-top: 10px;
  }

  /* 하위 메뉴가 열렸을 때 */
  .submenu.open {
    display: block;
  }

  .submenu {
    list-style-type: none;
    padding-left: 20px;
    display: none;
  }

  .submenu.active {
    display: block;
  }

  /* 뒤로가기 버튼 */
  .back-button {
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
  }
  
  .side-menu.open {
    left: 0;
  }

  
  /* ------------------------------------------------------- */
  .hero {
    height: 100vh;
  }

  .hero h1 {
    font-size: 2.0rem;
  }

  .hero p {
    font-size: 1rem;
  }
  .row {
    flex-direction: column;
    text-align: center;
}

  .image, .text {
      width: 100%;
  }

  .text {
      margin-top: 20px;
  }

  .sticky-menu {
    display: none;
  }

  .side-menu {
    display: block; 
  }

  .menu-items {
    list-style-type: none;
    padding: 0;
  }

  /* ---------------------소개---------------------- */
  .intro-main {
    max-width: 960px;
  }

  .intro-prolog-m {
    margin-top: 15px;
    text-align: left;
  }

  .intro-title-m {
    text-align: center;
    font-size: 24px;
  }
  
  .intro-container img {
    width: 100%;
  }
  
  .intro-contents {
    margin-top: 20px;
  }

  .intro-tabs { 
    margin-top: 0px;
    max-width: 1200px;
    justify-content: center; 
    width: 100%;
    display: flex; 
  }

  .intro-tab {
    flex: 1;
  }
  /* ------------------------------------------------------- */
  /* ---------------------contents---------------------- */
  .contents-content {
    width: 100%;
    color: #4E3524;
  }

  .contents-text {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .sub-text2 {
    margin-top: 30px;
  }

  .contents-card-m {
    width: 50%;
    text-align: left;
  }

  .contents-container {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    max-width: 800px;
  }

  .contents-card-m img {
    width: 100%;
    height: auto;
    border-radius: 5px;
  }

  .contents-title {
    font-size: 16px;
    color: #4E3524;
    margin-top: 10px;
  }

  .contents-description {
    font-size: 16px;
    color: #4E3524;
    margin-top: 5px;
    line-height: 1.5;
  }
  /* ---------------------contents---------------------- */
  /* ------------------------QNA-----------------------*/  
  .qa-form {
    padding: 15px;
  }

  .qa-title-m {
    font-size: 24px;    
  }

  .qa-subtitle-m {
    font-size: 15px;
    margin-top: 20px;
  }  
  /* --------------------------------------------------*/
  /* ----------------medical--------------*/
  .medical-main {
    margin-top: 20px;
  }
  .intro-container img {
    margin-bottom: 0px;
  }

  .table-box {
    text-align: left;
    margin-top: 40px;
  }

  .table-box p {
    padding: 15px 0px 15px 0px;
    font-size: 24px;
    border-bottom: 1px solid #4E3524;
  }

  .table-box-text {
    display: flex;
    padding: 15px 0px 15px 0px;
    border-bottom: 1px solid #4E3524;
  }

  .table-title {
    flex: 1;
    padding-right: 10px;
  }

  .table-content {
    flex: 4;
  }

  /* --------------------------------------------------*/
  /* ---------------------상담--------------------*/
  /* 빠른 상담담 폼 전체 컨테이너 */
  .quick-form {
    margin: 100px 0px 100px 0px;
    font-family: "Noto Sans KR", sans-serif;
    background-color: white;
    padding: 30px;
    text-align: center;
  }

  /* ---------------------footer---------------------- */
  .footer-m {
    width: 100%;
    background-color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 16px;    
  }
  
  .footer-address {
    text-align: center;
    line-height: 20px;
    color: #4E3524;
  }
  
  .footer-m-nav-menu {
    list-style: none;
  }
  .footer-m-nav-menu li {
    margin: 15px;
  }

  .footer-m-nav-menu a {
    text-decoration: none;
    color: #4E3524;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
  }
  
  /* ---------------------footer---------------------- */
  /* ---------------------side-menu-footer---------------------- */
  .side-menu-footer {
    display:none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #4E3524;
    padding: 10px;
  }

  /* --------------------------- clinic ---------------------- */
  .clinic-content.active {
    margin-top: 40px;
    display: block; 
  }
  .clinic-contents {
    margin-top: 30px;
  }

  .clinic-content {
    margin-top: 50px;
    color: #4E3524;
    overflow-x: none;
  }

  .clinic-m-title {
    height: 50px;
    font-size: 24px;
  }

  .clinic-tabs { 
    margin-top: 0px;
    max-width: 1200px;
    justify-content: center; 
    width: 100%;
    display: flex; 
  }

  .clinic-tab {
    flex: 1;
    padding: 10px;
  }

  .clinic-m-img img {
    margin-top: 50px;
    width: 100%;
  }

  .clinic-m-sub-title {
    margin-top: 50px;
    font-size: 18px;
  }

  .clinic-m2-title {
    height: 50px;
    margin: 30px 0px 20px 0px;
    font-size: 24px;
  }

  .clinic-circle-cotents {
    padding: 15px;
    width: 100%;
  }

  .circle-list {
    text-align: left;
    margin-top: 20px;
  }

  .circle-mobile-use{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26vh
  }

  .circle-m {    
    margin-top: 30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #8b8b8b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center; /* 텍스트 가운데 정렬 */
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #555;
    padding: 10px; /* 내부 여백 추가 */    
  }
  
  .circle-m:hover {
    transform: scale(1.1);
    background-color: #8b8b8b;
    color: white;
  }

  .clinic-why-contents {    
    background-color: #D9D9D9;
    color: #4E3524; 
    width: 100%;
    padding: 10px 10px 50px 10px; 
    margin-top: 80px;
  }

  .clinic-m2-why-contents {
    margin-top: 50px;
    text-align: left;
    line-height: 25px;
  }

  .clinic-m2-why-title {
    font-size: 20px;
  }
  
  .circle-arrow {
    margin-top: 20px;
  }

  .clinic-m-step {
    line-height: 25px;
    text-align: left;
  }

  .clinic-m-step-contents{
    margin: 20px 0px 20px 0px;
  }
  /* --------------------------- clinic ---------------------- */
}
