/* ----------------------------------------
  一般の方へ
---------------------------------------- */
.main-image-forthegeneral {
  width: 1200px;
  display: block;
  margin: 0 auto;
  margin-top: 50px;
  border-radius: 20px;
}

.visiting-nurse-section,
.service-info-section,
.reasons-section,
.how-to-use-section,
.costs-section {
  width: 70%;
  margin: 50px auto;
  padding: 40px 20px;
}

.visiting-nurse-title,
.service-info-title,
.reasons-title,
.how-to-use-title,
.costs-title {
  display: flex;
  align-items: center; /* 縦方向の中央揃え */
  justify-content: center; /* 中央揃え */
  gap: 10px; /* タイトルとの間隔 */
  position: relative;
  width: 100%;
  margin: 20px auto;
}

.visiting-nurse-title h2,
.service-info-title h2,
.reasons-title h2,
.how-to-use-title h2,
.costs-title h2 {
  color: #8b5e3c;
  font-size: 28px;
  margin: 0;
  white-space: nowrap;
}

.visiting-nurse-title::before,
.visiting-nurse-title::after,
.service-info-title::before,
.service-info-title::after,
.reasons-title::before,
.reasons-title::after,
.costs-title::before,
.costs-title::after,
.how-to-use-title::before,
.how-to-use-title::after {
  content: "";
  flex-grow: 1; /* ← 自動調整で両側の線を伸縮 */
  height: 2px;
  border-top: 2px dotted #c9bc9c;
}

.dot-divider {
  border: none;
  border-top: 2px dotted #c9bc9c;
  margin: 20px 0;
}

.visiting-nurse-intro {
  display: flex;
  padding: 20px;
}
/* 説明文 */
.visiting-nurse-description {
  flex: 1;
  text-align: left;
  line-height: 1.8;
  color: #333;
  padding-left: 20px;
}

/* イラスト */
.nurse-illustration {
  text-align: left;
  margin: 20px 0;
}
.nurse-illustration img {
  max-width: 90px;
  z-index: 1;
}

.visiting-nurse-services {
  background-color: white;
  border-radius: 20px;
  /* margin-top: -85px; */
  display: grid;
  justify-items: center;
  align-content: start;
}

.visiting-nurse-services h3 {
  text-align: center;
  padding: 30px;
}

/* サービスリストと画像の配置 */
.visiting-nurse-services-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

/* サービスリスト */
.visiting-nurse-service-list {
  flex: 1;
  padding: 0;
  list-style: none;
  width: 100%;
}
.visiting-nurse-service-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  padding-left: 30px;
  border-bottom: 1px solid #e6e6b4;
  width: 100%;
}

.visiting-nurse-service-list .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffd700; /* 丸の背景色 */
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* 画像 */
.visiting-nurse-service-images {
  position: relative;
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  /* padding-right: 50px; */
  padding-bottom: 20px;
  margin: 0 auto;
  gap: 10px;
}
.visiting-nurse-service-images img {
  width: 50%;
  border: 8px solid #fff; /* 写真の白い枠 */
  border-radius: 4px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
.service-info-images,
.reasons-images,
.how-to-use-images,
.costs-images {
  margin: 0 auto;
  text-align: center;
}
.service-info-images img,
.reasons-images img,
.how-to-use-images img,
.costs-images img {
  width: 80%;
  display: block;
  margin: 0 auto;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .visiting-nurse-section,
  .service-info-section,
  .reasons-section,
  .how-to-use-section,
  .costs-section {
    width: 100%;
  }

  .visiting-nurse-title,
  .service-info-title,
  .reasons-title,
  .how-to-use-title,
  .costs-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 800px;
    height: auto;
    text-align: center;
    margin: 0 auto;
  }

  .visiting-nurse-title h2,
  .service-info-title h2,
  .reasons-title h2,
  .how-to-use-title h2,
  .costs-title h2 {
    font-size: clamp(20px, 5vw, 36px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 10px auto;
  }

  .kv-menu2 {
    display: inline-block;
    bottom: -220px;
  }

  .visiting-nurse-section {
    margin-top: 220px;
  }

  .for-the-public-section {
    flex-direction: column;
  }
  .visiting-nurse-services-content {
    flex-direction: column;
    align-items: center;
  }
  .visiting-nurse-service-images img,
  .service-info-images img,
  .reasons-images img,
  .how-to-use-images img,
  .costs-images img {
    width: 95%;
    display: block;
    margin: 0px auto;
  }

  .visiting-nurse-intro {
    display: block;
  }

  .nurse-illustration {
    display: block;
    text-align: center;
    /* margin: 20px 0; */
  }
  .nurse-illustration img {
    max-width: 100px;
  }
}
