.site-branding {
  margin-left: 0; /* 左余白を消す */
  padding-left: 0;
  display: flex;
  align-items: center;
}

.site-title {
  margin: 0;
  font-size: 1.3rem;
  color: #333; /* 濃いグレー */
}

.site-description {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.site-logo {
  width: auto;
  max-height: 60px;
}

.site-logo-link {
  display: flex;
  align-items: center;
}

.header-contact {
  min-width: 200px; /* カードの最小幅。電話番号が折り返さないように */
}

.header-contact .label {
  font-weight: bold; /* 受付時間: を強調 */
  color: #ffbf4a;
  margin-right: 0.25rem; /* 時間との間隔 */
}

.header-contact .time {
  color: #555; /* 時間の文字色を薄めに */
}

/* --------------------------------------------------------------
# カードの親コンテナ
# 電話カードと交通アクセスカードをまとめて横並びにする
-------------------------------------------------------------- */
.header-cards {
  display: flex; /* 子要素を横並びにする */
  align-items: center; /* 縦方向中央揃え */
  gap: 15px; /* カード同士の間隔（左右のスペース） */
}

/* --------------------------------------------------------------
# 電話・アクセス共通スタイル
# カードの見た目・サイズ・ホバー挙動を統一
-------------------------------------------------------------- */
.info-card {
  display: flex; /* 中の要素（アイコン＋テキスト）を横並びにする */
  flex-direction: row; /* アイコンとテキストを横に並べる */
  align-items: center; /* カード内の縦方向中央揃え */
  gap: 0.5rem; /* アイコンとテキストの間隔 */

  height: 60px; /* カードの高さを固定 */
  min-width: 170px; /* カードの最小幅。電話番号が折り返さないように */
  padding: 12px 20px; /* カード内の上下左右の余白 */
  border: 2px solid #afdb3f; /* 薄緑色の枠線 */
  border-radius: 12px; /* 角を丸くする */
  font-size: 0.9rem; /* テキストサイズ */
  text-decoration: none; /* リンクの下線を消す */
  color: #333; /* 文字色（濃いグレー） */
  background-color: #fff; /* カード背景色 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* 影をつけて浮き上がるように */
  transition: all 0.3s; /* ホバー時などのアニメーション速度 */
}

/* --------------------------------------------------------------
# アイコン・画像のサイズ
# アイコンや交通マップ画像の大きさを統一
-------------------------------------------------------------- */
.info-card .icon {
  display: block; /* 行内要素からブロック化 */
  width: 24px;
  height: 24px;
  font-size: 1.5rem;
  line-height: 1; /* 文字の行間をリセット */
}

.info-card img {
  display: block; /* ブラウザ依存のずれを防ぐ */
  width: 24px; /* 横幅 */
  height: 24px; /* 高さ */
  margin: 0; /* 余計なマージンを消す */
  font-size: 1.5rem; /* アイコンフォントサイズ */
}

/* --------------------------------------------------------------
# テキストスタイル
# カード内の文字（電話番号やアクセス文字）を強調
-------------------------------------------------------------- */
.info-card .text {
  font-weight: bold; /* 太字で見やすく */
  color: #ffbf4a; /* オレンジに変える */
}

/* --------------------------------------------------------------
# ホバー時のスタイル
# マウスを乗せたときの見た目の変化
-------------------------------------------------------------- */
.info-card:hover {
  color: #fff; /* 文字色を白に */
  background-color: #afdb3f; /* 薄緑背景 */

  /* border-color: #afdb3f; /* 枠線を薄緑に変える */

  transform: translateY(-2px); /* 少し浮き上がるアニメーション */
}

.info-card:hover .text {
  color: #fff; /* 文字色を白に */
}

/* --------------------------------------------------------------
# ヘッダー右側（診療時間やカードまとめ用）
# 横並びにして縦中央揃え
-------------------------------------------------------------- */
.header-right {
  display: flex; /* 子要素を横並びにする */
  align-items: center; /* 縦方向中央揃え */
  gap: 1rem; /* 子要素間の間隔 */
}

/* ボタン */
.wp-block-button__link {
  padding: 0.8em 1.5em;
  border: 2px solid #afdb3f; /* 薄緑 */
  border-radius: 16px; /* 丸角 */
  font-weight: bold;
  text-decoration: none;
  color: #333; /* 文字色は濃いグレー */
  background: transparent; /* 塗りつぶしなし */
  transition: all 0.3s;
}

.wp-block-button__link:hover {
  color: #afdb3f;
  border-color: #ffbf4a; /* 枠線オレンジ */
}

/* カード */
.card {
  margin: 1rem 0;
  padding: 1rem;
  border: 2px solid #afdb3f; /* 枠線薄緑 */
  border-radius: 16px;
  background: #fff; /* 中は背景色 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);

  /* border-color: #afdb3f; /* ホバーでオレンジに変化 */
}

/* --- 修正後のCSS --- */

/* 最新お知らせカードを囲むコンテナ（以前の .info-cards） */
.news-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* 個々のお知らせカード（以前の .info-card） */
.news-article-card {
  padding: 1rem;
  border: 2px solid #afdb3f; /* 枠線 */
  border-radius: 16px; /* 角丸 */
  background: #fff; /* 背景色 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  flex: 1 1 calc(33% - 1rem); /* 3列表示（レスポンシブ対応） */

  transition:
    transform 0.3s,
    border-color 0.3s;
}

.news-article-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
}

