@charset "utf-8";

/* ↓↓↓ form ↓↓↓ */
.form {
  font-size: max(10px, 1.5rem);
  padding: 12rem 2rem;

  .block {
    max-width: 86.4rem;
    margin: 0 auto;
  }

  .intro-group {
    padding-bottom: 6.4rem;
    margin-bottom: 5.6rem;
    border-bottom: 1px solid #F0F0F0;

    .lead {
      font-size: max(10px, 1.5rem);
      font-weight: 700;
      color: #222;

      +.text {
        margin-top: 0.8rem;
      }
    }

    .text {
      font-size: max(10px, 1.5rem);
      color: #222;

      +.text {
        margin-top: 0.8rem;
      }
    }
  }

  .vali-error,
  .mail-error,
  .num-error {
    color: red;
    display: none;

    &.is-show {
      display: block;
    }
  }

  .num-error {
    width: 100%;
  }

  .inq {
    font-size: max(10px, 1.2rem);
    font-weight: 500;
    line-height: 1;
    color: var(--cosmos-blue);
    padding: 0.3rem 1.2rem 0.4rem;
    border-radius: 2rem;
    background-color: #E7F4FA;
    margin-right: 0.8rem;
  }

  .list {
    .item {
      display: flex;
      gap: 7rem;

      +.item {
        margin-top: 4.8rem;
      }

      .heading {
        min-width: max(135px, 19.3rem);
        width: 19.3rem;
        font-size: max(10px, 1.5rem);
        font-weight: 700;
        padding-top: 1.5rem;

        .inq {
          margin-left: 0.8rem;
        }
      }

      &:has(.-radio_group) {
        .heading {
          padding-top: 0.8rem;
        }
      }

      &:has(textarea) {
        .heading {
          padding-top: 0;
        }
      }

      .data {
        flex-grow: 1;
      }

      .-radio_group {
        display: flex;
        gap: 0.8rem;
      }

      input[type="text"],
      input[type="number"],
      textarea {
        width: 100%;
        font-size: max(10px, 1.5rem);
        background-color: #F7F9FA;
        border: 1px solid #D0DEE5;
        border-radius: 1.2rem;
        padding: 0 2.4rem;
        color: #222;
      }

      input[type="text"],
      input[type="number"] {
        min-height: 5.6rem;

        &::placeholder {
          color: #8B8B8B;
        }
      }

      textarea {
        padding: 2.4rem;
      }

      input[type="radio"] {
        display: none;
      }

      .radio_label {
        cursor: pointer;
        display: grid;
        place-content: center;
        width: calc((100% - 0.8rem * 3) / 4);
        height: 4rem;
        border-radius: 4rem;
        font-size: max(10px, 1.2rem);
        font-weight: 500;
        color: var(--cosmos-blue);
        border: 1px solid #F0F0F0;
        background-color: #fff;
        transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
      }

      input[type="radio"]:checked+.radio_label {
        color: #fff;
        border: 1px solid var(--cosmos-blue);
        background-color: var(--cosmos-blue);
      }

      .attention {
        margin-bottom: 1.6rem;

        &:not(:first-child) {
          margin-top: 1.6rem;
        }
      }

      .-postcode {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.8rem;

        .-short {
          width: 12rem;
        }
      }

      .select_wrap {
        position: relative;

        &::before {
          content: "";
          position: absolute;
          translate: 0 -50%;
          top: 50%;
          right: 1.6rem;
          width: 2.4rem;
          height: 2.4rem;
          background: url(/wp/wp-content/themes/cosmos-cpo/img/common/select_arrow.svg) no-repeat;
          background-size: cover;
        }
      }

      select {
        cursor: pointer;
        width: 100%;
        min-height: 5.6rem;
        font-size: max(10px, 1.5rem);
        background-color: #F7F9FA;
        border: 1px solid #D0DEE5;
        border-radius: 1.2rem;
        padding: 0 2.4rem;
        color: #222;
        -webkit-appearance: none;
        appearance: none;
      }

    }

  }

  .privacy_wrap {
    text-align: center;
    margin-top: 5.6rem;
    padding-top: 4.8rem;
    border-top: 1px solid #F0F0F0;

    .text {
      text-align: center;
      font-size: max(10px, 1.5rem);
      color: #222;
    }

    .privacy_link {
      color: var(--cosmos-blue);
      text-decoration: underline;
    }

    @media screen and (min-width: 769px) {
      .privacy_link:hover {
        text-decoration: none;
      }
    }

    .vali-error {
      text-align: center;
    }
  }

  .privacy_check {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin: 2.4rem auto;

    #privacy_check {
      width: 2.4rem;
      height: 2.4rem;
      border-radius: 0.8rem;
      margin-right: 0.8rem;
    }
  }

  .form_btn {
    position: relative;
    width: 36rem;
    height: 8rem;
    border-radius: 8rem;
    display: grid;
    place-content: center;
    margin: 4rem auto 0;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    border: none;
    color: #F7F9FA;
    overflow: hidden;
    background: linear-gradient(0deg, rgba(0, 153, 229, 1) 0%, rgba(70, 193, 255, 1) 100%);
    transition: opacity 0.3s ease;

    &.form_top {
      color: var(--cosmos-blue);
      background: #fff;
      border: 1px solid #D0DEE5;
    }
  }

  @media screen and (min-width: 769px) {
    .form_btn:hover {
      opacity: 0.7;
    }
  }

  .form_btn[disabled] {
    cursor: default;
    opacity: 0.2;
  }
}

