/* ============================================================
   📄 css/style.css
   【このファイルの役割】
   TOPページ（index.html）専用のデザイン設定ファイルです。
   色・フォント・ボタン・各セクションの見た目をここで管理します。

   ⚠️ LP（空き家管理・リフォーム）のデザインはそれぞれの
      index.html 内の <style> に直接書いています。
   ============================================================ */


/* ============================================================
   🎨 色・サイズなどの「共通変数」
   ここの値を変えると → サイト全体の色がまとめて変わります

   使い方の例：
     --orange: #FF6B1A;  ← この色コードを変えると
                            ボタン・アクセント・ラインが全部変わる

   🔵 空き家管理LP → lp/kanri/index.html の :root で上書き（青 #4169E1）
   🟢 リフォームLP  → lp/reform/index.html の :root で上書き（緑 #3CB371）
   ============================================================ */
:root {
  /* --- ブランドカラー（オレンジ系） --- */
  --orange:        #FF6B1A;   /* メインカラー：ボタン・アイコン・ライン等すべてに使用 */
  --orange-dark:   #E05500;   /* 濃いオレンジ：ホバー時（マウスを乗せたとき）の色 */
  --orange-light:  #FF8C4A;   /* 薄いオレンジ：ヒーロー文字・サブ要素に使用 */
  --orange-pale:   #FFF0E8;   /* 極薄オレンジ：タグ背景・ホバー背景などに使用 */
  --orange-bg:     #FFF7F2;   /* ごく淡いオレンジ：セクション背景に使用 */

  /* --- テキスト・背景の色 --- */
  --dark:          #1A1A1A;   /* ほぼ黒：本文・見出しの文字色 */
  --gray-dark:     #333333;   /* 濃いグレー：ナビリンクの文字色 */
  --gray:          #666666;   /* 中間グレー：説明文・補足テキスト */
  --gray-light:    #999999;   /* 薄いグレー：注記・小さい文字 */
  --gray-border:   #E5E5E5;   /* 枠線（ボーダー）の色 */
  --bg-light:      #F8F6F3;   /* セクションの薄いベージュ背景 */
  --white:         #FFFFFF;   /* 白 */

  /* --- フォント（文字の種類） --- */
  --font-ja:       'Noto Sans JP', sans-serif;   /* 日本語テキスト全般 */
  --font-en:       'Montserrat', sans-serif;      /* 英字・数字（SKET・01等） */

  /* --- 角の丸み --- */
  --radius:        8px;    /* ボタン・カードなどの角丸（小） */
  --radius-lg:     16px;   /* カード・フォームなどの角丸（大） */

  /* --- 影（シャドウ） --- */
  --shadow:        0 4px 20px rgba(0,0,0,0.08);          /* 通常時の影 */
  --shadow-hover:  0 8px 40px rgba(255,107,26,0.2);       /* ホバー時のオレンジ影 */

  /* --- アニメーション速度 --- */
  --transition:    0.3s ease;   /* ホバーなどの変化にかかる時間 */

  /* --- コンテンツの最大幅 --- */
  --container:     1100px;   /* これ以上広くならない（中央寄せのため） */
}


/* ============================================================
   🔄 リセットCSS
   【変更不要】ブラウザごとのデフォルト余白をゼロにする処理です。
   ここを触る必要はありません。
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ja);
  color: var(--dark);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* ============================================================
   📦 コンテンツ幅の制限（.container）
   【変更するなら】--container の数値を変えると最大幅が変わります。
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;   /* 左右の余白：スマホで文字が端に張り付かないよう */
}


/* ============================================================
   📐 セクション共通スタイル
   各セクション（ABOUTなど）の上下余白・見出しを統一管理します。

   【上下余白を変えるなら】→ padding: 96px 0; の数値を変える
   【背景を変えるなら】→ .section.bg-light の background を変える
   ============================================================ */
.section { padding: 96px 0; }
.section.bg-light { background: var(--bg-light); }  /* 薄ベージュ背景セクション */

/* セクションの小見出し（英字ラベル：「ABOUT」「FLOW」等） */
.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);   /* ← 色を変えたい場合は --orange を変えるか直接指定 */
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* ラベル左の横線 */
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--orange);   /* ← 線の色（ラベルと同じ色） */
}

/* セクションの大見出し（「SKETについて」等） */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);   /* 画面幅に応じて自動調整 */
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--dark);
}

