/* タイトル */
.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;
}


/* 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-details {
  margin-top: 28px;
}

.title-song-details summary {
  font-size: 24px;
  font-weight: 700;
}

.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-details summary {
    font-size: 21px;
  }

  .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-toggle {
  cursor: pointer;
  font-size: 24px;
  margin: 0 0 10px;
}

.title-video-toggle .arrow {
  display: inline-block;
}

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

.title-video-view-btn {
  border: 1px solid var(--main-color);
  background: #fff;
  color: var(--main-color);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.9em;
  cursor: pointer;
}

.title-video-view-btn.is-active {
  background: 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;
}

/* 関連映像：サムネイル表示 */
.title-video-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.title-video-thumb-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.title-video-thumb-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #eee;
}

.title-video-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.title-video-thumb-image-wrap .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  transform-origin: center center;
}

.title-video-thumb-date {
  margin-top: 6px;
  font-size: 0.85em;
  color: #666;
}

.title-video-thumb-name {
  margin-top: 2px;
  font-weight: bold;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: anywhere;
}

.title-video-thumb-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  font-size: 0.9em;
}

@media screen and (max-width: 768px) {
  .title-video-toggle {
    font-size: 21px;
  }

  .title-video-view-switch {
    justify-content: center;
  }

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

  .title-video-thumb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .title-video-thumb-name {
    font-size: 0.9em;
  }

  .title-video-thumb-image-wrap .play-icon {
    transform: translate(-50%, -50%) scale(0.4);
    transform-origin: center center;
  }
}