/* ============================================
   style.css
   公益財団法人 豊田文化振興財団 学び合い事務局
   WordPressオリジナルテーマ移行を前提としたベーススタイル

   目次:
   1.  CSS変数・リセット
   2.  ベーススタイル・タイポグラフィ
   3.  ユーティリティ
   4.  ヘッダー（トップページ：画像ナビ型）
   5.  ヘッダー（サブページ：2段型）
   6.  モバイルメニュー（ハンバーガー）
   7.  ヒーローエリア
   8.  法人説明エリア（トップページ）
   9.  お知らせ一覧
   10. 事業内容カードグリッド（トップページ）
   11. フッター（トップページ）
   12. 事務局アクセス
   13. セクション共通スタイル（サブページ）
   14. ページタイトルバッジ（サブページ）
   15. タブメニュー（サブページ）
   16. テーブル（サブページ）
   17. 講座風景グリッド（サブページ）
   18. 学習計画ブロック（サブページ）
   19. ボタン（共通）
   20. 卒業後の活動（after-graduation）
   21. レスポンシブ（768px以下）
   ============================================ */


/* ============================================
   1. CSS変数・リセット
   WP移行時: :root をfunctions.phpで動的生成可能
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

:root {
  /* ブランドカラー */
  --color-main:        #2e7d46;
  --color-main-dark:   #1a5c2e;
  --color-accent:      #8b2318;
  --color-bg:          #ffffff;
  --color-bg-light:    #f2f2f2;
  --color-text:        #333333;
  --color-text-sub:    #555555;
  --color-border:      #e0e0e0;

  /* お知らせタグカラー */
  --tag-kamigo:        #3d8b52;   /* 上郷クラス */
  --tag-takahashi:     #3d8b52;   /* 高橋クラス */
  --tag-chiiki:        #5a8a3a;   /* 地域クラス */
  --tag-godo:          #3a6b5a;   /* 合同講座 */
  --tag-firststep:     #1e5c44;   /* ファーストステップ講座 */
  --tag-sotsugyo:      #8b2318;   /* 卒業後の活動 */

  /* レイアウト */
  --header-height:     68px;
  --max-width:         1100px;
  --section-padding:   60px 0;
  --font-sans:         'Noto Sans JP', sans-serif;
  --font-serif:        'Noto Serif JP', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}


/* ============================================
   2. ベーススタイル・タイポグラフィ
   ============================================ */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  border-collapse: collapse;
  width: 100%;
}


/* ============================================
   3. ユーティリティ
   ============================================ */
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* スマホのみ改行 */
.sp-br { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ============================================
   4. ヘッダー（トップページ：画像ナビ型）
   body.home に限定
   WP移行時: header.php（トップページ用）に移植
   ============================================ */
.home .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.home .header-inner {
  display: flex;
  align-items: stretch;
  height: var(--header-height);
  width: 100%;
}

/* ── ロゴエリア ── */
.home .header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 220px;
  padding: 0 16px;
  background: #fff;
}

.home .header-logo a {
  display: block;
}

/* ロゴ画像：高さに合わせてスケール */
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* ── ナビゲーション（テキストナビ型） ── */
.home .header-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
}

/* 全ナビアイテム共通 */
.home .nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  padding: 0 16px;
  text-decoration: none;
  transition: filter 0.18s;
  /* 左右にグレーの仕切り線 */
  border-left: 1px solid #bbb;
  white-space: nowrap;
}

.home .nav-item:first-child {
  border-left: none;
}

.home .nav-item:last-child {
  border-right: 1px solid #bbb;
}

/* グレー項目（上部に緑の線） */
.home .nav-item--gray {
  flex: 2 1 0;
  background: #efefef;
  color: #222;
  border-top: 4px solid var(--color-main);
  font-size: 15px;
}

.home .nav-item--gray:hover {
  background: #e2e2e2;
}

/* 紺色（とよたシニアアカデミー） */
.home .nav-item--navy {
  flex: 1 1 0;
  background: #2c4a6e;
  color: #fff;
  font-size: 13px;
}

