main {
  background-color: #EDF4F7;
}

/* ↓↓↓ fv ↓↓↓ */
.fv {
  position: relative;
  padding-top: min(260px, 20.3125cqw);
  @media (max-width: 768px) {
    padding-top: 196px;
  }
  .fv-inner {
    max-width: 1280px;
    margin: 0 auto;
    container-type: inline-size;
    @media (max-width: 768px) {
      max-width: 100%;
    }

    .ttl-wrap {
      margin-left: 10cqw;
      @media (max-width: 768px) {
        margin-left: 32px;
      }
      .en {
        position: relative;
        font-size: 1.4rem;
        font-family: var(--text-lato);
        font-weight: 700;
        color: #0090BA;
        letter-spacing: 0.08em;
        padding-left: 23px;
        @media (max-width: 768px) {
          font-size: 1.4rem;
          padding-left: 23px;
        }
        &::after {
          content: '';
          position: absolute;
          translate: 0 -50%;
          top: 50%;
          left: 0;
          width: 15px;
          height: 16px;
          background: url(../img/message/en-deco.svg) no-repeat;
          background-size: 15px 16px;
          @media (max-width: 768px) {
            width: 15px;
            height: 16px;
            background-size: 15px 16px;
          }
        }
      }
      .ttl {
        font-size: 4.0rem;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0.08em;
        margin-top: 8px;
        @media (max-width: 768px) {
          font-size: 2.4rem;
          margin-top: 8px;
        }
      }
    }
  }
}
/* ↑↑↑ fv ↑↑↑ */

