
/* css/style.css */
/* ===================== */
/* 共通リセット */
/* ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===================== */
/* 共通ベース（全ページ） */
/* ===================== */
html, body {
  height: 100%;
  margin: 0;
  background: #000;  /* 黒帯背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* ===================== */
/* 16:9 固定ラッパー */
/* ===================== */
.page-wrapper {
  position: relative;
  width: 100vw;                   /* 横幅いっぱい */
  height: calc(100vw * 9 / 16);   /* 横幅から高さを決定 */
  max-height: 100vh;              /* 縦にはみ出さないように */
  margin: auto 0;                 /* 縦中央寄せ */
  background: url("/game/tapbattle/images/default/bac_top1.jpg") no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

/* ===================== */
/* ボタン類（共通デザイン） */
/* ===================== */
.stage-buttons button,
.menu-buttons button,
.popup-content button {
  width: 100%;
  margin: 10px 0;
  padding: 12px 15px;
  font-size: 16px;
  background: orange;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.stage-buttons button:hover,
.menu-buttons button:hover,
.popup-content button:hover {
  background: #e68900;
}

/* ===================== */
/* サウンド設定 */
/* ===================== */
#sound-box {
  margin-top: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

#sound-box label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}

#sound-box input[type="checkbox"] {
  transform: scale(1.3);
}

/* ===================== */
/* ポップアップ共通 */
/* ===================== */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  max-width: 400px;
}

/* ===================== */
/* 共通リセット */
/* ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===================== */
/* 共通ポップアップ（オーバーレイ） */
/* ===================== */
.popup {
  position: fixed;   /* ← absolute ではなく fixed の方が他ページでも安定 */
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.75);
}

.popup:not(.hidden) {
  display: grid;
}

.popup .popup-content {
  width: min(90vw, 520px);
  background: #fff;
  color: #111;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ===================== */
/* 共通: 非表示制御 */
/* ===================== */
.hidden {
  display: none !important;
}


