/* -------------------- フォント・基本設定 -------------------- */
body {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 18px;
  color: #575656;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

/* -------------------- 共通見出しスタイル（全ページ共通） -------------------- */
h1 {
  font-size: 42px;
  font-weight: bold;
  margin: 1.5em 0 1em;
  color: #3d5d3d;
  text-align: center;
}

h2 {
  font-size: 38px;
  font-weight: bold;
  margin: 1.5em 0 1em;
  color: #3d5d3d;
  text-align: center;
}

h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 1em 0 0.5em;
  color: #3d5d3d;
}

/* -------------------- カラー定義 -------------------- */
:root {
  --main-color: #3d5d3d;           /* オリーブグリーン */
  --sub-color: #dbe3d4;            /* オリーブグリーンの薄い色 */
  --accent-color: #1a2238;         /* ダークネイビー */
  --font-color: #333333;           /* 少しだけ薄い黒 */
  --background-color: #ffffff;     /* 白 */
}

/* -------------------- コンテナと余白 -------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  margin-top: 0px;
}

/* -------------------- タイトル専用セクション -------------------- */
.section_title_section {
  text-align: center; /* inline-blockのタイトルでも中央配置 */
  padding: 40px 20px;
  background-color: #ffffff; /* 任意で背景色も可能 */
}


/* -------------------- セクションタイトル（装飾用クラス） -------------------- */
.section_title { 
  background: linear-gradient(transparent 70%, #f3d357 70%);
  display: inline-block; /* テキスト幅の装飾 */
  line-height: 1.4;
  color: #158b2b;
  text-align: center;
}

/* -------------------- ヘッダー -------------------- */
header {
  background-color: var(--main-color);
  height: 100px;
  color: white;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-decoration: none; /* ← ここで下線を消す */
  text-align: left;
  display: block; /* 念のためブロック要素化 */
}


.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bolder;
}

.main-nav a:hover {
  color: var(--sub-color);
}

/* -------------------- 詳細ページ帯画像 -------------------- */
.syousai_mainvisual_image {
  width: auto;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.syousai_mainvisual_section {
  width: 100%;
  overflow: hidden;
}

.syousai_mainvisual_inner {
  text-align: center;
}


/* -------------------- フッター -------------------- */
footer {
  background-color: var(--sub-color);
  color: var(--accent-color);
  padding: 20px 0;
  font-family: "Yu Gothic", sans-serif;
}

.footer_container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 20px;
  flex-wrap: wrap;
}

.footer_left {
  flex: 1;
  min-width: 250px;
  text-align: left; /* ← 左寄せに明示 */
}

.footer_right {
  flex: 1;
  min-width: 300px;
}

.footer_left p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer_copyright {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
}

.footer_sitemap {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}


.footer_links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer_links li {
  margin-bottom: 8px;
}

.footer_links a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer_links a:hover {
  text-decoration: underline;
}


/* -------------------- ハンバーガーメニュー：共通スタイル -------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 24px;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* -------------------- レスポンシブ対応（768px以下） -------------------- */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 20px 0;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100px;
    right: 20px;
    background-color: var(--main-color);
    width: calc(100% - 40px);
    max-width: 300px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
  }

  .main-nav.show {
    display: block;
  }

  .main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
  }

  .main-nav a:hover {
    text-decoration: underline;
  }
}

/* -------------------- レスポンシブ対応：スマホ・タブレット共通（〜1024px） -------------------- */
@media (max-width: 1024px) {
  header {
    height: auto;
    padding: 20px 0;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100px;
    right: 20px;
    background-color: var(--main-color);
    width: calc(100% - 40px);
    max-width: 300px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
  }

  .main-nav.show {
    display: block;
  }

  .main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
  }

  .main-nav a:hover {
    text-decoration: underline;
  }
}

/* -------------------- スマホ用メインビジュアル調整（〜767px） -------------------- */
@media (max-width: 767px) {
  .top_mainvisual_section {
    position: relative;
    height: 300px; /* ✅ 高さを2/3程度に抑える */
    overflow: hidden;
  }

  .top_mainvisual_image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ✅ 縮小しながら切り取り、全体バランスをキープ */
    display: block;
  }

  .top_mainvisual_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.4); /* 背景に黒の透過で可読性確保 */
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 320px;
  }

  .top_mainvisual_text strong {
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 8px;
  }
}

/* -------------------- スマホ表示専用調整（〜767px） -------------------- */
@media (max-width: 767px) {
  h2 {
    font-size: 24px;
  }

  .section_title {
    font-size: 24px; /* h2 に .section_title が付いている場合も対応 */
  }
}

/* -------------------- スマホ表示ヘッダー下帯画像（〜767px） -------------------- */
@media screen and (max-width: 768px) {
  .syousai_mainvisual_image {
    height: 100px;         /* 必要に応じて調整可能 */
    object-fit: cover;
  }
}