/* セクションの説明文（見出しの下の1〜2行のテキスト） */
.section-sub {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 56px;   /* ← コンテンツとの間隔 */
}


/* ============================================================
   🔘 ボタンのスタイル一覧
   ボタンの見た目はクラス名で管理しています。
   HTML側でクラスを変えると → ボタンのデザインが変わります。

   例）<a class="btn btn-primary">→ オレンジボタン
       <a class="btn btn-line">  → LINEグリーンボタン
   ============================================================ */

/* 全ボタン共通の基本形 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;   /* 丸いボタン形状 */
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}

/* オレンジボタン（メインCTA） */
.btn-primary {
  background: var(--orange);         /* ← ボタンの背景色 */
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,107,26,0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);    /* ← マウスを乗せたときの背景色 */
  transform: translateY(-2px);       /* ← 少し浮き上がる動き */
  box-shadow: 0 8px 24px rgba(255,107,26,0.45);
}

/* 透明ボタン（ヒーロー内の「詳しく見る」等・白枠） */
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);   /* ← 枠線の色（半透明白） */
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* LINEグリーンボタン */
.btn-line {
  background: #06C755;   /* ← LINEの緑色（変更非推奨） */
  color: var(--white);
  box-shadow: 0 4px 16px rgba(6,199,85,0.35);
}
.btn-line:hover {
  background: #05b04c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,199,85,0.45);
}

/* CTAバナー内の白いボタン */
.btn-cta-white {
  background: var(--white);
  color: var(--orange-dark);   /* ← 文字色（オレンジ） */
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-cta-white:hover {
  background: var(--orange-pale);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* サービスカード下部のボタン */
.btn-service {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-service:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ボタンサイズ修飾クラス */
.btn-lg   { padding: 18px 48px; font-size: 1.05rem; }   /* 大きめ */
.btn-sm   { padding: 10px 20px; font-size: 0.85rem; }   /* 小さめ */
.btn-full { width: 100%; justify-content: center; }      /* 横幅いっぱい */


/* ============================================================
   🏠 ヒーローセクション（ページ最上部の大きな画像エリア）
   【背景画像を変えるなら】→ .hero-bg の background-image の URL を変える
   【背景の暗さを変えるなら】→ .hero-overlay の rgba の最後の数値（0.75等）を変える
      例）0.75 → 0.5 にすると明るくなる、0.9 にすると暗くなる
   ============================================================ */
.hero {
  position: relative;
  min-height: 70vh;   /* 画面の高さ（100vh→70vhで30%縮小） */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ヒーロー背景画像 */
.hero-bg {
  position: absolute;
  inset: 0;
  /* ↓↓↓ 背景画像のURL：ここを差し替えると背景が変わります ↓↓↓ */
  /* 【画像】TOPページ ヒーロー背景 → images/hero/hero-top-main.jpg に差し替え可 */
background-image: url('../images/hero/hero-top-main.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;   /* ページ読み込み時にゆっくり縮むアニメーション */
}
.hero-bg.loaded { transform: scale(1); }  /* 読み込み完了後のサイズ */

/* 背景画像の上に重ねる暗いフィルター（文字を読みやすくするため） */
.hero-overlay {
  position: absolute;
  inset: 0;
  /*
    左から右へのグラデーション：
    rgba(26,26,26, 0.75) = 暗い黒（75%の濃さ）
    rgba(26,26,26, 0.55) = 少し薄い黒（55%の濃さ）
    rgba(255,107,26,0.25) = オレンジ（25%の濃さ）
    → 数値を変えると暗さ・色合いが変わります
  */
  background: linear-gradient(
    135deg,
    rgba(26,26,26,0.75) 0%,
    rgba(26,26,26,0.55) 50%,
    rgba(255,107,26,0.25) 100%
  );
}

/* ヒーロー内のテキストエリア */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  color: var(--white);
}

/* ヒーローの小さいラベル（「思い出の家を、未来の価値へ」の上の行） */
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--orange-light);   /* ← 文字色 */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;   /* フェードインアニメーション */
}
/* ラベル左の横線 */
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--orange-light);
}

/* ヒーローのメインタイトル（大きい見出し） */
.hero-title {
  font-size: clamp(1.54rem, 3.5vw, 2.8rem);   /* 画面幅に応じて自動調整（30%縮小済み） */
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}
/* タイトル内のオレンジ強調テキスト */
.hero-accent {
  color: var(--orange-light);   /* ← 強調色 */
  display: block;
}

