/* ルール */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 64px; /* ヘッダーの高さ */
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  background: linear-gradient(180deg, #fff 0%, #ffe9f8 100%);
  color: #333;
   min-height: 100vh;
}

/* ヘッダー */
.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: 240px;
  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;
}


/* メイン */
.main {
  padding: 16px;
}

/* 最新 */
.featured {
  margin-bottom: 16px;
}

.featured-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

.game-info {
  padding: 8px 12px;
  background: #fff;
}

.game-info h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.game-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* ゲーム一覧 */
.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.game-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.12s ease;
}

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

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

.game-card h3 {
  margin: 8px;
  font-size: 0.95rem;
  text-align: center;
}

.game-card:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.9);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}



.featured-card:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.92);
}

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

@media (max-width: 480px) {
  .game-title {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}
@media (max-width: 480px) {
  .game-title {
    line-height: 1.35;
  }
}


.view-more {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: #ff8acb;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
}

.view-more:hover {
  opacity: 0.85;
}