@charset "UTF-8";

/* ===== QUESTION: よくあるご質問 ===== */
.question {
  margin-top: 90px;

  .question__layout {
    position: relative;
    max-width: 1440px;
    margin-inline: auto;
    padding-left: 70px;
    padding-right: 70px;
    z-index: 1;

    .question__list {
      padding: 60px 56px;
      display: grid;
      gap: 24px;

      .question__item {
        position: relative;
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--shadow-card);
        overflow: hidden;
        cursor: pointer;

        .question__header {
          position: relative;
          display: grid;
          grid-template-columns: auto minmax(0, 1fr) auto;
          align-items: center;
          gap: 19px;
          padding: 24px 26px;

          /* 番号バッジ */
          .question__badge {
            display: grid;
            width: 48px;
            height: 48px;
            place-items: center;
            line-height: 50px;
            font-feature-settings: "tnum";
            font-family: var(--font-din-2014);
            font-weight: 700;
            font-size: 22px;
            color: #fff;
            border-radius: 50px;
            background: var(--color-secondary);
          }

          /* 質問文 */
          .question__q {
            margin: 0;
            line-height: 1.4;
            letter-spacing: 1px;
            font-size: var(--text-xl-pc);
            color: var(--color-secondary, #1d2433);
          }

          .toggle__arrow {
            position: relative;
            width: 48px;
            height: 48px;
            margin: 0;
          }
        }

        .question__body {
          padding: 0 80px 24px 26px;
          display: grid;
          gap: 12px;

          .question__a {
            margin: 0;
            line-height: 1.6;
            letter-spacing: 1.6px;
            font-size: var(--text-l-pc);
            font-weight: 500;
            color: var(--color-text);
          }

          /* タグ */
          .question__tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 0;
            padding: 0;
            list-style: none;

            .question__tag {
              padding: 5px 12px 4px;
              font-size: 12px;
              line-height: 1.2;
              border-radius: 50px;
              background: var(--color-gray-60);
              color: var(--color-base-black);
              white-space: nowrap;
            }
          }
        }
      }
    }
  }
}

@media (max-width: 790px) {
  .question {
    margin-top: 70px;

    .question__layout {
      max-width: 100%;
      padding-left: 15px;
      padding-right: 15px;

      .question__list {
        padding: 32px 0;

        .question__item {
          .question__header {
            gap: 10px;
            padding: 15px 10px;

            /* 番号バッジ */
            .question__badge {
              width: 40px;
              height: 40px;
              line-height: 42px;
              font-size: 18px;
            }

            /* 質問文 */
            .question__q {
              font-size: var(--text-h5-sp);
            }

            .toggle__arrow {
              width: 40px;
              height: 40px;
            }
          }

          .question__body {
            padding: 0 10px 15px;

            .question__a {
              font-size: clamp(12px, 4vw, 16px);
            }

            /* タグ */
            .question__tags {
              .question__tag {
                font-size: 12px;
              }
            }
          }
        }
      }
    }
  }
}

