/* 共通設定 */
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;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.4rem; /* サブ見出しサイズ */
  margin-bottom: 15px;
}
h3 {
  font-size: 2rem; /* 第3階層見出し */
  margin-bottom: 10px;
}

p {
  font-size: 1rem; /* 標準本文サイズ */
  margin-bottom: 20px;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  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;
}

/* カラー別スタイル */
.btn.primary {
  background-color: #007bff; /* メインカラー（青） */
  color: #fff;
}

.btn.secondary {
  background-color: #ff8c00; /* アクセントカラー（オレンジ） */
  color: #fff;
}

/* ホバーエフェクト */
.btn:hover {
  background-color: #0056b3; /* 濃い青 */
  /*transform: translateY(-3px); /* 浮き上がるエフェクト */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* シャドウ強調 */
}

.btn.secondary:hover {
  background-color: #cc7300; /* 濃いオレンジ */
}

/* ヘッダー */
.header {
  /*background-color: #007bff; /* ブルー */
  background: linear-gradient(135deg, #66aaff, #0033cc); /* 青と紫のグラデーション */
  color: #f9f9f9;
  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 {
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}
.hero-content {
  position: relative;
  z-index: 3; /* オーバーレイより前面に表示 */
  color: #f9f9f9; /* テキストを白に変更 */
  display: flex;
  flex-direction: column; /* 縦方向に配置 */
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px; /* 項目間の余白を統一 */
  padding: 40px 20px; /* 余白を増加 */
}

.hero-content p {
  margin: 0 50px 20px 50px;
}
.hero-title {
  font-family: 'Noto+Serif+JP', serif; /* 毛筆風フォントを適用 */
  font-size: 7rem; /* サイズ調整 */
  font-weight: 700; /* 太字 */
  color: #fff; /* 色を指定 */
  text-align: center; /* 中央揃え */
}
.hero-buttons .btn {
  display: inline-block;
  padding: 15px 25px;
  margin: 10px;
  border-radius: 5px;
  font-size: 1rem;
}

.hero-buttons .btn.primary {
  background-color: #007bff; /* ブルー */
}

.hero-buttons .btn.secondary {
  background-color: #ff8c00; /* オレンジ */
}

.hero-buttons .btn:hover {
  opacity: 0.9;
}

/* スライドショー */
.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* hero-content の後ろに配置 */
}

.slideshow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* 半透明の黒 */
  z-index: 2; /* スライドより前面に表示 */
  pointer-events: none; /* オーバーレイがクリックを邪魔しないように設定 */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  
  /* アニメーションを追加 */
  animation: slideZoom 10s ease-in-out infinite;
  animation-fill-mode: forwards; /* アニメーション終了状態を維持 */
}

.slide.active {
  opacity: 1;
  animation-play-state: running; /* アニメーションを再開 */
}

/* 非アクティブスライド */
.slide:not(.active) {
  animation-play-state: paused; /* アニメーションを停止 */
}

/* 画像の拡大アニメーション */
@keyframes slideZoom {
  0% {
    transform: scale(1.0); /* 元のサイズ */
  }
  50% {
    transform: scale(1.05); /* 少し拡大 */
  }
  100% {
    transform: scale(1.0); /* 拡大を維持 */
  }
}

/* ナビゲーションボタン */
.slider-control-prev,
.slider-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10; /* ボタンをスライドより前面に設定 */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: auto; /* クリック可能に設定 */
}

.slider-control-prev {
  left: 20px;
}

.slider-control-next {
  right: 20px;
}

.slider-control-prev:hover,
.slider-control-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* 投稿一覧エリア */
#posts {
  scroll-margin-top: 70px; /* ヘッダーの分下げる */
}

.posts {
  background-color: #f1f1f1;
  padding: 60px 20px;
  text-align: center;
}

.posts h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 幅をやや広げる */
  gap: 25px; /* カード間の余白を増加 */
  justify-content: center; /* 中央揃え */
}

.post-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-content {
  margin-top: 15px;
}

.post-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.post-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

/* カテゴリーのスタイル */
.post-categories .category {
  display: inline-block;
  background-color: #28a745; /* グリーン */
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  margin-right: 5px;
}
/* 投稿一覧ページへのボタン */
.post-list-button {
  text-align: center;
  margin-top: 40px;
}

