@charset "utf-8";

.p-service {
  margin-top: 110px;
}

.p-service__inner,
.p-spot__inner {
  max-width: 1226px;
  padding: 0 30px 0 276px;

  @media (width < 1120px) {
    padding: 0 20px 0 200px;
  }

  @media (width < 768px) {
    padding: 0 20px;
  }
}

.p-consulting {
}

.p-consulting__flex {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 50px;

  @media (width < 600px) {
    flex-direction: column;
  }
}

.p-consulting__body {
  display: flex;
  flex-direction: column;
  gap: 25px;
  letter-spacing: 0.06em;
}

.p-consulting__img {
  width: 46%;
  max-width: 424px;
  aspect-ratio: 424/320;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;

  @media (width < 600px) {
    width: 100%;
  }
}

.p-how-to {
  margin-top: 101px;

  .p-how-to-card:not(:last-of-type)::after {
    content: "";
    position: absolute;
    background: #92bf76;
    width: 12px;
    height: 20px;
    clip-path: polygon(0 0, 0% 100%, 100% 50%);
    right: -21px;
    top: 50%;
    transform: translateY(-50%);

    @media (width < 1120px) {
      right: -16px;
    }

    @media (width < 600px) {
      width: 20px;
      height: 12px;
      clip-path: polygon(0 0, 50% 100%, 100% 0%);
      top: auto;
      bottom: -21px;
      left: 50%;
      transform: translateX(-50%);
    }
  }

  .p-how-to-card:nth-of-type(2)::after {
    background: #7ebb93;
  }

  .p-how-to-card:nth-of-type(3)::after {
    background: #5fb38d;
  }
}

.p-how-to__cards {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;

  @media (width < 1120px) {
    gap: 16px;
  }

  @media (width < 600px) {
    gap: 30px;
    display: flex;
    flex-direction: column;
  }
}

.p-how-to-card {
  width: 100%;
  background: #f8f8f8;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  padding: 30px 13px 26px;
  position: relative;

  @media (width < 1120px) {
    padding: 30px 8px 26px;
  }

  @media (width < 600px) {
    padding: 30px 13px 26px;
  }
}

.p-how-to-card__img {
  display: block;
  width: 100%;
  max-width: 140px;
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.p-how-to-card__heading {
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.p-how-to-card__text {
  margin-top: 3px;
  letter-spacing: 0.78px;
  font-size: 13px;
}

.p-scope {
  margin-top: 100px;

  .p-how-to-card {
    background: #f6ffdd;
  }

  .p-how-to-card__heading {
    color: var(--color-green);
  }
}

.p-scope__lists {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.p-scope__list {
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  padding: 15px 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.p-service-works {
  margin-top: 100px;

  section {
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;

    @media (width < 1120px) {
      gap: 20px;
      grid-template-columns: repeat(2, 1fr);
    }

    @media (width < 600px) {
      display: flex;
      flex-direction: column;
    }
  }
}

.p-works__link:hover {
  opacity: 0.7;
}

.p-works__item-head {
  width: 100%;
  aspect-ratio: 285/200;
  border-radius: 6px;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.p-works__item-body {
  margin-top: 15px;
}

.p-works__item-title {
  margin-top: 15px;
  letter-spacing: 0.05em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  min-height: 70px;
}

.p-service-works__btn {
  margin: 56px auto 0;
}

.p-contract {
  padding: 90px 0 110px;
}

.p-contract__body {
  margin-top: 34px;
}

.p-contract__btn {
  margin: 56px auto 0;
}

.p-spot {
  padding: 100px 0 173px;
  background: var(--color-bg);
}

.p-spot__groups {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 102px;
}

.p-spot__group {
}

.p-spot__subheading {
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 10px;
  width: 100%;
  padding: 13px 0 13px 44px;
  position: relative;
  color: #00132b;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.p-spot__subheading::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 15px;
  width: 8px;
  height: 60%;
  background: var(--color-l-green);
}

.p-spot__group:not(:first-of-type) .p-spot__subheading::before {
  background: var(--color-green);
}

.p-spot-main {
  margin-top: 50px;
  display: flex;
  align-items: start;
  gap: 50px;

  @media (width < 1120px) {
    gap: 20px;
  }

  @media (width < 600px) {
    flex-direction: column;
  }
}

.p-spot-main__img {
  width: 50%;
  max-width: 446px;
  aspect-ratio: 446/297;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;

  @media (width < 600px) {
    width: 100%;
  }
}

.p-spot-main__body {
}

.p-spot-main__text {
  display: flex;
  flex-direction: column;
  gap: 34px;
  letter-spacing: 0.06em;
}

.p-spot-main__btn {
  margin-top: 36px;
  width: 100%;
  max-width: 300px;
}

.p-spot__list-title {
  margin-top: 47px;
  color: #00132b;
  font-size: 20px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  letter-spacing: 0.06em;
}

.p-spot__list-title::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--color-l-green);
  border-radius: 3px;
}

.p-spot__group:not(:first-of-type) .p-spot__list-title::before {
  background: var(--color-green);
}

.p-spot__lists {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
}

.p-spot-list {
  border-bottom: 1px solid #d9d9d9;
  padding: 20px 0 17px;
  display: flex;
  align-items: center;
}

.p-spot-list:first-of-type {
  border-top: 1px solid #d9d9d9;
}

.p-spot-list__head {
  width: 40%;
  min-width: 200px;
  font-weight: 600;
  font-size: 16px;
  color: #a1b569;
  padding-right: 10px;
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px dashed #d9d9d9;
  padding-left: 6px;
  letter-spacing: 0.06em;

  @media (width < 768px) {
    font-size: 14px;
    min-width: 140px;
  }

  p {
    display: flex;
    flex-wrap: wrap;
  }
}

.p-spot__group:not(:first-of-type) .p-spot-list__head {
  color: var(--color-green);
}

.p-spot-list__text {
  padding: 16px 0;
  color: #555555;
  font-weight: 600;
  margin-left: auto;
  max-width: 442px;
  padding-left: 20px;
  line-height: 2.2;
  letter-spacing: 0.06em;

  @media (width < 768px) {
    font-size: 13px;
  }
}
