/*
Theme Name: SONATA ACADEMY Theme
Theme URI: (テーマの紹介ページのURLがあれば記入)
Author: Kota,T
Author URI: (あなたのウェブサイトのURLがあれば記入)
Description: 難関音楽大学受験サポート「SONATA ACADEMY」のカスタムWordPressテーマです。
Version: 1.0
Requires at least: 5.0
Tested up to: (テストしたWordPressのバージョン)
Requires PHP: 7.4
License: (ライセンスを指定。例: GNU General Public License v2 or later)
License URI: (ライセンスのURL。例: https://www.gnu.org/licenses/gpl-2.0.html)
Text Domain: sonata-academy
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options, translation-ready, blog, education, music

(ここに元の style.css の内容を追加してください)

*/



/* ✅ bodyの背景削除 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Serif JP', serif;
  }
  
  body.post-type-archive-instructor header,
  body.post-type-archive-news header,
  body.single-instructor header,
  body.single-news header {
  background: rgba(0, 0, 0, 0.754);
  }
  /* =================================
   ヘッダー
================================= */

/* =================================
   ヘッダー (デフォルト = スマホ版)
================================= */
header {
  /* スマホではヘッダー全体を固定 */
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column; 
}

/* ヘッダー上段 */
.header-main {
  background: #222; /* 前回のリクエスト通り */
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 10px 15px; /* スマホ用のpadding */
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1001; /* ナビより手前 */
}


/* ロゴ */
.logo-container .custom-logo-link img,
.logo-container .logo {
   height: 40px; /* スマホ用ロゴサイズ */
}

/* 右側エリア */
.header-right-area {
    display: flex;
    align-items: center;
    gap: 5px; 
}

/* アクションボタン (スマホ) */
.header-actions {
   display: flex;
   gap: 5px; 
   order: 1; 
}
.header-actions .btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px; 
  font-size: 0.7rem; 
  gap: 4px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: opacity 0.3s;
}
.header-actions .btn span {
   display: none; /* スマホでは文字を隠す */
}
@media (min-width: 480px) {
    .header-actions .btn span {
        display: inline; /* 少し広いスマホなら文字を出す */
    }
    .header-actions .btn {
        font-size: 0.8rem;
        padding: 7px 10px;
    }
}
.header-actions .btn:hover {
  opacity: 0.8;
}
.btn-trial i {
  color: #5a9a00;
}

/* ハンバーガーボタン (スマホ) */
.menu-toggle {
  display: block; /* スマホで表示 */
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1002; 
  order: 2;
}
.menu-toggle-icon {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: background 0.3s ease 0.1s;
}
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease;
}
.menu-toggle-icon::before { transform: translateY(-8px); }
.menu-toggle-icon::after { transform: translateY(8px); }
/* 開閉時 */
header.is-open .menu-toggle-icon { background: transparent; }
header.is-open .menu-toggle-icon::before { transform: translateY(0) rotate(45deg); }
header.is-open .menu-toggle-icon::after { transform: translateY(0) rotate(-45deg); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =================================
   ヘッダー下部ナビ (デフォルト = スマホ)
================================= */
#header-nav {
  /* スマホではハンバーガーメニューとして振る舞う */
  position: absolute;
  top: 100%; /* .header-main の下 */
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95); 
  padding: 20px 0;
  visibility: hidden;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000; /* .header-main (1001) の下 */
}
/* JSで header.is-open が付与されたら表示 */
header.is-open #header-nav {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

/* スマホのナビリストは縦並び */
ul.header-nav-list {
  flex-direction: column;
  align-items: center;
  width: 100%;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.header-nav-list li {
   border: none;
   width: 100%;
   text-align: center;
}
ul.header-nav-list li a {
  font-size: 1rem;
  padding: 15px 10px;
  border-bottom: 1px solid #333;
  width: 100%;
  box-sizing: border-box;
  display: block;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}
ul.header-nav-list li a:hover {
  background: #444;
}
ul.header-nav-list li:last-child a {
    border-bottom: none;
}

/* =================================
   メインコンテンツ
================================= */
#main-content {
  /* スマホではJSで固定ヘッダー分のpadding-topが設定されます */
  transition: padding-top 0.3s ease; 
}


/* =================================
   PC版 (769px以上) の上書き
================================= */
@media (min-width: 769px) {

  /* PCではヘッダーの固定を解除 */
  header {
    position: relative;
  }

  /* 上段 (PC) */
  .header-main {
    padding: 10px 40px; /* PC用padding */
    z-index: 1001;
  }
  .logo-container .custom-logo-link img,
  .logo-container .logo {
    height: 55px; /* PC用ロゴサイズ */
  }

  /* アクションボタン (PC) */
  .header-right-area {
      gap: 15px;
  }
  .header-actions {
     gap: 15px;
  }
  .header-actions .btn {
    padding: 10px 20px;
    font-size: 1rem;
    gap: 8px;
  }
  .header-actions .btn span {
     display: inline; /* PCでは文字を表示 */
  }
  .header-actions .btn i {
    font-size: 1.2em;   /* ← 1.15〜1.25em で微調整OK */
  }


  /* ハンバーガーボタン (PC) */
  .menu-toggle {
    display: none; /* PCでは非表示 */
  }

  /* 下段ナビ (PC) */
  #header-nav {
    /* ハンバーガースタイルを全てリセット */
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    background: #222;
    padding: 0 ;
    visibility: visible;
    transform: none;
    opacity: 1;
    transition: none;
    display: flex;
    justify-content: center;
    z-index: 1000;
  }
  
  /* ▼ PC用: スクロールで追従するメニューバーのためのスタイル ▼ */
  #header-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
  }

  /* ナビリスト (PC) : 等間隔で横幅いっぱい */
ul.header-nav-list{
  width: 100%;
  margin: 0;                 /* 中央寄せ不要 */
  padding: 0;

  display: grid;
  grid-auto-flow: column;    /* 横並び */
  grid-auto-columns: 1fr;    /* 各項目を等幅に */
  align-items: stretch;
}

ul.header-nav-list li{
  width: 100%;
  border-right: 1px solid #777;
  text-align: center;
}
ul.header-nav-list li:first-child{
  border-left: 1px solid #777;
}

ul.header-nav-list li a{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 10px;        /* 好みでOK */
  font-size: 0.9rem;
  border: none;
  box-sizing: border-box;
  white-space: nowrap;       /* 折り返したいなら消す */
}

/* ===== PCヘッダー：外側のバーを削除 ===== */
@media (min-width: 769px) {

  /* すべての li に右ボーダーを付ける */
  ul.header-nav-list li{
    border-right: 1px solid #777;
  }

  /* 最後の項目の右ボーダーを消す（右端） */
  ul.header-nav-list li:last-child{
    border-right: none;
  }

  /* 左端のボーダーを完全に削除 */
  ul.header-nav-list li:first-child{
    border-left: none;
  }
}

  
  /* メインコンテンツ (PC) */
  #main-content {
    /* スマホ用のpadding-topをリセット */
    /* JSが .is-sticky 時に動的にpadding-topを設定します */
    padding-top: 0 !important; 
  }
}

  .floating-cta {
    /* ... （位置、色、形、文字などの基本スタイルは前回のまま） ... */
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #005bac;
    color: #fff;
    padding: 12px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  
    /* --- ▼ 初期状態を非表示にするスタイル ▼ --- */
    opacity: 0;               /* 透明にする */
    visibility: hidden;       /* アクセシビリティのために非表示状態を明確に */
    transform: translateY(20px); /* 少し下に配置しておく（アニメーション用） */
  
    /* --- ▼ 表示・非表示を滑らかにするトランジション ▼ --- */
    /* opacity, visibility, transform の変化を 0.4秒 かけて滑らかに行う */
    /* 他のプロパティ（ホバー用）のトランジションも維持 */
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  }
  
  /* --- ▼ 表示状態のスタイル（JavaScriptでこのクラスを追加/削除する） ▼ --- */
  .floating-cta.visible {
    opacity: 1;               /* 不透明にする */
    visibility: visible;      /* 表示状態にする */
    transform: translateY(0); /* 元の位置に戻す */
  }
  
  /* ホバー効果（表示されている時のみ適用されるように） */
  .floating-cta.visible:hover {
    background-color: #004a8c; /* 少し濃い青 */
    /* 表示時の translateY(0) から更に少し上に移動 */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.22);
  }
  
  /* アイコン用のスタイル（変更なし） */
  /* .floating-cta i { ... } */

  /* ( .floating-cta のCSSは変更なし ) */