.post-list-button .btn {
  padding: 15px 30px;
  font-size: 1rem;
  background-color: #007bff; /* メインカラー */
  color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.post-list-button .btn:hover {
  background-color: #f3f3f3; 
  color: #0056b3; /* 濃いブルー */
}

/* ビジョンエリア */
#about {
  scroll-margin-top: 70px; /* ヘッダーの分下げる */
}

.vision {
  background: linear-gradient(135deg, #66aaff, #0033cc); /* 青と紫のグラデーション */
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 15px; /* スタイリッシュ感を出すための角丸 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽いシャドウで立体感を追加 */
}

.vision h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.vision-statement {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #f9f9f9;
}

.vision-message {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.vision .btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: bold;
  color: #007bff;
  background-color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.vision .btn:hover {
  background-color: #007bff;
  color: #f3f3f3;
}

/* 活動紹介セクション */
#activities {
  scroll-margin-top: 70px; /* ヘッダーの分下げる */
}

.activities {
  background-color: #fff;
  padding: 60px 20px;
}

.activities h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* 活動紹介エリア: カードの背景に画像を表示 */
.activity-cards .card {
  position: relative;
  background-size: cover; /* 画像をカード全体にカバー */
  background-position: center; /* 画像の中心を表示 */
  background-repeat: no-repeat; /* 画像を繰り返さない */
  color: #fff; /* テキストの色を白に変更 */
  border-radius: 10px; /* 角丸を適用 */
  overflow: hidden; /* 背景画像がカードからはみ出ないように設定 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽いシャドウで立体感を追加 */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.activity-cards .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* 半透明のカバー */
  transition: background-color 0.3s ease-in-out; /* カバーの濃さをアニメーション */
  z-index: 1; /* カバーを背景画像の前面に配置 */
}

.activity-cards .card:hover::before {
  background-color: rgba(0, 0, 0, 0.6); /* ホバー時にカバーを濃くする */
}

.activity-cards .card h3,
.activity-cards .card p {
  position: relative; /* テキストをカバーの上に表示 */
  z-index: 2;
  text-align: center; /* テキストを中央揃え */
}

.activity-cards .card h3{
  color: #f3f3f3;
}

/* リンクボタンのスタイル */
.activity-cards .card a {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.activity-cards .card a:hover {
  background-color: #fff;
  color: #007bff;
  /*transform: translateY(-3px);*/
}

.activity-cards .card:hover {
  /*transform: translateY(-5px); /* ホバー時に少し浮き上がるエフェクト */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* ホバー時のシャドウ強調 */
}

.activity-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px; /* カード間の余白を統一 */
  justify-content: center; /* 中央揃え */
}

.card {
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.card a {
  color: #007bff;
  font-weight: bold;
}

/* 更新情報エリア */
#updates {
  scroll-margin-top: 70px; /* ヘッダーの分下げる */
}

.updates {
  background-color: #fff;
  padding: 40px 20px;
  text-align: left;
}

.updates h2 {
  font-size: 1.8rem;
  color: #333;
  border-left: 5px solid #007bff; /* 青色の左線 */
  padding-left: 10px;
  margin-bottom: 20px;
}

.update-wrapper {
  border-top: 2px solid #ccc; /* 上線 */
  padding-top: 15px;
}

.update-list {
  list-style: none; /* リストのデフォルトスタイルを無効化 */
  padding: 0;
  margin: 0;
}

.update-item {
  display: flex;
  align-items: flex-start; /* 上揃え */
  border-bottom: 1px solid #ccc; /* 下線 */
  padding: 10px 0;
  gap: 20px; /* 日付とタイトルの間に余白を追加 */
}

.update-item:last-child {
  border-bottom: none; /* 最後の要素の下線を削除 */
}

.update-date {
  font-size: 1rem;
  color: #666;
  width: 180px; /* 日付部分の固定幅 */
  flex-shrink: 0; /* 幅を固定 */
  text-align: left; /* 左揃え */
}

.update-title {
  font-size: 1rem;
  color: #007bff; /* 青色 */
  text-decoration: none;
  line-height: 1.5;
  text-align: left; /* 左揃え */
}

.update-title:hover {
  text-decoration: underline;
}

/* 支援セクション */
#support {
  scroll-margin-top: 70px; /* ヘッダーの分下げる */
}