/* ↓↓↓ form-box ↓↓↓ */
.form-box {
  margin-top: 100px;
  padding-bottom: 245px;
  @media (max-width: 768px) {
    margin: 64px 24px 0;
    padding-bottom: 260px;
  }
  .form-box_inner {
    max-width: 688px;
    margin: 0 auto;
    @media (max-width: 768px) {
      max-width: 100%;
    }
    .caution {
      font-size: 1.6rem;
      line-height: 1.71428;
      letter-spacing: 0.15em;
      text-align: justify;
      word-break: break-all;
    }

    form {
      margin-top: 64px;
      @media (max-width: 768px) {
        margin-top: 48px;
      }
      .item {
        display: flex;
        align-items: center;
        gap: 64px;
        @media (max-width: 768px) {
          flex-direction: column;
          align-items: flex-start;
          gap: 8px;
        }
        
        +.item {
          margin-top: 24px;
        }
        .head {
          width: 145px;
          font-size: 1.5rem;
          font-weight: 600;
          letter-spacing: 0.08em;
          color: #0090BA;
          @media (max-width: 768px) {
            width: 100%;
          }
        }

        .select-group {
          display: flex;
          align-items: center;
          gap: 16px;
          @media (max-width: 768px) {
            flex-wrap: wrap;
            gap: 8px;
          }
          .select-item {
            cursor: pointer;

            input {
              position: absolute;
              opacity: 0;
              &:checked + .select-ui {
                background-color: #14B1E0;
                color: #fff;
              }
            }

            .select-ui {
              width: 146px;
              aspect-ratio: 146 / 48;
              font-size: 1.4rem;
              font-weight: 500;
              letter-spacing: 0.048em;
              line-height: 1.2857;
              text-align: center;
              color: #14B1E0;
              display: flex;
              align-items: center;
              justify-content: center;
              border: 1px solid #14B1E0;
              background-color: #fff;
              border-radius: 50px;
              transition: background-color 300ms ease, color 300ms ease;
              @media (max-width: 768px) {
                width: 158px;
                aspect-ratio: 158 / 64;
              }
            }
          }
        }
        input[type="text"],
        input[type="email"],
        input[type="tel"] {
          width: 355px;
          height: 36px;
          font-size: 1.5rem;
          letter-spacing: 0.08em;
          border: 1px solid #B3DFF0;
          background-color: #fff;
          padding-inline: 10px;
          @media (max-width: 768px) {
            width: 100%;
            height: 36px;
          }
        }
        
        textarea {
          width: 479px;
          height: 160px;
          font-size: 1.5rem;
          letter-spacing: 0.08em;
          line-height: 1.866666;
          border: 1px solid #B3DFF0;
          background-color: #fff;
          padding-inline: 10px;
          @media (max-width: 768px) {
            width: 100%;
            height: 160px;
          }
        }
      }

      .agree-box {
        width: 100%;
        height: 125px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        justify-content: center;
        align-items: center;
        border: 1px solid #B3DFF0;
        margin-top: 24px;
        @media (max-width: 768px) {
          margin-top: 40px;
        }
        .txt01 {
          font-size: 1.5rem;
          letter-spacing: 0.08em;
          a {
            position: relative;
            text-decoration-line: underline;
            text-decoration-color: #0090BA;
            text-decoration-thickness: 1px;
            color: #0090BA;
            font-weight: 600;
            padding-right: 20px;
            transition: opacity 300ms ease;
            &::after {
              content: '';
              position: absolute;
              top: 6px;
              right: 2px;
              width: 15px;
              height: 12px;
              background-image: url(../img/common/ex-link.svg);
            }

            @media (min-width: 769px) {
              &:hover {
                opacity: 0.7;
              }
            }
          }
        }
        .check {
          display: flex;
          align-items: center;
          gap: 16px;
          input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 24px;
            height: 24px;
            border: 1px solid #B3DFF0;
            background-color: #fff;
            cursor: pointer;
            &:checked {
              position: relative;
              &::after {
                content: '';
                position: absolute;
                translate: -50% -50%;
                top: 50%;
                left: 50%;
                width: 15px;
                height: 9px;
                background: url(../img/common/check.svg) no-repeat;
                background-size: cover;
              }
            }
          }
          .txt02 {
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: 0.08em;
          }
        }
      }

      .btn-wrap {
        display: flex;
        justify-content: center;
        margin-top: 64px;

        .btn-confirm {
          width: 380px;
          height: 100px;
          font-size: 2.0rem;
          font-weight: 600;
          letter-spacing: 0.08em;
          color: #fff;
          border: 1px solid #14B1E0;
          background-color: #14B1E0;
          border-radius: 50px;
          transition: background-color 300ms ease, color 300ms ease;
          cursor: pointer;
          @media (min-width: 769px) {
            &:hover {
              background-color: #fff;
              color: #14B1E0;
            }
          }
          @media (max-width: 768px) {
            width: 326px;
            height: 80px;
            font-size: 1.8rem;
          }
        }
      }
    }
  }

  &.confirm {
    .form-box_inner {
      form {
        .item {
          align-items: flex-start;
          .head {
            margin-top: 4px;
            @media (max-width: 768px) {
              margin-top: 0;
            }
          }
          .confirm-txt {
            width: 479px;
            font-size: 1.5rem;
            letter-spacing: 0.08em;
            line-height: 1.866666;
            @media (max-width: 768px) {
              width: 100%;
            }
          }
        }

        
        .btn-wrap {
          display: flex;
          justify-content: center;
          gap: 32px;
          margin-top: 64px;
          @media (max-width: 768px) {
            flex-direction: column;
            align-items: center;
            gap: 16px;
            margin-top: 40px;
          }
          .btn-back {
            width: 328px;
            height: 100px;
            font-size: 2.0rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            color: #14B1E0;
            border: 1px solid #14B1E0;
            background-color: #fff;
            border-radius: 50px;
            transition: border 300ms ease;
            cursor: pointer;
            @media (min-width: 769px) {
              &:hover {
                border: 1px solid #fff;
              }
            }
            @media (max-width: 768px) {
              width: 326px;
              height: 80px;
              font-size: 1.8rem;
            }
          }

          .btn-send {
            width: 328px;
            height: 100px;
            font-size: 2.0rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            color: #fff;
            border: 1px solid #14B1E0;
            background-color: #14B1E0;
            border-radius: 50px;
            transition: background-color 300ms ease, color 300ms ease;
            cursor: pointer;
            @media (min-width: 769px) {
              &:hover {
                background-color: #fff;
                color: #14B1E0;
              }
            }
            @media (max-width: 768px) {
              width: 326px;
              height: 80px;
              font-size: 1.8rem;
            }
          }
        }
      }
    }
  }
  &.thanks {
    .form-box_inner {
      .thanks-head {
        font-size: 2.8rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-align: center;
        color: #048EC5;
        @media (max-width: 768px) {
          font-size: 2.4rem;
        }
      }
      .thanks-txt {
        font-size: 1.6rem;
        letter-spacing: 0.08em;
        line-height: 1.75;
        margin-top: 56px;
        text-align: center;
        @media (max-width: 768px) {
          margin-top: 24px;
        }
      }
    }
  }
}
/* ↑↑↑ form-box ↑↑↑ */
@media (max-width: 768px) {
  footer {
    .link-box {
      margin: -180px auto 0;
    }
  }
}