@charset "UTF-8";

/* 1. Base（Reset + 色変数）        ← 残す・整理 */

/* ---- Theme Color Variables ---- */
:root{
  /* Brand Base */
  --navy: #1e3a5f;          /* メインネイビー */
  --navy-light: #2a4a72;
  --beige: #fcfbf9;
  --beige-dark: #e7e4dd;
  --white: #ffffff;

  /* Accent Colors（エンジベース） */
  --accent: #9C3B3B;
  --accent-dark: #7A2E2E;
  --accent-light: #C06A6A;
  --accent-hover: #C06A6A; /* footer用に定義 */

  /* Secondary Accent */
  --gold: #C1902F;
  --gold-light: #D9B563;

  /* Text */
  --text-main: #3e3a35;
  --text-light: #fafafa;
  --text-gray: #777;

  /* Shadow */
  --shadow-soft: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-strong: 0 6px 18px rgba(0,0,0,0.18);

  /* Border */
  --border-light: rgba(0,0,0,0.08);
  --border-dark: rgba(0,0,0,0.25);
}

/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--beige);
  line-height: 1.7;
}

/* sticky破壊防止 */
body { 
  overflow-x: visible;
}

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

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

a:hover {
  text-decoration: none;
}

/* ---- 改行制御：PC/SP で切り替える（修正版） ---- */

/* 1. まずは両方消す（または基本を非表示にする） */
br.pc, br.sp { display: none; }

/* 2. スマホ（767px以下）の時だけ br.sp を表示 */
@media (max-width: 767px) {
  br.sp { display: inline; }
}

/* 3. PC（768px以上）の時だけ br.pc を表示 */
@media (min-width: 768px) {
  br.pc { display: inline; }
}

/* 2. Layout（inner・セクション余白） */

/*inner（全セクション横幅を揃える）*/
.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/*section（上下余白を統一）*/
.section {
  padding: 80px 0;
}
@media (max-width: 767px){
  .section {
    padding: 56px 0;
  }
}

/*見出し（どのセクションでも共通）*/
.sec-title {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

/*リード文（共通化）*/
.sec-lead {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-gray);
}

/*グリッド（1〜3カラムの共通システム）*/
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }

