/* ===================================================
   メンバーページ 完全版スタイル
=================================================== */

/* ================= 全体レイアウト ================= */

#member-container {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 24px;
}

/* ================= ページタイトル ================= */

#head-text {
  text-align: center;
  margin: 40px 0 30px;
}

#head-text h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #003366;
  letter-spacing: 2px;
}

/* ================= セクション ================= */

.member-section {
  margin-bottom: 50px;
}

.member-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #003366;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e5ecf3;
  letter-spacing: 1px;
}

/* ================= カード共通 ================= */

.member-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;

  border: 1px solid #e9eef4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);

  transition: all 0.3s ease;
}

.member-card:hover {
  background: #f9fbfd;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ================= 写真 ================= */

.member-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  margin-right: 40px;
}

/* ================= 名前 ================= */

.member-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 10px;
  line-height: 1.4;
}

.member-info h3 span {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: #777;
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ================= テキスト ================= */

.member-info p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* ================= リンク ================= */

.member-info a {
  color: #0055a0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.member-info a:hover {
  color: #003366;
  text-decoration: underline;
}

/* ================= 学生グリッド ================= */

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}

.member-card.small {
  flex-direction: column;
  text-align: center;
  padding: 24px;
  margin-bottom: 0;
}

.member-card.small .member-photo {
  margin: 0 0 18px 0;
  width: 140px;
  height: 140px;
}

/* ================= 戻るボタン ================= */

.back-link {
  text-align: center;
  margin: 120px 0 80px;
}

.back-link a {
  display: inline-block;
  padding: 14px 34px;
  background: #003366;
  color: #fff;
  border-radius: 28px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-link a:hover {
  background: #0055a0;
  transform: translateY(-2px);
}

/* ================= レスポンシブ ================= */

@media (max-width: 768px) {

  #member-container {
    margin: 100px auto 80px;
  }

  #head-text h1 {
    font-size: 2rem;
  }

  .member-section h2 {
    font-size: 1.5rem;
  }

  .member-card {
    flex-direction: column;
    text-align: center;
    padding: 26px;
  }

  .member-photo {
    margin: 0 0 20px 0;
    width: 150px;
    height: 150px;
  }

  .member-info h3 {
    font-size: 1.1rem;
  }
}