@charset "UTF-8";

/* LP 用お問い合わせフォーム（/contact の見た目を rem で組み直し） */

.form-wrapper {
  background: #edf3f5;
  padding: 7.2rem 12rem;
  font-size: 1.8rem;

  .list-contact {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid var(--color-border);
    padding: 2.8rem 0;
  }

  .list-contact.bg-gray {
    background: #d3dee3;
    border: 0;
    padding: 2.8rem 2.6rem;
  }

  .list-contact dt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 26%;
    min-height: 5.2rem;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.8;
    flex-shrink: 0;
  }

  .list-contact dd {
    width: 74%;
    line-height: 1;
  }

  .required > label::after,
  .required > span::after {
    content: "※";
    color: #fa1e46;
    margin-left: 0.5rem;
  }

  & input,
  & label,
  & select,
  & textarea {
    outline: none;
    font-family: inherit;
    font-size: 1.8rem;
  }

  .select {
    appearance: none;
    display: block;
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.8rem;
  }

  .select select {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 5.2rem;
    padding: 0 3.6rem 0 2.4rem;
    background: none;
    border: 0;
    line-height: 5.2rem;
    text-align: left;
    color: var(--color-primary);
    -webkit-text-fill-color: var(--color-primary);
  }

  .select select::-ms-expand {
    display: none;
  }

  .select::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 0;
    padding: 2em 2rem;
    margin-top: -2.5em;
    font-size: 1.6rem;
    line-height: 1;
    pointer-events: none;
  }

  & input[type="text"],
  & textarea {
    appearance: none;
    width: 100%;
    padding: 0 2.4rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.8rem;
    box-shadow: none;
    line-height: 5.2rem;
  }

  & textarea {
    height: 20rem;
    padding: 1.2rem 2rem;
    line-height: 1.3;
    overflow-y: auto;
    resize: vertical;
  }

  & textarea.area2 {
    height: 5.2rem;
  }

  .width-half {
    width: 100%;
    max-width: 36rem;
  }

  .checkbox {
    display: inline-block;
    position: relative;
    line-height: 2.8rem;
  }

  .checkbox {

      & label {
          display: block;
          position: relative;
          padding: 1.2rem 0 1.2rem 4.4rem;
          cursor: pointer;
        }
  }

  .checkbox label::after,
  .checkbox label::before {
    content: "";
    display: block;
    position: absolute;
    left: 0.2rem;
    top: 1.4rem;
  }

  .checkbox label::after {
    width: 2.6rem;
    height: 2.6rem;
    background: #fff;
    border: 1px solid #868c8f;
    border-radius: 0.8rem;
  }

  .checkbox label::before {
    top: 1.8rem;
    left: 1.1rem;
    width: 0.7rem;
    height: 1.2rem;
    border-style: solid;
    border-color: #fa1e46;
    border-width: 0 0.2rem 0.2rem 0;
    transform: rotate(45deg);
    opacity: 0;
    z-index: 5;
    transition: opacity 0.1s ease-out;
  }

  .checkbox input {
    position: absolute;
    top: 0;
    left: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
  }

  .checkbox input:checked ~ label::before {
    opacity: 1;
  }

  .list-contact.bg-gray dd {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .g-recaptcha {
    margin: 0.5rem 0 0;
    & > div {
      @media screen and (max-width: 767px) {
        width: 100% !important;
      }
    }
  }

  .btn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 40rem;
    height: 7.2rem;
    margin: 4.8rem auto 0;
    padding: 0;
    border: 0;
    background-color: var(--color-primary, #1d1e1f);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    -webkit-text-fill-color: #fff;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-more:hover {
    background-color: #868c8f;
  }

  .btn-more__wrap {
    position: relative;
    display: inline-block;
  }

  .btn-more__wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -3.2rem;
    width: 1rem;
    height: 1.5rem;
    background: url(/assets/images/common/arr-white.png) no-repeat 50%;
    background-size: contain;
    transform: translateY(-50%);
  }

  @media screen and (max-width: 767px) {
    padding: 2rem 1.5rem 5rem;
    font-size: 1.5rem;

    .list-contact {
      display: block;
      padding: 2rem 0;

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

    .list-contact dt,
    .list-contact dd {
      width: 100%;
    }

    .list-contact dt {
      min-height: 0;
      margin-bottom: 1.2rem;
      font-size: 1.5rem;
    }

    & input,
    & label,
    & select,
    & textarea {
      font-size: 1.5rem;
    }

    .select select {
      height: 4.8rem;
      padding: 0 3.2rem 0 1.6rem;
      line-height: 4.8rem;
    }

    & input[type="text"] {
      padding: 0 1.6rem;
      line-height: 4.8rem;
    }

    & textarea {
      height: 16rem;
      padding: 1rem 1.6rem;
    }

    & textarea.area2 {
      height: 4.8rem;
    }

    .btn-more {
      height: 5.6rem;
      font-size: 1.5rem;
      margin-top: 3.2rem;
    }

    .list-contact.bg-gray {
      padding: 2rem 1.6rem;
    }

    .width-half,
    .select {
      max-width: none;
    }
  }
}
