@charset "UTF-8";

/* ---------------------------------------------------------------------------
   members.css
   出所: 旧 WPCode スニペット364「委員紹介」[show_members] の <style>。
   内容は変更していない。
   --------------------------------------------------------------------------- */

/* ====== 委員紹介 共通レイアウト ====== */
.members-section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.members-heading{
  text-align:center;
  font-weight: 800;
  font-size: 16px;
  color: #333;
  margin: 28px 0 14px;
}

.members-wrapper{
  width: 100%;
  margin: 0 auto;
  padding: 0 0 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* PC=4列 */
  gap: 24px;
}

.member-block{
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  text-align: center;
  font-size: 12px;
  color: #333333;
  overflow: hidden;
  border-radius: 6px;
}

/* 写真エリア：常に一定サイズ（アスペクト比 3:4） */
.member-photo{
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
}

.member-photo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 名前＋役職 */
.member-label{
  background: #ffffff;
  color: #333333;
  padding: 10px 8px 12px;
  line-height: 1.4;
}

.member-name{
  font-size: 14px;
  font-weight: 700;
}

/* 名前と役職の間の区切り線 */
.member-divider{
  width: 70px;
  height: 2px;
  background: #0097D7;
  margin: 8px auto 6px;
  border-radius: 999px;
}

.member-position{
  font-size: 11px;
  margin-top: 0;
}

/* ====== レスポンシブ ====== */
/* Tablet */
@media (max-width: 1024px){
  .members-wrapper{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile：2列にする（★ここが要件） */
@media (max-width: 768px){
  .members-wrapper{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 0 10px;
  }
  .members-heading{ margin: 22px 0 12px; }
}

/* これ以上小さくても2列維持（1列に落とさない） */
@media (max-width: 480px){
  .members-wrapper{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
