/* 登録ボタンのベーススタイル */
.wp-block-custom-registration-button {
  text-align: center;
  margin: 20px 0;
}

.registration-button {
  position: relative;
  display: block;
  width: 90%;
  margin: 0 auto;
  padding: 1em 0;
  text-decoration: none;
  border-radius: 99px;
  font-weight: bold;
  font-size: clamp(20px, 3.8vw, 24px);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;

  /* デフォルトスタイル（お好みで変更してください） */
  background: linear-gradient(to bottom, #5270fc 0%, #5b59e0 50%, #5c3ac3 100%);
  color: white;
  box-shadow: 2px 2px 1px 0 rgba(0, 0, 0, 0.8);
  animation: bound 2s ease forwards infinite;
}

.registration-button:hover {
  background-color: #005a87;
  border-color: #005a87;
  text-decoration: none;
  color: white;
}

.registration-button:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* エディター内でのスタイル調整 */
.block-editor-page .registration-button {
  pointer-events: none; /* エディター内でのクリックを無効化 */
}

.registration-button:before {
  position: absolute;
  content: "";
  display: block;
  top: -180px;
  left: 0;
  width: 30px;
  height: 100%;
  background-color: #fff;
  animation: shiny-brite 2s ease-in-out infinite;
}

@keyframes bound {
  0% {
    transform: translateY(0);
  }

  15% {
    transform: translateY(-10px);
  }

  30% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes shiny-brite {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }

  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }

  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }

  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}