@media (max-width: 767px){
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/*共通センター寄せクラス（便利なのでBase付近に置くと良いです） */
.center {
  text-align: center !important;
}

/* PC時はSP用を消す */
.sp-only { display: none; }

@media (max-width: 767px) {
  /* スマホ時はPC用を消して、SP用を出す */
  .pc-only { display: none; }
  .sp-only { display: block; }
}


/*ボタン（hero / CTA / カードすべて統一）*/

/* ============================================================
   3. HEADER（G案）
   .main-header / .header-inner / .global-nav / .burger / drawer
=========================================================== */

/* -----------------------------
   HEADER（ネイビー上段）
----------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #1e3a5f;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px 0 30px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ（G案の絶妙な位置調整を再現） */
.site-logo {
  transform: translateY(6px);
}
.site-logo a {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* -----------------------------
   Burger（PCでも常時表示）
----------------------------- */
.burger {
  position: absolute;
  right: 24px;
  top: 35%;
  transform: translateY(-50%);
  z-index: 2000;
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.burger span {
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* -----------------------------
   PCグロナビ（2段目）
----------------------------- */
.global-nav {
  position: sticky;
  top: 56px; /* header高さに一致 */
  width: 100%;
  background: #1e3a5f;
  border-top: 1px solid #1e3a5f;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  z-index: 9998;
}

.global-nav ul {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 40px 14px 30px;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.global-nav a {
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  transition: 0.3s;
  text-decoration: none;
}
.global-nav a:hover {
  background: #9C3B3B;
}

/* -----------------------------
   ドロワーメニュー
----------------------------- */
.drawer-menu {
  position: fixed;
  top: 0;
left: 100%; /* right: 0; から変更：開始位置を画面の右端の外に設定 */
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: rgba(30,58,95,0.96);
  backdrop-filter: blur(6px);
  padding: 80px 24px 40px;
  box-shadow: -4px 0 16px rgba(0,0,0,0.25);
  z-index: 10001;
  /* 開閉アニメーションの核 */
  transform: translateX(100%);       /* 初期は画面外に待機 */
  transition: transform 0.4s ease;   /* GPU 使用 → 超スムーズ */
}

.drawer-menu.open { 
    transform: translateX(-100%); /* 左に向かって自分の幅分だけスライドイン */
}

.drawer-menu ul { list-style: none; padding: 0; margin: 0; }
.drawer-menu li { margin-bottom: 24px; }
.drawer-menu a {
  color: #fff;
  font-size: .82rem;
  letter-spacing: 0.03em;
  transition: color .3s;
}
.drawer-menu a:hover { color: #a98545; }

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* オーバーレイ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* -----------------------------
   SP 用 グロナビの白丸帯
----------------------------- */
@media (max-width: 1024.98px) {

  .site-logo a { font-size: 1.2rem; }

  .global-nav {
    top: 86px;  /* header高さ＋微調整 */
    background: #fff;
    border-top: 1px solid #1e3a5f;
    padding: 8px 14px 16px;
  }

  .global-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
  }

  .global-nav a {
    display: inline-block;
    padding: 6px 14px;
    font-size: .8rem;
    color: #1e3a5f;
    border: 1px solid #1e3a5f;
    border-radius: 999px;
    background: #fff;
  }
  .global-nav a:hover {
    border-color: var(--accent-dark);
    background: #fff;
  }

  .burger {
    right: 16px;
    top: 30px;
    transform: translateY(0);
  }
}

/* =========================================
   4. Footer (2025-11-12 Final統合版)
   PC：3カラム
   Tablet：同構成でgap縮小
   SP：上2列＋運営会社センター寄せ
========================================= */
footer {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer {
  background: #1e3a5f;
  color: #fff;
  padding: 80px 40px 40px;
  font-size: 0.95rem;
}

/* --- グリッド構造 (PC) --- */
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

/* --- 見出し --- */
.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  border-bottom: 2px solid var(--accent); /* エンジ */
  display: inline-block;
  padding-bottom: 4px;
}

/* --- リストリンク --- */
.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-column li {
  margin-bottom: 10px;
}
.footer-column a {
  color: #f0f0f0;
  text-decoration: none;
  opacity: 0.9;
  transition: all 0.3s;
}
.footer-column a:hover {
  color: var(--accent-hover);
  opacity: 1;
}

/* --- 運営会社住所など --- */
.footer-column .address {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 10px;
  opacity: 0.9;
}

/* --- SNSアイコン --- */
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.footer-social a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
}
.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- コピーライト --- */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

/* =========================================
   Tablet（768〜1024px）
========================================= */
@media (max-width: 1024px) {
  .site-footer {
    padding: 60px 24px 30px;
  }
  .footer-inner {
    gap: 32px;
  }
  .footer-column h4 {
    font-size: 1rem;
  }
}

/* =========================================
   スマホ（〜767.98px）
========================================= */
@media (max-width: 767.98px) {
  .site-footer {
    padding: 48px 24px 20px;
    text-align: center;
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 20px;
  }

  /* 上段2カラム */
  .footer-column:nth-child(1),
  .footer-column:nth-child(2) {
    flex: 1 1 calc(50% - 20px);
    min-width: 150px;
    text-align: left;
  }

  /* 下段 運営会社（センター寄せ） */
  .footer-column:nth-child(3) {
    flex: 1 1 100%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 12px;
    padding-top: 18px;
  }

  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
  }

  .footer-column a {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .footer-social {
    justify-content: center;
    margin-top: 10px;
    gap: 18px;
  }

  .footer-bottom {
    margin-top: 32px;
    font-size: 0.8rem;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}


/* 5. Floating CTA（PC専用）        ← 残す */
/* =========================================
   フローティングボタン群：PC専用＋フェードイン
========================================= */
.floating-btn-group {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(30px);
  animation: floatButtonsFadeIn 1.2s ease-out 0.5s forwards;
}

/* フェード＋スライドイン */
@keyframes floatButtonsFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 44px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  opacity: 0.95;
}

/* 各ボタンの色設定 */
.floating-btn.primary {
  background: var(--accent);
  color: #fff;
}
.floating-btn.primary:hover {
  background: var(--accent-dark); 
  transform: translateY(-2px);
}
.floating-btn.secondary {
  background: #1e3a5f;
  border: 0.8px solid #fff;
  color: #fff;
}
.floating-btn.secondary:hover {
 background:#fff;
border:2px solid #2d5a86; /* hero-primary-hoverと揃える */
color:#2d5a86;
}

/* TOPボタンも統一デザインに */
.floating-btn.scroll-top-btn {
  background: #fff;
  border: 2px solid var(--accent-dark);
  color: var(--accent-dark);
}
.floating-btn.scroll-top-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* スマホでは非表示 */
@media (max-width: 768px) {
  .floating-btn-group {
    display: none !important;
  }
}


/* 6. Bottom Nav（SP専用）          ← 残す */
/* ===============================
   スマホ用 bottom に固定のnav（修正版）
   =============================== */
.sp-bottom-nav {
  position: fixed;
  /* bottom: 0; は消さずに残しつつ、dvhで補強 */
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%; /* 100vwから100%に変更して横揺れ防止 */
  
  /* 最新iOSのセーフエリアと動的な高さを考慮 */
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(52px + env(safe-area-inset-bottom)); /* 高さを明示的に指定 */
  
  background: rgba(255, 255, 255, 0.95); /* 透明度の指定を整理 */
  border-top: 1px solid rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-around;
  align-items: center; /* 中央寄せ */
  
  /* z-indexをヘッダーと同等まで引き上げる */
  z-index: 10002; 
  box-shadow: 0 -4px 18px rgba(0,0,0,0.08);
  
  /* 浮き上がり防止の魔法のプロパティ */
  transform: translateZ(0); 
}

.sp-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: #333;
  text-decoration: none;
}
.sp-bottom-nav .nav-item i {
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
}

/* PCでは非表示 */
@media(min-width:1025px){
  .sp-bottom-nav {display:none ;}
}



/* 7. Scroll Top Button（残す）     ← 残す */
/* スクロールでフェード制御 */
.scroll-top-btn {
  opacity: 0;
  pointer-events: none;
}
.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

/* 8. Hero                          ← 新規再構築 */
/* -----------------------------------------------------------
   HEROセクション：新フルリファクタリング版
   ※ トンマナ統一・全セクションのinner幅と整合
----------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 62vw;               /* PCでの最適比率 */
  max-height: 780px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

/* 背景画像（画像差し替えに強い） */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/fv_img_4.png");
  background-size: cover;
  background-position: center;
  filter: brightness(63%) saturate(115%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.55)
  );
  z-index: 2;
}

/* 内部コンテンツ */
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  width: 100%;
  padding: 0 24px;
  text-align: center;
    transform: translateY(-60px);
}