.home .nav-item--navy:hover {
  filter: brightness(1.15);
}

/* えんじ色（卒業後の活動紹介） */
.home .nav-item--red {
  flex: 1 1 0;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
}

.home .nav-item--red:hover {
  filter: brightness(1.15);
}


/* ── トップナビ ドロップダウン ── */
.nav-item-wrap {
  position: relative;
  display: flex;
  flex: 2 1 0;
}

.nav-item-wrap .nav-item {
  flex: 1;
  width: 100%;
}

.nav-drop-arrow {
  font-size: 9px;
  margin-left: 6px;
  opacity: 0.7;
  vertical-align: middle;
  transition: transform 0.2s;
  display: inline-block;
}

.has-nav-dropdown.open .nav-drop-arrow {
  transform: rotate(180deg);
}

.nav-mega-dropdown {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 680px;
  background: rgba(224, 232, 236, 0.97);
  padding: 16px;
  gap: 12px;
  z-index: 200;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  /* ホバーアニメーション */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.has-nav-dropdown:hover .nav-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mega-item {
  flex: 1;
  background: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-main);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #dde6dd;
  transition: background 0.15s;
}

.nav-mega-item:hover {
  background: #f0f6f0;
}

.nav-mega-arrow {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-main);
  line-height: 1;
}


/* ============================================
   5. ヘッダー（サブページ：2段型）
   WP移行時: header.php（サブページ用）に移植
   ============================================ */
body:not(.home) .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── 上段：白背景 ── */
.header-top {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.header-top .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
}

/* サブページロゴ */
.header-logo-sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-org {
  font-size: 0.62rem;
  color: var(--color-text-sub);
  letter-spacing: 0.03em;
}

.logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* サブページ上段ナビ */
.header-nav-top > ul {
  display: flex;
  align-items: stretch;
  height: var(--header-height);
}

.header-nav-top > ul > li {
  position: relative;
  display: flex;
  align-items: center;
}

.header-nav-top > ul > li > a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.header-nav-top > ul > li > a:hover {
  color: var(--color-main);
  border-bottom-color: var(--color-main);
}

/* ドロップダウン */
.has-dropdown > a::after {
  content: '▼';
  font-size: 0.55rem;
  margin-left: 5px;
  opacity: 0.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-main);
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 18px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  transition: background 0.15s;
  white-space: nowrap;
}

.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover {
  background-color: #f0f4f0;
  color: var(--color-main);
}

.has-dropdown.open .dropdown-menu { display: block; }

/* ── 下段：グリーン背景 ── */
.header-bottom {
  background-color: var(--color-main);
}

.header-bottom .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header-nav-bottom > ul {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.header-nav-bottom > ul > li {
  position: relative;
  display: flex;
  align-items: center;
}

.header-nav-bottom > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
  transition: background 0.15s;
  white-space: nowrap;
  height: 50px;
}

.header-nav-bottom > ul > li > a:hover {
  background: rgba(255,255,255,0.18);
}


/* ============================================
   6. モバイルメニュー（ハンバーガー）
   WP移行時: header.phpとmain.jsをそのまま移植
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-main);
  transition: all 0.28s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: #ffffff;
  border-top: 3px solid var(--color-main);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
}

.mobile-menu.open { display: block; }

.mobile-menu ul li a {
  display: block;
  padding: 14px 24px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  transition: background 0.15s;
}

.mobile-menu ul li a:hover {
  background: #f0f4f0;
  color: var(--color-main);
}

.mobile-menu ul li.sub-item a {
  padding-left: 40px;
  font-size: 0.85rem;
  color: var(--color-text-sub);
  background-color: #fafafa;
}


/* ============================================
   7. ヒーローエリア
   WP移行時: get_the_post_thumbnail() で画像取得
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background-color: #b5d4b0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* キャッチコピーオーバーレイ */
.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.92);
  padding: 14px 36px;
  white-space: nowrap;
}

.hero-caption p {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: center;
}

/* サブページ用ヒーロー */
.hero--sub {
  height: 320px;
}


