/* ============================================================
   カーラボ トップページ top.css
   ブランドカラー：グリーン #00b37d / ネイビー #1a2744
   ブレークポイント：SP ≤700px / Tablet 701〜1023px / PC ≥1024px
============================================================ */

/* ------------------------------------------------------------
   1. カラー・半径・共通変数
------------------------------------------------------------ */
:root {
  --green:       #00b37d;
  --green-dark:  #009468;
  --green-light: #e6faf4;
  --navy:        #1a2744;
  --navy-mid:    #253358;
  --red:         #dc2626;
  --red-bg:      #fef2f2;
  --amber:       #d97706;
  --amber-bg:    #fffbeb;
  --emerald:     #16a34a;
  --emerald-bg:  #f0fdf4;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --gray-900:    #111827;
  --line-green:  #06C755;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;
}

/* ------------------------------------------------------------
   2. ベース
------------------------------------------------------------ */
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
img, svg { display: block; max-width: 100%; }

/* ------------------------------------------------------------
   3. ヘッダー
------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

/* アナウンスバー（ネイビー背景） */
.header-top {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 480px){
  .header-top{ font-size:14px; gap:12px; padding:7px 12px; }
}
.header-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot-red,
.dot-amber {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red   { background: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.18); }
.dot-amber { background: var(--amber); }

/* メインヘッダー 1段目：ロゴ + アクション */
.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--gray-200);
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.logo img { height: 28px; width: auto; }

/* アクションボタン群 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* メインヘッダー 2段目：ナビ */
.header-nav-row {
  background: #fff;
}
.header-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav-inner::-webkit-scrollbar { display: none; }
.header-nav-inner a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.header-nav-inner a svg {
  width: 16px;
  height: 16px;
}
.header-nav-inner a:hover {
  color: var(--green);
}
.header-nav-inner a.is-active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.header-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.header-icon-btn:hover { background: var(--green-light); color: var(--green); }
.header-icon-btn svg { width: 18px; height: 18px; }

/* SOS：画像アイコン（icon-sos.png を白反転で赤丸に表示） */
.header-sos-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(220,38,38,.35);
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.header-sos-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,38,38,.45);
}
.header-sos-icon {
  width: 22px;
  height: 22px;
  /* 黒アイコンを白反転 */
  filter: brightness(0) invert(1);
}

.btn-line,
.btn-web {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .15s, box-shadow .15s;
}
.btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6,199,85,.25);
}
.btn-line:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(6,199,85,.35); }
.btn-line svg { width: 14px; height: 14px; fill: currentColor; }

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

/* ------------------------------------------------------------
   4. ヒーロー
------------------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #2d4070 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* ヒーロー分割
   ・SP/Tablet（〜959px）：上下分割（文章が上・中央配置、MAPが下）
   ・PC（≥960px）：左右2カラム（左：文章・CTA、右：MAP）
*/
.hero.hero-split{
  display:flex;flex-direction:column;
}
.hero-split .hero-top{ flex:0 0 auto; }

/* SP/Tablet のみ中央配置（文字・ボタン・トラスト・MAPをセンター揃え） */
@media (max-width:959px){
  .hero-split .hero-top{
    text-align:center;
  }
  .hero-split .hero-top .hero-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    max-width:640px;
    margin:0 auto;
  }
  .hero-split .hero-top .hero-badge{
    align-self:center;
  }
  .hero-split .hero-top .hero-btns-duo{
    width:100%;
    max-width:420px;
    margin-left:auto;
    margin-right:auto;
  }
  .hero-split .hero-top .hero-trust{
    justify-content:center;
    gap:12px 16px;
  }
  /* MAP セクション（タブ・フレーム・フッター）中央寄せ
     ・タブは折返し可。総幅が入るなら中央配置／溢れたら左詰めで横スクロール */
  .hero-split .hero-bottom .hero-map-tabs{
    flex-wrap:wrap;
    justify-content:center;
    max-width:680px;
    margin:0 auto;
    padding-left:12px;
    padding-right:12px;
  }
  .hero-split .hero-bottom .hero-map-frame{
    max-width:680px;
    margin-left:auto;
    margin-right:auto;
  }
  .hero-split .hero-bottom .hero-map-footer{
    max-width:680px;
    margin:0 auto;
  }
}