/* ===== CONTACT-FORM: お問い合わせフォーム ===== */
.contact-form {
  position: relative;
  width: 100%;
  isolation: isolate;
  inset: 0;
  margin: 130px 0 160px;

  .contact-form__layout {
    /* フォーム */
    .cfm-card {
      margin-top: 68px;
      padding: 53px 70px;
      background: #fff;
      border-radius: 24px;
      box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

      .cfm-form {
        width: 100%;

        .cfm-grid {
          display: block;
          font-size: var(--text-l-pc);

          .cfm-row {
            display: grid;
            grid-template-columns: 270px 1fr;
            align-items: baseline;
            gap: 16px;
            padding: 22px 0;
            letter-spacing: 1.2px;
            border-bottom: 1px solid #d9d9d9;

            .cfm-label {
              display: flex;
              align-items: center;
              gap: 14px;
              font-weight: 500;
              white-space: nowrap;

              .cfm-badge {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                height: 20px;
                padding: 3px 16px;
                letter-spacing: 0;
                font-weight: 300;
                font-size: var(--text-tags);
                color: #fff;
                border-radius: 4px;
                background: var(--color-dark-gray);

                &.cfm-badge--req {
                  background: var(--color-strong);
                  color: #fff;
                }
              }

              p {
                display: flex;
                align-items: center;
                gap: 14px;
                color: #1a1a1a;
                margin: 0;

                &.required {
                  &::before {
                    content: "必須";
                    background: var(--color-strong);
                  }
                }

                &::before {
                  content: "任意";
                  vertical-align: middle;
                  display: inline-flex;
                  align-items: center;
                  justify-content: center;
                  height: 20px;
                  padding: 3px 17px;
                  letter-spacing: 0.5px;
                  font-weight: 300;
                  font-size: var(--text-tags);
                  color: #fff;
                  border-radius: 4px;
                  background: var(--color-dark-gray);
                }
              }
            }

            .cfm-field {
              position: relative;
              display: flex;
              flex-wrap: wrap;
              font-weight: 500;

              .cfm-input,
              .cfm-textarea,
              .cfm-field select {
                width: 100%;
                display: block;
                padding: 15px 20px;
                border: 1px solid #d9d9d9;
                font-size: 16px;
                line-height: 1.3;
                background-color: #fdfdfc;
                font-family: var(--font-noto-sans-jp);
                color: var(--color-dark-gray);

                &::placeholder {
                  color: #808080;
                  letter-spacing: 0.1px;
                  opacity: 0.7;
                }
              }

              .cfm-textarea {
                resize: vertical;
                min-height: 160px;
              }

              .cfm-error {
                display: block;
                width: 100%;
                margin: 6px 0 0;
                line-height: 1.6;
                font-weight: 400;
                font-size: var(--text-m-pc);
                color: #ec3814;
              }

              .cfm-select {
                position: relative;
                width: 300px;
              }

              .cfm-select select {
                appearance: none;
                background-color: #fff;
                padding-right: 42px;
                letter-spacing: 1px;

                option {
                  letter-spacing: 0;
                }
              }

              .cfm-select::after {
                content: "▶";
                position: absolute;
                right: 25px;
                top: 50%;
                font-size: 13px;
                color: var(--color-dark-gray);
                transform: translateY(-50%);
                transform: translateY(-50%) rotate(90deg);
                pointer-events: none;
              }

              .cfm-check {
                display: flex;
                align-items: center;
                gap: 8px;
                width: calc(33.333% - 100px);
                box-sizing: border-box;
                gap: 10px;
                width: 240px;
                user-select: none;
                cursor: pointer;

                &:nth-child(2) {
                  width: 400px;
                }

                input {
                  position: absolute;
                  inline-size: 1px;
                  block-size: 1px;
                  margin: -1px;
                  padding: 0;
                  border: 0;
                  clip: rect(0 0 0 0);
                  clip-path: inset(50%);
                  overflow: hidden;

                  &:checked + .cfm-checkbox::after {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background: no-repeat center/80%
                      url("/assets/img/icon_check.svg");
                  }
                }

                .cfm-checkbox {
                  inline-size: 24px;
                  block-size: 24px;
                  border: 1px solid #ccc;
                  background-color: #fff;
                  display: inline-block;
                  position: relative;
                  cursor: pointer;
                  transition: border-color 0.2s, background-color 0.2s;
                }

                .cfm-check-label {
                  white-space: nowrap;
                  font-size: var(--text-m-pc);
                  line-height: 1.6;
                  color: #1a1a1a;
                }
              }

              &.cfm-checks {
                gap: 16px 32px;
              }

              .cfm-input.is-error,
              .cfm-textarea.is-error,
              .cfm-select.is-error {
                border-color: #ec3814;
                background-color: #fff9f7;
              }

              .cfm-input.is-error:focus,
              .cfm-textarea.is-error:focus,
              .cfm-select.is-error:focus {
                outline: none;
                border-color: #e44;
                box-shadow: 0 0 0 2px rgba(228, 68, 68, 0.15);
              }
            }
          }
        }

        /* 同意 */
        .cfm-consent {
          background: rgba(109, 132, 146, 0.05);
          padding: 35px;
          text-align: center;
          margin: 44px auto 36px;

          .cfm-consent__note {
            margin: 0 0 12px;
            font-size: 16px;
            line-height: 1.4;
            color: #1a1a1a;
          }

          .cfm-consent__label {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            font-weight: 500;
            font-size: var(--text-l-pc);
            color: var(--color-text);

            a {
              text-decoration: underline;
            }

            .cfm-consent__cb {
              position: absolute;
              inline-size: 1px;
              block-size: 1px;
              margin: -1px;
              padding: 0;
              border: 0;
              clip: rect(0 0 0 0);
              overflow: hidden;

              &:checked + .cfm-checkbox {
                background: var(--color-primary);
                border-color: var(--color-primary);
              }
              &:checked + .cfm-checkbox::after {
                content: "";
                position: absolute;
                left: 6px;
                top: 2px;
                width: 6px;
                height: 12px;
                border-right: 3px solid #fff;
                border-bottom: 3px solid #fff;
                transform: rotate(45deg);
              }
              &:focus-visible + .cfm-checkbox {
                outline: 2px solid #9ec5ff;
                outline-offset: 2px;
              }
            }

            .cfm-checkbox {
              position: relative;
              display: inline-block;
              width: 24px;
              height: 24px;
              border: 1px solid #d1d5db;
              border-radius: 2px;
              background: #fff;
              cursor: pointer;
            }

            .cfm-consent__text {
              a {
                color: var(--color-accent);
                text-decoration: underline;
              }
            }
          }

          p {
            margin: 0;
          }
        }

        /* 送信ボタン */
        .cfm-actions {
          margin: 40px auto 0;
          display: grid;
          justify-content: center;
          flex-wrap: wrap;
          gap: 40px;

          .cta[disabled] {
            background: var(--color-gray-70);
            cursor: default;
            pointer-events: none;
          }

          .cta[disabled]::after,
          .cta[disabled]::before {
            background: url(/assets/img/icon_arrow-link-gray.svg) no-repeat
              center / contain;
          }

          .cta[disabled]:hover {
            background: var(--color-gray-70);
            box-shadow: none;
            transform: none;
          }

          .cfm-note {
            margin: 0 auto;
            max-width: 100%;

            p {
              margin: 0;
              font-size: 13px;
              color: #1a1a1a;
              line-height: 1.7;
              text-align-last: left;
            }
          }
        }
      }

      /* 確認画面 */
      .cfm-form--confirm {
        .cfm-row {
          .cfm-field {
            align-items: center;

            .cfm-value {
              margin: 0;
              font-size: var(--text-m-pc);
              line-height: 1.7;
              color: var(--color-text);
              word-break: break-word;
            }
          }

          .cfm-value--multiline {
            white-space: normal;
          }

          .cfm-placeholder {
            color: var(--color-gray-70, #9ca3af);
          }
        }

        .cfm-actions--confirm {
          .cfm-actions__item {
            margin: 0 auto;

            .cta-back {
              position: relative;
              display: flex;
              align-items: center;
              justify-content: center;
              gap: 24px;
              width: 245px;
              height: 62px;
              padding: 0;
              background: var(--color-gray);
              color: #fff;
              text-decoration: none;
              border-radius: 100px;
              font-weight: 700;
              line-height: 1;
              letter-spacing: 1px;
              font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
                "Yu Gothic", sans-serif;
              font-size: 18px;
              white-space: nowrap;
              cursor: pointer;
              transition: opacity 0.3s ease;

              &:hover {
                opacity: 0.8;
              }
            }
          }
        }
      }
    }
  }
}

@media (max-width: 790px) {
  .contact-form {
    margin: 60px 0 100px;

    .contact-form__layout {
      /* フォーム */
      .cfm-card {
        margin-top: 32px;
        padding: 20px 14px;

        .cfm-form {
          .cfm-grid {
            .cfm-row {
              grid-template-columns: 1fr;
              gap: 8px;
              .cfm-label {
                p {
                  font-size: var(--text-l-sp);
                }
              }

              .cfm-field {
                .cfm-select {
                  width: 100%;
                }

                .cfm-check {
                  width: 100%;
                  &:nth-child(2) {
                    width: 100%;
                  }

                  .cfm-checkbox {
                    inline-size: 26px;
                    block-size: 26px;
                  }

                  .cfm-check-label {
                    white-space: normal;
                    font-size: var(--text-l-sp);
                  }
                }
              }
            }
          }

          /* 同意 */
          .cfm-consent {
            margin: 30px auto;
            padding: 10px;

            .cfm-consent__note {
              font-size: var(--text-m-sp);
            }

            .cfm-consent__label {
              font-size: var(--text-m-sp);
            }
          }

          /* 送信ボタン */
          .cfm-actions {
            gap: 20px;
            margin: 0 auto;

            .cta__label {
              padding-left: 20px;
            }

            .cfm-note {
              p {
                font-size: 13px;
              }
            }
          }
        }

        /* 確認画面 */
        .cfm-form--confirm {
          .cfm-row {
            grid-template-columns: 1fr;
            gap: 8px;

            .cfm-field {
              .cfm-value {
                margin: 10px 10px 0;
                font-size: var(--text-m-sp);
              }
            }
          }

          .cfm-actions--confirm {
            flex-direction: column;
            align-items: stretch;

            .cfm-actions__item {
              width: 100%;
              display: flex;

              .cta-back {
                margin: 90%;
                margin: 0 auto;
              }

              .cta {
                width: 100%;
                justify-content: center;
                padding: 0;
              }
            }
          }
        }
      }
    }
  }
}

/* ===== VOICE: お客様の声 ===== */
.voice {
  padding: 100px 0 0;

  .voice__layout {
    display: grid;
    grid-template-columns: clamp(300px, 40vw, 493px) 1fr;
    gap: 40px;
    align-items: center;
    width: 95%;

    .voice__illust {
      margin: 0;

      img {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto;
      }
    }

    .voice__content {
      .voice__title {
        font-weight: 700;
        color: var(--color-secondary);
        font-size: var(--text-h4-pc);
        line-height: 1.4;
        margin: 0 0 40px;
      }

      .voice__list {
        display: grid;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;

        .voice__item {
          position: relative;
          display: flex;
          align-items: center;
          gap: 8px;
          align-items: baseline;

          &::before {
            content: "VOICE";
            height: 26px;
            line-height: 27px;
            padding: 0 12px;
            border-radius: 50px;
            font-size: 14px;
            letter-spacing: 0.8px;
            font-weight: 700;
            font-family: var(--font-din-2014);
            color: #fff;
            background: var(--color-secondary);
          }
        }

        .voice__link {
          display: inline-block;
          text-decoration: none;
          color: var(--color-accent);
          font-weight: 700;
          line-height: 1.6;
          font-weight: 500;
          font-size: var(--text-m-pc);
          transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
          text-underline-offset: 3px;
          text-decoration-thickness: 1px;

          &:hover {
            opacity: 0.8;
          }
        }
      }
    }
  }
}

@media (max-width: 790px) {
  .voice {
    padding: 42px 0 0;

    .voice__layout {
      grid-template-columns: 1fr;
      gap: 30px;

      .voice__illust {
        img {
          width: 80%;
        }
      }

      .voice__content {
        .voice__title {
          margin: 0 0 30px;
          font-size: var(--text-h5-sp);
        }

        .voice__list {
          .voice__link {
            font-size: var(--text-l-pc);
          }
        }
      }
    }
  }
}

/* ===== THANKS: お問い合わせありがとうございました ===== */
.cfm-thanks {
  margin-top: 60px;
  padding: 90px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-card, 0 8px 24px rgba(16, 24, 40, 0.08));

  .thanks__title {
    margin: 0 0 40px;
    line-height: 1.2;
    text-align: center;
    font-size: var(--text-h3-pc);
    font-weight: 600;
    color: var(--color-primary);
  }

  .thanks__lead {
    margin: 0;
    line-height: 1.4;
    font-size: var(--text-xl-pc);
    color: var(--color-base-black);
  }

  .thanks__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    margin-top: 100px;

    .thanks-card {
      display: grid;
      grid-template-columns: 220px auto;
      align-items: center;
      gap: 50px;

      .thanks-card__icon {
        img {
          width: 100%;
          height: auto;
          vertical-align: middle;
        }
      }

      .thanks-card__body {
        line-height: 1.2;

        .thanks-card__title {
          margin: 0;
          font-weight: 700;
          font-size: var(--text-h4-pc);
          color: var(--color-secondary);
        }
        .thanks-card__text {
          margin: 20px 0 40px;
          font-size: var(--text-l-pc);
          color: var(--color-base-black);
        }
      }
    }
  }

  .thanks__brand {
    margin-top: 100px;

    .thanks__brand-copy {
      margin: 0 0 15px;
      line-height: 1.2;
      letter-spacing: 2px;
      font-size: var(--text-h4-pc);
      text-align: center;
      color: var(--color-primary);
    }

    .thanks__brand-inner {
      display: grid;
      grid-template-columns: 210px auto;
      gap: 50px;

      img {
        width: 100%;
        height: auto;
      }

      .thanks__brand-text {
        margin: 25px 0 0;
        line-height: 1.6;
        letter-spacing: 1px;
        text-align: left;
        color: var(--color-base-black);
      }
    }
  }
}

