body {
  font-family: sans-serif;
  margin: 0;
  padding: 180px 15px 20px;
  background-color: #f4f4f4;
  background-image: url('/image/background.png'); /* ← 画像パスを指定 */
  background-repeat: repeat;
  background-size: 100% auto;
  background-position: bottom center;
  min-height: 100vh;
}

.top-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 155px;
  background-image: url('/image/backgroundheader.png'); /* 上部背景画像 */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  z-index: 90;
}

/* 上に重ねる画像用 */
.header-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 155px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  pointer-events: none;
}

.header-image img {
  height: 20%; /* 必要に応じて調整 */
  object-fit: contain;
}


/* 戻るボタン */
#backButton {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 60px;
  background: url('/image/back.png') no-repeat center/contain;
  border: none;
  z-index: 110;
  cursor: pointer;
}

.container {
  max-width: 500px;
  margin: 0 auto;
}

.input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.input-wrapper img {
  width: 80%;
  height: auto;
  display: block;
  margin-left: 10%;
}

.input-wrapper input {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  width: 80%;
  background: transparent;
  border: none;
  font-size: 16px;
  outline: none;
  color: #333;
}

/* 景品カード */
.prize-card {
  position: relative; /* ← 重要！ */
  overflow: visible;
  background-image: url('/image/prize_background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 15px;
  margin: 60px 0 20px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.prize-overlay {
  position: absolute;
  top: -30px; /* 上に突き出す場合はマイナスで調整 */
  left: 50%;
  transform: translateX(-50%);
  width: 50px; /* サイズ調整 */
  max-width: 130px;
  height: auto;
  z-index: 5;
  pointer-events: none; /* クリック無効にしたいとき */
}



.prize-card img {
  width: 90%;
  height: auto;
  margin: 10px 0;
  border-radius: 5px;
}

.entry-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-block;
  width: auto;
}

.entry-button img {
  width: 140px;      /* 必要に応じてサイズ調整 */
  height: auto;
  display: block;
}

.entry-button:disabled img {
  filter: grayscale(100%);
  opacity: 0.5;
  cursor: not-allowed;
}
