/* 取り組み一覧 */
.case__pagenation-warapper {
  text-align: center;
  margin-bottom: 50px;
}

.case__lists {
  display: flex;
  flex-wrap: wrap;
  margin-right: -20px;
}

li.case__list {
  border-bottom: none;
}

ul.case__lists li a {
  position: static;
}

.case__list {
  width: calc(100% /3 - 20px);
  margin-right: 20px;
  margin-bottom: 20px;
}
.case__list-imgbox{
  border-bottom: 1px solid #ddd;
  text-align: center;
  max-width: 100%; /* コンテナの最大幅を設定（任意） */
  overflow: hidden; /* 必要に応じてはみ出した部分を隠す */
  aspect-ratio: 3 / 2;
}
.case__list-img {
  /* max-width: 100%;
  width: auto;
	height: 15rem; */
	/* object-fit: cover; */
  width: 100%; /* 画像の幅を親要素に合わせる */
    height: auto; /* 縦横比を維持する */
    display: block;  /* インライン要素の隙間を防ぐ */
}

.case__list-date {
  color: #888;
}

.case__list-content {
  padding: 10px;
}

.case__list-link{
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1rem;
}

.case__doctor {
  padding-top: 20px;
  display: flex;
  align-items: center;
}

.case__doctor-img img{
  width: 60px;
  height: 60px;
  border-radius: 100vh;
  margin-right: 16px;
}

.case__doctor-link {
font-size: 13px;
}

/* 取り組み詳細 */
.case-single__img{
  max-width: 800px;
  width: 100%;
	height: auto;
  margin-bottom: 1rem;
}
.case-single__labels {
  margin-bottom: 2rem;
}

.case-single__button-wrapper {
  text-align: center;
}

.case-single__content {
  margin-bottom: 50px;
}

.case-single__button {
  display: inline-block;
  text-align: center;
  background-color: #ccc;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
}

.case-single__connection-head {
  width: 100%;
  margin-bottom: 0.3rem;
}

.case-single__connection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin-bottom: 50px;
}

.case-single__connection-doctor {
  display: flex;
  align-items: center;
  margin-right: 40px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.3rem;
}

.case-single__connection-doctor img {
  width: 80px;
  /* height: 60px; */
  display: block;
  margin-right: 16px;
  border-radius: 5px;
}


@media screen and (max-width: 768px) {
  .case__list {
    width: calc(50% - 20px );
  }

  .case__list:nth-of-type(2n) {
    margin-right: 0;
  }
  .case__doctor {
    font-size: 0.8rem;
  }
  .case__list-content {
    padding-left: 0;
    padding-right: 0;
  }

  .case-single__connection {
    flex-direction: column;
    align-items: flex-start;
  }
  .case-single__connection-head {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .case-single__connection-doctor {
    margin-right: 0;
  }
}





.case-single__content h2{
    margin-top: 5rem;
}
.case-single__content h2:after{
  border: none;
}