* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

h1 {
  color: #f8f8f8;
  font-weight: bold;
  text-shadow:
    1px 1px 2px rgba(255,255,255,0.4),
    -1px -1px 2px rgba(0,0,0,0.3);
  font-family: "Chalkboard", "Comic Sans MS", sans-serif;
}


#info {
  color: #f8f8f8;
  font-size: 18px;
  text-shadow:
    1px 1px 2px rgba(255,255,255,0.4),
    -1px -1px 2px rgba(0,0,0,0.3);
  font-family: "Chalkboard", "Comic Sans MS", sans-serif;
}

h1, #info {
  filter: blur(0.3px);
  opacity: 0.95;
}


body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 20px;
}

#grid {
  width: 300px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

button {
  width: 55px;
  height: 55px;
  font-size: 20px;
  cursor: pointer;
  touch-action: manipulation; /* ← Safari のタップ遅延対策 */
  border: none;
  border-radius: 6px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#retry {
  padding: 15px 30px;
  width: 200px;
  font-size: 18px;
  background: transparent;
  border: 2px solid #f8f8f8;
  color: #f8f8f8;
  font-family: "Chalkboard", "Comic Sans MS", sans-serif;
  text-shadow:
    1px 1px 2px rgba(255,255,255,0.4),
    -1px -1px 2px rgba(0,0,0,0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease;

  display: block;
  margin: 20px auto 0 auto;

  /* ★ 追加：位置を自由に動かせるようにする */
  position: relative;
  top: -150px;  /* ← ここを調整すると上下に動く */
}


#retry:active {
  transform: scale(1.1);
}


button:active {
  background: #ddd;
}
button {
  transition: transform 0.15s ease, opacity 0.15s ease;
}
button {
  transition: transform 0.1s ease;
}

button {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

body {
  background-image: url("kokuban3.png");
  background-size: cover;       /* 画面いっぱいに広げる */
  background-position: center;  /* 中央に配置 */
  background-repeat: no-repeat; /* 繰り返さない */
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25); /* 25% 黒フィルター */
  pointer-events: none;         /* クリックを邪魔しない */
}


/* ポンッと弾けるアニメ */
button.pop {
  transform: scale(1.5); /* 少し大きくする */
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25); /* 影を強調 */
}


