body {
  background-image: url('http://stamprally.inagi-tokyo.com/wp-content/uploads/2025/08/background_v2.png'); /* ← 差し替えOK！ */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; /* 💎 ← これが高級感スクロール！ */
  background-position: center center;
  background-color: #fdf8e4; /* 万が一の背景色（画像が読み込めない時） */
  padding-top: 3em;
}

.stamp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1em;
}

/* 基本カードスタイル */
.stamp-link {
  color: #333; /* 濃いグレー */
  text-decoration: none; /* 下線ナシ */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5em;
  border-radius: 16px;
  background: #fffbe6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  overflow: hidden;
  position: relative;
}

.stamp-link h3 {
  text-align: center;
  margin: 0.3em 0;
  font-size: clamp(1rem, 4vw, 1.2rem); /* 画面幅で可変 */
  margin-bottom: 0.5em;
  color: #444;
}

.stamp-link p {
  text-align: left;
  margin: 0.3em 0;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.stamp-link img {
  display: block;
  margin: 0 auto 0.5em auto;
  max-width: 90%;
  border-radius: 8px;
  height: 120px; /* ← 好きな高さに調整OK！ */
  width: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.5em auto;
}

.stamp-link:hover {
  transform: scale(1.02);
}

/* スタンプ済みの装飾 */
.stamp-link.stamped {
  border: 2px solid #f9a825;
  background: #fff3cd;
}

/* 綿毛アニメーションエフェクト */
@keyframes popoFloatFree {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1.2) rotate(720deg);
  }
}

.popo-seed {
 /* position: absolute;*/
  position: fixed;
  width: 24px;
  height: 24px;
  background-image: url('https://stamprally.inagi-tokyo.com/wp-content/uploads/2025/05/watage.png');
  background-size: cover;
  animation: popoFloatFree 2s ease-out forwards;
  pointer-events: none;
 /* z-index: 10;*/
  z-index: 9999; /* ← 最前面に持ってくる */
}

a.stamp-link.stamped::after {
  content: 'クリア🍐';
  position: absolute;
  top: 5px;
  right: 5px;
  background: #f06292;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8em;
}

#mission-complete {
  position: fixed;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  background-image: url('http://stamprally.inagi-tokyo.com/wp-content/uploads/2025/08/gold.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333132;
  padding: 1rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  border-radius: 20px;
  z-index: 1000;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInDrop 0.6s ease-out forwards;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  max-width: 90vw;

  white-space: nowrap;
}

@keyframes fadeInDrop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.stamp-status-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5em;
  border-radius: 12px;
  margin-bottom: 0.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.stamp-status-text {
  flex: 1 1 auto;
  font-size: 1rem;
  color: #333;
  margin-bottom: 1em; 
  padding-right: 1em;
  .stamp-status-text p {
  margin: 0.3em 0;
  line-height: 1.4;
}
}

.stamp-status-image {
  width: 300px;
  text-align: center;
 }

.stamp-status-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* ← これ追加してみて！ */
  border-radius: 12px; /* ← 角もまるっとさせたらよりふんわり可愛くなるよ♡ */

}

/* デバイスに合わせてサイズアップ */
@media (min-width: 769px) {
  .stamp-status-image img {
    max-width: 300px; /* ← PC時はちょっと大きめに */
  }
}

@media (max-width: 768px) {
  .stamp-status-area {
    flex-direction: column;
    align-items: center;
  }

  .stamp-status-text {
    padding-right: 0;
    line-height: 1.4;
    margin-bottom: 0.5em; /* ← ここを減らして余白詰めよう！ */
    padding: 0;
  }

  .stamp-status-image {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .stamp-status-image img {
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* スマホ時：画像左、テキスト右に */
@media (max-width: 768px) {
  .stamp-link {
    flex-direction: row;
    text-align: left;
    gap: 1em;
    align-items: flex-start; /* ←←←✨ これがポイント！ */
  }

  .stamp-link img {
    width: 40%;
    height: auto;
    margin-bottom: 0;
  }

  .stamp-link h3,
  .stamp-link p {
    margin: 0;
  }

  .stamp-link > div {
    flex: 1;
  }
}

#reward-button {
  margin-top: 0.5em;
  padding: 0.5em 1.5em;
  font-size: 0.8rem;
  font-weight: bold;
  background-color: #fff;
  color: #ff4081;
  border: 2px solid #ff4081;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

#reward-button:hover {
  background-color: #ffebf2;
}

#reward-button:disabled {
  background-color: #eee;
  color: #aaa;
  border-color: #ccc;
  cursor: default;
}