/**
 * Project - Service Child
 * サービス子ページ
 */

.p-serviceNavWrapper {
  padding-block: 20px;
  padding-inline: 1rem;
  background: linear-gradient(
    270deg,
    rgba(131, 163, 200, 0.6) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  backdrop-filter: blur(2px);
}
.p-serviceNavList {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
html:not(:has(#relatedPost)) .p-serviceNavList li:has(a[href="#relatedPost"]) {
  display: none;
}

.p-serviceNavButton {
  font-size: 14px;
  font-weight: bold;
  width: fit-content;
  min-height: 32px;
  padding-inline: 8px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  background-color: var(--color-bg-white);

  &::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("../../../images/icon_double_arrow_down.svg");
    background-size: contain;
  }
}

.p-serviceHeadingSideBorder {
  font-size: 45px;
  line-height: 1.4;
  padding-left: 40px;
  position: relative;
  margin-bottom: 32px;

  @media screen and (max-width: 767px) {
    font-size: 28px;
    padding-left: 24px;
  }

  &::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: calc(100% - 13px);
    background-color: var(--color-bg-black);
    position: absolute;
    top: 50%;
    left: 0;
    translate: 0 -50%;

    @media screen and (max-width: 767px) {
      width: 10px;
      height: calc(100% - 12px);
    }
  }

  &.--small {
    font-size: 28px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    padding-left: 24px;

    @media screen and (max-width: 767px) {
      font-size: 22px;
    }

    &::before {
      width: 10px;
      height: calc(100% - 12px);
    }
  }

  &.--xsmall {
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding-left: 21px;
    margin-bottom: 10px;

    &::before {
      width: 9px;
      height: calc(100% - 9px);
    }
  }
}

.p-serviceHeadingCheckIcon {
  font-size: 28px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-bottom: 40px;
  padding-left: 48px;
  position: relative;

  @media screen and (max-width: 767px) {
    font-size: 22px;
    margin-bottom: 24px;
  }

  &::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url("../../../images/icon_check_round_outline_brown.svg");
    background-size: contain;
    background-position: center;
    position: absolute;
    top: 50%;
    left: 0;
    translate: 0 -50%;
  }
}

.p-serviceChildIntroduction {
  padding-block: 96px;

  section + section {
    margin-top: 80px;
  }
}


.p-serviceChildIntroductionText {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.02em;

  p + p {
    margin-top: 1.6em;
  }
}

.p-serviceContentsBox {
  background-color: var(--color-bg-white);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.05),
    0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 8px 8px 0 rgba(0, 0, 0, 0.02);

  &.--column {
    display: grid;
    gap: 16px;
  }

  .u-list-largeDot {
    font-size: 18px;
    display: grid;
    gap: 8px;
  }
}

.p-serviceContentsBox + .p-serviceContentsBox {
  margin-top: 30px;
}

