/* 共通設定 */
body {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.8;
  background-color: #f9f9f9;
  color: #333;
}

/* 見出しのフォントスタイル */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  color: #404040;
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  margin-bottom: 20px; /* 各段落の間隔 */
  line-height: 1.8; /* 行間を広げる */
}

section {
  padding: 80px 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.container {
  width: 90%;
  margin: 0 auto;
}

/* ボタンの統一スタイル */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: none;
  border-radius: 5px; /* 統一された角丸 */
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none; /* リンク下線を削除 */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: #ff8c00;
  color: #fff;
}

.btn:hover {
  background-color: #ff4500;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px); /* 少し浮き上がる効果 */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* 影を強調 */
}

/* ヘッダー */
.header {
  /*background-color: #007bff; /* ブルー */
  background: linear-gradient(135deg, #66aaff, #0033cc); /* 青と紫のグラデーション */
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .logo {
  font-size: 1.8rem;
  font-weight: bold;
}
/* ハンバーガーメニューのスタイル */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1100;
}

.menu-icon {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  top: 8px;
}

/* ハンバーガーメニュー開閉時のアニメーション */
.menu-toggle.active .menu-icon {
  background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* ナビゲーションのレスポンシブ対応 */
.nav {
  display: flex;
  justify-content: center; /* 水平中央寄せ */
  align-items: center; /* 垂直方向の中央寄せ */
  gap: 20px;
  transition: transform 0.3s ease;

}

.nav a {
  margin-left: 20px;
  color: #fff;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav a.cta {
  background-color: #ff8c00; /* オレンジ */
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
}

.nav a:hover {
  color: #6c63ff;
}

/* ヒーローエリア */
.hero {
  background: url('../img/08_donate/header-bg.png') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  max-width: 100%;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  display: inline-block; /* ハイライトをテキストにフィットさせる */
  background-color: rgba(0, 0, 0, 0.3); /* グレイがかった白背景 */
  color: #ffffff; /* テキスト色 */
  padding: 5px 10px; /* 内側余白 */
  border-radius: 8px; /* 角を丸める */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ソフトな影 */
}

.hero p {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.3); /* グレイがかった白背景 */
  font-size: 1.2em;
  color: #ffffff; /* テキスト色 */
  padding: 10px 20px;
  border-radius: 8px; /* 角を丸める */
  margin-top: 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ソフトな影 */
  line-height: 1.8;
}

.hero .cta-button {
  display: inline-block;
  background-color: #ff8c00;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero .cta-button:hover {
  background-color: #ff4500;
}

/* 支援の理由セクション */
#why-support {
  background-color: #f9f9f9; /* 背景色を控えめにしてコンテンツを際立たせる */
  padding: 60px 20px;
  text-align: center;
}

#why-support h2 {
  font-size: 2.5rem;
  color: #0033cc;
  margin-bottom: 40px;
}

.support-message {
  margin: 30px auto;
  padding: 40px 20px; /* 内部余白を増やす */
  background-color: #fff; /* 白背景 */
  border-radius: 12px; /* 丸みをつける */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
  max-width: 1200px; /* セクションの最大幅を設定 */
}

.support-message p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.support-message .highlight-text {
  color: #ff4500; /* アクセントカラーで強調 */
  font-weight: bold;
}

.support-message strong {
  display: block;
  font-size: 1.3rem;
  color: #0033cc;
  margin-top: 10px;
}

.flex {
  display: flex;
  justify-content: space-around; /* カード間のスペースを均等に */
  gap: 20px;
  margin-top: 30px; /* テキストとの間隔 */
}