@media (max-width: 790px) {
  .cfm-thanks {
    margin-top: 32px;
    padding: 30px 10px;

    .thanks__title {
      font-size: var(--text-h3-sp);
      margin: 0 0 20px;
    }

    .thanks__lead {
      line-height: 1.6;
      font-size: clamp(12px, 4.1vw, 16px);
    }

    .thanks__links {
      margin-top: 60px;

      .thanks-card {
        grid-template-columns: 1fr;
        gap: 20px;

        .thanks-card__icon {
          width: 55%;
          margin: 0 auto;
        }

        .thanks-card__body {
          .thanks-card__title {
            font-size: var(--text-h5-sp);
          }
          .thanks-card__text {
            margin: 10px 0 20px;
            line-height: 1.4;
            font-size: var(--text-l-sp);
          }

          .cta {
            font-size: 16px;
          }
        }
      }
    }

    .thanks__brand {
      margin-top: 60px;

      .thanks__brand-copy {
        font-size: var(--text-h5-sp);
      }

      .thanks__brand-inner {
        grid-template-columns: 1fr;
        gap: 20px;

        img {
          width: 64%;
          margin: 0 auto;
        }
        .thanks__brand-text {
          margin: 0;
          font-size: var(--text-m-sp);
        }
      }
    }
  }
}

/* ===== Toggle ===== */
.faq__header {
  display: flex;
  align-items: center;
  -webkit-box-align: center;
}

