body {
  opacity: 1;
  transition: opacity 0.6s ease-in;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #ffffff; /* 明るめの紺 */
  color: #ffffff;
  margin: 0;
}

body.loaded {
  opacity: 1;
}

.header {
  text-align: center;
  padding: 40px 20px 20px 20px;
  background-color: #21a2d5;
  border-bottom: 2px solid #ffffff;
}

.header h1 {
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 2px;
}
.header p {
  color: #ffffff;
  margin-top: 5px;
  font-style: italic;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px;
  flex-wrap: wrap;
}
.hero-image {
  width: 100%;
  height: 300px; /* 好きな高さに調整可能（推奨 250〜350px） */
  overflow: hidden;
  margin-bottom: 30px;
  border-bottom: 3px solid #ffffff;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff; /* 背景色（画像が小さい時に後ろに出る） */
}
.button-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #21a2d5;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.button-link:hover {
  background-color: #00000043;
}

.search-bar,
.category-select {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.article-list {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.article-item {
  background: #ffffff;
  color: #2c3e50;
  border-radius: 16px;
  padding: 25px;
  max-width: 400px; /* ← カードの最大幅を制限 */
  margin: 0 auto; /* ← 1 件のとき中央寄せ */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.103);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.166);
}

.article-item h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid #21a2d5;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.article-item .date,
.article-item .category {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.read-more,
.back-link {
  display: inline-block;
  padding: 8px 18px;
  background-color: #21a2d5;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.read-more:hover,
.back-link:hover {
  background-color: #21a2d5;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.article-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  color: #2c3e50;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  line-height: 1.8;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .header h1 {
    font-size: 2rem;
  }
  .article-list {
    gap: 20px;
    padding: 0 15px;
  }
  .article-item {
    padding: 20px;
  }
  .read-more {
    padding: 6px 12px;
  }
}

.card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px; /* ← アイコン枠の高さ */
  margin-bottom: 10px;
}

.card-icon img {
  width: 45px; /* ← アイコンの大きさ */
  height: 45px;
  object-fit: contain;
  opacity: 0.9;
}
/* ゲーム一覧全体（カードを並べる部分） */
#game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* 各ゲームのカード */
.game-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.2s ease;
}
.game-card h3,
.game-card p {
  color: #222; /* 黒系の色に */
}

.game-card:hover {
  transform: scale(1.03);
}

/* ゲーム画像 */
.game-icon {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ゲーム説明文 */
.game-description {
  font-size: 14px;
  color: #444;
  margin-top: 8px;
}