.c-service-desc {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 300;
  gap: 22px;
  line-height: 1.71;
}

.c-service__title {
  border-bottom: 1px solid #d9d8da;
  padding-bottom: 16px;
  width: 100%;
}

.p-service-top__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.p-service-top__head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.66;
}

.p-service-top__img {
  aspect-ratio: 869/400;
  height: 300px;
  margin-top: 30px;
  overflow: hidden;
  width: 100%;
}

.p-service-contents {
  margin-top: 93px;
}
.p-service-contents__list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-inline: auto;
  margin-top: 40px;
  max-width: 450px;
}

.p-service-contents__item {
  display: flex;
  flex-direction: column-reverse;
  gap: 30px;
}

.p-service-contents__left h1,
.p-service-contents__left h2,
.p-service-contents__left h3,
.p-service-contents__left h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.55;
  margin-top: 10px;
}
.p-service-contents__left .c-service-desc {
  margin-top: 30px;
}

.p-service-contents__left-num {
  color: #9b9b9b;
  font-family: "Prompt", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.p-service-contents__right {
  aspect-ratio: 400/370;
  overflow: hidden;
  width: 100%;
}

.p-service-intro {
  margin-top: 100px;
}
.p-service-flow {
  margin-top: 100px;
}
.p-service-flow .c-service-desc {
  margin-top: 30px;
  max-width: 832px;
}

.p-service-flow__list {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-inline: auto;
  margin-top: 25px;
  max-width: 100%;
  row-gap: 20px;
}

.p-service-flow__item {
  align-items: center;
  background-color: #fff;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 80px;
  min-height: 210px;
  padding-block: 23px;
  padding-inline: 10px;
  position: relative;
  width: 100%;
}
.p-service-flow__item:not(:nth-of-type(1))::after {
  background: url(../images/arrow_green.svg) no-repeat center center/contain;
  content: "";
  height: 21.2px;
  left: -30px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20.1px;
}
.p-service-flow__item p {
  align-items: center;
  background-color: #44423E;
  border-radius: 3px;
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 600;
  height: 32px;
  justify-content: center;
  text-align: center;
  width: 32px;
}
.p-service-flow__item h1,
.p-service-flow__item h2,
.p-service-flow__item h3,
.p-service-flow__item h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  writing-mode: vertical-lr;
}

.p-service-footer__title {
  border-bottom: 1px solid #d9d8da;
  border-top: 1px solid #d9d8da;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-block: 20px;
  padding-inline: 20px;
}
.p-service-footer__title > p {
  color: #ffffff;
  font-size: 45px;
  font-weight: 500;
  line-height: 1;
}

.p-service-footer__box {
  display: flex;
  justify-content: center;
  padding-block: 40px;
  padding-inline: 45px 35px;
}
.p-service-footer__box:nth-of-type(2) {
  border-bottom: 1px solid #d9d8da;
  border-top: 1px solid #d9d8da;
}

.p-service-footer__link {
  max-width: 500px;
  position: relative;
}
.p-service-footer__link:hover {
  opacity: 1;
}
.p-service-footer__link:hover .p-service-footer__img img {
  transform: scale(1.05);
}

.p-service-footer__label {
  color: #9b9b9b;
  font-family: "Prompt", sans-serif;
  font-size: 14px;
  font-weight: 500;
  left: -25px;
  line-height: 1;
  position: absolute;
  top: 0;
  writing-mode: vertical-lr;
}

.p-service-footer__contents {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}
.p-service-footer__contents h1,
.p-service-footer__contents h2,
.p-service-footer__contents h3,
.p-service-footer__contents h4 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
}
.p-service-footer__contents .c-service-desc {
  color: #333;
  margin-top: 10px;
}

.p-service-footer__img {
  aspect-ratio: 260/290;
  border-radius: 5px;
  height: 290px;
  overflow: hidden;
  width: 100%;
}
.p-service-footer__img img {
  transition: transform 0.3s ease;
}

.p-service-footer__btn {
  background-color: #43423f;
  border-radius: 3px;
  flex-shrink: 0;
  height: 30px;
  margin-left: auto;
  margin-top: 20px;
  position: relative;
  width: 30px;
}
.p-service-footer__btn::after {
  background: url(../images/arrow_white.svg) no-repeat center center/contain;
  content: "";
  height: 11px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
}
@media (min-width: 768px) {
  .p-service-contents__list {
    max-width: 100%;
  }
  .p-service-contents__item {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
  .p-service-contents__left .c-service-desc {
    margin-top: 20px;
  }
  .p-service-flow__list {
    display: grid;
    gap: 70px;
    grid-template-columns: repeat(5, 1fr);
    max-width: 100%;
  }
  .p-service-flow__item {
    gap: 30px;
    max-width: 100%;
    min-height: 302px;
  }
  .p-service-flow__item:not(:nth-of-type(1))::after {
    left: -45px;
  }
  .p-service-flow__item {
    max-width: 100%;
  }
  .p-service-footer__boxs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .p-service-footer__box {
    padding-inline: 30px 20px;
  }
  .p-service-footer__box:nth-of-type(2) {
    border-bottom: none;
    border-left: 1px solid #d9d8da;
    border-right: 1px solid #d9d8da;
    border-top: none;
  }
  .p-service-footer__link {
    max-width: 260px;
    width: 100%;
  }
  .p-service-footer__img {
    height: auto;
  }
}
@media (min-width: 1024px) {
  .p-service {
    margin-top: -24px;
  }
  .p-service-top__head {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
  .p-service-top__head .c-service-desc {
    max-width: 441px;
    width: 100%;
  }
  .p-service-top__img {
    height: auto;
    margin-top: 60px;
  }
  .p-service-contents__list {
    gap: 80px;
    margin-top: 70px;
  }
  .p-service-contents__left h1,
  .p-service-contents__left h2,
  .p-service-contents__left h3,
  .p-service-contents__left h4 {
    margin-top: 30px;
  }
  .p-service-contents__left .c-service-desc {
    margin-top: 46px;
  }
  .p-service-contents__right {
    max-width: 400px;
  }
  .p-service-intro {
    margin-top: 110px;
  }
  .p-service-flow {
    margin-top: 110px;
  }
  .p-service-flow__list {
    gap: 70px;
    margin-right: 36px;
    margin-top: 50px;
  }
  .p-service-footer__title {
    gap: 7px;
    padding-block: 35px;
    padding-inline: 50px;
  }
  .p-service-footer__title > p {
    font-size: 60px;
  }
  .p-service-footer__box {
    padding-bottom: 70px;
    padding-inline: 0;
    padding-inline: 30px;
    padding-top: 90px;
  }
  .p-service-footer__contents h1,
  .p-service-footer__contents h2,
  .p-service-footer__contents h3,
  .p-service-footer__contents h4 {
    margin-top: 23px;
  }
  .p-service-footer__contents .c-service-desc {
    margin-top: 16px;
  }
  .p-service-footer__btn {
    height: 38px;
    margin-top: 26px;
    width: 38px;
  }
}
@media (min-width: 1366px) {
  .p-service-contents__left {
    max-width: 385px;
    width: 100%;
  }
  .p-service-footer__link {
    max-width: 66%;
  }
}