.news-article-card a {
  text-decoration: none;
  color: #333;
}

.news-article-card a:hover {
  color: #afdb3f;
}

.news-article-card time {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.news-article-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

.recruit-latest {
  margin-top: 60px;
}

.recruit-latest h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.recruit-card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fafafa;
  margin-bottom: 20px;
}

.recruit-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.recruit-card h3 a {
  text-decoration: none;
  color: #0073aa;
}

.recruit-card h3 a:hover {
  color: #005f8d;
}

.recruit-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.recruit-excerpt {
  font-size: 1rem;
  line-height: 1.6;
}

/* サムネイル */
.news-thumb {
  overflow: hidden;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================
 フロントページ用カード形式ナビ
 PCで最大6つ横並び
 ============================== */

/* ナビゲーションのルート（<nav>） */
.front-card-menu {
  display: flex; /* 子要素（ul）を横並びにするflexbox */
  padding: 20px 10px; /* 上下40px、左右20pxの余白 */
  flex-wrap: wrap; /* 幅が足りない場合は折り返す */
  justify-content: center; /* 子要素を横方向中央揃え */
  gap: 20px; /* 子要素間の間隔 */
  background: #fff; /* 背景色を白に設定 */
}

/* メニュー本体（ul） */
.front-card-menu .card-menu {
  list-style: none; /* デフォルトのリストマーカーを消す */
  display: flex; /* liを横並びにする */
  flex-wrap: wrap; /* 幅が足りない場合は折り返す */
  gap: 10px; /* li同士の間隔 */
  margin: 0; /* ulのデフォルトマージンをリセット */
  padding: 0; /* ulのデフォルトパディングをリセット */
}

/* 各カード（li） */
.front-card-menu .card-menu li {
  flex: 1 1 auto; /* 6枚横並びを想定。親幅に対して伸縮 */
  /* flex: 1 1 calc(16.66% - 20px); 6枚横並びを想定。親幅に対して伸縮 */
  width: 160px; /* カードの最大幅を設定 */
  max-width: 160px; /* カードの最大幅を設定 */
  border-radius: 16px; /* 角を丸くする */
  text-align: center; /* テキストを中央揃え */
  background: #f8f9fa; /* カード背景色 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* 軽い影を付ける */
  transition:
    transform 0.2s,
    /* hover時の動きを滑らかに */ box-shadow 0.2s;
}

/* ホバー時の演出（li） */
/* ホバー時の演出（li） */
.front-card-menu .card-menu li:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* 影を強める */
  transform: translateY(-4px); /* 少し上に浮かせる */
  background: #afdb3f; /* ★ ここに背景色を追加！ */
}