/* ヒーローの説明文 */
.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 2;
  color: rgba(255,255,255,0.85);   /* ← 白の85%透明度 */
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* ヒーローのボタン群 */
.hero-btns {
  display: flex;
  gap: 16px;        /* ← ボタン間の間隔 */
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

/* スクロール誘導（下部の「SCROLL」テキスト＋線） */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease infinite;   /* 点滅アニメーション */
}

/* スクロール線の点滅アニメーション定義 */
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.4; }
}


/* ============================================================
   👤 ABOUTセクション（SKETについて）
   【変更ポイント】
   - .about-text p → 本文テキストの色・サイズ
   - .tag → タグ（「元大工」「群馬対応」等）の見た目
   - .stat-card → 数字カードの見た目
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 720px;
}

.about-text p {
  color: var(--gray-dark);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 2;
}
.about-text strong { color: var(--orange-dark); }   /* 本文内の太字はオレンジ色 */

.about-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

/* タグ（特徴を示すバッジ） */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--orange-dark);          /* ← タグの文字色 */
  background: var(--orange-pale);     /* ← タグの背景色 */
  padding: 8px 16px;
  border-radius: 50px;
  border-left: 3px solid var(--orange);   /* ← タグ左の縦線 */
}
.tag i { color: var(--orange); }

/* 数字カード（「5件以上」「20年以上」等） */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stats .stat-card:first-child {
  grid-column: 1 / -1;   /* 1枚目だけ横幅いっぱいに表示 */
}

.stat-card {
  background: var(--white);
  border: 2px solid var(--orange-pale);   /* ← カードの枠線色（薄オレンジ） */
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--orange);   /* ← ホバー時に枠線がオレンジに */
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* 数字カードの大きい数字 */
.stat-num {
  font-family: var(--font-en);
  font-size: 3rem;        /* ← 数字の大きさ */
  font-weight: 900;
  color: var(--orange);   /* ← 数字の色 */
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span {
  font-size: 1.4rem;
  font-weight: 700;
}

/* 数字カードの説明ラベル */
.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}


/* ============================================================
   🏢 SERVICESセクション（3つの事業カード）
   【背景について】
   .services-orange → 濃いオレンジ〜明るいオレンジのグラデーション背景

   【カード画像を変えるなら】
   → index.html 内の service-card-img の style="background-image: url(...)" を変える

   【ボタンを変えるなら】
   → index.html 内の .btn-service のテキスト・リンク先を変える
   ============================================================ */

/* セクション背景（オレンジグラデーション） */
.services-orange {
  /* ← ここの3つの色コードを変えると背景グラデが変わります */
  background: linear-gradient(160deg, #C94E00 0%, #E05500 40%, #FF6B1A 100%);
}
/* 白背景の見出し・ラベル（オレンジ背景上なので白にする） */
.services-orange .section-label--white {
  color: rgba(255,255,255,0.75);
}
.services-orange .section-label--white::before {
  background: rgba(255,255,255,0.75);
}
.services-orange .section-title--white  { color: var(--white); }
.services-orange .section-sub--white    { color: rgba(255,255,255,0.8); margin-bottom: 48px; }

/* カードを3列グリッドで並べる */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* ← 3列。2列にしたいなら repeat(2, 1fr) */
  gap: 24px;   /* ← カード間の間隔 */
}

/* 各サービスカード */
.service-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transform: translateY(-6px);   /* ← ホバーで浮き上がる量（px） */
}

/* カード上部の画像エリア */
.service-card-img {
  width: 100%;
  height: 200px;        /* ← 画像の高さ。変えると画像表示域のサイズが変わります */
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* カード下部のテキストエリア */
.service-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

/* カードのタイトル */
.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

/* カードの説明文 */
.service-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.8;
  flex-grow: 1;
}

