/* 一番上の余白を消す */
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;
}

/* パンくずリストの基本スタイル */
.breadcrumb {
  font-size: 0.9rem;
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap; /* 長い文字列が折り返されるようにする */
  align-items: center; /* 中央揃え */
}

.breadcrumb a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #ff4500;
}

.breadcrumb span {
  margin: 0 5px;
  color: #666;
}

/* 記事エリア */
article {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem; /* 18px */
  line-height: 1.8; /* 適切な行間 */
  color: #333333;
}

article p {
  margin-bottom: 1.5em; /* 適切な段落間の余白 */
}

article h2 {
  font-size: 1.5rem; /* 見出しを目立たせる */
  color: #007bff;
}

article img {
  display: block;
  margin: 20px auto; /* 上下に余白を追加し中央揃え */
  max-width: 100%; /* コンテナ内に収まる */
  border-radius: 8px; /* 角丸にする */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽い影を付ける */
}

article figure {
  margin: 20px auto;
  text-align: center; /* キャプションを中央揃え */
}

article figcaption {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 8px;
}

article a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease-in-out;
}

article a:hover {
  color: var(--accent-color);
}

article .btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1rem;
  background-color: var(--secondary-color);
  color: #fff;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

article .btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

article ul {
  list-style: disc; /* デフォルトの丸いリスト */
  margin-left: 1.5em; /* 適切なインデント */
}

article ul li {
  margin-bottom: 0.5em; /* 各項目の間隔を広げる */
}

article blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 10px 20px;
  margin: 20px 0;
  font-style: italic;
  background-color: #f9f9f9; /* 背景を淡く */
}

/* 次への表示 */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding: 15px 0;
  border-top: 1px solid #dddddd;
}

.post-navigation .prev-post,
.post-navigation .next-post {
  font-size: 0.9rem;
  color: #007bff; /* 青色 */
}

.post-navigation a {
  text-decoration: none;
  color: #007bff;
}

.post-navigation a:hover {
  color: #ff4500;
}

/* 同じカテゴリの記事表示 */
.related-posts {
  margin-top: 30px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

.related-posts h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.related-posts ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px; /* 各アイテム間のスペース */
}

.related-posts li {
  flex: 1;
  text-align: center;
}

.related-posts a {
  text-decoration: none;
  color: #333;
}

.related-posts .thumbnail {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3の比率を維持 */
  background-color: #f0f0f0; /* 背景色（サムネイルなしの場合用） */
  overflow: hidden;
}

.related-posts .thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像を比率に合わせて切り抜き */
}

.related-posts .title {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
}

.related-posts .title:hover {
  color: #007bff; /* 青色に変更 */
}

/* 支援セクション */
.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; /* メニューが開いたときに表示 */
  }
  
}

@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;
  }
  
  /* パンくずリスト */
  .breadcrumb {
    font-size: 0.8rem; /* フォントサイズを少し小さく */
    margin-bottom: 15px; /* 下部の余白を縮小 */
  }

  .breadcrumb a,
  .breadcrumb span {
    margin-right: 3px; /* 余白を少なく */
  }

  .breadcrumb a:hover {
    color: var(--primary-color); /* ホバー時の色変化を控えめに */
  }
  
  /* 記事部分 */
  article {
    font-size: 0.9rem; /* フォントサイズを少し小さく */
    line-height: 1.6; /* 行間を狭く */
  }

  article img {
    max-width: 100%;
    height: auto; /* 幅に合わせて高さを調整 */
  }

  article .btn {
    padding: 10px 15px; /* ボタンのサイズをコンパクトに */
  }

  article blockquote {
    padding: 8px 15px; /* 引用部分の余白を縮小 */
  }
  
  /* 新着記事表示 */
  .related-posts ul {
    flex-direction: column; /* 縦並びに変更 */
    gap: 10px;
  }

  .related-posts li {
    width: 100%;
  }
  
   /* 支援セクション */
  .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; /* 縦方向の余白を拡大 */
  }
  
  /* パンくずリスト */
  .breadcrumb {
    font-size: 0.7rem; /* さらにフォントサイズを縮小 */
    flex-direction: column; /* リンクを縦方向に並べる */
    align-items: flex-start; /* 左揃え */
  }

  .breadcrumb a,
  .breadcrumb span {
    margin: 2px 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; /* モバイルでの快適なスペース */
  }
}
