@charset "UTF-8";
/* =========================================================
   雨漏り修理LP 雨漏り修理・工事一覧ページ専用スタイル（service）
   PCファースト / ブレークポイント 1280px・960px・568px
   ※アイキャッチ・パンくず・CTA は common.css
   ========================================================= */

/* ===== 雨漏り修理・工事一覧 ===== */
.service_page {
  position: relative;
  padding-bottom: 41px;
  overflow: hidden;
}

/* 背景の波紋（装飾） */
.service_page::before {
  content: "";
  position: absolute;
  top: -28px;
  left: calc(50% + 155px);
  width: 479px;
  height: 479px;
  background: url("../img/top/ripple.webp") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.service_page .container {
  position: relative;
}

.service_page .sec_title {
  margin-top: 10px;
}

/* --- 導入 --- */
.service_page_intro {
  display: grid;
  grid-template-columns: 348px 1fr;
  column-gap: 53px;
  align-items: start;
  margin-top: 43px;
}

.service_page_photo {
  display: block;
  width: 100%;
  aspect-ratio: 348 / 232;
  object-fit: cover;
  border-radius: 10px;
}

.service_page_heading {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: 10px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: #032144;
}

.service_page_heading img {
  flex-shrink: 0;
  width: 46px;
}

.service_page_heading_em {
  color: #ec750a;
}

.service_page_text {
  margin-top: 22px;
  font-size: 16px;
  line-height: 24px;
  color: #515963;
}

/* --- 工事カード --- */
.service_page_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 30px;
  margin-top: 48px;
}

.service_card {
  width: calc((100% - 60px) / 3);
  max-width: 380px;
}

.service_card_link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 423px;
  overflow: hidden;
  background: #fff;
  border: 4px solid #e6eaef;
  border-radius: 10px;
  transition: opacity 0.2s;
}

.service_card_link:hover {
  opacity: 0.85;
}

.service_card_img {
  display: block;
  width: 100%;
  aspect-ratio: 372 / 182;
  object-fit: cover;
}

.service_card_title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: #ffea00;
  background: #032144;
}

.service_card_title img {
  flex-shrink: 0;
}

.service_card_text {
  margin: 14px 20px 20px;
  font-size: 15px;
  line-height: 21px;
  color: #515963;
}

.service_card_more {
  position: relative;
  display: block;
  margin: auto 20px 0;
  padding: 17px 0 19px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #0b3260;
  text-align: center;
  border-top: 1px solid #e6eaef;
}

.service_card_more::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  border-style: solid;
  border-width: 8.5px 0 8.5px 15px;
  border-color: transparent transparent transparent #0b3260;
  transform: translateY(-50%);
}

.service_page_note {
  margin-top: 36px;
  font-size: 12px;
  line-height: 16px;
  color: #6e757f;
  text-align: right;
}

@media only screen and (max-width: 1280px) {
  .service_page::before {
    left: auto;
    right: -120px;
  }

  .service_page_intro {
    grid-template-columns: 300px 1fr;
    column-gap: 40px;
  }

  .service_page_list {
    gap: 24px 20px;
  }

  .service_card {
    width: calc((100% - 40px) / 3);
  }

  .service_card_title {
    font-size: 20px;
  }
}

@media only screen and (max-width: 960px) {
  .service_page {
    padding: 23px 0 30px;
  }

  .service_page::before {
    top: 0;
    right: -112px;
    width: 240px;
    height: 240px;
  }

  .service_page .sec_title {
    margin-top: 12px;
  }

  .service_page_intro {
    display: block;
    margin-top: 42px;
  }

  .service_page_photo {
    aspect-ratio: 680 / 453;
    border-radius: 5px;
  }

  .service_page_heading {
    gap: 10px;
    margin-top: 23px;
    font-size: 20px;
  }

  .service_page_heading img {
    width: 23px;
  }

  .service_page_text {
    margin-top: 14px;
    font-size: 15px;
    line-height: 21px;
  }

  .service_page_list {
    display: block;
    margin-top: 48px;
  }

  .service_card {
    width: auto;
    max-width: none;
  }

  .service_card + .service_card {
    margin-top: 30px;
  }

  .service_card_link {
    min-height: 0;
    border-width: 3px;
    border-radius: 9px;
  }

  .service_card_title {
    gap: 9px;
    min-height: 52px;
    font-size: 21px;
    line-height: 25px;
  }

  .service_card_title img {
    width: auto;
    height: 16px;
  }

  .service_card_text {
    margin: 14px 18px 22px;
    font-size: 15px;
    line-height: 19px;
  }

  .service_card_more {
    margin: 0 18px;
    padding: 15px 0 18px;
    font-size: 14px;
    line-height: 18px;
  }

  .service_card_more::after {
    border-width: 8px 0 8px 14px;
  }

  .service_page_note {
    margin-top: 10px;
    font-size: 14px;
    line-height: 17px;
    text-align: left;
  }
}