/* ============================================
   8. 法人説明エリア（トップページ）
   WP移行時: ACFフィールドで管理
   ============================================ */
.about-section {
  background: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap; /* 折り返しはイラスト非表示で制御 */
  gap: 32px;
}

/* 装飾イラスト：通常フローでflexの両端に配置
   写真より後ろのレイヤー(z-index:0)、幅固定でshrinkしない */
.illust-left,
.illust-right {
  flex: 0 0 auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  align-self: flex-end;
}

.illust-left img,
.illust-right img {
  height: 280px;
  width: auto;
  display: block;
  opacity: 0.7;
}

/* 中央コンテンツ：写真より前面(z-index:1)、余った幅を占有
   min-width を設けることで写真3枚が収まる幅を確保 */
.about-content {
  flex: 1;
  min-width: 360px;
  position: relative;
  z-index: 1;
}

/* 説明テキスト */
.about-text {
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 48px;
}

.about-text p + p {
  margin-top: 6px;
}

/* 丸型写真：常に3枚横並び、幅が縮んでも折り返さない */
.about-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap; /* 絶対に折り返さない */
}

.circle-photo {
  flex: 1;           /* 余白を均等に使う */
  max-width: 180px;  /* 最大サイズ */
  min-width: 0;      /* 縮小を許容 */
  aspect-ratio: 1 / 1; /* 幅に連動して正方形→円を維持 */
  border-radius: 50%;
  overflow: hidden;
  background: #c8d8c0;
}

.circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ============================================
   9. お知らせ一覧
   WP移行時: WP_Queryのループに置換
   ============================================ */
.news-section {
  background: #fff;
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 36px;
  color: var(--color-text);
  font-family: var(--font-sans);
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 14px;
}

.news-date {
  font-size: 15px;
  color: #666;
  white-space: nowrap;
  min-width: 90px;
  font-weight: 400;
  flex-shrink: 0;
}

/* お知らせバッジ */
.news-badge {
  display: inline-block;
  font-size: 13px;
  color: #fff;
  padding: 4px 12px;
  border-radius: 2px;
  white-space: nowrap;
  min-width: 96px;
  text-align: center;
  font-weight: 500;
  flex-shrink: 0;
}

.badge-kamigo     { background-color: var(--tag-kamigo); }
.badge-takahashi  { background-color: var(--tag-takahashi); }
.badge-chiiki     { background-color: var(--tag-chiiki); }
.badge-godo       { background-color: var(--tag-godo); }
.badge-firststep  { background-color: var(--tag-firststep); }
.badge-sotsugyo   { background-color: var(--tag-sotsugyo); }

/* サブページ news-item（class-takahashi 等） */
.news-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.news-item__date {
  font-size: 15px;
  color: #666;
  white-space: nowrap;
  font-weight: 400;
}

.news-item__body {
  flex: 1;
  font-size: 15px;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-item__link { flex-shrink: 0; }

/* 旧クラス名との互換（他ページ） */
.news-tag { display: inline-block; font-size: 13px; font-weight: 700; color: #ffffff; padding: 3px 10px; border-radius: 2px; white-space: nowrap; }
.news-tag--kamigo     { background-color: var(--tag-kamigo); }
.news-tag--takahashi  { background-color: var(--tag-takahashi); }
.news-tag--chiiki     { background-color: var(--tag-chiiki); }
.news-tag--godo       { background-color: var(--tag-godo); }
.news-tag--firststep  { background-color: var(--tag-firststep); }
.news-tag--sotsugyo   { background-color: var(--tag-sotsugyo); }

.news-text {
  flex: 1;
  font-size: 15px;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.news-item__text-link {
  color: inherit;
  text-decoration: none;
}

.news-item__text-link:hover {
  text-decoration: none;
  color: var(--color-main);
}

.news-btn {
  font-size: 14px;
  color: var(--color-main);
  border: 1px solid var(--color-main);
  padding: 4px 14px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.news-btn:hover {
  background: var(--color-main);
  color: #fff;
}

.news-more-wrap {
  text-align: center;
  margin-top: 36px;
}

/* ── お知らせ一覧ページ ── */
.news-archive-section {
  padding: 56px 0 80px;
}
.news-archive__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.news-archive__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-main);
  text-decoration: none;
  margin-bottom: 32px;
}
.news-archive__back:hover { text-decoration: underline; }
.news-archive__heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-main);
  margin-bottom: 0;
}
.news-archive .news-list {
  padding: 0;
  max-width: 100%;
}
.news-archive .news-item {
  /* アーカイブでは本文を折り返す */
  flex-wrap: wrap;
}
.news-archive .news-item__body {
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
  width: 100%;
  flex-basis: 100%;
  margin-top: 4px;
}

