/* Team Page Styles */

.team-members-section {
  padding: 60px 20px;
  text-align: center;
}

.team-intro {
  margin-bottom: 60px;
  font-size: 18px;
  line-height: 2;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px 40px;
  margin-bottom: 60px;
  text-align: left;
}

.team-member__image {
  /* background-color: #f0f0f0; */
  aspect-ratio: 260 / 300;
  margin-bottom: 24px;
  overflow: hidden;
}

.team-member__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

.team-member__details {
  list-style: none;
  padding-left: 0;
  font-size: 14px;
  line-height: 2;
}

.team-member__details li {
  position: relative;
  padding-left: 1.2em;
}

.team-member__details li::before {
  content: '・';
  position: absolute;
  left: 0;
}

/* Highlighted Member Styles */
.team-member__message-box {
  margin-bottom: 16px;
  text-align: left;
}

.team-member__message-box p {
  display: inline;
  background-color: #fff;
  color: #1c1c1c;
  padding: 0.2em 0.3em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.6;
}

.team-member--highlight .team-member__join-date {
  font-size: 13px;
  text-align: left;
  margin-bottom: 2px;
}

.team-member--highlight .team-member__name {
  text-align: left;
  margin-bottom: 16px;
}

.team-member--highlight .team-member__details {
  text-align: left;
}

.team-member--highlight .detail-item:not(:last-child) {
  margin-bottom: 10px;
}

.team-member--highlight .detail-item__title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 0px;
  margin-top:0px;
}

.team-member--highlight .detail-item__text {
  font-size: 14px;
  line-height: 1.6;
}

.team-member--highlight .team-member__details + .team-member__message-box {
  margin-top: 24px;
}

.team-member.is-hidden {
  display: none;
}

.team-member.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.team-pagination__dot {
  width: 12px;
  height: 12px;
  background-color: #d9d9d9;
  border-radius: 50%;
  cursor: pointer;
}

.team-pagination__dot.is-active {
  background-color: #1c1c1c;
}

.team-load-more {
  margin-top: 40px;
  font-size: 16px;
  width: auto;
  min-width: 250px;
  justify-content: center;
  border: none;
}

.team-load-more .button__arrow-wrapper img {
  transform: rotate(90deg);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }
}

@media screen and (max-width: 768px) {
  .team-members-section {
    padding: 60px 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .team-member__image img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    margin: 0 auto;
}
  .team-intro {
  text-align:left;
  font-size:16px;
}
.team-member__image {
  margin-bottom: -20px;
}
}