.flex-item.card {
  background-color: #f9f9f9; /* カードを薄いグレーに */
  border-radius: 8px; /* カードの角を丸める */
  padding: 20px; /* カード内余白 */
  text-align: center; /* 中央揃え */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽い影 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flex-item.card:hover {
  transform: translateY(-5px); /* ホバーで浮き上がる */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* アイコンスタイル */
.reason-icon {
  width: 100px; /* アイコンサイズ */
  height: 100px;
  margin-bottom: 15px;
}

.flex-item.card h3 {
  font-size: 1.5rem;
  color: #ff8c00; /* アクセントカラー */
  margin-bottom: 10px;
  margin-top: 0;

}

.flex-item.card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}


.highlight {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.cta-button {
  font-size: 1.5rem; /* 大きなボタン */
  padding: 15px 40px; /* 視覚的にクリックしやすく */
  background-color: #ff8c00;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background: #ff4500;
}

.flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.flex img {
  max-width: 100%;
  border-radius: 8px;
}

.flex-item {
  flex: 1;
  min-width: 250px;
}

/* 個人支援エリア */
#personal-support {
  scroll-margin-top: -400px; /* ヘッダーの分下げる */
  padding: 60px 20px;
  background-color: #e6f0ff;
  text-align: center;
}

#personal-support h2 {
  font-size: 2.5rem;
  color: #0033cc;
  margin-bottom: 20px;
}

.personal-support .flex {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin: 30px auto;
  flex-wrap: wrap;
}

.personal-support .flex-item {
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 320px;
}

.personal-support .flex-item img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.support-img {
  width: 300px; /* アイコンサイズ */
  height: 200px;
  margin-bottom: 15px;
}

/* 振込口座情報のスタイル */
.bank-info {
  background-color: #f9f9f9; /* 背景色を淡いグレーに */
  border: 1px solid #ddd; /* 薄いボーダー */
  padding: 20px; /* 内側余白 */
  margin: 0 auto; /* 左右中央に表示 */
  border-radius: 8px; /* 角を丸く */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 軽い影 */
  max-width: 600px;
}

.bank-info h3 {
  font-size: 1.5rem; /* 見出しサイズ */
  color: #333; /* テキストカラー */
  margin-bottom: 15px; /* 見出し下の余白 */
  text-align: center; /* 中央揃え */
}

.bank-info ul {
  list-style: none; /* リストスタイルを削除 */
  padding: 0; /* パディングを削除 */
  margin: 0; /* マージンを削除 */
}

.bank-info li {
  font-size: 1rem; /* テキストサイズ */
  margin-bottom: 10px; /* 各行の間隔 */
  color: #555; /* テキストカラーをやや淡く */
  text-align: left; /* 左揃え */
}

.bank-info li strong {
  color: #333; /* 強調部分のカラー */
}

/* 寄付ボタン */
.donation-options h2{
  font-size: 1.5rem !important;
}

.donation-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2rem;
  border: 2px solid #004080; /* 枠線 */
  border-radius: 8px; /* 丸み */
  background-color: #e6f0ff; /* 非選択時の背景色 */
  color: #004080; /* テキスト色 */
  cursor: pointer;
  margin: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.donation-btn.selected {
  background-color: #0080ff; /* 選択時の背景色 */
  color: white; /* 選択時のテキスト色 */
}

.donation-options {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 30px auto;
  text-align: left;
}

.donation-type, .donation-amount {
  margin-bottom: 20px;
}