/* ✅ ファーストビュー */
.hero {
  position: relative;
  height: 100vh;
  color: white;
  
  /* ▼ レイアウトを flex に変更し、内容を中央揃え ▼ */
  display: flex;
  justify-content: center; /* 水平中央 */
  align-items: center;   /* 垂直中央 */
  padding: 40px 20px;    /* 左右の余白 */
  box-sizing: border-box;
}


@media (min-width: 769px) {
  .hero .text-section {
    transform: translate(-90px, -70px);
  }
}

/* ▼ テキストを読みやすくするための暗いオーバーレイ ▼ */
.hero-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* 暗さ（0.4 = 40%） */
  z-index: 1;
}

.text-section {
  /* ▼ absolute や top/left を削除し、相対位置に変更 ▼ */
  position: relative; 
  text-align: left;
  max-width: 1000px; /* テキストが横に広がりすぎないように */
  z-index: 2; /* オーバーレイ(z-index: 1)より手前に表示 */
}

/* .hero のテキスト部分 (フォントサイズ調整) */
.hero .text-section h2 {
  font-size: 2.8rem; /* 3remから少し調整 (お好みで変更可) */
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  line-height: 1.3;
}

.hero .text-section h1 {
  font-size: 3.8rem; /* 3remから少し調整 (お好みで変更可) */
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  line-height: 1.3;
}


.hero .text-section p {
  font-size: 1.3rem; /* 1.6remから少し調整 */
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ▼ 2つ目のH2（"音楽大学..."）の上に余白を追加 ▼ */
.hero .text-section h2:nth-of-type(2) {
   margin-top: 25px;
}

@media (max-width: 768px) {
  .hero .text-section h1 {
    font-size: 3rem;
    line-height: 1.3;
  }
}


/* .Industry-first のスタイルは不要であれば削除 (h2に統合したため) */

/* ▼▼▼ .profile 関連のCSSは全て削除します ▼▼▼ */
/*
.profile {
  ... (削除) ...
}
.profile img {
  ... (削除) ...
}
*/
/* ▲▲▲ ここまで削除 ▲▲▲ */


/* スマホ表示時 (幅 767px 以下) は <br class="br-sp"> が有効 (デフォルト) */
/* PC表示時 (幅 768px 以上) に <br class="br-sp"> を非表示にする */
@media (min-width: 768px) {
  .br-sp {
    display: none;
  }
}

/* --- スマートフォン向け Hero レイアウト --- */
@media (max-width: 768px) {

  .hero {
    /* PC版の flex を上書きし、元のレイアウトに戻す */
    display: block;
    padding: 0;
    overflow: hidden;
  }

  .text-section {
    /* ▼ PC版から上書き (元のスマホ用レイアウトを維持) ▼ */
    position: absolute;
    top: calc(70px + 6vh); /* ヘッダー下の位置 (元のまま) */
    left: 8%;             /* (元のまま) */
    width: 84%;           /* (元のまま) */
    max-width: 420px;     /* (元のまま) */
    text-align: left;
    box-sizing: border-box;
    z-index: 2;
  }

  .hero .text-section h2 {
    font-size: 1.8rem; /* (元の 1.7rem から少し調整) */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.6);
  }
  .hero .text-section p {
    font-size: 1.0rem; /* (元の 0.9rem から少し調整) */
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.5;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  }

  /* ▼ 2つ目のH2（"音楽大学..."）の上に余白を追加 ▼ */
  .hero .text-section h2:nth-of-type(2) {
    margin-top: 20px;
  }
   
  /* ▼▼▼ .profile 関連の @media 内のCSSは全て削除します ▼▼▼ */
  /*
  .profile {
    ... (削除) ...
  }
  .profile img {
    ... (削除) ...
  }
  .profile .profile-text p {
    ... (削除) ...
  }
  */
  /* ▲▲▲ ここまで削除 ▲▲▲ */
}
/* --- 修正ここまで --- */
  
  /* ✅ コンテンツセクション
  .content-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
  color: black;
  background-color: white;
  }
  .content-section h2 {
  color: #333;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  } */

 /* ✅ コンテンツセクション (Intro) */
.content-section {
  width: 100%;
  background-color: white;
  padding: 80px 20px; /* 上下の余白を広めに */
  color: #333;
  text-align: center;
  box-sizing: border-box;
}

.intro-container {
  max-width: 800px; /* 読みやすい幅に制限 */
  margin: 0 auto;
}

/* タイトルスタイル */
.content-section h2 {
  color: #333;
  font-size: 1.8em; /* PCでは少し大きく */
  font-weight: 600; /* 明朝体の場合は太すぎない方が綺麗 */
  margin-bottom: 30px;
  line-height: 1.4;
  font-family: 'Zen Kaku Gothic Antique', serif; /* テーマのフォントに合わせる */
}

/* 装飾アイコンエリア */
.intro-icon {
  margin: 0 auto 35px; /* タイトルと本文の間隔 */
  width: 60px; /* アイコンの幅目安 */
  height: auto;
}

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

/* 本文スタイル */
.content-section p {
  font-size: 1.05rem;
  line-height: 2.2; /* 行間を広げて読みやすく */
  color: #555;
  font-weight: 500;
  margin-bottom: 0;
}

/* PCのみ改行を有効にするクラス */
@media (min-width: 769px) {
  .pc-br {
    display: inline;
  }
}
@media (max-width: 768px) {
  .pc-br {
    display: none; /* スマホでは自動折り返し */
  }
  
  .content-section {
    padding: 60px 20px;
  }

  .content-section h2 {
    font-size: 1.4em; /* スマホでの文字サイズ調整 */
    margin-bottom: 25px;
  }
  
  .content-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify; /* スマホでは左揃え(両端揃え)の方が見やすい場合が多い */
  }
}

/* (以下、元のCSSの .st_school .st_name へ続く) */

/* ✅ コンテンツセクション (Three Pillars) */
.content-section.three-pillars {
  background-color: #e0e0e0; /* 画像の薄いグレー */
  max-width: none; /* 900pxの制限を解除し、全幅にします */
  margin: 0 auto; /* 上下のmarginをリセット（必要に応じて 80px auto などに戻してください） */
  padding: 80px 20px;
  text-align: center;
  color: #333; /* テキストの基本色 */
}

.pillars-intro {
  max-width: 800px;
  margin: 0 auto 50px auto; /* 3つの柱との間に余白 */
  color: #333;
  font-size: 1.1rem;
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCで3列 */
  gap: 40px; /* カード間の隙間 */
  max-width: 1000px;
  margin: 0 auto;
}

.pillar-item {
  position: relative;
  padding-top: 30px; /* 数字サークルのためのスペース */
}

.pillar-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #333; /* 暗いグレーの円 */
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2; /* カードより手前 */
}

.pillar-card {
  background-color: #edecec; /* カードの背景色 (少し明るいグレー) */
  border-radius: 15px; /* 角丸 */
  padding: 60px 20px 30px 20px; /* 上(アイコン用)、左右、下 */
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  box-sizing: border-box;
  z-index: 1;
}

.pillar-icon {
  margin-bottom: 20px;
}

.pillar-icon img {
  height: 60px; /* アイコンの高さを統一 */
  width: auto;
}

/* --- Three Pillars 文章部分 --- */
.pillar-title {
  margin-bottom: 15px;
  line-height: 1.3;
  color: rgb(146, 12, 39);
  
}

/* 英語表記 */
.pillar-en {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #777;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* 説明文 */
.pillar-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin: 0;
  text-align: center;
  text-align: left;
}