/* 狭幅端末：タブを2段組みで全て見えるように */
@media (max-width:480px){
  .hero-split .hero-bottom .hero-map-tabs{
    max-width:100%;
    padding-left:8px;
    padding-right:8px;
    gap:6px;
  }
  .hero-split .hero-bottom .hero-map-tab{
    font-size:11px;
    padding:6px 10px;
  }
}
.hero-split .hero-bottom{
  flex:1 1 auto;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.08);
  position:relative;
}
@media (max-width:640px){
  .hero-split .hero-bottom{min-height:clamp(240px, 40vh, 360px);}
}

/* PC（≥960px）：左右2カラム（左：文章・CTA / 右：MAP） */
@media (min-width:960px){
  .hero.hero-split{
    flex-direction:row;
    align-items:stretch;
    gap:24px;
    padding: 40px max(40px, calc((100vw - 1200px) / 2)) 32px;
  }
  .hero-split .hero-top{
    flex:1 1 46%;
    min-width:0;
    display:flex;
    align-items:flex-start;   /* 上詰め */
    padding-top:8px;
  }
  /* PC レフトカラムの視認性アップ */
  .hero-split .hero-top .hero-badge{
    font-size:13px;
    padding:5px 14px;
    margin-bottom:14px;
  }
  .hero-split .hero-top .hero-h1{
    font-size:clamp(22px, 2.4vw, 30px);
    line-height:1.3;
    margin-bottom:12px;
    letter-spacing:-.01em;
    white-space:nowrap; /* PCで「車買取も、事故後のレッカーも」を1行に */
  }
  /* <br> で区切られた2行目（写真1枚…）は改行可能に */
  .hero-split .hero-top .hero-h1 span{
    white-space:nowrap;
  }
  .hero-split .hero-top .hero-sub{
    font-size:15px;
    color:rgba(255,255,255,.92);
    margin-bottom:18px;
  }
  .hero-split .hero-top .hero-btns-duo .hero-btn-line,
  .hero-split .hero-top .hero-btns-duo .hero-btn-sim{
    padding:14px 16px;
    font-size:15px;
  }
  .hero-split .hero-top .hero-trust{
    margin-top:14px;
    font-size:13px;
  }
  .hero-split .hero-bottom{
    flex:1 1 54%;
    min-width:0;
    border-top:0;
    border-left:1px solid rgba(255,255,255,.08);
    padding-top:0;
    padding-left:24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .hero-split .hero-top .hero-inner{
    grid-template-columns:1fr;
    padding:0;
    max-width:none;
  }
  /* .hero-top 内部は縦積み（badge → h1 → sub → ボタン → trust） */
  .hero-split .hero-top .hero-btns-duo{
    grid-template-columns:1fr;
    gap:10px;
  }
  .hero-split .hero-bottom .hero-map-tabs{padding:0 0 10px;}
  .hero-split .hero-bottom .hero-map-frame{
    margin:0;
    aspect-ratio:4/3;
    max-height:560px;
    min-height:360px;
  }
  .hero-split .hero-bottom .hero-map-footer{padding:12px 0 0;}
}

/* === ヒーロー下半分：レイヤータブ + MAP フレーム === */
.hero-map-tabs{
  display:flex;gap:4px;overflow-x:auto;
  padding:10px 16px 8px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.hero-map-tabs::-webkit-scrollbar{display:none;}
.hero-map-tab{
  flex:0 0 auto;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  color:rgba(255,255,255,.75);
  padding:7px 14px;border-radius:999px;
  font-size:12px;font-weight:600;
  cursor:pointer;white-space:nowrap;
  transition:all .15s;
}
.hero-map-tab:hover{background:rgba(255,255,255,.14);color:#fff;}
.hero-map-tab.is_active{
  background:var(--green);color:#fff;border-color:var(--green);
  box-shadow:0 2px 8px rgba(0,179,125,.4);
}

.hero-map-frame{
  position:relative;
  margin:0 16px;
  border-radius:12px;overflow:hidden;
  background:#1f3a4d;
  aspect-ratio:4/3;
  max-height:380px;
  min-height:240px;
  box-shadow:0 6px 20px rgba(0,0,0,.3);
}
.hero-map-iframe{
  position:absolute;inset:0;
  width:100%;height:100%;
  border:0;display:block;
}
.hero-map-skeleton{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  color:rgba(255,255,255,.4);
  background:linear-gradient(135deg,#1f3a4d 0%,#2d4a5e 100%);
}
.hero-map-skeleton-icon{font-size:32px;opacity:.6;}
.hero-map-skeleton-text{font-size:12px;font-weight:600;letter-spacing:.05em;}

.hero-map-footer{
  display:flex;justify-content:center;align-items:center;gap:10px;
  padding:12px 16px 16px;
  color:rgba(255,255,255,.6);font-size:12px;
  flex-wrap:wrap;text-align:center;
}
.hero-map-full-link{
  color:#4fe3b9;font-weight:700;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .15s;
}
.hero-map-full-link:hover{border-color:#4fe3b9;}

@media (min-width:960px){
  .hero-map-tabs{padding:12px 40px 10px;}
  .hero-map-frame{margin:0 40px;aspect-ratio:16/7;max-height:420px;}
  .hero-map-tab{padding:8px 16px;font-size:13px;}
}
.hero::before {
  /* 装飾グロー */
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0,179,125,.18), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,179,125,.2);
  color: #7befc6;
  border: 1px solid rgba(0,179,125,.4);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-h1 {
  font-size: clamp(22px, 4.5vw, 34px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.hero-h1 span { color: var(--green); }
.hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 18px;
}
.hero-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hero-btn-line,
.hero-btn-web {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s, box-shadow .2s;
}
.hero-btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6,199,85,.4);
}
.hero-btn-line:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,199,85,.5); }
.hero-btn-web {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.hero-btn-web:hover { background: rgba(255,255,255,.2); }

/* ヒーロー：2ボタン並列（LINE + シミュレーター・370pxで改行しない設計） */
.hero-btns-duo{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:8px;
}
.hero-btns-duo .hero-btn-line,
.hero-btns-duo .hero-btn-sim{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 10px;
  border-radius:var(--radius-md);
  font-weight:700;
  font-size:clamp(12px, 3.3vw, 14px);
  letter-spacing:.01em;
  white-space:nowrap;
  transition:transform .15s, box-shadow .2s;
}
.hero-btns-duo .hero-btn-line{
  background:var(--line-green);color:#fff;
  box-shadow:0 4px 12px rgba(6,199,85,.35);
}
.hero-btns-duo .hero-btn-line:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(6,199,85,.5);}
.hero-btns-duo .hero-btn-sim{
  background:var(--green);color:#fff;
  box-shadow:0 4px 12px rgba(0,179,125,.35);
}
.hero-btns-duo .hero-btn-sim:hover{background:var(--green-dark);transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,179,125,.5);}

