@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 で切り替える */
br.pc { display: none; }
br.sp { display: inline; }

@media (min-width: 768px) {
  br.pc { display: inline; }
  br.sp { display: none; }
}

/* 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; }
}


/*ボタン（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;
  /*right: -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(0);          /* 左へスッとスライドイン */
}

.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/mainV-2.jpg");
  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;
}

/* タグ */
.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);
  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);
}

/* 2カラム構造（左：説明 / 右：授業風景写真） */
.cta-first-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media(max-width: 1024px){
  .cta-first-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- 左：テキスト ---- */
.cta-first-title {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 18px;
}

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

.cta-first-points {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.cta-first-points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--text-main);
}
.cta-first-points li::before {
  content: "●";
  font-size: 0.55rem;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 6px;
}

/* ---- CTAボタン ---- */
.cta-first-btnwrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
}

/* Primary */
.cta-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.cta-btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Secondary */
.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);
}

/* ---- 右：授業風景写真 ---- */
.cta-first-imagebox {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

/* SP最適化 */
@media(max-width: 767px){
  .cta-btn {
    width: 100%;
    padding: 14px 0;
  }
}


/* ======================================
   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, 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;
}

/* 説明文 */
.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;
}

.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);
  transformb: 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.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* 画像ボックス */
.img-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.img-modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 閉じるボタン */
.img-modal-close {
  position: absolute;
  top: -36px;
  right: 0;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}
.modal-trigger {
  cursor: pointer;
  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;
}

/* 見出し下リードは既存 .sec-lead を使用 */


/* --- 基本情報 2カラム --- */
.price-info-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.price-info-card {
  background: var(--beige);
  padding: 28px 32px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
}

.price-info-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.price-info-list {
  padding-left: 0;
  list-style: none;
  line-height: 1.8;
  font-size: 0.98rem;
  color: var(--text-main);
}

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

.price-note {
  font-size: 0.9rem;
  color: var(--text-main);
  opacity: 0.8;
  margin-bottom: 18px;
}


/* --- 助成金案内 --- */
.subsidy-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
}

.subsidy-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.subsidy-box p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.subsidy-btn {
  display: block;        /* ← ここが決定打 */
  width: fit-content;    /* ← 中身の幅だけにする */
  margin: 0 auto;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  transition: 0.3s;

}

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


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

.curriculum-table-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.curriculum-time {
  font-size: 0.95rem;
  margin-bottom: 18px;
  opacity: 0.8;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.schedule-table th,
.schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.schedule-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

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


/* --- スケジュールボタン --- */
.schedule-buttons-wrapper {
  margin-top: 80px;
  text-align: center;
}

.schedule-label {
  font-size: 1rem;
  margin-bottom: 14px;
}

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

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

.skd-btn:hover {
  background: var(--accent);
}

/* =======================
      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;
}

