html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #F4AF96;
  overflow: hidden; /* モバイルのスクロール防止 */
}

#wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  position: relative;	
}

#myCanvas {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: bottom; /* canvasタグの下に余白が生まれるのを防ぐ */
  transition: opacity 1s ease; /* ← これを追加！ */
}

#logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* canvasより上に */
  pointer-events: none; /* クリックなどを透過させる */
}

#logo-overlay img {
  max-width: 200px; /* ロゴのサイズ調整 */
  opacity: 0.3;     /* 透過度合いも自由に調整 */
}

/* noscript用ラッパー */
.noscript-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F4AF96; /* canvas と同じ背景色 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1000; /* canvasより前面に表示 */
  color: #ffffff;
  font-family: sans-serif;
}

/* テキスト */
.noscript-wrapper p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* リンク */
.noscript-wrapper a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #fff;
  color: #F4AF96;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;
}

/* ホバー時 */
.noscript-wrapper a:hover {
  background-color: #F4AF96;
  color:#fff;
  transform: translateY(-2px);
}

/* スマホ（幅768px以下）でだけロゴを小さく */
@media screen and (max-width: 768px) {
  .logo {
    width: 150px;
  }
  .noscript-wrapper p {
    font-size: 1rem;
  }
  .noscript-wrapper a {
    font-size: 1rem;
    padding: 10px 20px;
  }
}