/*==================================================
  80年代アイドルソング総選挙 2026：投票ページ（vote/）
  ※ style.css（idolsong.css を含む）の後に読み込む
  ※ 素のCSSで記述。css/vote.css と css/vote.scss に同じ内容を置く
==================================================*/
.main_vote {
  padding-bottom: 40px;
}
.main_vote section {
  margin-bottom: 40px;
}
.fv_img a {
  display: block;
}
/* 投票ページのFV（SP・PC共通の1枚） */
.fv_img img.vote_fv {
  display: block;
  max-width: 1200px;
  height: auto;
}

/* 投票概要 */
.vote_outline li {
  margin-bottom: 6px;
}
/* 緑のチェック（トップと同じ）：2行目以降は文字の頭に揃える */
.has_check {
  padding-left: 1.5em;
  text-indent: -1.5em;
}
.main_vote .icon-check {
  color: var(--pink);
}
.has_check .icon-check {
  width: 1em;
  margin-right: 0.5em;
}
.vo_label {
  font-weight: bold;
}

/* 必須マーク */
.required {
  color: var(--pink);
  font-weight: bold;
  margin-left: 4px;
}
.wrap .required_note {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.required_note .required {
  margin: 0 2px 0 0;
}

/* 入力欄 */
#vote_form input[type="text"],
#vote_form input[type="email"],
#vote_form input[type="date"],
#vote_form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 1.6rem;
  font-family: inherit;
  color: #333;
  -webkit-appearance: none;
  appearance: none;
}
#vote_form input[type="date"] {
  min-height: 48px;
}
#vote_form input:focus,
#vote_form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
/* 順位のプルダウンはピンクで統一（選択中に緑が重ならないように） */
#vote_form select:focus {
  outline: none;
  border-color: var(--pink-dark);
  box-shadow: 0 0 0 3px var(--pink-light);
}
#vote_form .is-error input,
#vote_form input.is-error {
  border-color: var(--pink);
  background: var(--pink-light);
}
.vote_fields {
  background: #fff;
  padding: 24px 16px 8px;
  margin-bottom: 48px;
}
.vote_field {
  margin-bottom: 20px;
}
.field_label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}
.radio_group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 4px 0;
}
.radio_group label,
.agree {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.radio_group input,
.agree input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gray);
}
.vote_field.is-error .radio_group {
  background: var(--pink-light);
  outline: 1px solid var(--pink);
}

