@charset "UTF-8";
/* ============================================================
   ベース設定（2025-11-12 Final / Sticky安定版）
   作者：住宅展示場ネット
   目的：全体の初期化と sticky の安定動作を両立
============================================================ */

/* ------------------------------
   共通リセット＆ボックスモデル統一
--------------------------------*/
* {
  box-sizing: border-box;
}

/* ------------------------------
   HTML・BODYの基本設定
--------------------------------*/
html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #3e3a35;
  background: #fcfbf9;
  scroll-behavior: smooth;
  height: auto;
  min-height: 100%;
}

/* ------------------------------
   スクロール挙動とsticky安定化
--------------------------------*/
/*
  stickyが効かなくなる要因：
  ・親要素に overflow: hidden / auto / scroll
  ・transform / filter / backdrop-filter の指定
  ここではそれらを解除して、stickyを安定動作させる
*/
html {
  overflow-x: hidden; /* 横スクロール防止（安全） */
}

body {
  overflow-x: visible; /* sticky維持のため visible */
}

/*:root {
 --accent: #B86E2D; //* 焼きオレンジ（上品寄り） */
 /*--accent-dark: #965722; /* hover / 1段濃くした影色 */
/*}*/

:root{
 --accent: #9C3B3B;     /* 深みのあるワイン系 */
 --accent-dark: #7A2E2E;  /* hover用：少し沈める */
}


/* section 共通の上下余白 */
section {
  padding: 80px 0;
  margin: 0;
}

 h1, h2, h3 {
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
}

a {
    text-decoration: none;
}


/* 改行の定義　初期は全部非表示にしておく */
br.pc { display:none; }
br.sp { display:none; }

/* PC */
@media (min-width:1025px){
  br.pc { display:inline; }
}

/* SP */
@media (max-width:1024.98px){
  br.sp { display:inline; }
}

.inner{
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 0 20px;
}
/* ===============================
   共通 – セクション内側（1200）
   =============================== */
.solution-inner,
.area-section .section-inner {
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  text-align:center;
}

/* -----------------------------------------
   HEADER+Global Navi
--------------------------------------------*/
.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);
 transform: translateZ(0); /* GPU競合回避 */
}
.header-inner {
  max-width: 1600px;
  margin: 0;
  padding: 0px 60px 0px 30px;  /* ←右側だけ増やす */
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  transform: translateX(-10px); /* ← 左に寄せる */
  transform: translatey(10px); /* ← 追加 */
}
.site-logo a {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =========================================
   PC専用  global-nav定義
========================================= */
  .global-nav{
    position: sticky;
    top: 70px; /* ← 上段headerの高さ分を指定（例：70px前後で調整） */
    z-index: 9998;
    border-top: 1px solid #1e3a5f;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    width: 100%;
  }
  .global-nav ul{
    max-width: 1600px;
    margin: 0 auto;
    padding: 0px 60px 20px 30px;
    display:flex;
    justify-content:flex-end;
    gap: 24px;
    list-style:none;
  }
  .global-nav a{
    color:#fff;
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 14px;
    border-radius: 6px;
    transition:0.3s;
  }
  .global-nav a:hover{
    background: #9C3B3B;
    color:#fff;
  }

/* ------------------------------
   HEROセクション
--------------------------------*/
.b-hero-section {
  position: relative;
  width: 100%;
  /*background: #f8f6f3; /* ← やわらかいアイボリー */
  color: #2f2b28;
  padding: 40px 0 80px; /* 上下に余白を確保 */
  display: flex;
  justify-content: center;
  align-items: center;
 margin-top: 0 !important;  /* ← これだけ先に入れる */
}

/* スライダーラッパーに幅制限 */
.b-hero-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;       /* ← ここで幅制限 */
  aspect-ratio: 16 / 8.5;  /* ← A案寄り比率で圧迫感を減らす */
  overflow: hidden;
  border-radius: 16px;     /* ← 角をやわらかく */
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  --pos: 50%;
  background: #ddd;
}

/* Before/After画像 */
.b-hero-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  z-index: 2;
 /* transition: clip-path 0.05s linear; /* ← アニメーション中に僅かな遅延防止 */
}
.b-hero-after {
  position: absolute;
  inset: 0;
 z-index: 1;
}
.b-hero-after img,
.b-hero-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.b-hero-divider {
  position: absolute;
  left: var(--pos);
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,1.00); /* 白*/
  z-index: 3;
}
/* ハンドル */
.b-hero-handle {
  position: absolute;
  top: 40%;
  left: calc(var(--pos) - 21px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #23352c;
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  transform: translateY(-50%);
  z-index: 4;
}
/* ハンドル中央の記号（<>） */
.b-hero-handle::before {
  content: "<";
  margin-right: 2px;
  font-weight: 500;
}
.b-hero-handle::after {
  content: ">";
  margin-left: 2px;
  font-weight: 500;
}

/* 画像やスライダー操作時に選択されないようにする */
.js-b-hero-slider,
.js-b-hero-slider * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none; /* ←静的画像ならこれで完全に選択不可 */
}

/* ただし、ハンドルだけは操作可能にする */
.b-hero-handle {
  pointer-events: auto;
  cursor: ew-resize;
}

/* HEROコンテンツ　キャッチコピー部分 */
.b-hero-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /*background: rgba(255,255,255,0.9);*/
  background: rgba(250,250,250,0.8);
  border-radius: 12px;
  text-align: center;
  max-width: 820px;   /* ← 820 → 960 に変更 */
  width: 68%;         /* ← 比率もわずかに広げて視覚バランス調整 */
  padding: 36px 40px; /* ← 余白は現状維持でOK */
  bottom: -10px;      /* ← わずかに上げて視覚的に整える */
  box-shadow: 0 4px 12px rgba(0,0,0,0.14);
  z-index: 10;
}