.p-serviceContentsBoxTitle {
  font-size: 24px;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.p-serviceBoxDetails {
  padding: 40px;

  @media screen and (max-width: 767px) {
    padding: 0;
  }

  section + section {
    margin-top: 24px;
  }

  .u-list-largeDot {
    font-size: 18px;
    display: grid;
    gap: 8px;
  }
}

.p-serviceBoxImage {
  margin-top: 32px;

  @media screen and (max-width: 767px) {
    margin-top: 24px;
  }
}

.p-serviceFeature {
  padding-block: 56px;
}

.p-serviceFeatureList {
  max-width: 980px;
  margin-inline: auto;
  list-style: none;
  display: grid;
  gap: 80px;

  @media screen and (max-width: 767px) {
    gap: 40px;
  }
}

.p-serviceFeatureItem {
  display: flex;
  flex-direction: row-reverse;
  gap: 56px;

  @media screen and (max-width: 767px) {
    gap: 24px;
  }
}

.p-serviceFeatureImage {
  width: 200px;
  flex-shrink: 0;

  @media screen and (max-width: 767px) {
    width: 120px;
  }
}

.p-serviceFeatureTitle {
  font-size: 24px;
  margin-bottom: 24px;

  @media screen and (max-width: 767px) {
    font-size: 18px;
  }
}

.p-serviceTableWrapper {
  margin-top: 40px;
  overflow: auto;

  &.--introduction {
    margin-bottom: 30px;
  }
}
.p-serviceCompareTable {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  table-layout: fixed;

  th,
  td {
    padding: 20px 24px;
    height: 120px;
    border: 1px solid rgb(0 0 0 / 10%);
    vertical-align: middle;
    line-height: 1.7;
    text-align: left;
  }

  thead th {
    font-weight: bold;
    background-color: #e6e6e6;
    font-size: 24px;
    vertical-align: middle;

    @media screen and (max-width: 767px) {
      font-size: 20px;
    }
  }

  tbody th {
    font-weight: bold;
    background-color: #fbf5e0;
    font-size: 24px;
    vertical-align: middle;

    @media screen and (max-width: 767px) {
      font-size: 20px;
    }
  }

  td {
    background-color: #fff;
    font-size: 18px;

    @media screen and (max-width: 767px) {
      font-size: 16px;
    }
  }

  .p-serviceCompareTable__cellTitle {
    font-weight: bold;
  }
}

.p-serviceFeatureText {
  font-size: 20px;
  letter-spacing: 0.02em;

  @media screen and (max-width: 767px) {
    font-size: 16px;
  }

  p + p {
    margin-top: 1em;
  }
}

/* FAQ アコーディオン */
.p-faqList {
  margin-top: 40px;
}

.p-faqItem {
  &::after {
    content: "";
    display: block;
    border-bottom: 1px solid rgb(0 0 0);
    margin-left: calc(48px + 30px);

    @media screen and (max-width: 767px) {
      margin-left: calc(48px + 16px);
    }
  }
}

.p-faqButton {
  color: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
  padding-block: 24px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;

  @media screen and (max-width: 767px) {
    gap: 16px;
    padding-block: 20px;
  }
}

.p-faqButtonIcon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background-color: rgb(0 0 0 / 60%);
  border: 1px solid rgb(0 0 0 / 50%);
  border-radius: 8px;
  position: relative;
  transition: background-color 0.25s ease;

  &::before,
  &::after {
    content: "";
    position: absolute;
    background-color: #fff;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
  }

  &::before {
    width: 16px;
    height: 2px;
  }

  &::after {
    width: 2px;
    height: 16px;
    transform-origin: center;
    transition: transform 0.25s ease;
  }
}

.p-faqButton[aria-expanded="true"] .p-faqButtonIcon::after {
  transform: scaleY(0);
}

.p-faqQuestion {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.6;

  @media screen and (max-width: 767px) {
    font-size: 16px;
  }
}

.p-faqLabel {
  font-size: 28px;
  font-weight: normal;
  flex-shrink: 0;
}

.p-faqAnswer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;

  &.is-open {
    grid-template-rows: 1fr;
  }
}

.p-faqAnswerInner {
  overflow: hidden;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-left: calc(48px + 24px);
  font-size: 18px;
  line-height: 1.7;

  @media screen and (max-width: 767px) {
    padding-left: calc(48px + 16px);
    font-size: 16px;
  }
}

.p-faqAnswerText {
  padding-bottom: 24px;

  @media screen and (max-width: 767px) {
    padding-bottom: 20px;
  }
}

.p-serviceFee {
  background-color: var(--color-bg-white);
}

.p-serviceFeeSection {
  padding: 20px;
}
.p-serviceFeeSection + .p-serviceFeeSection {
  border-top: 1px solid;
}

.p-serviceFeeTitle {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.02em;
  padding-left: 21px;
  margin-bottom: 10px;
  position: relative;

  &::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: calc(100% - 9px);
    background-color: var(--color-bg-black);
    position: absolute;
    top: 50%;
    left: 0;
    translate: 0 -50%;
  }
}

.p-serviceFeeContents {
  padding-left: 24px;

  > * {
    margin-bottom: 0.5em;
  }
}

.p-serviceStep {
  list-style: none;
  padding-block: 28px;
  display: grid;
  gap: 94px;

  li + li {
    position: relative;

    &::before {
      content: "";
      display: inline-block;
      width: 62px;
      height: 62px;
      background-image: url("../../../images/icon_arrow_bottom_yellow.png");
      background-size: contain;
      background-position: center;
      position: absolute;
      top: -16px;
      left: 50%;
      translate: -50% -100%;
    }
  }
}

.p-serviceStepTitle {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  padding-left: 48px;
  position: relative;

  @media screen and (max-width: 767px) {
    font-size: 22px;
  }

  &::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url("../../../images/icon_check_round_outline_black.svg");
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 0;
    translate: 0 -50%;
  }
}

.p-serviceStepText {
  font-size: 24px;
  background-color: #f2f2f2;
  border-radius: 10px;
  padding: 40px;

  @media screen and (max-width: 767px) {
    font-size: 16px;
    padding: 24px;
  }
}
