/* 一番上の余白を消す */
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); /* ホバー時にわずかに浮き上がる */
  
}

/* モダンボタン */
.btn-modern {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px; /* 丸みを強調 */
  font-size: 1rem;
  font-weight: bold;
  background: linear-gradient(135deg, #1976d2, #42a5f5); /* グラデーション */
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* シャドウ */
}

.btn-modern:hover {
  transform: translateY(-3px); /* ホバー時に浮き上がる */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* シャドウ強調 */
}

.btn-modern:active {
  transform: translateY(1px); /* クリック時の押し込み効果 */
  box-shadow: 0 3px 8px 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;
}

/* アニメーションの初期状態 */
.animate {
  opacity: 0;
  transform: translateX(20px); /* 右からスライド */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* スクロール時にアニメーションが開始された状態 */
.animate.visible {
  opacity: 1; /* 表示 */
  transform: translateY(0); /* 元の位置に戻る */
}

/* 遅延用クラス */
.animate.delay-1 {
  transition-delay: 0.2s; /* 0.2秒遅延 */
}

.animate.delay-2 {
  transition-delay: 0.4s; /* 0.4秒遅延 */
}

.animate.delay-3 {
  transition-delay: 0.6s; /* 0.6秒遅延 */
}

/* ヒーローエリア */
.hero {
  background: url('../img/12_activities-training/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; /* ホバー時のリンク色（オレンジ） */
}

/* 研修の目的セクション */
.training-purpose {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2); /* モダングラデーション */
  color: #333; /* 文字色 */
}

.training-purpose .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.training-purpose .text-content {
  flex: 1;
  min-width: 45%; /* 最低幅を指定 */
}

.training-purpose .text-content h2 {
  font-size: 2.8rem;
  font-weight: bold;
  color: #1a237e;
  margin-bottom: 20px;
}

.training-purpose .text-content p {
  font-size: 1.2rem;
  color: #424242;
  margin-bottom: 15px;
  line-height: 1.8;
}

.training-purpose .text-content ul {
  margin-top: 20px;
  list-style-type: none;
  padding-left: 0;
}

.training-purpose .text-content ul li {
  font-size: 1.1rem;
  color: #424242;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.training-purpose .text-content ul li::before {
  content: '✔'; /* カスタムアイコン */
  font-size: 1.5rem;
  color: #1976d2; /* 明るいブルー */
  position: absolute;
  left: 0; /* アイコンの位置 */
  top: 0;
}

.training-purpose .image-content {
  flex: 1;
  min-width: 45%; /* 最低幅を指定 */
  text-align: center;
}

.training-purpose .image-content img {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* ソフトシャドウ */
  transition: transform 0.3s ease; /* ホバー時のアニメーション */
}

.training-purpose .image-content img:hover {
  transform: scale(1.05); /* ホバー時に少し拡大 */
}

/* 木製掲示板セクション */
.training-schedule {
  padding: 60px 20px;
  background: url('../img/12_activities-training/wood-texture.jpg') no-repeat center center; /* 木目背景 */
  background-size: cover;
  color: #333;
}

.training-schedule .container {
  text-align: center;
}

.training-schedule .board-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff; /* 白文字 */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* 木製感を強調 */
  margin-bottom: 10px;
}

.training-schedule .board-header p {
  font-size: 1.2rem;
  color: #f5f5f5;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* スケジュールカード */
.schedule-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.schedule-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* ソフトシャドウ */
  padding: 20px;
  width: calc(33.333% - 20px); /* カードを3列に並べる */
  max-width: 300px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover {
  transform: translateY(-5px); /* 浮き上がるアニメーション */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.schedule-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.schedule-card .date, .schedule-card .location {
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;
}

.schedule-card .description {
  font-size: 1rem;
  color: #666;
}

/* 今日のイベント用のバッジ */
.today-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background-color: #ff5722; /* オレンジ色 */
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* ソフトシャドウ */
  text-transform: uppercase; /* 大文字に変換 */
}

/* お問い合わせ案内 */
.contact-info {
  text-align: center;
  margin-top: 40px;
}

.contact-info p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
}

.btn-contact {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #1976d2, #42a5f5); /* 青系グラデーション */
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* シャドウ */
}

.btn-contact:hover {
  transform: translateY(-3px); /* ホバー時に浮き上がる */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* シャドウ強調 */
}

.btn-contact:active {
  transform: translateY(1px); /* クリック時の押し込み効果 */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* シャドウを軽く */
}

/* 研修の特徴セクション */
.training-features {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5f7fa, #e4ebf0); /* 柔らかいグラデーション */
  color: #333;
  font-family: 'Roboto', sans-serif;
}

.training-features .container {
  max-width: 1200px;
  margin: 0 auto;
}

.training-features h2 {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: #1a237e; /* 深いブルー */
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽いシャドウ */
}

.training-features .features-box{
  position: relative; /* 擬似要素を重ねるために必要 */
  background: url('../img/12_activities-training/training-features.jpg') no-repeat center center/cover;
  border-radius: 10px; /* 四角の角を丸くする */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 影を追加して浮き上がる効果 */
  padding: 40px;
  overflow: hidden; /* 擬似要素が枠外に出ないようにする */
}

.training-features .features-box::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; /* features-boxと同じ角丸 */
}

.training-features .features-box > * {
  position: relative; /* 擬似要素の上にコンテンツを表示 */
  z-index: 2;
}

.training-features .feature {
  margin-bottom: 40px;
}

.training-features .feature h3 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #424242; /* 濃いグレー */
  margin-bottom: 20px;
  border-left: 5px solid #1976d2; /* 左線 */
  padding-left: 15px; /* 左線の余白 */
}

.training-features .feature ul {
  list-style-type: none; /* デフォルトの箇条書きを削除 */
  padding-left: 0;
}

.training-features .feature ul li {
  position: relative;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  padding-left: 30px; /* アイコンのための余白 */
}

.training-features .feature ul li::before {
  content: '✓'; /* チェックマークアイコン */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5rem;
  color: #1976d2; /* ブルー */
  line-height: 1.2;
}

/* サブリストのスタイル */
.training-features .sub-feature h4 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1976d2;
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.sub-feature h4 i {
  font-size: 1.8rem;
  margin-right: 10px; /* アイコンとテキストの間隔 */
  color: #1976d2;
}

.training-features .sub-feature ul {
  list-style-type: none; /* デフォルトの箇条書きを削除 */
  padding-left: 0;
}

.training-features .sub-feature ul li {
  position: relative;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
  padding-left: 25px; /* サブアイコンのための余白 */
}

.training-features .sub-feature ul li::before {
  content: '•'; /* ドットアイコン */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  color: #1976d2; /* ブルー */
}

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

#training-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;
}

.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; /* メニューが開いたときに表示 */
  }
  
  .training-purpose .container {
    flex-direction: column; /* 縦並び */
    text-align: center;
  }

  .training-purpose .text-content,
  .training-purpose .image-content {
    min-width: 100%; /* 幅を100%に */
  }
  
  .schedule-card {
    width: calc(50% - 20px); /* 2列に並べる */
  }

}

@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;
  }
  
  /* 研修の目的セクション */
  .training-purpose {
    padding: 60px 15px;
  }
  
  .training-purpose .text-content h2 {
    font-size: 2.2rem;
  }
  
  .training-purpose .text-content p {
    font-size: 1rem;
  }
  
  .training-purpose .text-content ul li {
    font-size: 1rem;
  }
  
  .schedule-card {
    width: 100%; /* 1列に並べる */
  }
  
  /* 支援セクション */
  .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; /* モバイルでの快適なスペース */
  }
}
