.therapist-list-scroll-container {
  overflow-x: auto;
  display: flex;
  gap: 2rem;
  padding-bottom: 1rem;
}
.therapist-list-scroll-container .therapist-list-item {
  flex-basis: calc((100% - 4rem) / 3 - 1.5rem);
  flex-shrink: 0;
  max-width: 300px;
}
.therapist-list-scroll-container::-webkit-scrollbar {
  background-color: transparent;
  height: 6px;
}
.therapist-list-scroll-container::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 1rem;
}
.therapist-list-scroll-container::-webkit-scrollbar-track {
  background-color: #e5e5e5;
}

.therapist-list-ranking-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}
.therapist-list-ranking-container .therapist-list-item {
  flex-basis: calc((100% - 4rem) / 3);
}
.therapist-list-ranking-container .therapist-list-item:nth-of-type(1) {
  flex-basis: 100%;
  flex-direction: row;
  gap: 2rem;
}
.therapist-list-ranking-container .therapist-list-item:nth-of-type(1) .therapist-list-item__thumbnail {
  flex-shrink: 0;
  max-width: 40%;
}
.therapist-list-ranking-container .therapist-list-item:nth-of-type(1) .therapist-list-item__body {
  margin-top: 2rem;
}
.therapist-list-ranking-container .therapist-list-item:nth-of-type(2), .therapist-list-ranking-container .therapist-list-item:nth-of-type(3) {
  flex-basis: calc((100% - 2rem) / 2);
}
.therapist-list-item {
  padding-top: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-sizing: border-box;
}
.therapist-list-item__count-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  aspect-ratio: 1/1;
  max-width: 100px;
  z-index: 2;
}
.therapist-list-item__thumbnail {
  margin: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
}
.therapist-list-item__thumbnail-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease-in-out;
}
.therapist-list-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.therapist-list-item__header-name {
  display: flex;
  align-items: flex-end;
  gap: 0.125rem;
  justify-content: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid #282261;
  color: #282261;
  font-size: 1.25rem;
  font-weight: bold;
  padding: 0.25rem 0;
  margin: 0;
}
.therapist-list-item__header-age {
  color: #282261;
  font-size: 0.875rem;
}
.therapist-list-item__header-age::before, .therapist-list-item__header-age::after {
  content: none !important;
}
.therapist-list-item__header-shop {
  font-size: 1rem;
  margin: 0 !important;
  text-align: center;
  color: #808285;
}
.therapist-list-item__comment {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.therapist-list-item__comment-heading {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  background-color: #282261;
  color: #fff;
  display: block;
  text-align: center;
  padding: 0.5rem;
  line-height: 1;
  border-radius: 20rem;
}
.therapist-list-item__comment-content {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #3e3e46;
  margin: 0;
  word-break: break-all;
}
.therapist-list-item__link {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}
.therapist-list-item__link:hover ~ .therapist-list-item__thumbnail > img {
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .therapist-list-scroll-container {
    gap: 1rem;
  }
  .therapist-list-scroll-container .therapist-list-item {
    flex-basis: calc((100% - 1rem) / 2 - 1rem);
  }
  .therapist-list-item__count-image {
    width: 35%;
    max-width: 120px;
  }
  .therapist-list-item__link:hover ~ .therapist-list-item__thumbnail > img {
    transform: none;
  }
  .therapist-list-ranking-container .therapist-list-item__count-image {
    top: -0.5rem;
  }
  .therapist-list-ranking-container .therapist-list-item:nth-of-type(1) .therapist-list-item__thumbnail {
    transform: translateY(1rem);
  }
}
@media screen and (max-width: 500px) {
  .therapist-list-ranking-container {
    gap: 1rem;
  }
  .therapist-list-ranking-container .therapist-list-item {
    flex-basis: calc((100% - 1rem) / 2);
  }
  .therapist-list-ranking-container .therapist-list-item:nth-of-type(1) {
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
  }
  .therapist-list-ranking-container .therapist-list-item:nth-of-type(1) .therapist-list-item__thumbnail {
    max-width: 70%;
  }
  .therapist-list-item__header-name {
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
  }
  .therapist-list-item__comment-heading {
    padding: 0.5rem 0;
  }
}