/* 📱 レスポンシブ対応 (768px以下で1列) */
@media (max-width: 768px) {
  .content-section.three-pillars {
    padding: 60px 20px;
  }

  
  
  .pillars-grid {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 50px; /* 縦の隙間を広げる */
    max-width: 400px; /* スマホでの最大幅 */
  }

  .pillar-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .pillar-en {
    font-size: 0.75rem;
  }
  
  .pillars-intro {
    font-size: 1rem;
  }

  .pillar-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .pillar-item {
    padding-top: 25px; /* サークルが50pxになったため */
  }
  
  .pillar-card {
     padding: 50px 20px 25px 20px;
  }

  .pillar-icon img {
    height: 50px;
  }

  .pillar-title {
    font-size: 1.3rem;
  }
}

/* 指導実績セクションの背景とスタイル */
.achievements-section {
  background-color: #f7f7f7; /* ← 画像に近い薄グレー */
  padding: 60px 20px;
  text-align: center;
}
.achievements-section h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 5px;
}
.achievements-section .subheading {
  font-size: 1em;
  margin-bottom: 40px;
  color: #555;
}
/* カードレイアウト */
.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.card {
  min-width: 0;
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}
.card h3 {
  font-size: 1em;
  margin-bottom: 5px;
}
.card .description {
  font-size: 0.9em;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 下部リンク */
.view-more a {
  font-weight: bold;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.view-more a:hover {
  border-color: #333;
}
/* 📱 レスポンシブ対応（スマホで2列） */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .card-container {
    grid-template-columns: 1fr;
  }
}

/* --- Problems Section (音大受験のさまざまな課題) --- */
.problem-section {
  background-color: #ebeaea; /* 白背景 */
  padding: 80px 20px;
  text-align: center;
}

.problem-section .section-title {
  font-size: 2em; /* タイトルサイズ */
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  /* border-bottom や display: inline-block は画像にないため削除 */
  padding-bottom: 0;
}

.problem-intro-text {
  font-size: 1em;
  color: #555;
  margin-bottom: 60px; /* カードとの間の余白 */
  line-height: 1.6;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PCで2列 */
  gap: 40px 60px; /* 縦横の隙間 */
  max-width: 900px; /* 全体の最大幅 */
  margin: 0 auto;
}

.problem-item {
  position: relative; /* 数字を重ねるために必要 */
  display: flex;
  flex-direction: column; /* 数字とカードを縦に並べる */
  align-items: center; /* 中央揃え */
  text-align: center; /* テキストを中央揃えにする */
}

.problem-number {
  font-size: 2.5em; /* 大きい数字 */
  font-weight: bold;
  color: #b92c2c; /* ★赤色に変更★ */
  margin-bottom: -15px; /* ★カードと重ねるためマイナス値で調整★ */
  line-height: 1;
  z-index: 2; /* カードより手前に表示 */
  position: relative; /* z-indexを有効にするため */
}

.problem-card {
  background-color: #f8f8f8; /* カードの背景色 */
  padding: 25px 30px;
  border-radius: 8px;
  /* ★立体的な影を調整。ホバーエフェクトは削除★ */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15),
              0 3px 6px rgba(0, 0, 0, 0.10);
  flex-grow: 1;
  width: 100%; /* 親要素(problem-item)の幅に合わせる */
  box-sizing: border-box; /* paddingを含めて幅を計算 */
  z-index: 1; /* 数字より奥に表示 */
}

.problem-card-title {
  font-size: 1.2em; /* カード内タイトル */
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0; /* 段落の下マージンをリセット */
}
/* ✅ スマホ表示で縦並び (既存のものを修正) */
@media (max-width: 768px) {
  .problem-section {
    padding: 60px 20px;
  }

  .problem-section .section-title {
    font-size: 1.6em;
  }

  .problem-intro-text {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .problem-grid {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 30px; /* 縦の隙間 */
    max-width: 350px; /* スマホでのカードの最大幅 */
  }

  .problem-item {
    flex-direction: column; /* スマホでも縦並び */
    align-items: center; /* 中央揃え */
    text-align: center; /* テキストも中央揃え */
  }

  .problem-number {
    margin-bottom: -10px; /* ★スマホでの重なり調整★ */
    font-size: 2em; /* スマホでの数字サイズ */
  }

  .problem-card {
    padding: 20px 25px;
  }
  
  .problem-card p {
    font-size: 0.9em;
  }
}

  /* ✅ スマホ表示で縦並び */
  /* @media (max-width: 768px) {
  .problem-container {
  flex-direction: column;
  align-items: center;
  }
  .problem-card {
  width: 100%;
  max-width: 90%;
  }
  } */
  
  /* カード全体をリンク化しつつ、中のテキストスタイルを維持するためのCSS */
  
  .card-linked {
  position: relative; /* 疑似要素の配置基準にする */
  }
  
  a.card-cover-link {
  /* リンク自体の下線や色をリセット (タイトル部分に適用) */
  text-decoration: none;
  color: inherit; /* 親要素 (h3) の色を継承 */
  /* 必要であれば display: block; などを追加 */
  }
  
  a.card-cover-link::after { /* リンクのクリック範囲を広げるための疑似要素 */
  content: ""; /* 疑似要素には content が必須 */
  position: absolute; /* 親要素 (.card-linked) を基準に絶対配置 */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.01); /* デバッグ用に一時的に色を付けると範囲が分かりやすい */
  z-index: 1; /* 他の要素より手前に来るようにする (ただし、カード内にボタンなど他のクリック要素がある場合は調整が必要) */
  }
  
  /* カード内の他の要素がクリックできなくならないように念のため設定 */
  /* (今回のコードでは必須ではないかもしれませんが、より安全にするため) */
  .card-linked > *:not(a.card-cover-link) {
  position: relative; /* または必要に応じて */
  z-index: 2; /* リンクカバー(z-index: 1)より手前に表示 */
  }
  /* 特に画像(img)やテキスト(h3, p)はデフォルトで z-index が auto なので、
  リンクカバーの疑似要素(z-index: 1)より上に表示されるためには z-index を指定した方が確実です。 */
  .card-linked .st_name,
  .card-linked .st_school,
  .card-linked .st_instrument,
  .card-linked .description,
  .card-linked img { /* 画像もカバーの後ろに行かないように */
  position: relative;
  z-index: 2;
  }
  /* h3内のstrongタグはリンクの一部なのでz-indexは不要 */
  
  
  /* オプション：ホバー時のスタイル（カード全体に適用されるように見せる） */
  .card-linked:hover {
  /* 例：少し浮き上がらせる */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  }
  /* 元々 .card:hover のスタイルがあれば、それを .card-linked:hover に適用 */
  
  /* --- ここから追加 --- */
  
  /* 講師紹介アーカイブ ヘッダースタイル */
  .instructor-archive-header {
  display: flex;
  flex-direction: column;
  justify-content: center; /* 縦方向中央揃え */
  align-items: center; /* 横方向中央揃え */
  text-align: center;
  margin-bottom: 50px;
  height: 200px; /* 中央に見せるための高さ。必要に応じて調整 */
  }
  
  
  .instructor-archive-main-title {
  font-size: 2.2em; /* メインタイトルのサイズ（要調整） */
  font-weight: normal; /* english-titleクラスでフォント指定済みの場合は normal で良いかも */
  color: #444; /* 文字色（要調整） */
  margin-bottom: 8px; /* メインとサブタイトルの間のスペース（要調整） */
  /* .english-title クラスにより Playfair Display フォントが適用される想定 */
  }
  
  /* カード全体を囲むリンクのデフォルトスタイルをリセット */
  a.card-link-wrapper,
  a.card-link-wrapper:visited,
  a.card-link-wrapper:hover, /* ホバー時も含む */
  a.card-link-wrapper:focus, /* フォーカス時も含む */
  a.card-link-wrapper:active /* クリック時も含む */
  {
  display: block; /* レイアウト維持 */
  color: inherit; /* 親要素の色を継承 (これが基本) */
  text-decoration: none !important; /* ★ 下線を絶対につけない */
  outline: none; /* フォーカス時のアウトラインが不要な場合 */
  -webkit-tap-highlight-color: transparent; /* スマホでのタップハイライトを消す */
  height: 100%; /* レイアウト維持 */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
  
  /* カード自体のスタイル（変更または確認） */
  .card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  }
  
  /* カード内のテキスト要素の色を明示的に指定（リンク色にならないように） */
  .card h3,
  .card h3 strong, /* strongタグも対象に */
  .card p,
  .card .description {
  /* ★ ここでカード内の本来の文字色を指定 (例: 黒 #000 or 濃いグレー #333) */
  color: #333 !important;
  /* 念のため下線もリセット */
  text-decoration: none !important;
  /* 必要であれば font-weight なども指定 */
  }
  
  /* ホバー時のスタイル（カードを少し浮き上がらせるなど） */
  a.card-link-wrapper:hover .card {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  
  /* ホバー時もカード内のテキストの色や下線が変わらないことを保証 */
  a.card-link-wrapper:hover .card h3,
  a.card-link-wrapper:hover .card h3 strong,
  a.card-link-wrapper:hover .card p,
  a.card-link-wrapper:hover .card .description {
  /* ★ 通常時と同じ文字色を再指定 */
  color: #333 !important;
  text-decoration: none !important;
  }
  
  /* 以前の疑似要素を使ったリンク拡張CSSは不要 (削除またはコメントアウト) */
  /* .card-linked, a.card-cover-link, a.card-cover-link::after など */
  
  /* --- ここまで追加 --- */
  
  
  /* ----- 既存の調整コード（これらは残してください）----- */
  
  /* 講師紹介ページのタイトルが固定表示されないように強制的に position をリセット */
  /* .page-header に instructor-archive-header クラスを追加したので、セレクタを変更してもOK */
  .post-type-archive-instructor .instructor-archive-header { /* ← セレクタ更新推奨 */
  position: static !important;
  }
  
  /* 講師紹介アーカイブページのメインコンテンツをヘッダー下に配置するための調整 */
  .post-type-archive-instructor #main {
  padding-top: 100px; /* ヘッダー下のスペース（要調整） */
  }
  
  @media (max-width: 768px) {
  .post-type-archive-instructor #main {
  padding-top: 80px; /* モバイルでのヘッダー下のスペース（要調整） */
  }
  /* 必要であればモバイルでのタイトルサイズ調整 */
  .instructor-archive-main-title {
  font-size: 1.8em;
  }
  .instructor-archive-sub-title {
  font-size: 0.9em;
  }
  }
  /* ----- 既存の調整コードここまで ----- */
  
  
  /* --- 修正ここまで --- */
  /* sonata特徴 */
  .features-section .feature-item{
    background: #f1f1f1;          /* ← 背景色（好みで変更） */
    border-radius: 18px;
    padding: 55px 60px; 
    margin-bottom: 50px;
    margin: 0 230px 60px;  /* ← 左右40px / 下60px */
    align-items: center;          /* 画像とテキストの縦位置を揃える */
  }

 


  /* reverse のときも同じカード見た目にする（保険） */