/* ── ギャラリーアーカイブページ ── */
.gallery-archive-section {
  padding: 56px 0 80px;
}
.gallery-archive__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.gallery-archive__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-main);
  text-decoration: none;
  margin-bottom: 32px;
}
.gallery-archive__back:hover { text-decoration: underline; }
.gallery-archive__heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-main);
  margin-bottom: 32px;
}

/* ギャラリーカード：カード全体リンク */
a.gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
a.gallery-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  transform: translateY(-2px);
  text-decoration: none;
}
a.gallery-item .gallery-item__title {
  color: var(--color-text);
}

/* ============================================
   ギャラリー詳細ページ
   WP移行時: single-gallery.php に対応
   ============================================ */
.gallery-detail-section {
  padding: 56px 0 80px;
}
.gallery-detail__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.gallery-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-main);
  text-decoration: none;
  margin-bottom: 36px;
}
.gallery-detail__back:hover { text-decoration: underline; }

.gallery-detail__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 14px;
  border-bottom: 3px solid var(--color-main);
  margin-bottom: 32px;
}
.gallery-detail__date {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}
.gallery-detail__media {
  width: 100%;
  margin-bottom: 16px;
}
.gallery-detail__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.gallery-detail__caption {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.9;
  margin-top: 20px;
}
.gallery-detail__btn-area {
  text-align: center;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   お知らせ詳細ページ
   WP移行時: single-news.php / single-post.php
   ============================================ */
.news-detail-section {
  padding: 56px 0 80px;
}
.news-detail__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
.news-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-main);
  text-decoration: none;
  margin-bottom: 36px;
}
.news-detail__back:hover { text-decoration: underline; }
.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.news-detail__date {
  font-size: 0.88rem;
  color: var(--color-text-sub);
}
.news-detail__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 14px;
  border-bottom: 3px solid var(--color-main);
  margin-bottom: 32px;
  line-height: 1.6;
}
.news-detail__body {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.9;
}
.news-detail__body p + p {
  margin-top: 1.4em;
}
.news-detail__btn-area {
  text-align: center;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.btn-more {
  display: inline-block;
  background: var(--color-main);
  color: #fff;
  font-size: 13px;
  padding: 11px 44px;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 500;
  transition: background 0.2s;
  font-family: var(--font-sans);
}

.btn-more:hover { background: var(--color-main-dark); }


/* ============================================
   10. 事業内容カードグリッド（トップページ）
   WP移行時: カスタム投稿タイプ「事業内容」で管理
   ============================================ */
.services-section {
  background: var(--color-bg-light);
  padding: var(--section-padding);
}

.services-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 20px;
}

.service-card {
  background: #fff;
  border-radius: 4px;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 6px 20px rgba(46,125,70,0.14);
  transform: translateY(-3px);
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.service-label {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-main);
  font-family: var(--font-sans);
  text-align: center;
}


/* ============================================
   11. フッター（トップページ）
   WP移行時: footer.php に移植
   ============================================ */
.site-footer {
  background: #fff;
}