@media screen and (max-width: 768px) {
  .form {
    padding: 7.4rem 2rem 8rem;

    .intro-group {
      margin-bottom: 6.4rem;
    }

    .list {
      .item {
        flex-direction: column;
        gap: 1.6rem;

        +.item {
          margin-top: 3.2rem;
        }

        .heading {
          min-width: initial;
          width: 100%;
          padding-top: 0;
        }

        &:has(.-radio_group),
        &:has(textarea) {
          .heading {
            padding-top: 0;
          }
        }

        .-radio_group {
          flex-wrap: wrap;
        }

        input[type="text"],
        input[type="number"],
        textarea {
          width: 100%;
          font-size: max(10px, 1.5rem);
          background-color: #F7F9FA;
          border: 1px solid #D0DEE5;
          border-radius: 1.2rem;
          padding: 0 2.4rem;
          color: #222;
        }

        input[type="text"],
        input[type="number"] {
          min-height: 5.6rem;

          &::placeholder {
            color: #8B8B8B;
          }
        }

        textarea {
          padding: 2.4rem;
        }

        input[type="radio"] {
          display: none;
        }

        .radio_label {
          width: calc((100% - 0.8rem) / 2);
          font-size: max(10px, 1.5rem);
        }
      }
    }

    .privacy_wrap {
      margin-top: 6.4rem;
      padding-top: 6.4rem;
    }

    .form_btn {
      position: relative;
      max-width: 33.5rem;
      width: 100%;
      margin: 3.2rem auto 0;
    }
  }
}

#conf {
  .intro-group {
    margin-bottom: 0;
  }

  .list {
    border-bottom: 1px solid #F0F0F0;

    .item {
      padding: 3.2rem 0;

      +.item {
        margin-top: 0;
        border-top: 1px solid #F0F0F0;
      }

      .heading {
        padding-top: 0;
      }
    }
  }

  .btn_wrap {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 6.4rem;
  }

  .btn_group:first-of-type {
    position: relative;

    &::before {
      content: '';
      position: absolute;
      translate: 0 -50%;
      top: 50%;
      left: 2rem;
      width: 2.4rem;
      height: 2.4rem;
      border-radius: 50%;
      background-color: #E7F4FA;
      z-index: 1;
    }

    &::after {
      content: '';
      position: absolute;
      rotate: 180deg;
      translate: 0 -50%;
      top: 50%;
      left: 2.8rem;
      width: 0.6rem;
      height: 1rem;
      mask-image: url(/wp/wp-content/themes/cosmos-cpo/img/common/more_arrow.svg);
      mask-size: contain;
      mask-repeat: no-repeat;
      background-color: var(--cosmos-blue);
      z-index: 1;
    }
  }

  .form_btn {
    cursor: pointer;
    margin-top: 0;

    &.back {
      color: var(--cosmos-blue);
      background: #fff;
      border: 1px solid #D0DEE5;

    }
  }
}

@media screen and (max-width: 768px) {
  #conf {
    .btn_wrap {
      flex-direction: column;
    }

    .btn_group:first-of-type {
      position: relative;

      &::before {
        content: '';
        position: absolute;
        translate: 0 -50%;
        top: 50%;
        left: 2rem;
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 50%;
        background-color: #E7F4FA;
        z-index: 1;
      }

      &::after {
        content: '';
        position: absolute;
        rotate: 180deg;
        translate: 0 -50%;
        top: 50%;
        left: 2.8rem;
        width: 0.6rem;
        height: 1rem;
        mask-image: url(/wp/wp-content/themes/cosmos-cpo/img/common/more_arrow.svg);
        mask-size: contain;
        mask-repeat: no-repeat;
        background-color: var(--cosmos-blue);
        z-index: 1;
      }
    }

    .form_btn {
      cursor: pointer;
      margin-top: 0;

      &.back {
        color: var(--cosmos-blue);
        background: #fff;
        border: 1px solid #D0DEE5;

      }
    }
  }
}

#thanks {
  .text-group {
    color: #222;

    .lead {
      font-size: 2.4rem;
      font-weight: 700;
      margin-bottom: 2.4rem;
    }

    .text {
      font-size: max(10px, 1.5rem);
    }
  }
}

/* ↑↑↑ form ↑↑↑ */