.features-section .feature-item.reverse{
  background: #f1f1f1;
}

/* 画像を角丸にしてカードに馴染ませる */
.features-section .feature-image img{
  border-radius: 16px;
}



.features-title {
  font-size: 2.0em; /* "なぜ私たちは..." のサイズ */
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 80px;
  color: #333;
  text-align: center; /* ★これを追加 */
}

.features-subtitle {
  font-size: 1.0em;
  color: #555;
  margin-bottom: 80px; /* 各Pointとの間の余白 */
  line-height: 1.7;
  text-align: center; /* ★これを追加 */
}

.feature-item {
  display: flex;
  justify-content: space-between;
  /* align-items: flex-start; ← この行を変更 */
  align-items: flex-end; /* ★こちらに修正（垂直中央揃え） */
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 40px;
}

.feature-item.reverse {
  flex-direction: row-reverse; /* 画像とテキストを反転 */
}

.feature-text {
  /* flex: 1; ← 変更 */
  flex: 1.2; /* ★テキスト側の比率を 1.2 に（少し広く）*/
  min-width: 300px;
  padding: 0;
  text-align: left;
}


/* "Point 1" のスタイル */
.feature-text h3 {
  font-size: 1.5em;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

/* 赤い見出しのスタイル */
.feature-text h4 {
  font-size: 1.8em;
  font-weight: bold;
  color: #b92c2c; /* 赤色 */
  border-bottom: none; /* 既存の下線を削除 */
  margin-bottom: 20px;
  padding-bottom: 0;
  line-height: 1.4;
}

.feature-text p {
  font-size: 1.0em;
  line-height: 1.7;
  color: #333;
}

.feature-image {
  /* flex: 1.2; ← 変更 */
  flex: 1; /* ★画像側の比率を 1 に（少し狭く）*/
  min-width: 300px;
  padding: 0;
  display: flex;
  /* justify-content: center; ← 変更 */
  align-items: flex-start; /* ★align-items: flex-start に合わせる */
}

.feature-image img {
  width: 100%;
  aspect-ratio: 21 / 9;    /* 横長の比率を維持 */
  object-fit: cover;       /* トリミング */
  object-position: center; 
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px){
  .features-section .feature-item{
    padding: 28px 22px;
    border-radius: 16px;
  }

  .features-section .feature-image{
    width: 100%;
  }
}

/* スマホ対応：縦並び・画像下配置 */
@media (max-width: 768px) {
 
  
  .features-title {
    font-size: 1.6em;
    text-align: center; /* スマホでは中央揃え */
  }

  .features-subtitle {
    text-align: center; /* スマホでは中央揃え */
    font-size: 0.95em;
    margin-bottom: 60px;
  }
  
  .feature-item,
  .feature-item.reverse {
    flex-direction: column; /* 強制的に縦並び */
    margin-bottom: 60px;
    align-items: center; /* 子要素 (.feature-text, .feature-image) を中央揃え */
  }

  .feature-text {
    padding: 0;
    margin-bottom: 30px; /* 画像とのマージンを調整 */
    text-align: center;
    
    /* ▼▼▼ 画像と幅を合わせる ▼▼▼ */
    width: 50%; /* ★この数値を調整 (例: 90%) */
    min-width: 0; /* PC用のmin-widthをリセット */
  }
  
  .feature-text h4 {
    font-size: 1.5em;
  }

  /* ▼▼▼ 画像の幅を小さくする ▼▼▼ */

  
  .feature-image img {
    width: 100%; /* 親 (.feature-image) の幅に合わせる */
    aspect-ratio: 16 / 9; /* スマホでは 16:9 の比率に変更 */
  }
}

/* ===== Features: SP崩壊対策 ===== */
@media (max-width: 768px) {

  /* セクション全体：左右の余白を確保 */
  .features-section{
    padding: 0 16px;
  }

  /* タイトル：大きすぎ＆改行崩れを防ぐ */
  .features-title{
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin: 40px auto 12px;
    max-width: 22em;          /* 変な折り返しを抑える */
    text-align: center;
    word-break: keep-all;     /* 日本語の不自然な分割を抑える */
    overflow-wrap: anywhere;  /* どうしても溢れる時の保険 */
  }

  /* サブタイトル：読みやすく */
  .features-subtitle{
    font-size: 14px;
    line-height: 1.9;
    margin: 0 auto 28px;
    max-width: 40ch;
    text-align: center;
  }

  /* ここが重要：横並びをやめて縦にする */
  .features-section .feature-item{
    display: flex;
    flex-direction: column;   /* ← 横並び崩壊の根本原因を解消 */
    gap: 16px;
    padding: 22px 18px;       /* SP用に内側余白を調整 */
    margin: 0 0 24px;         /* 左右marginは消す（section側で管理） */
  }

  /* reverse もスマホでは同じ縦並びに統一 */
  .features-section .feature-item.reverse{
    flex-direction: column;
  }

  /* テキスト/画像は幅100%で */
  .features-section .feature-text,
  .features-section .feature-image{
    width: 100%;
  }

  /* Point見出し・赤タイトルもSP用に縮小 */
  .features-section .feature-text h3{
    font-size: 16px;
    margin-bottom: 6px;
  }
  .features-section .feature-text h4{
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  /* 画像の比率と角丸を安定させる */
  .features-section .feature-image img{
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
  }
}
@media (max-width: 768px) {

  /* タイトル：左右にしっかり余白を作る */
  .features-title{
    padding-left: 24px;   /* ← 両サイドの余白 */
    padding-right: 24px;
    max-width: 680px;     /* ← 他セクションと揃える“本文幅” */
    margin-left: auto;
    margin-right: auto;

    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.25;
    text-align: center;
    word-break: keep-all;
  }

  /* サブタイトルも同じ幅ルールで揃える */
  .features-subtitle{
    padding-left: 24px;
    padding-right: 24px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;

    font-size: 14px;
    line-height: 1.9;
    text-align: center;
  }
}



  /* =================================
   SNSコネクトセクション
================================= */
.sns-connect-section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  color: #fff;
  
  /* --- 背景画像 --- */
  background-color: #222; /* 画像読み込み前の背景色 */
  background-repeat: no-repeat;
  
  /* ★ ご要望のレイアウト
     1. 画像を右側に固定 */
  background-position: right center;
  /* 2. 画像でコンテナを覆う (これにより、ウィンドウが狭まると
        background-position: right の指定により左側から切れる) */
  background-size: cover; 
}

/* テキストの可読性を上げるための暗いオーバーレイ */
.sns-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg, 
    rgba(0, 0, 0, 0.7) 0%,   /* 左側は濃いめ */
    rgba(0, 0, 0, 0.4) 50%,  /* 中央で少し薄く */
    rgba(0, 0, 0, 0.1) 100%  /* 右側はほぼ透明に */
  );
  z-index: 1;
}

