/*
* 詳細ページテンプレ用css
*/
.text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-decimal {
  list-style-type: decimal;
  margin-left: 1.5rem;
}

.page-contents.details {
  gap: 6rem;
  font-feature-settings: 'halt' on;

  & .page-section {
    max-width: 100%;
  }
}

.page-section-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* fv */
.details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.details-header-head {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 44.1875rem;
}

.details-header-text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 35.375rem;
  position: relative;
  z-index: 1;
}

.details-header-image {
  max-width: 32.3125rem;
  margin: 5.375rem 0 0 -6.25rem;
  position: relative;
}

.details-header-button {
  max-width: 26.26375rem;
  font-size: 1.5rem;
  position: relative;
}

@media (768px <= width) {
  .details-header-headline {
    white-space: nowrap;
  }
}

@media (width < 768px) {
  .details-header {
    flex-direction: column;
    gap: 2rem;
  }
  .details-header-head {
    gap: 2rem;
  }
  .details-header-text {
    gap: 2.5rem;
  }
  .details-header-image {
    width: 100%;
    height: 20.5rem;
    margin: 0;
    & img {
      height: 100%;
      object-fit: cover;
      object-position: right top;
    }
  }
  .details-header-button {
    font-size: 1.25rem;
  }
}

.details-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: #F4F8FF;
}

.details-box-container {
  display: flex;
  gap: 2rem;
  & .image {
    width: 48.1061%;
  }

  & .text {
    flex: 1;
  }
}

@media (width < 768px) {
  .details-box-container {
    flex-direction: column;
    gap: 1rem;
    & .image {
      width: 100%;
    }
  }
}

.details-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  padding: 2rem;
  background: #F4F8FF;
  line-height: 1.7;
  text-align: center;
}

.details-price-text {
  font-size: 1.75rem;
  font-weight: 700;
  font-variation-settings: "wght" 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #3648D2;
}

.details-step {
  display: flex;
  gap: 4.25rem;

  & dl {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    background: #F4F4F4;

    & + dl {
      position: relative;
      &::before {
        content: "";
        display: block;
        width: 1rem;
        height: 2.6875rem;
        background: #3648D2;
        clip-path: polygon(0 0, 100% 50%, 0 100%);
        position: absolute;
        left: -2.62rem;
        top: 0;
        bottom: 0;
        margin: auto;
      }
    }

    & dt {
      color: #3648D2;
      font-size: 3rem;
      font-weight: 300;
      font-variation-settings: "wght" 300;
      letter-spacing: 0.02em;
      line-height: 1;
      text-align: center;
      &::after {
        content: "";
        display: block;
        width: 3.125rem;
        height: 0.125rem;
        background: #3648D2;
        margin: .75rem auto 0;
      }

      & span {
        font-size: 1.25rem;
        font-weight: 500;
        font-variation-settings: "wght" 500;
      }
    }

    & dd {
      display: flex;
      flex-direction: column;
      gap: .75rem;
      font-size: 1.25rem;
      font-weight: 700;
      font-variation-settings: "wght" 700;
      letter-spacing: 0.02em;
      line-height: 1.7;
      text-align: center;
      color: #3648D2;

      & .button {
        width: 100%;
        font-size: 0.875rem;
        font-weight: 400;
        font-variation-settings: "wght" 400;
        height: auto;
        padding: 1rem 1.5rem;
        &::after {
          width: 0.9375rem;
          height: .75rem;
        }
      }
    }
  }
}

@media (width < 768px) {
  .details-step {
    flex-direction: column;
    & dl {
      & + dl {
        position: relative;
        &::before {
          width: 2.6875rem;
          height: 1rem;
          clip-path: polygon(0 0, 100% 0, 50% 100%);
          left: 0;
          right: 0;
          top: -2.62rem;
          bottom: auto;
          margin: 0 auto;
        }
      }
    }
  }
}
