body {
  background-image: radial-gradient(#ffccff 5px, transparent 5px),
                    radial-gradient(#ccffff 5px, transparent 5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  font-family: "MS PGothic";
  color: #000;
  text-align: center;
  margin: 0;
  padding: 40px 10px;
}

.container {
  background-color: #ffe7f9d5;
  border: 3px solid #f119a5;
  width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 5px 5px 0 #dc7cdc90;
  position: relative;
}

.badge-inside {
  position: absolute;
  top: -10px;
  right: 10px;
  z-index: 10;
  width: 80px;
}

.badge-inside img {
  width: 180%;
  height: auto;
}

.logo {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 0 auto 30px auto;
  image-rendering: pixelated;
}

.gacha-button {
  background-color: #ffbef1;
  border: 2px outset #cc66aa;
  padding: 15px 30px;
  font-size: 20px;
  font-weight: bold;
  font-family: "MS PGothic";
  cursor: pointer;
  box-shadow: 3px 3px 0 #baa2bceb;
  transition: transform 0.1s, box-shadow 0.1s;
  color: #000f52;
}

.gacha-button:hover {
  transform: translateY(2px);
  box-shadow: none;
  border: 2px inset #cc66aa;
}

.result-box {
  margin-top: 30px;
  font-size: 22px;
  padding-top: 20px;
  display: none;
  animation: fadeIn 0.6s ease forwards;
}

.result-box img.result-image {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}
.retry-button-box {
  margin-top: 20px;
}

.retry-button {
  background-color: #ffcaff;
  border: 2px outset #cc66aa;
  padding: 10px 25px;
  font-size: 18px;
  font-weight: bold;
  font-family: "MS PGothic";
  cursor: pointer;
  box-shadow: 3px 3px 0 #baa2bceb;
  transition: transform 0.1s, box-shadow 0.1s;
  color: #00003c;
}

.retry-button:hover {
  transform: translateY(2px);
  box-shadow: none;
  border: 2px inset #cc66aa;
}

.hidden {
  display: none;
}

.footer-link {
  margin-top: 30px;
  font-size: 16px;
}

.footer-link a {
  color: #002aff;
  font-weight: bold;
  border-bottom: 2px dashed #999eff;
  text-decoration: none;
  padding: 2px 4px;
}

.footer-link a:hover {
  color: #002aff;
  background-color: #fffcb0;
  border-bottom: 2px solid #999eff;
}

.decor {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}

.decor img {
  width: 100px;
  height: auto;
}

#counter {
  margin-top: 10px;
  margin-bottom: 40px;
  font-size: 16px;
  text-align: center;
  color: #00003c;
}

/* 位置調整 */
.decor-top-left {
  top: 100px;
  left: 200px;
}

.decor-top-right {
  top: 500px;
  right: 100px;
}

.decor-bottom-left {
  bottom: 100px;
  left: 100px;
}

@media screen and (max-width: 768px) {

#counter {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  color: #00003c;
  position: relative;
  top: 10px;
}

.container {
  width: 90%;
  margin: 20px auto;
  padding: 20px 10px;
}

.gacha-button,
.retry-button {
  width: 90%;
  font-size: 20px;
  padding: 15px 0;
}

.result-box img.result-image {
  width: 85%;
  max-width: 280px;
}

.footer-link {
  margin-top: 40px;
  font-size: 14px;
}

}