.support {
  background-image: url('../img/99_common/support-background.jpg'); /* 画像パスを指定 */
  background-size: cover; /* 背景画像をエリア全体に拡大 */
  background-position: center; /* 画像を中央に配置 */
  background-repeat: no-repeat; /* 背景画像を繰り返さない */
  padding: 60px 20px; /* セクション全体の余白 */
  text-align: center;
  color: #333; /* テキスト色 */
  position: relative;
}

.support .container {
  position: relative; /* 子要素に適用される背景を制御 */
  z-index: 2; /* 背景より前面に配置 */
  padding: 20px; /* 内側の余白 */
}

.support .container::before {
  content: ''; /* 擬似要素を追加 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* 半透明の白色 */
  z-index: -1; /* 子要素の後ろに配置 */
  border-radius: 10px; /* 四角形の角を丸める（必要に応じて） */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽いシャドウで立体感を追加 */
}

.support h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.support p {
  margin-bottom: 30px;
}

.support-buttons .btn {
  display: inline-block;
  padding: 15px 25px;
  margin: 10px;
  border-radius: 5px;
  font-size: 1rem;
}

.support-buttons .btn.primary {
  background-color: #ff8c00; /* オレンジ */
  color: #fff;
}

.support-buttons .btn.secondary {
  background-color: #007bff; /* ブルー */
  color: #fff;
}

.support-buttons .btn:hover {
  opacity: 0.9;
}

/* フッター */
.footer {
  background: linear-gradient(135deg, #66aaff, #0033cc);
  color: #f9f9f9;
  padding: 20px 0;
  text-align: center;
}
.footer .btn {
  margin-top: 10px; /* ボタンと上部テキストの間に余白を追加 */
  background-color: #6c63ff;
  color: #fff;
  padding: 12px 20px; /* 余白を統一 */
  display: inline-block;
}
.footer .btn:hover {
  background-color: #4b42cc; /* 濃い紫 */
}
/* フッターメニュー */
.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: #f9f9f9; /* テキストカラー */
  font-size: 0.9rem; /* フォントサイズ */
}

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

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

/* タブレット対応（最大幅1024px） */
@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; /* メニューが開いたときに表示 */
  }

/* メディアクエリ: 768px以下（タブレット・スマートフォン対応） */
@media (max-width: 768px) {
  
  h1 {
    font-size: 2rem; /* モバイルでの見出しサイズ */
  }
  h2 {
    font-size: 1.8rem;
  }
  p {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  /* ヘッダー */
  .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 {
    padding: 50px 10px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-buttons .btn {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  .slide {
    background-attachment: scroll; /* モバイルでは通常の背景スクロールに戻す */
  }
  
  /* お知らせ */
  .post-cards {
    grid-template-columns: 1fr; /* モバイルでは1列 */
    gap: 15px; /* 間隔を縮小 */
  }
  
  /* ビジョンセクション */
  .vision {
    padding: 40px 10px;
  }

  .vision h2 {
    font-size: 1.5rem;
  }

  .vision p {
    font-size: 1rem;
  }

  /* 活動紹介セクション */
  .activities {
    padding: 40px 10px;
  }

  .activity-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .update-date {
    font-size: 0.8rem;
    color: #666;
    width: 100px; /* 日付部分の固定幅 */
  }
  
  /* 支援セクション */
  .support {
    padding: 40px 10px;
  }

  .support h2 {
    font-size: 1.5rem;
  }

  .support p {
    font-size: 1rem;
  }

  .support-buttons .btn {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  
  /* メディアクエリ: フッターメニューを非表示 */
  .footer-menu {
    display: none; /* フッターメニューを非表示 */
  }
  
}

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

  .nav a {
    font-size: 0.9rem;
  }

  /* ヒーローセクション */
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-buttons .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  /* ビジョンセクション */
  .vision h2 {
    font-size: 1.2rem;
  }

  .vision p {
    font-size: 0.9rem;
  }

  /* 活動紹介セクション */
  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  /* 支援セクション */
  .support h2 {
    font-size: 1.2rem;
  }

  .support p {
    font-size: 0.9rem;
  }

  .support-buttons .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  /* フッター */
  .footer p {
    font-size: 0.8rem;
  }
}
