/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

/* =============================
   スマホ用ドロワーメニュー
   ============================= */

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}
.mobile-drawer-overlay.is-open {
  display: block;
}

.mobile-drawer-wrap {
  position: fixed;
  top: 0;
  right: 0;
  width: 88%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-drawer-wrap.is-open {
  transform: translateX(0);
}

.mobile-drawer-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 12px 12px 0 0;
  background: none;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  padding: 4px 8px;
  line-height: 1;
}

.mobile-drawer-content {
  padding: 16px 22px 48px;
  clear: both;
}

.mobile-drawer-brand {
  font-size: 22px;
  font-weight: 700;
  color: #1f5f9f;
  margin-bottom: 4px;
}

.mobile-drawer-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 12px;
}

.mobile-drawer-lead {
  font-size: 13px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
}

.mobile-drawer-cta,
.mobile-drawer-bottom-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
}

.drawer-btn {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.drawer-btn-primary {
  background: #1f5f9f;
  color: #fff !important;
}

.drawer-btn-secondary {
  background: #fff;
  color: #1f5f9f !important;
  border: 2px solid #1f5f9f;
}

.mobile-drawer-heading {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.08em;
  padding: 8px 0 6px;
}

.mobile-drawer-nav {
  border-top: 1px solid #e5e5e5;
  margin-bottom: 24px;
}

.mobile-drawer-nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid #eee;
  color: #222 !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
}

.mobile-drawer-profile {
  padding: 18px;
  background: #f6f7f9;
  border-radius: 8px;
  margin-bottom: 24px;
}

.mobile-drawer-profile-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.mobile-drawer-profile p {
  font-size: 13px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 8px;
}

.mobile-drawer-tags {
  font-size: 11px;
  color: #666;
  line-height: 1.8;
}

/* ============================================================
   SUUGAKU サイトカラー定義
   ============================================================ */
:root {
  --site-primary: #1d4ed8;
  --site-accent: #f5c842;
  --site-dark: #0f2340;
}

/* ============================================================
   A-1. Lightningデモスライダー非表示
   ============================================================ */
.vk_slider,
.vk-slider-item--has-background-dim,
[class*="slick-"] .vk_slider {
  display: none !important;
}

/* ============================================================
   A-2. フッタークレジット非表示
   ============================================================ */
.ltg-footer-credit,
.site-footer .powered-by,
.site-footer p:has(a[href*="vektor"]),
.site-footer p:has(a[href*="lightning"]) {
  display: none !important;
}

/* ============================================================
   B-0. 数強塾グループ 共通デザイントークン
   ============================================================ */
:root {
  --nm-primary:    var(--site-primary);
  --nm-dark:       var(--site-dark);
  --nm-accent:     var(--site-accent);
  --nm-white:      #ffffff;
  --nm-gray-bg:    #f8f9fb;
  --nm-text-main:  #0f172a;
  --nm-text-sub:   #475569;
  --nm-border:     #e2e8f0;
  --nm-radius:     12px;
  --nm-max-width:  1100px;
  --nm-section-v:  80px;
}

/* ============================================================
   B-1. 共通レイアウト
   ============================================================ */
.nm-section {
  padding: var(--nm-section-v) 24px;
}
.nm-section-inner {
  max-width: var(--nm-max-width);
  margin: 0 auto;
}
.nm-section--gray {
  background: var(--nm-gray-bg);
}
.nm-section--dark {
  background: var(--nm-dark);
}
.nm-section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--nm-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.nm-section-h2 {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--nm-text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}
.nm-section-h2--white {
  color: #ffffff;
}
.nm-section-lead {
  font-size: 15px;
  color: var(--nm-text-sub);
  line-height: 1.85;
  margin-bottom: 48px;
}
.nm-section-lead--white {
  color: rgba(255,255,255,0.72);
}
.nm-section-h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--nm-primary);
  margin: 12px 0 0;
  border-radius: 2px;
}
.nm-section-h2.center::after {
  margin: 12px auto 0;
}

/* ============================================================
   B-2. ファーストビュー
   ============================================================ */
.nm-hero {
  background: var(--nm-dark);
  padding: 80px 24px 72px;
  color: white;
  position: relative;
  overflow: hidden;
}
.nm-hero-inner {
  max-width: var(--nm-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .nm-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nm-hero {
    padding: 56px 20px 48px;
  }
}
.nm-hero-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: block;
}
.nm-hero-h1 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  color: white;
}
.nm-hero-accent {
  color: var(--nm-accent);
  border-bottom: 3px solid rgba(255,255,255,0.2);
}
.nm-hero-sub {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
}
.nm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.nm-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
}
.nm-hero-image-placeholder {
  background: rgba(255,255,255,0.07);
  border: 2px dashed rgba(255,255,255,0.18);
  border-radius: 16px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}

/* ============================================================
   B-3. ボタン共通
   ============================================================ */
