/* 出演映像テーブル */
.table-common.video-table td {
  width: 50%;
  vertical-align: top;
}

/* サイリウムカラー */
.stick-color-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.color-name {
  font-weight: 600;
}
.color-chip {
  width: 32px;
  height: 16px;
  border-radius: 10%;
  border: 1px solid #ccc;
  display: inline-block;
}
.color-sep {
  margin: 0 2px;
  font-weight: bold;
}
/* 加入・卒業情報 */
.member-meta-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.member-meta-days {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.member-meta-unit {
  margin-left: 3px;
  font-size: 0.85em;
  font-weight: 400;
}

/* 公式サイト・SNS：登録のあるリンクだけをカード型ボタンで表示 */
.member-official-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 30px;
}
.member-official-links .member-official-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 66px;
  padding: 12px;
  border: 1px solid #e5dfe3;
  border-radius: 12px;
  background: #fff;
  color: #433b40;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(55, 35, 45, 0.04);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.member-official-links .member-official-link:hover {
  border-color: var(--main-color);
  box-shadow: 0 4px 12px rgba(55, 35, 45, 0.09);
  transform: translateY(-2px);
  text-decoration: none;
}
.member-official-link:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 3px;
}
.member-official-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f7eef2;
  background: color-mix(in srgb, var(--main-color) 16%, white);
  color: #745460;
  color: color-mix(in srgb, var(--main-color) 45%, #40343a);
}
.member-official-link-icon svg,
.member-official-link-arrow {
  display: block;
}
.member-official-link--instagram .member-official-link-icon {
  background: #fff0f5;
  color: #bd396e;
}
.member-official-link--x .member-official-link-icon {
  background: #f2f2f2;
  color: #222;
}
.member-official-link--youtube .member-official-link-icon {
  background: #fff0ef;
  color: #d6332c;
}
.member-official-link-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.member-official-link-arrow {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #9b8e96;
}
@media (max-width: 768px) {
  .member-official-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 24px;
  }
  .member-official-links .member-official-link {
    gap: 8px;
    min-height: 60px;
    padding: 9px;
    border-radius: 10px;
  }
  .member-official-link-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .member-official-link-icon svg {
    width: 20px;
    height: 20px;
  }
  .member-official-link-label {
    font-size: 12px;
  }
  .member-official-link-arrow {
    display: none;
  }
}
@media (max-width: 360px) {
  .member-official-links .member-official-link {
    gap: 6px;
    padding: 8px;
  }
  .member-official-link-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
  .member-official-link-label {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .member-official-links .member-official-link {
    transition: none;
    transform: none;
  }
}


/* 開閉共通 */
.selection-toggle-main {
  cursor: pointer;
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 10px;
}
.selection-group-toggle {
  cursor: pointer;
  margin: 16px 10px 8px;
  font-size: 20px;
}
.arrow {
  display:inline-block;
  transition: transform .2s;
}
.open .arrow {
  transform: rotate(90deg);
}
/* 選抜歴 */
.table-common.selection-table th:nth-child(1),
.table-common.selection-table td:nth-child(1) {
  width: 66%;
}
.table-common.selection-table th:nth-child(2),
.table-common.selection-table td:nth-child(2) {
  width: 34%;
}
.table-common.selection-table td:nth-child(1) {
  font-weight: bold;
}
/* 参加楽曲 */
.table-common.orimem-table th:nth-child(1),
.table-common.orimem-table td:nth-child(1) {
  width: 50%;
}
.table-common.orimem-table th:nth-child(2),
.table-common.orimem-table td:nth-child(2) {
  width: 50%;
}
.table-common.orimem-table td:nth-child(1),
.table-common.orimem-table td:nth-child(2) {
  font-weight: bold;
}

/* 参加楽曲の記号は、所属グループ数に関係なく説明する。 */
.member-song-legend {
  margin: 0 0 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 767px) {
  .member-song-legend {
    font-size: 12px;
  }
}

/* 出演映像：カード・種別ごとの横スクロールは共通CSSを使用する。 */
.member-video-section {
  margin-top: 40px;
  min-width: 0;
}
.member-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.gradation-card .member-video-heading {
  flex-shrink: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--main-text-color, var(--main-color));
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}
.member-video-heading:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 3px;
}
.member-video-view-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
  margin: 0 0 0 auto;
}
.member-video-heading[aria-expanded="false"] + .member-video-view-switch {
  display: none;
}
.member-video-view-btn {
  border: 1px solid var(--main-color);
  background: #fff;
  color: var(--main-text-color, var(--main-color));
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.9em;
  white-space: nowrap;
  cursor: pointer;
}
.member-video-view-btn.is-active {
  background: var(--main-text-color, var(--main-color));
  color: #fff;
}
.member-video-section .sg-video-card-name,
.member-video-section .member-video-name-link {
  font-size: 13px;
}
.member-video-table {
  width: 100%;
  table-layout: fixed;
}
.member-video-table .member-video-date-cell {
  width: 125px;
  max-width: 125px;
  white-space: nowrap;
  text-align: left;
  font-size: 15px;
}
.member-video-table .member-video-name-cell {
  width: auto;
  text-align: left;
  font-size: 15px;
}
.member-video-name-link {
  color: var(--main-text-color, var(--main-color));
  word-break: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 768px) {
  .member-video-header {
    flex-direction: column;
    align-items: stretch;
  }
  .gradation-card .member-video-heading {
    font-size: 21px;
  }
  .member-video-view-switch {
    align-self: flex-end;
    max-width: 100%;
    gap: 6px;
  }
  .member-video-view-btn {
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1.4;
  }
  .member-video-section .sg-video-card-name,
  .member-video-section .member-video-name-link {
    font-size: 11px;
  }
  .member-video-table .member-video-date-cell {
    width: 100px;
    max-width: 100px;
    font-size: 12px;
  }
  .member-video-table .member-video-name-cell {
    font-size: 12px;
  }
}