.b-hero-content h1 {
 font-size: 2.2rem;
  color: #2f2b28;
  margin-bottom: 10px;
}
.b-hero-content .subtitle {
  font-size: 1.1rem;
  color: #5a534c;
 font-weight: 600;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* =========================================
   全ボタン（global button基準）確定版
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;               /* ピル統一 */
  background: #1e3a5f;                /* ネイビー */
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.btn:hover {
  background: var(--accent-dark);     /* エンジ */
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}


/* ─────────────────────────────
   secondary（枠線CTA）
───────────────────────────── */
.btn.secondary-cta {
  background: transparent;
  border: 2px solid var(--accent-dark);
  color: var(--accent-dark);
  box-shadow: none;
}

.btn.secondary-cta:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ------------------------------
   heroセクションCTAボタン
--------------------------------*/
.cta-buttons .btn {
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.22s;
}

/* ------------------------------
   各セクション共通
--------------------------------*/
section {
  padding: 80px 0;   /* ← 20px（左右）は削除 */
  margin: 0;         /* auto は不要 */
}

h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #2f2b28;
  margin-bottom: 10px;
}
.description,
.section-lead {
  text-align: center;
  color: #555;
  margin-bottom: 50px;
 font-size: 1.0rem;
}

/* ------------------------------
   BtoBカード  3本の柱：A案 横並び 
---------------------------------- */
.btob-section {
 /*background: #f8f6f3;*/
 margin: 0 auto;
 border-radius: 15px;
 padding: 100px  0px 120px ;
}
.btob-section h2{
  color:#1e3a5f;
}

.btob-cards{
  display:flex;
  gap:28px;            /* カード間余白 */
  justify-content:center;
  margin-top:32px;
}

.btob-card{
  flex:1;               /* ← 3つ均等 */
  background:#fff;
  border-radius:12px;
  padding:32px 26px;
  text-align: center;
  box-shadow:0 6px 20px rgba(0,0,0,0.06);
  transition:transform .25s ease, box-shadow .25s ease;
}

.btob-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 26px rgba(0,0,0,0.13);
}

.btob-card h3{
  font-size:1.35rem;
  margin-bottom:14px;
 color: #6a645d;
}

.btob-card p{
  font-size:0.95rem;
  line-height:1.7;
  color:#5a534c;
  margin-bottom:16px;
}

.btob-link{
  font-weight:600;
  text-decoration:none;
  color: var(--accent-dark);
 border-bottom:2px solid var(--accent-dark);
  padding-bottom:2px;
  transition:color .25s ease, border-color .25s ease;
}

.btob-link:hover{
  color: var(--accent);
 border-color: var(--accent);
}

/* =========================
   SP (〜767.98px): 縦積み
========================= */
@media (max-width: 767.98px){
  .btob-section{
    padding: 60px 20px 0px;   /* 少し浅く　※PCより縮める */
  }
  .btob-section .inner{
    max-width: 100%;        /* ← これが決定打 */
    padding: 0 16px;        /* スマホの左右余白 */
  }
.btob-section h2{
        font-size:1.4rem;   /* ここ追加 ※これだけで読みやすさUP */
        line-height:1.35;
 }
 .btob-cards{
    flex-direction: column;   /* ← 横並び → 縦積み */
    gap: 24px;                /* モバイル向け余白に調整 */
    padding: 0 16px;          /* 画面左右に breathing space */
}
 .btob-card{
    width:100%;
    margin:0 auto;
}
  .btob-card h3{
    font-size: 1.2rem;         /* 少しだけ縮めると読みやすい */
  }       
}

/* ------------------------------
   ギャラリー（カード型）
--------------------------------*/
.case-gallery-section {
  background: #fcfbf9;
}
.case-gallery-section h2 {
    color:#1e3a5f;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 16px rgba(0,0,0,0.08);
  background: #fff;
}
.gallery-card {
  text-align: center;
  padding: 18px 16px 22px;
  border-top: 1px solid #eee;
}
.gallery-title {
  font-size: 1.1rem;
  color: #2f2b28;
  margin-bottom: 8px;
}
.case-gallery-section .inner .section-header .section-lead {
    font-size: 1.1rem;
}
.detail-link {
  display: inline-block;
  background: #1e3a5f;
  color: #fff!important;
  border-radius: 24px;
  padding: 10px 22px;
  font-weight: 600;
  transition: 0.3s;
}
.detail-link:hover {
 background: var(--accent-dark);
 color: #fff;
 transform: translateY(-2px);
}

 .case-gallery-section .section-header{
     margin-bottom: 24px;
   }
.case-gallery-section .section-header .section-lead{
    margin-top: 12px;
    margin-bottom: 32px;
    line-height: 1.7;
  }
.case-gallery-section h2{
    margin-bottom: 8px;
 }

/* =========================
   SERVICE SUMMARY（BtoB 導線）
=========================== */
.service-summary-section{
  text-align:center;
  background:#fcfbf9;
  padding: 72px 20px;   /* PC基準高さ */
}
.service-summary-section .inner{
  max-width:1100px;
  margin:0 auto;
}
.service-summary-section h2 {
  font-size:2.0rem;
  line-height:1.25;
  color:#1e3a5f;
  margin-bottom:12px;
}
.service-summary-section .inner .section-lead {
  font-size:1.08rem;
  line-height:1.7;
  color:#555;
  margin-bottom:28px;
}
.service-summary-section .btn {
  display:inline-block;
  margin:0 auto;
}