/* タグ */
.hero-tag {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* タイトル（改行・行間を最適化） */
.hero-title {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
  text-shadow: 0 6px 14px rgba(0,0,0,0.35);
  letter-spacing: 0.02em;
 white-space: nowrap;
}

/* サブコピー */
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  padding-top: 12px;   /* ←追加 */
  margin-bottom: 36px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* CTAボタン */
.hero-cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ボタン共通 */
.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Primary */
.hero-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.hero-btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Secondary */
.hero-btn.secondary {
  background: rgba(255,255,255,0.15);
  border: 2px solid #fff;
  color: #fff;
}
.hero-btn.secondary:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}

/* ----------------------------------------
   SP最適化（〜767px）
---------------------------------------- */
@media (max-width: 767px) {

  .hero {
    height: auto;
    padding: 120px 0 100px; /* SPの見え方調整 */
    min-height: 480px;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.45;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-btn {
    width: 100%;
    padding: 14px 0;
  }
}

/* ==============================
   LPインデックスナビ（Hero直下）
============================== */
.lp-index-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  position: sticky;
  top: 40px; /* G案ヘッダー分 */
  z-index: 800;
}

.lp-index-nav .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.lp-index-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lp-index-nav a {
  display: block;
  padding: 5px 18px;
  border-radius:15px;
  background: #f4f4f4;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #e0e0e0;
  transition: 0.25s ease;
}

.lp-index-nav a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ==============================
   LPインデックスナビ（SP安定化）
============================== */
.lp-index-nav ul li {
  flex-shrink: 0;
}

/* ============================================================
   LP：インデックスナビ用 アンカー位置補正
============================================================ */
section {
  scroll-margin-top: 140px;
}
@media (max-width: 767px) {
  section {
  scroll-margin-top: calc(40px + 80px);
  }
}


/* SP（横スクロール） */
@media(max-width: 767px){
  .lp-index-nav ul {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 6px;
  }
}


/* ======================================
   CTA①：オンライン授業見学（Hero直下）
   ※ チラシなし・レスポンシブ最適化版
====================================== */

.cta-first {
  background: var(--beige);
  padding: 80px 0; /* PC版の上下余白 */
}

/* ---- レイアウト：2カラム構造（PC版） ---- */
.cta-first-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px; /* 下のボタンとの間隔 */
}

