/* ==========================================
   下水王国 - ランディングページ スタイルシート
   ========================================== */

/* ==========================================
   ベーススタイル
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* カラーパレット - 白ベース・清潔感 */
  --primary-blue: #00a3e0;
  --deep-blue: #0077be;
  --light-blue: #b3e5fc;
  --cyan: #00bcd4;
  --white-bg: #ffffff;
  --light-gray-bg: #f8f9fa;
  --lighter-gray-bg: #fafbfc;
  --dark-text: #212121;
  --gray-text: #666666;
  --light-gray-text: #999999;
  --accent-green: #4caf50;
  --accent-purple: #9c27b0;
  --enemy-red: #f44336;
  --ally-green: #8bc34a;
  --blue-bg: #e3f2fd;

  /* タイポグラフィ */
  --font-main: "Noto Sans JP", sans-serif;
  /* --font-main: "M PLUS Rounded 1c", sans-serif; */
  --font-decorative: "Zen Antique", serif;

  /* スペーシング */
  --section-padding: 0 0;
  --container-width: 1200px;

  /* トランジション */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: var(--dark-text);
  background-color: var(--blue-bg);
  background-image: url("../images/background.webp");
  background-repeat: repeat; /* タイル状に繰り返し配置 */
  background-size: auto; /* 画像の元サイズを維持 */
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   ①ヒーローセクション
   ========================================== */
.hero-section {
  position: relative;
  background: transparent;
}

/* 動画コンテナ */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  max-height: 100vh;
  background: transparent;
  overflow: hidden;
  background-color: var(--blue-bg);
}

/* 背景動画 */
.hero-video {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease-out;
}

.hero-video.show {
  opacity: 1;
}

/* 水滴キャンバス */
.water-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  /* width/heightはJavaScriptで設定（正円を維持するため） */
  width: 100%;
  height: 100%;
}

/* 動画上のオーバーレイコンテンツ */
.hero-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  pointer-events: none;
}

.hero-overlay-content.show {
  animation: fadeInHero 1s ease-out forwards;
  pointer-events: all;
}

/* ロゴ（中央） */
.hero-logo-center {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: opacity 1s ease-out;
}

.hero-logo-center .logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像のアスペクト比を保ちながら領域を埋める */
  animation: logoGlow 3s ease-in-out infinite alternate;
}

/* 縦書きテキスト */
.vertical-text-wrapper {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 1;
}

.vertical-text {
  writing-mode: vertical-rl;
  font-family: var(--font-decorative);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--deep-blue);
  text-shadow:
    0 2px 4px rgba(0, 119, 190, 0.3),
    0 4px 8px rgba(0, 163, 224, 0.2);
  display: inline-block;
  text-orientation: upright;
  white-space: nowrap;
}

.vertical-text .char {
  opacity: 0;
  transform: translateY(-20px);
  display: inline;
  animation: charFadeIn 0.2s ease-out forwards;
}

.vertical-text-wrapper.hide {
  animation: fadeOutText 0.6s ease-out forwards;
}

/* 動画の外（下）のコンテンツ */
.hero-below-content {
  position: relative;
  text-align: center;
  padding: 60px 20px 40px;
  background: rgba(227, 242, 253, 0);
}

/* 配信予定テキスト */
.release-section {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.media-cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 80%;
}

.media-cards-row .media-card {
  width: 100%;
  flex-shrink: 0;
}

/* TGS+メディア横並び */
.release-tgs-media {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.release-tgs-media .release-image {
  flex-shrink: 0;
}

/* 横並び画像の個別サイズ設定 */
.tgs-img-1 {
  width: 100%;
  height: auto;
}

.tgs-img-2 {
  width: 96px;
  height: 102px;
}

.tgs-img-3 {
  width: 100%;
  height: auto;
}

/* メディアポップアップトリガー */
.media-popup-trigger {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.media-popup-trigger:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* メディアモーダルのサイズ */
.modal-content.media-modal-content {
  max-width: 900px;
  width: fit-content;
}

/* メディアモーダル スマホ対応 */
@media (max-width: 768px) {
  .modal-content.media-modal-content {
    max-width: 75%;
    width: 75%;
  }

  .media-group h3 {
    font-size: 0.95rem;
  }

  .media-group li {
    font-size: 0.85rem;
  }
}

/* メディアモーダル内のレイアウト */
.modal-body.media-modal-body {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 24px;
  padding: 20px;
}

.media-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-group h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--accent-cyan);
  padding-bottom: 4px;
}

