/* タイトル */
.title-common {
  margin-bottom: 15px;
}

/* 前後タイトル */
.title-frontback-nav {
  grid-template-columns: 1fr auto 1fr;
}

.title-frontback-nav-bottom {
  margin-top: 10px;
}

/* 基本情報 */
.title-basic-table th {
  width: 130px;
  white-space: nowrap;
}

.title-basic-sp {
  display: none;
}

/* 特設サイト：メンバー詳細の公式リンクと同じカード型ボタン。 */
.title-official-links {
  display: flex;
  margin: 18px 0 28px;
}
.title-official-links .title-official-link {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 260px;
  max-width: 100%;
  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;
}
.title-official-links .title-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;
}
.title-official-link:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 3px;
}
.title-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);
}
.title-official-link-icon svg,
.title-official-link-arrow {
  display: block;
}
.title-official-link-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.title-official-link-arrow {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #9b8e96;
}
@media (max-width: 768px) {
  .title-official-links {
    margin: 14px 0 24px;
  }
  .title-official-links .title-official-link {
    gap: 8px;
    min-height: 60px;
    padding: 9px;
    border-radius: 10px;
  }
  .title-official-link-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .title-official-link-icon svg {
    width: 20px;
    height: 20px;
  }
  .title-official-link-label {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .title-official-links .title-official-link {
    transition: none;
    transform: none;
  }
}


/* PC：種別側と発売日側を常に50:50に固定 */
.title-basic-pc {
  table-layout: fixed;
  width: 100%;
}

.title-basic-pc tr:first-child th:nth-child(1),
.title-basic-pc tr:first-child th:nth-child(3) {
  width: 130px;
}

.title-basic-pc tr:first-child td:nth-child(2),
.title-basic-pc tr:first-child td:nth-child(4) {
  width: calc(50% - 130px);
}

/* 収録曲一覧 */
.title-song-section {
  margin-top: 28px;
}

.gradation-card .title-song-heading,
.gradation-card .title-video-heading {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.title-song-body {
  margin-top: 10px;
}

.title-song-table {
  table-layout: fixed;
}

.title-song-table th:nth-child(1),
.title-song-table td:nth-child(1) {
  width: 44%;
}

.title-song-table th:nth-child(2),
.title-song-table td:nth-child(2) {
  width: 20%;
}

.title-song-table th:nth-child(3),
.title-song-table td:nth-child(3) {
  width: 18%;
}

.title-song-table th:nth-child(4),
.title-song-table td:nth-child(4) {
  width: 18%;
}

.title-song-table td:nth-child(2),
.title-song-table td:nth-child(3),
.title-song-table td:nth-child(4) {
  text-align: center;
}

.title-song-empty {
  margin: 0;
  padding: 12px;
  text-align: center;
  border: 1px solid #cad2e0;
  background: #fff;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .title-basic-pc {
    display: none;
  }

  .title-basic-sp {
    display: table;
  }

  .title-basic-table th {
    width: 32%;
    white-space: nowrap;
  }

  .title-song-table th,
  .title-song-table td {
    overflow-wrap: anywhere;
  }

  .title-song-table th:nth-child(1),
  .title-song-table td:nth-child(1) {
    width: 36%;
  }

  .title-song-table th:nth-child(2),
  .title-song-table td:nth-child(2) {
    width: 24%;
  }

  .title-song-table th:nth-child(3),
  .title-song-table td:nth-child(3) {
    width: 20%;
  }

  .title-song-table th:nth-child(4),
  .title-song-table td:nth-child(4) {
    width: 20%;
  }
}


/* 関連映像 */
.title-video-section {
  margin-top: 40px;
}

.title-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.title-video-heading {
  flex-shrink: 0;
}

.title-video-view-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
  margin: 0 0 0 auto;
}

.title-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;
}

.title-video-view-btn.is-active {
  background: var(--main-text-color, var(--main-color));
  color: #fff;
}

/* 関連映像：一覧表示 */
.title-video-table {
  width: 100%;
  table-layout: fixed;
}

.title-video-table .title-video-date-cell {
  width: 125px !important;
  max-width: 125px !important;
  white-space: nowrap;
  text-align: left;
  font-size: 15px;
}

.title-video-table .title-video-name-cell {
  width: auto !important;
  text-align: left;
  font-size: 15px;
}

.title-video-name-link {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* サムネイルと横スクロールは共通のsg-video-gallery.cssで管理。 */

@media screen and (max-width: 768px) {
  .gradation-card .title-song-heading,
  .gradation-card .title-video-heading {
    font-size: 21px;
  }

  .title-video-header {
    flex-direction: column;
    align-items: stretch;
  }

  .title-video-view-switch {
    align-self: flex-end;
    max-width: 100%;
    gap: 6px;
  }

  .title-video-view-btn {
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1.4;
  }

  .title-video-table .title-video-date-cell {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    font-size: 0.8em;
  }

  .title-video-table .title-video-name-cell {
    font-size: 12px;
  }

}
