@charset "UTF-8";
.vote-wrap {
  min-height: 100vh;
  padding: 4rem 0 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: top left;
  background-image: url(../img/bg-vote.png);
  background-color: #fccf00;
}

.vote-wrap main {
  flex: 1 0 auto;
}

.vote-wrap .footer {
  margin-top: auto;
  flex-shrink: 0;
}

.vote-title {
  position: relative;
  width: 80%;
  margin: 0 auto 3rem;
  transform: rotate(-5deg);
}

.thanks-title {
  position: relative;
  width: 70%;
  margin: 0 auto 4rem;
  transform: rotate(-5deg);
}

.vote-chara-inner {
  width: 360px;
  margin: 0 auto;
}

.vote-chara {
  position: relative;
  width: 100%;
  font-optical-sizing: auto;
  font-style: normal;
  color: #fff;
  background-color: #000;
  box-shadow: 5px 5px 0 #c6a000;
}

.vote-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.vote-thumb img {
  width: 100%;
  border-top: #000 10px solid;
  border-left: #000 10px solid;
  border-right: #000 10px solid;
}

.chara-name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 3.2em;
  margin: 0 auto;
  padding: 0 5%;
  text-align: center;
  color: #fccf00;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  border-bottom: #fccf00 1px solid;
}

.chara-cap {
  width: 90%;
  margin: 0 auto;
  padding: 1em 0;
  color: #fff;
  font-size: 1rem;
}

.chara-num {
  position: absolute;
  top: -0.6em;
  left: -0.6em;
  width: 16%;
  aspect-ratio: 1 / 1;
  background-color: #c20813;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 500;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.1em;
}

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

.vote-btn img {
  display: block;
  width: 100%;
  border: #000 solid 3px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
}

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

.thanks-btn {
  position: relative;
  width: 100%;
  margin: 1rem auto 0;
}

.back-btn {
  width: 50%;
  margin: 2rem auto 0;
}

.textarea {
  width: 100%;
  height: 6em;
  text-align: 14px;
  margin: 1rem 0 0;
  padding: 1em;
  border-radius: 8px;
}

.ft-logo {
  width: 30%;
  margin: 2rem auto;
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .vote-wrap {
    padding-top: 3rem;
  }

  .vote-wrap .inner {
    width: 100%;
  }

  .vote-title,
  .thanks-title {
    width: 94%;
    margin-bottom: 3rem;
  }

  .vote-chara-inner {
    width: 70%;
  }

  .vote-thumb img {
    border-width: 6px;
  }

  .chara-name {
    height: auto;
    min-height: 3.2em;
    padding: 0.6em 2%;
    font-size: clamp(16px, 4.5vw, 22px);
    overflow-wrap: anywhere;
  }

  .chara-cap {
    font-size: clamp(12px, 3.4vw, 16px);
    line-height: 1.6;
  }

  .chara-num {
    width: 16%;
    font-size: clamp(18px, 5vw, 26px);
  }

  .vote-btn,
  .thanks-btn {
    margin-top: 1.5rem;
  }

  .back-btn {
    width: 55%;
    margin: 1.5rem auto 0;
  }

  .textarea {
    font-size: 16px;
    line-height: 1.5;
    padding: 0.75em;
  }

  .ft-logo {
    width: 50%;
    margin: 2rem auto 1rem;
  }
}

@media screen and (min-width: 744px) and (max-width: 1024px) {
  .vote-title {
    width: 90%;
    margin: 0 auto 4rem;
  }

  .thanks-title {
    width: 80%;
    margin: 0 auto 4rem;
  }

  .vote-chara-inner {
    width: 50%;
    margin: 0 auto;
  }

  /* Tablet font-size overrides */
  .chara-name {
    font-size: min(2.195vw, 1.371875rem);
  }
  .chara-num {
    font-size: min(2.439vw, 1.524375rem);
  }
}