/* カード内リンク（a） */
.front-card-menu .card-menu a {
  display: block; /* ブロック要素にしてクリック範囲を広げる */
  padding: 15px 10px; /* 内側余白 */
  font-weight: 600; /* 文字をやや太めに */
  text-decoration: none; /* 下線を消す */
  color: #333; /* 文字色 */
  transition:
    background 0.3s,
    /* 背景色変更を滑らかに */ color 0.3s; /* 文字色変更を滑らかに */
}

/* ホバー時のリンク */
/* ホバー時のリンク */
.front-card-menu .card-menu a:hover {
  color: #fff; /* 文字色を白に */
  background: transparent; /* ★ 修正：背景色はliが担当するため透明に */
}

/* --- info_nav（上部バー） --- */
.info_nav {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid #afdb3f;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.info_nav .nav-item {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.info_nav .nav-item:hover {
  background: #f9f9f9;
  color: #afdb3f;
}

.info_nav .nav-item.active {
  background: #afdb3f;
  color: #fff;
}

/* --- 2カラムレイアウト --- */
.news-section-container {
  width: 100%; /* main の幅いっぱい */
  margin: 0 auto;
  padding: 1rem 0; /* 上下の余白だけ */
  box-sizing: border-box;
}
/* -----------------------------
 左縦タブ（news-tabs）
----------------------------- */
.news-section-content {
  width: 100%; /* これも main の幅いっぱい */
  display: flex;
  gap: 2rem; /* 左右カラムの間隔 */
}

/* 左タブ全体 */
.news-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px; /* タブ幅 */
}

/* 各ボタン */
.news-tabs .tab-btn {
  position: relative;
  padding: 1.5rem 1rem;
  border: 1px solid #ddd;
  border-right: none; /* 右側は吹き出しで接続 */
  font-size: 1.25rem; /* ここで文字サイズを大きくする */
  text-align: left;
  background: #f5f5f5;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}

/* ホバー時（非アクティブも含む） */
.news-tabs .tab-btn:hover {
  color: #afdb3f; /* ホバー時の文字色 */
  background: #f5f5f5; /* ホバー時の背景色 */
}

/* 選択中 */
.news-tabs .tab-btn.active {
  color: #fff;
  background: #afdb3f; /* 選択時の背景色 */
}

/* 右側の吹き出し三角 */
.news-tabs .tab-btn.active::after {
  position: absolute;
  top: 50%;
  right: -10px; /* タブの右端からはみ出す */
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #afdb3f; /* 背景色と同じ */
  transform: translateY(-50%);
  content: "";
}

/* 右のカードエリア */

/* ニュースカード（news-cards） */
.news-cards {
  flex: 1;

  display: flex;
  flex-direction: column; /* 縦に並べる */
  gap: 1rem;

  margin: 1rem 0;
}

/* 個々のカード */
.news-card {
  width: 100%; /* 幅いっぱい */
  padding: 1rem;
  border: 2px solid #afdb3f;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: #ffbf4a;
}

/* カード内の見出し・リンク・日付・本文 */
.news-card h2 {
  margin: 0.5em 0 0.3em;
  font-size: 1.2rem;
}

.news-card a {
  text-decoration: none;
  color: #333;
}

.news-card a:hover {
  color: #afdb3f;
}

.news-card .news-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.news-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
}

.tab-panel {
  display: none;
  width: 100%;
}

.tab-panel.active {
  display: flex;
  flex-direction: column; /* 縦並び */
  gap: 1rem;

  width: 100%;
}

/* ==============================
 固定ナビ用（スクロール前）
 ============================== */
.front-navi {
  display: flex; /* liを中央揃えするためflexに */
  position: fixed; /* 画面下部に固定 */
  bottom: 0; /* 下端に固定 */
  left: 0; /* 左端に固定 */
  z-index: 1000; /* 他の要素より前面に表示 */
  width: 100%; /* 横幅を画面いっぱいに */
  justify-content: center; /* 横方向中央揃え */

  transition: all 0.3s ease; /* クラス切り替え時のアニメーション */
}

/* スクロール後に通常位置に戻す */
.front-navi.normal {
  position: static; /* 元のHTML上の位置に戻す */
}

