/* ------------------------------------メンバーリスト------------------------------------ */

#members-list-div {
  margin: 0px;
  padding: 0px;
  background-color: transparent;
  text-align: center;
}

#members-list-div h2 {
  font-size: 24px;
  color: #333;
}

/* メンバーリストのグリッドレイアウト */
#members-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 5px;
  list-style-type: none;
  padding: 0;
  margin: 5px;
  justify-content: center; /* カードを中央に寄せる */
}

/* 各メンバーのカードスタイル */
.member-item {
  text-align: center;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background-color: #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  max-width: 100px;  /* 最大幅を制限 */
  margin: 0 auto;    /* 中央揃え */
}

/* プロフィール画像のスタイル */
.member-item img {
  border-radius: 50%;  /* 円形にする */
  width: 100%;         /* 親要素の100%の幅 */
  height: auto;        /* 高さを横幅に合わせる（自動調整） */
  aspect-ratio: 1/1;   /* 正方形を維持 */
  object-fit: cover;   /* 画像を要素にフィットさせる */
  margin-bottom: 0px;
}

/* メンバー情報のスタイル */
.member-info .name {
  font-size: 12px;
  color: #333;
  margin: 3px 0;
}

.member-info .id {
  font-size: 8px;
  color: #666;
  margin: 2px 0;
}

.member-info .bio {
  font-size: 5px;
  color: #999;
}

.member-info div {
  margin: 5px 0;
}

/* ------------------------------------メンバーリスト終わり ------------------------------------ */





.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 50vw;
  max-width: 400px;
  position: relative;
  text-align: center;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 50vw;
  max-width: 400px;
  position: relative;
  text-align: center;
}

.popup-content h3 {
  font-size: 16px;
}
.popup-content h4 {
  font-size: 12px;
}

.popup-content img {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 16px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

#close-popup {
  position: absolute;
  top: 8px; right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}



.mypage-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.mypage-button:hover {
  background-color: #2980b9;
}