/* ---- 左：テキストエリア ---- */
.cta-first-title {
  max-width: 1000px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.cta-first-text {
  max-width: 420px; /* テキストが間延びしないよう制限 */
  width: 100%;
}

.cta-first-lead {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.cta-first-points {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.cta-first-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.cta-first-points li::before {
  content: "●";
  font-size: 0.6rem;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 5px;
}

/* ---- 右：授業風景写真 ---- */
.cta-first-imagebox {
  width: 100%;
  display: block;
}

.cta-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border: 1px solid var(--border-light);
}

/* ---- 下：CTAボタン（PC版） ---- */
.cta-first-btnwrap {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 340px;
  height: 64px;          /* 高さを固定して円形化バグを防止 */
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
padding: 0 24px;      /* 枠内の文字のゆとりを確保 */
}

/* ボタン色設定 */
.cta-btn.primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.cta-btn.primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.cta-btn.secondary { background: #fff; border: 2px solid var(--navy); color: var(--navy); }
.cta-btn.secondary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }


/* ======================================
   レスポンシブ設定
====================================== */

/* --- タブレット・スマホ共通（1024px以下） --- */
@media (max-width: 1024px) {
  .cta-first-grid {
    grid-template-columns: 1fr; /* 1カラム化 */
    gap: 40px;
    margin-bottom: 48px;
  }

  .cta-first-text {
    max-width: 100%;
    text-align: center;
  }

  .cta-first-points {
    display: inline-block;
    text-align: left;
  }

  .cta-first-btnwrap {
    flex-direction: column; /* 縦並び */
    align-items: center;
    gap: 16px;
    margin-top: 0;
  }

  .cta-btn {
    flex: none;
    width: 100%;
    max-width: 360px;
    height: 56px;         /* スマホ用の高さ */
    border-radius: 50px;  /* 固定値で巨大化を回避 */
    white-space: normal;  /* 長い文字の折り返しを許可 */
    line-height: 1.3;
    padding: 0 20px;
  }
}

/* --- スマホ特化（767px以下） --- */
@media (max-width: 767px) {
  .cta-first {
    padding: 60px 20px;
  }
  .cta-first-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }
}
/* ======================================
   Why CG セクション（悩み → 本質 → 解決 → 成果）
====================================== */

.why-cg {
  background: var(--beige);
}

/* 各ブロックの共通 */
.why-block {
  background: #fff;
  border-radius: 14px;
  padding: 32px 32px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

/* ラベル（悩み・本質・解決・成果） */
.why-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

/* ラベル色違い */
.why-label.red {
  background: var(--accent);
}
.why-label.navy {
  background: var(--navy);
}
.why-label.gold {
  background: var(--gold);
  color: #fff;
}

/* テキスト */
.why-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-main);
}

/* リスト（丸） */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.why-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
.why-list li::before {
  content: "●";
  font-size: 0.55rem;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 7px;
}

/* チェックマーク版（成果の箇所） */
.why-list.check li::before {
  content: "✔";
  font-size: 0.85rem;
  color: var(--accent-dark);
  top: 3px;
}

/* SP最適化 */
@media(max-width: 767px){
.why-cg.section {
    padding: 0 0!important; /* ← スマホ時の上の余白調整 */
  }

    .why-block {
    padding: 24px 20px;
    margin-bottom: 24px;
  }
}



/* ======================================
   課題セクション（3カード）
====================================== */
.issues {
  background: var(--beige);
}

/* カード3枚のグリッド */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
  margin-top: 48px;
}

@media(max-width: 767px){
  .issues-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
 .issues.section {
    padding-top: 0 !important; /* ← スマホ時の上の余白調整 */
  }
}

/* カード本体 */
.issue-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 30px 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition: 0.3s ease;
}
.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

/* ナンバー（01 / 02 / 03） */
.issue-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

/* タイトル */
.issue-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
min-height: 3em;
}

/* 説明文 */
.issue-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}


/* =========================
      実績企業セクション
========================= */
.companies-section {
  background: #fff;
  padding: 80px 0;
}

.companies-block {
  margin-top: 48px;
}

.companies-phase-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

/* ロゴ（社名）一覧 */
.company-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 20px;
  justify-items: center;
  margin-top: 16px;
  margin-bottom: 40px;
}

/* ========== 固定幅を追加（ここが重要） ========== */
.company-item {
  width: 180px;       /* ← PCのボタン横幅を完全固定 */
  height: 46px;       /* ← 高さも揃える */
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;

  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}

/* リンクの文字色を統一 */
.company-item a {
  color: inherit;
  text-decoration: none;
}

/* hover */
.company-item:hover {
  background: var(--beige-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

/* ------ Responsive ------ */
@media (max-width: 1024px) {
  .company-logos {
    grid-template-columns: repeat(4, 1fr);
  }
  .company-item {
    width: 160px;
    height: 44px;
  }
}

@media(max-width: 767px){
  .company-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
  }
  .company-item {
    width: 140px;
    height: 42px;
    font-size: 0.85rem;
  }
}



/* =========================
   Before→After（静止画像版）
========================= */
.ba-static-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition: 0.3s ease;
}

.ba-static-image img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.ba-btn-wrap {
  margin-top: 28px;
  text-align: center;
}
.ba-btn-wrap .cta-btn {
  display: inline-block;    /* blockの幅暴走を停止し中央寄せ可能に */
  padding: 14px 32px;
  border-radius: 999px;
}