/* テキストコンテンツのラッパー */
.sns-content-wrapper {
  position: relative;
  z-index: 2; /* オーバーレイより手前 */
  
  /* サイトの他のセクションの最大幅と余白に合わせる */
  max-width: 1000px; 
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
}

.sns-content-wrapper h2 {
  font-size: 2.2em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.sns-subtitle {
  font-size: 1.1em;
  color: #e0e0e0; /* 少し明るい白 */
  margin-bottom: 40px;
}

.sns-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 25px; /* 各リンク間の余白 */
}

.sns-links-list li a {
  display: inline-flex; /* アイコンとテキストを横並び */
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.3em;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.sns-links-list li a:hover {
  opacity: 0.8;
}

.sns-icon {
  width: 30px; /* アイコンサイズ */
  height: auto;
  margin-right: 15px; /* アイコンとテキストの隙間 */
}

/* =================================
   SNSセクション (スマホ対応)
================================= */
@media (max-width: 768px) {
  .sns-connect-section {
    padding: 80px 20px;
    
    /* スマホでは画像の重要な部分が見えるよう中央寄りに */
    background-position: 70% center; 
  }

  .sns-content-wrapper {
    padding: 0;
    text-align: center; /* スマホでは中央揃え */
  }

  .sns-content-wrapper h2 {
    font-size: 1.8em;
  }

  .sns-subtitle {
    font-size: 1.0em;
    margin-bottom: 30px;
  }
  
  .sns-links-list li a {
    font-size: 1.1em;
    justify-content: center; /* リンクを中央揃え */
  }

  /* スマホではオーバーレイを全体的に少し濃くする */
  .sns-section-overlay {
    background: rgba(0, 0, 0, 0.6);
  }
}
@media (max-width: 768px){
  .sns-section, .social-section{
    transform: none !important;
  }
  .sns-section [style*="100vw"],
  .social-section [style*="100vw"]{
    width: 100% !important;
  }

  /* 変形で飛び出してる要素を全部戻す */
  .sns-section *{
    transform: none !important;
  }
}
@media (max-width: 768px){

  /* 親を必ず画面幅に収める */
  .sns-connect-section{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;     /* ここ重要 */
    position: relative;     /* overlay の基準 */
  }

  /* overlay も親幅に合わせて強制 */
  .sns-section-overlay{
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 中身のラッパーが広がってるケースを潰す */
  .sns-content-wrapper{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 16px;     /* 他のセクションに揃える用（お好みで） */
    padding-right: 16px;
  }
}
@media (max-width: 768px){
  .sns-content-wrapper{
    text-align: left;
  }

  /* アイコン＋文字の行（クラス名が違うなら教えて） */
  .sns-links,
  .sns-items{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .sns-links a,
  .sns-items a{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 文字が長い LINE で横に押し出されるの防止 */
  .sns-links a span,
  .sns-items a span{
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 768px){
  .sns-connect-section *{
    max-width: 100%;
  }
}

/* ===== SNS: 横スクロール完全防止 ===== */
@media (max-width: 768px){
  html, body{
    overflow-x: hidden;
  }

  .sns-connect-section{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .sns-content-wrapper,
  .sns-links-list,
  .sns-links-list li,
  .sns-links-list li a{
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 長い文字（LINE〜）が原因で押し出されるのを防止 */
  .sns-links-list li a span{
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;   /* 長文でも折り返す */
    word-break: break-word;
  }

  /* 画像が原因で押し出されるのも防止 */
  .sns-icon{
    flex: 0 0 auto;
  }
}


  .courses-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #dddbdb;
  }
  .courses-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 5px;
  }
  .courses-subtitle {
  font-size: 0.95em;
  color: #090909;
  margin-bottom: 50px;
  }
  .courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  }
  .course-card {
  background-color: #fffcfc;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  }
  .course-card img{
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
  }
  
  .course-card h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 10px;
  }
  .course-card hr {
  width: 60%;
  margin: 0 auto 10px;
  border: none;
  border-top: 1px solid #999;
  }
  .course-card p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.5;
  }
  .courses-note {
  margin-top: 40px;
  font-size: 1.25em;
  color: #444;
  }
  .courses-note a {
  color: #0047ab;
  text-decoration: underline;
  }
  /* スマホ対応：2列×2段 */
  @media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    max-width: 1400px; /* 5枚なら1200だと窮屈なので少し広げるのおすすめ */
  }
  .course-card img {
  max-width: 60px;
  }
  }
  .video-section {
  background-color: #f3f3f3;
  padding: 80px 20px;
  }
  .video-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  }
  .video-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
  }
  .video-text h2 {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  }
  .video-text hr {
  width: 100px;
  margin-left: 0;
  border: none;
  border-top: 1px solid #444;
  margin-bottom: 15px;
  }
  .video-text p {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 30px;
  }
  .video-link {
  font-size: 0.95em;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  }
  .video-link:hover {
  text-decoration: underline;
  }
  .video-embed {
  flex: 1;
  min-width: 300px;
  aspect-ratio: 16 / 9;
  max-width: 600px;
  }
  /* スマホ対応：縦並びに */
  @media (max-width: 768px) {
  .video-container {
  flex-direction: column;
  text-align: center;
  }
  .video-text {
  text-align: center;
  }
  .video-text hr {
  margin: 0 auto 15px;
  }
  }
  .news-section {
  padding: 80px 20px;
  text-align: center;
  }
  .news-title h2 {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 5px;
  }
  .news-title p {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 40px;
  }
  .news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
  }
  .news-item {
  display: flex;
  gap: 20px;
  text-align: left;
  }
  .news-list .news-item > a,
.archive-news-list .news-item > a{
  display: block;
  width: 200px;              /* 今のデザインに合わせて */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;        /* 任意 */
  flex-shrink: 0;
}