/* =========================================
 SNS固定アイコン用コンテナ
 画面左側に縦並びで固定表示され、スクロールしても追従
 ========================================= */
.sns-fixed {
  position: fixed; /* 画面に固定 */
  top: 50%; /* 上から50%に配置（縦中央） */
  left: 0; /* 左端に配置 */
  transform: translateY(-50%); /* 縦中央を正確に調整 */
  display: flex; /* 縦方向のフレックスボックス */
  flex-direction: column; /* 上から下にアイコンを並べる */
  gap: 10px; /* アイコン同士の間隔 */
  z-index: 1000; /* 他要素より手前に表示 */
}

/* =========================================
 各SNSリンク（アイコンを包む<a>タグ）
 丸形に整形、中央寄せ、ホバー効果あり
 ========================================= */
.sns-fixed a {
  width: 50px; /* アイコン枠の幅 */
  height: 50px; /* アイコン枠の高さ */
  display: flex; /* SVGアイコンを中央に配置するためフレックス */
  justify-content: center; /* 横方向中央寄せ */
  align-items: center; /* 縦方向中央寄せ */
  border-radius: 50%; /* 丸形にする */
  background-color: #fff; /* 背景色を白に */
  border: 2px solid #ffbf4a; /* 枠線をオレンジに */
  transition: transform 0.3s; /* ホバー時の拡大アニメーション */
  margin: 0; /* aタグの余白を削除 */
  padding: 0; /* aタグの内側余白を削除 */
}

/* ホバー時の拡大アニメーション */
.sns-fixed a:hover {
  transform: scale(1.2); /* 少し拡大して視覚的な動きをつける */
}

/* =========================================
 SVGアイコン自体
 サイズ調整と統一色 #ffbf4a
 ========================================= */

.sns-fixed a svg {
  display: block; /* SVGの下の余白を消す */
  width: 24px;
  height: 24px;
  fill: #ffbf4a;
}

/* =========================================
 右側アクセスバー
 ========================================= */
.access-fixed {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10pt; /* アイコン間隔 */
  z-index: 1000;
}

.access-fixed a {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #ffbf4a;
  margin: 0;
  padding: 0;
  transition: transform 0.3s;

  text-decoration: none; /* これで下線を消す */
  color: inherit; /* 絵文字や文字色をアイコン色に合わせる */
}

.access-fixed a:hover {
  transform: scale(1.1);
}

/* アイコンサイズ・色 */
.access-fixed a svg,
.access-fixed a img,
.access-fixed a .icon {
  width: 24px;
  height: 24px;
  display: block;
  vertical-align: top;
  color: #ffbf4a; /* 絵文字やSVGの場合の色 */
}

.access-fixed a .text {
  display: none; /* 必要なら表示可能 */
}

/* 1. ページ内の基本タイポグラフィ */

/* 導入文の強調 (.lead-text) */
.page-main .lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 500;
  color: #333;

  /* 余白と区切り */
  padding: 10px 0 25px; /* 補正後のパディングを適用 */
  border-bottom: 1px dotted #a0c3e1; /* 薄い青の点線で区切り */
  margin-bottom: 30px;
}

/* 決意表明文など、重要な段落 (.commitment-text) */
.commitment-text {
  font-style: italic;
  font-size: 1.05rem;

  /* 装飾 */
  padding: 15px;
  border-left: 5px solid #ffbf4a; /* メインカラーの縦線で強調 */
  background-color: #f8faff;

  /* 余白 */
  margin-top: 25px;
}

/* 注釈など、控えめなテキスト (.small-text) */
.small-text {
  font-size: 0.85rem;
  color: #777;
}

/* 2. メイン見出し (H1) のスタイル */

.page-main h1 {
  /* タイポグラフィ */
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffbf4a;
  text-align: center;

  /* ボックスデザイン */
  background-color: #fff5e0;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-bottom: none; /* 明示的に下線を削除 */

  /* 余白 */
  padding: 15px 20px;
  margin-top: 0;
  margin-bottom: 30px;
}

/* スマートフォンでのh1サイズ調整 */
@media (max-width: 600px) {
  .page-main h1 {
    font-size: 1.8rem;
    padding: 15px 10px;
  }
}