.ba-btn-wrap .cta-btn.primary {
  display: inline-flex;      /* flexに変更して中央寄せを確実に */
  align-items: center;       /* 垂直方向の中央 */
  justify-content: center;   /* 水平方向の中央 */
/* ボタンのサイズ調整*/
  padding: 24px 12px;        /* 好みで調整） */
  min-width: 240px;          /* 最小幅を設定して形を安定させる */
  
  /* テキストのズレを解消するためのリセット */
  line-height: 1;            /* 行高を1に固定してflexの中央寄せに任せる */
  height: auto;              /* 高さを固定せずpaddingで制御 */
  
  /* デザインの微調整 */
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;      /* カプセル型 */
  transition: 0.3s;
}

.before-after .ba-card {
  max-width: 900px;
  margin: 40px auto 0;  /* ← auto で完全センター */
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.before-after .ba-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* ← 左に寄る問題の根絶 */
}


/* ======================================
   Before → After（比較版：2カラム）
   ※ 静止画像版 .ba-card と完全に別構造
====================================== */

.ba-compare {
  background: #fff;
}

/* 2カラムグリッド */
.ba-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 48px;
}

@media (max-width: 767px) {
  .ba-compare-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* カード本体 */
.ba-compare-card {
  background: var(--beige);
  border-radius: 18px;
  padding: 28px 28px 36px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: 0.35s ease;
  position: relative;
}

.ba-compare-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

/* Before / After ラベル */
.ba-compare-label {
  position: absolute;
  top: -14px;
  left: 20px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.ba-compare-label.before {
  background: var(--accent-light);
  color: #fff;
}

.ba-compare-label.after {
  background: var(--navy);
  color: #fff;
}

/* 画像 */
.ba-compare-image img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
  display: block;
}

/* タイトル */
.ba-compare-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

/* テキスト */
.ba-compare-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* ========= 成果3つ ========= */
.ba-compare-effects {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 767px) {
  .ba-compare-effects {
    grid-template-columns: 1fr;
  }
}

.ba-compare-effect-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}

.ba-compare-effect-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
 text-indent: -1em;      /* 1文字分左に飛ばす */
  padding-left: 1em;      /* 左に余白を作る */
  line-height: 1.8;
}

.ba-compare-effect-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main);
}



/* ============================
   チラシDL（水平2カラムカード）
============================ */
.flyer-section {
  background: var(--beige);
}

.flyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.flyer-thumb-box {
  text-align: center;
}

.flyer-thumb {
  width: 70%;
  max-width: 380px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  border: 6px solid #fff;
}

.flyer-title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.flyer-desc {
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.flyer-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: all .3s;
}

.flyer-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* SP */
@media (max-width: 767px) {
  .flyer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flyer-thumb-box {
    text-align: center;
  }

  .flyer-thumb-box .flyer-thumb {
    margin: 0 auto;
    display: block;
    max-width: 80%;  /* お好みで調整可 */
  }

  .flyer-title {
    text-align: center;
  }

  .flyer-text-box {
    text-align: center;
  }
}

/* ==========================
   カリキュラムセクション
========================== */

.curriculum {
  background: var(--beige);
}

/* 上段2カラム */
.curriculum-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: center;
}

@media(max-width: 767px){
  .curriculum-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 文章 */
.curriculum-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
}

/* 使用ソフト画像 */
.curriculum-soft img {
  width: 100%;
  max-width: 620px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

/* ==========================
   画像モーダル（既存の表示を壊さない安全版）
========================== */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* 修正の肝：画像自体の振る舞いを固定 */
.img-modal-content {
  position: relative;
  /* コンテナ自体の幅を固定せず、中身の画像に追従させる */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.img-modal-content img {
  /* ここが重要！ */
  max-width: 90vw;   /* 画面の横幅9割を上限にする */
  max-height: 85vh;  /* 画面の高さ8.5割を上限にする */
  width: auto;       /* 比率を維持 */
  height: auto;      /* 比率を維持 */
  object-fit: contain; 
  
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

/* 閉じるボタン（画像の外側に配置） */
.img-modal-close {
  position: absolute;
  top: -10px;        /* 画面上端からの位置に調整 */
  right: 10px;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  z-index: 100001;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.price-flow .modal-trigger,
.curriculum .modal-trigger,
.cta-first .modal-trigger  {
  cursor: pointer!important;
  transition: opacity .3s ease;
}

.modal-trigger:hover {
  opacity: 0.85;
}

/*SP時は案内文を非表示*/
@media (max-width: 767px) {
  .curriculum-soft p {
    display: none;  /* “クリックで拡大表示” を非表示 */
  }
}


/* ==========================
   4ヶ月ロードマップ（下段）
========================== */

.roadmap-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

@media(max-width: 767px){
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.roadmap-card {
  background: #fff;
  padding: 26px 28px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}

.roadmap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.roadmap-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.roadmap-card p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-main);
}


/* =========================================
    料金・受講フロー セクション
========================================= */

.price-flow {
  background: #fff;
}

/* 1. 開催概要 */
.price-info-summary {
  background: var(--beige);
  padding: 30px 24px;
  border-radius: 12px;
  margin: 48px 0 32px;
  border: 1px solid var(--border-light);
  width: 100%;
}

.summary-inline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px 40px;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

/* 2. 受講料・助成金カード */
.price-info-card.highlighted {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  margin-bottom: 60px;
}

.price-card-header {
  padding: 50px 24px;
  text-align: center;
}

.price-amount.center {
  font-size: 2.0rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.price-info-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: block;
  width: 100%;
}

/* 助成金エリア（PCは横並び） */
.subsidy-box.horizontal {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 50px 60px;
  background: #fcfbf9;
  border-top: 1px solid var(--border-light);
}

.subsidy-text { flex: 1.5; }
.subsidy-leaflet-area { flex: 1; text-align: center; }

.subsidy-text h4 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 16px;
  border-left: 5px solid var(--accent);
  padding-left: 15px;
}

.subsidy-btn {
  display: block;
  width: fit-content;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.3s;
}

.leaflet-image img {
  max-width: 260px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

/* --- 3. スケジュール・カリキュラム共通見出し --- */
.curriculum-main-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  text-align: center;
}

.schedule-buttons-wrapper {
  margin-top: 100px;
  text-align: center;
}

.schedule-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.skd-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #fff;
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
}

.skd-btn:hover {
  background: var(--navy);
  color: #fff;
}

/* --- 4. カリキュラムテーブル --- */
.curriculum-table-wrapper {
  margin-top: 80px;
}

.curriculum-time {
  font-size: 0.95rem;
  margin-bottom: 30px;
  opacity: 0.8;
  text-align: center;
}

.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  table-layout: fixed;
}