/* 画像は枠いっぱいにトリミングして埋める */
.news-list .news-item > a img,
.archive-news-list .news-item > a img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
  .news-item img {
  width: 200px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  }
  .news-content {
  flex: 1;
  }
  .news-date {
  font-size: 0.9em;
  color: #666;
  display: block;
  margin-bottom: 5px;
  }
  .news-title {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 10px;
  }
  .news-summary {
  font-size: 0.9em;
  color: #444;
  line-height: 1.5;
  }
  .news-link a {
  font-size: 0.95em;
  color: #000;
  text-decoration: none;
  }
  .news-link a:hover {
  text-decoration: underline;
  }
  
  .news-title a {
  text-decoration: none; /* 下線を消す */
  color: inherit; /* 親の色（h3など）を使う */
  }
  .news-title a:hover {
  text-decoration: none;
  color: inherit;
  }
  /* スマホ対応：縦1列に */
  @media (max-width: 768px) {
  .news-list {
  grid-template-columns: 1fr;
  }
  .news-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  }
  .news-item img {
  width: 100%;
  max-width: 300px;
  }
  .news-content {
  text-align: left;
  }
  }
  
  /* ===== ニュースアーカイブページのレイアウト調整 ===== */
  
  /* メインコンテンツエリアの確保 */
  .news-archive #main {
  display: block; /* 明示的にブロック要素に */
  width: 100%;
  max-width: 1200px; /* 必要に応じて最大幅を設定 */
  margin: 0 auto; /* 中央揃え */
  padding-top: 100px; /* ヘッダー下のスペース（既存の調整を維持） */
  box-sizing: border-box;
  }
  
  /* アーカイブヘッダーのスタイル */
  .news-archive-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 180px; /* タイトルの表示領域の高さ */
  margin-bottom: 40px; /* タイトルとリストの間隔 */
  width: 100%; /* 幅を100%に */
  box-sizing: border-box; /* paddingを含めて幅計算 */
  clear: both; /* floatの影響をクリア */
  position: static; /* 他の position 指定をリセット */
  }
  
  .news-archive-title {
  display: block;
  font-size: 2.2em;
  margin: 0; /* 上下のマージンをリセット */
  color: #444;
  }
  
  /* アーカイブ用ニュースリストのスタイル */
  .archive-news-list {
  display: grid; /* グリッドレイアウトはリスト内のアイテムに適用 */
  grid-template-columns: repeat(2, 1fr); /* PCでは2列 */
  gap: 40px 30px;
  width: 100%; /* 幅を100%に */
  margin: 0 auto 40px; /* 上マージンを0にし、左右中央、下にマージン */
  padding: 0 20px; /* 左右に少しパディングを追加 */
  box-sizing: border-box; /* paddingを含めて幅計算 */
  clear: both; /* floatの影響をクリア */
  }
  
  /* ===== レスポンシブ調整 ===== */
  @media (max-width: 768px) {
  .news-archive #main {
  padding-top: 80px; /* モバイルでのヘッダー下のスペース */
  }
  
  .news-archive-header {
  height: auto; /* 高さを自動に */
  padding: 30px 0; /* 上下のパディング */
  margin-bottom: 20px; /* モバイルでのマージン調整 */
  }
  
  .news-archive-title {
  font-size: 1.8em;
  }
  
  /* アーカイブ用ニュースリスト（モバイル） */
  .archive-news-list {
  grid-template-columns: 1fr; /* モバイルでは1列 */
  gap: 30px; /* モバイルでのアイテム間隔 */
  padding: 0 15px; /* モバイルでの左右パディング */
  }
  
  /* ニュースアイテム（モバイル） - 既存のスタイルを流用または調整 */
  .archive-news-list .news-item {
  flex-direction: column; /* アイテム内の要素を縦並び */
  align-items: center;
  text-align: center;
  gap: 15px; /* 画像とテキストの間隔 */
  }
  
  .archive-news-list .news-item img {
  width: 100%;
  max-width: 300px; /* 画像の最大幅 */
  height: auto;
  margin-bottom: 0; /* flexのgapで調整するため0に */
  }
  
  .archive-news-list .news-content {
  text-align: left; /* テキストは左揃え */
  width: 100%;
  }
  }
  
  /* 既存の .news-item スタイルを上書きする必要があれば追記 */
  /* 例: .archive-news-list .news-date { text-align: left; } */
  
  /* ===== ニュースアーカイブページのレイアウト調整 ===== */
  
  /* メインコンテンツエリアの確保 */
  .news-archive #main {
  display: block; /* 明示的にブロック要素に */
  width: 100%;
  max-width: 1200px; /* 必要に応じて最大幅を設定 */
  margin: 0 auto; /* 中央揃え */
  padding-top: 100px; /* ヘッダー下のスペース（既存の調整を維持） */
  box-sizing: border-box;
  }
  
  /* アーカイブヘッダーのスタイル */
  .news-archive-header {
  display: flex;
  flex-direction: column; /* タイトルとフィルターを縦に並べる */
  justify-content: center; /* 縦方向中央揃え */
  align-items: center; /* 横方向中央揃え */
  text-align: center;
  /* height: auto; を削除またはコメントアウトし、コンテンツに高さを合わせる */
  margin-bottom: 40px; /* ヘッダーとリストの間隔 */
  width: 100%; /* 幅を100%に */
  box-sizing: border-box; /* paddingを含めて幅計算 */
  clear: both; /* floatの影響をクリア */
  position: static; /* 他の position 指定をリセット */
  padding-top: 30px; /* ヘッダー上部の余白（必要に応じて調整） */
  padding-bottom: 20px; /* ヘッダー下部の余白（必要に応じて調整） */
  }
  
  .news-archive-title {
  display: block;
  font-size: 2.2em;
  margin: 0 0 25px 0; /* タイトル下のマージンを調整 */
  color: #444;
  }
  
  /* --- ▼▼▼ フィルターコントロールのスタイルを追加 ▼▼▼ --- */
  .news-filter-controls {
  display: flex; /* ボタンとドロップダウンを横並びにする */
  flex-wrap: wrap; /* 画面幅が狭い場合に折り返す */
  justify-content: center; /* 中央揃え */
  align-items: center; /* 縦方向中央揃え */
  gap: 15px; /* アイテム間の間隔 */
  width: 100%; /* 幅を親要素に合わせる */
  margin-top: 0; /* 上のマージンをリセット */
  }
  
  /* フィルターボタンの基本スタイル */
  .news-filter-controls .filter-button {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #ccc;
  border-radius: 20px; /* 角丸にする */
  background-color: #fff;
  color: #555;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap; /* ボタン内のテキストを折り返さない */
  }
  
  /* アクティブなフィルターボタンのスタイル */
  .news-filter-controls .filter-button.active,
  .news-filter-controls .filter-button:hover {
  background-color: #555; /* ホバー/アクティブ時の背景色 */
  color: #fff; /* ホバー/アクティブ時の文字色 */
  border-color: #555; /* ホバー/アクティブ時の枠線色 */
  }
  
  /* ドロップダウンコンテナのスタイル */
  .news-filter-controls .filter-dropdown-container {
  position: relative; /* 必要に応じて */
  }
  
  /* ドロップダウン(select)のスタイル */
  .news-filter-controls #school-info-filter {
  padding: 8px 30px 8px 15px; /* 右側に矢印用のスペース */
  border: 1px solid #ccc;
  border-radius: 20px; /* ボタンと合わせる */
  background-color: #fff;
  color: #555;
  font-size: 0.9em;
  cursor: pointer;
  appearance: none; /* ブラウザ標準の矢印を消す */
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Base64エンコードされたSVG矢印（黒に近い色 #555） */
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23555555%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px auto;
  min-width: 150px; /* 最小幅（必要に応じて調整） */
  transition: border-color 0.3s; /* ホバー/フォーカス時のアニメーション */
  }
  
  /* ドロップダウンコンテナがアクティブな場合のスタイル（例：枠線を濃くする） */
  .news-filter-controls .filter-dropdown-container.active #school-info-filter {
  border-color: #555; /* アクティブなフィルターがある場合の枠線色 */
  /* background-color: #eee; /* 必要であれば背景色も変更 */
  }
  /* ドロップダウンのホバー・フォーカススタイル */
  .news-filter-controls #school-info-filter:hover {
  border-color: #888;
  }
  .news-filter-controls #school-info-filter:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 4px rgba(85, 85, 85, 0.4); /* フォーカス時の影 */
  }
  /* --- ▲▲▲ フィルターコントロールのスタイルここまで ▲▲▲ --- */
  
  
  /* アーカイブ用ニュースリストのスタイル（変更なしまたは微調整） */
  .archive-news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PCでは2列 */
  gap: 40px 30px;
  width: 100%;
  margin: 0 auto 40px; /* 上マージンを0にし、左右中央、下にマージン */
  padding: 0 20px;
  box-sizing: border-box;
  clear: both;
  }
  
  /* ===== レスポンシブ調整 ===== */
  @media (max-width: 768px) {
  .news-archive #main {
  padding-top: 80px; /* モバイルでのヘッダー下のスペース */
  }
  
  .news-archive-header {
  padding-top: 20px;
  padding-bottom: 15px;
  margin-bottom: 20px; /* モバイルでのマージン調整 */
  }
  
  .news-archive-title {
  font-size: 1.8em;
  margin-bottom: 20px; /* モバイルでのタイトル下マージン */
  }
  
  /* --- ▼▼▼ モバイルでのフィルターコントロール調整 ▼▼▼ --- */
  .news-filter-controls {
  gap: 10px; /* モバイルでのアイテム間隔を少し詰める */
  }
  .news-filter-controls .filter-button {
  padding: 6px 14px;
  font-size: 0.85em;
  }
  .news-filter-controls #school-info-filter {
  padding: 6px 25px 6px 12px;
  font-size: 0.85em;
  min-width: 130px; /* モバイルでの最小幅調整 */
  background-position: right 8px center;
  background-size: 8px auto;
  }
  /* --- ▲▲▲ モバイル調整ここまで ▲▲▲ --- */
  
  
  /* アーカイブ用ニュースリスト（モバイル）（変更なし） */
  .archive-news-list {
  grid-template-columns: 1fr; /* モバイルでは1列 */
  gap: 30px;
  padding: 0 15px;
  }
  
  /* ニュースアイテム（モバイル） - 既存のスタイルを流用または調整 （変更なし）*/
  .archive-news-list .news-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  }
  
  .archive-news-list .news-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 0;
  }
  
  .archive-news-list .news-content {
  text-align: left;
  width: 100%;
  }
  }
  
  /* --- 既存の news-item スタイルを維持 --- */
  /* .news-item {...} */
  /* .news-item img {...} */
  /* .news-content {...} */
  /* .news-date {...} */
  /* .news-title {...} */
  /* .news-summary {...} */
  /* .news-title a {...} */
  
  /* --- 他の既存スタイルはそのまま保持 --- */
  /* body {...} */
  /* header {...} */
  /* ...など... */
  /* footer {...} */
  
  /* ( .news-archive-list .news-content までのCSSはそのまま ) */
  
  /* =================================
   入会までの流れ (Steps Section) - 3 steps + image
================================= */

