html, body {
  margin: 0;
   background: linear-gradient(180deg, #fff 0%, #ffe9f8 100%);
    min-height: 100vh;
    padding-top: 40px;
}

/* ページ全体 */
.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: 32px 16px 64px;
  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;
}

/* ===== キャラクターページ ===== */

.character-page {
  max-width: 900px;
  margin: 40px auto 0; /* 上に余白 */
}

/* キャラ概要 */
.character-profile {
  display: flex;
  align-items: center;
  gap: 32px;

  max-width: 720px;
  margin: 0 auto 32px;
  padding: 32px;

  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.character-image {
  width: 300px;
  max-width: 40%;
  height: auto;
  flex-shrink: 0;
   filter: drop-shadow(0 8px 16px rgba(82, 22, 55, 0.15));
   transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.character-image:hover {
  transform: translateY(-4px);
}

.character-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.character-name {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.character-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 8px;
}

.character-attr {
  font-size: 0.85rem;
  color: #0e73f7;
  font-weight: bold;
}

/* 登場ゲーム */

.character-games {
  margin-top: 32px;
  text-align: center;
}

.character-games h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.character-game-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  justify-content: center;
}

/* 縮小版ゲームカード */
.character-game-card {
  flex: 0 0 auto;
  width: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  background: #fff;
   transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.character-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.character-game-card img {
  width: 100%;
  display: block;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .character-profile {
    flex-direction: column;
    text-align: center;
  }

  .character-image {
    width: 160px;
  }

   .character-game-list {
    justify-content: flex-start;
    overflow-x: auto;
  }
}


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



/* ===== キャラ一覧ページ ===== */

/* タイトル */

.character-list-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.character-list-title {
  font-size: 28px;
  margin-bottom: 40px;
}

/* ===== メインキャラ ===== */
.character-main {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

/* ===== サブキャラ ===== */
.character-sub {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 共通カード */
.character-card {
  background: #fff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform .2s ease;
 text-decoration: none;
  color: inherit;

}

.character-card:hover {
  transform: translateY(-4px);
}

/* メイン */
.character-card.main {
  width: 240px;
  padding: 24px;
}

.character-card.main img {
  width: 120px;
}

/* サブ */
.character-card.sub {
  width: 180px;
  padding: 20px;
}

.character-card.sub img {
  width: 90px;
}

/* 名前・属性 */
.name {
  margin-top: 12px;
  font-weight: bold;
}

.attr-patent {
  font-size: 0.85rem;
  color: #4da3ff;
}

.attr-design {
  font-size: 0.85rem;
  color: #ff9b5e;
}
