
/* --- ベース設定 --- */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- ファーストビュー全体 --- */
.fv-section-first {
    position: relative;
    width: 100%;
    min-height: 550px;
    /* スマホでの最小の高さ */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景画像設定 */
.fv-background-first {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fv-background-first img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像をエリアいっぱいにトリミングして表示 */
    filter: brightness(0.9);
    /* 少し暗くして文字を見やすく */
}

/* コンテンツ配置エリア */
.fv-container-first {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 960px;
    /* タブレット以上の最大幅制限 */
    margin: 0 auto;
    padding: 40px 0;
}

/* 白いコンテンツボックス */
.fv-content-first {
    background: rgba(255, 255, 255, 0.92);
    /* 少し透けた白 */
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* 中央揃え */
}

/* ロゴ */
.fv-logo-first {
    font-size: 1.2rem;
    font-weight: bold;
    color: #004098;
    /* 信頼の青 */
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid #004098;
}

/* メインタイトル */
.fv-title-first {
    font-size: 1.6rem;
    /* スマホ基準 */
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 20px 0;
    color: #222;
}

.fv-title-first .highlight-first {
    color: #e65c00;
    /* 強調のオレンジ */
    background: linear-gradient(transparent 70%, #ffdfc4 70%);
    /* マーカー線 */
}

.fv-title-first .title-large-first {
    font-size: 1.8rem;
    display: block;
    margin-top: 5px;
}

/* サブタイトル */
.fv-subtitle-first {
    font-size: 0.95rem;
    margin: 0 0 25px 0;
    color: #555;
    text-align: left;
    /* 読みやすさのため左揃え */
    display: inline-block;
    /* 中央配置の中での左揃え */
}

.sp-only-first {
    display: block;
    /* スマホで改行 */
}

/* 特徴リスト */
.fv-features-first {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fv-features-first li {
    background: #004098;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 50px;
    /* 丸いバッジ型 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.fv-features-first li::before {
    content: "✔";
    margin-right: 5px;
    color: #ffcc00;
    /* チェックマークを黄色に */
}

/* --- タブレット以上のレスポンシブ設定 (768px以上) --- */
@media screen and (min-width: 768px) {
    .fv-section-first {
        min-height: 600px;
    }

    .fv-content-first {
        padding: 50px 40px;
        max-width: 600px;
        /* PC/タブレットでは幅を制限して見やすく */
        margin: 0 auto;
        /* 中央配置 */
    }

    .fv-title-first {
        font-size: 2.2rem;
    }

    .fv-title-first .title-large-first{
        font-size: 2.8rem;
    }

    .fv-subtitle-first {
        font-size: 1.1rem;
        text-align: center;
        /* 画面が広い場合は中央揃えに戻す */
    }

    .sp-only-first {
        display: inline;
        /* PCでは改行しない */
    }

    .fv-features-first {
        gap: 15px;
    }

    .fv-features-first li {
        font-size: 1rem;
        padding: 10px 20px;
    }
}
/* ------------------------------------------------------ */


/* --- お悩み共感セクション全体 --- */
.problem-section-first {
  background-color: #f4f4f4; /* 少しグレーにしてFVと区別 */
  padding-top: 50px;
  padding-bottom: 0; /* 下部は解決エリアとくっつけるため0 */
  position: relative;
}

/* タイトル */
.problem-title-first {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
  line-height: 1.4;
}

.title-sub-first {
  font-size: 1rem;
  color: #666;
  font-weight: normal;
}

.highlight-red-first {
  color: #d32f2f; /* 悩み＝赤文字で強調 */
  border-bottom: 3px solid rgba(211, 47, 47, 0.3);
  font-size: 1.7rem;
}

/* --- 吹き出しリスト（重要） --- */
.problem-list-first {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 50px auto; /* 下に余白 */
  padding: 0 15px;
}

.problem-item-first {
  display: flex;
  align-items: center;
  /* 少し右上がりに配置してリズムを作る */
}

/* チェックマーク */
.check-icon-first {
  background: #d32f2f;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0; /* 縮まないように */
}

/* 吹き出し本体 */
.bubble-first {
  background: #fff;
  padding: 15px 20px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  flex-grow: 1; /* 横幅いっぱいに */
  border: 2px solid #e0e0e0;
}

/* 吹き出しのしっぽ（左向きの三角） */
.bubble-first::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #e0e0e0; /* 枠線と同じ色 */
}
.bubble-first::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff; /* 背景と同じ色 */
}

.bubble-text-first {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.bubble-text-first strong {
  color: #d32f2f; /* 悩みの核心部分を赤く */
  background: linear-gradient(transparent 70%, #ffcccc 70%); /* 薄い赤マーカー */
}

/* アイコン（絵文字など） */
.person-icon-first {
  font-size: 2rem;
  margin-left: 10px;
}

/* --- 解決への誘導エリア --- */
.solution-area-first {
  background: #004098; /* ブランドカラーの青 */
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  /* 上部を三角形にする装飾 */
  clip-path: polygon(0 0, 50% 10%, 100% 0, 100% 100%, 0 100%);
  margin-top: -20px; /* 少し重ねる */
}

.solution-arrow-first {
  font-size: 2rem;
  color: #ffcc00; /* 黄色の矢印 */
  margin-top: 10px;
  margin-bottom: 10px;
  animation: bounce 1.5s infinite; /* 上下にぷるぷる動くアニメーション */
}

.solution-text-first {
  font-size: 1.1rem;
  line-height: 1.6;
}

.brand-name-first {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.solution-strong-first {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffcc00; /* 黄色で強調 */
  display: block;
  margin-top: 5px;
}

/* 矢印のアニメーション設定 */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- PC・タブレット(768px以上)のレイアウト --- */
@media screen and (min-width: 768px) {
  .problem-list-first {
    flex-direction: row; /* 横並びにする */
    gap: 20px;
    max-width: 1000px;
  }
  
  .problem-item-first {
    flex-direction: column; /* アイコンを上に、吹き出しを下に */
    flex: 1; /* 幅を均等に */
    text-align: center;
  }

  .check-icon-first {
    margin: 0 0 10px 0;
  }

  /* 吹き出しのしっぽを「上向き」に変更 */
  .bubble-first::before {
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid #e0e0e0;
    border-top: none;
  }
  .bubble-first::after {
    left: 50%;
    top: -7px;
    transform: translateX(-50%);
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid #fff;
    border-top: none;
  }

  .person-icon-first {
    display: none; /* PCではすっきりさせるために絵文字アイコンを消す（お好みで） */
  }

  /* 解決エリアのPC調整 */
  .solution-area-first {
    padding: 60px 20px;
    clip-path: polygon(0 0, 50% 15%, 100% 0, 100% 100%, 0 100%);
  }
  
  .solution-strong-first {
    font-size: 2.5rem;
  }
}
/* --------------------------------------------------- */

/* --- 強みセクション全体 --- */
.strength-section-first {
  background-color: #fff;
  padding: 80px 0;
}

/* ヘッダー周り */
.section-header-first {
  text-align: center;
  margin-bottom: 50px;
}

.section-sub-first {
  font-family: 'Georgia', serif; /* 英語はおしゃれなフォントで */
  color: #e65c00;
  font-style: italic;
  margin: 0;
  font-size: 1.1rem;
}

.text-gold-first {
  color: #bfa500; /* 落ち着いたゴールド色 */
}

.section-line-first {
  width: 60px;
  height: 3px;
  background: #e65c00;
  margin: 15px auto 0;
}

/* --- カードレイアウト --- */
.strength-grid-first {
  display: flex;
  flex-direction: column; /* スマホは縦並び */
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- カードデザイン --- */
.strength-card-first {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px 25px 30px; /* 上の余白を多めに（番号のため） */
  position: relative;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-bottom: 4px solid #004098; /* 下線で統一感 */
}

/* 番号（POINT 01）のデザイン */
.strength-number-first {
  position: absolute;
  top: -15px; /* カードの上に飛び出させる */
  left: 50%;
  transform: translateX(-50%);
  background: #004098;
  color: #fff;
  font-weight: bold;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  letter-spacing: 0.05em;
}

/* 強み3（地域密着）だけ色を変えるなど遊び心を入れてもOK */
.strength-card-first:nth-child(3) .strength-number-first {
  background: #e65c00;
}

/* アイコンエリア */
.strength-icon-first {
  font-size: 4rem; /* 絵文字サイズ */
  margin-bottom: 15px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 見出し */
.strength-head-first {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.head-sub-first {
  font-size: 0.9rem;
  color: #e65c00;
  display: block;
  margin-bottom: 5px;
  font-weight: normal;
}

/* 説明文 */
.strength-desc-first {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  text-align: left; /* 読みやすさのため左揃え */
}

/* --- ダメ押しCTAエリア --- */
.strength-cta-first {
  text-align: center;
  margin-top: 60px;
  background: #f9faff;
  padding: 30px;
  border-radius: 8px;
}
.strength-cta-first p {
  margin-bottom: 15px;
  font-weight: bold;
  color: #004098;
}
.cta-button-first {
  display: inline-block;
  background: #e65c00;
  color: #fff;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 0 #bf4d00; /* 立体的なボタン */
  transition: transform 0.2s;
}
.cta-button-first:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* --- PC・タブレット(768px以上)のレイアウト --- */
@media screen and (min-width: 768px) {
  .strength-grid-first {
    flex-direction: row; /* 横並びにする */
    align-items: stretch; /* 高さを揃える */
  }

  .strength-card-first {
    flex: 1; /* 均等な幅に */
    padding: 50px 30px 40px;
  }

  .strength-desc-first {
    font-size: 1rem;
  }
}
/* -------------------------------------------------------------- */


/* --- 商品セクション全体 --- */
.product-section-first {
  background-color: #fff; /* 商品を目立たせるため白背景 */
  padding: 80px 0;
}

.highlight-yellow-first {
  background: linear-gradient(transparent 60%, #fff176 60%);
  font-weight: bold;
}

/* --- カードグリッド --- */
.product-grid-first {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr; /* スマホは1列 */
  max-width: 1000px;
  margin: 0 auto 40px;
}

/* --- 商品カード本体 --- */
.product-card-first {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.product-card-first:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* おすすめカードを目立たせる */
.recommend-card-first {
  border: 2px solid #e65c00; /* 枠線をオレンジに */
  transform: scale(1.02); /* 少し大きく */
  z-index: 1;
}

/* --- バッジ（限定・イチオシ） --- */
.badge-limit-first, .badge-recommend-first {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  font-weight: bold;
  padding: 5px 15px;
  font-size: 0.85rem;
  z-index: 2;
  border-bottom-right-radius: 8px;
}
.badge-limit-first {
  background: #555;
}
.badge-recommend-first {
  background: #e65c00; /* オレンジ */
  font-size: 1rem;
  padding: 8px 20px;
}

/* --- 画像エリア --- */
.product-img-first {
  width: 100%;
  height: 200px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-first img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain; /* 商品全体が見えるように */
}

/* --- 情報エリア --- */
.product-info-first {
  padding: 20px;
  text-align: center;
}

.product-name-first {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 5px 0;
  color: #333;
  line-height: 1.4;
}

.product-spec-first {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 15px;
}

/* 価格表示 */
.product-price-first {
  background: #fdfdfd;
  border: 1px dashed #ccc;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.price-label-first {
  font-size: 0.8rem;
  color: #004098;
  font-weight: bold;
  margin: 0;
}

.price-value-first {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 5px 0 0 0;
  line-height: 1;
  font-family: 'Arial', sans-serif;
}
.text-red-first {
  color: #d32f2f; /* 赤文字 */
}

.yen-first {
  font-size: 1rem;
}

.price-tax-first {
  font-size: 0.7rem;
  color: #999;
  margin: 0;
  text-align: right;
}

/* ボタン */
.product-btn-first {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: #555;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: opacity 0.2s;
}
.btn-red-first {
  background: #d32f2f; /* おすすめは赤ボタン */
  box-shadow: 0 4px 0 #b71c1c;
}
.btn-red-first:active {
  transform: translateY(4px);
  box-shadow: none;
}
.product-btn-first:hover {
  opacity: 0.8;
}


/* --- 「もっと見る」エリア --- */
.more-product-area-first {
  text-align: center;
  margin-top: 20px;
  padding: 30px;
  background: #f5f5f5;
  border-radius: 8px;
}
.more-product-area-first p {
  margin-bottom: 15px;
  font-weight: bold;
  color: #333;
}
.btn-outline-first {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #004098;
  color: #004098;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  background: #fff;
}
.btn-outline-first:hover {
  background: #004098;
  color: #fff;
}

/* --- PC・タブレット(768px以上)のレイアウト --- */
@media screen and (min-width: 768px) {
  .product-grid-first {
    grid-template-columns: repeat(3, 1fr); /* 3列表示 */
    align-items: center; /* 高さを中央揃え */
  }
  
  /* おすすめカードを少し大きく見せる */
  .recommend-card-first {
    transform: scale(1.1);
  }
}



/* -------------------------------------------------------------- */
/* --- 料金セクション全体 --- */
.price-section-first {
  background-color: #f9faff; /* 薄い青系で清潔感 */
  padding: 80px 0;
}

/* 料金表の外枠 */
.price-container-first {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* カテゴリごとの枠組み */
.price-category-first {
  background: #fff;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-top: 4px solid #004098; /* 上に青いアクセント */
}

/* カテゴリタイトル */
.category-title-first {
  font-size: 1.2rem;
  color: #004098;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin: 0 0 20px 0;
  font-weight: bold;
}

/* リスト本体 */
.price-list-first {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各行のデザイン */
.price-item-first {
  display: flex;
  justify-content: space-between;
  align-items: baseline; /* 文字の下ラインを揃える */
  margin-bottom: 15px;
  border-bottom: 1px dotted #ccc; /* 点線の下線 */
  padding-bottom: 5px;
}
.price-item-first:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* 左側：サービス名 */
.item-name-first {
  font-size: 0.95rem;
  color: #333;
  font-weight: bold;
  position: relative;
  background: #fff; /* 点線の上に文字が乗るように背景を白に */
  padding-right: 10px;
  z-index: 1;
}

/* 補足（配管4mなど） */
.item-note-first {
  display: block;
  font-size: 0.75rem;
  color: #777;
  font-weight: normal;
  margin-top: 2px;
}

/* 右側：価格 */
.item-price-first {
  font-size: 0.9rem;
  color: #333;
  text-align: right;
  background: #fff;
  padding-left: 10px;
  z-index: 1;
  white-space: nowrap; /* 価格が改行されないように */
}

/* 数字の強調 */
.price-yen-first {
  font-size: 1.4rem;
  color: #d32f2f; /* 赤色で強調 */
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  margin-right: 2px;
}

.price-note-first {
  font-size: 0.75rem;
  color: #777;
}


/* --- 見積もり無料ボックス --- */
.free-estimate-box-first {
  max-width: 800px;
  margin: 40px auto 0;
  background: #fff9c4; /* 目立つ薄い黄色 */
  border: 2px solid #fbc02d; /* 濃い黄色枠 */
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column; /* スマホは縦 */
  align-items: center;
  gap: 15px;
  text-align: center;
}

.free-icon-first {
  background: #fbc02d;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.free-text-first h4 {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  color: #333;
}
.free-text-first .highlight-first {
  color: #d32f2f;
  font-size: 1.4rem;
  font-weight: bold;
}
.free-text-first p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* --- PC・タブレット(768px以上)のレイアウト --- */
@media screen and (min-width: 768px) {
  .price-container-first {
    flex-direction: row; /* 横並び（2カラム）にする */
    align-items: flex-start;
  }

  .price-category-first {
    flex: 1; /* 幅を均等に */
  }

  .free-estimate-box-first {
    flex-direction: row; /* 横並び */
    text-align: left;
    padding: 30px;
  }

  .free-icon-first {
    margin-right: 10px;
  }
}
/* --------------------------------------------------------------- */

/* --- 施工事例セクション全体 --- */
.case-section-first {
  background-color: #fff;
  padding: 80px 0;
}

.case-grid-first {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px; /* 事例ごとの間隔 */
}

/* --- カードデザイン --- */
.case-card-first {
  border-bottom: 1px solid #eee;
  padding-bottom: 50px;
}
.case-card-first:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* タイトル（○○市 A様邸...） */
.case-title-first {
  font-size: 1.1rem;
  color: #333;
  border-left: 5px solid #004098; /* 左に青い線 */
  padding-left: 15px;
  margin: 0 0 20px 0;
  font-weight: bold;
}

/* --- 写真エリア（Before/After） --- */
.ba-images-first {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 5px; /* 写真の間の隙間 */
}

.ba-item-first {
  position: relative;
  width: 48%; /* 画面の半分弱 */
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 画像比率の固定（スマホ写真をきれいに見せる） */
.ba-item-first img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3; /* 一般的なスマホ写真の比率 */
  object-fit: cover; /* 枠に合わせてトリミング */
  display: block;
}

/* ラベル（BEFORE / AFTER） */
.label-before-first, .label-after-first {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.7rem;
  font-weight: bold;
  color: #fff;
  padding: 3px 10px;
  border-bottom-right-radius: 6px;
  z-index: 1;
}

.label-before-first {
  background: #777; /* グレー */
}
.label-after-first {
  background: #e65c00; /* オレンジ（目立つ色） */
}

/* 真ん中の矢印 */
.arrow-icon-first {
  font-size: 1.2rem;
  color: #ccc;
  font-weight: bold;
}

/* --- お客様の声（吹き出し） --- */
.voice-box-first {
  background: #f0f7ff; /* 非常に薄い青 */
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.voice-icon-first {
  font-size: 2rem; /* 顔文字サイズ */
  line-height: 1;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  flex-shrink: 0;
}

.voice-text-first p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* もっと見るリンク */
.more-link-area-first {
  text-align: center;
  margin-top: 40px;
}
.more-link-first {
  color: #004098;
  text-decoration: none;
  border-bottom: 1px solid #004098;
  padding-bottom: 2px;
  font-weight: bold;
  transition: opacity 0.2s;
}
.more-link-first:hover {
  opacity: 0.7;
}

/* --- PC・タブレット(768px以上)のレイアウト --- */
@media screen and (min-width: 768px) {
  .case-grid-first {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列表示にする */
    gap: 40px;
  }

  .case-card-first {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    height: 100%; /* 高さを揃える */
    box-sizing: border-box; /* paddingを含めて計算 */
  }

  .ba-item-first img {
     /* PCでは少し高さを抑えてもいいかも */
     aspect-ratio: 4 / 3;
  }
}
/* ----------------------------------------------------------------- */



/* --- FAQセクション全体 --- */
.faq-section-first {
  background-color: #f9faff; /* 背景を少し変えてリズムを作る */
  padding: 80px 0;
}

.faq-container-first {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px; /* 質問ごとの間隔 */
}

/* --- アコーディオン本体（detailsタグ） --- */
.faq-item-first {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: all 0.3s;
}

/* 開いた時に枠線を青くする */
.faq-item-first[open] {
  border-color: #004098;
}

/* --- 質問部分（summaryタグ） --- */
.faq-question-first {
  display: flex; /* 横並び */
  align-items: center;
  padding: 20px;
  cursor: pointer; /* 指カーソルにする */
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  list-style: none; /* デフォルトの三角印を消す */
  position: relative;
}

/* デフォルトの三角印を消す（一部ブラウザ対策） */
.faq-question-first::-webkit-details-marker {
  display: none;
}

/* Qアイコン */
.q-icon-first {
  color: #004098;
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

/* --- プラス/マイナスのアニメーションアイコン --- */
.toggle-icon-first {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* 横棒 */
.toggle-icon-first::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #004098;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

/* 縦棒 */
.toggle-icon-first::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: #004098;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}

/* 開いた状態（open属性がある時）の変化 */
/* 縦棒を90度回して横棒と重ねる（一本線に見せる）ことで「－」にする */
/* あるいは45度回して「×」にするのが最近の主流 */

/* 今回は「×」になるように回転させます */
.faq-item-first[open] .toggle-icon-first::before {
  transform: translateY(-50%) rotate(45deg);
  background-color: #d32f2f; /* 赤色に変える */
}
.faq-item-first[open] .toggle-icon-first::after {
  transform: translateX(-50%) rotate(45deg);
  background-color: #d32f2f;
}

/* --- 回答部分 --- */
.faq-answer-first {
  background: #f8f8f8; /* 薄いグレー */
  padding: 20px;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  animation: fadeIn 0.3s ease; /* ふわっと表示 */
}

/* 回答内の強調 */
.faq-answer-first strong {
  color: #d32f2f;
  background: linear-gradient(transparent 70%, #ffcccc 70%);
}

/* ふわっと表示のアニメーション定義 */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}



/* ----------------------------------------------------------------- */
/* --- 共通コンテナ --- */
.container-first {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 0;
}

.section-title-first {
  text-align: center;
  font-size: 1.6rem;
  color: #004098;
  margin-bottom: 10px;
  font-weight: bold;
}
.section-desc-first {
  text-align: center;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: #666;
}

/* --- グリッドレイアウト --- */
.service-grid-first {
  display: grid;
  gap: 25px;
  grid-template-columns: 1fr; /* スマホ：1列 */
}

/* --- カードデザイン本体 --- */
.service-card-first {
  background: #fff;
  border-radius: 12px; /* 角丸 */
  overflow: hidden; /* 画像が角丸からはみ出ないように */
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* ホバー時の動き（少し浮く） */
.service-card-first:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- 画像エリア設定（重要） --- */
.card-img-wrapper-first {
  width: 100%;
  height: 200px; /* 画像エリアの高さ固定 */
  position: relative;
  overflow: hidden;
}

.card-img-wrapper-first img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像の比率を維持したままエリアを埋める */
  transition: transform 0.5s ease;
}

/* ホバー時に画像がじわっと拡大 */
.service-card-first:hover .card-img-wrapper-first img {
  transform: scale(1.1);
}

/* カテゴリータグ（「メイン事業」などのバッジ） */
.category-tag-first {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e65c00;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
}

/* --- テキストエリア設定 --- */
.card-body-first {
  padding: 20px;
  flex-grow: 1; /* 高さ揃えのため */
}

.card-body-first h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 0 0 10px 0;
  font-weight: bold;
  border-bottom: 2px solid #ffcc00;
  display: inline-block;
}

.card-body-first p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* リスト（エアコン用） */
.card-list-first {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f4f8ff; /* 薄い青背景 */
  padding: 10px;
  border-radius: 6px;
}

.card-list-first li {
  font-size: 0.9rem;
  color: #004098;
  font-weight: bold;
  margin-bottom: 5px;
}
.card-list-first li:last-child {
  margin-bottom: 0;
}
.card-list-first li::before {
  content: "✔";
  margin-right: 5px;
  color: #e65c00;
}

/* --- PC・タブレット(768px以上)のレイアウト --- */
@media screen and (min-width: 768px) {
  .service-grid-first {
    grid-template-columns: repeat(3, 1fr); /* 3列表示 */
  }

  /* メインカード（エアコン）だけ特別扱い */
  .main-card-first {
    grid-column: 1 / -1; /* 横幅いっぱいに広げる */
    flex-direction: row; /* 横並びにする */
    align-items: center;
    border: 2px solid #004098; /* 青枠で強調 */
  }

  .main-card-first .card-img-wrapper-first {
    width: 50%;
    height: 100%;
    min-height: 300px;
  }

  .main-card-first .card-body-first {
    width: 50%; /* テキスト幅50% */
    padding: 40px;
  }

  .main-card-first h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .main-card-first p {
    font-size: 1rem;
  }
}
/* ------------------------------------------------------- */


.senior-support-section-first {
  background: #fff8e1; /* 優しいクリーム色 */
  padding: 60px 0;
}
.support-list-first {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
}
.support-item-first {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.support-icon-first {
  font-size: 2.5rem;
}
.support-item-first h3 {
  margin: 0 0 5px 0;
  color: #d35400; /* 暖かみのあるオレンジ */
  font-size: 1.1rem;
}
.support-item-first p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}
.message-box-first {
  background: #fff;
  border: 2px solid #d35400;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-weight: bold;
  color: #333;
}

@media screen and (min-width: 768px) {
  .support-list-first {
    flex-direction: row;
  }
}