/* 設問 */
.vote_block {
  margin-bottom: 48px;
}
.wrap .q_label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}
.wrap .q_main {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.vote_notes p,
.wrap .vote_notes p {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.char_count {
  text-align: right;
  font-size: 1.3rem;
  color: #888;
  margin-top: 4px;
}
.char_count.is-over {
  color: var(--pink-dark);
}
.request_fields {
  margin-top: 16px;
}
.agree {
  font-weight: bold;
  margin-top: 8px;
  padding: 12px 16px;
  background: #fff;
}
.agree.is-error {
  background: var(--pink-light);
  outline: 1px solid var(--pink);
}

/* 行インデックス */
/* 上部に固定（SPは画面幅いっぱいに背景を敷く） */
.gyo_nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0 -5vw 24px;
  padding: 8px 5vw;
  background: #f8f6f6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}
.gyo_title,
.song {
  scroll-margin-top: 100px;
}
.gyo_nav a:link,
.gyo_nav a:visited {
  display: block;
  padding: 7px 0 6px;
  background: #fff;
  border: 1px solid var(--pink);
  border-radius: 4px;
  color: var(--pink-dark);
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.gyo_nav a:hover {
  background: var(--pink-light);
  text-decoration: none;
}

/* 行見出し */
.gyo_title {
  border-bottom: 3px solid var(--pink);
  padding-bottom: 4px;
  margin: 0 0 12px;
  color: var(--gray);
  font-size: 1.8rem;
}
.song_list {
  margin-bottom: 40px;
}

/* 楽曲 */
.song {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 6px;
  background: #fff;
  border-left: 4px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}
.song.is-selected {
  background: var(--pink-light);
  border-left-color: var(--pink);
}
.song_info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  line-height: 1.5;
}
.song_no {
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  color: #999;
}
.song_idol {
  font-size: 1.3rem;
  color: #333;
}
.song_title {
  flex-basis: 100%;
  font-weight: bold;
  font-size: 1.7rem;
  color: #333;
  cursor: pointer;
}
.song_year {
  font-size: 1.2rem;
  color: #888;
}
.song_listen {
  font-size: 1.2rem;
}
.song_listen:link,
.song_listen:visited {
  text-decoration: none;
}
.song_listen:hover {
  text-decoration: underline !important;
}
.song_listen .svg-inline--fa,
.song_listen .fa-spotify {
  margin-right: 4px;
}
/* Spotify：アイコンはSpotifyグリーン、文字はSpotifyブラック（200曲リストと同じ） */
.song_listen:link,
.song_listen:visited {
  color: #191414;
}
.song_listen .svg-inline--fa {
  color: #1db954;
}
.song_rank {
  flex-shrink: 0;
  width: 92px;
  padding: 10px 24px 10px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 8px center;
  font-size: 1.5rem;
  font-family: inherit;
  color: #888;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.song.is-selected .song_rank {
  border-color: var(--pink);
  background-color: var(--pink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E");
  color: #fff;
  font-weight: bold;
}

/* 選んだベスト10 */
.best10 {
  background: #fff;
  border-top: 8px solid var(--pink);
  padding: 20px 16px 24px;
}
.best10_title {
  margin: 0 0 4px;
  font-size: 1.8rem;
  color: #333;
}
.wrap .best10_lead {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 16px;
}
.best10_list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
  line-height: 1.5;
}
.best10_rank {
  flex-shrink: 0;
  width: 3.2em;
  font-weight: bold;
  color: var(--pink);
}
.best10_song {
  color: #aaa;
}
.best10_list li.is-filled .best10_song {
  color: #333;
  font-weight: bold;
}
.best10_list a:link,
.best10_list a:visited {
  color: #333;
  text-decoration: none;
}
.best10_list a:hover {
  text-decoration: underline;
}
.best10_list .b10_idol {
  font-weight: normal;
  color: #333;
}

/* 送信 */
.submit_block {
  text-align: center;
  margin-bottom: 48px;
}
.wrap .submit_lead {
  margin-bottom: 24px;
}
.wrap .submit_catch {
  font-weight: bold;
  color: var(--pink-dark);
  margin-bottom: 12px;
}
.btn_vote button {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 16px 8px;
  border: none;
  border-radius: 8px;
  background-color: var(--pink);
  box-shadow: 0 4px 0 var(--pink-dark), 0px 6px 2px rgba(0, 0, 0, 0.29);
  color: #fff;
  font-family: inherit;
  font-weight: bold;
  font-size: 2rem;
  letter-spacing: 2px;
  cursor: pointer;
}
.btn_vote button:hover,
.btn_vote button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--pink-dark), 0px 3px 1px rgba(0, 0, 0, 0.2);
}
.vote_error {
  text-align: left;
  background: #fff;
  border: 2px solid var(--pink);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 1.4rem;
}
.vote_error p {
  font-weight: bold;
  color: var(--pink-dark);
  margin-bottom: 6px;
}
.vote_error li {
  padding-left: 1em;
  text-indent: -1em;
}

/* 注意事項 */
.vote_caution h3 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.vote_caution p,
.wrap.vote_caution p,
#vote_form .vote_caution p {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 4px;
}

/* 下部リンク：アイコンと文字をまとめて中央揃え */
.main_vote .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;
}

/* 画面下部のバー */
.vote_bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
}
.vote_bar a:link,
.vote_bar a:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.3;
}
.vote_bar_selected:link,
.vote_bar_selected:visited {
  flex: 1;
  gap: 10px;
  padding: 12px;
  background: var(--green);
  color: #fff;
}
.vote_bar_count {
  font-family: "Roboto", sans-serif;
  font-size: 1.3rem;
  background: #fff;
  color: var(--green-dark);
  padding: 3px 6px 2px;
  border-radius: 3px;
  line-height: 1;
}
.vote_bar_top:link,
.vote_bar_top:visited {
  width: 48px;
  background: #fff;
  border: 2px solid var(--green);
  color: var(--green-dark);
  box-sizing: border-box;
}
.vote_bar a:hover {
  opacity: 0.85;
}

