/* Top Professionals Section */
.top-professionals-section {
  margin: 60px 0;
}

#top-main .top-professionals-section header {
  text-align: center;
  margin-bottom: 10px;
}

.top-professionals-description {
  text-align: left;
  font-size: 16px;
  color: #222;
  margin-bottom: 40px;
  pointer-events: none;
  cursor: default;
}

.top-professional-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.top-professional-card {
  display: flex;
  flex-direction: column;
  background: #292929;
  border-radius: 4px;
  overflow: hidden;
}

.top-professional-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.top-professional-card-head {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: white;;
}

.top-professional-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* グラデーション */
.top-professional-card-gradation {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(41, 41, 41, 0), rgba(41, 41, 41, 1));
  z-index: 1;
}

.top-professional-card-text {
  padding: 8px 12px;
  flex-grow: 1;
}

.top-professional-card-katagaki {
  font-size: 12px;
  line-height: 1.6;
  height: calc(1em * 1.6 * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #fff;
  margin-bottom: 4px;
  text-align: center;
}

.top-professional-card-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-align: center;
}

.top-professional-card-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 12px 12px;
  background-color: #292929;
}

.top-professional-card-sns a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.top-professional-card-sns a:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .top-professional-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .top-professional-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .top-professionals-section {
    margin: 40px 0;
  }

  .top-professionals-description {
    font-size: 12px;
    margin-bottom: 24px;
  }
}