/* 3. セクション見出し (H2/H3) と囲みボックス */

/* H2のセクションタイトル共通スタイル (.section-title) */
.page-main .section-title {
  font-size: 1.8rem;
  color: #333;

  /* 装飾 */
  border-left: 5px solid #ffbf4a; /* アクセントカラーの縦線 */
  border-bottom: 1px solid #e0e0e0;

  /* 余白 */
  padding: 10px 0 10px 15px;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* H3のコスト見出し (.cost-h3) */
.page-main .cost-h3 {
  font-size: 1.3rem;
  color: #ffbf4a;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* 特徴や疾患リストなど、グループ化されたセクションの囲み (.feature-box) */
.feature-box {
  background-color: #f5f8ff; /* 薄い背景色 */
  border: 1px solid #ffbf4a; /* メインカラーの枠線 */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

  /* 余白 */
  margin: 30px 0;
  padding: 25px;
}

/* 重要な情報や注意書きボックス (.info-box) */
.info-box {
  background-color: #ffeaea; /* 注意を促す薄い赤色 */
  border: 1px solid #e74c3c;
  border-radius: 5px;

  /* 余白 */
  padding: 15px 20px;
  margin: 20px 0;
}

/* 4. リストとテーブルのデザイン */

/* リストコンテナの共通スタイル (重複解消) */
.check-list,
.treatment-list {
  list-style: none; /* デフォルトの点や番号を消す */
  padding: 0;
  margin-top: 15px;
  margin-bottom: 25px; /* 補完後の値を適用 */
}

/* リストアイテムの共通スタイル (重複解消) */
.check-list li,
.treatment-list li {
  position: relative;
  line-height: 1.6;

  /* アイコン分のスペースを確保 */
  padding-left: 35px;
  margin-bottom: 10px;
}

/* チェックリストのアイコン */
.check-list li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
}

/* 処置リストのアイコン */
.treatment-list li::before {
  content: "🏥";
  color: #2ecc71;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
}

/* 費用テーブル (.cost-table) */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  margin: 20px 0 30px 0;
}

.cost-table th,
.cost-table td {
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.cost-table th {
  background-color: #ffbf4a; /* メインカラー */
  color: #fff;
  font-weight: bold;
}

.cost-table tbody td:first-child {
  background-color: #f5f8ff; /* 項目名を薄い色で強調 */
  font-weight: bold;
  text-align: left;
}
/* ------------------------------------- */
/* 5. 院長挨拶セクションのレイアウト */
/* ------------------------------------- */

/* 画像とテキストを左右に分けるラッパー */
.director-intro-wrap {
  display: flex;
  gap: 30px; /* カラム間の余白 */
  align-items: flex-start; /* 上端揃え */
  margin-bottom: 30px;
}

/* 左カラム（写真） */
.director-photo-col {
  flex-shrink: 0; /* 縮小させない */
  width: 320px; /* 画像の幅に合わせて固定 */
  text-align: center;
}

/* 院長写真 */
.director-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 写真に影をつけて目立たせる */
}

/* 院長名（写真の下） */
.director-photo-col .director-name {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: normal;
}

/* 右カラム（挨拶本文） */
.director-text-col {
  flex-grow: 1; /* 残りのスペースを全て使用 */
}

/* ------------------------------------- */
/* レスポンシブ対応 (モバイルでは縦並びにする) */
/* ------------------------------------- */
@media (max-width: 768px) {
  .director-intro-wrap {
    flex-direction: column; /* 縦並びにする */
    gap: 20px;
  }

  .director-photo-col {
    width: 50%; /* スマホでは幅を広げて中央配置 */
    max-width: 250px;
    margin: 0 auto;
  }
}

/* ------------------------------------- */
/* [整理] 不要なセレクタとH2からの画像削除 */
/* ------------------------------------- */
/* H2から画像を削除したため、ここも削除 */
/* .section-title img { display: none !important; } */

/* 重複していた院長名のクラスを削除 (HTMLで整理済み) */
/* .director-name { ... } */

/* components.css に追記 */

