/* home.css — index.html 専用スタイル（ヒーロー・PONGゲーム） */

.hero {
  position: relative;
  z-index: 2;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5% 40px;
}

.hero h1 {
  font-size: 4.6rem;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 15px;
}

.hero .tagline {
  font-size: 1.65rem;
  letter-spacing: 8px;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 50px;
}

.game-container {
  margin: 30px auto 60px;
  max-width: 1040px;
  text-align: center;
  position: relative;
}

#pongCanvas {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  background: #ffffff;
  touch-action: none;
  cursor: pointer;
}

.control-bar {
  margin: 15px auto 0;
  width: 100%;
  max-width: 1000px;
  height: 90px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: pointer;
}

.control-bar::before {
  content: "← ここを指で左右になぞって操作 →";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 0, 0, 0.45);
  font-size: 1rem;
  white-space: nowrap;
  pointer-events: none;
}

@media (min-width: 769px) {
  .game-container { max-width: 620px; }
}
