/* 一番上の余白を消す */
html {
  margin-top: 0 !important;
}

/* 共通設定 */
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: 20px 20px 0 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;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #ff4500;
  transform: translateY(-2px); /* ホバー時にわずかに浮き上がる */
  
}

/* ヘッダー */
.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/11_activities-club/hero.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}
.hero .content {
  display: inline-block;
  text-align: center; /* テキストを中央揃え */
}
.hero h1, .hero p {
  display: inline; /* テキスト幅に背景をフィットさせる */
  background-color: rgba(0, 0, 0, 0.3); /* 半透明の薄いグレー */
  padding: 5px 10px; /* 文字の周りの余白 */
  border-radius: 5px; /* 角を丸くする */
  line-height: 1.5; /* 行間を調整 */
}
.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  color: white; /* 見出しの文字色 */
}
.hero p {
  font-size: 1.5rem;
  color: white; /* 段落の文字色 */
  margin-top: 10px;
}

/* お問い合わせボタン */
.hero .cta {
  margin-top: 20px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.hero .cta p {
  font-size: 1rem;
}

.hero .cta a {
  color: #ffeb3b; /* 強調色（黄色） */
  text-decoration: underline; /* 下線付きでリンク感を出す */
  font-weight: bold;
  transition: color 0.3s ease;
}

.hero .cta a:hover {
  color: #ff8c00; /* ホバー時のリンク色（オレンジ） */
}

/* aboutセクション */
#about {
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.7), rgba(38, 198, 218, 0.7)), 
              url('../img/11_activities-club/vision-background.jpg') no-repeat center center/cover;
  color: white;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  max-width: none;
}

#about .content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px; /* 要素間の余白を追加 */
}

#about .text, 
#about .image {
  flex: 1; /* 要素の比率を等しく設定 */
  min-width: 300px; /* レスポンシブ時の最小幅 */
  text-align: left;
}

/* テキスト部分のスタイル */
#about .text {
  opacity: 0; /* アニメーション前の状態 */
  transform: translateY(50px); /* 初期位置 */
  transition: all 0.8s ease-out; /* アニメーション */
}

#about .text.animate-vision {
  opacity: 1; /* 表示状態 */
  transform: translateY(0); /* 元の位置に移動 */
}

#about .text h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffeb3b; /* 強調カラー */
}

#about .text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

#about .text p span {
  color: #ffeb3b; /* 強調するキーワードの色 */
  font-weight: bold;
}

/* 画像部分のスタイル */
#about .image {
  text-align: center;
}

#about .image img {
  max-width: 90%; /* 画像の幅をレスポンシブに調整 */
  height: auto;
  border-radius: 10px; /* 柔らかい印象の角丸 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 立体感 */
  animation: fadeIn 1.5s ease-in-out; /* アニメーションを画像にも適用 */
}

/* アニメーション（画像用） */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95); /* 少し小さい状態から */
  }
  to {
    opacity: 1;
    transform: scale(1); /* 元の大きさへ */
  }
}

/* staffセクション */
#staff {
  padding: 60px 20px;
  background: #f4f4f9;
  text-align: center;
}

#staff h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

#staff p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

/* スタッフカード */
.staff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* 4列を自動調整 */
  gap: 20px; /* カード間の余白 */
  justify-content: center;
}

.staff-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 初期状態: カードが非表示で下に隠れている状態 */
.staff-card {
  opacity: 0;
  transform: translateY(50px); /* 下から浮かび上がる */
  transition: all 0.8s ease-out; /* アニメーションの滑らかさ */
}

/* 表示状態: カードが画面内に入ったとき */
.staff-card.show {
  opacity: 1;
  transform: translateY(0); /* 元の位置に移動 */
}

.staff-card:hover {
  /*transform: translateY(-5px);*/
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.staff-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.staff-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
}

.staff-card p.position{
  font-size: 0.9rem !important;
  color: #333;
  margin-top: 0;
  margin-bottom: 0 !important;
}

.staff-card .toggle-details {
  background-color: #00796b;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.staff-card .toggle-details:hover {
  background-color: #004d40;
}

/* 詳細部分 */
.staff-card .details {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6; /* 行間を広げて読みやすく */
  color: #444;
  background-color: #f9f9f9; /* 背景に薄いグレーを追加 */
  border: 1px solid #ddd; /* 境界線で区切り */
  border-radius: 5px; /* 柔らかいデザイン */
  padding: 15px; /* 内側の余白を追加 */
  text-align: left; /* 左揃えで整列 */
  display: none; /* 初期は非表示 */
  transition: max-height 0.3s ease-out;
}

.staff-card .details.open {
  display: block; /* 詳細を表示 */
}

.staff-card .details p {
  margin: 10px 0; /* 各段落の上下余白 */
  font-size: 0.95rem; /* 段落のフォントサイズを微調整 */
  color: #333; /* テキスト色を濃くして読みやすく */
}

