@charset "utf-8";
body {
  background: #f8f8ff;
  font-family: 'Zen Maru Gothic', 'Rounded Mplus 1c', 'Hiragino Maru Gothic Pro', 'Meiryo', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative; /* 背景イラスト用 */
}

.bg-outer {
  position: fixed;
  z-index: 0;
  top: 0; left: 0; width: 100vw; height: 100vh;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.7;
}

.header-box {
  width: 700px;
  margin: 40px auto 0 auto;
  padding: 24px 32px 18px 32px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px #e0e0e0;
  text-align: center;
}

h1 {
  font-size: 24pt;
  margin: 40px 0 12px 0;
  font-family: 'Zen Maru Gothic', 'Rounded Mplus 1c', 'Hiragino Maru Gothic Pro', 'Meiryo', sans-serif;
  color: #2a5;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-align: center;
  z-index: 2;
  position: relative;
}

p {
  font-size: 20pt;
  margin: 0 0 24px 0;
  color: #555;
  font-family: 'Zen Maru Gothic', 'Rounded Mplus 1c', 'Hiragino Maru Gothic Pro', 'Meiryo', sans-serif;
  text-align: center;
  z-index: 2;
  position: relative;
}

.main-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100vw;
  min-height: 0;
}

#gameCanvas {
  position: relative;
  z-index: 1;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px #ccc;
  background: #eee;
}

#signalSelectWrap {
  width: 420px;
  margin: 40px auto 24px auto;
  position: relative;
  height: 140px;
  z-index: 10;
}
#signalSelectWrap img[alt="信号機"] {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 16px #aaa);
}
.signalBtn {
  position: absolute;
  top: 22px;
  background: rgba(255,255,255,0.01);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 8px #000, 0 0 2px #333;
  letter-spacing: 0.04em;
  user-select: none;
  transition: box-shadow 0.1s, transform 0.1s;
  box-shadow: 0 0 0 0 #fff0;
}
.signalBtn:active {
  transform: scale(0.95);
  box-shadow: 0 0 12px 2px #fff8;
}
.signalBtn[data-level="1"] { left: 28px; }
.signalBtn[data-level="2"] { left: 172px; }
.signalBtn[data-level="3"] { left: 316px; }
.signalBtn .signalBtnLabel {
  pointer-events: none;
  font-size: 1.25em;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 8px #000, 0 0 2px #333;
  letter-spacing: 0.04em;
}

#stageTimer {
  min-width: 80px;
  min-height: 36px;
  background: #fff700;
  color: #222;
  font-family: 'Share Tech Mono', 'Consolas', 'Menlo', 'monospace';
  font-size: 1.7em;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 8px #ffe06688, 0 0 0 2px #fff8;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
  padding: 0.1em 0.5em;
  border: 1.5px solid #ffe066;
  user-select: none;
  text-shadow: 0 1px 4px #fff8, 0 0 1px #fff;
}
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');