/* ==========================================
   MEMBERS（研究室メンバー）専用 (members.css)
========================================== */
.group-photo-section {
  max-width: 900px;
  margin: 0 auto 80px;
  background: var(--color-background-secondary);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border-tertiary);
}

.group-photo-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.group-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.group-photo-main img:hover {
  transform: scale(1.02);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.group-photo-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumbnail {
  position: relative;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.thumbnail:hover {
  opacity: 1;
}

.thumbnail.active {
  opacity: 1;
  border-color: #185FA5;
  box-shadow: 0 2px 8px rgba(24, 95, 165, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 12px;
  text-align: center;
  padding: 2px 0;
}

.members-section {
  max-width: 1000px;
  margin: 0 auto 80px;
}

.members-category-title {
  font-size: 28px;
  color: #185FA5;
  border-bottom: 2px solid var(--color-border-tertiary);
  padding-bottom: 12px;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 0.05em;
}

.pi-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-tertiary);
  margin-bottom: 60px;
}

.pi-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 4px solid #f1f5f9;
  background: #fff;
}

.pi-info {
  flex: 1;
}

.pi-role {
  font-size: 14px;
  color: #185FA5;
  font-weight: bold;
  margin-bottom: 8px;
}

.pi-name {
  font-size: 28px;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.pi-title {
  font-size: 16px;
  font-weight: normal;
  color: #666;
  margin-left: 8px;
}

.pi-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.pi-link-btn {
  padding: 10px 24px;
  font-size: 14px;
}

.staff-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.staff-flex-container .member-card {
  width: 200px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #f1f5f9;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.placeholder-photo svg {
  width: 60px;
  height: 60px;
}

.member-role {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.member-name {
  font-size: 18px;
  color: var(--color-text-primary);
}

.member-title {
  font-size: 13px;
  font-weight: normal;
  color: #666;
  margin-left: 6px;
}

.student-group {
  margin-bottom: 40px;
}

.student-grade {
  font-size: 20px;
  color: var(--color-text-secondary);
  border-left: 4px solid #185FA5;
  padding-left: 12px;
  margin-bottom: 16px;
}

.student-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
}

.student-list li {
  background: white;
  border: 1px solid var(--color-border-tertiary);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  color: var(--color-text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
  .pi-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}