.tab-btn-outer {
  position: relative;
  width: 100%;
  margin: 3rem 0 2rem;
  padding: 1rem 1rem 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  background-color: #fccf00;
  z-index: 3;
}

button.tab-btn {
  width: 18.4%;
  height: 2.6em;
  margin: 0 2% 1rem 0;
  color: #fff;
  text-align: center;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(../img/arrow-w.png);
  background-repeat: no-repeat;
  background-position: center right 4%;
  background-size: 4% auto;
  background-color: #000;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

button.tab-btn.active {
  background-color: #c20813;
}

button.tab-btn.inactive {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.vote-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.vote-item {
  opacity: 0;
}

.vote-item.fade-in {
  animation: voteFadeIn 0.4s ease forwards;
}

@keyframes voteFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .tab-sp-select {
    position: relative;
    width: 70%;
    margin: 1.5rem auto 1.5rem;
    z-index: 4;
  }

  .tab-sp-select img {
    width: 100%;
    filter: drop-shadow(4px 4px 0 #fccf00);
  }

  .tab-btn-outer {
    margin: 1.5rem 0 1rem;
    padding: 1rem 0.5rem;
  }

  button.tab-btn {
    width: 23%;
    height: 3em;
    margin: 0 2.6% 0.5rem 0;
    color: #fff;
    text-align: center;
    font-size: 2.667vw;
    /* 10px -> 10 / 375 * 100 */
    line-height: 1.2;
    background-size: 5% auto;
  }

  button.tab-btn:nth-child(4n) {
    margin: 0 0 0.5rem 0;
  }

  .chara-select {
    width: 100%;
    margin: 0.5rem auto 0;
    text-align: center;
  }

  .chara-select img {
    width: 60%;
  }
}

@media screen and (min-width: 744px) and (max-width: 1024px) {
  .tab-btn-outer {
    margin: 2rem 0 2rem;
    padding: 0.6rem 0.6rem 0;
  }

  button.tab-btn {
    width: 18.5%;
    height: 2.4em;
    margin: 0 1.8% 0.6rem 0;
    font-size: 1.432vw;
  }

  button.tab-btn:nth-child(5n) {
    margin: 0 0 0.6rem 0;
  }
}

@media screen and (min-width: 1025px) {
  button.tab-btn:nth-child(5n) {
    margin: 0 0 1rem 0;
  }

  button.tab-btn:hover {
    background-color: #c20813;
  }

}