/* General Styles */
body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
  }
  
  header {
    text-align: center;
    padding: 5px 20px;
    background-color: #333333;
  }
  
  header h1 {
    font-size: 3em;
    margin: 0;
    color: #ffcc00;
  }
  
  header p {
    font-size: 1.5em;
    margin-top: 5px;
    color: #cccccc;
  }
  
  /* Section Styles */
  section {
    padding: 60px 20px;
    margin: 20px 0;
  }
  
  img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  h2 {
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 10px;
  }
  
  p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #cccccc;
  }
  
  /* 通常のリンク */
a {
  color: #f0c420; /* 例：金色っぽくして目立たせる */
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: bold;
}

/* ホバーしたときのアニメーション */
a:hover {
  color: #ffe16a;              /* ちょっと明るく */
  text-shadow: 0 0 5px #ffc;   /* 軽く光らせる */
  text-decoration: underline;  /* 下線追加して「リンク感」アップ */
}

  /* Features List */
  ul {
    list-style-type: none;
    padding: 0;
  }
  
  ul li {
    font-size: 1.2em;
    padding: 10px 0;
    border-bottom: 1px solid #444444;
  }
  
  .game-intro {
    text-align: center;
  }

  /* Gallery */
  .gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .gallery img {
    max-width: 100%;
    height: auto;
    border: 3px solid #444444;
    border-radius: 5px;
  }
  
  /* Download Section */
  #download ul {
    list-style-type: none;
    padding: 0;
  }
  
  #download ul li {
    margin: 10px 0;
  }
  
  #download ul li a {
    color: #ffcc00;
    font-size: 1.2em;
    text-decoration: none;
  }
  
  #download ul li a:hover {
    text-decoration: underline;
  }
  
  /* Contact Form */
  form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  label {
    font-size: 1.2em;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    padding: 10px;
    font-size: 1em;
    color: #ffffff;
    background-color: #333333;
    border: 1px solid #555555;
    border-radius: 5px;
  }
  
  button[type="submit"] {
    padding: 15px;
    font-size: 1.2em;
    color: #ffffff;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button[type="submit"]:hover {
    background-color: #e6b800;
  }
  
  @media screen and (max-width: 70em) {
    .screenshot-item {
      flex-direction: column;
      display: flex;
      margin-bottom: 20px;
    }
  
    .screenshot-item img {
      width: 80%; /* Adjust this percentage as needed */
      max-width: 800px; /* Set a maximum width to control image size */
      margin-right: 20px;
  }
  
  .screenshot-description p {
      width: 95%;
      font-size: 1rem;
      color: #cccccc !important;
      text-align: center;
      margin-right: 20px;
   }
  
   .screenshot-description span {
      display: inline-block;
    }
  }
  
  .screenshot-item {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
  }
  
  .screenshot-item img {
      width: 80%; /* Adjust this percentage as needed */
      max-width: 800px; /* Set a maximum width to control image size */
      margin-right: 20px;
  }
  
  .screenshot-description p {
      width: 100%;
      font-size: 1rem;
      color: #cccccc !important;
  }
  
  .screenshot-description span {
    display: inline-block;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    background-color: #333333;
    color: #cccccc;
  }
  
  footer p {
    margin: 5px 0;
  }
  
  footer a {
    color: #ffcc00;
    text-decoration: none;
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  button {
    background-color: #4CAF50; /* 緑色の背景 */
    border: none; /* ボーダーを削除 */
    color: white; /* 白色の文字 */
    padding: 15px 32px; /* パディング */
    text-align: center; /* テキストを中央揃え */
    text-decoration: none; /* テキストの装飾を削除 */
    display: inline-block; /* インラインブロック表示 */
    font-size: 16px; /* フォントサイズ */
    margin: 4px 2px; /* マージン */
    cursor: pointer; /* カーソルをポインターに変更 */
    transition-duration: 0.4s; /* トランジションの時間 */
}

button:hover {
    background-color: white; /* ホバー時の背景色 */
    color: black; /* ホバー時の文字色 */
    border: 2px solid #4CAF50; /* ホバー時のボーダー */
}

#character-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.character {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.character img {
    width: 220px;
    height: auto;
    border-radius: 8px;
}

.character h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.character p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.character div.text {
    display: flex;
    flex-direction: column;
}

.navbar {
  list-style: none;         /* ・（リストマーカー）を消す */
  margin: 0;
  padding: 0;
  display: flex;            /* 横並びにする */
  justify-content: center;  /* 中央揃え */
  background-color: #BB7722; /* 青背景 */
}

.navbar li {
  margin: 0 30px;           /* 各メニュー間の間隔 */
}

.navbar a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 0;
  display: inline-block;
  transition: color 0.2s ease;
  padding: 12px 20px;
  transition: background-color 0.2s ease;
}

.navbar a:hover {
  background-color: #CCAA66; /* 少し明るめの青 */
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar a:hover::after {
  transform: scaleX(1);
}

.navbar li.logo img {
  height: 56px;     /* ロゴの縦サイズ（調整できます） */
  width: auto;
  display: block;
}

.navbar li.banner img {
  height: 56px;     /* ロゴの縦サイズ（調整できます） */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  /* ナビゲーションを縦並びに */
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar li {
    margin: 10px 0;
  }

  /* キャラクター紹介の画像サイズを縮小 */
  .character {
    flex-direction: column;
    text-align: center;
  }

  .character img {
    width: 100%;
    max-width: 200px;
  }

  .character div.text {
    align-items: center;
  }

  /* セクションのパディングを縮小 */
  section {
    padding: 30px 15px;
  }

  /* ヘッダーのフォントサイズを調整 */
  header h1 {
    font-size: 2em;
  }

  header p {
    font-size: 1.2em;
  }

  /* ギャラリー画像を1カラムに */
  .gallery {
    flex-direction: column;
    align-items: center;
  }

  /* 送信ボタンなどの余白調整 */
  form {
    padding: 0 10px;
  }
}

/* =========================
   更新履歴セクション
   ========================= */

.update-section {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.update-section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  border-bottom: 2px solid #d1d5db;
  padding-bottom: 0.25rem;
}

.update-intro {
  margin: 0 0 1.25rem 0;
  font-size: 0.9rem;
  color: #E0E0FF;
}

/* 各バージョンのブロック */

.update-item {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border-left: 7px solid #3b82f6;  /* デフォルトは青 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.update-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.update-version {
  font-weight: 700;
  font-size: 1rem;
}

.update-date {
  font-size: 0.85rem;
  color: #6b7280;
}

/* タグ（ラベル） */

.update-tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 種類別の色分け（必要に応じて使い分け） */
.update-tag-major {
  background-color: #ef4444;  /* 赤: 大型アップデート */
}

.update-tag-bugfix {
  background-color: #10b981;  /* 緑: バグ修正 */
}

.update-tag-balance {
  background-color: #f59e0b;  /* オレンジ: バランス調整 */
}

/* 箇条書き部分 */

.update-list {
  margin: 0.25rem 0 0 1.1rem;
  padding-left: 0;
}

.update-list li {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

/* スマホでのレイアウト調整 */
@media (max-width: 600px) {
  .update-section {
    padding: 1rem 1.1rem;
  }

  .update-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .update-version {
    font-size: 1rem;
  }

  .update-date {
    font-size: 0.8rem;
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#promo-image {
  transition: opacity 0.5s;
  opacity: 1;
}

#promo-image.is-fading {
  opacity: 0;
}