﻿/* TOPページ専用CSS */
:root{
  --sol-black:#111111;
  --sol-green:#0f5f30;
  --sol-orange:#ff7a00;
  --sol-gray:#4a5568;
  --sol-bg:#ffffff;
  --sol-soft-green:#f4fbf2;
  --sol-soft-orange:#fff4e7;
}
*,*:before,*:after{
  box-sizing:border-box;
}
body{
  background:#fff;
  color:var(--sol-black);
  font-family:"Noto Sans JP","Helvetica Neue",Arial,sans-serif;
}
img,svg{
  max-width:100%;
  height:auto;
  display:block;
}
.l-main{
  padding-top:0;
}
.hero-section{
  position:relative;
  overflow:hidden;
  contain:layout style paint;
  min-height:82vh;
  background:linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.12));
  color:#fff;
}
.hero-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,122,0,.10), transparent 22%),
    radial-gradient(circle at 85% 14%, rgba(0,0,0,.18), transparent 24%),
    linear-gradient(180deg, rgba(0,0,0,.56), rgba(0,0,0,.28));
  pointer-events:none;
}
.hero-section::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.9) 100%);
  pointer-events:none;
}
.hero-container{
  position:relative;
  z-index:1;
  max-width:1100px;
  margin:0 auto;
  width:100%;
  text-align:left;
  padding-left:1rem;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:.6rem;
  padding:.6rem 1rem;
  border-radius:999px;
  background:rgba(255,122,0,.14);
  color:#fff;
  font-weight:800;
  letter-spacing:.04em;
  margin-bottom:1rem;
  box-shadow:none;
}
.hero-title{
  font-size:clamp(2.8rem, 6vw, 5.2rem);
  line-height:1.02;
  font-weight:900;
  color:#fff;
  margin:0 0 .8rem;
  letter-spacing:-.04em;
}
.hero-subcopy{
  font-size:clamp(.98rem, 2.5vw, 1.18rem);
  line-height:1.8;
  color:rgba(255,255,255,.92);
  max-width:760px;
  margin:0 0 1.6rem;
  letter-spacing:.01em;
}
.hero-cta-group{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  justify-content:flex-start;
  margin-bottom:1.2rem;
}
.hero-cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:200px;
  padding:0.95rem 1.8rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  font-size:1rem;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.14);
}
.hero-cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform:translateX(-100%);
  transition:transform .45s ease;
}
.hero-cta:hover::before{
  transform:translateX(100%);
}
.hero-cta:hover{
  transform:translateY(-2px);
}
.hero-cta--primary{background:linear-gradient(135deg,var(--sol-orange),#ff9c42); color:#fff; box-shadow:0 26px 68px rgba(255,122,0,.28);}
.hero-line-btn{box-shadow:0 28px 72px rgba(255,122,0,.28);}
.hero-cta--secondary{background:rgba(255,255,255,.16); color:#fff; border:1px solid rgba(255,255,255,.24); box-shadow:0 10px 30px rgba(0,0,0,.12);}
.hero-cta--secondary:hover{background:rgba(255,255,255,.24);}
.btn-line-large{
  background:var(--sol-green);
  color:#fff;
}
.btn-primary{
  background:#111;
  color:#fff;
}
.btn-primary:hover{
  background:#222;
}
.hero-trust{
  max-width:720px;
  margin:0 0 1.2rem;
  color:rgba(255,255,255,.92);
  line-height:1.75;
  font-size:1rem;
  font-weight:700;
}
.hero-note{
  max-width:720px;
  margin:0;
  color:rgba(255,255,255,.84);
  line-height:1.8;
  font-size:1rem;
}

.hero-chips{display:flex;gap:.6rem;margin:0 0 .85rem;padding:0;list-style:none;}
.hero-chips .chip{background:rgba(255,255,255,.06);color:#fff;padding:.45rem .75rem;border-radius:999px;font-weight:800;font-size:.92rem;border:1px solid rgba(255,255,255,.06)}
.section-heading{
  position:relative;
  display:inline-block;
  padding-bottom:.75rem;
  color:var(--sol-black);
  font-size:clamp(1.8rem, 4vw, 2.4rem);
  font-weight:800;
  margin-bottom:1.75rem;
}
.section-heading::after{
  content:"";
  display:block;
  width:80px;
  height:5px;
  border-radius:999px;
  background:var(--sol-orange);
  margin:1rem auto 0;
}
.container{
  max-width:1240px;
  margin:0 auto;
}
.strengths-section{
  background:#f7fbf7;
  border-top:1px solid rgba(15,95,48,.08);
  border-bottom:1px solid rgba(15,95,48,.08);
}
.strengths-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1.4rem;
  margin-top:2rem;
}
.strength-item{
  background:#fff;
  padding:2rem;
  border-radius:18px;
  border:1px solid rgba(255,122,0,.14);
  border-left:5px solid var(--sol-orange);
  box-shadow:0 12px 30px rgba(0,0,0,.06);
  transition:transform .3s ease, box-shadow .3s ease;
}
.strength-item:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 36px rgba(0,0,0,.1);
}
.strength-item h3{
  color:var(--sol-black);
  margin-bottom:.9rem;
  font-size:1.25rem;
}
.strength-item h3::before{
  content:"●";
  color:var(--sol-orange);
  margin-right:.65rem;
  font-size:.95rem;
}
.strength-item p{
  color:var(--sol-gray);
  line-height:1.75;
  font-size:1rem;
}
.trust-section{
  background:#fff;
}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:1.4rem;
  margin-top:2rem;
}
.trust-item{
  background:linear-gradient(135deg, #f8fff4 0%, #eff8f0 100%);
  padding:1.9rem;
  border-radius:18px;
  border:1px solid rgba(15,95,48,.14);
  text-align:center;
  box-shadow:0 12px 28px rgba(0,0,0,.04);
}
.trust-item h3{
  color:var(--sol-black);
  margin-bottom:1rem;
  font-size:1.2rem;
  font-weight:800;
}
.trust-item p{
  color:var(--sol-gray);
  line-height:1.8;
  font-size:.98rem;
}
/* 信頼強化セクション */
.confidence-section{background:#fff;padding:4.2rem 1.5rem 3.6rem}
.confidence-note{max-width:920px;margin:0 auto 1rem;color:var(--sol-gray);text-align:center;font-weight:600}
.confidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem;margin-top:1.6rem;max-width:1240px;margin-left:auto;margin-right:auto}
.confidence-card{background:#fff;border-radius:16px;padding:1.4rem;border:1px solid rgba(255,122,0,.06);box-shadow:0 12px 30px rgba(0,0,0,.06);display:flex;gap:1rem;align-items:flex-start;border-left:4px solid rgba(255,122,0,.12)}
.confidence-icon{flex:0 0 48px;height:48px;width:48px;border-radius:12px;background:linear-gradient(135deg, rgba(255,122,0,.18), rgba(255,122,0,.06));display:flex;align-items:center;justify-content:center;font-size:22px;color:var(--sol-orange)}
.confidence-card h3{margin:0;font-size:1.05rem;font-weight:800;color:var(--sol-black)}
.confidence-card p{margin:0;color:var(--sol-gray);line-height:1.6}

/* ============================================================
   施工事例セクション
   ・管理画面 > 施工事例 > 新規追加 から登録した内容が表示されます
   ・ACF（Advanced Custom Fields）プラグインで
     地域・写真・コメントなどの項目を管理できます
   ============================================================ */
.case-section{
  background:#f5f8f1;
  padding:4.5rem 1.5rem 4rem;
}
.case-note{
  max-width:780px;
  margin:0 auto 1.6rem;
  color:var(--sol-gray);
  font-size:1rem;
  line-height:1.85;
  text-align:center;
}
.case-gallery{
  display:flex;
  overflow-x:auto;
  gap:1.1rem;
  padding-bottom:0.85rem;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  margin-bottom:1.8rem;
}
.case-gallery::-webkit-scrollbar{
  height:10px;
}
.case-gallery::-webkit-scrollbar-track{
  background:transparent;
}
.case-gallery::-webkit-scrollbar-thumb{
  background:rgba(15,95,48,.18);
  border-radius:999px;
}
.case-card{
  flex:0 0 min(84vw, 360px);
  scroll-snap-align:start;
  border-radius:28px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(15,95,48,.1);
  box-shadow:0 26px 64px rgba(15,95,48,.12);
  display:flex;
  flex-direction:column;
}
.case-card__image-wrapper{
  position:relative;
  overflow:hidden;
  min-height:240px;
  aspect-ratio:4/3;
  background:#e9f2ea;
  border-radius:28px 28px 0 0;
}
.case-card__image-wrapper img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.case-card__flag{
  position:absolute;
  left:1rem;
  top:1rem;
  display:inline-flex;
  align-items:center;
  padding:.45rem .85rem;
  border-radius:999px;
  background:rgba(15,95,48,.12);
  color:var(--sol-green);
  font-size:.82rem;
  font-weight:800;
}
.case-card__body{
  padding:1.6rem 1.4rem 1.6rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
  flex:1;
}
.case-card__eyebrow{
  margin:0;
  color:var(--sol-orange);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.9rem;
}
.case-card__title{
  margin:0;
  color:var(--sol-black);
  font-size:1.2rem;
  font-weight:900;
  line-height:1.35;
}
.case-card__label{
  margin:0;
  color:var(--sol-gray);
  line-height:1.85;
  font-size:1rem;
}
.case-footer{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  justify-content:center;
  align-items:center;
}
.case-text{
  max-width:760px;
  margin:0;
  color:var(--sol-gray);
  text-align:center;
  font-size:1rem;
  line-height:1.8;
}
.case-footer__btns{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  justify-content:center;
  align-items:center;
}
@media(max-width:480px){
  .case-footer__btns{
    flex-direction:column;
    width:100%;
  }
  .case-footer__btns .case-cta{
    width:100%;
    text-align:center;
  }
}
.case-cta{
  min-width:260px;
}

/* 施工事例セクション内の「全件見る」ボタン（明るい背景に合わせてオレンジ固定） */
.case-section .hero-cta--secondary.case-cta {
  background: linear-gradient(135deg, #ff7a1a, #ff9f43);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 24px rgba(255, 122, 26, .28);
  min-height: 56px;
  font-weight: 700;
}
.case-section .hero-cta--secondary.case-cta:hover {
  background: linear-gradient(135deg, #ff8a2a, #ffb055);
  box-shadow: 0 16px 36px rgba(255, 122, 26, .40);
  color: #ffffff;
  transform: translateY(-2px);
}
.case-section .hero-cta--secondary.case-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(255, 122, 26, .30);
}

@media (max-width: 768px) {
  .case-section .hero-cta--secondary.case-cta {
    min-height: 58px;
    font-size: 1rem;
    box-shadow: 0 10px 28px rgba(255, 122, 26, .32);
  }
}

.sol-header-menu{
  position:sticky;
  top:0;
  z-index:80;
  background:#fff;
  border-bottom:1px solid rgba(17,17,17,.08);
}
.sol-header-inner{
  max-width:1240px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1rem 1.25rem;
}
.sol-brand-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  flex-shrink:0;
}
.sol-brand-logo{
  height:52px;  /* Logo_1.png（正式フルロゴ）はアイコン+テキスト縦型 */
  width:auto;
  display:block;
  object-fit:contain;
}
/* フォールバック（ロゴ画像が表示されない場合） */
.sol-brand-name{
  font-size:1.05rem;
  font-weight:900;
  color:var(--sol-black);
}
.sol-brand-tag{
  font-size:.82rem;
  color:var(--sol-gray);
}
.sol-header-nav{
  display:flex;
  align-items:center;
  gap:.5rem;
}
.sol-menu-list{
  display:flex;
  align-items:center;
  gap:.65rem;
  margin:0;
  padding:0;
  list-style:none;
}
.sol-menu-list li{
  margin:0;
}
.sol-menu-list li a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.72rem 1rem;
  border-radius:999px;
  background:rgba(255,122,0,.1);
  color:var(--sol-black);
  font-size:.95rem;
  font-weight:800;
  text-decoration:none;
}
.sol-menu-list li a:hover,
.sol-menu-list li.current-menu-item a{
  background:var(--sol-orange);
  color:#fff;
}
/* 施工事例メニュー項目：オレンジ枠で目立たせる */
.sol-menu-list li.menu-item-sekoujirei > a,
.sol-menu-list li:has(> a[href*="/sekoujirei/"]) > a{
  background:var(--sol-orange);
  color:#fff;
  box-shadow:0 4px 18px rgba(255,122,0,.28);
}
.sol-menu-list li.menu-item-sekoujirei > a:hover,
.sol-menu-list li:has(> a[href*="/sekoujirei/"]) > a:hover{
  background:#e06c00;
  box-shadow:0 6px 24px rgba(255,122,0,.38);
  transform:translateY(-1px);
}
.sol-mobile-trigger{
  display:none;
  width:44px;
  height:44px;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  border:1px solid rgba(17,17,17,.12);
  background:#fff;
  cursor:pointer;
}
.sol-mobile-trigger__bar{
  display:block;
  width:22px;
  height:2px;
  margin:.2rem 0;
  background:#111;
  border-radius:1px;
}
.sol-mobile-drawer{
  position:fixed;
  inset:0;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease, visibility .25s ease;
  /* 半透明バックドロップ（背景が完全に透けないよう十分な濃度に） */
  background:rgba(0,0,0,.65);
  /* 固定CTAや他の fixed 要素より必ず上に表示 */
  z-index:9999;
}
.sol-mobile-drawer.active{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}
.sol-mobile-drawer__inner{
  position:absolute;
  top:0;
  right:0;
  width:min(100%, 340px);
  height:100%;
  /* iOS Safari で画面高さを正しく確保 */
  height:100dvh;
  display:flex;
  flex-direction:column;
  padding:1.25rem;
  gap:1.25rem;
  /* 完全な白背景（FV・CTAが透けないよう） */
  background:#ffffff;
  box-shadow:-20px 0 60px rgba(0,0,0,.22);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.sol-mobile-nav-wrapper{
  padding:0 0 1rem;
}
.sol-mobile-drawer__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.sol-mobile-close{
  width:44px;
  height:44px;
  border:none;
  background:rgba(255,122,0,.13);
  border-radius:14px;
  color:var(--sol-orange);
  font-size:1.6rem;
  line-height:1;
  cursor:pointer;
}
.sol-mobile-menu-list{
  flex-direction:column;
  gap:.75rem;
}
.sol-mobile-menu-list li a{
  width:100%;
  padding:1rem 1rem;
  border-radius:18px;
  background:var(--sol-soft-orange);
  color:var(--sol-black);
}
/* モバイル施工事例：オレンジ塗りで最目立ち */
.sol-mobile-menu-list li.menu-item-sekoujirei > a,
.sol-mobile-menu-list li:has(> a[href*="/sekoujirei/"]) > a{
  background:var(--sol-orange);
  color:#fff;
  font-weight:900;
  box-shadow:0 4px 18px rgba(255,122,0,.28);
}
.sol-mobile-cta-list{
  display:grid;
  gap:.85rem;
}
.sol-mobile-cta-list .hero-cta{
  width:100%;
}

/* ── 電話ボタン: ドロワーは白背景なので文字色を反転 ─────────
   .hero-cta--secondary は元々ダーク背景用（color:#fff）。
   ドロワーを #fff にしたため白文字が白背景に消える → 上書き */
.sol-mobile-cta-list .hero-cta--secondary {
  background: #f1f5f9;
  border: 1.5px solid rgba(0, 0, 0, 0.15) !important;
  color: #111111 !important;
  opacity: 1 !important;
}
.sol-mobile-cta-list .hero-cta--secondary:hover,
.sol-mobile-cta-list .hero-cta--secondary:active {
  background: #e2e8f0;
  color: #111111 !important;
}
/* SVG・テキスト子要素も確実に黒にする */
.sol-mobile-cta-list .hero-cta--secondary svg,
.sol-mobile-cta-list .hero-cta--secondary span,
.sol-mobile-cta-list .hero-cta--secondary small {
  color: #111111 !important;
  fill: #111111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.sol-footer-menu-section{
  background:#fff;
  padding:2rem 0;
  border-top:1px solid rgba(17,17,17,.08);
}
.sol-footer-menu{
  display:flex;
  justify-content:center;
}
.sol-footer-menu-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.75rem;
  margin:0;
  padding:0;
  list-style:none;
}
.sol-footer-menu-list li a{
  display:inline-flex;
  padding:.75rem 1rem;
  border-radius:999px;
  background:rgba(255,122,0,.08);
  color:var(--sol-black);
  text-decoration:none;
  font-weight:800;
}
.sol-fixed-cta-menu{
  position:fixed;
  left:50%;
  /* iOS safe-area-inset-bottom を考慮してホームインジケーター上に配置 */
  bottom:calc(1rem + env(safe-area-inset-bottom, 0px));
  transform:translateX(-50%);
  z-index:1000;
  display:flex;
  gap:.55rem;
  padding:.45rem;
  background:rgba(10,10,10,.96);
  border-radius:999px;
  box-shadow:0 20px 60px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.06);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.sol-fixed-cta-menu__item{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:100px;
  padding:.82rem 1rem;
  border-radius:999px;
  border:1.5px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;
  font-size:.9rem;
  font-weight:800;
  text-align:center;
  letter-spacing:.01em;
}
.sol-fixed-cta-menu__item--primary{
  background:linear-gradient(135deg,var(--sol-orange),#ff9c42);
  color:#fff;
  border-color:transparent;
  box-shadow:0 10px 28px rgba(255,122,0,.38);
  /* LINE ボタンを最も目立たせる */
  font-size:.92rem;
  padding:.88rem 1.1rem;
}

/* ── 固定CTAメニュー ホバー・ポインター ── */
.sol-fixed-cta-menu__item{
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .18s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.sol-fixed-cta-menu__item:hover{
  background:rgba(255,255,255,.16);
  transform:translateY(-2px);
  color:#fff;
}
.sol-fixed-cta-menu__item--primary:hover{
  background:linear-gradient(135deg,#e06c00,var(--sol-orange));
  transform:translateY(-2px);
  box-shadow:0 18px 44px rgba(255,122,0,.52);
  color:#fff;
}

/* ── フッターメニューリンク ホバー ── */
.sol-footer-menu-list li a{
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.sol-footer-menu-list li a:hover{
  background:var(--sol-orange);
  color:#fff;
  transform:translateY(-1px);
}

/* ── モバイルメニューリスト ホバー ── */
.sol-mobile-menu-list li a{
  cursor:pointer;
  transition:background .18s ease, color .18s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  min-height:48px;
}
.sol-mobile-menu-list li a:hover{
  background:var(--sol-orange);
  color:#fff;
}

/* ── ブランドロゴリンク ── */
.sol-brand-link{
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

/* ── ヘッダーメニューリンク タップ最適化 ── */
.sol-menu-list li a{
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  min-height:44px;
}

/* メニュー開放時: スクロール禁止
   iOS Safari は overflow:hidden だけでは不十分なため
   JS 側で position:fixed + top:-scrollY を使ったロック処理を行う */
body.sol-mobile-open{
  overflow:hidden;
  /* width:100% は JS 側で付与するため不要だが念のため */
  width:100%;
}

@media (max-width:980px){
  .sol-header-nav{
    display:none;
  }
  .sol-mobile-trigger{
    display:flex;
  }
  .sol-header-inner{
    padding:.75rem 1rem;
  }
  .sol-brand-logo{
    height:46px; /* スマホではやや小さく */
  }
  .sol-footer-menu-list li a{
    padding:.9rem 1rem;
  }
  /* 4ボタン横並び対応 */
  .sol-fixed-cta-menu{
    width:min(96vw, 600px);
    bottom:calc(.85rem + env(safe-area-inset-bottom, 0px));
    gap:.4rem;
  }
  .sol-fixed-cta-menu__item{
    min-width:0;
    flex:1;
    padding:.78rem .6rem;
    font-size:.82rem;
  }
  .sol-fixed-cta-menu__item--primary{
    padding:.82rem .7rem;
    font-size:.84rem;
  }
}

@media (max-width:640px){
  /* 4ボタン: 2×2 グリッドに折り返す */
  .sol-fixed-cta-menu{
    left:50%;
    width:calc(100% - 2rem);
    bottom:calc(.9rem + env(safe-area-inset-bottom, 0px));
    padding:.5rem;
    border-radius:18px;   /* pill → 角丸四角形 */
    flex-wrap:wrap;
    gap:.38rem;
  }
  .sol-fixed-cta-menu__item{
    min-width:0;
    flex:1 1 calc(50% - .38rem);  /* 2列 */
    padding:.72rem .4rem;
    font-size:.8rem;
    border-radius:12px;
  }
  .sol-fixed-cta-menu__item--primary{
    padding:.75rem .4rem;
    font-size:.82rem;
  }
}

/* Hero chips: make key chips slightly stronger on mobile to guide attention */
@media (max-width:980px){
  .confidence-grid{grid-template-columns:1fr;gap:1rem;margin-top:1.25rem}
  .confidence-card{align-items:flex-start;padding:1.2rem;border-left-width:3px}
  .confidence-icon{flex:0 0 44px;height:44px;width:44px;font-size:20px}
  .confidence-card h3{font-size:1rem}
  .confidence-card p{font-size:.98rem}
  .confidence-section{padding-bottom:2.5rem}
  .confidence-note{font-size:.98rem;text-align:center}
  .confidence-section .section-heading{text-align:center}
  .case-card{flex:0 0 min(88vw, 340px);}
  .case-card__image-wrapper{min-height:220px;}
}

@media (max-width:640px){
  .confidence-grid{gap:1rem}
  .confidence-card{padding:1rem;border-radius:14px;border-left-width:3px;box-shadow:0 18px 44px rgba(0,0,0,.12)}
  .confidence-icon{flex:0 0 40px;height:40px;width:40px;font-size:18px}
  .confidence-card h3{font-size:1rem;font-weight:800}
  .confidence-card p{font-size:.98rem;line-height:1.65;font-weight:600;text-align:left}
  /* 信頼強化セクション – 下余白を適正値に（旧:8.4rem=134px は過剰） */
  .confidence-section{padding:3rem 1rem 3rem}
  .confidence-note{font-size:.96rem;margin-bottom:.6rem;text-align:center}
  .confidence-section .section-heading{text-align:center;font-size:1.6rem}

  /* Mobile ordering: surface 宮城県密着, 営業＝施工, 補助金相談 first for visual flow */
  .confidence-grid .confidence-card:nth-child(4){order:1}
  .confidence-grid .confidence-card:nth-child(3){order:2}
  .confidence-grid .confidence-card:nth-child(6){order:3}
  .confidence-grid .confidence-card:nth-child(1){order:4}
  .confidence-grid .confidence-card:nth-child(2){order:5}
  .confidence-grid .confidence-card:nth-child(5){order:6}

  /* 固定CTA分の余白: section 全体ではなく page 最下部のみに設定
     → front-page.php の .l-main__inner で管理
     ※ 旧ルール（--fixed-cta-space / section padding-bottom）は削除 */
}

/* Emphasize subsidy and LINE elements on mobile and generally */
.subsidy-cta{box-shadow:0 20px 56px rgba(255,122,0,.22);border-radius:12px;transition:transform .18s ease,box-shadow .18s ease}
.subsidy-cta:hover{transform:translateY(-3px);box-shadow:0 30px 80px rgba(255,122,0,.28)}

/* Stronger orange accent on LINE and subsidy badges/cards */
.confidence-grid .confidence-card:nth-child(5),
.confidence-grid .confidence-card:nth-child(6){border-left-color:rgba(255,122,0,.22);box-shadow:0 22px 60px rgba(0,0,0,.14)}
.confidence-grid .confidence-card:nth-child(5) .confidence-icon,
.confidence-grid .confidence-card:nth-child(6) .confidence-icon{background:linear-gradient(135deg, rgba(255,122,0,.28), rgba(255,122,0,.08));color:#fff}

@media (max-width:980px){
  .case-card{flex:0 0 min(88vw, 340px);}
}

@media (max-width:640px){
  .case-section{padding:3rem 1rem 3rem;}
  .case-gallery{gap:.85rem;}
  .case-card{flex:0 0 min(88vw, 320px);}
  .case-card__body{padding:1.1rem 1rem 1.2rem;}
  .case-text{font-size:.96rem;}
  .case-cta{width:100%;min-width:auto;}
}

/* Hero chips: make key chips slightly stronger on mobile to guide attention */
@media (max-width:640px){
  .hero-chips .chip{background:rgba(255,122,0,.14);border-color:rgba(255,122,0,.18);font-weight:800}
}

/* ============================================================
   施工事例カード ACF連動スタイル
   ・管理画面で「おすすめ事例」をONにしたカードはオレンジ枠で強調
   ・「補助金利用」をONにしたカードにはオレンジバッジが表示
   ・「施工写真」を複数登録するとサムネイル切替が表示
   ============================================================ */

/* おすすめ事例カード：管理画面で「おすすめ事例」をONにすると適用 */
.case-card--featured{
  border:2px solid rgba(255,122,0,.32);
  box-shadow:0 30px 78px rgba(255,122,0,.14);
}
.case-card--featured .case-card__title{
  color:var(--sol-green);
}

/* 補助金利用バッジ */
.case-card__subsidy-badge{
  position:absolute;
  right:1rem;
  top:1rem;
  display:inline-flex;
  align-items:center;
  padding:.38rem .75rem;
  border-radius:999px;
  background:linear-gradient(135deg,var(--sol-orange),#ff9c42);
  color:#fff;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.04em;
  box-shadow:0 6px 18px rgba(255,122,0,.28);
}

/* スペック表（メーカー・容量） */
.case-card__specs{
  margin:0;
  display:grid;
  gap:.45rem;
}
.case-card__spec-row{
  display:flex;
  align-items:baseline;
  gap:.5rem;
  font-size:.9rem;
  line-height:1.5;
}
.case-card__spec-row dt{
  flex:0 0 auto;
  color:var(--sol-orange);
  font-weight:800;
  font-size:.82rem;
  letter-spacing:.04em;
  white-space:nowrap;
}
.case-card__spec-row dt::after{
  content:":";
  margin-left:.1rem;
}
.case-card__spec-row dd{
  margin:0;
  color:var(--sol-black);
  font-weight:700;
}

/* 複数写真サムネイル */
.case-card__thumbs{
  display:flex;
  gap:.45rem;
  padding:.65rem .9rem;
  background:#f5f8f1;
  border-top:1px solid rgba(15,95,48,.08);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.case-card__thumbs::-webkit-scrollbar{
  height:4px;
}
.case-card__thumbs::-webkit-scrollbar-thumb{
  background:rgba(15,95,48,.18);
  border-radius:999px;
}
.case-card__thumb{
  flex:0 0 56px;
  width:56px;
  height:56px;
  border-radius:10px;
  overflow:hidden;
  border:2px solid transparent;
  background:none;
  padding:0;
  cursor:pointer;
  transition:border-color .2s ease, transform .2s ease;
}
.case-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.case-card__thumb.is-active{
  border-color:var(--sol-orange);
  transform:scale(1.06);
}
.case-card__thumb:hover{
  border-color:rgba(255,122,0,.5);
}

/* スマホ対応 */
@media (max-width:640px){
  .case-card__subsidy-badge{
    font-size:.74rem;
    padding:.32rem .65rem;
    right:.75rem;
    top:.75rem;
  }
  .case-card__spec-row{
    font-size:.88rem;
  }
  .case-card__thumb{
    flex:0 0 48px;
    width:48px;
    height:48px;
  }
  .case-card__thumbs{
    padding:.55rem .75rem;
    gap:.38rem;
  }
}

/* Make fixed CTA text slightly bolder and more luxurious */
@media (max-width:768px){
  .btn-line-fixed{font-weight:900;letter-spacing:.02em}
  .btn-line-fixed{background:linear-gradient(180deg,var(--sol-orange),#ff9440)}
}

/* Ensure other card types have comfortable line-height for readability */
.strength-item p, .service-item p, .work-card__body p, .trust-item p{line-height:1.65}
.services-section{
  background:#fff;
}
.services-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1.6rem;
  margin-top:2rem;
}
.service-item{
  background:#fff;
  padding:2rem;
  border-radius:18px;
  border:1px solid rgba(15,95,48,.1);
  box-shadow:0 10px 28px rgba(0,0,0,.04);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-item:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(0,0,0,.08);
  border-color:var(--sol-orange);
}
.service-item h3{
  color:var(--sol-black);
  margin-bottom:1rem;
  font-size:1.3rem;
  font-weight:800;
}
.service-item h3::before{
  content:"●";
  color:var(--sol-orange);
  margin-right:.65rem;
  font-size:.95rem;
}
.service-item p{
  color:var(--sol-gray);
  line-height:1.75;
  font-size:1rem;
}
.work-section{
  background:#f6fbf8;
}
.work-section > .container > p{
  color:var(--sol-gray);
  font-size:1rem;
  line-height:1.75;
  max-width:820px;
  margin:-.5rem auto 2rem;
  text-align:center;
}
.work-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1.6rem;
  margin-top:2rem;
}
.work-card{
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(15,95,48,.1);
  box-shadow:0 10px 32px rgba(0,0,0,.05);
  overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease;
  display:flex;
  flex-direction:column;
}
.work-card:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 40px rgba(0,0,0,.1);
}
.work-card--featured{
  border-color:rgba(255,122,0,.22);
  box-shadow:0 16px 44px rgba(255,122,0,.12);
}
.work-card--featured .work-card__title{
  color:var(--sol-green);
}
.work-note{
  max-width:760px;
  margin:0 auto 1.6rem;
  color:var(--sol-gray);
  font-size:1rem;
  line-height:1.8;
  text-align:center;
}
.work-card__image{
  aspect-ratio:16/9;
  min-height:180px;
  background:linear-gradient(180deg, rgba(255,255,255,.6), rgba(0,0,0,.03)), radial-gradient(circle at 30% 20%, rgba(255,122,0,.18), transparent 18%), radial-gradient(circle at 75% 25%, rgba(0,150,75,.18), transparent 20%);
  background-size:cover;
  background-position:center;
}
.work-card__body{
  padding:1.8rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.work-card__body h3{
  color:var(--sol-black);
  font-size:1.2rem;
  font-weight:800;
  margin:0;
}
.work-card__body h3::before{
  content:"●";
  color:var(--sol-orange);
  margin-right:.65rem;
  font-size:.95rem;
}
.work-card__body p{
  color:var(--sol-gray);
  line-height:1.75;
  font-size:1rem;
  margin:0;
}
.subsidy-section{
  background:linear-gradient(135deg, #fff4e7 0%, #fffaf2 100%);
  border-top:1px solid rgba(255,122,0,.12);
  border-bottom:1px solid rgba(255,122,0,.12);
}
.subsidy-benefits{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:1.25rem;
  margin-top:2rem;
}
.subsidy-badge{
  background:#fff;
  padding:1.5rem 1.25rem;
  border-radius:18px;
  border:2px solid var(--sol-orange);
  color:#7a3810;
  font-weight:800;
  text-align:center;
  font-size:1rem;
  line-height:1.6;
  box-shadow:0 10px 24px rgba(255,122,0,.12);
}
.faq-section{
  background:#fff;
}
.faq-list{
  display:grid;
  gap:1.4rem;
  margin-top:2rem;
}
.faq-item{
  background:#fff;
  padding:1.8rem;
  border-radius:18px;
  border:1px solid rgba(15,95,48,.12);
  box-shadow:0 8px 24px rgba(0,0,0,.04);
}
.faq-item h3{
  color:var(--sol-black);
  margin-bottom:.85rem;
  font-size:1.1rem;
  font-weight:800;
}
.faq-item h3::before{
  content:"Q. ";
  color:var(--sol-orange);
  font-weight:900;
}
.faq-item p{
  color:var(--sol-gray);
  line-height:1.75;
  font-size:1rem;
  margin:0;
}
.faq-item p::before{
  content:"A. ";
  color:var(--sol-green);
  font-weight:700;
  display:block;
  margin-bottom:.45rem;
}
.footer-cta-section{
  background:linear-gradient(135deg, #041d11 0%, #0a3a1f 100%);
  color:#fff;
  border-top:2px solid var(--sol-orange);
}
.footer-cta-section h2{
  color:#fff;
}
.footer-cta-section > .container > p{
  color:#e2e8e0;
  font-size:1.05rem;
  margin-bottom:2rem;
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
}
.footer-cta-section .hero-cta{
  background:linear-gradient(135deg, var(--sol-orange), #ff9b3d);
  box-shadow:0 18px 48px rgba(255,122,0,.28);
}
.footer-cta-section .hero-cta:hover{
  background:linear-gradient(135deg, #ff8a1a, #ffc27d);
}
.fixed-cta{
  display:flex;
  justify-content:center;
  position:fixed;
  left:50%;
  bottom:1.5rem;
  transform:translateX(-50%);
  z-index:999;
  width:calc(100% - 2rem);
  max-width:480px;
  pointer-events:auto;
}
.btn-line-fixed{
  width:100%;
  padding:0.95rem 1.3rem;
  border-radius:14px;
  background:linear-gradient(180deg,var(--sol-orange),#ff9c42);
  color:#fff;
  text-align:center;
  font-weight:800;
  font-size:1rem;
  text-decoration:none;
  box-shadow:0 28px 72px rgba(255,122,0,.28);
  transition:transform .22s ease, box-shadow .22s ease, filter .18s ease;
}
.btn-line-fixed:hover{
  transform:translateY(-3px);
  box-shadow:0 40px 96px rgba(255,122,0,.34);
  filter:brightness(1.05);
}
@media (max-width:980px){
  .strengths-grid,
  .services-grid,
  .work-grid,
  .trust-grid,
  .subsidy-benefits{
    grid-template-columns:1fr;
  }
  section{
    padding:3.5rem 1.5rem;
  }
  .hero-cta-group{
    justify-content:center;
  }
  .work-card{
    min-height:auto;
  }
}
@media (max-width:768px){
  .hero-section{
    min-height:60vh;
    padding:4.5rem 1.5rem 2.5rem;
  }
  .hero-title{
    font-size:clamp(2.4rem, 7vw, 3.6rem);
    margin-bottom:.9rem;
  }
  .hero-cta-group{
    flex-direction:column;
  }
  .hero-cta{
    width:100%;
    min-width:auto;
  }
  .section-heading{
    font-size:clamp(1.75rem, 6vw, 2.2rem);
  }
  .footer-cta-section > .container > p{
    font-size:1rem;
  }
  .fixed-cta{
    width:calc(100% - 1rem);
    bottom:1rem;
  }
  /* 固定CTA分の余白は .l-main__inner で管理（front-page.php インラインスタイル参照）
     旧: --fixed-cta-space / section padding-bottom ルールは削除済み */
}
