@charset "UTF-8";
/* =========================================================
   雨漏り修理LP ベランダ・屋上の雨漏り修理ページ専用スタイル（waterproof）
   共通部分は under-layer.css（工事詳細ページ共通）と common.css。ここはベランダ・屋上ページだけの差分
   PCファースト / ブレークポイント 1280px・960px・568px
   ========================================================= */

/* ===== アイキャッチ：見出しを「ベランダ・屋上の／雨漏り・防水工事」の2行にする ===== */
.waterproof_head_title {
  line-height: 70px;
}

.waterproof_head_title + .detail_head_lead {
  margin-top: -10px;
}

@media only screen and (max-width: 960px) {
  .waterproof_head_title {
    font-size: 18px;
    line-height: 28px;
  }

  .waterproof_head_title + .detail_head_lead {
    margin-top: 0;
  }
}

/* ===== まずはご相談ください：4つ目（2行）の項目は上下に余白を取る ===== */
.waterproof_consult_item_wide {
  padding-top: 20px;
  padding-bottom: 20px;
  line-height: 42px;
}

@media only screen and (max-width: 1280px) {
  .waterproof_consult_item_wide {
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.25;
  }
}

@media only screen and (max-width: 960px) {
  .waterproof_consult_item_wide {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* ===== 防水工事にはどんな種類がある？：見出しと札が横に並ばない幅では札を次の行へ送る ===== */
@media only screen and (max-width: 960px) {
  .waterproof_type_item_head_wrap {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .waterproof_type_item_head_wrap .detail_type_tag {
    white-space: nowrap;
  }
}

/* ===== 防水工事にはどんな種類がある？：まとめ（紺色の横長パネル） ===== */
.waterproof_type_summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(578 / 1200 * 100%);
  grid-template-rows: auto 1fr;
  margin-top: 40px;
  background: #032144;
  border-radius: 10px;
  overflow: hidden;
}

.waterproof_type_summary_title {
  grid-column: 1;
  grid-row: 1;
  padding: 27px 44px 0 42px;
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  color: #ffff0a;
}

.waterproof_type_summary_photo {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
}

.waterproof_type_summary_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.waterproof_type_summary_text {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin: 17px 44px 24px 42px;
  padding: 21px 21px 21px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #333;
  background: #fff;
  border-radius: 10px;
}

@media only screen and (max-width: 1280px) {
  .waterproof_type_summary_title {
    padding: 24px 30px 0;
    font-size: 26px;
    line-height: 40px;
  }

  .waterproof_type_summary_text {
    margin: 16px 30px 24px;
    padding: 16px 18px;
  }
}

@media only screen and (max-width: 960px) {
  .waterproof_type_summary {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    margin-top: 20px;
    border-radius: 5px;
  }

  .waterproof_type_summary_title,
  .waterproof_type_summary_photo,
  .waterproof_type_summary_text {
    grid-column: 1;
    grid-row: auto;
  }

  .waterproof_type_summary_title {
    padding: 20px 15px;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
  }

  .waterproof_type_summary_img {
    position: static;
    display: block;
    height: auto;
    aspect-ratio: 680 / 454;
  }

  .waterproof_type_summary_text {
    margin: 22px 19px 24px;
    padding: 12px;
    font-size: 14px;
    line-height: 20px;
  }
}