/* ALT（ネイビー帯） */
.service-summary-section.alt{
  color:#fff;
  background:linear-gradient(to bottom,#132a44 8%, #0d1d2f 92%);
  padding:96px 20px 120px;  /* PC default */
}
.service-summary-section.alt h2{
  color:#fff;
  font-size:2.2rem;
  line-height:1.28;
  letter-spacing:.04em;
  margin-bottom:14px;
}
.service-summary-section.alt .section-lead{
  color:#fff;
  font-size:1.15rem;
  line-height:1.75;
  letter-spacing:.02em;
  opacity:.95;
  margin-bottom:32px;
}
.service-summary-section.alt .btn{
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  padding:18px 48px;
  font-size:1.06rem;
  box-shadow:0 10px 28px rgba(0,0,0,.32);
}
.service-summary-section.alt .btn:hover{
  background:var(--accent-dark);
  color:#fff;
  transform:translateY(-3px);
}

/* ===============================
   SERVICE SUMMARY（BtoB 導線）レスポンシブ
=============================== */
/* Tablet 〜1024px */
@media (max-width:1024px){
  .service-summary-section{ 
     padding: 32px 20px 56px;
    }
  .service-summary-section h2{ 
      font-size: 1.8rem; 
    }
  .service-summary-section .section-lead{
    font-size: 1.0rem;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .service-summary-section.alt{
    padding: 72px 18px 96px;
  }
  .service-summary-section.alt h2{ 
      font-size:1.95rem;
    }
  .service-summary-section.alt .section-lead{
    font-size:1.06rem;
    margin-bottom:26px;
  }
  .service-summary-section.alt .btn{
    padding:16px 40px;
    font-size:1.0rem;
  }
}

/* SP 〜480px */
@media (max-width: 480px){
  .service-summary-section{ 
      padding: 32px 20px 60px; /* ←上40 / 下60 ぐらいで十分 */
    }
  .service-summary-section h2{ 
      font-size:1.6rem; 
    }
  .service-summary-section .section-lead{
    font-size:.98rem;
    line-height:1.6;
    padding:0 12px;
    margin-bottom:20px;
  }

  .service-summary-section.alt{
    padding:60px 16px 80px;
  }
  .service-summary-section.alt h2{
    font-size:1.7rem;
  }
  .service-summary-section.alt .section-lead{
    font-size:.98rem;
    margin-bottom:22px;
  }
  .service-summary-section.alt .btn{
    padding:14px 32px;
    font-size:.98rem;
  }
}



/* =========================================
   ビフォー・アフタースライダー（活用事例・活用事例ギャラリー共通）
========================================= */

/* スライダー */
.js-before-after-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;  /* ← B案より少し高め（落ち着いた印象） */
  overflow: hidden;
  --pos: 50%;
  border-radius: 14px;
  background: #e8e5e2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 画像 */
.js-before-after-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Before・After配置 */
.image-before-new,
.image-after-new {
  position: absolute;
  inset: 0;
}

.image-before-new {
  z-index: 1;
}
.image-after-new {
  clip-path: inset(0 0 0 calc(var(--pos)));
  z-index: 2;
}

/* スライダー線とハンドル */
.slider-divider {
  position: absolute;
  left: var(--pos);
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,1.00);
  z-index: 3;
  /*transition: left 0.05s linear; 残像が残る*/
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: calc(var(--pos) - 18px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e3a5f;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.25);
  transform: translateY(-50%);
  display: flex;
  /*flex-direction: column;  /* ← これで縦方向に配置 */
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 11px;
  cursor: ew-resize;
  z-index: 4;
gap: 0; /* ← ← 間隔を詰める */
  line-height: 1; /* ← 縦方向の余白を圧縮 */
}

.slider-handle::before {
  content: "<";
  margin-right: 2px;
}
.slider-handle::after {
  content: ">";
  margin-left: 2px;
}


/* =========================================
 活用事例 comparisonスライダー調整
========================================= */
.comparison-section {
  margin: 100px auto;
  padding: 80px 40px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  border:1px solid #e2e2e2;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
}

/* タイトル周り */
.comparison-section .inner h2 {
  margin-bottom: 12px;
   color:#1e3a5f;
}
.comparison-section .inner .description {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* =========================================
   活用事例ギャラリー スライダー
========================================= */
/* グリッドレイアウト全体 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* ← 横並びでも1枚でもOK */
  gap: 40px; /* カード間余白をゆったり */
  margin: 0 auto;
  padding: 40px 20px 20px;
}

/* 各カードブロック */
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* スライダー部分 */
.gallery-item .js-before-after-slider {
  width: 100%;
  aspect-ratio: 16 / 11; /* ← 比率を少し低くして高さを抑える */
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

/* カード下部 */
.gallery-card {
  width: 100%;
  padding: 20px 20px 24px;
  text-align: center;
}

.gallery-title {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 12px;
}

.detail-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #1e3a5f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

/* =========================================
 comparisonセクション 2事例レイアウト　追記
========================================= */
.comparison-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 80px 40px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e2e2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* 見出し */
.comparison-section h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #222;
}

.comparison-section .description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* 2列グリッド */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 60px;
  justify-items: stretch;
}

