header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px; /* 명확한 높이 지정 권장 */
  background-color: #3a0d3b;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1000; /* nav보다 낮게 설정 */
}
/* 헤더 높이만큼 본문 패딩 (헤더가 본문 가리지 않도록) */
body {
  padding-top: 200px; /* header 80px + nav 50px */
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* ======================= */
/* 내비게이션 메뉴 */
/* ======================= */
nav {
  position: fixed;
  top: 150px; /* 헤더 아래 위치 */
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1001;
  
  /* Flexbox로 가로세로 중앙정렬 */
  display: flex;
  justify-content: center; /* 가로 중앙 */
  align-items: center;     /* 세로 중앙 */
  gap: 30px;               /* 링크 사이 간격 */
}

nav a {
  color: #000000;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 16px;
  /* margin 제거 */
}

nav a:hover,
nav a.active {
  background-color: #9f007734;
  color: white;
}

/* ======================= */
/* 메인 컨테이너 */
/* ======================= */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ======================= */
/* 섹션 스타일  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1); */
/* ======================= */
.section {
  display: none;
  padding: 20px;

  margin-bottom: 40px;
  box-sizing: border-box;
  animation: slideInFromLeft 0.8s ease forwards;
}

.section.active {
  display: block;
}
    
/* ======================= */
/* 각 섹션 별 너비 제한 및 텍스트 정렬 */
/* ======================= */
#insurance,
#service,
#service1,
#contact {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 20px;
  text-align: left;
}

/* ======================= */
/* 서비스 섹션 Flex 레이아웃 */
/* ======================= */
.section.service-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.service-text {
  flex: 1;
  min-width: 300px;
}

.service-image img {
  width: 400px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ======================= */
/* 푸터 스타일 *footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  margin-top: 40px;
}
/
/* ======================= */


  footer {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: #222;
      color: #fff;
      text-align: center;
      padding: 15px 0;
      font-size: 14px;
      z-index: 1000;
    }




/* ======================= */
/* 애니메이션 정의 */
/* ======================= */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ======================= */
/* 반응형 처리 */
/* ======================= */
@media (max-width: 768px) {
  header {
    padding: 15px 10px;
  }

  nav a {
    margin: 0 8px;
    padding: 5px 8px;
    font-size: 14px;
  }

  .section.service-flex {
    flex-direction: column;
    gap: 20px;
  }

  .service-image img {
    width: 100%;
  }



  body {
    padding-top: 70px;
  }
}


.slider {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  padding-top: 20px;
  border-top: 1px solid transparent;
}

.slider figure {
  margin: 0;               /* 기본 figure 여백 제거 */
  width: 400px;            /* 이미지와 동일 너비 */
  box-sizing: border-box;
  text-align: center;      /* 글씨 중앙 정렬 */
  font-size: 16px;
  color: #333;
}

.slider figure img {
  width: 100%;             /* figure 너비에 맞게 조절 */
  height: 400px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin-bottom: 8px;      /* 이미지와 글 사이 간격 */
}

@media (max-width: 768px) {
  .slider {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 150px;
    gap: 10px;

    /* 좌우 패딩 추가하여 스크롤 내 이미지 잘림 방지 */
    padding-left: 10px;
    padding-right: 10px;
  }

  .slider figure {
    flex: 0 0 auto; /* 고정 너비 유지 */
    width: 20%;
    min-width: 120px;
    font-size: 14px;
  }

  .slider figure img {
    height: auto;
    display: block;
  }

  /* 첫번째 figure 왼쪽 마진 추가 */
  .slider figure:first-child {
    margin-left: 5px;
  }

  /* 마지막 figure 오른쪽 마진 추가 */
  .slider figure:last-child {
    margin-right: 5px;
  }
}















  .customer-reviews {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  @media (max-width: 1200px) {
    .customer-reviews {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 768px) {
    .customer-reviews {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .review-card {
    background: #f8f8f8;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    text-align: center;
  }

  .review-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .review-text {
    font-style: italic;
    color: #333;
    margin: 0.5rem 0;
    font-size: 0.95rem;
  }

  .review-author {
    color: #888;
    font-size: 0.9rem;
  }








    .container1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    gap: 1rem;
    flex-wrap: wrap; /* 모바일에서 줄바꿈 가능하게 */
  }

  .service-text {
    flex: 1 1 60%;
    min-width: 280px;
  }

  .service-call {
    flex: 0 0 auto;
  }

  .service-call a {
    display: inline-block;
    background: #007bff;
    color: white;
    font-weight: bold;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    white-space: nowrap;
  }

  /* 모바일 반응형 */
  @media (max-width: 768px) {
    .container1 {
      flex-direction: column;
      align-items: stretch;
    }

    .service-call {
      text-align: center;
      margin-top: 1rem;
    }

    .service-call a {
      width: 100%;
      font-size: 1.1rem;
      padding: 1rem;
      white-space: normal; /* 줄바꿈 허용 */
    }
  }
















  .insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .insurance-box {
    border: 1px solid #ccc;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #f9f9f9;
  }

  .insurance-box h3 {
    margin-top: 0;
    color: #333;
  }

  .insurance-box ul {
    padding-left: 1.2rem;
  }

  .highlight {
    color: #0b75c9;
    font-weight: bold;
  }

  .service-call {
    margin-bottom: 1rem;
  }

  .service-call a {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
  }

  @media (max-width: 768px) {
    .insurance-grid {
      grid-template-columns: 1fr;
    }
  }


  .modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  .modal-overlay.active {
    display: flex;
  }
  .modal1 {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 90vh;
  }
  .modal1 h2 {
    margin-top: 0;
  }
  .modal1 label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
  }
  .modal1 input, .modal1 textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
  }
  .modal1 .actions {
    margin-top: 20px;
    text-align: right;
  }
  .modal1 button {
    padding: 8px 16px;
    margin-left: 10px;
  }
  #sending-status {
    color: blue;
    display: none;
    margin-top: 10px;
    font-weight: bold;
  }
  #progress-container {
    display: none;
    width: 100%;
    background: #eee;
    border-radius: 5px;
    height: 20px;
    margin-top: 5px;
    overflow: hidden;
  }
  #progress-bar {
    width: 0%;
    height: 100%;
    background: #0074cc;
    border-radius: 5px;
    transition: width 0.3s ease;
  }
  /* 상담 열기 버튼 스타일 (예시) */
  .open-modal {
    display: inline-block;
    padding: 10px 20px;
    background: #0074cc;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
  }

/*
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-overlay.active {
  display: flex;
}
.modal1 {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 90vh;
}
.modal1 h2 {
  margin-top: 0;
}
.modal1 label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}
.modal1 input, .modal1 textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}
.modal1 .actions {
  margin-top: 20px;
  text-align: right;
}
.modal1 button {
  padding: 8px 16px;
  margin-left: 10px;
}
   
    #progress-container {
      display: none;
      width: 100%;
      background: #eee;
      border-radius: 5px;
      height: 20px;
      margin-top: 5px;
      overflow: hidden;
    }
    #progress-bar {
      width: 0%;
      height: 100%;
      background: #0074cc;
      border-radius: 5px;
      transition: width 0.3s ease;
    }
*/