/* フッター情報エリア */
.footer-info {
  padding: 100px 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo-area {
  display: flex;
  justify-content: center;
}

/* フッターロゴ画像 */
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-detail {
  font-size: 12px;
  color: #555;
  line-height: 2;
}

.footer-detail a {
  color: #555;
  text-decoration: none;
}

.footer-detail a:hover {
  color: var(--color-main);
}

/* コピーライト */
.footer-copyright {
  background: var(--color-main-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  font-size: 11px;
  padding: 14px;
}


/* ============================================
   12. 事務局アクセス
   WP移行時: footer.phpの一部として移植
   ============================================ */
.access-section {
  background: #fff;
  padding: 60px 0 100px;
}

.access-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.access-map {
  border-radius: 4px;
  overflow: hidden;
}

.access-map img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右側：電車・駐車場を縦に積む */
.access-info-cols {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.access-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  background: #e6ede6;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 2px;
}

.access-col p {
  font-size: 13px;
  color: #555;
  line-height: 2;
}


/* ============================================
   13. セクション共通スタイル（サブページ用）
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section--light {
  background-color: var(--color-bg-light);
}

.section-title--sub {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
}

.section-title--sub::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-main);
  margin: 12px auto 0;
  border-radius: 2px;
}

.lead-text {
  font-size: 0.97rem;
  line-height: 2;
  color: var(--color-text);
  max-width: 800px;
  margin: 0 auto 32px;
}

.content-heading {
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--color-text);
  border-left: none;
  border-bottom: 2px solid var(--color-main);
  padding: 0 0 10px 0;
  margin-bottom: 24px;
}

.content-heading--center {
  text-align: center;
  border-bottom: none;
}

.numbered-heading {
  font-size: 1.05rem;
  font-weight: 700;
  background: #ddeadd;
  padding: 10px 16px;
  margin-bottom: 16px;
  margin-top: 36px;
  border-radius: 0 4px 4px 0;
}

.body-text {
  font-size: 1.06rem;
  line-height: 2;
  margin-bottom: 16px;
  color: var(--color-text);
}


/* ============================================
   14. ページタイトルバッジ（サブページ）
   WP移行時: ページカスタムフィールドで色・テキスト管理
   ============================================ */
.page-badge-area {
  padding: 16px 24px;
  background: #ffffff;
}

.page-badge-area .inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page-badge-area--center .inner {
  justify-content: center;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon svg { width: 44px; height: 44px; }

.badge-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

/* 画像ロゴ（takahashi-class2.png 等） */
.badge-class-logo {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.badge-sep {
  color: var(--color-text-sub);
  font-size: 0.85rem;
  margin: 0 2px;
}

.badge-current {
  display: inline-block;
  background: var(--color-main);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 7px 28px;
  border-radius: 3px;
}

.badge-current--accent { background: var(--color-accent); }
.badge-current--blue   { background: #4a7abc; }


/* ============================================
   15. タブメニュー（サブページ）
   WP移行時: JS（main.js）はそのまま使用可
   ============================================ */
.tab-nav {
  background: #ffffff;
  border-bottom: none;
  position: sticky;
  top: 72px;
  z-index: 50;
}

.tab-nav .inner-tab {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tab-nav .inner-tab::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid #cccccc;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  bottom: 0;
}

/* 右下グリーン三角 */
.tab-btn::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  border-left: 14px solid transparent;
  border-bottom: 14px solid var(--color-main);
}

.tab-btn .tab-arrow { display: none; }

.tab-btn:hover { background: #f0f6f0; }

.tab-btn.active {
  color: var(--color-text);
  font-weight: 700;
  border: 1px solid #cccccc;
  background: #ffffff;
}

.tab-btn.active:hover { background: #f0f6f0; }

.tab-content {
  display: block;
  padding: 52px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  /* sticky タブナビ分のオフセット */
  scroll-margin-top: 130px;
}

/* 背景色あり：max-width を外して全幅に、内側の .inner で幅制限 */
.tab-content--bg {
  max-width: 100%;
  padding: 52px 0;
  background-color: #f2f4f2;
}

.tab-content--bg .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================
   16. テーブル（サブページ：運営体制・クラス詳細等）
   ============================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.info-table th,
.info-table td {
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.8;
}

.info-table th {
  background-color: #ddeadd;
  font-weight: 700;
  color: var(--color-text);
  width: 28%;
  white-space: nowrap;
}

.info-table td { background-color: #ffffff; }


/* ============================================
   17. 講座風景グリッド（サブページ）
   WP移行時: カスタム投稿タイプ「講座風景」のクエリに置換
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.gallery-item {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.gallery-item__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #d8d8d8;
  overflow: hidden;
}

.gallery-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item__body { padding: 14px; }

.gallery-item__title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.gallery-item__caption {
  font-size: 0.8rem;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.gallery-item--special {
  background: var(--color-bg-light);
  border: 2px solid var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.gallery-item--special .special-label {
  text-align: center;
  padding: 24px 16px;
}

.gallery-item--special .special-label p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-main);
  line-height: 1.9;
}


/* ============================================
   18. 学習計画ブロック（サブページ）
   ============================================ */
.plan-block {
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.plan-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* 見出し全幅、その下にテキスト＋PDFを横並び */
.plan-block__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.plan-block__text { flex: 1; min-width: 0; }

/* サブタイトルとPDFの横並びコンテナ */
.plan-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: -12px;
  margin-bottom: 28px;
}

/* 学習計画 サブタイトル */
.plan-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-sub, #666);
  margin: 0;
}

/* PDF（横並び内） */
.plan-pdf-wrap--top {
  flex-shrink: 0;
}

/* ============================================
   スケジュール表（学習計画）
   WP移行時: ACFリピーターフィールドでループ生成
   ============================================ */
.schedule-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.55;
}

.schedule-table thead th {
  background: var(--color-main);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #1e5230;
}

.schedule-table tbody tr {
  border-bottom: 1px solid #d8e8d8;
}

.schedule-table tbody tr:first-child {
  border-top: 1px solid #d8e8d8;
}

.schedule-table tbody tr:nth-child(even) {
  background: #f6faf6;
}

.schedule-table tbody td {
  padding: 10px 12px;
  vertical-align: top;
  border-left: 1px solid #d8e8d8;
  border-right: 1px solid #d8e8d8;
}

/* 合同講座行 */
.schedule-table__joint {}

/* ファーストステップ講座用テーブル */
.schedule-table--firststep tbody td { text-align: left; }
.schedule-table--firststep tbody td:last-child { text-align: left !important; }
.firststep-table__name    { width: 18%; text-align: center; }
.firststep-table__date    { width: 12%; text-align: center; }
.firststep-table__count   { width: 10%; text-align: center; }
.firststep-table__content { width: 60%; }

/* 列幅固定 */
.schedule-table__date   { width: 9%; }
.schedule-table__title  { width: 26%; }
.schedule-table__teacher{ width: 22%; }
.schedule-table__venue  { width: 25%; }
.schedule-table__time   { width: 10%; white-space: nowrap; }
.schedule-table__group  { width: 8%;  text-align: center; }

.schedule-table tbody td:last-child { text-align: center; }

@media (max-width: 768px) {
  .schedule-table { font-size: 0.78rem; }
  .schedule-table thead th,
  .schedule-table tbody td { padding: 8px 8px; }
}


/* ============================================
   19. ボタン（共通）
   WP移行時: ボタンコンポーネントとして共通化
   ============================================ */
.btn {
  display: inline-block;
  padding: 11px 30px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-sans);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn--primary {
  background-color: var(--color-main);
  color: #ffffff;
  border-color: var(--color-main);
}
.btn--primary:hover {
  background-color: var(--color-main-dark);
  border-color: var(--color-main-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-main);
  border-color: var(--color-main);
}
.btn--outline:hover {
  background-color: var(--color-main);
  color: #ffffff;
}

.btn--accent {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background-color: #6e1c13;
  border-color: #6e1c13;
}

.btn--sm {
  padding: 4px 14px;
  font-size: 14px;
}

.btn--pill {
  border-radius: 100px;
  padding: 12px 48px;
}

.btn-center {
  text-align: center;
  margin-top: 32px;
}

.btn-center--mt {
  margin-top: 48px;
}

/* PDFリンクボタン */
.btn-pdf {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.btn-pdf__img {
  width: 90px;
  height: auto;
  display: block;
}

.btn-pdf__label {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 20px;
  border: 1px solid var(--color-main);
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-main);
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}

.btn-pdf:hover .btn-pdf__label {
  background: var(--color-main);
  color: #ffffff;
}

.map-link { text-align: center; margin-top: 28px; }

/* サブページ：タブ内マップ画像 */
.access-map-img {
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto 8px;
  max-width: 80%;
}
.access-map-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* サブページ：学習計画PDFラップ */
.plan-pdf-wrap { flex-shrink: 0; margin-left: auto; }

/* ナビ：現在ページのアクティブ表示 */
.home .nav-item--active {
  font-weight: 700;
}
.nav-mega-item--current {
  background: #f0f6f0;
  font-weight: 700;
}

/* サブページ：メインエリア上余白 */
.subpage-main {
  padding-bottom: 0;
}


/* ============================================
   20. 卒業後の活動（after-graduation）
   ============================================ */
/* ── 卒業後の活動紹介ページ（新構成） ── */
.ag-intro-section {
  padding: 52px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.ag-intro-section .body-text {
  margin-top: 16px;
}

.ag-list-section {
  padding-top: 48px;
  padding-bottom: 64px;
}

.ag-list-heading-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.ag-list-heading {
  background: #ddeadd;
  padding: 14px 24px;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.05em;
}

.ag-list-section .inner {
  padding-top: 0;
}

.ag-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 900px;
}

.ag-list__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.ag-list__body {
  flex: 1;
}

.ag-list__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ag-list__title::before {
  content: '■';
  color: var(--color-main);
  flex-shrink: 0;
  font-size: 0.9em;
}

.ag-list__text {
  font-size: 1.15rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

.ag-list__link {
  flex-shrink: 0;
}

.ag-list__title-link {
  color: inherit;
  text-decoration: none;
}

.ag-list__title-link:hover {
  text-decoration: none;
  opacity: 0.75;
}

/* ── 活動グループ詳細ページ（after-graduation-detail） ── */
.agd-section {
  padding-top: 80px;
  padding-bottom: 64px;
}

.agd-heading-wrap {
  margin-bottom: 0;
}

.agd-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.agd-block {}

.agd-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.agd-title::before {
  content: '■';
  color: var(--color-main);
  flex-shrink: 0;
  font-size: 0.85em;
}

.agd-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.agd-text {
  flex: 1;
}

.agd-text .body-text {
  margin-bottom: 0;
  line-height: 1.9;
}

.agd-note-small {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

.agd-img {
  flex: 0 0 330px;
  border-radius: 4px;
  overflow: hidden;
}

.agd-img img {
  width: 100%;
  height: auto;
  display: block;
}

.agd-note {
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* モバイル */
@media (max-width: 768px) {
  .agd-body { flex-direction: column; }
  .agd-img { flex: none; width: 100%; }
}


/* ── 旧構成（graduation-list）は残置 ── */
.graduation-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.graduation-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.graduation-item__body { flex: 1; }

.graduation-item__body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.graduation-item__body p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* 詳細ページ */
.group-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.group-detail-img {
  border-radius: 8px;
  overflow: hidden;
  background: #c8d8c0;
  min-height: 260px;
}

.group-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.group-detail-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.group-detail-text p {
  font-size: 0.93rem;
  line-height: 2;
  margin-bottom: 16px;
}

.notice-box {
  background: #fff8f0;
  border: 1px solid #e8c080;
  border-left: 5px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin-top: 36px;
}

.notice-box h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.notice-box p { font-size: 0.9rem; line-height: 1.9; }


/* ============================================
   21. レスポンシブ（960px以下：イラスト非表示）
   イラストが縮小してレイアウトが崩れる前に非表示にする
   ============================================ */
@media (max-width: 960px) {
  .illust-left,
  .illust-right {
    display: none;
  }

  .about-content {
    min-width: 0;
    width: 100%;
  }

  /* ヘッダーナビ：幅が狭まったらフォントを小さく */
  .home .nav-item--gray {
    font-size: 12px;
    padding: 0 10px;
  }

  .home .nav-item--navy,
  .home .nav-item--red {
    font-size: 11px;
    padding: 0 8px;
  }
}


/* ============================================
   22. レスポンシブ（768px以下）
   WP移行時: このメディアクエリはそのまま使用
   ============================================ */
@media (max-width: 768px) {

  /* ヘッダー共通 */
  .hamburger { display: flex; }

  /* トップページヘッダー */
  .home .header-nav { display: none; }
  .home .header-inner { height: 56px; }
  .home .header-logo { flex: 0 0 auto; min-width: 0; padding: 0 12px; }
  .logo-img { height: 36px; }

  /* サブページヘッダー */
  .header-nav-top,
  .header-nav-bottom { display: none; }
  .header-top .header-inner { height: 56px; }
  .header-bottom .header-inner { display: none; }
  .tab-nav { top: 56px; }

  /* スマホ改行 */
  .sp-br { display: inline; }

  /* ヒーロー */
  .hero { height: 220px; }
  .hero--sub { height: 180px; }
  .hero-caption {
    padding: 16px 28px 12px;
    white-space: normal;
    width: auto;
    max-width: 78%;
  }
  .hero-caption p { font-size: 20px; }

  /* 法人説明 */
  .about-section { padding: 48px 0 40px; }
  .about-inner { gap: 20px; padding: 0 20px; }
  .illust-left, .illust-right { display: none; }
  .about-content { min-width: 0; width: 100%; }
  .about-images { gap: 12px; }
  /* circle-photo は aspect-ratio: 1/1 + flex: 1 で自動スケール、固定値不要 */

  /* お知らせ */
  .news-item {
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
  }
  .news-date { min-width: auto; width: 100%; }
  .news-text { white-space: normal; }
  .news-btn { margin-left: auto; }

  /* 事業内容 */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .service-card { padding: 24px 12px 20px; }
  .service-icon,
  .service-icon img { width: 64px; height: 64px; }
  .service-label { font-size: 14px; }

  /* アクセス */
  .access-inner { grid-template-columns: 1fr; gap: 24px; }
  .access-info-cols { grid-template-columns: 1fr; }

  /* フッター */
  .footer-info { padding: 40px 20px 30px; }

  /* セクション（サブページ） */
  .section { padding: 40px 0; }

  /* タブ */
  .tab-btn { padding: 14px 10px; font-size: 0.78rem; min-width: 70px; }
  .tab-nav .inner-tab { gap: 8px; padding: 12px 16px; }
  .tab-content { padding: 32px 16px; scroll-margin-top: 100px; }

  /* テーブル */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 6px; }
  .info-table td { padding-top: 6px; margin-bottom: 4px; }

  /* 講座風景 */
  .gallery-grid { grid-template-columns: 1fr; }

  /* バッジ */
  .page-badge-area { padding: 12px 16px; }
  .badge-label { font-size: 0.82rem; }
  .badge-current { font-size: 1.35rem; }

  /* 卒業後 */
  .graduation-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .group-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WordPressブロックエディター 上書きスタイル
   ============================================ */

/* メディアとテキストブロック：テキスト列の左パディングのみ除去（右・モバイルは維持） */
.wp-block-media-text .wp-block-media-text__content {
  padding-left: 0 !important;
}
@media (max-width: 768px) {
  .wp-block-media-text .wp-block-media-text__content {
    padding: 16px 0 0 0 !important;
  }
}

/* ============================================
   ページネーション
   ============================================ */
.wp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 48px;
  padding-bottom: 16px;
}
.wp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 2px solid var(--color-main);
  border-radius: 4px;
  color: var(--color-main);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.wp-pagination .page-numbers:hover {
  background: var(--color-main);
  color: #fff;
}
.wp-pagination .page-numbers.current {
  background: var(--color-main);
  color: #fff;
  pointer-events: none;
}
.wp-pagination .page-numbers.dots {
  border: none;
  color: #999;
  pointer-events: none;
}