/* ヒーロー実績バー（トラスト強化） */
.hero-stats{
  display:grid;grid-template-columns:repeat(3, 1fr);gap:8px;
  margin-top:14px;padding-top:14px;
  border-top:1px solid rgba(255,255,255,.12);
}
.hero-stat{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  gap:2px;
}
.hero-stat-num{
  font-size:clamp(15px, 4vw, 20px);font-weight:800;color:var(--green);line-height:1.1;
  font-feature-settings:'tnum' 1;
}
.hero-stat-num span{font-size:.65em;font-weight:700;color:rgba(255,255,255,.6);margin-left:1px;}
.hero-stat-label{
  font-size:10px;color:rgba(255,255,255,.6);line-height:1.3;
}
@media (min-width:640px){
  .hero-stat-label{font-size:11px;}
}
.hero-trust {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  flex-wrap: wrap;
}
.hero-trust span::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

/* 買取保証バッジ（競合差別化：0円査定を出さない宣言） */
.hero-guarantee{
  display:inline-flex;align-items:center;gap:12px;
  margin-top:14px;
  padding:10px 16px;
  background:linear-gradient(135deg, rgba(255,211,0,.18), rgba(255,149,0,.10));
  border:1px solid rgba(255,211,0,.5);
  border-radius:10px;
  color:#fff;
  flex-wrap:wrap;
}
.hero-guarantee strong{
  font-size:15px;font-weight:800;letter-spacing:.02em;
  color:#ffd300;
  white-space:nowrap;
}
.hero-guarantee span{
  font-size:12px;opacity:.85;line-height:1.45;
}
@media (max-width:520px){
  .hero-guarantee{padding:9px 12px;gap:6px;}
  .hero-guarantee strong{font-size:14px;}
  .hero-guarantee span{font-size:11px;}
}