/* 各事例ブロック */
.comparison-item {
 background: #fafafa;
  padding: 16px 16px 28px;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comparison-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

/* スライダー部分 */
.comparison-item .slider-container {
  width: 90%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;

}

/* タイトルとリンク */
.case-title {
  font-size: 1.1rem;
  color: #222;
  margin: 12px 0 6px;
}

.case-link {
  font-size: 1.0rem;
  color: #1e3a5f;
 font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.22s ease;
}

.case-link:hover {
  border-bottom: 1px solid #1e3a5f;
color: #7E1F2A;
}

/* =========================================
    comparisonセクション：もっと見るボタン
========================================= */
.more-btn-wrap {
  text-align: center;
  margin-top: 40px;
}

.more-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.more-btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ネイビーのフェードアニメーション */
.fade-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 58, 95, 0.35); /* ← ネイビー半透明 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 9999;
}

.fade-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===============================
   solution-section（動画エリア調整）
   =============================== */
.solution-section {
  text-align: center;
  padding: 100px 20px;
 margin-top: 60px;
  /*background: #f8f6f3;*/
}

.solution-section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
 color:#1e3a5f;
}

.solution-section .section-lead {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

/* iframeをレスポンシブに拡大表示 */
.video-container {
  position: relative;
  margin: 0 auto;          /* ← 中央寄せ */
  aspect-ratio: 16 / 9;    /* ← 比率維持 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.solution-section .section-media-wrapper {
  width:90%;
  max-width:1200px;
  margin:60px auto 40px;
}

.solution-section iframe {
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  border-radius:16px;
}

/* ===== 地図ブロック（幅/角丸/影の統一） ===== */
.area-section{
  background:#f8f6f3;
  padding:100px 0;
  text-align:center;
}
.map-placeholder{
  position: relative;
  display: block;             /* inline-block → block にして崩れにくく */
  width: 100%;
  aspect-ratio: 16 / 7;  /* ← ここだけ追加 */  
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-placeholder img{
  object-fit: cover;
}
.area-section h2 {
    color: #1E3A5F;
}
/* ===== オーバーレイの可読性UP（ビネット＋軽いブラー） ===== */
.map-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
  /* 中央はやや明るく、外側を暗くする放射グラデーション */
  background:rgba(15,45,86,0.22); /* ← 透明度もっと薄く */
  backdrop-filter: blur(1px);      /* ← blur弱く */
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.map-overlay:hover{
  background: rgba(15,45,86,0.32);
  backdrop-filter: blur(1px);
}

.map-overlay p{
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* オーバーレイのCTAは“ピル形状”で統一 */
.map-overlay .btn.primary-cta{
  background: #fff;
  color: #1e3a5f;
  border-radius: 999;
  font-weight: 700;
  padding: 12px 32px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: transform .22s cubic-bezier(.22,.75,.25,1), box-shadow .22s;
}
.map-overlay .btn.primary-cta:hover{
  background: var(--accent-dark); 
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.24);
}

/* ===== 都道府県リンク：幅のバラつき解消＆角丸統一 ===== */
.prefecture-links{
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* PCは5等分で揃える */
  gap: 16px 16px;
  align-items: stretch;
}

/* タブレットで4列、SPは後でまとめて対応 */
@media (max-width: 1024px){
  .prefecture-links{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.prefecture-links a{
  display: flex;              /* 高さを均一化（中央寄せ） */
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 8px;
  background: #fff;
  color: #1e3a5f;
  border: 2px solid #1e3a5f;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.22,.75,.25,1), box-shadow .22s, background .22s, color .22s, border-color .22s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}
.prefecture-links a:hover{
  background: #1e3a5f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.10);
}
/* 件数表示はhover時も可読にする */
.prefecture-links a .count{
  display: inline-block;
  margin-left: .25em;
  font-size: .85rem;
  color: #666;
}
.prefecture-links a:hover .count{
  color: #fff;
  opacity: .9;
}

/* ================================
   参画団体,参加企業　共通ボックス
================================ */
.story-card-box{
  /*background:#fff;*/
  /*border:1px solid #e2e2e2;*/
  border-radius:16px;
  padding: 20px 40px;
  /*box-shadow:0 6px 18px rgba(0,0,0,0.04);*/
}

/* ================================
   partner-section（参画団体）確定版
================================ */
.partner-section {
  color: #1E3A5F;
  text-align: center;
  padding: 40px 0 24px;
  background: #fff;
}
.partner-section .section-inner {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0 40px;
}
.partner-section .section-header {
  margin-bottom: 60px;
}
.partner-section h2 {
  font-size: 2rem;
  color: #1E3A5F;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.partner-section .section-lead {
  font-size: 1.1rem;
  color: #555;
}

/* ロゴグリッド */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 24px 28px;
  align-items: center;
  justify-items: center;
}

/* ロゴカード */
.partner-logos img {
  background: #fff;
  border-radius: 8px;
  padding: 14px 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  max-width: 180px;
  height: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* hover */
.partner-logos img:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* ================================
   company-section（参加企業）確定版
================================ */
.company-section {
  background: #f9f7f3;
  color: #333;
  text-align: center;
  padding: 48px 0;
}
.company-section .section-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;   /* ← paddingを含めて計算 */
}
.company-section h2 {
  font-size: 1.8rem;
  color: #1E3A5F;
  margin-bottom: 6px;
}
.company-section .section-lead {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 24px;
}
/* ロゴグリッド：高密度 */
.company-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* PC基準6列 */
  gap: 16px;
  align-items: center;
  justify-items: center;
  padding: 12px 0 6px;
  box-sizing: border-box;
}
/* ロゴ画像仕様 */
.company-logos img {
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow:  0 2px 4px rgba(0,0,0,.06),  0 0 1px rgba(0,0,0,.07); 
  transition: transform .15s ease;
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: grayscale(40%);
  opacity: .95;
}

/* hover */
.company-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,.11), 0 0 1px rgba(0,0,0,.10);
}

/* ================================
   建築設計事務所ブロック
================================ */ 
.design-office-block {
  margin-top: 40px; /* ← 少し詰める */
}
.design-office-block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 18px;
  color: #1E3A5F;
}

.design-office-logos{
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 16px;
  align-items: center;
  justify-items: center;
  padding: 12px 0 6px;
}

/* ======================
   company-item（JS生成用）
====================== */
.company-item{
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  width: 160px;      /* ← 横幅固定（長文対策） */
  min-height: 28px;  /* ← 高さ最低限確保 */
  margin: 4px auto;
  box-sizing: border-box;
}

/* ---- ロゴあり ---- */
.company-item img{
  max-height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;           /* ← 幅超え防止 */
  padding: 2px 8px;          /* ← 左右に余裕（切れ対策） */
  box-sizing: border-box; 
}

/* ---- ロゴなし（テキスト企業） ---- */
.company-item.no-logo{
  background: #eaeaea;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px;
}
/* ---- テキスト表示（a, span共通） ---- */
.company-item a,
.company-item.no-logo span{
  font-size: .8rem;
  color: #333;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 4px;
  text-align: center;
  display:  block;
  width: 100%;
  min-width: 0;             /* 長文対策 */
  white-space: nowrap;   
  overflow: hidden;
  text-overflow: ellipsis; /* 長いテキストを省略*/
}
/* ---- hover効果 ---- */
.company-item a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  transition: all 0.25s ease;
}