/* サイトマップ全体 (ULタグ) */
.sitemap-list {
  list-style: none; /* デフォルトの点や番号を消す */
  padding: 0;
  margin: 0;
}

/* 親階層のリストアイテム (LIタグ) */
.sitemap-list > .menu-item {
  margin-bottom: 20px;
  background: #f8f8f8; /* パネルの背景色 */
  border: 1px solid #eee; /* パネルの枠線 */
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 親階層のリンク (Aタグ) */
.sitemap-list > .menu-item > a {
  display: block; /* リンクをブロック要素にしてパネル全体をカバー */
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.sitemap-list > .menu-item:hover > a {
  background-color: #e0f7fa; /* ホバー時の背景色 */
  color: #00796b;
}

/* 子階層のULタグ（サブメニュー）*/
.sitemap-list .sub-menu {
  list-style: none;
  padding: 10px 0 10px 20px; /* 親パネル内にインデントさせる */
  margin: 0;
  background: #fff; /* 子パネルエリアの背景色（親と区別するため） */
  border-top: 1px dashed #ddd; /* 親子を区切る線 */
}

/* 子階層のリストアイテム (LIタグ) */
.sitemap-list .sub-menu .menu-item {
  margin-bottom: 5px;
  border: 1px solid #f0f0f0; /* 子パネルの枠線 */
  border-left: 3px solid #00acc1; /* アクセントカラー */
  border-radius: 4px;
  transition: background-color 0.2s;
}

/* 子階層のリンク (Aタグ) */
.sitemap-list .sub-menu .menu-item a {
  display: block;
  padding: 8px 15px;
  font-size: 1rem;
  color: #555;
  text-decoration: none;
}

.sitemap-list .sub-menu .menu-item:hover {
  background-color: #f5f5f5; /* ホバー時の背景色 */
}

/* ==============================================================
# 採用情報ブロックテンプレート（投稿本文内）
# 定義リスト風（項目名と内容を左右に分ける）
# ★構造修正: Flexコンテナを inner-container に移動
============================================================== */

/* 募集要項の主要コンテンツを囲むグループブロック (外枠担当) */
.job-field-group {
  /* 左右並びのFlex設定は inner-container に移すため、Flexプロパティを削除 */
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: block; /* ブロック要素として振る舞う */
}

/* ★主要な修正点: inner-container を Flex コンテナとして定義 */
.job-field-group .wp-block-group__inner-container {
  display: flex; /* ここで左右並びを有効化 */
  flex-wrap: wrap; /* 小さな画面で折り返すため */
  align-items: stretch; /* ★縦の長さを合わせる（重要） */

  /* WordPressのデフォルトマージン/パディングをリセット */
  margin: 0 !important;
  padding: 0 !important;
}

/* 項目名（h3）のスタイル：左側 (Flex Item 1) */
.job-field-group .job-field-title {
  /* 項目名の幅を固定し、Flexアイテムとして機能させる */
  flex-basis: 150px;
  flex-shrink: 0; /* 縮小させない */

  /* 縦中央揃えと高さを確保するためのFlex設定 */
  display: flex;
  align-items: center;
  justify-content: center;

  /* 見た目 */
  background-color: #eef5e0; /* 薄緑の背景色 */
  color: #333;
  font-weight: bold;
  font-size: 1rem;

  /* 余白 */
  padding: 15px;
  /* ブロックエディタのデフォルトマージンをリセット */
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 内容（p, ul, ol）のスタイル：右側 (Flex Item 2) */
.job-field-group .job-field-content {
  /* 残りの幅をすべて使用 */
  flex-grow: 1;

  /* 見た目 */
  background-color: #fff;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;

  /* contentコンテナに直接パディングを適用 */
  padding: 15px;

  /* ブロックエディタのデフォルトマージンをリセット */
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ★追加/修正: job-field-content 内の p, ul, ol のマージンとパディングをゼロにリセット */
/* これにより、contentコンテナの背景色が途切れることなく全体を覆います */
.job-field-group .job-field-content p,
.job-field-group .job-field-content ul,
.job-field-group .job-field-content ol {
  /* content自体がパディングを持つため、内側の要素のパディングとマージンを完全除去 */
  padding: 0 !important;
  margin: 0 !important;
}

/* リストアイテムの上下の間隔は、contentの行間やリストタグのline-heightで調整されるはずです。 */
/* 必要に応じてリストアイテム（li）にマージンを追加する: */
.job-field-group .job-field-content li {
  margin-bottom: 0.5em;
}

/* スマートフォン対応（項目名と内容を縦に並べる） */
@media (max-width: 768px) {
  /* inner-container がFlexコンテナなので、これに flex-direction: column を適用 */
  .job-field-group .wp-block-group__inner-container {
    flex-direction: column; /* 縦方向に並べる */
  }

  .job-field-group .job-field-title {
    flex-basis: auto; /* 幅固定を解除 */
    border-bottom: 1px solid #ddd; /* 区切り線を追加 */
    justify-content: flex-start; /* 縦並びの時は左寄せに戻す */
  }
}

/*
* news-article-card のスタイル:
* - モバイルでのデフォルトは縦並び（display: block; または display: flex; flex-direction: column;）
* - デスクトップでの横並びのために、以下の基本的なFlexboxプロパティを準備します。
*/
.news-article-card {
  /* 必要に応じて、カード全体の背景や枠線、パディングを追加 */
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;

  /* モバイル優先の縦並びスタイル (ここではデフォルトのブロック要素のまま) */
}

/* サムネイルエリアの共通スタイル */
.card-thumbnail {
  flex-shrink: 0; /* サムネイルが縮小しないように固定 */
}

/* ピックアップセクション（大型）のサムネイル調整 */
.pickup-section .card-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* お知らせセクション（小型）のサムネイル調整 */
.card-thumbnail.small img {
  /* WordPressの 'thumbnail' サイズに合わせて固定 */
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

/* テキスト部分のコンテナが残りのスペースを埋めるように設定 */
.card-content-wrap {
  /* flex-grow: 1; はデスクトップの横並び設定と合わせて responsive.css で適用します。 */
}

/* デフォルト画像コンテナ（card-thumbnail に追加される default-thumbnail クラス） */
.default-thumbnail {
  /* アイキャッチがない場合に、画像が収まるように背景色を付けるなど */
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 必要に応じて、画像が表示されていない場合の最小の高さを設定 */
  min-height: 150px;
}
/* default-thumbnail 内の img 要素（実際の代替画像） */
.default-thumbnail img {
  /* 画像が小さすぎる場合は拡大表示を制御 */
  object-fit: contain;
}

.btn-news-all {
  margin: 0 0.5em;
  padding: 0.3em 0.6em;
  border: 2px solid #afdb3f;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition:
    background 0.3s,
    color 0.3s;
}

.btn-news-all:hover {
  color: #fff;
  background: #afdb3f;
}

/* ==========================================================
* ページネーション (PAGINATION LINKS) のスタイルを追加
* ========================================================== */

/* ページネーションコンテナ (info-full.phpで追加したクラス) */
.pagination-links {
  /* Tailwindの 'flex justify-center space-x-2' で基本的なレイアウトは完了 */
  font-size: 0.95rem;
}

/* ページネーション内のリンクと現在のページ番号の共通スタイル */
.pagination-links a,
.pagination-links .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 0.5rem; /* 角丸 */
  border: 1px solid #d1d5db; /* 薄いグレーの枠線 */
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

/* 通常のリンクのホバー時 */
.pagination-links a:hover {
  background-color: #ffbf4a; /* タブと同じオレンジのアクセントカラー */
  border-color: #ffbf4a;
  color: #1f2937;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 現在のページを示す要素のスタイル (アクティブ状態) */
.pagination-links .current {
  background-color: #ffbf4a; /* アクティブなタブと同じオレンジ */
  border-color: #ffbf4a;
  color: #1f2937;
  font-weight: 700;
  cursor: default; /* クリックできないように */
}

/* ページネーション内の無効化された要素や、その他のテキスト要素のスタイル */
.pagination-links .dots {
  padding: 0 10px;
  color: #9ca3af;
}