/* ヒーロー右カラム：シミュレーターカード */
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display:flex;align-items:center;gap:12px;
}
.hero-card-body{flex:1;min-width:0;}
.hero-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height:1.3;
}
.hero-card-sub {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin-bottom: 0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.hero-card-btn {
  display: inline-flex;align-items:center;gap:4px;
  text-align: center;
  padding: 8px 14px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12px;
  transition: background .15s, transform .15s;
  flex-shrink:0;
  white-space:nowrap;
}
.hero-card-btn:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ------------------------------------------------------------
   5. ボディラッパー
------------------------------------------------------------ */
.body-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* ------------------------------------------------------------
   5.5 特集バナー（ピックアップ）
------------------------------------------------------------ */
.pickup-bar{
  background:linear-gradient(135deg, #fff7e6 0%, #fff0d4 100%);
  border:1px solid #ffd89b;border-radius:var(--radius-md);
  padding:10px 14px;margin-bottom:24px;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.pickup-label{
  background:#e98b3f;color:#fff;
  font-size:11px;font-weight:700;letter-spacing:.04em;
  padding:4px 10px;border-radius:999px;
  flex:0 0 auto;
}
.pickup-link{
  flex:1 1 auto;display:flex;align-items:center;gap:10px;
  text-decoration:none;color:inherit;min-width:0;
}
.pickup-icon{
  font-size:26px;flex:0 0 auto;line-height:1;
}
.pickup-body{flex:1;min-width:0;line-height:1.4;}
.pickup-title{
  display:block;font-size:15px;font-weight:700;color:var(--gray-900);
  overflow:hidden;text-overflow:ellipsis;
}
.pickup-sub{
  display:block;font-size:13px;color:var(--gray-700);margin-top:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.pickup-arrow{
  flex:0 0 auto;font-size:18px;color:#e98b3f;font-weight:700;
}
@media (max-width:640px){
  .pickup-bar{padding:8px 12px;gap:8px;}
  .pickup-icon{font-size:22px;}
  .pickup-title{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .pickup-sub{font-size:11px;}
}

/* ------------------------------------------------------------
   6. セクション共通
------------------------------------------------------------ */
.section { margin-bottom: 32px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-900);
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--green);
  border-radius: 2px;
}
.see-all {
  font-size: 12px;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: color .15s;
}
.see-all:hover { color: var(--green); }

/* ------------------------------------------------------------
   7. ① 今すぐ解決する（アプリライクなカードUI）
------------------------------------------------------------ */
.tools-group { margin-bottom: 24px; }
.tools-group:last-child { margin-bottom: 0; }

.group-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.group-label.urgent {
  background: var(--red-bg);
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.group-label.urgent svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.group-label.normal {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

/* ======= ツール/simulation ページと統一：アイコン非表示・テキスト中心・コンパクト ======= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tool-card {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  position: relative;
  text-align: left;
}
.tool-card::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:4px;
  background: var(--green);
  opacity: 0;
  transition: opacity .15s;
  border-radius: 10px 0 0 10px;
}
.tool-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(0,179,125,.1);
  transform: translateY(-1px);
}
.tool-card:hover::before{ opacity: 1; }

/* アイコン・矢印は非表示（simulation ページと統一・文字中心） */
.tool-icon { display: none; }
.tool-arrow { display: none; }

.tool-body { min-width: 0; }
.tool-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--gray-900);
  line-height: 1.35;
  letter-spacing: .01em;
  margin: 0 0 6px;
}
.tool-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-500, #64748b);
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-block;
  padding: 3px 8px;
  background: #f0fbf8;
  border-radius: 4px;
  border-left: 2px solid var(--green, #1e9986);
}

/* PC: 4カラム */
@media (min-width: 960px){
  .tools-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .group-label{ font-size: 14px; padding: 7px 16px; }
}
/* タブレット: 2カラム（既定と同じ） */
@media (max-width: 959px) and (min-width: 641px){
  .tools-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* SP：1カラム */
@media (max-width: 640px){
  .tools-grid{ grid-template-columns: 1fr; gap: 8px; }
  .tool-card{ padding: 12px 14px; border-radius: 10px; }
  .tool-name{ font-size: 16px; }
  .tool-desc{ font-size: 14px; line-height: 1.55; }
  .tool-meta{ font-size: 11px; padding: 2px 6px; margin-top: 6px; }
}

/* ------------------------------------------------------------
   8. ② ドライブMAP
------------------------------------------------------------ */
.map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.map-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.map-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,179,125,.12);
}
.map-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.map-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.map-sub {
  font-size: 10px;
  color: var(--gray-500);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: blink 2s ease-in-out infinite;
  margin-right: 4px;
  vertical-align: middle;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

.map-open-btn {
  width: 100%;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  transition: border-color .15s, color .15s, background .15s;
}
.map-open-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

/* ------------------------------------------------------------
   9. ③ 今週の関西ハイライト + ニュース
------------------------------------------------------------ */

/* トップページ：最新ハイライトカード（動的取得） */
.hl_top_card{
  display:block;background:#fff;
  border:1px solid var(--gray-200);border-radius:14px;
  padding:18px 22px;text-decoration:none;color:inherit;
  transition:border-color .15s, box-shadow .15s, transform .15s;
  margin-bottom:12px;
}
.hl_top_card:hover{
  border-color:var(--green);
  box-shadow:0 6px 20px rgba(0,179,125,.12);
  transform:translateY(-2px);
}
.hl_top_period{
  font-size:12px;color:var(--gray-600);font-weight:600;margin-bottom:6px;
}
.hl_top_title{
  font-size:18px;font-weight:800;color:var(--gray-900);
  margin:0 0 10px;line-height:1.5;
}
.hl_top_lead{
  font-size:14px;color:var(--gray-700);line-height:1.85;
  margin:0 0 12px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.hl_top_stats{
  display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;
}
.hl_top_stat{
  display:inline-block;background:#eef5ff;color:#1a2c4e;
  padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;
}
.hl_top_more{
  color:var(--green);font-weight:700;font-size:13px;text-align:right;
}

/* ハイライト（SEOテキスト直書きカード） */
.weekly-highlights{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:12px;
  margin-bottom:16px;
}
.weekly-card{
  background:#fff;
  border:1px solid var(--gray-200);
  border-left:4px solid var(--gray-400);
  border-radius:var(--radius-md);
  padding:14px 16px;
  transition:border-color .15s, box-shadow .15s;
}
.weekly-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.06);}
.weekly-accident{border-left-color:#e05252;}
.weekly-gasoline{border-left-color:#f0a03c;}
.weekly-flood{border-left-color:#4a90e2;}
.weekly-head{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  margin-bottom:8px;font-size:11px;
}
.weekly-badge{
  display:inline-block;
  padding:3px 8px;border-radius:999px;
  font-weight:700;letter-spacing:.02em;
  color:#fff;
}
.weekly-badge-critical{background:#e05252;}
.weekly-badge-gas{background:#f0a03c;}
.weekly-badge-flood{background:#4a90e2;}
.weekly-time{color:var(--gray-600);}
.weekly-title{
  font-size:15px;font-weight:700;color:var(--gray-900);
  margin:0 0 6px;line-height:1.5;
}
.weekly-body{
  font-size:13px;color:var(--gray-700);line-height:1.8;
  margin:0 0 8px;
}
.weekly-meta{
  display:flex;gap:10px;flex-wrap:wrap;
  font-size:11px;color:var(--gray-600);
  padding-top:6px;border-top:1px solid var(--gray-200);
}

/* ======= 事故ニュース（ブログ風グリッド） ======= */
.news-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:6px;}
.news-section-note{margin:0 0 14px;font-size:12px;color:var(--gray-500);line-height:1.6;}
.news-see-all{font-size:13px;color:var(--green);text-decoration:none;font-weight:700;}
.news-see-all:hover{text-decoration:underline;}
.news-loading,.news-empty{grid-column:1/-1;text-align:center;padding:32px 20px;color:var(--gray-500);font-size:13px;background:#fff;border:1px dashed var(--gray-200);border-radius:12px;}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.news-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
  border-color: var(--green);
}

/* サムネイル領域 */
.news-card-thumb-wrap{position:relative;aspect-ratio:16/9;background:var(--gray-100);overflow:hidden;}
.news-card-thumb{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s;}
.news-card:hover .news-card-thumb{transform:scale(1.04);}
.news-card-thumb-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.9);font-size:42px;}

/* ボディ */
.news-card-body{padding:14px 16px 12px;display:flex;flex-direction:column;flex:1;min-height:0;}
.news-card-meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:8px;font-size:11px;}
.news-card-cat{background:#eef4f3;color:#0a6a3a;padding:2px 8px;border-radius:10px;font-weight:700;letter-spacing:.02em;}
.news-card-sev{padding:2px 8px;border-radius:10px;font-weight:700;letter-spacing:.02em;}
.news-card-sev.sev-high{background:#fdecea;color:#c0392b;}
.news-card-sev.sev-mid{background:#fef5e7;color:#a66612;}
.news-card-sev.sev-low{background:#eef4f3;color:#0a6a3a;}
.news-card-time{color:var(--gray-500);margin-left:auto;font-weight:600;}
.news-card-title{margin:0 0 8px;font-size:15px;font-weight:800;color:var(--gray-900);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.news-card-summary{margin:0 0 10px;font-size:12.5px;color:var(--gray-600);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1;}
.news-card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:10px;border-top:1px solid var(--gray-200);font-size:11px;color:var(--gray-500);}
.news-card-source{font-weight:600;}
.news-card-arrow{color:var(--green);font-size:14px;font-weight:700;}

@media (max-width:860px){
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
}
@media (max-width:520px){
  .news-grid{grid-template-columns:1fr;}
}

/* --- 既存 .news-card の派生プロパティ（色ライン）を保持 --- */
.news-card::after {
  /* 重大度の上部カラーライン */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 2;
}
.news-card.sev-heavy::after { background: var(--red); }
.news-card.sev-mid::after   { background: var(--amber); }
.news-card.sev-light::after { background: var(--emerald); }

.news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.news-thumb.fallback-heavy { background: linear-gradient(135deg, #fca5a5, #b91c1c); }
.news-thumb.fallback-mid   { background: linear-gradient(135deg, #fcd34d, #b45309); }
.news-thumb.fallback-light { background: linear-gradient(135deg, #86efac, #15803d); }

.sev-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3;
}
.sev-badge.heavy { background: rgba(220,38,38,.9); }
.sev-badge.mid   { background: rgba(217,119,6,.9); }
.sev-badge.light { background: rgba(22,163,74,.9); }

.news-body { padding: 12px; }
.news-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--gray-900);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.news-cost {
  color: var(--gray-900);
  font-weight: 700;
}
.news-cost span {
  display: block;
  font-size: 9px;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 1px;
}
.news-time {
  color: var(--gray-400);
  font-size: 10px;
}
.news-note {
  margin-top: 12px;
  font-size: 10px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   9.5. ドライバー情報（事故Tip / 多発エリア / 冠水注意）
------------------------------------------------------------ */
.driver-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.driver-info-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
}
.driver-info-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.driver-info-card p,
.driver-info-card li,
.driver-info-card div{
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
}

/* Tip */
.driver-tip-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.driver-tip-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.driver-tip-title {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 13px;
  margin-bottom: 4px;
}
.driver-tip-desc {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ホットスポット */
.driver-hot-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 12px;
  color: var(--gray-900);
  transition: background .15s;
}
.driver-hot-row:last-child { border-bottom: 0; }
.driver-hot-row:hover { background: var(--gray-100); border-radius: var(--radius-sm); }
.driver-hot-rank {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.driver-hot-row:nth-child(1) .driver-hot-rank { background: var(--red); }
.driver-hot-row:nth-child(2) .driver-hot-rank { background: var(--amber); }
.driver-hot-loc { font-weight: 600; }
.driver-hot-count {
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 600;
}

/* 冠水 */
.driver-flood-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 12px;
}
.driver-flood-row:last-child { border-bottom: 0; }
.driver-flood-icon { font-size: 20px; flex-shrink: 0; line-height: 1; }
.driver-flood-title { font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.driver-flood-time { font-size: 10px; color: var(--gray-500); }
.driver-flood-clear .driver-flood-title { color: var(--gray-700); }
.driver-flood-clear .driver-flood-time a { color: var(--green); text-decoration: underline; }

.driver-empty {
  font-size: 11px;
  color: var(--gray-500);
  padding: 8px 0;
  line-height: 1.7;
}

@media (min-width: 640px) and (max-width: 959px) {
  .driver-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .driver-info-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ------------------------------------------------------------
   10. ④⑤ FAQ + ブログ 横並び
------------------------------------------------------------ */
.faq-blog-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  align-items: start;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  user-select: none;
  line-height: 1.55;
}
.faq-q-mark {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.faq-q span.faq-arrow { margin-left: auto; }
.faq-arrow {
  color: var(--gray-400);
  font-size: 18px;
  transition: transform .2s;
}
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a {
  display: none;
  padding: 0 14px 16px 48px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.85;
}
.faq-item.open .faq-a { display: block; }

/* ブログ（横並びカード） */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color .15s, transform .15s;
}
.blog-card:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}
.blog-thumb {
  position: relative;
  width: 110px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.blog-thumb-bg {
  position: absolute;
  inset: 0;
}
.blog-cat {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.blog-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}
.blog-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.6;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-meta {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--gray-500);
}
.blog-more-wrap {
  margin-top: 10px;
  text-align: center;
}
.blog-more-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 12px;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  transition: border-color .15s, color .15s, background .15s;
}
.blog-more-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

/* ------------------------------------------------------------
   11. LINE CTAバナー
------------------------------------------------------------ */
.line-cta {
  background: linear-gradient(135deg, #06C755, #00a847);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  margin-bottom: 0;
  box-shadow: 0 6px 20px rgba(6,199,85,.25);
}
.line-cta-text { flex: 1; min-width: 0; }
.line-cta-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.line-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,.9);
}
.line-cta-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  background: #fff;
  color: var(--line-green);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  transition: transform .15s;
}
.line-cta-btn:hover { transform: translateY(-1px); }

/* ------------------------------------------------------------
   12. フッター
------------------------------------------------------------ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 40px 0 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ------------------------------------------------------------
   13. SPボトムタブ + ドロワー（700px以下のみ）
------------------------------------------------------------ */
.sp-tab {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sp-tab-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sp-tab-item {
  background: none;
  border: 0;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 600;
  transition: color .15s;
}
.sp-tab-item svg { width: 22px; height: 22px; stroke-width: 1.6; }
.sp-tab-item.active { color: var(--green); }
.sp-tab-item:hover { color: var(--green); }

/* ドロワー */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 250;
  opacity: 0;
  transition: opacity .25s;
}
.drawer-overlay.open { display: block; opacity: 1; }

.drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 300;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  max-height: 82vh;
  overflow-y: auto;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -8px 28px rgba(0,0,0,.15);
}
.drawer.open { transform: translateY(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 14px;
  position: sticky;
  top: 0;
  background: #fff;
}
.drawer-header::before {
  /* 掴みハンドル */
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  width: 40px; height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  transform: translateX(-50%);
}
.drawer-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--navy);
}
.drawer-logo img { height: 24px; }
.drawer-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-700);
  border: 0; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}

.drawer-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  padding: 12px 6px 6px;
  letter-spacing: .04em;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-900);
  font-weight: 500;
  transition: background .15s;
}
.drawer-item:hover,
.drawer-item:active { background: var(--gray-100); }

.drawer-cta-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 16px 4px 8px;
}
.drawer-cta-line {
  background: var(--line-green);
  color: #fff;
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
}
.drawer-cta-sos {
  background: var(--red);
  color: #fff;
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
}

/* ------------------------------------------------------------
   14. レスポンシブ 3段階
------------------------------------------------------------ */

/* Tablet: 701px〜1023px */
@media (min-width: 701px) and (max-width: 1023px) {
  .btn-web    { display: none; }
  .header-main { padding: 12px 24px; }
  .header-nav-inner { padding: 0 24px; }
  .header-nav-inner a { padding: 10px 10px; font-size: 12px; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 40px 24px 48px;
    gap: 28px;
  }
  .hero-h1 { font-size: 32px; }

  .body-wrap { padding: 28px 24px 40px; }
}

/* SP: ≤700px */
@media (max-width: 700px) {
  .header-nav-row { display: none; } /* SPではドロワーに集約 */
  .btn-web    { display: none; }
  .header-main {
    padding: 10px 16px;
    gap: 10px;
  }
  .header-top { font-size: 10px; padding: 5px 12px; gap: 10px; }
  .header-actions { gap: 6px; }
  .header-sos-btn { width: 34px; height: 34px; }
  .header-sos-icon { width: 20px; height: 20px; }
  .btn-line { padding: 0 10px; font-size: 11px; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px 24px;
    gap: 16px;
  }
  .hero-h1 { font-size: 22px; margin-bottom: 12px; line-height:1.4; }
  .hero-sub { font-size: 12px; margin-bottom: 14px; line-height:1.6; }
  .hero-btns { flex-direction: row; gap: 8px; }
  .hero-btn-line,
  .hero-btn-web {
    flex: 0 0 auto;
    justify-content: center;
    padding: 10px 18px;
    font-size: 13px;
  }

  /* 2ボタン並列：370pxまで改行させないため font/padding を圧縮 */
  .hero-btns-duo{gap:6px;}
  .hero-btns-duo .hero-btn-line,
  .hero-btns-duo .hero-btn-sim{
    padding:10px 4px;
    font-size:clamp(11px, 3.2vw, 13px);
  }

  .body-wrap { padding: 22px 16px 120px; } /* SPタブ分余白 */
  .section { margin-bottom: 26px; }
  .section-title { font-size: 15px; }

  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .map-icon { font-size: 24px; }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .news-title { font-size: 12px; }

  .faq-blog-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .line-cta {
    flex-direction: column;
    text-align: center;
    padding: 18px;
    border-radius: var(--radius-lg);
  }
  .line-cta-btn { width: 100%; }

  .footer { padding: 32px 0 100px; margin-top: 32px; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .sp-tab { display: block; }
}

/* PC: ≥1024px */
@media (min-width: 1024px) {
  .header-main { padding: 12px 40px; }
}
