/*==================================================
  80年代アイドルソング総選挙 2026：ノミネート200曲（songlist/）
  ※ style.css（idolsong.css を含む）の後に読み込む
  ※ 素のCSSで記述。css/songlist.css と css/songlist.scss に同じ内容を置く
  ※ データ選出枠＝ピンク、推薦選出枠＝緑
  ※ PCは表組み、SPは1曲ずつのブロック表示（横スクロールなし）
  ※ 表の横スクロール版は _dev/songlist_sp_table.css（旧レイアウト）
==================================================*/
.main_songlist {
  padding-bottom: 40px;
}
.main_songlist section {
  margin-bottom: 56px;
}
.main_songlist .list_body {
  padding-top: 24px;
}

/* 見出し：背景・線なし、文字は #333 */
.list_h1,
.list_h2 {
  background: none;
  border: none;
  color: #333;
  padding: 0;
  margin-bottom: 16px;
}
.list_h1 {
  font-size: 2rem;
}
.list_h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

/* 凡例 */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.legend li {
  display: flex;
  align-items: center;
}
.legend li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 6px;
}
.legend .is-data::before {
  background: var(--pink);
}
.legend .is-recommend::before {
  background: var(--green);
}

/* ============ 曲のリスト ============ */
/* SP：1曲ずつのブロック。1行目＝No.・発売日・Spotify、2行目＝アイドル名、3行目＝曲名、4行目＝作詞・作曲・編曲 */
.song_table {
  width: 100%;
  border-collapse: collapse;
}
.song_table thead {
  display: none;
}
.song_table tbody,
.song_table td {
  display: block;
}
.song_table tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  margin-bottom: 8px;
  padding: 10px 14px 12px;
  background: #fff;
  border-left: 6px solid #ccc;
}
.song_table tr.is-data {
  border-left-color: var(--pink);
}
.song_table tr.is-recommend {
  border-left-color: var(--green);
}
.song_table td {
  line-height: 1.5;
}
.song_table .c_no {
  order: 1;
}
.song_table .c_date {
  order: 2;
}
.song_table .c_listen {
  order: 3;
  margin-left: auto;
}
.song_table .c_idol {
  order: 4;
  flex-basis: 100%;
  margin-top: 6px;
}
.song_table .c_title {
  order: 5;
  flex-basis: 100%;
}
.song_table .c_lyr,
.song_table .c_comp,
.song_table .c_arr {
  order: 6;
  margin-top: 6px;
}
/* アイドル名・曲名・発売日は同じ大きさ・同じ色 */
.song_table td.c_idol,
.song_table td.c_title,
.song_table td.c_date {
  font-size: 1.5rem;
  font-weight: normal;
  color: #333;
}
.no_badge {
  display: inline-block;
  min-width: 2.6em;
  padding: 2px 4px 1px;
  border-radius: 3px;
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
}
.is-data .no_badge {
  background: var(--pink-light);
  color: var(--pink-dark);
}
.is-recommend .no_badge {
  background: var(--green-light);
  color: var(--green-dark);
}
.song_table td.c_lyr,
.song_table td.c_comp,
.song_table td.c_arr {
  font-size: 1.2rem;
  color: #555;
}
.cr_label {
  margin-right: 4px;
  color: #999;
}
.song_table td.c_listen {
  font-size: 1.3rem;
}
.song_table td.c_listen:empty {
  display: none;
}
/* Spotify：アイコンはSpotifyグリーン、文字はSpotifyブラック */
.c_listen a:link,
.c_listen a:visited {
  color: #191414;
  text-decoration: none;
  white-space: nowrap;
}
.c_listen a:hover {
  text-decoration: underline !important;
}
.c_listen .svg-inline--fa {
  margin-right: 4px;
  color: #1db954;
}

/* ============ ラジオ大阪で紹介する曲の記事 ============ */
.wrap .radio_lead {
  margin-bottom: 20px;
}
.radio_eps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.radio_ep {
  background: #fff;
  padding: 14px 16px 8px;
}
.radio_ep h3 {
  margin: 0 0 4px;
  padding-bottom: 4px;
  border-bottom: 2px solid #999;
  font-family: "Roboto", sans-serif;
  font-size: 1.6rem;
  color: #999;
}
.radio_articles li + li {
  border-top: 1px dashed #ddd;
}
.radio_articles a:link,
.radio_articles a:visited {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}
.ra_song {
  display: block;
  margin-bottom: 2px;
  font-size: 1.2rem;
  color: #666;
}
.ra_song .svg-inline--fa {
  margin-right: 6px;
  color: #999;
}
.ra_title {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.5;
  color: var(--green-dark);
}
.radio_articles a:hover .ra_title {
  text-decoration: underline;
}

/* ============ 特記事項（補足情報なので小さく） ============ */
.notes_section .notes_title {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: #333;
}
.note_block {
  margin-bottom: 12px;
}
.note_block h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: #555;
}
.wrap .note_block p,
.notes_list li {
  margin-bottom: 4px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #666;
}
.notes_list li {
  position: relative;
  padding-left: 1em;
}
.notes_list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* 下部リンク：アイコンと文字をまとめて中央揃え */
.main_songlist .btn_border a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2rem 1rem;
  letter-spacing: 0;
  white-space: nowrap;
  font-size: 1.5rem;
}

@media screen and (min-width: 750px) {
  /* PCは最大1200px（他ページは1040px） */
  .main_songlist .wrap {
    max-width: 1200px;
  }
  .main_songlist section {
    margin-bottom: 72px;
  }
  .main_songlist .list_body {
    padding-top: 40px;
  }
  .list_h1 {
    font-size: 2.8rem;
  }
  .list_h2 {
    font-size: 2.2rem;
  }

  /* PCは表組み */
  .song_table thead {
    display: table-header-group;
  }
  .song_table tbody {
    display: table-row-group;
  }
  .song_table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border-left: none;
    background: #fff;
  }
  .song_table th,
  .song_table td,
  .song_table td.c_listen:empty {
    display: table-cell;
    margin: 0;
    padding: 10px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    text-align: left;
  }
  /* ヘッダーはスクロールしても上部に固定（下線は影で表現） */
  .song_table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-bottom: none;
    box-shadow: inset 0 -2px 0 #ddd;
    font-size: 1.2rem;
    font-weight: bold;
    color: #888;
    white-space: nowrap;
  }
  .song_table th.c_no,
  .song_table td.c_no {
    width: 56px;
    text-align: center;
    border-left: 6px solid #fff;
  }
  .song_table tr.is-data td.c_no {
    border-left-color: var(--pink);
  }
  .song_table tr.is-recommend td.c_no {
    border-left-color: var(--green);
  }
  .song_table td.c_idol,
  .song_table td.c_title,
  .song_table td.c_date {
    font-size: 1.4rem;
  }
  .song_table .c_idol {
    width: 15%;
  }
  .song_table .c_date {
    width: 96px;
    white-space: nowrap;
  }
  .song_table .c_lyr,
  .song_table .c_comp,
  .song_table .c_arr {
    width: 12%;
  }
  .cr_label {
    display: none;
  }
  .song_table .c_listen {
    width: 96px;
  }
  .song_table td.c_listen {
    font-size: 1.2rem;
  }
  .radio_eps {
    grid-template-columns: repeat(3, 1fr);
  }
  .notes_section .notes_title {
    font-size: 1.6rem;
  }
  .main_songlist .btn_border a {
    font-size: 1.7rem;
  }
}
