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

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


/* ヘッダー */
.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/07_contact/header-bg.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  max-width: 100%;
}

.hero h1 {
  display: inline-block; /* ハイライトをテキストにフィットさせる */
  background-color: rgba(0, 0, 0, 0.3); /* グレイがかった白背景 */
  font-size: 2.5em;
  margin: 0;
  color: #f3f3f3;
}

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

/* お問い合わせエリア */
.contact-section {
  padding: 20px;
  background: #f9f9f9;
}

.contact-section h2 {
  color: #0056b3;
  text-align: center;
}

.contact-section p {
  margin-bottom: 20px;
  text-align: center;
}

/* カードのスタイル */
.card {
  background-color: #fff; /* 白い背景 */
  border: 1px solid #ddd; /* 薄い境界線 */
  border-radius: 10px; /* カードの角を丸める */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
  padding: 20px; /* 内側の余白 */
  max-width: 600px; /* 最大幅 */
  margin: 20px auto; /* 上下中央揃え */
}

/* フォーム */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

form label {
  margin-bottom: 3px;
  font-weight: bold;
}

form input, form textarea {
  padding: 10px;
  margin-bottom: 15px; /* 下部の隙間を統一 */
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus, button:focus {
  outline: 2px solid #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

form .btn-submit {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

form .btn-submit:hover {
  background-color: #0056b3;
}

/* ボタンのスピナー */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px; /* ボタンのテキストとスピナーの間に余白 */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* セクションの全体的な背景色を変更してコントラストを強調 */
.contact-section {
  background-color: #f9f9f9; /* フォーム全体を包む背景色 */
  padding: 40px 20px; /* セクションの余白 */
}

/* メール送信後のモーダル */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 400px;
  background: white;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: none;
  z-index: 1000;
  border-radius: 8px;
}

.modal.show {
  display: block;
}

.btn-close {
  margin-top: 15px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-close:hover {
  background-color: #0056b3;
}


/* 支援セクション */
.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; /* 行間を調整 */
}

@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; /* メニューが開いたときに表示 */
  }
  
  /* タブレットサイズ */
  .card {
    padding: 15px; /* 内側の余白を減らす */
  }

  form input, form textarea {
    font-size: 0.9rem; /* フォントサイズを調整 */
    padding: 8px; /* 入力フィールドのパディングを減らす */
  }

  form .btn-submit {
    font-size: 0.9rem;
    padding: 10px 15px; /* ボタンの余白を減らす */
  }
}

/* メディアクエリ: 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;
  }
  
  .contact-section {
    padding: 20px 10px; /* セクションの余白を減らす */
  }
  
  .card {
    max-width: 100%; /* カードの幅を画面全体に */
    border-radius: 5px; /* カードの角を少し小さく */
  }
  
  form {
    padding: 0 15px;
  }

  form input, form textarea {
    font-size: 0.8rem; /* フォントサイズをさらに小さく */
    padding: 8px;
  }
  
  form label {
    font-size: 0.9rem; /* ラベルも少し小さく */
  }
  
  form .btn-submit {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  form .btn-submit {
    font-size: 0.9rem;
    padding: 10px;
  }
  
  /* 支援セクション */
  .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;
  }
  
  /* 小型スマートフォンサイズ */
  form input, form textarea {
    padding: 6px; /* さらに余白を縮小 */
    font-size: 0.8rem; /* テキストサイズを最適化 */
  }
  
  .btn-submit {
    font-size: 0.7rem; /* ボタンのフォントサイズも小さく */
    padding: 6px 8px;
  }
  
  /* 支援セクション */
  .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;
  }
}