.staff-card .details span {
  font-weight: bold; /* 強調部分を太字に */
  color: #00796b; /* アクセントカラー */
}

/* 組織図 */
.org-chart {
  margin: 60px auto 0 auto;
  max-width: 800px;
  text-align: center;
}

.org-chart h3 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

/* 組織図の初期状態 */
.org-chart img {
  width: 100%;
  max-width: 800px;
  opacity: 0;
  transform: scale(0.8); /* 初期は少し小さくする */
  transition: all 0.8s ease-out; /* アニメーションの滑らかさ */
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 組織図の表示状態: ズームイン */
.org-chart img.show {
  opacity: 1;
  transform: scale(1); /* ズームインして通常サイズに */
}


/* 活動内容セクション */
#activities {
  padding: 80px 20px;
  background-color: #f4f4f9;
}

#activities h2 {
  text-align: center;
  font-size: 2.8rem;
  color: #333;
  margin-bottom: 60px;
  font-family: 'Roboto', sans-serif;
}

/* アクティビティ行 */
.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
}

.activity-row.reverse {
  flex-direction: row-reverse; /* 画像とテキストの左右を入れ替え */
}

.activity-content {
  flex: 1;
  padding: 20px;
}

.activity-content h3 {
  font-size: 2rem;
  color: #00796b;
  margin-bottom: 15px;
}

.activity-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

/* 画像スタイル */
.activity-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.activity-image.supporter {
  text-align: center;
}

.activity-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease-in-out; /* 画像にホバーエフェクト */
}

.activity-image img:hover {
  transform: scale(1.05); /* 画像が少しズームイン */
}

.activity-image.supporter img {
  width: 70%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease-in-out; /* 画像にホバーエフェクト */
}

/* スポーツクラブ記事セクション */
#sports-club-posts {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#sports-club-posts h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
}

/* 投稿カードのコンテナ */
.post-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.post-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1 1 calc(33.333% - 20px); /* 3つのカードを横並びに */
  max-width: calc(33.333% - 20px);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 初期状態: カードが非表示で下に隠れている状態 */
.post-card {
  opacity: 0;
  transform: translateY(50px); /* 下に隠れている状態 */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* 表示状態: カードがフェードインしながらスライドアップ */
.post-card.show {
  opacity: 1;
  transform: translateY(0);
}

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

/* サムネイル画像のスタイル */
.post-thumbnail img {
  width: 100%;
  height: 200px; /* 高さを統一 */
  object-fit: cover; /* アスペクト比を無視してカバー表示 */
}

/* 投稿情報 */
.post-info {
  padding: 15px;
}

.post-title a {
  font-size: 1.2rem;
  color: #00796b;
  text-decoration: none;
  font-weight: bold;
}

.post-title a:hover {
  text-decoration: underline;
}

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

/* 記事一覧リンク */
.post-list-link {
  margin-top: 40px;
}

.post-list-link p {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 5px;
}

.post-list-link .btn {
  display: inline-block;
  background-color: #00796b;
  color: white;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.post-list-link .btn:hover {
  background-color: #004d40;
}

/* 続きを読むボタン */
.read-more {
  text-align: center; /* ボタンを中央揃え */
  margin-top: 15px;
  margin-bottom: 15px;
}

.read-more .btn {
  display: inline-block;
  background-color: #00796b;
  color: white;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more .btn:hover {
  background-color: #004d40; /* ホバー時に色を濃く */
  transform: translateY(-2px); /* ホバー時に少し浮き上がる */
}

/* カードの情報全体 */
.post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* 高さを均一に */
}

/* 支援セクション */
.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;
  max-width: none;
}

.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);
  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) {
  
  /* ヘッダー */
  .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 .content {
    padding: 15px 20px; /* 内側余白を調整 */
    max-width: 90%; /* 幅を縮小 */
  }

  .hero h1 {
    font-size: 2rem; /* 見出しを縮小 */
  }

  .hero p {
    font-size: 1rem; /* 本文を縮小 */
  }
  
  /* aboutセクション */
  #about .content {
    flex-direction: column; /* モバイルでは縦並びに */
    text-align: center;
  }

  #about .text, 
  #about .image {
    flex: none; /* 幅を自動調整 */
    max-width: 100%; /* 親幅に合わせる */
  }

  #about .text {
    text-align: center; /* テキストを中央揃え */
  }
  
  /* 活動内容セクション */
  .activity-row {
    flex-direction: column; /* モバイルでは縦並び */
    text-align: center;
  }

  .activity-row.reverse {
    flex-direction: column;
  }

  .activity-content h3 {
    font-size: 1.6rem;
  }

  .activity-content p {
    font-size: 1rem;
  }
  
  /* 支援セクション */
  .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;
    margin: 15px 0; /* 縦方向の余白を拡大 */
  }
  
	/* 支援セクション */
  .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;
    padding: 30px 10px; /* モバイルでの快適なスペース */
  }
}