.media-group ul {
  margin: 0;
  margin-left: 1em;
  padding-left: 1.5em;
  list-style-type: disc;
}

.media-group li {
  padding: 4px 0;
}

.media-group a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.media-group a:hover {
  color: #ff6600;
}

/* TGS2025出展+各種メディア掲載 */
.release-image {
  position: relative;
  width: 100%;
  height: auto;
  min-width: 200px;
  /* max-width: 1000px; */
  object-fit: contain;
  overflow: visible;
  justify-content: center;
  align-items: center;
}

/* メディア掲載カード */
.media-card {
  display: block;
  background: var(--white-bg);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.media-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(
    to top,
    rgba(0, 163, 224, 0.2) 0%,
    rgba(0, 163, 224, 0.1) 100%
  );
  transition: height 0.4s ease;
  pointer-events: none;
  border-radius: 20px;
}

.media-card:hover::before {
  height: 100%;
}

.media-card:hover {
  transform: translateY(-5px);
  border-color: var(--light-blue);
  box-shadow: 0 8px 24px rgba(0, 163, 224, 0.25);
}

.media-card-icon {
  position: absolute;
  bottom: 10%;
  right: 10%;
  transform: translate(0, 0);
  width: 5%;
  min-width: 24px;
  aspect-ratio: 1;
  background: rgba(13, 39, 122, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition-smooth);
  box-shadow: 0 3px 20px rgb(240, 240, 237);
}

.media-card-icon-img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

.media-card:hover .media-card-icon {
  background: rgb(36, 124, 255);
  transform: scale(1.2);
  box-shadow: 0 3px 50px rgb(255, 251, 1);
}

.media-card-image {
  position: relative;
  z-index: 1;
}

.media-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 大見出し画像共通 */
.headline-image {
  position: relative;
  width: 100%;
  height: auto;
  min-width: 200px;
  object-fit: contain;
  overflow: visible;
  justify-content: center;
  align-items: center;
}

@keyframes logoGlow {
  from {
    filter: drop-shadow(0 0 40px rgba(30, 144, 255, 0.7))
      drop-shadow(0 0 80px rgba(0, 206, 209, 0.5));
  }
  to {
    filter: drop-shadow(0 0 60px rgba(30, 144, 255, 0.9))
      drop-shadow(0 0 120px rgba(0, 206, 209, 0.7));
  }
}

.release-info {
  margin: 40px 0;
}

/* プラットフォームアイコン */
.platform-icons,
.platform-icons-section,
.platform-icons-final {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

/* ストアバッジ */
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .store-badge:hover {
  transform: scale(1.1);
} */

/* すべてのストアバッジ内の画像（クラス有無問わず） */
.store-badge img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* 縦長画面用 */
@media (orientation: portrait) {
  .store-badge {
    width: 80%;
    min-width: 100px;
    max-width: 180px;
    height: auto;
  }

  .store-badge img {
    width: 100%;
    height: auto;
  }
}

/* 旧プラットフォームボタンスタイル（互換性のため残す） */
.platform-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--blue-bg);
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.15);
}

.platform-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
  color: var(--blue-bg);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 163, 224, 0.4);
}

.platform-btn .icon {
  font-size: 1.5rem;
}

/* ==========================================
   Xフォローセクション
   ========================================== */
.x-follow-section {
  padding: 10px 0;
  background: rgba(248, 249, 250, 0);
  text-align: center;
}

.x-follow-section-alt {
  background: rgba(227, 242, 253, 0);
}

