html, body {
  margin: 0;
   background: linear-gradient(180deg, #fff 0%, #ffe9f8 100%);
  
}

/* ページ全体 */
.game-page {
  min-height: calc(100vh); /* ヘッダー分 */
  display: flex;
  justify-content: center;
  align-items: center;
}



/* ヘッダー */
.site-header {
position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 1000;
  pointer-events: none; /* headerは貫通 */
}

.logo {
  display: none;
}

.menu-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  pointer-events: auto; /* ★ここだけ有効 */
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  
  color: #ff8acb;
  transition: transform 0.2s, opacity 0.2s;

}

.menu {
 position: fixed;
  top: 64px;
  right: 16px;
  pointer-events: auto;
  display: none;

  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.menu.open {
  display: block;
}

.hamburger {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;

  position: fixed;
  top: 16px;
  right: 16px;
  pointer-events: auto;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffc6df;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hamburger:active {
  transform: scale(0.95);
}


/* サイドメニュー */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 200px;
  height: 100vh;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);

  transform: translateX(100%);
  transition: transform 0.35s ease;

  z-index: 900;
  padding: 80px 20px 20px; /* 上はハンバーガー分あける */
  box-shadow: -8px 0 20px rgba(0,0,0,0.12);
}

/* 表示時 */
.side-menu.open {
  transform: translateX(0);
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin-bottom: 16px;
}

.side-menu a {
  text-decoration: none;
  color: #555;
  font-size: 1rem;
}

.side-menu a:hover {
  color: #ff8acb;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 800;
}

/* ゲーム枠（PC基準） */
.game-wrapper {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 960 / 640;
  background: #000;
  position: relative; /* ★これ超重要 */
}

/* iframe本体 */
.game-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* 画面回転ガイド */
.rotate-guide {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* スマホ */
@media (max-width: 768px) {
  .game-page {
    padding: 0;
  }

  .game-wrapper {
    width: 100vw;
    height: 100vh;
    max-width: none;
    aspect-ratio: 960 / 640;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
}

.fs-btn {
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #6c5ce7;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}
.fs-btn:active {
  transform: scale(0.96);
}
.fullscreen-btn {
  position: absolute;
  bottom: -56px;   /* ゲームの下にちょい余白 */
  right: 0;
  
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #7b6cff;
  color: #fff;
  cursor: pointer;
}

.game-page {
  display: flex;
  flex-direction: column; /* ★縦並びにする */
  align-items: center;
  gap: 16px;
}

.game-links {
  display: flex;
  gap: 12px;
}


/* フッター */
.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  color: #888;
}

.vertical-game iframe {
  width: 400px;       /* 縦長サイズ */
  height: 700px;      /* 高めにする */
  display: block;
  margin: 0 auto;     /* 中央に */
}
.vertical-game {
  background: transparent;
}