/* ============ 投票後の画面 ============ */
/* モーダル */
.thanks {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.6);
}
.thanks[hidden] {
  display: none;
}
body.is-thanks {
  overflow: hidden;
}
.thanks_inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px 16px 20px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.thanks_msg {
  font-weight: bold;
  color: var(--pink-dark);
  font-size: 1.5rem;
  margin-bottom: 2px;
}
.thanks_emoji {
  width: 1.1em;
  height: 1.1em;
  margin-right: 6px;
  vertical-align: -0.15em;
}
.thanks_title {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.8rem;
  line-height: 1.4;
  color: #333;
  margin-bottom: 10px;
}
.thanks_list {
  background: var(--pink-light);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
  margin-bottom: 14px;
}
.thanks_list li {
  display: flex;
  gap: 4px;
  padding: 3px 0;
  font-size: 1.4rem;
  line-height: 1.4;
}
.thanks_list .tl_rank {
  flex-shrink: 0;
  width: 2.4em;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  color: var(--pink);
}
.thanks_list .tl_song {
  font-weight: bold;
  min-width: 0;
}
.thanks_list .tl_idol {
  font-weight: normal;
  color: #333;
  margin-right: 0.5em;
}
.thanks_share_lead {
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.thanks_share {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.thanks_share li {
  flex: 1;
  max-width: 140px;
}
.thanks_share a:link,
.thanks_share a:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-weight: bold;
  font-size: 1.4rem;
  text-decoration: none;
  line-height: 1;
}
.thanks_share a:hover {
  opacity: 0.85;
}
.share_x_logo {
  font-size: 1.6rem;
  line-height: 1;
}
.thanks_share .svg-inline--fa {
  font-size: 1.6rem;
}
.thanks_back {
  font-size: 1.4rem;
}
.thanks_back a:link,
.thanks_back a:visited {
  color: var(--green-dark);
  text-decoration: none;
}
.thanks_back .svg-inline--fa,
.thanks_back .fa-arrow-circle-right {
  margin-right: 6px;
}

@media screen and (min-width: 750px) {
  .main_vote section,
  #vote_form {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
  .vote_intro {
    margin-bottom: 48px;
  }
  .vote_fields {
    padding: 32px 32px 12px;
  }
  .vote_fields input[type="text"],
  .vote_fields input[type="email"],
  .request_fields input[type="text"] {
    max-width: 500px;
  }
  #vote_form input[type="date"] {
    max-width: 240px;
  }
  .request_fields {
    display: flex;
    gap: 16px;
  }
  .request_fields .vote_field {
    flex: 1;
  }
  .wrap .q_main {
    font-size: 2rem;
  }
  .gyo_nav {
    grid-template-columns: repeat(10, 1fr);
    margin: 0 0 24px;
    padding: 10px 0;
    box-shadow: none;
  }
  .gyo_title,
  .song {
    scroll-margin-top: 70px;
  }
  .main_vote .btn_border a {
    font-size: 1.7rem;
  }
  .song {
    padding: 14px 16px;
  }
  .song_idol {
    font-size: 1.4rem;
  }
  .song_title {
    flex-basis: auto;
    order: 0;
    font-size: 1.8rem;
  }
  .song_info {
    column-gap: 14px;
  }
  .song_rank {
    width: 110px;
  }
  .best10 {
    padding: 24px 32px 32px;
  }
  .best10_title {
    font-size: 2rem;
  }
  .vote_bar {
    left: auto;
    right: 24px;
    bottom: 24px;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .vote_bar a:link,
  .vote_bar a:visited {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .vote_bar_selected:link,
  .vote_bar_selected:visited {
    padding: 14px 20px;
  }
  footer {
    padding-bottom: 104px;
  }
  .thanks_inner {
    max-width: 600px;
    padding: 36px 40px 28px;
  }
  .thanks_back a:hover {
    text-decoration: underline;
  }
  .thanks_title {
    font-size: 2rem;
  }
  .thanks_list {
    padding: 14px 24px;
  }
  .thanks_list li {
    font-size: 1.5rem;
    padding: 5px 0;
  }
}
