@charset "UTF-8";

/* 楽曲変遷
   旧 sakamichi-history.css から、この機能のルールを元の順番のまま移したもの（2026-09 Phase 7-1） */

.song-history-visible-count {
  color: var(--sakamichi-ink-strong);
}
.song-history-group-badge {
  font-size: 0.7em;
  width: 1.7em;
  height: 1.7em;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.song-history-related {
  margin-top: 16px;
}
.song-history-related__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--sakamichi-sp-primary);
}
.song-history-related__title {
  margin: 0;
  color: var(--sakamichi-ink-strong);
  font-size: 1.08em;
}
.song-history-related__count {
  margin: 0;
  color: var(--sakamichi-ink-3);
  font-size: 0.84em;
  white-space: nowrap;
}
.song-history-related .song-history-mobile-sort__button.is-active {
  background: var(--sakamichi-sp-primary);
  border-color: var(--sakamichi-sp-primary);
}
.song-history-related-table {
  table-layout: fixed;
}
.song-history-related-col--title {
  width: 24%;
}
.song-history-related-col--credit-name {
  width: 18%;
}
.song-history-related-col--release-date {
  width: 12%;
}
.song-history-related-col--writer,
.song-history-related-col--arranger {
  width: 16%;
}
.song-history-related-col--director {
  width: 14%;
}
.song-history-related-table th,
.song-history-related-table .song-history-cell {
  padding-right: 7px;
  padding-left: 7px;
}
.song-history-related-table .song-history-cell {
  white-space: normal;
  overflow-wrap: anywhere;
}
.song-history-related-table .song-history-cell--release-date {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .song-history-row--yoshimoto {
      border-left-color: rgba(var(--sakamichi-yoshimoto-chip-rgb), 0.58) !important;
    }
  .song-history-row--sp {
      border-left-color: rgba(var(--sakamichi-sp-primary-rgb), 0.62) !important;
    }
  .song-history-row.song-history-row--yoshimoto {
      background: rgba(var(--sakamichi-yoshimoto-chip-rgb), 0.07) !important;
    }
  .song-history-row.song-history-row--sp {
      background: rgba(var(--sakamichi-sp-primary-rgb), 0.06) !important;
    }
  .song-history-cell--title .song-history-group-badge {
      font-size: 0.75em;
      margin-left: 2px;
    }
  .song-history-related {
      margin-top: 14px;
    }
  .song-history-related__header {
      margin-bottom: 6px;
    }
}