.steps-heading,
.steps-subheading {
  text-align: center;
}

/* セクション全体 */
.steps-section{
  padding: 80px 20px;
  background: #f0f0f0;
  box-sizing: border-box;
}

.steps-heading{
  max-width: 1200px;
  margin: 0 auto 14px;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

.steps-subheading{
  max-width: 1200px;
  margin: 0 auto 44px;
  color: #555;
  line-height: 1.7;
}

/* グリッド本体 */
.steps-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 36px 34px;
  position: relative;
  box-sizing: border-box;
}

/* カード */
.step-card{
  background: #fff;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 52px 34px 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  box-sizing: border-box;
}

/* タイトル */
.step-card-title{
  margin: 6px 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: #222;
}

/* ▼ タイトル下の画像枠 ▼ */
.step-card-image{
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 18px;
  aspect-ratio: 16 / 9;   /* 好みで 4/3 に変更OK */
  background: #f3f3f3;
}

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

/* 本文 */
.step-card-body p{
  margin: 0;
  font-size: .95rem;
  line-height: 1.85;
  color: #333;
}
.step-card-body p + p{
  margin-top: 12px;
}

/* リンク */
.step-link{
  font-weight: 700;
  text-decoration: none;
  color: #1a4cff;
}
.step-link:hover{
  text-decoration: underline;
}

/* 上の丸バッジ（STEP 01） */
.step-badge{
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #a9a9a9;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.05;
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

.step-badge span{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.step-badge strong{
  font-size: 26px;
  font-weight: 800;
}

/* ==================================================
   PC：3列（1-2-3） + 線 1→2→3
================================================== */
@media (min-width: 769px){

  .steps-grid{
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- 線（右方向）：1→2、2→3 --- */
  .steps-grid .step-card:nth-child(1)::after,
  .steps-grid .step-card:nth-child(2)::after{
    content:"";
    position:absolute;
    top: 50%;
    right: -34px;
    width: 34px;
    height: 6px;
    background: rgba(183,211,139,0.7);
    transform: translateY(-50%);
    border-radius: 999px;
  }
}

/* ==================================================
   SP：縦に3つ + 縦線
================================================== */
@media (max-width: 768px){

  .steps-section{
    padding: 60px 18px;
  }

  .steps-heading{
    font-size: 1.6rem;
  }

  .steps-subheading{
    margin-bottom: 34px;
    font-size: .95rem;
  }

  .steps-grid{
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .step-card{
    padding: 48px 22px 26px;
  }

  /* 縦の接続線（最後以外） */
  .steps-grid .step-card:not(:last-child)::after{
    content:"";
    position:absolute;
    left: 50%;
    bottom: -34px;
    width: 6px;
    height: 34px;
    background: rgba(183,211,139,0.70);
    transform: translateX(-50%);
    border-radius: 999px;
  }
}



  /* ( ... .representative-message へのCSSが続く ... ) */
  .representative-message {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* 画像とメッセージを縦中央揃えに */
  gap: 40px;
  flex-direction: row; /* デフォルトで横並び */
  }
  .representative-message .image {
  flex: 1 1 250px;
  text-align: center;
  }
  .representative-message .image img {
  max-width: 90%;
  border-radius: 8px;
  }
  .representative-message .message {
  flex: 2 1 500px;
  }
  .representative-message .message h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  }
  .representative-message .message p {
  line-height: 2;
  }
  /* スマホ対応（幅768px以下） */
  @media screen and (max-width: 768px) {
  .representative-message {
  flex-direction: column; /* 縦並びにする */
  align-items: center;
  text-align: center;
  }
  .representative-message .image {
  order: 2; /* 画像を下に */
  margin-top: 20px;
  }
  .representative-message .message {
  order: 1; /* メッセージを上に */
  }
  }

  /* =================================
   メッセージセクション
================================= */
.message-section {
  padding: 80px 20px;
  background: #ffffff;
  max-width: 1000px; /* PCでの最大幅 */
  margin: 0 auto; /* 中央揃え */
}

.message-main-title {
  text-align: center;
  font-size: 2.0em;
  font-weight: 600;
  color: #333;
  margin-bottom: 60px; /* メッセージ本文との余白 */
}

.message-content {
  display: flex;
  align-items: center; /* テキストと画像を垂直中央揃え */
  gap: 40px; /* PCでのテキストと画像の隙間 */
}

.message-text {
  flex: 1.2; /* テキスト側を少し広く (60%) */
  min-width: 300px;
  text-align: left;
}

.message-text h3 {
  font-size: 1.6em;
  font-weight: bold;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.4;
}

.message-text p {
  font-size: 1.0em;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px; /* 段落間の余白 */
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-image {
  flex: 0.8; /* 画像側を少し狭く (40%) */
  min-width: 300px;
}

.message-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =================================
   メッセージセクション (スマホ対応)
================================= */
@media (max-width: 768px) {
  .message-section {
    padding: 60px 20px;
  }
  
  .message-main-title {
    font-size: 1.6em;
    margin-bottom: 40px;
  }

  .message-content {
    flex-direction: column; /* 縦積みに変更 */
  }

  .message-image {
    /* ★ご要望: 画像を先に表示 */
    order: 1; 
    width: 100%;
    max-width: 400px; /* スマホでの画像最大幅 */
    margin-bottom: 30px; /* 画像とテキストの間の余白 */
  }
  
  .message-text {
    /* ★ご要望: テキストを後に表示 */
    order: 2; 
    text-align: left; /* スマホでもテキストは左揃え */
  }

  .message-text h3 {
    font-size: 1.4em;
  }

  .message-text p {
    font-size: 0.95em;
  }
}

@media (max-width: 768px) {

  .message-section img{
    max-height: 320px;     /* ← 好みで 260〜360px */
    width: 100%;
    object-fit: cover;
    object-position: center bottom;
  }

}
  /* =================================
   フッター (Footer)
================================= */
footer {
  background-color: #2c2c2c; /* 画像の濃いグレー */
  color: #f0f0f0;
  padding: 60px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 1000px; /* サイトの他のセクションと幅を合わせる */
  margin: 0 auto;
}

/* --- 上段 (ロゴ & SNS) --- */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #444; /* 画像にはありませんが、区切りとして推奨 */
}

.footer-logo .custom-logo-link img,
.footer-logo .logo {
  height: 70px; /* フッター用ロゴの高さ */
  width: auto;
  /* ロゴが暗い色でも見えるように白転させます */
  filter: brightness(0) invert(1); 
}

.footer-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px; /* アイコン間の隙間 */
}

.footer-social img {
  height: 35px; /* SNSアイコンの高さ */
  width: 35px; /* SNSアイコンの幅 */
  object-fit: contain;
  transition: opacity 0.3s;
}
.footer-social a:hover img {
  opacity: 0.8;
}

/* --- 中段 (フッターメニュー) --- */
.footer-nav {
  margin-bottom: 40px;
}

.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap; /* スマホで折り返す */
  justify-content: center;
  gap: 10px 0; /* 縦の隙間・横の隙間 */
}

.footer-menu-list li {
  position: relative;
  padding: 0 15px; /* 区切り線のための余白 */
}

/* CSSで区切り線「|」を追加 */
.footer-menu-list li::after {
  content: '|';
  color: #777; /* 区切り線の色 */
  position: absolute;
  right: -8px; /* 位置を調整 */
}

/* 最後のメニュー項目の区切り線を非表示 */
.footer-menu-list li:last-child::after {
  display: none;
}

.footer-menu-list li a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s;
}