/* ヘッダーのみ紺色 */
.curriculum-table th {
  background: var(--navy);
  color: #fff;
  padding: 18px 24px;
  font-weight: 700;
  text-align: left;
}

/* 回数列（1列目）：PC版幅広設定 */
.curriculum-table .col-number {
  width: 140px;
  text-align: center;
}

.curriculum-table td:first-child {
  text-align: center;
  font-weight: 600;
  border-right: 1px solid var(--border-light);
}

.curriculum-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-main);
}

.curriculum-table tr:nth-child(even) td {
  background: var(--beige);
}

.curriculum-table tr:last-child td {
  border-bottom: none;
}

/* =========================================
    レスポンシブ調整（スマホ版 767px以下）
========================================= */
@media (max-width: 767px) {
  /* 助成金エリア：横並びを完全に解除 */
  .subsidy-box.horizontal {
    flex-direction: column; 
    padding: 30px 20px;
    gap: 30px;
    align-items: center;
  }
  
  .subsidy-text, .subsidy-leaflet-area {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .subsidy-text h4 {
    font-size: 1.15rem;
    padding-left: 0;
    border-left: none;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
  }

  .subsidy-btn {
    margin: 24px auto 0;
  }

  /* 見出しサイズの調整 */
  .curriculum-main-title {
    font-size: 1.25rem;
    padding: 0 15px;
  }

  .schedule-buttons-wrapper {
    margin-top: 60px;
  }

  /* テーブル：回数列を縮小 */
  .curriculum-table .col-number {
    width: 60px;
  }
  .curriculum-table th,
  .curriculum-table td {
    padding: 14px 10px;
    font-size: 0.85rem;
  }
}


/* =======================
      Flow セクション
======================= */
.flow-section {
  background: #fff;
  padding: 90px 0;
}

.flow-steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC：3列×2段 */
  gap: 36px;
}

/* 個々のステップ */
.flow-step {
  background: var(--beige);
  padding: 32px 26px;
  border-radius: 14px;
  position: relative;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

/* 丸アイコン（数字） */
.flow-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
}

/* タイトル */
.flow-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

/* テキスト */
.flow-step-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}

/* SP：縦並び */
@media (max-width: 767px) {
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .flow-step {
    padding: 28px 20px;
  }
}


/* =============================
   Overview：受講対象・目的・スキル
============================= */
.overview-section {
  background: var(--beige);
}

/* 3カード レイアウト */
.overview-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px){
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px){
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* カード共通 */
.overview-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 34px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

/* 見出し */
.ov-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

/* 本文テキスト */
.ov-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-main);
 text-indent: -1em;      /* 1文字分左に飛ばす */
  padding-left: 1em;      /* 左に余白を作る */
  line-height: 1.8;
}

/* リスト */
.ov-list {
  margin: 0;
  padding-left: 1.1em;
}

.ov-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-main);
}

/* 助成金の注意書き */
.ov-grant-note {
  margin-top: 32px;
  font-size: 0.92rem;
  color: var(--navy);
  opacity: 0.8;
  line-height: 1.6;
}

/* =========================
       FAQ セクション
========================= */
.faq-section {
  background: #fff;
  padding: 80px 0;
}

.faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

/* 質問 */
.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ＋ マーク（開閉アイコン） */
.faq-icon {
  width: 18px;
  height: 18px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--navy);
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transition: 0.25s;
}
.faq-icon::after {
  transform: rotate(90deg);
}

/* 開いたときのアイコン変化（×に近い） */
.faq-item.open .faq-icon::after {
  transform: rotate(0deg);
}

/* 回答 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 10px;
}

.faq-answer p {
  padding: 10px 0 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}

/* 開いたとき：max-heightを広げて表示 */
.faq-item.open .faq-answer {
  max-height: 600px; /* 任意の十分大きな値 */
}

/* ===========================
      動画ギャラリー
=========================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}

.video-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.video-thumb img {
  width: 100%;
  display: block;
}

/* =========================
   動画ギャラリー：SP レイアウト調整
   （一覧サムネを 4:3 で大きく）
========================= */
@media (max-width: 767px) {

  /* すでに grid-template-columns: 1fr; は定義済みなのでそのまま */

  /* サムネ枠に 4:3 を指定 */
  .video-thumb {
    aspect-ratio: 4 / 3;
  }

  /* 枠いっぱいに画像をフィットさせる */
  .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* 再生アイコン */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mask: url('img/icon-play.svg') center / 60% no-repeat;
}

/* モーダル */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 20000;
  align-items: center;
  justify-content: center;
}
.video-modal.open {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
}
.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
}
#videoFrame {
  width: 100%;
  height: 540px;
  border-radius: 12px;
}
@media(max-width: 767px){
  #videoFrame { height: 260px; }
}


/* =========================
      NEWS セクション
========================= */
.news-section {
  background: var(--beige);
}

.news-grid {
 display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* NEWSカード共通 */
.news-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.news-date {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}

.news-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* “もっと見る” ボタン */
.news-more-wrap {
  text-align: center;
  margin-top: 32px;
}

.news-more-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: 0.3s ease;
}

.news-more-btn:hover {
  background: var(--accent-dark);
}


/* =========================
      TOPICS セクション
========================= */
.topics-section {
  background: var(--beige);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

/* カード共通 */
.topic-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.topic-date {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.topic-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}

.topic-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* “もっと見る” ボタン */
.topics-more-wrap {
  text-align: center;
  margin-top: 32px;
}

.topics-more-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: 0.3s ease;
}

.topics-more-btn:hover {
  background: var(--accent-dark);
}

/* =======================
   第1期 受講生 制作実績
======================= */
.student-work-body{
  display: flex;
  flex-direction: column;
  flex: 1;                 /* ← 高さをカードいっぱいに広げる */
}

.student-works-grid{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:32px;
  margin-top:40px;
}

.student-work-card{
  display: flex;
  flex-direction: column; 
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:16px;
  padding:32px;
  text-decoration:none;
  color:#1e3a5f;
  transition:all .3s ease;
}

.student-work-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.student-work-title{
  font-size:1.2rem;
  font-weight:700;
  margin-bottom:12px;
}

.student-work-text{
  font-size:.95rem;
  line-height:1.7;
  color:#444;
  margin-bottom:20px;
}

/* =======================
   受講生 制作実績：カード内ボタン
   flyer-btn と完全統一
======================= */

.student-work-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
 margin-top: auto; 
  padding: 14px 32px;              /* flyer-btn と同等 */
  border-radius: 999px;
  min-height: 44px;          /* ← 高さを保証 */
  line-height: 1.4;          /* ← flyer-btn と同等 */
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--accent);
  transition: all .3s ease;
 width: auto;
 align-self: center;
}

/* カード hover に連動させる */
.student-work-card:hover .student-work-link{
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* SPでもサイズ感を揃える（flyerと同じ思想） */
@media (max-width: 767px){
  .student-work-link{
    padding: 14px 28px;
    font-size: 0.9rem;
  }
}


/* SP */
@media(max-width:767.98px){
  .student-works-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
}



/* =======================================
   一括定義
セクションタイトル（h2/h3）改行崩れ対策
======================================= */
/* 改行禁止（タイトルの一部を一塊にする） */
.no-break {
  white-space: nowrap;
}

.skd-h2,
.skd-h3 {
  white-space: normal;
  word-break: keep-all;      /* 日本語1文字改行を防ぐ */
  overflow-wrap: break-word; /* 行全体が入り切らない場合だけ改行 */
  line-height: 1.4;
}

/* PCでもスマホでも、1文字だけの改行を徹底排除 */
.skd-h2 span,
.skd-h3 span {
  white-space: nowrap;       /* 必要ならタイトルの一部を強制的に1行に */
}

/* =======================================
   スマホ（〜767px）フォント調整
======================================= */
@media (max-width: 767px) {
  .skd-h2 {
    font-size: 1.4rem;   /* 少しだけ縮小 */
  }
  .skd-h3 {
    font-size: 1.1rem;
  }
}

/* スマホ時はリード文を左寄せ */
@media (max-width: 767.98px) {
  .sec-lead.center, .flow-step-text, .topics-archive-head .sec-lead {
    text-align: left !important;
  }
}

/* ==========================
   第4期：コース切替タブ
========================== */
.skd-course-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 20px;
  flex-wrap: wrap;
}