/* ===============================
   レスポンシブ調整まとめ
================================= */
/* ---- PC中間幅 ---- */
@media (max-width: 1199.98px){
  .company-logos { 
      grid-template-columns: repeat(5, 1fr); 
    }
  .design-office-logos { 
      grid-template-columns: repeat(8, 1fr); 
    }
}

/* ============================================================
  company-section : スマホ版（2025-11-12 最終安定版）
  目的：3列維持・横スクロール防止・ロゴ切れ防止
  ※旧ブロックは削除済み。このブロックを唯一のSP定義とする。
============================================================ */
/* ---- タブレット ---- */
@media (max-width: 991.98px){
  .company-logos { 
      grid-template-columns: repeat(4, 1fr);
    }
  .design-office-logos { 
      grid-template-columns: repeat(6, 1fr);
    }
}

/* ---- スマホ（2025-11-12改）---- */
@media (max-width: 767.98px) {
  .company-section {
    overflow-x: hidden;
  }
  .company-section .section-inner {
    width: 100%;
    padding: 0 8px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .company-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* ← 幅制約を解除 */
    gap: 18px 14px;
    justify-items: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .company-item {
    width: auto;
    max-width: 120px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 6px;
  }

  .company-item img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .company-item.no-logo {
    white-space: normal;
    word-break: break-word;
    font-size: 0.8rem;
    padding: 6px 4px;
    min-height: 36px;
    width: 100%;
    text-align: center;
  }
  .company-item.no-logo span {
    line-height: 1.1;
    font-size: 0.75rem;
  }
}

/* ---- 超小画面（例: iPhone SEなど） ---- */
@media (max-width: 479.98px){
  .company-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .company-item img {
    max-width: 100px; /* ← 少し抑え目 */
  }
}


/* =========================================
   フローティングボタン群：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);
}

/* スクロールでフェード制御 */
.scroll-top-btn {
  opacity: 0;
  pointer-events: none;
}
.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

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

/* =========================================
   ドロワーメニュー（バーガーメニュー開閉）
========================================= */
.drawer-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: rgba(30,58,95,0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  z-index: 10001;
  padding: 80px 24px 40px;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.25);
  transition: right 0.4s ease-in-out;
}
.drawer-menu.open {
  right: 0;
}
.drawer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-menu li {
  margin-bottom: 24px;
}
.drawer-menu a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  display: block;
  transition: color 0.3s;
}
.drawer-menu a:hover {
  color: #a98545; /* ゴールドアクセント */
}

/* 閉じるボタン */
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.8rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.drawer-close:hover {
  transform: rotate(90deg);
}

/* バーガーアイコン */
.burger {
 display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* メニュー背景フェード */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9998;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* TOPボタン表示制御 */
.scroll-top-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   story-section（3つのストーリー）確定版
========================================= */
.story-section .story-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.story-section {
  text-align: center;
}
.story-section-header {
  margin-bottom: 40px;
}
.story-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a5f;
}

/* 各ブロック */
.story-block {
  position: relative;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 48px 32px;
  margin: 80px auto;
}

/* タイトル */
.story-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 18px;
}

/* リード文 */
.story-desc {
  font-size: 1rem;
  color: #3e3a35;
  margin-bottom: 32px;
  line-height: 1.9;
}

/* CTA（story専用）*/
.story-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all .25s ease;
}
.story-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* --- 3つのblockを縦に繋ぐ縦ライン（only） --- */
.story-block::after {
  content:"";
  position: absolute;
  left: 50%;
  width: 1px;
  background: rgba(0,0,0,0.2);
  bottom: -80px;
  height: 80px;
  transform: translateX(-50%);
}

.story-block:last-child::after {
  display: none;
}
/* ===============================
       story section（横幅を揃えるための定義）
 =============================== */
