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

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

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

/* 本文と小要素 */
p, li, span {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

section {
  padding: 60px 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;
}

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

.text-content {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  color: #333;
}

/* ヘッダー */
.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/02_about-us/hero.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
  max-width: 100%;
}
.hero h1 {
  display: inline-block; /* ハイライトをテキストにフィットさせる */
  background-color: rgba(0, 0, 0, 0.3); /* グレイがかった白背景 */
  font-size: 3rem;
  font-weight: bold;
  color: white;
}

.hero p {
  display: inline-block; /* ハイライトをテキストにフィットさせる */
  background-color: rgba(0, 0, 0, 0.3); /* グレイがかった白背景 */
  font-size: 1.5rem;
  margin-top: 10px;
  color: white;
}

/* 代表挨拶エリア */
.representative-message {
  margin-top: 40px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #001f3f, #ffffff); /* 濃いネイビーとホワイトのグラデーション */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 少し影を追加 */
}

.representative-message .container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

/* 左側（代表近影と名前） */
.message-left {
  text-align: center;
  background: #fff; /* カード風の背景 */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.representative-photo {
  width: 100%;
  max-width: 250px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid #001f3f; /* ネイビーの枠線を追加 */
}

.representative-role {
  font-size: 1rem;
  color: #001f3f; /* ネイビー系の文字色 */
  font-weight: bold;
}

.representative-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 10px;
  color: #333; /* 黒に近い文字色 */
}

/* 右側（挨拶文） */
.message-right {
  flex: 2;
  text-align: left;
  background: rgba(255, 255, 255, 0.95); /* 白のほぼ不透明な背景 */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* カード風の影を追加 */
}

.message-right h3 {
  font-size: 1.8rem;
  color: #001f3f; /* ネイビー系のタイトル色 */
  margin-bottom: 20px;
  border-bottom: 2px solid #001f3f; /* ネイビーの下線 */
  padding-bottom: 10px;
}

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

/* ミッションセクション全体 */
.mission {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background-color: #f9f9f9; /* セクション背景色 */
}

.mission-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

/* 左側の画像 */
.mission-image {
  flex: 1;
  padding-right: 20px;
}

.mission-image img {
  width: 100%;
  height: auto;
  border-radius: 10px; /* 角丸 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影 */
  background-color: #fff;
}

/* 右側のテキストエリア */
.mission-text-area {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background: url('../img/02_about-us/mission.png') no-repeat center center/cover; /* 背景画像 */
  border-radius: 10px; /* 角丸 */
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影 */
}

.mission-wrapper {
  text-align: center;
  margin-bottom: 0;
}

.mission-wrapper h2 {
  font-size: 2rem;
  color: #333;
  /* background-color: rgba(0, 0, 0, 0.6); /* 半透明の背景 */
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 0;
}

.mission-text {
  text-align: center;
  color: white;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 0;
}

.mission-text .highlight {
  font-weight: bold;
  color: #007bff; /* 強調色 */
  text-decoration: underline;
}

/* ビジョンセクション全体 */
.vision {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: #f9f9f9; /* セクション背景色 */
}

.vision-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

/* 左側の文章エリア */
.vision-text-area {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background: url('../img/02_about-us/vision.png') no-repeat center center/cover; /* 背景画像 */
  border-radius: 10px; /* 角丸 */
  /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影 */
}

.vision-wrapper {
  text-align: center;
  margin-bottom: 0;
}

.vision-wrapper h2 {
  font-size: 2rem;
  color: #333;
  /*background-color: rgba(0, 0, 0, 0.6); /* 半透明の背景 */
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 0;
}

.vision-text {
  text-align: center;
  color: white;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 0;
}

.vision-text .highlight {
  font-weight: bold;
  color: #007bff; /* 強調色 */
  text-decoration: underline;
}

/* 右側の画像 */
.vision-image {
  flex: 1;
  padding-left: 20px;
}

.vision-image img {
  width: 100%;
  height: auto;
  border-radius: 10px; /* 角丸 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影 */
}

/* 歩みエリア全体 */
.value {
  background: url('../img/02_about-us/value.png') no-repeat center center/cover; /* 背景画像を設定 */
  margin: 40px auto;
  max-width: 800px;
  font-family: 'Arial', sans-serif;
}
/* タイトル背景のスタイル */
.value-wrapper {
  position: relative;
  height: 250px; /* 高さを調整 */
  display: flex;
  align-items: center; /* タイトルを垂直中央揃え */
  justify-content: center; /* タイトルを水平中央揃え */
  text-align: center;
  color: white; /* テキストの色を白に */
}
/* 見出しのスタイル */
.value-wrapper h2 {
  font-size: 2rem;
  padding: 0;
  text-shadow: none; /* テキストに影を付けて読みやすく */
  background: none; /* 背景色を削除 */
}
.value h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

