@charset "UTF-8";
/* =========================================================
   雨漏り修理LP 施工の流れページ専用スタイル（flow）
   共通部分は under-layer.css（下層ページ共通）と common.css（.flow の余白・波紋）。ここは施工の流れページだけの差分と新規部品
   PCファースト / ブレークポイント 1280px・960px・568px
   ========================================================= */

/* ===== 施工の流れ：セクションの余白（下層ページなのでパンくずの直下から始める。TOP の .flow の余白を上書き） ===== */
.flow_page {
  padding: 7px 0 93px;
}

.flow_page::before {
  top: 26px;
}

@media only screen and (max-width: 960px) {
  .flow_page {
    padding: 34px 0 31px;
  }

  .flow_page::before {
    top: 16px;
  }
}

/* ===== 施工の流れ：ステップ一覧（水色の枠に白いカード、カードの間に下向きの三角） ===== */
.flow_page_list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 56px;
  padding: 60px 50px;
  background: var(--c_light);
  border-radius: 10px;
}

.flow_page_item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 443px;
  column-gap: 28px;
  min-height: 295px;
  background: #fff;
  border-radius: 10px;
}

/* 次のステップへの矢印（最後のカード以外） */
.flow_page_item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 1;
  border-style: solid;
  border-width: 52px 30.5px 0;
  border-color: var(--c_orange) transparent transparent;
  transform: translateX(-50%);
}

.flow_page_item_body {
  padding: 20px 0 30px 40px;
}

.flow_page_item_num {
  display: flex;
  align-items: center;
  width: 221px;
  height: 62px;
  margin-left: -40px;
  padding-left: 37px;
  color: #fff;
  background: var(--c_orange);
}

.flow_page_item_num_label {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.flow_page_item_num_value {
  margin-left: 0.25em;
  font-family: var(--f_num);
  font-size: 56px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.flow_page_item_title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 21px 0 0 3px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c_navy);
}

.flow_page_item_title img {
  flex-shrink: 0;
  width: 43px;
}

.flow_page_item_text {
  margin-top: 17px;
  font-size: 16px;
  line-height: 24px;
  color: #333;
}

.flow_page_item_img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 10px 10px 0;
}

@media only screen and (max-width: 1280px) {
  .flow_page_list {
    padding: 40px 30px;
  }

  .flow_page_item {
    grid-template-columns: minmax(0, 1fr) 40%;
    column-gap: 24px;
  }

  .flow_page_item_body {
    padding-left: 30px;
  }

  .flow_page_item_num {
    margin-left: -30px;
    padding-left: 30px;
  }

  .flow_page_item_title {
    font-size: 30px;
  }
}

@media only screen and (max-width: 960px) {
  /* 水色の枠は画面幅いっぱい */
  .flow_page_list {
    gap: 20px;
    margin: 31px -17px 0;
    padding: 30px 17px;
    border-radius: 0;
  }

  .flow_page_item {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 20px 20px 22px;
  }

  .flow_page_item:not(:last-child)::after {
    border-width: 26px 15px 0;
  }

  .flow_page_item_body {
    display: contents;
  }

  /* SP は写真が先頭。番号は写真の左上に重ねる */
  .flow_page_item_img {
    order: -1;
    height: auto;
    aspect-ratio: 600 / 296;
    object-position: 50% 30%;
    border-radius: 5px;
  }

  .flow_page_item_num {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 110px;
    height: 36px;
    margin: 0;
    padding-left: 11px;
    /* カードの左上の角に合わせて、左上だけ丸める */
    border-radius: 10px 0 0 0;
  }

  .flow_page_item_num_label {
    font-size: 24px;
  }

  /* SP は「Flow」と番号の間を空けない（番号が帯からはみ出さないように） */
  .flow_page_item_num_value {
    margin-left: 2px;
    font-size: 32px;
    letter-spacing: -0.06em;
  }

  .flow_page_item_title {
    justify-content: center;
    gap: 5px;
    margin: 20px 0 0;
    font-size: 24px;
    line-height: 1.25;
  }

  .flow_page_item_title img {
    width: 30px;
  }

  .flow_page_item_text {
    margin-top: 20px;
    font-size: 15px;
    line-height: 20px;
  }
}

@media only screen and (max-width: 568px) {
  .flow_page_item_title {
    font-size: 21px;
  }
}