.story-section-header {
  max-width:1200px;
  margin:0 auto 60px;
  padding:0 20px;
}
.story-section .story-inner,
.story-section .story-block,
.story-section .story-section-header {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   オンラインスクール バナー（確定版）
========================= */
.cg-banner{
  background: url("../img/cg_banner_1200x300_left.png") center / cover no-repeat;
  color:#fff;
  text-align:center;
  padding: 60px 0 80px;
  margin:120px auto; 
 position: relative; /* ← これ必須 */
  overflow:hidden;    /* 念のため */
/*background:#112d4e;   /* ネイビー */
}
.cg-banner::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.14); /* ← 濃すぎたら .24 とかに調整 */
  pointer-events:none;
}
.cg-banner .inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}
.cg-banner-lead{
  font-size:1.35rem;
  margin-bottom:16px;
  opacity:.95;
}
.cg-banner-title{
  font-size:1.9rem;
  font-weight:700;
  margin-bottom:26px;
  color: #fff;
}

/* ---- CGスクール バナー専用 CTA ---- */
.banner-cta{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background: var(--accent);    
  color:#fff;
  padding:22px 60px;
  border-radius:999px;
  font-weight:700;
  font-size:1.1rem;
  box-shadow:0 6px 15px rgba(0,0,0,0.20);
  transition: all .25s ease;
  min-width:300px;
  letter-spacing:.02em;
  margin-top:40px; /* ← ボタン下のゆとり確保 */
}

.cg-banner-schoolname {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;  
  margin-bottom: 16px;
}
.banner-cta:hover{
  background: var(--accent-dark);   
  transform:translateY(-3px);
  box-shadow:0 12px 22px rgba(0,0,0,0.25);
}

/* ===============================
   area-section（地図）
   =============================== */
.area-section .section-media-wrapper {
  width:90%;
  max-width:1200px;
  margin:60px auto 40px;
}

.area-section .map-placeholder {
  width:100%;
  border-radius:16px;
  overflow:hidden;
}

/* ===============================
   prefecture links（ここも揃える）
   =============================== */
.prefecture-links {
  width:90%;
  max-width:1200px;
  margin:40px auto 0;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px,1fr));
  gap:16px;
}

/* ===============================
   スマホ用　bottom に固定のnav
   =============================== */
.sp-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #ffffffF2; /* ←ほんのり透明 */
  border-top: 1px solid rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  z-index: 900;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.08);
  width: 100vw;
  overflow: hidden;
}
.sp-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #333;
  text-decoration: none;
}
.sp-bottom-nav .nav-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}

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

/* ======================================
   GLOBAL RESPONSIVE BASE
   (2025-11-07)
====================================== */
/* 0) 共通：横ずれ対策 */
html, body {
  overflow-x: hidden;
}

/* 1) SP base 〜767px */
@media (max-width:767px){
  body{
    font-size:16px;
    line-height:1.7;
    padding-bottom:72px; /* ← SP固定フッターナビの高さ確保 */
  }
  .section-inner,
  .story-inner,
  .partner-section .section-inner,
  .company-section .section-inner,
  .solution-inner,
  .area-section .section-inner {
    padding-left:16px;
    padding-right:16px;
    width:100%;
    max-width:none;
    margin:0 auto;
  }
/* グリッドレイアウト全体 */
.gallery-grid {
  padding: 40px 20px 0px;
}

  /* SP Hero上の潰れ抑制（sticky header分） */
  .hero-section,
  .b-hero-content,
  .hero-content {
    padding-top:64px;
  }
}

/* 2) Tablet = 768〜1024 */
@media (min-width:768px) and (max-width:1024px){
  body{
    font-size:16px;
    line-height:1.65;
    padding-bottom:0;  /* ←タブレットはフッターバー非表示 */
  }
  .section-inner,
  .story-inner,
  .partner-section .section-inner,
  .company-section .section-inner,
  .solution-inner,
  .area-section .section-inner {
    padding-left:32px;
    padding-right:32px;
    width:100%;
    margin:0 auto;
  }
}

/* 3) PC = 1025〜 */
@media (min-width:1025px){
  body{
    font-size:17px;
    line-height:1.55;
  }

  /* SP bottom nav hide */
  .sp-bottom-nav{ display:none !important; }
}