/* タイムライン全体 */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* タイムラインの縦線 */
.timeline::before {
  content: '';
  position: absolute;
  left: 30%; /* 縦線の位置を調整 */
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #007bff; /* 縦線の色 */
  transform: translateX(-50%);
}

/* タイムラインの項目 */
.timeline li {
  display: flex;
  margin-bottom: 20px;
  position: relative;
}

/* 左側の年月 */
.timeline-year {
  width: 25%;
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
  color: #007bff;
  margin-right: 5%; /* 縦線との距離を調整 */
}

/* 右側のイベント内容 */
.timeline-event {
  width: 65%;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-left: 5%; /* 縦線との距離を確保 */
}
/* 初期状態（非表示・左/右位置から隠れる） */
.timeline-year, .timeline-event {
  opacity: 0;
  transform: translateX(0); /* 初期は位置を変更しない */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 年月が左から出現 */
.timeline-year.scroll-visible {
  opacity: 1;
  transform: translateX(-20px); /* 左にスライド */
  transition: opacity 0.6s ease, transform 0.6s ease 0.2s; /* 遅延を追加 (0.2秒) */
}

/* イベント内容が右から出現 */
.timeline-event.scroll-visible {
  opacity: 1;
  transform: translateX(20px); /* 右にスライド */
  transition: opacity 0.6s ease, transform 0.6s ease 0.4s; /* 遅延を追加 (0.4秒) */
}

/* 縦線上のポイント */
.timeline li::before {
  content: '';
  position: absolute;
  left: 30%; /* 縦線と一致 */
  top: 10px; /* イベントの1行目と合わせる */
  width: 10px;
  height: 10px;
  background-color: #007bff; /* 円の色 */
  border-radius: 50%; /* 円形に */
  transform: translateX(-50%);
}

/* チーム紹介セクション */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
}

.team-member {
    text-align: center;
}
.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}


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

.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 {
  font-size: 1.2rem;
  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; /* 行間を調整 */
}

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

  
  .team {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* カラム幅を小さく調整 */
  }
  
  .icons {
    flex-wrap: wrap; /* アイコンが折り返される */
    justify-content: center;
    gap: 20px;
  }
}

/* メディアクエリ: 768px以下（タブレット・スマートフォン対応） */
@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;
  }
  
  .mission-content {
    flex-direction: column;
    text-align: center;
  }
  
  .mission-text-area {
    order: 1;
    padding: 20px;
  }
  
  .mission-image {
    order: 2;
    padding-right: 0;
    margin-bottom: 20px;
    max-width: 400px;
  }
  
  /* ビジョンエリア */
  .vision {
    flex-direction: column; /* 縦並び */
  }
  
  .vision img {
    width: 100%;
  }
  
  .vision-content {
    flex-direction: column; /* 縦方向に配置 */
  }

  .vision-image {
    order: 2; /* 右側の画像を上に */
    margin-bottom: 20px; /* 下の文章との間隔 */
    max-width: 400px;
  }
  
  .vision-text-area {
    order: 1; /* 左側の文章を下に */
  }
  
  /* 歩みエリア */
  .value-wrapper {
    height: 150px; /* 背景画像の高さを縮小 */
  }
  
  .value-wrapper h2 {
    font-size: 1.5rem; /* タイトルのフォントサイズを縮小 */
  }
  
  .timeline {
    padding-left: 20px; /* 左余白を追加 */
  }
  
  /* タイムラインの縦線を左寄せ */
  .timeline::before {
    left: 15px; /* 画面左からの距離を設定 */
  }
  
  /* 縦線上のポイントを縦線に揃える */
  .timeline li::before {
    left: -35px; /* 縦線と一致 */
    top: 10px;
  }
  
  .timeline li {
    flex-direction: column; /* 縦並びに変更 */
    align-items: flex-start;
    position: relative;
    margin-left: 30px; /* 縦線からの距離を設定 */
  }
  
  /* 年月のスタイル調整 */
  .timeline-year {
    width: 30%;
    font-size: 1.0rem;
    text-align: left;
    margin-bottom: 5px;
    margin-left: 0; /* 左余白をリセット */
  }
  
  /* イベント内容のスタイル調整 */
  .timeline-event {
    margin-left: 0; /* 左余白をリセット */
  }
  
  /* 代表挨拶エリア */
  .representative-message .container {
    flex-direction: column; /* 要素を縦に並べる */
    gap: 20px; /* 要素間にスペースを追加 */
  }

  .message-right {
    order: 1; /* 上に表示 */
  }

  .message-left {
    order: 2; /* 下に表示 */
  }
  
  /* 支援セクション */
  .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;
  }
}