.x-follow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.x-follow-catchphrase {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-text);
  margin: 0 0 10px;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Xフォローボタン */
.x-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 40px;
  background: #000000;
  border-radius: 50px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* パルスアニメーション */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 4px 30px rgba(0, 0, 0, 0.5),
      0 0 0 8px rgba(0, 0, 0, 0.1);
  }
}

.x-follow-btn {
  animation: pulse 2s ease-in-out infinite;
}

.x-follow-btn:hover {
  background: #1a1a1a;
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  animation: none;
}

.x-logo {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.x-follow-text {
  letter-spacing: 0.05em;
}

/* フッター用の大きなボタン */
.x-follow-btn-large {
  padding: 22px 50px;
  font-size: 1.2rem;
}

.x-follow-btn-large .x-logo {
  width: 28px;
  height: 28px;
}

.x-follow-description {
  margin-top: 15px;
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.6;
}

.x-follow-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 実績セクション */
.achievements-section {
  margin: 40px 0 30px;
  text-align: center;
}

.achievements-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-text);
  margin: 0 0 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.achievement-badge {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 163, 224, 0.2);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.achievement-icon {
  font-size: 2.2rem;
  margin: 0 0 10px;
  line-height: 1;
  opacity: 0.9;
}

.achievement-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark-text);
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* スクロールインジケーター */
/* ==========================================
   ②ゲーム情報セクション
   ========================================== */
.game-info-section {
  padding: 20px 0;
  background: rgba(248, 249, 250, 0);
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-blue),
    transparent
  );
}

.game-info-card {
  background: var(--white-bg);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 40px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.info-label {
  font-weight: 600;
  color: var(--gray-text);
  font-size: 1rem;
}

.info-value {
  font-weight: 700;
  color: var(--dark-text);
  font-size: 1.1rem;
  text-align: right;
}

/* Twitterフィード */
.twitter-feed {
  background: var(--white-bg);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.twitter-placeholder {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tweet-item {
  background: var(--lighter-gray-bg);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid var(--primary-blue);
  transition: var(--transition-smooth);
}

.tweet-item:hover {
  background: var(--light-gray-bg);
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.15);
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tweet-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.tweet-info {
  flex: 1;
}

.tweet-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-text);
}

.tweet-handle {
  font-size: 0.85rem;
  color: var(--gray-text);
}

.tweet-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.tweet-date {
  font-size: 0.8rem;
  color: var(--light-gray-text);
}

/* ==========================================
   ③敵と味方の説明セクション
   ========================================== */
.characters-intro-section {
  padding: var(--section-padding);
  background: rgba(227, 242, 253, 0);
  position: relative;
  overflow: hidden;
}

.characters-intro-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* プレデリア紹介セクション */
.prederia-intro {
  position: relative;
  width: 100%;
}

.doro-background {
  width: 100%;
  height: auto;
  display: block;
}

.prederia-text-overlay {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  text-align: center;
  z-index: 2;
}

.prederia-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.vs-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
}

.character-image-wrapper {
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}

.character-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: var(--transition-smooth);
}

.character-card:hover .character-image {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 24px rgba(0, 163, 224, 0.3));
}

.placeholder-text {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-align: center;
  z-index: 2;
}

.character-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.character-desc {
  font-size: 1.1rem;
  color: var(--gray-text);
}

.vs-symbol {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-blue);
  text-shadow: 0 2px 8px rgba(0, 163, 224, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-text {
  display: block;
  animation: pulse 2s infinite;
}

/* ==========================================
   ④バトルシステム - 3ステップ
   ========================================== */
.battle-system-section {
  padding: var(--section-padding);
  background: rgba(227, 242, 253, 0);
}

.three-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-card {
  background: var(--white-bg);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.step-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--light-blue);
  box-shadow: 0 8px 24px rgba(0, 163, 224, 0.25);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
  color: var(--white-bg);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.3);
}

.step-image-placeholder {
  width: 100%;
  height: auto;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 20px;
  overflow: hidden;
}

