body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  /* font-size: 0.9rem; 全体のフォントサイズを調整 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ecf0f1 !important; /* ライム色の背景 */
  color: #2c3e50;
  width: 100% !important;       /* 100%に変更してスクロールバー問題を解決 */
 max-width: none !important;       /*最大幅の制限を解除 */
  box-sizing: border-box !important;
  padding: 0 !important;
  overflow-x: auto !important; /* 横スクロールを許可 */
}

/* サポーターユーザーの場合、Google AdSense自動広告を非表示 */
body.supporter-user ins.adsbygoogle:not([data-ad-slot]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}


/* body *:not(.direct-body-text) {
  font-size: 16px !important; /* 子要素のフォントサイズを強制的に指定 */


/* ガイドナビゲーションのテキストを確実に表示 */
.guide-nav-next,
.guide-nav-back,
a.guide-nav-next,
a.guide-nav-back {
  font-size: 16px !important;
  display: inline-block !important;
  color: white !important;
}

/* 謎のHeader「-→」問題を解決するための強力なリセットルール */
/* ガイドナビゲーション要素以外の疑似要素をリセット */
*:not(.menu-link):not(.hierarchy-connector):not(.guide-nav-next):not(.guide-nav-back)::before, 
*:not(.menu-link):not(.hierarchy-connector):not(.guide-nav-next):not(.guide-nav-back)::after {
  content: "" !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

/* 必要な擬似要素のみを個別に許可する場合は、以下のように明示的に上書きする */
.menu-link::before {
  content: '' !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  width: 4px !important;
  background-color: #3498db !important;
  transition: width 0.3s ease !important;
  z-index: 1 !important;
}

.hierarchy-connector::before {
  content: "" !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  left: -10px !important;
  top: 50% !important;
  width: 15px !important;
  height: 1px !important;
  background-color: #28a745 !important;
  transform: translateY(-50%) !important;
}

.hierarchy-connector::after {
  content: "" !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  left: -10px !important;
  top: -50% !important;
  width: 1px !important;
  height: 100% !important;
  background-color: #28a745 !important;
}

/* ガイドナビゲーションボタンの疑似要素は使用しない - JSXテキストのみ表示 */

/* リストマーカーのリセット */
ul, ol, li {
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* すべての要素のデフォルトマーカーをリセット */
* {
  box-sizing: border-box;
  list-style: none !important;
  list-style-type: none !important;
}

:root {
  --main-header-height: 68px; /* PCヘッダーの高さを少し小さく調整 */
  --mobile-main-header-height: 50px; /* スマホヘッダーの高さを少し小さく調整 */
  --content-padding-top-when-header-hidden: 10px; /* ヘッダー非表示時の余白を小さく調整 */
}

#root {
  width: 100% !important;
  max-width: none !important;
  overflow-x: auto !important; /* 横スクロールを許可 */
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* グローバルスタイル */
* {
  box-sizing: border-box;
}

a {
  color: #3498db;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
}

button {
  cursor: pointer;
}

/* コンテナの共通スタイル */
.container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 15px; /* パディングを縮小 */
  max-width: 100%; /* 最大幅制限 */
  box-sizing: border-box; /* ボックスサイズ計算の明確化 */
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* ゲームボードのレスポンシブスタイルを追加 */
/*
.board-container {
  width: 75vw !important; 
  max-width: 1200px !important; 
  box-sizing: border-box !important; 
  margin: 20px auto !important; 
}
*/

/* ゲームレイアウトのリセット用スタイルを追加 */
.game-zone {
  box-sizing: border-box;
  position: absolute;
}



/* メディアクエリを追加して、小さい画面での調整 */
/*
@media screen and (max-width: 768px) {
  .board-container {
    width: 95vw !important; 
  }
}
*/

/* ヘッダーの高さ分のパディングを確保 */
.page-content-wrapper {
  padding-top: 90px !important;
  padding-top: var(--header-height, 90px) !important; /* フォールバック値も指定 */
}

/* タブレット向けのスタイル */
@media screen and (max-width: 1024px) {
  body {
    font-size: 0.85rem; /* フォントサイズを少し小さくする */
  }

  .container {
    padding: 0 12px; /* コンテナの左右パディングを調整 */
  }

  /* .page-content-wrapper の padding-top はCSS変数で管理するため、ここの指定は削除またはコメントアウト
  .page-content-wrapper {
    padding-top: 70px !important; 
  }
  */
}

/* スマートフォン向けのスタイル */
@media screen and (max-width: 768px) {
  body {
    font-size: 0.8rem; /* さらにフォントサイズを小さくする */
  }

  .container {
    padding: 0 8px; /* コンテナの左右パディングをさらに調整 */
  }

  /* .page-content-wrapper の padding-top はCSS変数で管理するため、ここの指定は削除またはコメントアウト
  .page-content-wrapper {
    padding-top: 60px !important; 
  }
  */
}

/* React Router Link コンポーネントのテキスト表示を確実にする */
/* a.guide-nav-next,
a.guide-nav-back,
.guide-nav-next,
.guide-nav-back {
  font-size: 16px !important;
  color: white !important;
  text-decoration: none !important;
  display: inline-block !important;
  padding: 12px 24px !important;
  background: #667eea !important;
  border-radius: 5px !important;
  font-weight: bold !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-indent: 0px !important;
  opacity: 1 !important;
  visibility: visible !important;
  min-width: 120px !important;
  text-align: center !important;
}

a.guide-nav-next:hover,
a.guide-nav-back:hover {
  background: #5a6fd8 !important;
  color: white !important;
}

/* React Router Link コンポーネントのテキスト表示の特別対策 */
/* Link要素内のテキストノードを確実に表示 */
/* a[class*="guide-nav"],
.guide-navigation a,
.guide-nav-next *,
.guide-nav-back * {
  font-size: 16px !important;
  color: inherit !important;
  display: inline !important;
} */

/* Linkコンポーネントのテキストノード対策 */
.guide-nav-next::first-letter,
.guide-nav-back::first-letter {
  font-size: 16px !important;
  color: white !important;
}

/* デバッグ用のバックアップテキストは削除済み */

/* バックアップテキスト表示は不要 - JSXテキストが正常に表示されるため */

/* 疑似要素の有効化は不要 - JSXテキストが正常に表示されるため */

/* 疑似要素のテキスト表示は削除 - JSXテキストが正常に表示されるため */

/* 疑似要素でのテキスト表示は削除 - JSXテキストを直接表示 */

/* フォールバックテキストは削除 - 実際のJSXテキストを表示 */

.app-header {
  background-color: #1f2f50; /* 濃いネイビーで信頼感＋存在感 */
  padding: 0; /* 上下パディングは各行で調整 */
  color: white;
  display: flex;
  flex-direction: column; /* 子要素を縦に並べる */
  /* justify-content: center; は各行で調整 */
  box-sizing: border-box;
  z-index: 999;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25); /* 影を少し濃く、大きく */
  width: 100%; /* 幅を明示的に指定 */
  position: fixed; /* 追加 */
  top: 0; /* 追加 */
  left: 0; /* 追加 */
  right: 0; /* 追加 */
  box-sizing: border-box; /* ボックスサイズ計算の明確化 */
  transition: transform 0.3s ease-in-out; /* スムーズなアニメーション */
  /* height: var(--main-header-height); */ /* 高さは子要素の合計によって自然に決まるように削除 */
}

.header-top-row {
  padding: 10px 15px; /* パディングを縮小 */
  display: flex;
  align-items: center;
  justify-content: space-between; /* ロゴとハンバーガーボタンを両端に配置 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* 区切り線を少し濃く */
  box-sizing: border-box; /* ボックスサイズ計算の明確化 */
  /* height: var(--header-height); */ /* PC時の高さはapp-headerのflex-direction:column と子の高さで決まる想定 */
}

.header-logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-logo-container:hover {
  opacity: 0.8;
}

.header-logo-image {
  height: 40px; /* ヘッダーの高さに合わせて調整 */
  width: auto;
  max-width: 200px; /* 最大幅を制限 */
  object-fit: contain;
}

/* スマホサイズでのロゴ調整 */
@media screen and (max-width: 480px) {
  .header-logo-image {
    height: 40px; /* 元のサイズを維持 */
    max-width: 200px; /* 元のサイズを維持 */
  }
  
  .header-logo-text-fallback {
    font-size: 2rem; /* 元のサイズを維持 */
  }
}

.header-logo-text-fallback {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

/* 旧クラス名との互換性維持（削除予定） */
.header-logo-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-logo-title:hover {
  color: #aacbff;
}

.hamburger-button {
  display: none; /* PCでは非表示 */
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem; /* アイコンサイズ */
  cursor: pointer;
  padding: 8px 12px; /* クリック領域確保 */
  z-index: 1001; /* メニューより確実に上に */
  position: relative;
  transition: all 0.2s ease; /* スムーズなアニメーション */
  border-radius: 4px; /* 角丸でタッチしやすく */
  min-width: 44px; /* アクセシビリティのための最小サイズ */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.header-nav {
  display: flex;
  gap: 10px; /* ボタン間のgapを調整 */
  align-items: center;
  justify-content: center; /* ナビゲーションボタンを中央揃え */
  font-size: 1rem; /* ナビゲーションのフォントサイズを小さく */
  font-weight: 600;
  padding: 8px 15px; /* 下段のパディングを縮小 */
  box-sizing: border-box; /* ボックスサイズ計算の明確化 */
}

.header-link, .dropbtn {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px; /* パディングを調整 */
  border-radius: 5px; /* 角丸を少し大きく */
  transition: background-color 0.2s ease, color 0.2s ease;
  background-color: transparent; /* 通常時は背景透明 */
  border: none; /* dropbtn のため */
  cursor: pointer; /* dropbtn のため */
  font-size: inherit; /* .header-nav のフォントサイズを継承 */
  font-weight: inherit; /* .header-nav のフォントウェイトを継承 */
  /* ホバー時のシェードは .header-link:hover, .dropbtn:hover で共通化 */
}

.header-link:hover,
.dropbtn:hover {
  background-color: rgba(255, 255, 255, 0.2); /* 全てのボタンに適用されるシェード */
  color: #ffffff;
}

.dropdown {
  position: relative;
  padding-bottom: 10px; /* ドロップダウンを閉じにくくするためのホバー領域確保 */
  margin-bottom: -10px; /* 親要素のレイアウトに影響しないようにネガティブマージン */
  /* display: inline-block; は .header-nav が flex なので不要 */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 220px; /* ドロップダウンの幅も少し広げる */
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 1000;
  /* top: calc(100% + 8px); padding-bottom を考慮して調整 */
  top: 100%; /* .dropdown の padding-bottom の終点から開始 */
  left: 50%; /* 中央から配置開始 */
  transform: translateX(-50%); /* 中央揃え */
  overflow: hidden;
}

.dropdown-content .dropdown-item {
  color: #1f2f50;
  padding: 14px 24px; /* ドロップダウンアイテムのパディングも大きく */
  text-decoration: none;
  display: block;
  font-size: 1rem; /* ドロップダウン内のフォントサイズ (約16px) */
  font-weight: 500;
  white-space: nowrap; /* ドロップダウンアイテムが改行されないように */
}

.dropdown-content .dropdown-item:hover {
  background-color: #e8f0fe; /* ホバー背景を少し調整 */
  color: #1f2f50;
}

.dropdown:hover .dropdown-content {
  display: block;
}



/* --- モバイル表示 (ハンバーガーメニュー有効時) --- */
@media screen and (max-width: 768px) {
  .app-header {
    /* height: var(--mobile-main-header-height); */ /* 高さは子要素の合計によって自然に決まるように削除 */
  }

  .header-top-row {
     height: var(--mobile-main-header-height); /* スマホ時の高さを固定 */
     border-bottom: none; /* ハンバーガーメニュー展開時に線が重ならないように */
  }
  
  .header-logo-title {
    font-size: 2rem; /* 元のサイズを維持 */
  }

  .hamburger-button {
    display: flex !important; /* スマホでは確実に表示 */
    align-items: center;
    justify-content: center;
  }

  .header-nav { /* PC表示時のスタイルをここで一旦リセットまたは調整 */
    /* display: flex; */ /* .mobile-nav.open で flex になる */
    /* gap: 10px; */
    /* align-items: center; */
    /* justify-content: center; */
    /* font-size: 1rem; */
    /* font-weight: 600; */
    /* padding: 8px 20px; */
  }

  .header-nav.mobile-nav {
    display: none; /* 通常は非表示 */
    flex-direction: column;
    width: 100%;
    background-color: rgba(31, 47, 80, 0.95); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 背景にブラー効果 */
    -webkit-backdrop-filter: blur(10px); /* Safari対応 */
    position: fixed; /* absolute から fixed に変更 */
    top: var(--mobile-main-header-height); /* ヘッダーの下から開始 */
    left: 0;
    right: 0; /* 右端も固定 */
    max-height: calc(100vh - var(--mobile-main-header-height)); /* 最大高さに変更 */
    padding: 10px 0; /* 上下にパディングを追加してコンテンツを中央寄せ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    z-index: 1000; 
    gap: 0;
    overflow-y: auto; /* メニュー内容が多い場合のスクロールを有効化 */
    -webkit-overflow-scrolling: touch; /* iOS でのスムーズスクロール */
    justify-content: flex-start; /* メニュー項目を上から配置 */
  }

  .header-nav.mobile-nav.open {
    display: flex; /* 開いたら表示 */
  }

  .header-nav.mobile-nav .header-link,
  .header-nav.mobile-nav .dropbtn {
    width: 100%;
    text-align: left;
    padding: 14px 20px; /* タッチターゲットを調整 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 0; 
    font-size: 1.1rem; /* モバイルメニュー内のフォントサイズを少し大きく */
    font-weight: 500;
    min-height: 48px; /* アクセシビリティのための最小高さ */
    display: flex;
    align-items: center;
    margin: 0; /* マージンをリセット */
  }
  
  .header-nav.mobile-nav .header-link:first-child {
    margin-top: 0; /* 最初の項目の上マージンを削除 */
  }
  .header-nav.mobile-nav .header-link:hover,
  .header-nav.mobile-nav .dropbtn:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .header-nav.mobile-nav .dropdown {
    width: 100%;
    margin-bottom: 0; 
    padding-bottom: 0; 
  }
  .header-nav.mobile-nav .dropdown .dropbtn {
     /* .dropbtn共通スタイルでOK */
  }

  .header-nav.mobile-nav .dropdown-content {
    position: static; 
    display: block; 
    background-color: transparent; 
    box-shadow: none;
    min-width: 0;
    min-width: initial;
    transform: none;
    overflow: visible;
    border-radius: 0;
    padding-left: 20px; /* ドロップダウンアイテムをインデント */
  }
  
  .header-nav.mobile-nav .dropdown-content .dropdown-item {
    padding: 14px 20px; 
    color: #e0e0e0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    min-height: 44px; /* より大きなタッチターゲット */
    display: flex;
    align-items: center;
  }
  .header-nav.mobile-nav .dropdown-content .dropdown-item:last-child {
    border-bottom: none;
  }
  .header-nav.mobile-nav .dropdown-content .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  /* 既存の @media screen and (max-width: 1024px) ブロックは不要になるか、768pxより大きいタブレット用として残すか検討 */
  /* 今回は768pxでハンバーガーメニューを導入するため、1024pxの個別スタイルは一旦コメントアウトまたは削除を検討 */

  /* 既存の @media screen and (max-width: 480px) ブロックも、768pxのハンバーガーメニューで吸収されるか確認 */
  /* 必要であれば、さらに小さい画面用の微調整として残す */
  

}

/* 既存の1024pxや480pxのメディアクエリを削除またはコメントアウト */
/*
@media screen and (max-width: 1024px) {
  .app-header {
    --header-height: 70px; 
  }
}
@media screen and (max-width: 480px) {
  .header-top-row {
    padding: 8px 15px; 
  }
  .header-logo-title {
    font-size: 1.6rem; 
  }
  .header-nav {
    font-size: 0.85rem; 
    padding: 5px 10px; 
  }
  .header-link, .dropbtn {
    padding: 5px 6px; 
  }
}
*/

/* 縦持ち（ポートレート）モードでの追加調整 */
@media screen and (max-width: 768px) and (orientation: portrait) {
  .header-nav.mobile-nav {
    /* 縦持ちでは高さに余裕があるため、より大きなタッチターゲットを確保 */
    padding: 15px 0;
  }
  
  .header-nav.mobile-nav .header-link,
  .header-nav.mobile-nav .dropbtn {
    padding: 16px 20px; /* 縦持ちでは大きなタッチターゲット */
    min-height: 52px;
    font-size: 1.15rem; /* フォントサイズを少し大きく */
  }
  
  .header-nav.mobile-nav .dropdown-content .dropdown-item {
    padding: 16px 20px;
    min-height: 48px;
    font-size: 1.05rem;
  }
}

/* 横持ち（ランドスケープ）モードでの調整 */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .header-nav.mobile-nav {
    /* 横持ちでは高さが限られるため、よりコンパクトに */
    padding: 5px 0;
    max-height: calc(100vh - var(--mobile-main-header-height) - 10px); /* 少し余裕を持たせる */
  }
  
  .header-nav.mobile-nav .header-link,
  .header-nav.mobile-nav .dropbtn {
    padding: 12px 20px; /* 横持ちではコンパクトに */
    min-height: 44px;
    font-size: 1rem;
  }
  
  .header-nav.mobile-nav .dropdown-content .dropdown-item {
    padding: 12px 20px;
    min-height: 40px;
    font-size: 0.95rem;
  }
}

/* 非常に小さな画面（480px以下）での微調整 */
@media screen and (max-width: 480px) {
  .header-nav.mobile-nav .header-link,
  .header-nav.mobile-nav .dropbtn {
    padding: 14px 16px; /* 左右のパディングを少し減らす */
    font-size: 1.05rem;
  }
  
  .header-nav.mobile-nav .dropdown-content {
    padding-left: 16px; /* インデントを調整 */
  }
  
  .header-nav.mobile-nav .dropdown-content .dropdown-item {
    padding: 14px 16px;
  }
}

/* スマホ表示時にヘッダーの帯部分を隠し、ハンバーガーメニューのみ表示するスタイル */
.app-header.mobile-header-hidden-band {
  background-color: transparent !important; /* 背景を強制的に透明に */
  box-shadow: none !important; /* 影も強制的に消す */
  /* ヘッダー自体の高さは維持されるが、背景とロゴが見えなくなる */
}

.app-header.mobile-header-hidden-band .header-logo-title {
  display: none !important; /* ロゴを強制的に非表示に */
}

.app-header.mobile-header-hidden-band .hamburger-button {
  color: #1f2f50 !important; /* ヘッダー帯非表示時は濃い色に */
}

@media screen and (max-width: 768px) {
  /* ... existing code ... */
  /* mobile-header-hidden-band が適用された時のハンバーガーメニューの位置調整 */
  .app-header.mobile-header-hidden-band .header-top-row {
    justify-content: flex-end; /* ハンバーガーメニューを右寄せ */
    border-bottom: none; /* 帯がないので下線も不要 */
  }

  .app-header.mobile-header-hidden-band.menu-open .header-top-row {
    /* メニューオープン時は通常通り (ロゴ表示など、必要なら元に戻す) */
    /* 今回はロゴは常に非表示のまま */
  }

  /* ハンバーガーメニューが開いたときに、ナビゲーション背景は元々 .mobile-nav.open で設定されているので、*/
  /* ここで特別なことをする必要はなさそう */

  /* ... existing code ... */
}

/* ヘッダーを隠すスタイル */
.app-header.header-hidden {
  transform: translateY(-100%); /* ヘッダーを上に隠す */
}

/* ヘッダーが隠れている時のページコンテンツ調整 */
.app-header.header-hidden ~ * .page-content-wrapper,
.app-header.header-hidden ~ * .desktop-header-visible-container,
.app-header.header-hidden ~ * .mobile-header-hidden-container {
  padding-top: 15px !important;
  padding-top: var(--content-padding-top-when-header-hidden, 15px) !important;
  transition: padding-top 0.3s ease-in-out;
}

/* ヘッダーが表示されている時のページコンテンツ調整 */
.app-header:not(.header-hidden) ~ * .page-content-wrapper,
.app-header:not(.header-hidden) ~ * .desktop-header-visible-container {
  padding-top: 88px !important;
  padding-top: var(--main-header-height, 88px) !important;
  transition: padding-top 0.3s ease-in-out;
}

.app-header:not(.header-hidden) ~ * .mobile-header-hidden-container {
  padding-top: 60px !important;
  padding-top: var(--mobile-main-header-height, 60px) !important;
  transition: padding-top 0.3s ease-in-out;
}

/* 三角矢印のトグルボタン */
.header-toggle-button {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 1000;
  background-color: #1f2f50;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  font-size: 1.2rem;
}

.header-toggle-button:hover {
  background-color: #2a4068;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-toggle-button.header-visible {
  /* ヘッダーが表示されている時の位置 */
  top: 10px;
}

.header-toggle-button.header-hidden {
  /* ヘッダーが隠されている時の位置 */
  top: 10px;
  background-color: rgba(31, 47, 80, 0.9);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

/* モバイル表示時のトグルボタン調整 */
@media screen and (max-width: 768px) {
  .header-toggle-button {
    width: 35px;
    height: 35px;
    right: 15px;
    font-size: 1rem;
  }
  
  .header-toggle-button.header-visible {
    top: 12px; /* ヘッダーの高さに合わせて調整 */
  }
  
  .header-toggle-button.header-hidden {
    top: 8px; /* ヘッダーが隠れている時は上部に */
  }
}

/* bodyクラスベースのページコンテンツ調整 */
body.header-hidden .page-content-wrapper,
body.header-hidden .desktop-header-visible-container,
body.header-hidden .mobile-header-hidden-container,
body.header-hidden .game-or-replay-page-container {
  padding-top: 15px !important;
  padding-top: var(--content-padding-top-when-header-hidden, 15px) !important;
  transition: padding-top 0.3s ease-in-out;
}

body.header-visible .page-content-wrapper,
body.header-visible .desktop-header-visible-container {
  padding-top: 88px !important;
  padding-top: var(--main-header-height, 88px) !important;
  transition: padding-top 0.3s ease-in-out;
}

body.header-visible .mobile-header-hidden-container {
  padding-top: 60px !important;
  padding-top: var(--mobile-main-header-height, 60px) !important;
  transition: padding-top 0.3s ease-in-out;
}

/* ヘッダーが隠れている時のページコンテンツ調整 */

.app-footer {
  background-color: #f8f9fa; /* フッターの背景色 */
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #e7e7e7; /* 上境界線 */
  font-size: 0.9em;
  color: #333;
  width: 100%;
  /* position: fixed; */ /* 常に画面下部に固定する場合 */
  /* bottom: 0; */
  /* left: 0; */
}

.footer-content {
  max-width: 1200px; /* コンテンツの最大幅 */
  margin: 0 auto; /* 中央寄せ */
  padding: 0 20px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-link {
  color: #007bff; /* リンクの色 */
  text-decoration: none;
  margin: 0 10px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copyright p {
  margin: 0;
  color: #6c757d; /* コピーライトの文字色 */
}

.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 15px 20px; /* パディング縮小 */
  margin-top: 50px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* 横スクロール防止 */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 30px;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h4 {
  color: #3498db;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-section p {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #bdc3c7;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: #3498db;
}

/* フッターロゴスタイル */
.footer-logo-container {
  margin-bottom: 15px;
}

.footer-logo-image {
  height: 50px; /* フッターロゴの高さ */
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer-logo-text-fallback {
  margin: 0;
  color: #ecf0f1;
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #95a5a6;
  font-size: 0.9rem;
}

/* フッターロゴスタイル */
.footer-logo-container {
  margin-bottom: 15px;
}

.footer-logo-image {
  height: 50px; /* フッターロゴの高さ */
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer-logo-text-fallback {
  margin: 0;
  color: #ecf0f1;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 12px 20px; /* パディング更に縮小 */
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-logo-image {
    height: 35px; /* スマホではより小さく */
    max-width: 150px;
  }
  
  .footer-logo-text-fallback {
    font-size: 1rem; /* スマホではテキストロゴも小さく */
  }
} 
.side-ad-layout-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 画面全体の高さを確保 */
  width: 100%;
  overflow-x: hidden; /* 横スクロール防止 */
}

.main-content-area-with-ads {
  display: flex;
  flex: none; /* 高さ制約を解除してコンテンツに合わせて伸縮 */
  width: 100%;
  max-width: 100vw; /* ビューポート幅を超えないように */
  margin: 0 auto; /* 中央寄せ */
  box-sizing: border-box;
  overflow-x: hidden; /* 横スクロール防止 */
  align-items: flex-start; /* 上揃えで配置 */
}

/* モバイル時は単一カラムに変更 */
@media (max-width: 1024px) {
  .replay-page-layout .main-content-area-with-ads {
    display: block;
    width: 100vw;
    max-width: 100vw;
  }
}

/* 広告ラベル（Google Ads規約遵守） */
.ad-label {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-bottom: 5px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* モバイル広告コンテナ（適切な間隔でコンテンツと分離） */
.mobile-ad-container {
  display: none; /* デフォルトは非表示 */
  padding: 0;
  box-sizing: border-box;
  margin: 10px auto;
  width: 100%;
  max-width: 320px; /* モバイル広告の標準幅 */
  overflow: hidden;
}

.mobile-top-ad {
  margin-top: 15px;
  border-bottom: 1px solid #f0f0f0; /* コンテンツとの視覚的分離 */
  padding-bottom: 15px;
}

.mobile-bottom-ad {
  margin-bottom: 15px;
  border-top: 1px solid #f0f0f0; /* コンテンツとの視覚的分離 */
  padding-top: 15px;
}

.sidebar {
  width: 170px; /* サイドバーの幅 (広告幅 + パディングなど) */
  flex-shrink: 0; /* 幅が縮まないようにする */
  padding: 10px; /* パディング縮小 */
  /* padding-top: var(--main-header-height); PC表示時のみに移動 */
  box-sizing: border-box;
  /* ヘッダーと重ならないように、サイドバー自体にもpadding-topを追加するか、
     中の.ad-placeholder-sidebarのマージンを調整することを検討 */
}

.left-sidebar {
  /* order: 1; 左側に配置 */
}

.right-sidebar {
  /* order: 3; 右側に配置 */
}

/* 通常のmain-contentスタイル */
.main-content {
  flex: 1 1; /* サイドバーとのバランスを取り、水平方向の残りスペースを取る */
  padding: 10px; /* パディング縮小 */
  /* padding-top: var(--main-header-height); PC表示時のみに移動 */
  box-sizing: border-box;
  overflow-x: hidden; /* 横スクロール防止 */
  min-height: 400px; /* 最小高さを確保してレイアウト安定性を向上 */
}

/* サポーターユーザー向け広告なしレイアウト */
.main-content-no-ads {
  max-width: 1200px; /* 最大幅を制限 */
  margin: 0 auto; /* 中央寄せ */
  padding: 20px; /* より広いパディング */
}

/* PC表示時のスタイル (ヘッダー分のpadding-topを確保) */
@media screen and (min-width: 769px) {
  /* AdLayoutコンポーネント内だが、ゲームページ以外（board-containerクラスを持たない）にのみ適用 */
  .side-ad-layout-container .main-content:not(.board-container) {
    padding-top: calc(var(--main-header-height) + 10px);
  }

  .ad-placeholder-sidebar {
    margin: calc(var(--main-header-height) + 20px) auto 0 auto;
  }

  /* リプレイページ専用: NoHeaderSideAdLayout使用時はヘッダー分のスペースを除去 */
  .replay-page-layout .main-content {
    padding-top: 10px;
  }

  .replay-page-layout .ad-placeholder-sidebar {
    margin: 20px auto 0 auto;
  }

  /* PC表示時はトップ広告のみ非表示、ボトム広告は表示 */
  .mobile-top-ad {
    display: none;
  }

  /* PC表示時のボトム広告スタイル（728×90） */
  .mobile-bottom-ad {
    display: block;
    max-width: 728px;
    min-height: 100px;
    height: auto;
    margin: 20px auto;
    padding: 0;
  }
}

.ad-placeholder-sidebar {
  width: 150px; /* 広告幅を縮小 */
  height: 600px; /* AdSenseの広告ユニットの高さに合わせる */
  /* margin: 0 auto; */ /* PC表示時のメディアクエリ内で詳細に指定するため、ここはコメントアウト */
  margin-left: auto; /* デフォルトは左右auto */
  margin-right: auto;
  margin-bottom: 0; /* 下マージンは0を維持 */
  border-radius: 4px; /* 軽く角丸で自然な見た目 */
  overflow: hidden; /* コンテンツがはみ出ないように */
  /* ヘッダーに隠れないように、必要であればマージントップを追加 */
  /* margin-top: 15px; /* 例 */
  /* デバッグ用のスタイルは AdSenseAd コンポーネント側で適用 */
  /* サイドバーのpadding-topで調整したので、ここは基本0でOK */
}

/* App.css や index.css にある page-content-wrapper のスタイルを参考に調整が必要な場合があります */
/* 例えば、page-content-wrapper が持つ padding や max-width などを main-content に適用するか、
   あるいは page-content-wrapper の代わりに main-content を使うようにページ側を修正するかなど。 */

/* レスポンシブ対応: スマホサイズ (HEADER_BREAKPOINT 以下) でサイドバーを非表示、モバイル広告を表示 */
@media (max-width: 768px) { /* HEADER_BREAKPOINT */
  .sidebar {
    display: none; /* サイドバー広告を非表示 */
  }
  .main-content-area-with-ads {
    padding: 0; /* サイドバーがない場合はパディング不要に */
    width: 100%;
  }
  /* AdLayoutコンポーネント内のmain-contentのみに適用（ゲームページを除外） */
  .side-ad-layout-container .main-content {
    max-width: none; /* サイドバーがないので最大幅を解除 */
    padding: 8px; /* モバイル時はパディングを縮小 */
    width: 100%;
  }
  
  /* リプレイページのモバイル対応 */
  .replay-page-layout .main-content {
    max-width: none;
    width: 100%;
  }
  
  /* モバイル表示時はモバイル広告を表示 */
  .mobile-ad-container {
    display: block;
    padding: 0 8px; /* パディング更に縮小 */
  }
  
  /* モバイル時の広告ラベル */
  .ad-label {
    font-size: 10px;
  }
}

/* タブレット対応: 中間サイズでの最適化 */
@media (min-width: 769px) and (max-width: 1024px) {
  /* リプレイページではタブレット・横持ちスマホでもサイドバーを隠し、メインを全幅に */
  .replay-page-layout .sidebar {
    display: none;
  }
  .replay-page-layout .main-content-area-with-ads {
    padding: 0;
    width: 100%;
  }
  .replay-page-layout .main-content {
    width: 100%;
    max-width: none;
    padding: 10px;
  }
}

/* 中画面対応 */
@media (min-width: 1025px) and (max-width: 1399px) {
  .sidebar {
    width: 160px;
    padding: 10px;
  }
  .ad-placeholder-sidebar {
    width: 140px;
  }
  /* AdLayoutコンポーネント内のmain-contentのみに適用（ゲームページを除外） */
  .side-ad-layout-container .main-content {
    padding: 12px;
  }
}

/* 大画面対応: より大きなサイドバー広告 */
@media (min-width: 1400px) {
  .sidebar {
    width: 180px;
    padding: 15px;
  }
  .ad-placeholder-sidebar {
    width: 150px;
    height: 600px;
  }
  /* AdLayoutコンポーネント内のmain-contentのみに適用（ゲームページを除外） */
  .side-ad-layout-container .main-content {
    padding: 15px;
  }
}



/* Google Ads規約遵守のための追加スタイル */
.mobile-ad-container ins.adsbygoogle {
  border-radius: 4px; /* 自然な見た目 */
}

/* リプレイページ専用の強制スタイル - main-contentを画面全幅に */
@media (max-width: 1024px) {
  .replay-page-layout .sidebar {
    display: none;
  }
  
  .replay-page-layout .main-content {
    width: 100vw;
    max-width: 100vw;
    padding: 10px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .replay-page-layout .main-content {
    width: 100vw;
    max-width: 100vw;
    padding: 5px;
    margin: 0;
  }
}

.ad-placeholder-sidebar ins.adsbygoogle {
  border-radius: 4px; /* 自然な見た目 */
}

/* デバッグ用: 広告エリアを可視化 */
.ad-placeholder-sidebar:empty::after {
  content: "サイドバー広告読み込み中...";
  display: block;
  text-align: center;
  color: #999;
  font-size: 12px;
  padding: 20px;
  background-color: #f5f5f5;
  border: 1px dashed #ccc;
}

.mobile-ad-container ins.adsbygoogle:empty::after {
  content: "モバイル広告読み込み中...";
  display: block;
  text-align: center;
  color: #999;
  font-size: 12px;
  padding: 20px;
  background-color: #f5f5f5;
  border: 1px dashed #ccc;
} 
.side-ad-layout-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 画面全体の高さを確保 */
}

.main-content-area-with-ads {
  display: flex;
  flex-grow: 1; /* HeaderとFooter以外の残りのスペースを全て取る */
  width: 100%;
  max-width: 1600px; /* 全体の最大幅。必要に応じて調整 */
  margin: 0 auto; /* 中央寄せ */
  box-sizing: border-box;
}

.sidebar {
  width: 180px; /* デフォルト: 160×600用 */
  flex-shrink: 0; /* 幅が縮まないようにする */
  padding: 15px;
  box-sizing: border-box;
  /* 高さ制限を解除して全ての広告を表示 */
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* 広い画面では300×250用にサイドバーを拡張 */
@media screen and (min-width: 1400px) {
  .sidebar {
    width: 330px; /* 300px (広告幅) + 30px (パディング) */
  }
}

.left-sidebar {
  /* order: 1; 左側に配置 */
}

.right-sidebar {
  /* order: 3; 右側に配置 */
}

.main-content {
  flex-grow: 1; /* 残りのスペースを全て取る */
  /* order: 2; 中央に配置 */
  padding: 15px;
  /* padding-top: var(--main-header-height); PC表示時のみに移動 */
  box-sizing: border-box;
  overflow-x: hidden; /* メインコンテンツが横にはみ出ないように */
  min-height: 0; /* flex-grow使用時の高さ問題を解決 */
}

/* PC表示時のスタイル (ヘッダー分のpadding-topを確保) */
@media screen and (min-width: 769px) { /* HEADER_BREAKPOINT (768px) + 1px */
  .sidebar {
    /* padding-top: var(--main-header-height); */ /* 一旦コメントアウト */
  }
  .main-content {
    padding-top: var(--main-header-height);
  }
  .ad-placeholder-sidebar:first-child { /* 最初の広告のみヘッダー分のマージン */
    margin-top: calc(var(--main-header-height) + 40px) !important;
  }
  .ad-placeholder-sidebar:not(:first-child) {
    margin-top: 0 !important; /* 2番目以降はマージントップなし */
  }
}

.ad-placeholder-sidebar {
  width: 160px; /* デフォルト: 160×600 */
  height: auto;
  min-height: 600px;
  margin-left: auto; /* 左右センタリング */
  margin-right: auto;
  margin-bottom: 40px; /* 広告間の適切なスペース（Google Ads要件） */
  position: relative;
}

/* 広い画面では300×250用に調整 */
@media screen and (min-width: 1400px) {
  .ad-placeholder-sidebar {
    width: 300px;
    min-height: 250px;
    margin-bottom: 30px; /* レクタングル広告用のマージン */
  }
}

.ad-label {
  color: #666;
  font-size: 12px;
  font-family: Arial, sans-serif;
  margin-bottom: 5px;
  text-align: center;
}

/* App.css や index.css にある page-content-wrapper のスタイルを参考に調整が必要な場合があります */
/* 例えば、page-content-wrapper が持つ padding や max-width などを main-content に適用するか、
   あるいは page-content-wrapper の代わりに main-content を使うようにページ側を修正するかなど。 */

/* モバイル広告コンテナ */
.mobile-ad-container {
  display: none; /* デフォルトは非表示 */
  padding: 0;
  box-sizing: border-box;
  margin: 10px auto;
  width: 100%;
  max-width: 320px;
  overflow: hidden;
}

.mobile-bottom-ad {
  margin-bottom: 15px;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

/* PC表示時のボトム広告スタイル（728×90） */
/* Homeページでは使わないため非表示に */
@media screen and (min-width: 769px) {
  .mobile-bottom-ad {
    display: none; /* PCでは非表示 */
  }
}

/* レスポンシブ対応: スマホサイズ (HEADER_BREAKPOINT 以下) でサイドバーを非表示 */
@media (max-width: 768px) { /* 1024px から 768px (HEADER_BREAKPOINT) に変更 */
  .sidebar {
    display: none;
  }
  .main-content-area-with-ads {
    padding: 0; /* サイドバーがない場合はパディング不要に */
  }
  .main-content {
    max-width: none; /* サイドバーがないので最大幅を解除 */
    /* スマホ表示時は main-content の padding-top は App.css で管理される想定 */
    /* もし SideAdLayout がスマホでも使われ、かつ padding-top をここで制御したい場合は以下を有効化 */
    /* padding-top: var(--content-padding-top-when-header-hidden); */
  }

  /* モバイル表示時はボトム広告を表示 */
  .mobile-ad-container {
    display: block;
    padding: 0 8px;
  }
} 
/* src/pages/LoginPage.css */

.login-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f0f2f5; /* 明るめの背景色 */
  font-family: 'Roboto', sans-serif;
  padding: 20px;
  box-sizing: border-box;
}

.login-form-container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px; /* フォームの最大幅 */
  animation: fadeIn 0.5s ease-out;
  text-align: center; /* ロゴを中央揃えにするために追加 */
}

.form-logo {
  max-width: 250px; /* ロゴの最大幅を拡大 */
  height: auto;
  margin-bottom: 0px; /* ロゴとタイトルの間のマージン */
}

/* スマホサイズでのログインページロゴ調整 */
@media screen and (max-width: 768px) {
  .form-logo {
    max-width: 180px; /* タブレットサイズで少し小さく */
  }
}

@media screen and (max-width: 480px) {
  .form-logo {
    max-width: 150px; /* スマホサイズでさらに小さく */
  }
  
  .login-form-container {
    padding: 30px 20px; /* スマホでパディング調整 */
    margin: 10px;
  }
  
  .form-title {
    font-size: 1.6rem; /* スマホでタイトルサイズ調整 */
  }
}

.form-title {
  color: #1d2129; /* やや濃いめのテキストカラー */
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: center;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #dddfe2;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #3498db; /* フォーカス時のアクセントカラー */
  outline: none;
}

.form-button {
  width: 100%;
  padding: 12px 15px;
  background-color: #3498db; /* プライマリーカラー */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.form-button:hover {
  background-color: #2980b9; /* ホバー時のプライマリーカラー（少し濃く） */
}

.form-button:disabled {
  background-color: #a0c4e2; /* 無効時の色 */
  cursor: not-allowed;
}

.error-message {
  color: #e74c3c; /* エラーメッセージの色 */
  background-color: #fdeded;
  border: 1px solid #e74c3c;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 0.9rem;
}

.success-message {
  color: #2ecc71; /* 成功メッセージの色 */
  background-color: #eafaf1;
  border: 1px solid #2ecc71;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 0.9rem;
}

.form-switch-link {
  text-align: center;
  margin-top: 20px;
}

.form-switch-link button {
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95rem;
  padding: 5px;
}

.form-switch-link button:hover {
  color: #2980b9;
}

.resend-email-section {
  margin-top: 15px;
  padding: 15px;
  background-color: #fdf6e3; /* 注意を促す背景色 */
  border: 1px solid #f1c40f;
  border-radius: 6px;
  text-align: center;
}

.resend-email-section p {
  margin-bottom: 10px;
  color: #c09853; /* テキストカラー */
  font-size: 0.9rem;
}

.resend-email-button {
  padding: 8px 12px;
  background-color: #f1c40f; /* ボタンカラー */
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.resend-email-button:hover {
  background-color: #e6b800;
}

.resend-email-button:disabled {
  background-color: #f9e79f;
  cursor: not-allowed;
}

hr.form-divider {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid #e0e0e0;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブデザイン */
@media (max-width: 600px) {
  .login-form-container {
    margin: 20px;
    padding: 30px;
  }

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

/* パスワードリセット関連のスタイル */
.form-sub-actions {
  margin-top: 15px;
  text-align: right; /* リンクを右寄せにする場合 */
}

.password-reset-link {
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  padding: 5px;
}

.password-reset-link:hover {
  color: #2980b9;
}

.form-info-text {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
  text-align: left;
}

/* 利用規約同意セクション */
.terms-agreement-section {
  display: flex;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.terms-agreement-section input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

.terms-agreement-section label {
  color: #555;
  cursor: pointer;
}

.terms-agreement-section .form-link {
  color: #3498db;
  text-decoration: underline;
}

.terms-agreement-section .form-link:hover {
  color: #2980b9;
}

/* フッターリンク */
.form-footer-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.9rem;
}

.form-footer-links .form-link {
  color: #555;
  text-decoration: none;
  margin: 0 10px;
}

.form-footer-links .form-link:hover {
  text-decoration: underline;
  color: #3498db;
}

.footer-link-separator {
  color: #ccc;
} 
/* LogoutButton.css */
.logout-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-align: center;
}

.logout-btn:hover {
  background-color: #c0392b;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.logout-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
  .logout-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}
/* Home.css - TCGSim Homeページのスタイル */

.home-container {
  max-width: 900px;
  margin: 10px auto;
  padding: 10px 30px;
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease;
}

/* ホームページロゴセクション */
.home-logo-section {
  text-align: center;
  padding: 20px 0 10px; /* 余白を縮小 */
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 10px; /* 余白を縮小 */
}

.home-logo-image {
  height: 120px; /* ホームページでは大きめに */
  width: auto;
  max-width: 400px;
  object-fit: contain;
  margin-bottom: 8px; /* 余白を縮小 */
  animation: logoFadeIn 1s ease;
}

/* スマホサイズでのホームロゴ調整 */
@media screen and (max-width: 768px) {
  .home-logo-image {
    height: 80px; /* タブレットサイズで中程度に */
    max-width: 280px;
  }
  
  .home-logo-text-fallback {
    font-size: 2.2rem; /* タブレットサイズでテキストロゴも調整 */
  }
}

@media screen and (max-width: 480px) {
  .home-logo-image {
    height: 60px; /* スマホサイズでさらに小さく */
    max-width: 200px;
  }
  
  .home-logo-text-fallback {
    font-size: 1.8rem; /* スマホサイズでテキストロゴをさらに小さく */
  }
  
  .home-logo-section {
    padding: 15px 0 8px; /* スマホでパディングをさらに縮小 */
    margin-bottom: 8px;
  }
}

.home-logo-text-fallback {
  color: #2c3e50;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-align: center;
  animation: logoFadeIn 1s ease;
}

.home-tagline {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.5px;
}

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

.home-title {
  color: #2c3e50;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  text-align: center;
  border-bottom: 3px solid #3498db;
  padding-bottom: 15px;
  letter-spacing: 0.5px;
}

.home-nav {
  margin-top: 40px;
}

.menu-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 25px;
  gap: 25px;
}

.menu-item {
  margin-bottom: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-link {
  display: block;
  text-decoration: none;
  color: #2c3e50;
  background-color: white;
  padding: 24px;
  font-size: 1.0rem;
  font-weight: 500;
  border-radius: 10px;
  border-left: 5px solid #3498db;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #3498db;
  transition: width 0.3s ease;
  z-index: 1;
}

.menu-link:hover {
  background-color: #e9f5fe;
  border-left-width: 10px;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
  transform: scale(1.02);
}

.logout-button {
  margin-top: 40px;
  text-align: center;
}

/* ホームページ広告セクション */
.home-ads-section {
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.home-ads-section .ad-label {
  color: #666;
  font-size: 12px;
  font-family: Arial, sans-serif;
  margin-bottom: 10px;
}

/* PC表示: 300×250を2つ横並び */
.home-ads-container-pc {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* モバイル表示: 320×50を1つ */
.home-ads-container-mobile {
  display: flex;
  justify-content: center;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .menu-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .home-title {
    font-size: 2.2rem;
  }
  
  .home-container {
    padding: 20px 20px;
    margin: 5px 15px;
  }
}

@media (max-width: 600px) {
  .menu-list {
    grid-template-columns: 1fr;
  }
  
  .menu-link {
    padding: 18px;
    font-size: 1.1rem;
  }
  
  .home-title {
    font-size: 2rem;
  }
}

/* コミュニティセクション */
.community-section {
  margin: 30px 0;
  padding: 25px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.community-title {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.community-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 25px;
}

.community-link {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.community-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: white;
}

.community-link.discord:hover {
  background: linear-gradient(135deg, #5865f2, #4c5fd5);
  border-color: #5865f2;
}

.community-link.twitter:hover {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
  border-color: #1da1f2;
}

.community-link.youtube:hover {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  border-color: #ff0000;
}

.community-link.developer-note:hover {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  border-color: #9b59b6;
}

.community-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: rgba(52, 152, 219, 0.1);
  transition: all 0.3s ease;
}

.community-link:hover .community-icon {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.community-icon svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.community-info h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.community-info p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.community-link:hover .community-info p {
  opacity: 0.9;
}

.welcome-message {
  background: linear-gradient(135deg, #e8f5e8, #d4f1d4);
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.welcome-message p {
  margin: 0;
  color: #2e7d32;
  font-size: 0.95rem;
  line-height: 1.6;
}

.welcome-message strong {
  color: #1b5e20;
}

/* コミュニティセクションのレスポンシブ対応 */
@media (max-width: 768px) {
  .community-section {
    margin: 20px 0;
    padding: 20px;
  }
  
  .community-title {
    font-size: 1.3rem;
  }
  
  .community-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .community-link {
    padding: 12px;
  }
  
  .community-icon {
    width: 35px;
    height: 35px;
    margin-right: 12px;
  }
  
  .community-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .welcome-message {
    padding: 15px;
  }
  
  .welcome-message p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .community-section {
    margin: 15px 0;
    padding: 15px;
  }
  
  .community-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .community-links {
    gap: 10px;
  }
  
  .community-link {
    padding: 10px;
    flex-direction: column;
    text-align: center;
  }
  
  .community-icon {
    margin-right: 0;
    margin-bottom: 8px;
    width: 30px;
    height: 30px;
  }
  
  .community-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .community-info h3 {
    font-size: 0.9rem;
  }
  
  .community-info p {
    font-size: 0.8rem;
  }
  
  .welcome-message {
    padding: 12px;
  }
  
  .welcome-message p {
    font-size: 0.85rem;
  }
} 