/* カード内の箇条書きリスト */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 4px 0;
}
.service-list li {
  font-size: 0.83rem;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li i {
  color: var(--orange);   /* ← チェックアイコンの色 */
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* カード下部のボタンを中央揃えにするラッパー */
.service-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}


/* ============================================================
   ❌✅ PROBLEMS & SOLUTIONSセクション（お悩み→解決対比）
   【背景色について】
   .problems-ivory → アイボリー（温かみのある白）背景
   .problems       → ダーク（黒）背景（デフォルト。変更した場合は以下も修正）

   【悩みリスト（赤）・解決リスト（緑）の色を変えるなら】
   → .ps-list--problem li の border-left・background を変える
   → .ps-list--solution li の border-left・background を変える
   ============================================================ */

/* アイボリー背景バージョン（現在のTOPページで使用） */
.problems-ivory {
  background: #FAF6EF !important;   /* ← 背景色：温かみのあるアイボリー */
  color: var(--dark) !important;
}
/* アイボリー背景では文字色を上書き（デフォルトが白文字のため） */
.problems-ivory .section-title  { color: #111111 !important; }
.problems-ivory .section-label  { color: var(--orange-dark); }
.problems-ivory .section-label::before { background: var(--orange-dark); }
.problems-ivory .ps-arrow       { color: var(--orange-dark); }
/* アイボリー背景でのリスト背景色（少し色をつける） */
.problems-ivory .ps-list--problem li { background: rgba(180,30,30,0.18); color: var(--dark); }
.problems-ivory .ps-list--solution li { background: rgba(30,130,50,0.18); color: var(--dark); }

/* ダーク（黒）背景バージョン（現在は未使用だが設定は残す） */
.problems { background: var(--dark); color: var(--white); }
.problems .section-label       { color: var(--orange-light); }
.problems .section-label::before { background: var(--orange-light); }
.problems .section-title       { color: var(--white); }

/* 3列グリッド：[悩み列] [矢印] [解決列] */
.ps-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;   /* ← 中央80pxが矢印エリア */
  gap: 32px;
  align-items: center;
}

/* 列ヘッダー（「よくあるお悩み」「SKETの解決策」等） */
.ps-col-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ps-col-title i          { font-size: 1.2rem; }
.problem-col  .ps-col-title { color: #ff6b6b; }   /* ← 悩み列ヘッダー色（赤） */
.solution-col .ps-col-title { color: #6bcb77; }   /* ← 解決列ヘッダー色（緑） */

/* リストの共通スタイル */
.ps-list { display: flex; flex-direction: column; gap: 12px; }
.ps-list li {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
}
/* 悩みリスト（赤系） */
.ps-list--problem li {
  background: rgba(255,107,107,0.1);      /* ← 薄い赤背景 */
  border-left: 3px solid #ff6b6b;          /* ← 赤の縦線 */
  color: rgba(255,255,255,0.85);
}
/* 解決リスト（緑系） */
.ps-list--solution li {
  background: rgba(107,203,119,0.1);      /* ← 薄い緑背景 */
  border-left: 3px solid #6bcb77;          /* ← 緑の縦線 */
  color: rgba(255,255,255,0.85);
}

/* 中央の矢印（→） */
.ps-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--orange-light);   /* ← 矢印の色 */
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ps-arrow i { font-size: 2rem; }


/* ============================================================
   🔢 FLOWセクション（ご依頼の流れ：4ステップ）
   【ステップの内容を変えるなら】→ index.html 内のHTMLを編集
   【アイコンを変えるなら】→ index.html 内の <i class="fas fa-..."> を変える
      Font Awesomeのアイコン一覧: https://fontawesome.com/icons
   ============================================================ */

/* 4ステップを横並び（PC）にするグリッド */
.flow-steps {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  /* ↑ 「カード・矢印・カード・矢印・カード・矢印・カード」の順に並ぶ */
  align-items: stretch;
  gap: 8px;
}

/* 各ステップのカード */
.flow-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 20px;   /* ← 上下左右の内側余白 */
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--gray-border);   /* ← カードの枠線色 */
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.flow-step:hover {
  border-color: var(--orange);   /* ← ホバーで枠線がオレンジに */
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ステップ番号（01〜04）の大きい数字 */
.flow-num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  -webkit-text-stroke: 2px var(--orange);   /* ← 数字の輪郭線の色 */
  color: transparent;   /* 数字の中は透明（輪郭だけ表示） */
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ステップのアイコン（丸い円形背景のアイコン） */
.flow-icon {
  width: 52px;
  height: 52px;
  background: var(--orange);   /* ← アイコン背景色 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin: 0 auto 16px;
  flex-shrink: 0;
}

/* ステップのタイトル */
.flow-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
  min-height: 2.8em;   /* 全ステップで高さを揃えるための最小高さ */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ステップの説明文 */
.flow-step p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
  flex-grow: 1;
}

/* ステップ間の矢印（→） */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);   /* ← 矢印の色 */
  font-size: 1.2rem;
}


