/* 医院紹介・求人一覧セクション */
.hospitals {
  background: #ffffff;
  border-radius: 0 300px 0 0;
  padding: 100px 0;
  overflow: hidden;
}

.hospitals__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ヘッダー */
.hospitals__header {
  text-align: center;
}

.hospitals__title {
  font-weight: bold;
  margin-bottom: 32px;
}

.hospitals__title-main {
  display: block;
  font-size: 40px;
  line-height: 1.5;
  color: #ff6666;
}

.hospitals__title-sub {
  display: block;
  font-size: 40px;
  line-height: 1.5;
  color: #ff6666;
}

.hospitals__description {
  font-weight: bold;
  font-size: 24px;
  line-height: 1.5;

  margin: 0;
}

.hospitals__description-line {
  display: block;
}

/* スライダー */
.hospitals__slider-wrapper {
  width: 100vw;
  height: fit-content;
  overflow: hidden; /* JavaScriptカルーセル用にoverflow設定 */
  position: relative;
}

/* ナビゲーションボタン */
.hospitals__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 102, 102, 0.9);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hospitals__nav-btn--prev {
  left: 20px;
}

.hospitals__nav-btn--next {
  right: 20px;
}

.hospitals__nav-btn .material-symbols-outlined {
  font-size: 24px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.hospitals__slider {
  display: flex;
  gap: 40px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hospitals__slider::-webkit-scrollbar {
  display: none;
}

/* 病院カード */
.hospital-card {
  background: #ffffff;
  border-radius: 21px;
  box-shadow: 0px 4px 11.2px 0px rgba(0, 0, 0, 0.25);
  padding: 20px 26px;
  min-width: 290px;
  width: 290px;
  height: 430px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hospital-card__image,
.hospital-card__image-placeholder {
  width: 238px;
  height: 227px;
  overflow: hidden;
  flex-shrink: 0;
}

.hospital-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hospital-card__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 353px;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
}
.hospital-card__locate {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.5;
  font-size: 12px;
  font-weight: bold;
  color: #333333;
  background: #f9f3eb;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  height: fit-content;
  text-align: left;
}

.hospital-card__name {
  font-weight: bold;
  font-size: 20px;
  line-height: 32px;
  margin: 0;
  flex-shrink: 0;
}

.hospital-card__text-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
}

.hospital-card__details {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.5;
  font-size: 12px;
  font-weight: bold;
  color: #333333;
  flex-shrink: 0;
  height: fit-content;
  text-align: left;
}

/* CTA部分 */
.hospitals__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 513px;
  width: 100%;
}

.hospitals__cta-text {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  height: 42px;
}

.hospitals__cta-message {
  font-weight: bold;
  font-size: 24px;

  text-align: center;
  white-space: nowrap;
}

.hospitals__cta-arrow {
  width: 24px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .hospitals__container {
    padding: 0 50px;
  }

  .hospitals__slider {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hospitals {
    padding: 40px 0;
    border-radius: 0 100px 0 0;
  }

  .hospitals__container {
    padding: 0 24px;
    gap: 40px;
  }

  .hospitals__header {
    margin-bottom: 0;
  }

  .hospitals__title {
    margin-bottom: 16px;
  }

  .hospitals__title-main,
  .hospitals__title-sub {
    font-size: 28px;
  }

  .hospitals__description {
    font-size: 16px;
  }

  .hospitals__nav-btn {
    width: 40px;
    height: 40px;
  }

  .hospitals__nav-btn--prev {
    left: 10px;
  }

  .hospitals__nav-btn--next {
    right: 10px;
  }

  .hospitals__nav-btn .material-symbols-outlined {
    font-size: 20px;
  }

  .hospitals__slider {
    gap: 40px;
    padding-right: 0;
    margin-left: -24px;
    padding-left: 24px;
  }

  .hospital-card {
    min-width: 290px;
    width: 290px;
    height: 430px;
    padding: 20px 26px;
  }

  .hospital-card__image,
  .hospital-card__image-placeholder {
    width: 238px;
    height: 227px;
  }

  .hospital-card__placeholder-text {
    font-size: 16px;
  }

  .hospital-card__name {
    font-size: 20px;
  }

  .hospital-card__salary,
  .hospital-card__benefits {
    font-size: 12px;
  }

  .hospitals__cta {
    margin-top: -48px;
  }

  .hospitals__cta-message {
    font-size: 16px;
  }

  .hospitals__cta-arrow {
    width: 16px;
    height: 20px;
  }
}