.footer-menu-list li a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- 下段 (コピーライト) --- */
.footer-bottom {
  text-align: center;
}

.footer-bottom small {
  font-size: 0.8em;
  color: #aaa;
  /* font-family: 'Times New Roman', serif; */ /* 画像はセリフ体ですが、任意で設定 */
}

/* =================================
   フッター (スマホ対応)
================================= */
@media (max-width: 768px) {
  footer {
    padding: 40px 20px;
  }
  
  .footer-top {
    flex-direction: column; /* 縦積みに変更 */
    gap: 30px; /* ロゴとSNSの間の余白 */
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .footer-logo {
    order: 1; /* ロゴを先に */
  }
  .footer-social {
    order: 2; /* SNSを後に */
  }
  
  .footer-nav {
    margin-bottom: 30px;
  }

  .footer-menu-list {
    flex-direction: column; /* 縦積みに変更 */
    gap: 15px; /* リンク間の余白 */
  }
  
  .footer-menu-list li {
    padding: 0;
  }

  /* スマホでは区切り線を非表示 */
  .footer-menu-list li::after {
    display: none;
  }
}
  .single-page {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
  }
  .single-header {
  text-align: center;
  margin-bottom: 40px;
  }
  .instructor-detail, .news-detail {
  margin-bottom: 40px;
  }
  .instructor-thumb, .news-thumb img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  }
  /* Gutenbergのデフォルトスタイルを維持するため、干渉しない */
  .entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  }
  
  .entry-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  }
  
  
  .entry-content img {
  max-width: 100%;
  height: auto;
  }
  
  .entry-content figure {
  margin: 0;
  }
  
  .entry-content .wp-block-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  }
  
  .entry-content .wp-block-column {
  flex: 1;
  min-width: 200px;
  }
  
  .instructor-single #main {
  padding-top: 100px; /* 必要に応じて数値調整 */
  }
  
  @media (max-width: 768px) {
  .instructor-single #main {
  padding-top: 80px;
  }
  }
  
  
  .news-single #main {
  padding-top: 100px; /* 必要に応じて数値調整 */
  }
  
  @media (max-width: 768px) {
  .news-single #main {
  padding-top: 80px;
  }
  }

  /* =================================
   よくある質問 (FAQ) セクション
================================= */
.faq-section {
  padding: 80px 20px;
  background: #ffffff;
  max-width: 900px; /* PCでの最大幅 */
  margin: 0 auto; /* 中央揃え */
}

.faq-main-title {
  text-align: center;
  font-size: 2.0em;
  font-weight: 600;
  color: #333;
  margin-bottom: 60px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 各Q&Aブロック間の余白 */
}

.faq-item {
  border-radius: 8px;
  overflow: hidden; /* 角丸を有効にするため */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 影 */
}

/* Q. (質問) のスタイル */
.faq-question {
  background: #4a4a4a; /* 濃いグレー */
  color: white;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

/* A. (回答) のスタイル */
.faq-answer {
  background: #f9f9f9; /* 薄いグレー */
  color: #333;
  padding: 25px 25px;
  font-size: 1.0em;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
}

/* Q, と A, のプレフィックス（接頭辞）を追加 */
.faq-question::before {
  content: "Q,";
  font-size: 1.1em;
  font-weight: bold;
  margin-right: 15px;
  color: white;
  line-height: 1.5;
}

.faq-answer::before {
  content: "A,";
  font-size: 1.1em;
  font-weight: bold;
  margin-right: 15px;
  color: #333;
  line-height: 1.7;
}
/* =================================
   フロントページ YouTube動画
================================= */
.front-page-video-container {
  max-width: 900px; /* ニュースリストの幅と合わせる (適宜調整) */
  margin: 60px auto 0 auto; /* 「お知らせ一覧」からの上の余白 */
}

.video-responsive-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  border-radius: 8px; /* 角丸 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 画像のような影 */
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =================================
   YouTube動画 (スマホ対応)
================================= */
@media (max-width: 768px) {
  .front-page-video-container {
    margin-top: 40px; /* スマホでの余白 */
  }
}
/* =================================
   FAQセクション (スマホ対応)
================================= */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 20px;
  }

  .faq-main-title {
    font-size: 1.6em;
    margin-bottom: 40px;
  }

  .faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .faq-answer {
    font-size: 0.95em;
    padding: 20px 20px;
  }

  .faq-question::before,
  .faq-answer::before {
    margin-right: 10px;
  }
}
  
  /* --- フッターを画面下部に固定 (Sticky Footer) --- */
  
  /* html要素にも高さを設定 */
  html {
  height: 100%;
  }
  
  /* body要素の最小高さをビューポートの高さに設定 */
  body {
  min-height: 100vh;
  /* display: flex; と flex-direction: column; は既存のスタイルで設定済みです */
  }
  
  /* メインコンテンツエリアが利用可能な残りのスペースをすべて埋めるように設定 */
  /* WordPressの構造に合わせて #main または #main-content を対象とします */
  #main,
  #main-content { /* PHPコメントに基づき #main-content も対象に追加 */
  flex-grow: 1; /* この要素が垂直方向に伸びるようにする */
  }
  
  /* --- フッター固定ここまで --- */

  @media (min-width: 769px){

    :root{
      --site-max: 1200px;   /* ← COURSES基準 */
      --site-pad: 20px;
    }
  
    /* 対象：通常コンテンツのみ */
    .content-section,
    .content-section.three-pillars,
    .achievements-section,
    .problem-section,
    .features-section,
    .courses-section,
    .video-section,
    .news-section,
    .steps-section,
    .message-section,
    .faq-section{
      width: 100%;
      box-sizing: border-box;
    }
  
    /* 中身のコンテナを揃える */
    .intro-container,
    .pillars-grid,
    .pillars-intro,
    .card-container,
    .problem-grid,
    .features-section .feature-item,
    .courses-grid,
    .video-container,
    .news-list,
    .steps-grid,
    .message-section,
    .faq-section{
      max-width: var(--site-max);
      margin-left: auto;
      margin-right: auto;
      padding-left: var(--site-pad);
      padding-right: var(--site-pad);
      box-sizing: border-box;
    }
  
    /* features の “左右230px” を無効化して統一 */
    .features-section .feature-item{
      margin-left: auto !important;
      margin-right: auto !important;
    }
  }