/* ==========================================================================
   組合員一覧ページ（members.php）専用スタイル - 修正版
   ========================================================================== */

/* -----------------------------------------------------
 * ページ共通: コンテナとメインタイトル
 * ----------------------------------------------------- */

.members-container {
  max-width: 1306px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-title {
  margin-bottom: 80px;
}

.page-title::after {
  width: 170px;
}

.member-banner {
  margin-bottom: 50px;
  padding: 0;
}

.member-us {
  width: 100%;
  height: 316px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 120px;
}

.member-us__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.member-banner__title {
  font-family: 'Hiragino Sans', sans-serif;
  font-size: 60px;
  line-height: 75px;
  font-weight: normal;
  letter-spacing: -0.6px;
  color: #ffffff;
  text-align: center;
  opacity: 1;
  position: relative;
  z-index: 2;

  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
  margin: 0;
}

/* -----------------------------------------------------
 * セクション (h2.section-title と テーブル)
 * ----------------------------------------------------- */
.members-section {
  margin-bottom: 160px;
}

.section-title::before {
  content: '';
  display: block;
  width: 19px;
  height: 1.2em;
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}

/* -----------------------------------------------------
 * 組合員テーブル (members-table)
 * ----------------------------------------------------- */
.members-table {
  width: 100%;
  text-align: center;
  border-collapse: separate;
  border-spacing: 8px 15px;
}

.members-table th {
  background-color: rgba(202, 226, 250, 1);
  color: rgba(0, 86, 174, 1);
  font-size: 28px;
  font-weight: 500;

  vertical-align: middle;
  background-clip: padding-box;
  word-wrap: break-word;
  padding: 18px 0;
}
.members-table td {
  font-size: 22px;
  font-weight: 300;
  padding: 47px 15px;
  vertical-align: middle;
  background-clip: padding-box;
  word-wrap: break-word;
}

.members-table tbody tr:nth-child(odd) td {
  background-color: rgba(234, 237, 240, 1);
}

.members-table tbody tr:nth-child(even) td {
  background-color: rgba(223, 224, 226, 1);
}

.members-table th:nth-child(1),
.members-table td:nth-child(1),
.members-table th:nth-child(2),
.members-table td:nth-child(2) {
  width: 370px;
}

.members-table th:nth-child(3),
.members-table td:nth-child(3) {
  width: 510px;
}

.members-table td a {
  color: #0056ae;
  text-decoration: none;
}

.members-table td a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   組合員一覧ページ（members.php）専用スタイル
   ========================================================================== */

/* -----------------------------------------------------
 * ページ共通: コンテナとメインタイトル
 * ----------------------------------------------------- */
.main .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-title {
  margin-bottom: 80px;
}

/* -----------------------------------------------------
 * セクション 
 * ----------------------------------------------------- */
.section-title {
  font-size: 28px;
  color: #004689;
  font-weight: 600;
  margin-bottom: 30px;
  padding-left: 20px;
  position: relative;
  text-align: left;
  margin-left: 10px;
  outline: none;
}

.section-title::before {
  content: '';
  display: block;
  width: 8px;
  height: 1.2em;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* -----------------------------------------------------
 * 組合員テーブル - PC
 * ----------------------------------------------------- */
.members-table {
  width: 100%;
  text-align: center;
  border-collapse: separate;
  border-spacing: 10px 15px;
  table-layout: fixed;
}

.members-table td a {
  color: #0056ae;
  text-decoration: none;
}

.members-table td a:hover {
  text-decoration: underline;
}

.members-section:focus,
.members-section:target,
.members-table:focus,
.members-table:target {
  outline: none;
  box-shadow: none;
}

/* =========================================================
 * レスポンシブ対応 
 * ========================================================= */

@media (max-width: 1305px) {
  .members-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 1025px) {
  .main .container {
    padding: 30px 15px;
  }

  .section-title {
    font-size: 22px;
    padding-left: 15px;
    margin-bottom: 20px;
    position: sticky;
    position: -webkit-sticky;
    left: 0;
  }

  .section-title::before {
    width: 6px;
  }

  .members-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .members-table {
    min-width: 920px;
  }

  .members-table th {
    padding: 15px 8px;
    height: auto;
  }

  .members-table td {
    padding: 25px 8px;
  }
}

@media (max-width: 832px) {
  .members-table {
    border-color: #888 transparent transparent transparent !important;
  }
}

/* =========================================================
 * レスポンシブ対応 (768px以下) - ★安定版: テーブル全体スクロール★
 * ========================================================= */
@media (max-width: 768px) {
  .section-title {
    font-size: 22px;
    padding-left: 15px;
    margin-bottom: 20px;
    width: auto;
  }
  .section-title::before {
    width: 6px;
  }

  /* ------------------- テーブルの表示設定 ------------------- */

  .members-table {
    display: table;
    width: 100%;
    min-width: 920px;
    overflow: visible;
    table-layout: fixed;
  }

  .members-table thead,
  .members-table tbody {
    display: table-row-group;
    width: auto;
  }
  .members-table tr {
    display: table-row;
    margin-bottom: 0;
  }

  /* ------------------- セルとパディングの調整 ------------------- */

  .members-table th,
  .members-table td {
    display: table-cell;
    float: none;
    padding: 15px 8px;
  }

  .members-table th:nth-child(3),
  .members-table td:nth-child(3) {
    width: 400px;
  }

  .members-table th {
    font-size: 20px;
  }

  .members-table td {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  .section-title {
    font-size: 16px;
    padding-left: 15px;
    margin-bottom: 20px;
    width: auto;
  }
  .section-title::before {
    width: 6px;
  }

  /* ------------------- セルとパディングの調整 ------------------- */

  .members-table th:nth-child(1),
  .members-table td:nth-child(1),
  .members-table th:nth-child(2),
  .members-table td:nth-child(2) {
    width: 150px;
  }
  .members-table th:nth-child(3),
  .members-table td:nth-child(3) {
    width: 300px;
  }

  .members-table td {
    font-size: 14px;
  }
}