/* ゲーム画面画像スタイル */
.step-game-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.step-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.step-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-text);
}

/* ==========================================
   ⑤キャラクター紹介セクション
   ========================================== */
.bacter-intro-section {
  padding: var(--section-padding);
  background: rgba(227, 242, 253, 0);
}

.character-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  align-items: center;
}

.character-item {
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* セルティス（左上） */
.character-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: start;
}

/* フロリオ（右、中央） */
.character-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: center;
  align-self: center;
}

/* リスティア（左下） */
.character-item:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  align-self: end;
}

.char-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.char-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-image-clean {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-item:hover .char-image-clean {
  transform: scale(1.05);
}

.char-cv-text {
  font-size: 1.1rem;
  color: var(--gray-text);
  font-weight: 500;
  text-align: center;
  margin: 0;
}

/* キャラクター詳細モーダル */
.character-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.character-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--white-bg);
  border-radius: 20px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--light-gray-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
  color: var(--dark-text);
}

.modal-close:hover {
  background: var(--primary-blue);
  color: var(--white-bg);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.modal-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  max-width: 100%;
  height: auto;
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-char-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.modal-char-cv {
  font-size: 1.1rem;
  color: var(--gray-text);
  margin-bottom: 15px;
}

.modal-char-model {
  font-size: 1rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 25px;
  padding: 10px 15px;
  background: var(--light-gray-bg);
  border-radius: 10px;
  display: inline-block;
}

.modal-char-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--dark-text);
}

.modal-char-desc h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-char-desc ul {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.modal-char-desc ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
}

.modal-char-desc ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

.modal-char-desc p {
  margin: 10px 0;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.story-intro-text {
  text-align: center;
  font-size: 1.3rem;
  line-height: 2;
  color: var(--gray-text);
  margin-top: 60px;
  padding: 40px;
  background: var(--lighter-gray-bg);
  border-radius: 20px;
  border: 1px solid #e0e0e0;
}

/* ==========================================
   ⑥シナリオセクション
   ========================================== */
.scenario-section {
  padding: var(--section-padding);
  background: rgba(227, 242, 253, 0);
}

/* シナリオギャラリーコンテナ */
.scenario-gallery-container {
  margin: 60px 0;
  overflow: hidden;
  position: relative;
  padding: 100px 0;
}

.scenario-gallery {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1% 0; /* 拡大時のバッファ*/
}

/* シナリオ画像スタイル */
.scenario-image {
  flex-shrink: 0;
  width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  display: block;
}

.scenario-image:hover {
  transform: scale(1.05);
  border-radius: 12px;
}

.scenario-message {
  margin-top: 60px;
}

.character-speech {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.speech-character-img {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-face {
  width: 100%;
  height: auto;
  background: transparent;
  object-fit: contain;
}

.speech-bubble {
  flex: 1;
  background: var(--white-bg);
  padding: 30px;
  border-radius: 20px;
  border: 2px solid var(--light-blue);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 20px solid var(--light-blue);
}

.speech-bubble p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark-text);
}

/* ==========================================
   ⑦バトルの詳細セクション
   ========================================== */
.battle-details-section {
  padding: var(--section-padding);
  background: rgba(227, 242, 253, 0);
  position: relative;
  overflow: hidden;
}

.more-badge {
  text-align: center;
  margin-bottom: 20px;
}

.more-text {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
  color: var(--white-bg);
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  transform: rotate(-5deg);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.3);
}

/* もっと画像 */
.more-image {
  /* 位置調整軸（タイトル幅に対する割合） */
  --position-x: -275%; /* 横位置: 0%=中央, 負=左, 正=右 */
  --position-y: -75%; /* 縦位置: 0%=中央, 負=上, 正=下 */

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(
    calc(-50% + var(--position-x)),
    calc(-50% + var(--position-y))
  );
  width: 120px;
  height: auto;
  border: none;
  background: transparent;
}

.section-main-title-large {
  position: relative;
  text-align: center;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 80px;
  color: var(--dark-text);
}

