/* ===================================================
   子テーマ用：トップバナー＋グローバルナビスタイル
=================================================== */

/* ────────────────
   横並びバナー（3つ）
──────────────── */
.top-banner-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.top-banner {
  flex: 1;
  text-align: center;
}

.top-banner img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  background-color: #fff !important;
  padding: 10px !important;
  display: block !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;

  border: 4px solid;
  border-image: linear-gradient(45deg, #0c7a24, #50c878) 1;
  border-radius: 0 !important; /* 角丸なし */
}

/* ────────────────
   グローバルナビ全体
──────────────── */
.p-global__nav-wrapper {
  background-color: #0c7a24; /* 深緑ベース */
  padding: 0;
}

/* ────────────────
   ロゴ非表示・中央寄せ設定
──────────────── */
.l-header__logo {
  display: none !important;
}

.l-header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ────────────────
   ナビ本体（中央寄せ・等幅拡張）
──────────────── */
.l-header__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0; /* 隙間なし */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.l-header__nav a {
  flex: 1 1 16.66%; /* 6メニューで等分 */
  min-width: 180px; /* 最小幅をしっかり確保 */
  max-width: 220px;
  padding: 16px 0;
  font-size: 14px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  background-color: #0c7a24;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.l-header__nav a:last-child {
  border-right: none;
}

.l-header__nav a:hover {
  background-color: #0a5f1c;
}

/* ────────────────
   レスポンシブ（バナー＆ナビ）
──────────────── */
@media (max-width: 768px) {
  .top-banner-wrapper {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .l-header__nav {
    flex-direction: column;
    align-items: center;
  }

  .l-header__nav a {
    width: 100%;
    max-width: 300px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .l-header__nav a:last-child {
    border-bottom: none;
  }
}
/* 左上のキャッチコピー（古いセミナー） */
.p-fp-slider__copy {
  font-size: 16px !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 5px rgba(255, 255, 255, 0.3) !important;
}

/* 中央のキャッチコピー（集団・個別〜） */
.p-fp-slider__headline.c-animation--text {
  font-size: 32px !important;
  font-weight: bold !important;
  color: #ffffff !important;
  text-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(255, 255, 255, 0.4) !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-block !important;
}

/* ロゴ全体にシャドウ効果 */
.p-fp-slider__logo.c-animation--text {
  text-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.7),
    0 0 8px rgba(255, 255, 255, 0.2) !important;
  filter: drop-shadow(0px 0px 5px rgba(0,0,0,0.6));
}

/* スマホ用に若干サイズ調整 */
@media (max-width: 768px) {
  .p-fp-slider__headline.c-animation--text {
    font-size: 24px !important;
  }
  .p-fp-slider__copy {
    font-size: 14px !important;
  }
}
.l-header__nav a {
  white-space: nowrap; /* ← これを追加 */
}
@media (max-width: 768px) {
  .l-header__nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }

  .l-header__nav a {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    white-space: nowrap !important;
  }

  .l-header__nav a:last-child {
    border-bottom: none !important;
  }
}
#js-footer-bar {
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
/* ===================================================
   レイアウトが途切れる問題の解決試行（再試行）
   （子テーマのCSSファイルの一番下に追加してください）
=================================================== */

/* ページ全体のレイアウトを調整する主要なコンテナに適用 */
body .l-container, /* ← これを新たに追加 */
body .l-main,
body .l-contents,
body .p-entry__body,
body .p-article__body,
body .entry-content,
body .main-content,
body #main,
body #primary,
body .wp-block-group__inner-container
{
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important; /* flexやgridによるレイアウト制限を解除 */
}
.container,
#main,
#body,
body > .p-content {
  width: 100% !important;
  max-width: 100% !important;
}
@media screen and (max-width: 599px) {
  .p-drawer-menu {
    display: none !important;
  }
  .p-drawer-menu__overlay {
    display: none !important;
  }
}
/* スマホ表示でメニューを強制表示＆整列 */
@media screen and (max-width: 768px) {
  /* グローバルナビ全体を強制表示 */
  .l-header__nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    background-color: #0c7a24 !important;
    z-index: 9999 !important;
  }

  /* 各リンク */
  .l-header__nav a {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .l-header__nav a:last-child {
    border-bottom: none !important;
  }

  /* ドロワーメニューの非表示 */
  .p-drawer-menu,
  .p-drawer-menu__overlay {
    display: none !important;
  }
}
.drawer-button {
  display: block !important;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.drawer-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background: #fff;
  z-index: 999;
}