/* ============================
   STORY – SP layout tune
   (〜767px)
============================ */
@media (max-width:767px){
  .story-section-header{
    margin-bottom: 32px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .story-block{
    padding: 32px 20px;    /* 横余白 + 少し軽く */
    margin: 56px auto;     /* 上下を均等にスッキリ */
    text-align: left;      /* ← 読みやすさSPは左寄せが有利 */
  }
  .story-title{
    font-size: 1.4rem;
    margin-bottom: 14px;
    line-height: 1.45;
  }
  .story-desc{
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.75;
  }
  /* 3つ縦ラインの下線を短くする(高級感UP) */
  .story-block::after{
    height:100px;    /* ← 80 → 40 に */
    bottom:-100px;
  }
  .story-block:last-child::after{
    display:none;
  }
}

/* ============================
   STORY – SP layout tune
   (〜767px)
============================ */
@media (max-width:767.98px){
.story-section .story-inner {
    width: 100%;
    margin: 0;
}
.story-section {
    padding-bottom: 24px !important;
  }
.story-inner{
    padding: 0 18px;         /* ← 18 → 24に */
  }
.story-section-header{
    margin-bottom: 32px;
    padding-left: 10px;
    padding-right: 10px;
  }
 .story-section-header h2{
    letter-spacing: .02em;   /* ← 詰めすぎ回避 */
    margin-bottom: 24px;     /* ← +6px */
  }
  .story-block{
    max-width: 100%;
    padding: 26px 20px;    /* 横余白 + 少し軽く */
    margin: 40px auto;     /* 上下を均等にスッキリ */
    text-align:left;      /* ← 読みやすさSPは左寄せが有利 */
  }
  .story-title{
    font-size: 1.2rem;
    margin-bottom:14px;
    line-height:1.45;
  }
  .story-desc{
    font-size:0.95rem;
    margin-bottom:24px;
    line-height:1.75;
  }
.story-cta {
    font-size:0.8rem;
}
  /* 3つ縦ラインの下線を短くする(高級感UP) */
  .story-block::after{
    height: 40px;    /* ← 80 → 40 に */
    bottom:-40px;
  }
  .story-block:last-child::after{
    display:none;
  }
}

/* ==============================
   STORY レスポンシブ  
  tablet（768px〜991px）
============================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .story-inner{
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .story-block{
    padding: 28px 24px;
    border-radius: 14px;
    max-width: 620px;
    margin: 0 auto;
  }
  .story-title{
    font-size: 1.56rem;
    line-height: 1.42;
  }
  .story-desc{
    font-size: 1.4rem;
    line-height: 1.75;
    margin-bottom: 22px;
  }
  /* 中央の縦線の補正：途切れ対策 */
  .story-connector{
    height: 58px;
  }
 .story-cta{
      font-size: 1.2rem;
  }
    /* 3つ縦ラインの下線を短くする(高級感UP) */
  .story-block::after{
    height: 60px;    /* ← 80 → 40 に */
    bottom:-60px;
  }
  .story-block:last-child::after{
    display:none;
  }
}

/* =========================
   SP (〜767.98px): 縦積み ３本の柱
========================= */
@media (max-width: 767.98px){
  .btob-section .inner{
  max-width: 100%;
  padding: 0 16px;
}
    .btob-section h2{
    font-size:1.5rem;   /* ここ追加 ※これだけで読みやすさUP */
    line-height:1.35;
  }
  .btob-cards{
    flex-direction: column;   /* ← 横並び → 縦積み */
    gap: 20px;                /* モバイル向け余白に調整 */
  }
  .btob-card{
    width: 100%;  /* ← 強制で 100% */
    box-shadow:0 3px 12px rgba(0,0,0,0.05);
  }
  .btob-card h3{
    font-size:1.2rem;         /* 少しだけ縮めると読みやすい */
  }
}
/* =========================
   Tablet (〜1024px): 横並び ３本の柱
========================= */
@media (max-width: 1024px){
  .btob-cards{
    flex-wrap: wrap;
  }
  .btob-card{
    flex: 0 0 calc(50% - 20px);
  }
}
/* ========================
   HERO SP レスポンシブ
   〜767.98px
======================== */
@media (max-width: 767.98px){
  .b-hero-section{
    padding: 0 0 60px;  /* 上下浅く */
  }
  .b-hero-slider{
    max-width: 100%;
    border-radius: 0;
    aspect-ratio: 16 / 11;    /* ← 高さ増やして視認性キープ */
  }
  .b-hero-content{
    width: 100%;                /* ← 100% */
    max-width: 100%;
    bottom: -6px;               /* 少し上げ */
    padding: 24px 18px;         /* 内側余白は少し減らす */
    border-radius: 10px;
  }
  .b-hero-content h1{
    font-size: 1.25rem;         /* 読みやすい範囲 */
    margin-bottom: 12px;
  }
  .b-hero-content .subtitle{
    font-size: 0.84rem;
    margin-bottom: 20px;
  }

  /* CTA → 縦積み */
  .cta-buttons{
    display: flex;
    flex-direction: column;
    gap: 14px;/* ← これで余白確保 */
    align-items: center;   /* ← 念のため中央寄せ */
  }
  .cta-buttons .btn{
    width: 65%;
    padding: 12px 0;
    font-size: 1rem;
    margin: 0 auto;        /* ← 中央寄せ */
    display: block;        /* ← margin auto が効くように */
  }
}
@media (max-width: 767.98px){

  /* 重ねるのやめる */
  .b-hero-content{
    position: static;
    transform: none;
    bottom: auto;
    margin-top: 20px;   /* スライダーとの間隔 */
  }
  .b-hero-section{
    display: block;     /* 念のため flex解除 */
  }
  .b-hero-slider{
    margin: 0 auto;
  }
}

/* =====================================
   comparison レスポンシブ
===================================== */
/* TAB（768〜991） → 2列維持で OK：調整なし */
/* SP（〜767.98px） 1列 / full幅 / 余白浅く */
@media (max-width:767.98px){
  .comparison-section{
    padding: 60px 16px;
    border-radius: 0;
    background: none;
    border-top: none;
    margin-top: 0;
  }    
  .comparison-grid{
    grid-template-columns: 1fr; /* ← 1列 固定 */
    gap: 40px;
  }
  .comparison-item{
    width: 100%;
    padding: 20px 16px;
    border-radius: 12px;
  }
  .comparison-item .slider-container{
    width: 100%;
    aspect-ratio: 16 / 11;   /* ← スマホは縦に “少し深く” */
    border-radius: 12px;
  }
  .case-title{
    font-size:1.15rem;
  }
  .case-link{
    font-size:1.0rem;
  }
  .more-btn-wrap{
    margin-top:32px;
  }
}