.nm-btn-primary {
  display: inline-block;
  background: var(--nm-primary);
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.nm-btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  color: white;
}
.nm-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--nm-primary);
  border: 2px solid var(--nm-primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s;
}
.nm-btn-secondary:hover {
  background: var(--nm-primary);
  color: white;
}
.nm-btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.35);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s;
}
.nm-btn-ghost:hover {
  border-color: rgba(255,255,255,0.9);
  color: white;
}
.nm-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.wp-block-button__link {
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  transition: opacity 0.15s !important;
}

/* ============================================================
   B-4. 申込CTAセクション（LINE + WEBフォーム）
   ============================================================ */
.nm-apply-cta {
  padding: 72px 24px;
  background: var(--nm-gray-bg);
}
.nm-apply-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.nm-apply-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--nm-primary);
  margin-bottom: 10px;
}
.nm-apply-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--nm-text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}
.nm-apply-sub {
  font-size: 14px;
  color: var(--nm-text-sub);
  line-height: 1.85;
  margin-bottom: 36px;
}
.nm-apply-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 520px) {
  .nm-apply-btn-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}
.nm-apply-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.nm-apply-btn:hover {
  opacity: 0.88;
  transform: translateY(-3px);
}
.nm-apply-btn:active {
  transform: scale(0.98);
}
.nm-apply-btn--line {
  background: #06C755;
}
.nm-apply-btn--web {
  background: var(--nm-primary);
}
.nm-apply-btn-label {
  font-size: 16px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.nm-apply-btn-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.nm-apply-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.nm-apply-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--nm-text-sub);
}
.nm-check {
  color: #06C755;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}

/* ============================================================
   B-5. FAQアコーディオン
   ============================================================ */
.nm-faq {
  padding: var(--nm-section-v) 24px;
  background: var(--nm-gray-bg);
}
.nm-faq-inner {
  max-width: 800px;
  margin: 0 auto;
}
.nm-faq-list {
  margin-top: 36px;
}
.nm-faq-item {
  border-bottom: 1px solid var(--nm-border);
}
.nm-faq-item:first-of-type {
  border-top: 1px solid var(--nm-border);
}
.nm-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--nm-text-main);
  text-align: left;
  gap: 16px;
  transition: color 0.15s;
  font-family: inherit;
}
.nm-faq-q:hover {
  color: var(--nm-primary);
}
.nm-faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--nm-primary);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
  display: inline-block;
}
.nm-faq-q[aria-expanded="true"] .nm-faq-icon {
  transform: rotate(45deg);
}
.nm-faq-a {
  padding: 0 4px 20px;
}
.nm-faq-a p {
  font-size: 14px;
  color: var(--nm-text-sub);
  line-height: 1.85;
  border-left: 3px solid var(--nm-primary);
  padding-left: 16px;
  margin: 0;
}

/* ============================================================
   B-6. ブログ最新記事セクション
   ============================================================ */
.nm-recent-posts {
  padding: var(--nm-section-v) 24px;
  background: white;
}
.nm-recent-posts-inner {
  max-width: var(--nm-max-width);
  margin: 0 auto;
}
.nm-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .nm-posts-grid {
    grid-template-columns: 1fr;
  }
}
.nm-post-card {
  background: var(--nm-gray-bg);
  border-radius: var(--nm-radius);
  overflow: hidden;
  border: 1px solid var(--nm-border);
  transition: transform 0.2s;
}
.nm-post-card:hover {
  transform: translateY(-4px);
}
.nm-post-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.nm-post-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: var(--nm-border);
  text-decoration: none;
  color: var(--nm-text-sub);
  font-size: 13px;
}
.nm-post-body {
  padding: 16px 18px 20px;
}
.nm-post-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--nm-primary);
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.nm-post-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text-main);
  line-height: 1.6;
  margin-bottom: 10px;
}
.nm-post-body h3 a {
  color: inherit;
  text-decoration: none;
}
.nm-post-body h3 a:hover {
  color: var(--nm-primary);
}
.nm-post-date {
  font-size: 12px;
  color: var(--nm-text-sub);
}

/* ============================================================
   B-7. スマホ固定CTAバー
   ============================================================ */
