.downloadButton {
  float: left;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 50px;
  background: linear-gradient(to right, #4f1919, #ff1414); /* 初期グラデーション */
  color: white;
  border: none;
  border-radius: 5px;
  font-family: Orbitron;
  font-size: 100%;
  cursor: pointer;
  overflow: hidden; /* カウンター表示領域を隠す */
  transition: border-radius 10s; /* 正方形への変化をアニメーション */
}

.arrow {
  margin-left: 10px;
  transition: transform 0.5s; /* バウンドアニメーション */
}

.downloadButton.clicked .arrow {
  animation: bounce 0.5s;
  display: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.downloadButton.clicked .downloadText {
  display: none;
}

.counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    opacity: 0; /* 最初は非表示 */
    transition: opacity 0.5s;
}

.downloadButton.counting .counter {
    opacity: 1; /* カウント中は表示 */
}

.downloadButton.square {
  border-radius: 10px; /* 正方形にする */
  width: 50px;
  height: 50px;
}