@charset "UTF-8";
/* =========================================================
   雨漏り修理LP 保証・アフターサービスページ専用スタイル（after-service）
   アイキャッチ・パンくず・導入（.page_intro）は under-layer.css、CTA は common.css、会社情報は common.css
   PCファースト / ブレークポイント 1280px・960px・568px
   ========================================================= */

/* ===== 保証・アフターサービス ===== */
.after_service {
  position: relative;
  padding: 2px 0 70px;
  overflow: hidden;
}

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

.after_service .container {
  position: relative;
}

/* 導入（under-layer.css の .page_intro）の上の余白を調整 */
.after_service .page_intro {
  margin-top: 41px;
}

@media only screen and (max-width: 960px) {
  .after_service {
    padding: 28px 0 40px;
  }

  .after_service::before {
    top: 12px;
    left: auto;
    right: -102px;
    width: 240px;
    height: 240px;
  }

  .after_service .page_intro {
    margin-top: 30px;
  }

  .after_service .page_intro_title {
    line-height: 30px;
    text-align: center;
  }

  .after_service .page_intro_img {
    margin-top: 20px;
    aspect-ratio: 679 / 383;
  }
}

/* ===== 保証・アフターサービス：盾アイコン付きの見出し ===== */
.after_service_title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 58px;
  font-size: 36px;
  font-weight: 700;
  line-height: 48px;
  color: var(--c_navy);
}

.after_service_title img {
  flex-shrink: 0;
  width: 80px;
}

.after_service_title em {
  font-size: 42px;
  font-style: normal;
  color: var(--c_orange);
}

@media only screen and (max-width: 1280px) {
  .after_service_title {
    font-size: 32px;
  }

  .after_service_title em {
    font-size: 38px;
  }
}

@media only screen and (max-width: 960px) {
  .after_service_title {
    justify-content: flex-start;
    gap: 7px;
    margin-top: 31px;
    font-size: 18px;
    line-height: 24px;
  }

  .after_service_title img {
    width: 40px;
  }

  .after_service_title_first {
    font-size: 20px;
  }

  .after_service_title em {
    font-size: 21px;
  }
}

/* ===== 保証・アフターサービス：2枚のカード（最長10年保証・施工後のご相談） ===== */
.after_service_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 42px;
}

.after_service_card {
  position: relative;
  overflow: hidden;
  background: var(--c_cream);
  border: 1px solid #bde1e6;
  border-radius: 10px;
}

.after_service_card_img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 580 / 388;
  object-fit: cover;
}

/* 写真の左下に重ねる紺の帯（白フチ文字は common.css の .txt_stroke） */
.after_service_card_label {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 322px;
  max-width: 100%;
  height: 88px;
  padding-left: 21px;
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  color: var(--c_navy2);
  white-space: nowrap;
  background: rgba(16, 48, 95, 0.8);
}

.after_service_card_label img {
  flex-shrink: 0;
  width: 49px;
}

.after_service_card_label em {
  font-size: 36px;
  font-style: normal;
  color: #d81f2a;
}

.after_service_card_label_wide {
  gap: 14px;
  width: 470px;
  height: 81px;
  padding-left: 19px;
}

.after_service_card_label_wide img {
  width: 50px;
}

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

@media only screen and (max-width: 1280px) {
  .after_service_list {
    gap: 30px;
  }

  .after_service_card_label {
    font-size: 24px;
  }

  .after_service_card_label em {
    font-size: 30px;
  }

  .after_service_card_label_wide {
    width: 410px;
  }
}

@media only screen and (max-width: 960px) {
  .after_service_list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
  }

  .after_service_card {
    border-radius: 5px;
  }

  .after_service_card_label {
    gap: 6px;
    width: 190px;
    height: 44px;
    padding-left: 11px;
    font-size: 18px;
    line-height: 22px;
  }

  .after_service_card_label img {
    width: 25px;
  }

  .after_service_card_label em {
    font-size: 24px;
  }

  .after_service_card_label_wide {
    gap: 7px;
    width: 295px;
    height: 41px;
    padding-left: 10px;
  }

  .after_service_note {
    margin-top: 20px;
    padding-left: 1em;
    font-size: 14px;
    line-height: 18px;
    text-indent: -1em;
    color: #999;
  }
}

/* ===== 保証・アフターサービス：スタッフ写真付きのメッセージ（黄色の枠） ===== */
.after_service_msg {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  grid-template-areas:
    "pic head"
    "pic text";
  grid-template-rows: auto 1fr;
  column-gap: 38px;
  margin-top: 57px;
  padding: 40px 46px 0 50px;
  background: #fffed3;
  border-radius: 10px;
}

/* PC はスタッフ写真を枠の下端に揃え、上は枠の上端から7pxまで伸ばす */
.after_service_msg_pic {
  grid-area: pic;
  align-self: end;
  margin-top: -33px;
}

.after_service_msg_img {
  display: block;
  width: 100%;
  height: auto;
}

.after_service_msg_head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 16px;
}

.after_service_msg_head img {
  flex-shrink: 0;
  width: 68px;
}

.after_service_msg_title {
  font-size: 30px;
  font-weight: 700;
  line-height: 44px;
  color: var(--c_navy);
}

.after_service_msg_title em {
  font-style: normal;
  color: var(--c_orange);
}

.after_service_msg_text {
  grid-area: text;
  margin-top: 24px;
  padding-bottom: 36px;
  font-size: 16px;
  line-height: 24px;
}

@media only screen and (max-width: 1280px) {
  .after_service_msg {
    column-gap: 30px;
    padding-right: 30px;
  }

  .after_service_msg_title {
    font-size: 26px;
    line-height: 38px;
  }

  .after_service_msg_text .br-pc {
    display: none;
  }
}

@media only screen and (max-width: 960px) {
  .after_service_msg {
    grid-template-columns: 94px minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "pic text";
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 22px;
    margin-top: 30px;
    padding: 20px 20px 22px;
    border-radius: 5px;
  }

  .after_service_msg_pic {
    align-self: start;
    margin-top: 0;
  }

  .after_service_msg_head {
    gap: 10px;
  }

  .after_service_msg_head img {
    width: 42px;
  }

  .after_service_msg_title {
    font-size: 18px;
    line-height: 22px;
  }

  .after_service_msg_text {
    margin-top: 0;
    padding-bottom: 0;
    font-size: 15px;
    line-height: 20px;
  }
}
