/* === スタンプラリー共通デザイン === */
/* メッセージボックス */
.stamprally-msg {
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-weight: bold;
}

.stamprally-msg.success {
  background: #dff0d8;
}

.stamprally-msg.warning {
  background: #fff3cd;
}

.stamprally-msg.error {
  background: #f8d7da;
}

/* === スタンプカード === */
.stamprally-card {
  display: grid;
  /* 💡 スマホ〜PCまで自動調整されるグリッド */
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;

  /* レイアウト */
  padding: 15px;
  background: #fff9e6;
  border-radius: 16px;
  border: 2px solid #f3d08b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  /* 💡 幅をスタンプ数に合わせて自動調整 */
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 30px;
}

/* === スタンプ個別 === */
.stamprally-card .stamp {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  /*transition: transform 0.3s, background 0.3s;*/
  transition: transform 0.3s, background 0.3s;
  background: #eee;
  color: #aaa;
  border: 2px dashed #ccc;
}

/* 押印済みスタンプ */
.stamprally-card .stamp.got {
  background: #fff;
  color: #fff;
  border: none;
  transform: scale(1.05);
  animation: stamp-pop 0.3s ease-out;
}

.stamprally-card .stamp.got img {
  margin: 0;
}

/* 押印アニメーション */
@keyframes stamp-pop {
  0% {
    transform: scale(0.5) rotate(-15deg);
    opacity: 0;
  }

  80% {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
  }

  100% {
    transform: scale(1.0) rotate(0);
  }
}

/* === 応募フォーム === */
button.btn_submit {
  display: inline-block;
  padding: 10px 20px;
  background-color: #5c9ee7;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* === レスポンシブ調整 === */
@media (max-width: 480px) {
  .stamprally-card .stamp {
    width: 80px;
    height: 80px;
    font-size: 12px;
  }
}