/* ============================================================
   📍 AREAセクション（対応エリア）
   【エリア情報を変えるなら】→ index.html 内のテキストを直接編集
   ============================================================ */
.area-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;   /* ← 左カードが少し広い */
  gap: 24px;
  margin-bottom: 24px;
}

.area-card {
  background: var(--white);
  border: 2px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
}
.area-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-hover);
}
/* メインエリアカード（群馬全域）は背景をオレンジ薄色に */
.area-card--main {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange-pale) 0%, var(--white) 100%);
}

.area-icon {
  font-size: 2rem;
  color: var(--orange);   /* ← アイコン色 */
  margin-bottom: 16px;
}

.area-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
/* カード内の「主対応エリア」等のバッジ */
.area-card h3 span {
  font-size: 0.85rem;
  background: var(--orange);   /* ← バッジ背景色 */
  color: var(--white);
  padding: 2px 10px;
  border-radius: 50px;
  margin-left: 8px;
  font-weight: 700;
}
.area-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.9;
}

/* エリアセクション下部の注記テキスト */
.area-note {
  font-size: 0.875rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.area-note i { color: var(--orange); }


/* ============================================================
   📣 CTAバナー（「今すぐ相談」等のオレンジ背景の帯）
   【背景を変えるなら】→ background の色コードを変える
   【ボタンの種類】→ .btn-line（LINE緑）+ .btn-cta-white（白）で構成
   ============================================================ */
.cta-banner {
  /* ← このグラデーションを変えると帯の背景が変わります */
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}
/* 見出し内のハイライトテキスト部分 */
.cta-banner h2 span {
  /* 背景ハイライト削除 */
}
.cta-banner p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 2;
}
/* ボタンを横並びにするラッパー */
.cta-banner-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   📬 CONTACTセクション（お問い合わせフォーム）
   【フォームの入力項目を変えるなら】→ index.html 内のHTMLを編集
   【送信後の動作】→ js/main.js の contactForm の処理を見てください
   ============================================================ */
.contact { background: var(--bg-light); }

/* 左（連絡先情報）と右（フォーム）の2列レイアウト */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;   /* ← フォーム側が少し広い */
  gap: 56px;
  align-items: start;
}

/* 連絡先アイテム（LINE・メール等） */
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
/* アイコンの丸い背景 */
.contact-item > i {
  width: 40px;
  height: 40px;
  background: var(--orange);   /* ← アイコン背景色 */
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.contact-item div  { display: flex; flex-direction: column; gap: 4px; }
.contact-item strong { font-size: 0.85rem; color: var(--gray); font-weight: 500; }
.contact-item span   { font-size: 1rem; color: var(--dark); font-weight: 500; }

/* 対応サービスのタグ一覧 */
.contact-services p { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }
.contact-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-tags span {
  background: var(--white);
  border: 1px solid var(--orange);          /* ← タグの枠線色 */
  color: var(--orange-dark);                /* ← タグの文字色 */
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
}

/* フォームのカード */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 2列になる入力行（お名前・メールアドレス等） */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-dark);
}

/* 「必須」バッジ */
.required {
  font-size: 0.7rem;
  background: var(--orange);   /* ← 「必須」バッジの背景色 */
  color: var(--white);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 入力フィールドの共通スタイル */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray-border);   /* ← 通常時の枠線色 */
  border-radius: var(--radius);
  font-family: var(--font-ja);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
/* フォーカス時（クリックして入力中）の枠線 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);                      /* ← フォーカス時の枠線色 */
  box-shadow: 0 0 0 3px rgba(255,107,26,0.1);       /* ← 枠線外側の薄い光彩 */
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select   { appearance: none; cursor: pointer; }


/* ============================================================
   🦶 フッター（ページ最下部）
   【リンクを変えるなら】→ index.html 内の footer のHTMLを編集
   【文字色を変えるなら】→ color: rgba(255,255,255,0.75) の数値を変える
      1.0 = 不透明（白）、0.5 = 半透明、0.3 = かなり薄い
   ============================================================ */
.footer {
  background: var(--dark);                 /* ← フッター背景色（ほぼ黒） */
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

/* 4列グリッド（ロゴ・サイトマップ・LP・お問い合わせ） */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo  { height: 40px; width: auto; margin-bottom: 12px; }
.footer-catch { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.footer-area  { font-size: 0.82rem; color: var(--orange-light); display: flex; align-items: center; gap: 6px; }

/* フッターリンク列 */
.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a  { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--orange-light); }   /* ← ホバー時の文字色 */

/* フッターお問い合わせ列 */
.footer-contact p { font-size: 0.85rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.footer-contact .btn-primary { background: var(--orange); font-size: 0.85rem; }

/* 法的リンク行 */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-legal a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.75); }