/* =====================================
   ギャラリー セクション   lead 調整  レスポンシブ
===================================== */
/*スマホ専用 (〜1045px)レスポンシブ定義*/
@media (max-width:1024.98px){
  .case-gallery-section .section-header{
    margin-top: 10px;
    margin-bottom: 22px;
    line-height:1.6;
  }
    .case-gallery-section{
    padding-bottom: 40px; 
  }
    .case-gallery-section .section-lead{
    padding: 0 24px;  
    line-height: 1.6; /* ← 字間読みやすく */
  }
  .gallery-card {
    padding: 14px 14px 18px; 
  }
  .gallery-title{
    margin-bottom: 4px; /* ← 6px → 4px */
  }
}

/* =========================================
   SP/TB（〜1024px） global-nav
========================================= */
@media (max-width:1024.98px){
.header-inner{
    padding: 0 60px 0 30px;
    display: flex;
    align-items: center;  
  }
  /* ロゴは左寄せ（translate で高さ調整） */
  .site-logo{
    transform: translateY(6px);
  }
/* --- header ロゴサイズ調整 --- */
.site-logo a{
  font-size: 1.2rem;
  line-height: 1;
}
  /* SPは nav を白帯で独立 sticky */
  .global-nav{
    /*position: sticky;*/
    top: 86px; /* ← header高さ分　微調整 */
    z-index: 9998;
    background: #fff;
    border-top: 1px solid #1e3a5f;
    padding: 8px 14px 16px;
    margin-bottom: 2px;
  }
  .global-nav ul{
    display:flex;
    flex-wrap:wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style:none;
    justify-content: flex-start;
  }
  .global-nav li{
    margin:0;
  }
  .global-nav a{
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #1e3a5f;
    border: 1px solid #1e3a5f;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
    transition: 0.3s;
  }
  .global-nav a:hover{
    border-color: var(--accent-dark); /* ← accent-dark */
  }
}

.main-header,
.global-nav {
  will-change: transform;
  contain: layout paint style;
}

/* =========================================
   SP/TB（〜768px） solution-section　動画埋め込み
========================================= */
@media (max-width:767.98px){
  /* solution-section SP：動画を大きめ表示 */
  .solution-section .section-media-wrapper{
    width: 100%;
    margin: 28px auto 12px;  /* 上も詰め気味に */
  }
  .solution-section iframe {
    border-radius: 10px;
    aspect-ratio: 16 / 12; /* ← SPは縦を少し深く */
  }
  /* section自体の高さも少し圧縮 */
  .solution-section{
    padding: 72px 16px;
  }
}

/* =========================================
   SP/TB（〜768px） 都道府県ボタン：横3→左寄せ
========================================= */
@media (max-width:767.98px){
  .area-section{
    padding: 60px 0 80px; /* 上↓下 例 */
   }
 .prefecture-links{
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* ← 3列 */
    justify-items: start;   /* ← 左寄せ */
    margin-top: 40px;       /* ← 地図との余白 微調整 */
     justify-content: start;  
   }
 .prefecture-links a{
    width: 100%;
    min-height: 48px;  
    white-space: normal;   /* 必須！ */
    text-align: center;
    line-height: 1.2;
   }
  .prefecture-links a .count{
    font-size: .72rem; /* ← 小さくする */
    opacity:.7;
   }
 .map-overlay p{
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-shadow:
         0 0 6px rgba(0,0,0,0.85),
         0 0 12px rgba(0,0,0,0.65);
 }
    .map-placeholder{
        aspect-ratio: 16/10; /* 比率固定を解除 */
        border-radius: 14px; 
     }
    .map-placeholder picture, 
    .map-placeholder img { 
        width: 100%; 
        height: auto; 
        display: block; 
         object-fit: cover; 
     }
}

/* =========================================
   SP/TB（〜768px） partner logos → 3列固定 
========================================= */
@media (max-width: 767.98px) {
  .partner-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /*  3列 */
    justify-items: center;  /* ← 中央配置 */
  }

  .partner-logos img {
    max-width: 90px;   
    padding: 10px 12px;
    object-fit: contain;
  }
}

/* =========================
   CGバナー SP（〜767px）
========================= */
@media (max-width:767px){
  .cg-banner{
    background: url("../img/cg-banner-bg.png") center / cover no-repeat;
    padding: 48px 0 60px; /* ← 上下短く */
    margin: 60px auto;    /* ← 上部の空きも縮小 */
  }
  .cg-banner-lead{
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .cg-banner-title{
    font-size: 1.4rem;
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .cg-banner-schoolname{
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .banner-cta{
    padding: 12px 32px;
    font-size: 1.0rem;
    margin-top: 28px;
    min-width: 200px; 
  }
}
/* =========================================
   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);
  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);
  }
}

/* ===========================================================
   Sticky安定化ブロック（外注用ドキュメントコメント付）
   -----------------------------------------------------------
   このブロックは、ヘッダーやナビゲーション（.main-header / .global-nav）
   の「position: sticky」が機能しなくなる現象を防ぐための
   “最終防衛ライン”です。

   ■ なぜ必要か：
   親要素（html, body, main など）に以下の指定があると、
   sticky が効かなくなります。
     - overflow: hidden / auto / scroll
     - transform / filter / backdrop-filter

   ■ 対策方針：
   1. body の overflow-x は visible に戻す（stickyの計算が通るように）
   2. main 要素の transform / overflow をリセット（描画コンテキスト解除）
   3. !important を明示して、上書き防止

   ※ このブロックを削除すると header の sticky が無効化されます。
=========================================================== */

body {
  overflow-x: visible;  /* stickyを有効化（横スクロール防止はhtml側で実施） */
}

main {
  transform: none !important;   /* transform指定を無効化（stickyの座標計算を維持） */
  overflow: visible !important; /* overflowの独立スクロールを無効化 */
}
