@charset "UTF-8";

.vote-bg {
  background-repeat: no-repeat, repeat;
  background-size: 50% auto, 50% auto;
  background-position: top left, top center;
}

.webp .vote-bg {
  background-image: url(../img/bg-logo.png), url(../img/bg.webp);
}

.no-webp .vote-bg {
  background-image: url(../img/bg-logo.png), url(../img/bg.webp);
}

.vote-wrap {
  position: relative;
  width: 100%;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.vote-title {
  position: relative;
  width: 50%;
  margin: 0 auto 2rem;
}

.vote_chara {
  position: relative;
  width: 340px;
  margin: 0 auto 1rem;
  background-color: #000;
  font-feature-settings: "palt";
  text-align: center;
}

.chara-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #000;
  border: #000 solid 2px;
}

.chara-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.chara-name {
  width: 100%;
  min-height: 3em;
  margin: 0 0 0.5rem;
  padding: 0.5em 0.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  background-image: url(../img/v-name-bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 120% auto;
  background-color: #c20913;
  word-break: keep-all;
}

#voteTitle span {
  display: inline-block;
  color: #fff000;
  font-weight: 900;
  padding: 0 0.5em;
  letter-spacing: 0.05em;
}

.chara-explain {
  width: 100%;
  padding: 0 0 0 1em;
  font-family: "Anton", sans-serif;
  text-align: left;
  color: #fff;
  font-size: 30px;
  background-color: #000;
  background-image: url(../img/v-num-bg.png);
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: top left -50%;
  letter-spacing: 0.05em;
}

.vote-btn {
  position: relative;
  width: 340px;
  aspect-ratio: 1 / 0.267;
  margin: 0 auto;
  background-image: url(../img/btn_off.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
  line-height: 0;
}

.vote-btn a {
  display: block;
  pointer-events: auto;
}

.back-btn {
  width: 180px;
  margin: 1rem auto;
}

textarea {
  display: block;
  width: 340px;
  height: 6em;
  text-align: 14px;
  margin: 0 auto 1rem;
  padding: 1em;
  line-height: 1.4;
}

.vote-footer-bg {
  color: #000 !important;
  background-color: transparent !important;
}

/* ボタンが disabled のときの見た目 */
#submitBtn:disabled {
  cursor: default;
  /* マウスカーソルも押せなさそうな感じに */
}

#submitBtn:disabled img {
  filter: grayscale(100%) brightness(0.3);
  /* モノクロ＋少し暗く */
}

/* 共通（最近のブラウザ用） */
textarea[name="vote_custom_name"]::placeholder {
  color: #cccccc;
  /* 好きな薄いグレーに変更 */
}

/* 念のためのベンダープレフィックス */
textarea[name="vote_custom_name"]::-webkit-input-placeholder {
  color: #cccccc;
}

textarea[name="vote_custom_name"]:-ms-input-placeholder {
  color: #cccccc;
}

textarea[name="vote_custom_name"]::-ms-input-placeholder {
  color: #cccccc;
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .vote-bg {
    background-size: 100% auto, 100% auto;
  }

  .webp .vote-bg {
    background-image: url(../img/bg-logo.png), url(../img/sp-bg.webp);
  }

  .no-webp .vote-bg {
    background-image: url(../img/bg-logo.png), url(../img/sp-bg.webp);
  }

  .vote-wrap {
    padding: 2rem 0 2rem;
  }

  .vote-title {
    width: 100%;
    margin: 0 auto 1.5rem;
  }

  .vote_chara {
    width: 80%;
    margin: 0 auto 1rem;
  }

  .chara-thumb {
    border: #000 solid 1px;
  }

  .chara-name {
    min-height: 3em;
    font-size: 4.267vw;
    /* 16px -> 16 / 375 * 100 */
  }

  .chara-explain {
    padding: 0 0 0 1em;
    font-size: 7.467vw;
    /* 28px -> 28 / 375 * 100 */
    background-position: top left -4rem;
  }

  .vote-btn {
    width: 80%;
  }

  textarea {
    width: 80%;
    padding: 0.6em;
  }


  .back-btn {
    width: 50%;
  }

}

@media screen and (min-width: 744px) and (max-width: 1024px) {
  .vote-bg {
    background-size: 60% auto, 50% auto;
  }

  .vote-wrap {
    position: relative;
    width: 100%;
    padding: 4rem 0 3rem;
    overflow: hidden;
  }

  .vote-title {
    width: 60%;
  }

  .vote_chara {
    width: 50%;
  }

  .chara-name {
    font-size: 16px;
  }

  .chara-explain {
    font-size: 30px;
    background-position: top left -40%;
  }

  .vote-btn {
    width: 50%;
  }

  textarea {
    width: 50%;
  }

  .back-btn {
    width: 30%;
    margin: 1rem auto;
  }

}

@media screen and (min-width: 1025px) {}