/* コピーライト行 */
.footer-bottom {
  padding: 12px 0 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}


/* ============================================================
   ⬆️ トップへ戻るボタン（右下に固定表示）
   【表示タイミング】→ js/main.js で scroll 400px 以上で表示されます
   【位置を変えるなら】→ bottom・right の数値を変える
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;    /* ← 下からの距離 */
  right: 32px;     /* ← 右からの距離 */
  width: 48px;
  height: 48px;
  background: var(--orange);   /* ← ボタンの色 */
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(255,107,26,0.4);
  opacity: 0;              /* 初期状態は非表示 */
  pointer-events: none;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;              /* スクロールで表示 */
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--orange-dark); transform: translateY(-3px); }


/* ============================================================
   🔔 トースト通知（送信完了・エラー等の小さいポップアップ）
   【表示内容を変えるなら】→ js/main.js の showToast() を見てください
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);   /* 初期状態は画面外に隠れている */
  background: var(--dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);   /* 表示時は画面内にスライドイン */
  opacity: 1;
}
.toast.success { border-left: 4px solid #6bcb77; }   /* ← 成功時：緑の縦線 */
.toast.error   { border-left: 4px solid #ff6b6b; }   /* ← エラー時：赤の縦線 */


/* ============================================================
   ✨ アニメーション定義
   【変更不要】スクロール時のフェードインやヒーローの出現アニメーション。
   速度を変えるなら：0.7s などの数値を変える（大きくするとゆっくりになる）
   ============================================================ */

/* ヒーローの文字が下から浮き上がるアニメーション */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* スクロールで見えたら表示される要素の初期状態 */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
/* 画面内に入ったら visible クラスが付いてフェードイン */
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   📱 レスポンシブ対応（スマートフォン・タブレット）
   【変更不要】画面幅に応じてレイアウトを調整する設定です。
   各メディアクエリ内でカラムを1列に切り替えたり、
   ナビを非表示にしてハンバーガーを表示したりします。
   ============================================================ */

/* タブレット以下（1024px以下）の調整 */
@media (max-width: 1024px) {
  /* サービスカードを1列に */
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  /* フロー（依頼の流れ）を縦並びに */
  .flow-steps    { grid-template-columns: 1fr; gap: 0; }
  .flow-arrow    { transform: rotate(90deg); padding: 8px 0; }   /* 矢印を下向きに回転 */

  /* 悩み→解決を縦並びに */
  .ps-grid       { grid-template-columns: 1fr; gap: 24px; }
  .ps-arrow      { flex-direction: row; justify-content: center; transform: rotate(90deg); padding: 8px; }

  /* エリアを縦並びに */
  .area-grid     { grid-template-columns: 1fr; }

  /* お問い合わせを縦並びに */
  .contact-grid  { grid-template-columns: 1fr; }

  /* フッターを2列に */
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

/* スマートフォン（768px以下）の調整 */
@media (max-width: 768px) {
  .section { padding: 64px 0; }   /* セクション余白を縮小 */
  .cta-banner-btns { flex-direction: column; align-items: center; }   /* ボタンを縦並びに */

  /* スマホ用モバイルナビ（ハンバーガー展開） */
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    padding: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list  { flex-direction: column; gap: 4px; }
  .nav-link  { padding: 12px 16px; border-radius: var(--radius); display: block; }
  .hamburger { display: flex; }   /* スマホではハンバーガーボタンを表示 */

  /* ヒーローのボタンを縦並びに */
  .hero-btns        { flex-direction: column; align-items: flex-start; }
  .hero-btns .btn   { text-align: center; justify-content: center; }

  /* フォームの2列を1列に */
  .form-row         { grid-template-columns: 1fr; }
  .contact-form     { padding: 24px; }

  /* フッターを1列に */
  .footer-grid      { grid-template-columns: 1fr; gap: 32px; }

  .services-grid    { max-width: 100%; }
}

/* 小さいスマートフォン（480px以下）の追加調整 */
@media (max-width: 480px) {
  .service-card-img { height: 160px; }   /* カード画像の高さをさらに縮小 */
}