.battle-explanation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 80px;
  align-items: center;
}

.battle-content {
  display: flex;
  gap: 30px;
  align-items: center;
}

.battle-image-placeholder {
  background: transparent;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.battle-text {
  flex: 1;
}

.battle-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.warning-text {
  color: var(--primary-blue);
  font-weight: 700;
}

.guide-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.guide-char-img {
  width: 120px;
  height: 120px;
}

.navire_nami {
  /* 横軸位置調整 */
  --offset-x: 10%; /* 横方向: 正=右, 負=左 */
  transform: translateX(var(--offset-x));
}

.system-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--white-bg);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 40px;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--light-blue);
  box-shadow: 0 8px 24px rgba(0, 163, 224, 0.25);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.feature-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-text);
  margin-bottom: 25px;
}

.feature-image-placeholder {
  width: 100%;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 水の流れアニメーション */
.water-flow-animation {
  position: relative;
  width: 100vw; /* ビューポート幅いっぱい */
  max-width: none; /* 最大幅制限なし */
  height: 200px;
  margin: 80px 0;
  margin-left: calc(50% - 50vw); /* 中央から画面端まで */
  margin-right: calc(50% - 50vw);
  padding: 0; /* パディングなし */
  overflow: hidden;
  background: linear-gradient(90deg, #b3e5fc 0%, #00a3e0 50%, #0077be 100%);
  border-radius: 0; /* 画面いっぱいなので角丸なし */
}

/* 泡のアニメーション */
.bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.bubble {
  position: absolute;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.3)
  );
  border-radius: 50%;
  animation: bubbleFlow linear infinite;
}

.bubble-1 {
  width: 12px;
  height: 12px;
  top: 20%;
  animation-duration: 6s;
  animation-delay: 0s;
}

.bubble-2 {
  width: 8px;
  height: 8px;
  top: 50%;
  animation-duration: 5s;
  animation-delay: 0.5s;
}

.bubble-3 {
  width: 15px;
  height: 15px;
  top: 70%;
  animation-duration: 7s;
  animation-delay: 1s;
}

.bubble-4 {
  width: 6px;
  height: 6px;
  top: 35%;
  animation-duration: 4.5s;
  animation-delay: 1.5s;
}

.bubble-5 {
  width: 10px;
  height: 10px;
  top: 80%;
  animation-duration: 5.5s;
  animation-delay: 2s;
}

.bubble-6 {
  width: 14px;
  height: 14px;
  top: 15%;
  animation-duration: 6.5s;
  animation-delay: 2.5s;
}

.bubble-7 {
  width: 7px;
  height: 7px;
  top: 60%;
  animation-duration: 4s;
  animation-delay: 3s;
}

.bubble-8 {
  width: 11px;
  height: 11px;
  top: 40%;
  animation-duration: 5s;
  animation-delay: 3.5s;
}

