/* p-service
---------------------------------------------------------------------------- */
.p-service {
  padding-block: 7rem;
}

.p-service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4.4rem;
  margin-top: 4rem;
}

.p-service-item {
  position: relative;
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: 0;
}

.p-service-item-img {
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 575/245;
}
.p-service-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.p-service-item-num {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 7rem;
  background-color: #052b61;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-family: "Noto Serif JP";
  color: #fff;
  position: absolute;
  top: 23rem;
  left: 2rem;
}

.p-service-item-body {
  border: 1px solid #dbdbdc;
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
  padding-block: 2.3rem 3rem;
  padding-inline: 2.5rem;
  background-color: #fff;
}

.p-service-item-ttl {
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-family: "Noto Serif JP";
  color: #052b61;
  padding-left: 6.9rem;
}

.p-service-item-txt {
  font-size: 1.8rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
  font-weight: 500;
  margin-top: 2.1rem;
}

@media screen and (max-width: 767px) {
  .p-service {
    padding-block: 5.3333333333vw;
  }
  .p-service-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 5.3333333333vw;
    margin-top: 5.3333333333vw;
  }
  .p-service-item {
    box-shadow: 0 0 4vw rgba(0, 0, 0, 0.1);
  }
  .p-service-item-img {
    border-radius: 2.6666666667vw 2.6666666667vw 0 0;
  }
  .p-service-item-num {
    width: 13.3333333333vw;
    height: 16vw;
    font-size: 5.3333333333vw;
    top: 34.6666666667vw;
    left: 5.3333333333vw;
  }
  .p-service-item-body {
    border-radius: 0 0 2.6666666667vw 2.6666666667vw;
    padding-block: 5.3333333333vw 6.6666666667vw;
    padding-inline: 5.3333333333vw;
  }
  .p-service-item-ttl {
    font-size: 6.4vw;
    padding-left: 16vw;
  }
  .p-service-item-txt {
    font-size: 4.2666666667vw;
    margin-top: 4vw;
  }
}
/* p-flow
---------------------------------------------------------------------------- */
.p-flow {
  padding-block: 7rem;
}

.p-flow-list {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.p-flow-item {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 4;
  gap: 0;
  align-items: center;
  padding-block: 1.4rem;
  padding-inline: 4rem 2rem;
  border: 1px solid #dbdbdc;
  position: relative;
  background-color: #fff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}

.p-flow-item::before {
  --width: 4rem;
  --height: 2rem;
  --theta: atan2(var(--height), calc(var(--width) / 2));
  content: "";
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  width: var(--width);
  height: calc(var(--width) / 2 * tan(var(--theta)));
  background-color: #052b61;
  position: absolute;
  bottom: -10%;
  left: 50%;
  translate: -50% 100%;
  z-index: 1;
}

.p-flow-item:last-of-type {
  border-bottom: 1px solid #dbdbdc;
}
.p-flow-item:last-of-type::before {
  display: none;
}

.p-flow-item-num {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #052b61;
  font-family: "Noto Serif JP";
  margin-right: 3.5rem;
  width: max-content;
}
.p-flow-item-num span {
  font-size: 2.4rem;
}

.p-flow-item-img {
  width: 8rem;
  aspect-ratio: 1;
  margin-right: 3.5rem;
}
.p-flow-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.p-flow-item-ttl {
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-family: "Noto Serif JP";
  color: #052b61;
  margin-right: 4rem;
}

.p-flow-item-txt {
  font-size: 1.8rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .p-flow {
    padding-block: 10.6666666667vw;
  }
  .p-flow-list {
    margin-top: 5.3333333333vw;
    gap: 8vw;
  }
  .p-flow-item {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: span 3;
    gap: 0;
    align-items: center;
    padding-block: 3.7333333333vw;
    padding-inline: 4.8vw;
    border: 1px solid #dbdbdc;
    position: relative;
    background-color: #fff;
    box-shadow: 0 0 2.6666666667vw rgba(0, 0, 0, 0.1);
  }
  .p-flow-item::before {
    --width: calc(30/375*100vw);
    --height: calc(15/375*100vw);
    --theta: atan2(var(--height), calc(var(--width) / 2));
    content: "";
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    width: var(--width);
    height: calc(var(--width) / 2 * tan(var(--theta)));
    background-color: #052b61;
    position: absolute;
    bottom: -5%;
    left: 50%;
    translate: -50% 100%;
    z-index: 1;
  }
  .p-flow-item:last-of-type {
    border-bottom: 1px solid #dbdbdc;
  }
  .p-flow-item:last-of-type::before {
    display: none;
  }
  .p-flow-item-num {
    font-size: 4.8vw;
    margin-right: 0;
  }
  .p-flow-item-num span {
    font-size: 5.3333333333vw;
  }
  .p-flow-item-img {
    width: 13.3333333333vw;
    margin-right: 4vw;
  }
  .p-flow-item-ttl {
    font-size: 6.4vw;
    line-height: 1.3;
    margin-right: 0;
  }
  .p-flow-item-txt {
    font-size: 4.2666666667vw;
    grid-column: span 3;
    margin-top: 2.6666666667vw;
    white-space: nowrap;
  }
}
