/* =========================
HOME ファーストコーナー（H1）調整版
========================= */
.hg-hero{
  --hg-green-900:#1f6a2f;
  --hg-green-700:#2f8a3f;
  --hg-green-100:#f3fbf0;
  --hg-ink:#1f2a1f;
  padding: clamp(28px, 5vw, 56px) 0;
  background: linear-gradient(180deg, var(--hg-green-100), #ffffff);
}

.hg-hero__inner{
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

/* H1：控えめサイズ */
.hg-hero__title{
  margin: 0 0 14px 0;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.45;
  color: var(--hg-green-900);
  letter-spacing: .03em;
  text-align: center;
}

/* リード文：左揃え */
.hg-hero__lead{
  margin: 0;
  max-width: 900px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--hg-ink);
  text-align: left;
}

/* SP微調整 */
@media (max-width: 640px){
  .hg-hero__title{ font-size: 21px; }
  .hg-hero__lead{ font-size: 15px; line-height: 1.85; }
}










/* =========================
ハウスガードが選ばれる理由
配色：グリーン系（イラストに寄せる）
角丸：20pt / 線幅：7pt
========================= */
.hg-reasons{
  --hg-ink:#1f2a1f;
  --hg-green-900:#1f6a2f;
  --hg-green-700:#2f8a3f;
  --hg-green-200:#dff2d9;
  --hg-green-100:#f3fbf0;
  --hg-yellow-100:#fff6c7;

  padding: clamp(32px, 5vw, 64px) 0;
  background: radial-gradient(1200px 500px at 20% 0%, var(--hg-green-100), #ffffff);
  color: var(--hg-ink);
}

.hg-reasons__inner{
  width: min(1300px, calc(100% - 32px));
  margin-inline: auto;
}

.hg-reasons__head{
  margin-bottom: clamp(18px, 3vw, 28px);
  text-align: center;
}

.hg-reasons .hg-reasons__title{
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

.hg-reasons__title{
  display: inline-block;
  margin: 0;
  padding: 0 0 10px 0;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: .04em;
  line-height: 1.2;
  position: relative;
}

.hg-reasons__title::after{
  content:"";
  display:block;
  height: 6px;
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hg-green-700), var(--hg-yellow-100));
  opacity: .9;
}

.hg-reasons__list{
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.hg-reasons__card{
  background: #fff;
  border: 7pt solid var(--hg-yellow-100); /* 線幅 7pt */
  border-radius: 20pt;                  /* 角丸 20pt */
  padding: 18px 16px 16px 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}

.hg-reasons__cardTitle{
  margin: 0 0 10px 0;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  color: var(--hg-green-900);
}

.hg-reasons__figure{
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--hg-green-200), #ffffff);
  border: 2px solid rgba(47,138,63,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hg-reasons__figure img{
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10pt;                  /* 角丸 20pt */
}

.hg-reasons__text{
  margin: 12px 0 0 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px){
  .hg-reasons__list{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .hg-reasons__list{ grid-template-columns: 1fr; }
  .hg-reasons__card{ padding: 16px 14px; }
  .hg-reasons__text{ font-size: 14.5px; }
}


/* =========================
会社概要
========================= */
.hg-company{
  --hg-green-900:#1f6a2f;
  --hg-green-700:#2f8a3f;
  --hg-green-200:#dff2d9;
  --hg-green-100:#f3fbf0;
  padding: clamp(32px, 5vw, 64px) 0;
  background: linear-gradient(180deg, #ffffff, var(--hg-green-100));
}

.hg-company__inner{
  width: min(1000px, calc(100% - 32px));
  margin-inline: auto;
}

.hg-company__head{
  text-align: center;
  margin-bottom: 24px;
}

.hg-company__title{
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
  position: relative;
  display: inline-block;
}

.hg-company__title::after{
  content:"";
  display:block;
  height:6px;
  width:100%;
  margin-top:10px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--hg-green-700), var(--hg-green-200));
}

.hg-company__tableWrap{
  background:#fff;
  border-radius:20px;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
  overflow:hidden;
}

.hg-company__table{
  width:100%;
  border-collapse:collapse;
  font-size:15px;
}

.hg-company__table th,
.hg-company__table td{
  padding:14px 16px;
  border-bottom:1px solid #e6efe4;
  vertical-align:top;
}

.hg-company__table th{
  width:32%;
  background:var(--hg-green-200);
  color:#1f2a1f;
  font-weight:600;
  text-align:left;
}

.hg-company__table td a{
  color:var(--hg-green-700);
  text-decoration:underline;
}

.hg-company__table tr:last-child th,
.hg-company__table tr:last-child td{
  border-bottom:none;
}

/* スマホ */
@media (max-width: 640px){
  .hg-company__table,
  .hg-company__table tbody,
  .hg-company__table tr,
  .hg-company__table th,
  .hg-company__table td{
    display:block;
    width:100%;
  }

  .hg-company__table th{
    background:var(--hg-green-100);
    padding-bottom:6px;
  }

  .hg-company__table td{
    padding-top:6px;
  }
}


/* =========================
施工の流れ（STEP）CSS 正式版（PC：画像は常に左 / 画像枠330px）
========================= */
.hg-steps{
  --hg-ink:#1f2a1f;
  --hg-green-900:#1f6a2f;
  --hg-green-700:#2f8a3f;
  --hg-green-200:#dff2d9;
  --hg-green-100:#f3fbf0;
  --hg-line:#e6efe4;
  padding: clamp(32px, 5vw, 64px) 0;
  background: radial-gradient(1200px 600px at 15% 0%, var(--hg-green-100), #ffffff);
  color: var(--hg-ink);
}

.hg-steps *{ box-sizing: border-box; }

.hg-steps__inner{ width: min(1100px, calc(100% - 32px)); margin-inline: auto; }

.hg-steps__head{ text-align: center; margin-bottom: clamp(18px, 3vw, 28px); }
.hg-steps__title{ margin:0; font-size: clamp(22px, 3vw, 32px); letter-spacing:.04em; line-height:1.2; display:inline-block; position:relative; padding-bottom:10px; }
.hg-steps__title::after{ content:""; display:block; height:6px; width:100%; margin-top:10px; border-radius:999px; background: linear-gradient(90deg, var(--hg-green-700), var(--hg-green-200)); opacity:.95; }
.hg-steps__lead{ margin: 10px 0 0 0; font-size: 15px; line-height: 1.7; }

.hg-steps__list{ list-style:none; margin:0; padding:0; display:grid; gap: clamp(14px, 2vw, 18px); }
.hg-steps__item{ margin:0; }

/* カード：PCは横並び（画像左固定） */
.hg-steps__card{
  position: relative;
  background:#fff;
  border: 2px solid var(--hg-line);
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  padding: 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  overflow: hidden;
}

/* 番号 */
.hg-steps__num{
  position: absolute;
  top: 14px;
  left: 14px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--hg-green-200), #ffffff);
  border: 2px solid rgba(47,138,63,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
}

.hg-steps__num span{
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--hg-green-900);
  font-size: 16px;
}

/* 画像枠：330px固定（PC） */
.hg-steps__media{
  flex: 0 0 330px;
  width: 330px;
  max-width: 330px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--hg-green-100), #ffffff);
  border: 1px solid rgba(47,138,63,.18);
  padding: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* WPのaligncenter等の影響を排除し、枠に合わせて表示 */
.hg-steps__media img{
  display:block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

/* 本文 */
.hg-steps__body{
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 8px;
}

.hg-steps__itemTitle{ margin: 0 0 8px 0; font-size: 20px; line-height: 1.25; color: var(--hg-green-900); }
.hg-steps__text{ margin: 0 0 10px 0; font-size: 15px; line-height: 1.8; }

/* 箇条書き */
.hg-steps__points{ margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hg-steps__points li{ position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
.hg-steps__points li::before{ content:""; position:absolute; left:0; top:.55em; width:8px; height:8px; border-radius:999px; background: var(--hg-green-700); }

/* テーマのデフォルト余白を抑える */
.hg-steps p{ margin-top: 0; }
.hg-steps ul{ margin: 20px; }

/* ====== SP：縦積み（画像は上） ====== */
@media (max-width: 760px){
  .hg-steps__card{ flex-direction: column; }
  .hg-steps__media{ width: 100%; max-width: none; flex-basis: auto; }
  .hg-steps__body{ padding-top: 0; }
}


/* =========================
やさしいメッセージ枠
========================= */
.hg-message{
  padding: 32px 0;
}

.hg-message__inner{
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 24px;
  background: #ffffff;
  border: 6px solid #2f8a3f;           /* 太め枠 */
  border-radius: 28px;                  /* 角丸強め */
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  text-align: left;
}

/* 画像 */
.hg-message__inner img{
  display: block !important;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto 18px auto !important;
}

/* テキスト */
.hg-message__inner p{
  margin: 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: #1f2a1f;
}

/* スマホ対応（左右3px以上確保） */
@media (max-width: 820px){
  .hg-message{
    padding-left: 3px;
    padding-right: 3px;
  }

  .hg-message__inner{
    padding: 18px 16px;
    border-radius: 22px;
  }

  .hg-message__inner p{
    font-size: 15px;
  }
}


/* =========================
Contact Form 7 高品質デザイン（ハウスガード配色）
対象：.hg-cf7 配下のみ
========================= */
.hg-cf7{
  --hg-ink:#1f2a1f;
  --hg-green-900:#1f6a2f;
  --hg-green-700:#2f8a3f;
  --hg-green-200:#dff2d9;
  --hg-green-120:#eef9ea;
  --hg-line:#e6efe4;
  --hg-shadow:0 12px 24px rgba(0,0,0,.10);
  --hg-radius:22px;
  color: var(--hg-ink);
}

.hg-cf7__head{
  max-width: 780px;
  margin: 0 auto 18px auto;
}

.hg-cf7__title{
  margin: 0 0 10px 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  color: var(--hg-green-900);
  letter-spacing: .04em;
}

.hg-cf7__lead{
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.hg-cf7__grid{
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--hg-line);
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

/* フィールド */
.hg-cf7__field{ margin: 0; }
.hg-cf7__field--full{ grid-column: 1 / -1; }

.hg-cf7__label{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--hg-ink);
  margin: 0 0 8px 0;
  font-size: 14px;
}

.hg-cf7__req{
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--hg-green-700);
  padding: 3px 10px;
  border-radius: 999px;
}

/* コントロール枠（CF7はspanで囲うため） */
.hg-cf7__control .wpcf7-form-control-wrap{
  display:block;
}

/* 入力系 */
.hg-cf7 input[type="text"],
.hg-cf7 input[type="email"],
.hg-cf7 input[type="tel"],
.hg-cf7 textarea{
  width: 100% !important;
  border: 2px solid var(--hg-line) !important;
  background: var(--hg-green-120) !important;
  border-radius: 16px !important;
  padding: 12px 12px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--hg-ink) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .2s ease, background-color .2s ease, transform .05s ease;
}

/* テキストエリア */
.hg-cf7 textarea{
  min-height: 150px !important;
  resize: vertical;
}

/* フォーカス */
.hg-cf7 input[type="text"]:focus,
.hg-cf7 input[type="email"]:focus,
.hg-cf7 input[type="tel"]:focus,
.hg-cf7 textarea:focus{
  border-color: var(--hg-green-700) !important;
  background: #fff !important;
}

/* プレースホルダ */
.hg-cf7 input::placeholder,
.hg-cf7 textarea::placeholder{
  color: rgba(31,42,31,.55);
}

/* 送信エリア */
.hg-cf7__actions{
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.hg-cf7__note{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  background: #fff;
  border: 1px dashed rgba(47,138,63,.45);
  border-radius: 16px;
  padding: 12px 14px;
}

/* 送信ボタン */
.hg-cf7__submit{
  width: 100% !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  color: #fff !important;
  background: linear-gradient(180deg, var(--hg-green-700), var(--hg-green-900)) !important;
  box-shadow: 0 10px 20px rgba(31,106,47,.25);
  cursor: pointer;
  transition: transform .08s ease, filter .2s ease;
}

.hg-cf7__submit:hover{ filter: brightness(1.05); }
.hg-cf7__submit:active{ transform: translateY(1px); }

/* CF7 メッセージ */
.hg-cf7 .wpcf7-response-output{
  margin: 14px 0 0 0 !important;
  border-radius: 16px;
  padding: 12px 14px !important;
  border: 2px solid var(--hg-line) !important;
  background: #fff !important;
  font-size: 14px;
  line-height: 1.7;
}

.hg-cf7 .wpcf7-not-valid-tip{
  margin-top: 6px;
  font-size: 13px;
  color: #b00020;
}

.hg-cf7 .wpcf7-spinner{ margin-left: 10px; }

/* SP：左右3px確保＆1カラム */
@media (max-width: 820px){
  .hg-cf7{ padding-left: 3px; padding-right: 3px; }
  .hg-cf7__grid{ grid-template-columns: 1fr; padding: 16px; gap: 12px; }
}


/* =========================
アフターサービス（ページ）CSS 完成版
========================= */
.hg-after{
  --hg-ink:#1f2a1f;
  --hg-green-900:#1f6a2f;
  --hg-green-700:#2f8a3f;
  --hg-green-200:#dff2d9;
  --hg-green-120:#eef9ea;
  --hg-line:#e6efe4;
  --hg-shadow:0 12px 24px rgba(0,0,0,.10);
  --hg-radius:22px;
  padding: clamp(28px, 5vw, 64px) 0;
  background: radial-gradient(1200px 700px at 15% 0%, var(--hg-green-120), #ffffff);
  color: var(--hg-ink);
}

.hg-after *{ box-sizing: border-box; }

.hg-after__inner{
  width: min(980px, calc(100% - 32px));
  margin-inline: auto;
}

/* ===== ヘッダー ===== */
.hg-after__head{ margin-bottom: clamp(18px, 3vw, 28px); }
.hg-after__title{
  margin: 0 0 12px 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  color: var(--hg-green-900);
  letter-spacing: .04em;
}
.hg-after__lead{
  margin: 0;
  font-size: 15.5px;
  line-height: 1.95;
  max-width: 860px;
}

/* ===== カード ===== */
.hg-after__cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.hg-after__card{
  background: #fff;
  border: 2px solid var(--hg-line);
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow);
  padding: 18px;
}

.hg-after__badge{
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hg-green-700), var(--hg-green-900));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.hg-after__badge--alt{
  background: linear-gradient(180deg, #4aa95a, var(--hg-green-700));
}

.hg-after__cardTitle{
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--hg-green-900);
}

.hg-after__text{
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.9;
}

.hg-after__list{
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hg-after__list li{
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.7;
}

.hg-after__list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:10px;
  height:10px;
  border-radius: 4px;
  background: var(--hg-green-700);
}

/* ===== 強調ボックス ===== */
.hg-after__box{
  margin-top: 18px;
  background: #fff;
  border: 6px solid var(--hg-green-700);
  border-radius: 28px;
  box-shadow: var(--hg-shadow);
  padding: 18px;
}

.hg-after__boxTitle{
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--hg-green-900);
}

/* ===== FAQ ===== */
.hg-after__faq{ margin-top: 22px; }
.hg-after__sectionTitle{
  margin: 0 0 12px 0;
  font-size: 22px;
  color: var(--hg-green-900);
}

.hg-after__qa{ display: grid; gap: 10px; }

.hg-after__qabox{
  background: #fff;
  border: 2px solid var(--hg-line);
  border-radius: 18px;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  overflow: hidden;
}

.hg-after__q{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  position: relative;
}

.hg-after__q::-webkit-details-marker{ display: none; }

.hg-after__q::after{
  content:"+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--hg-green-120);
  border: 1px solid rgba(47,138,63,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.hg-after__qabox[open] .hg-after__q::after{ content:"?"; }

.hg-after__a{
  padding: 0 16px 14px 16px;
  font-size: 14.8px;
  line-height: 1.85;
}

/* ===== CTA ===== */
.hg-after__cta{
  margin-top: 22px;
  background: linear-gradient(180deg, var(--hg-green-120), #ffffff);
  border: 2px solid rgba(47,138,63,.20);
  border-radius: 22px;
  padding: 16px;
}

.hg-after__ctaText{
  margin: 0 0 14px 0;
  font-size: 15px;
  line-height: 1.8;
}

/* CTAボタン：PC 50% / SP 縦 */
.hg-after__ctaBtns{
  display: flex;
  gap: 14px;
}

.hg-after__ctaBtns .hg-after__btn{
  flex: 1 1 50%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .03em;
  border: 2px solid rgba(47,138,63,.35);
  background: #fff;
  color: var(--hg-green-900);
}

.hg-after__btn--primary{
  border: none;
  color: #fff;
  background: linear-gradient(180deg, var(--hg-green-700), var(--hg-green-900));
  box-shadow: 0 10px 20px rgba(31,106,47,.22);
}

/* ===== SP ===== */
@media (max-width: 820px){
  .hg-after{
    padding-left: 3px;
    padding-right: 3px;
  }

  .hg-after__cards{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .hg-after__ctaBtns{
    flex-direction: column;
    gap: 12px;
  }

  .hg-after__ctaBtns .hg-after__btn{
    width: 100%;
    min-height: 60px;
    font-size: 17px;
    border-radius: 18px;
  }
}
