/* member-detail.css */
.member-detail {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.member-photo-large {
  width: 250px;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

.member-info {
  flex: 1;
}

.member-info h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.member-info .subheading {
  font-size: 1.2rem;
  color: #666;
}

.badge {
  font-size: 1rem;
  background-color: #a31d1d;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.info-list {
  list-style-type: none;
  padding: 0;
}

.info-list li {
  margin-bottom: 5px;
  font-size: 1rem;
}

.back-button {
  margin-top: 30px;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.back-button:hover {
  background-color: #0056b3;
}

@media (max-width: 768px) {
  .member-detail {
    display: block;
    text-align: center; /* モバイルでの見栄えを整えるため中央揃えに */
  }
  .member-photo-large {
    margin: 0 auto 20px; /* 写真を中央に配置し、下にスペースを追加 */
  }
  .member-info h2 {
    font-size: 1.5rem; /* モバイルでのフォントサイズを調整 */
  }
  .info-list li {
    font-size: 0.9rem; /* 情報リストのフォントサイズを少し小さく */
  }
  .back-button {
    display: block;
    width: 100%; /* 戻るボタンをモバイルで幅いっぱいに */
    text-align: center;
  }
}