@keyframes bubbleFlow {
  0% {
    left: -20px;
    opacity: 0;
  }
  5% {
    opacity: 0.7;
  }
  95% {
    opacity: 0.7;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* パイプ画像オーバーレイ */
.front-pipe-image-wrapper {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

.front-pipe-image-wrapper.leftback {
  left: 2%;
  transform: translateX(-75%);
  z-index: 2;
}
.front-pipe-image-wrapper.left {
  left: 2%;
  transform: translateX(-75%);
}

.front-pipe-image-wrapper.rightback {
  right: 2%;
  transform: translateX(75%);
  z-index: 2;
}
.front-pipe-image-wrapper.right {
  right: 2%;
  transform: translateX(75%);
}

.front-pipe-image-wrapper img {
  width: 100%;
  height: 100%;
}

.flow-character {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation-play-state: running;
}

.flow-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 先頭キャラクター（nagare4 - 単独先行・蛇行） */
.flow-char-lead {
  width: 140px;
  animation:
    horizontalFlow 7s linear infinite,
    verticalWaveLead 3s ease-in-out infinite;
  animation-play-state: running;
}

/* 追いかけるグループ（一塊・蛇行） */
.flow-char-group {
  width: 180px;
  height: 120px;
  animation:
    horizontalFlow 7s linear infinite 1s,
    verticalWaveGroup 3.5s ease-in-out infinite 1s;
  animation-play-state: running;
}

/* グループコンテナ */
.character-group {
  position: relative;
  width: 100%;
  height: 100%;
}

/* グループ内のキャラクター共通 */
.group-char {
  position: absolute;
  width: 80px;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* nagare1 - 上（三角形の頂点） */
.group-char-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* nagare2 - 左下 */
.group-char-2 {
  bottom: 0;
  left: 0;
}

/* nagare3 - 右下 */
.group-char-3 {
  bottom: 0;
  right: 0;
}

.battle-conclusion {
  text-align: center;
  margin-top: 80px;
}

.conclusion-text {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--dark-text);
  line-height: 1.5;
}

/* ==========================================
   ⑧興味をそそる画像セクション
   ========================================== */
.showcase-section {
  padding: var(--section-padding);
  background: rgba(227, 242, 253, 0);
}

.showcase-gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

.showcase-image-large {
  width: 100%;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.showcase-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   ミニゲームセクション
   ========================================== */
.minigame-section {
  padding: 30px 0;
  background: rgba(227, 242, 253, 0);
}

.minigame-section .container {
  display: flex;
  justify-content: center;
}

.minigame-banner {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2840 100%);
  border-radius: 24px;
  width: 100%;
  max-width: 620px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 119, 190, 0.3);
  margin: 0 auto;
}

.minigame-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(0, 212, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(0, 255, 136, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.minigame-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.minigame-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00d4ff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.minigame-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #00d4ff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.minigame-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 25px;
}

.minigame-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 35px;
  background: linear-gradient(135deg, #00d4ff, #00a3e0);
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.minigame-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.minigame-btn .btn-arrow {
  transition: transform 0.3s ease;
}

.minigame-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.minigame-decoration {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.minigame-char {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 212, 255, 0.5));
  animation: minigameFloat 3s ease-in-out infinite;
}

@keyframes minigameFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ミニゲームバナー レスポンシブ */
@media (max-width: 768px) {
  .minigame-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
  }

  .minigame-title {
    font-size: 1.8rem;
  }

  .minigame-description {
    font-size: 1rem;
  }

  .minigame-char {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .minigame-banner {
    padding: 25px 20px;
  }

  .minigame-title {
    font-size: 1.5rem;
  }

  .minigame-description {
    font-size: 0.95rem;
  }

  .minigame-btn {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .minigame-char {
    width: 100px;
  }
}

/* ==========================================
   ⑨フッターセクション
   ========================================== */
.footer-section {
  padding: 20px 0;
  background: rgba(255, 255, 255, 1);
  border-top: 2px solid var(--light-blue);
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.copyright {
  color: var(--light-gray-text);
  font-size: 0.9rem;
}

/* ==========================================
   アニメーション定義
   ========================================== */
@keyframes fadeInVertical {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes charFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutText {
  from {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
}

@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes flowRight {
  0% {
    left: -100px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: calc(100% + 100px);
    opacity: 0;
  }
}

/* 横移動（左から右へ直線） */
@keyframes horizontalFlow {
  0% {
    left: -300px;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    left: calc(100% + 300px);
    opacity: 0;
  }
}

/* 先頭キャラの上下の蛇行 */
@keyframes verticalWaveLead {
  0%,
  100% {
    transform: translateY(-50%) translateY(0);
  }
  25% {
    transform: translateY(-50%) translateY(-35px);
  }
  50% {
    transform: translateY(-50%) translateY(0);
  }
  75% {
    transform: translateY(-50%) translateY(30px);
  }
}

/* グループの上下の蛇行（少し異なるパターン） */
@keyframes verticalWaveGroup {
  0%,
  100% {
    transform: translateY(-50%) translateY(0);
  }
  30% {
    transform: translateY(-50%) translateY(-25px);
  }
  50% {
    transform: translateY(-50%) translateY(5px);
  }
  80% {
    transform: translateY(-50%) translateY(25px);
  }
}

/* ヒーローセクションのアニメーションクラス */
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-scale {
  opacity: 1;
  transform: scale(1);
}

/* スクロールアニメーション用クラス */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(-100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.scroll-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.scroll-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */
/* PC/デスクトップ（1025px以上） */
@media (min-width: 1025px) {
  .character-list {
    /* gap: 40px; */
    padding: 40px 20px;
  }

  /* .char-image-clean {
    max-width: 450px;
    max-height: 450px;
  } */
}

/* デスクトップ（1025px以上）の最適化 */
@media (min-width: 1025px) {
  .hero-video-container {
    width: 100%;
    height: 100%;
  }

  .hero-video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 1024px) {
  .game-title {
    font-size: 4rem;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .three-steps {
    grid-template-columns: 1fr;
  }

  .character-list {
    padding: 30px 20px;
  }

  .char-cv-text {
    font-size: 1rem;
  }

  .vs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vs-symbol {
    transform: rotate(90deg);
    font-size: 3rem;
    margin: 20px 0;
  }

  .character-card.offset-down {
    margin-top: 0;
  }

  .system-features {
    grid-template-columns: 1fr;
  }

  .battle-explanation {
    grid-template-columns: 1fr;
  }

  .battle-content {
    flex-direction: column;
  }

  /* 実績バッジのタブレット対応 */
  .achievements-title {
    font-size: 0.9rem;
  }

  .achievements-grid {
    gap: 12px;
    max-width: 600px;
  }

  .achievement-badge {
    padding: 16px 10px;
  }

  .achievement-icon {
    font-size: 2rem;
    margin: 0 0 8px;
  }

  .achievement-text {
    font-size: 0.75rem;
  }

  /* タブレットで動画コンテナとコンテンツの調整 */
  .hero-video-container {
    width: 100%;
    height: 100%;
  }

  .hero-video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Xフォローボタンのレスポンシブ */
  .x-follow-catchphrase {
    font-size: 1.5rem;
  }

  .x-follow-btn {
    padding: 16px 35px;
    font-size: 1rem;
  }

  .x-follow-btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .vertical-text {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

  .vertical-text-wrapper {
    top: 20%;
  }

  .hero-video {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    min-width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .section-main-title {
    font-size: 2.5rem;
  }

  .section-main-title-large {
    font-size: 2.5rem;
  }

  .conclusion-text {
    font-size: 2rem;
  }

  .platform-icons,
  .platform-icons-section,
  .platform-icons-final {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    display: flex;
    justify-content: center;
  }

  .badge-image {
    width: 100%;
    height: auto;
  }

  /* 実績バッジのモバイル対応 */
  .achievements-section {
    margin: 30px 0 20px;
  }

  .achievements-title {
    font-size: 0.85rem;
    margin: 0 0 15px;
  }

  .achievements-grid {
    gap: 8px;
    max-width: 100%;
    padding: 0 15px;
  }

  .achievement-badge {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .achievement-icon {
    font-size: 1.6rem;
    margin: 0 0 6px;
  }

  .achievement-text {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  /* Xフォローボタンのモバイル対応 */
  .x-follow-section {
    padding: 0 0;
  }

  .x-follow-catchphrase {
    font-size: 1.3rem;
    line-height: 1.5;
    padding: 0 20px;
  }

  .x-follow-btn {
    padding: 14px 30px;
    font-size: 0.95rem;
    gap: 12px;
  }

  .x-logo {
    width: 20px;
    height: 20px;
  }

  .x-follow-btn-large {
    padding: 16px 35px;
    font-size: 1rem;
  }

  .x-follow-btn-large .x-logo {
    width: 24px;
    height: 24px;
  }

  .platform-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .character-speech {
    flex-direction: row;
    gap: 15px;
    align-items: center;
  }

  .vs-symbol {
    font-size: 2.5rem;
    margin: 15px 0;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .prederia-heading {
    font-size: 1.5rem;
    line-height: 1.7;
  }

  .character-image-wrapper {
    height: 280px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }

  .modal-char-name {
    font-size: 2rem;
  }

  /* もっと画像 - タブレット */
  .more-image {
    width: 100px;
  }
}

/* タブレット・スマホ（767px以下）の調整 */
@media (max-width: 767px) {
  .hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  /* .show クラスによる影響をリセット */
  .hero-video,
  .hero-video.show {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    margin: 0;
    padding: 0;
    transform: none;
    object-fit: contain;
  }

  .hero-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .hero-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 480px) {
  .vertical-text {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
  }

  /* .show クラスによる影響をリセット */
  .hero-video,
  .hero-video.show {
    max-height: 60vh;
  }

  /* もっと画像 - モバイル小 */
  .more-image {
    width: 80px;
  }

  .hero-below-content {
    padding: 40px 20px 0px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .prederia-heading {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .prederia-text-overlay {
    top: 8%;
    width: 85%;
  }

  .character-speech {
    gap: 12px;
  }

  .speech-bubble {
    padding: 15px;
  }

  .speech-bubble p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .vs-symbol {
    font-size: 2rem;
    margin: 10px 0;
  }

  .water-flow-animation {
    width: 100vw;
    max-width: none;
    /* height: 150px; */
    height: auto;
    min-height: 75px;
    max-height: 150px;
    margin: 60px 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    border-radius: 0;
  }

  .flow-char-lead {
    width: 70px;
  }

  .flow-char-group {
    width: 98px;
    height: 70px;
  }

  .group-char {
    position: absolute;
    width: 40px;
    height: auto;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }

  /* nagare1 - 上（三角形の頂点） */
  .group-char-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  /* nagare2 - 左下 */
  .group-char-2 {
    bottom: 0;
    left: 0;
  }

  /* nagare3 - 右下 */
  .group-char-3 {
    bottom: 0;
    right: 0;
  }

  /* シナリオギャラリー - モバイル */
  .scenario-image {
    width: 280px;
    height: auto;
  }

  .character-image-wrapper {
    height: 220px;
  }

  .character-list {
    padding: 20px;
  }

  .char-cv-text {
    font-size: 0.95rem;
  }

  .step-card,
  .feature-card,
  .game-info-card {
    padding: 25px;
  }
}

/* ==========================================
   PC・タブレット用レスポンシブ設定
   ========================================== */
@media (min-width: 768px) {
  /* 水の流れアニメーション - PC/タブレットでも画面幅いっぱい */
  .water-flow-animation {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    border-radius: 0;
  }

  /* ゲーム画面画像 - タブレット */
  .step-game-image {
    max-width: 450px;
  }

  /* シナリオギャラリー - タブレット */
  .scenario-image {
    width: 380px;
    height: auto;
  }

  /* もっと画像 - タブレット（768px以上） */
  .more-image {
    width: 120px;
  }
}

/* PC用（大画面） */
@media (min-width: 1024px) {
  .step-game-image {
    max-width: 600px;
  }

  /* もっと画像 - PC */
  .more-image {
    width: 150px;
  }

  /* シナリオギャラリー - PC */
  .scenario-image {
    width: 450px;
    height: auto;
  }
}

/* ==========================================
   ページTOPへボタン
   ========================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 15px rgba(0, 119, 190, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 119, 190, 0.5);
  background: linear-gradient(135deg, var(--deep-blue), var(--primary-blue));
}

.scroll-top-btn:active {
  transform: translateY(-2px);
}

.scroll-top-arrow {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1;
}

.scroll-top-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .scroll-top-arrow {
    font-size: 1rem;
  }

  .scroll-top-text {
    font-size: 0.55rem;
  }
}
.game-screen-image-wrapper {
  padding-top: 10px;
  padding-bottom: 60px;
  display: flex;
}
.game-screen-image {
  margin: 0 auto;
  min-width: 100%;
  max-width: 800px;
}