.nm-fixed-cta {
  display: none;
}
@media (max-width: 768px) {
  .nm-fixed-cta {
    display: grid;
    grid-template-columns: auto 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    border-top: 1px solid var(--nm-border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .nm-fixed-line,
  .nm-fixed-web {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
  }
  .nm-fixed-line {
    background: #06C755;
    color: white;
    min-width: 110px;
  }
  .nm-fixed-web {
    background: var(--nm-primary);
    color: white;
  }
  body {
    padding-bottom: 80px;
  }
}

/* ============================================================
   C. お問い合わせページ ヘッダー
   ============================================================ */
.nm-contact-header {
  background: var(--nm-dark);
  padding: 60px 24px 52px;
  text-align: center;
  margin-bottom: 48px;
}
.nm-contact-header-inner {
  max-width: 640px;
  margin: 0 auto;
}
.nm-contact-h1 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
}
.nm-contact-lead {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  margin-bottom: 28px;
}
.nm-contact-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.nm-contact-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* ============================================================
   D-1. サイドバーCTAウィジェット
   ============================================================ */
.nm-sidebar-cta {
  background: var(--nm-dark);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 28px;
}
.nm-sidebar-cta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.nm-sidebar-cta h3 {
  font-size: 15px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  line-height: 1.45;
}
.nm-sidebar-cta p {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  line-height: 1.65;
}
.nm-sidebar-cta a {
  display: block;
  background: var(--nm-primary);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nm-sidebar-cta a:hover {
  opacity: 0.85;
  color: white;
}

/* ============================================================
   塾長写真セクション共通スタイル
   ============================================================ */
.nm-instructor-photo {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-width: 320px;
  width: 100%;
  display: block;
  margin: 0 auto 24px;
}

/* ============================================================
   スマホUI修正
   ============================================================ */

/* LINEフロートボタン - スマホで縮小 */
@media (max-width: 768px) {
  a[href*="lin.ee"][style*="fixed"] {
    padding: 8px 14px !important;
    font-size: 13px !important;
    bottom: 70px !important;
    right: 12px !important;
  }

  /* LINEフロートSVGアイコン縮小 */
  a[href*="lin.ee"][style*="fixed"] svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ハンバーガーメニューボタン - Lightning テーマ */
.vk-mobile-nav-menu-btn,
.vk-mobile-nav-menu-btn button,
#vk-mobile-nav-menu-btn {
  width: 44px !important;
  height: 44px !important;
}
.vk-mobile-nav-menu-btn .hamburger,
.vk-mobile-nav-menu-btn .hamburger-inner,
.vk-mobile-nav-menu-btn .hamburger-inner::before,
.vk-mobile-nav-menu-btn .hamburger-inner::after {
  width: 22px !important;
}

/* スマホドロワーメニュー - 余白縮小 */
@media (max-width: 768px) {
  .mobile-drawer-nav a {
    padding: 12px 8px !important;
    font-size: 14px !important;
  }

  /* モバイルメニュー全体の余白削減 */
  .vk-mobile-nav .menu-item a,
  #vk-mobile-nav .menu-item a {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}

/* コラムページ - ブログアーカイブのスタイル */
.blog .site-main article.post,
.archive .site-main article.post {
  border-radius: 8px;
  overflow: hidden;
}

/* nm-fixed-ctaが既存のLINEボタンと重ならないよう調整 */
@media (max-width: 768px) {
  a[href*="lin.ee"][style*="fixed"][style*="bottom:80px"] {
    display: none !important; /* fixed ctaバーで代替 */
  }
}


/* ======================================================
   講師一覧ページ (.sk-lec-*)
   ====================================================== */
.sk-lec-wrap{font-family:'Noto Sans JP',sans-serif;max-width:1200px;margin:0 auto;padding:48px 20px;}
.sk-lec-head{text-align:center;margin-bottom:48px;}
.sk-lec-head h1{font-size:30px;font-weight:700;color:#0f172a;letter-spacing:-0.01em;}
.sk-lec-head h1 span{color:#1a3fa8;}
.sk-lec-head p{font-size:15px;color:#475569;margin-top:10px;}
.sk-lec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media(max-width:900px){.sk-lec-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.sk-lec-grid{grid-template-columns:1fr;}}
.sk-lec-card{background:#fff;border-radius:16px;padding:24px 20px;box-shadow:0 2px 16px rgba(0,0,0,0.08);}
.sk-subj{font-size:18px;font-weight:700;color:#1a75d2;margin-bottom:6px;}
.sk-divider{height:2.5px;background:linear-gradient(90deg,#9ACD32,#7AC143);border-radius:2px;margin-bottom:16px;}
.sk-person{display:flex;align-items:center;gap:10px;margin-bottom:10px;}
.sk-person:last-child{margin-bottom:0;}
.sk-photo{width:70px;height:70px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #e8ecf4;}
.sk-no-photo{width:70px;height:70px;border-radius:50%;background:#dde4f0;flex-shrink:0;display:flex;align-items:center;justify-content:center;}
.sk-name{font-size:14px;font-weight:700;color:#1e293b;line-height:1.4;}
.sk-kana{font-size:12px;color:#64748b;margin-top:1px;}
.sk-text-only{font-size:14px;color:#1e293b;margin-bottom:8px;font-weight:600;}
.sk-text-only span{font-size:12px;font-weight:400;color:#64748b;}
.sk-cta{background:linear-gradient(135deg,#1a3fa8,#0d2b7a);color:#fff;border-radius:16px;padding:40px 24px;text-align:center;margin-top:40px;}
.sk-cta h2{font-size:22px;font-weight:700;margin-bottom:10px;}
.sk-cta p{font-size:14px;opacity:0.85;margin-bottom:24px;}
.sk-cta a{display:inline-block;background:#fff;color:#1a3fa8;padding:14px 36px;border-radius:10px;font-weight:700;font-size:15px;text-decoration:none;}