#custom-amount {
  margin-top: 10px;
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button.btn {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #ff8c00;
  color: white;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.btn:hover {
  background-color: #ff4500;
}

/* 決済ページへのボタンを無効化 
#proceed-donation {
  pointer-events: none; /* クリック操作を無効化 
  opacity: 0.5; /* 見た目を薄く 
  cursor: not-allowed; /* 禁止マークのカーソル 
} */

/* 協賛支援エリア */
.sponsorship {
  background: url('../img/08_donate/sponsor-bg-dsk.jpg') no-repeat center center/cover;
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
  max-width: none;
}

.sponsorship h2 {
  display: inline-block; /* ハイライトをテキストにフィットさせる */
  background-color: rgba(255, 255, 255, 0.5); /* 白がかった白背景 */
  font-size: 2.5rem;
  color: #0033cc;
  margin-bottom: 20px;
}

.sponsorship p {
  display: inline-block; /* ハイライトをテキストにフィットさせる */
  background-color: rgba(255, 255, 255, 0.5); /* 白がかった白背景 */
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

.sponsorship-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.sponsorship-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsorship-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.sponsorship-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

p.cta-caption {
  font-size: 0.8rem;
  color: #444;
  margin-top: 40px;
  margin-bottom: 10px;
}

.cta-button {
  font-size: 1.2rem;
  padding: 12px 30px;
  background-color: #ff8c00;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-top: 0;
}

.cta-button:hover {
  background-color: #ff4500;
}


/* フッター */
.footer {
  background: linear-gradient(135deg, #66aaff, #0033cc);
  padding: 20px 0;
  text-align: center;
}

/* フッターメニュー */
.footer-menu {
  margin-bottom: 10px; /* メニューとクレジットの間に余白 */
}

.footer-nav {
  list-style: none; /* デフォルトのリストスタイルを削除 */
  padding: 0;
  margin: 0;
  display: flex; /* 横並びに配置 */
  justify-content: center; /* 中央揃え */
  gap: 15px; /* 各リンク間の間隔 */
}

.footer-nav li {
  display: inline; /* 各項目をインラインに */
}

.footer-nav li + li::before {
  content: '|';
  margin: 0 10px;
  color: #ccc;
}

.footer-nav a {
  text-decoration: none; /* 下線を削除 */
  color: #fff; /* テキストカラー */
  font-size: 0.9rem; /* フォントサイズ */
}

.footer-nav a:hover {
  text-decoration: underline; /* ホバー時に下線を表示 */
}

/* フッタークレジット */
.footer-credits {
  margin-top: 10px;
  font-size: 0.8rem; /* フォントサイズを小さく */
  color: #ccc; /* グレーのテキスト */
  line-height: 1.5; /* 行間を調整 */
}

/* Responsive Design */
@media (max-width: 1024px) {
  
  /* ハンバーガーメニューのオーバーレイ */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒背景 */
    z-index: 999; /* メニューの背後に表示 */
    display: none; /* 初期状態では非表示 */
  }
  
  .nav.open + .nav-overlay {
    display: block; /* メニューが開いたときに表示 */
  }
  
}

@media (max-width: 768px) {
  
  .cards {
    flex-direction: column; /* 縦に並べる */
    gap: 20px;
  }

  .cta-button {
    font-size: 1.2rem; /* ボタンサイズを調整 */
    padding: 15px;
  }
  
  /* ヘッダー */
  .header .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    background-color: #007bff; /* ブルー */
    padding: 50px 20px;
    transform: translateX(100%);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    justify-content: center; /* 縦スクロールのときでも中央に配置 */
  }
  
  .nav.open {
    transform: translateX(0);
  }
  
  .nav a {
    color: #fff;
    font-size: 1.2rem;
    margin: 10px 0;
    text-align: center; /* テキストを中央寄せ */
  }

  .nav a.cta {
    align-self: center;
    margin-top: 10px;
  }

  .menu-toggle {
    display: block;
  }
  
  .hero .cta-button {
    margin-top: 15px;
  }
  
  /* 支援の理由セクション */
  #why-support .flex {
    flex-direction: column;
  }
  
  #personal-support {
  scroll-margin-top: -800px; /* ヘッダーの分下げる */
  }
  
  .sponsorship {
    background: url('../img/08_donate/sponsor-bg-res.jpg') no-repeat center center/cover;
  }
  
  .sponsorship h2{
    font-size: 2rem;
  }
  
  /* メディアクエリ: フッターメニューを非表示 */
  .footer-menu {
    display: none; /* フッターメニューを非表示 */
  }

}

/* メディアクエリ: 480px以下（スマートフォン対応） */
@media (max-width: 480px) {
  /* ヘッダー */
  .header .logo {
    font-size: 1.5rem;
  }
  
  .nav a {
    font-size: 0.9rem;
  }
  
  /* フッター */
  .footer p {
    font-size: 0.8rem;
  }
}