.skd-course-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: 0.25s ease;
}

.skd-course-tab.is-active,
.skd-course-tab:hover {
  background: var(--navy);
  color: #fff;
}



/* ============================================================
   Expert Video Section (Interview)松尾建築設計事務所
   ============================================================ */

/* セクション全体の背景（必要に応じて） */
.expert-video.section {
  background: var(--beige);
}

/* 1. タイトルエリア */
.expert-video-header {
  text-align: center;
  margin-bottom: 40px;
}

.expert-video-header .sub-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* 2. 動画本体：Before/After画像とサイズを統一 */
.expert-video-main {
  max-width: 900px; /* 画像と同じサイズ感 */
  margin: 0 auto 48px;
  padding: 0 10px; /* スマホ時の隙間確保 */
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9比率を維持 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  background: #000;
}

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

/* 3. 動画下の情報エリア */
.expert-footer-info {
  max-width: 1080px; /* 動画の幅と合わせる */
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  padding: 0 20px;
}

/* プロフィール（左側） */
.expert-profile {
  flex: 1.2;
  text-align: left;
 padding-top: 10px; /* 右側のカードと天を揃えるための微調整 */
}

.expert-role {
  font-size: 1.35rem;     /* 1.2remから少し拡大し、印象を強く */
  line-height: 1.75;       /* 行間を広げてゆとりを持たせる */
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 28px;    /* 下の肩書きとの間隔 */
}

.expert-name {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.company-name {
  font-size: 0.95rem;     /* わずかに小さくして「代表」を引き立てる */
  color: #666;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}
/* 3. 「実務の現場を知る、同じ設計者として」 */
.expert-name strong {
  font-size: 1.1rem;      /* 控えめで誠実なサイズ感 */
  font-weight: 600;
  color: #333;
  line-height: 1.6;
white-space: nowrap
}

/* 動画のポイント（右側） */
.video-highlights {
  flex: 1;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); /* 影を柔らかく */
  text-align: left;
}

.video-highlights h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 20px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.video-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.video-highlights li {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 14px;
  padding-left: 1.2em;
  position: relative;
color: #444;
}
.video-highlights li:last-child {
  margin-bottom: 0;
}
.video-highlights li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}
/* 3. 【重要】下のCTAセクション（cta-first）の inner と幅を統一 */
.cta-first .inner {
  max-width: 1080px; /* 上記 1 と同じ数値にする */
  margin: 0 auto;
}

/* ----------------------------------------
   Responsive (修正版)
   ---------------------------------------- */
@media (max-width: 767px) {
  /* 動画本体の余白調整 */
  .expert-video-main {
    margin-bottom: 32px;
    padding: 0 15px; /* 左右に均等な余白を確保 */
  }

  /* 情報エリア：右パディングの漏れを修正し、中央寄せに */
  .expert-footer-info {
    flex-direction: column;
    gap: 32px;
    padding: 0 20px; /* 左右均等にパディングを設定 */
  }

  /* プロフィールエリア */
  .expert-profile {
    text-align: center;
    margin-bottom: 10px;
    padding-top: 0;
    width: 100%; /* 幅を確実に確保 */
  }

  .expert-role {
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .company-name {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  /* 【重要】はみ出しの直接原因を修正 */
  .expert-name strong {
    display: block;
    font-size: 1.05rem;
    white-space: normal; /* 改行を許可してはみ出しを防止 */
    line-height: 1.4;
    padding: 0 10px;    /* 画面端に文字がくっつかないよう配慮 */
  }

  /* 動画のポイントカード */
  .video-highlights {
    margin-top: 0;
    padding: 30px 20px; /* スマホ用に少しコンパクトに */
    width: 100%;
    box-sizing: border-box; /* パディングを含めた幅計算に */
  }
  
  .video-highlights li {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* 受講生 Before / After 比較　追加 */
.student-ba-compare {
  margin-top: 40px;
}

.student-ba-caption {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.student-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.student-ba-item {
  position: relative;
}

.student-ba-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.student-ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
}

.student-ba-label.photo {
  background: rgba(0,0,0,0.6);
}

.student-ba-label.cg {
  background: #9C3B3B; /* LPのアクセントカラー */
}

.student-ba-note {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 10px;
}

/* SP対応 */
@media (max-width: 768px) {
  .student-ba-grid {
    grid-template-columns: 1fr;
  }
}


