@charset "UTF-8";

.title_wrap {
  background:
  linear-gradient(to bottom, transparent 60%, #ffffff50 80%, #ffffff90 90%, #FFF 100%),
  linear-gradient(to right, transparent 45%, #4d5d7dbf 60%, #555961 100%),
  url('/assets/img/contact_bg.jpg') no-repeat left center / cover;
  padding: 8rem 8rem 12rem 8rem;

  @media (max-width: 767px) {
    background:
    linear-gradient(to bottom, transparent 60%, #ffffff50 80%, #ffffff90 90%, #FFF 100%),
    url('/assets/img/contact_bg_sp.jpg') no-repeat left top / cover;
    padding: 6.1rem 1.3rem 8rem 1.3rem;
  }

  .flex {
    justify-content: space-between;
  }
}

.border {
  @media (min-width: 768px) {
    &::before {
      background: #FFF;
    }
  }
}

.cmn_title_sub {
  color: #FFF;

  @media (max-width: 767px) {
    margin-bottom: 8.2rem;
  }
}

.contact_title_txt {
  color: #FFF;

  @media (max-width: 767px) {
    font-size: 1.4rem;
  }
}

.content {
  @media (max-width: 767px) {
    padding: 0 0 4rem;
  }
}

.contact_txt {
  text-align: center;

  @media (max-width: 767px) {
    margin-bottom: 4.7rem;
  }
}

.contact_txt_btm {
  margin-top: 5rem;
  text-align: center;

  @media (max-width: 767px) {
    margin: 3.4rem 0;
    line-height: 2.5;
  }
}

.contact_link {
  text-decoration: underline;
}

.red {
  color: #d00;
}

.red_txt {
  color: #d00;
  text-align: center;

  * {
    line-height: 2;
  }
}

.complete_txt {
  font-size: 2.8rem;
  font-weight: bold;
  text-align: center;

  @media (max-width: 767px) {
    font-size: 2.4rem;
    line-height: 1.6;
  }
}

input, textarea, select {
  transition: all 0.3s;
  padding: 1.2rem 3rem 1.4rem;
  border: 1px solid #222;
  font-weight: bold;
  font-size: 2rem;

  @media (max-width: 767px) {
    padding: 1.2rem 2rem 1.4rem;
    font-size: 1.6rem;
  }

  &:focus {
    outline: none;
  }
}

textarea {
  width: 100%;
  height: 278px;
  line-height: 1.8;

  @media (max-width: 767px) {
    height: 180px;
  }
}

.select_wrap {
  position: relative;
  width: 40%;

  @media (max-width: 767px) {
    width: 60%;
  }

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
  }

  select {
    appearance: none;
    width: 100%;
    padding-right: 40px;
  }
}

select {
  width: 35%;
  cursor: pointer;

  @media (max-width: 767px) {
    width: 100%;
  }
}

input[type=text] {
  display: inline-block;
}

input[type=radio] {
  display: none;

  & + label {
    position: relative;
    display: block;
    margin-top: 2%;
    padding-left: 35px;

    @media (max-width: 767px) {
      margin-top: 5%;
      font-size: 1.6rem;
    }

    &::before {
      background: #fff;
      border: 1px solid #222;
      border-radius: 50%;
      content: "";
      display: block;
      height: 16px;
      left: 5px;
      margin-top: -8px;
      position: absolute;
      top: 50%;
      width: 16px;
    }

    &::after {
      background: #1F8AC8;
      border-radius: 50%;
      content: "";
      display: block;
      height: 10px;
      left: 8px;
      margin-top: -5px;
      opacity: 0;
      position: absolute;
      top: 50%;
      width: 10px;
    }
  }

  &:checked + label::after {
    opacity: 1;
  }
}

.form_table {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  margin-top: 6.3rem;

  @media (max-width: 767px) {
    margin-top: 1rem;
  }

  th {
    width: 24%;
    border-bottom: 2px solid #00B0F0;
    padding-top: 3rem;
    padding-right: 2%;
    line-height: 1.7;
    text-align: left;
    vertical-align: top;

    @media (min-width: 768px) and (max-width: 1024px) {
      width: 30%;
    }
    @media (max-width: 767px) {
      display: block;
      width: 100%;
      border-bottom: none;
      padding-top: 1.7rem;
      padding-right: 0;
    }
  }

  td {
    width: 76%;
    border-bottom: 2px solid #00B0F0;
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;

    @media (min-width: 768px) and (max-width: 1024px) {
      width: 70%;
    }
    @media (max-width: 767px) {
      display: block;
      width: 100%;
      padding-top: 1.3rem;
    }

    input {
      width: 100%;
    }
  }

  tr {
    &:nth-child(5) td input[name=item_poscode_1] {
      width: 100px !important;
    }
    &:nth-child(5) td input[name=item_poscode_2] {
      width: 120px !important;
    }

    &:nth-child(-n+4) td::before,
    &:nth-child(7) td::before,
    &:last-child td::before {
      content: "※半角カナは使用できません";
      display: block;
      padding-bottom: 2rem;
      font-size: 1.5rem;

      @media (max-width: 767px) {
        padding-bottom: 1.9rem;
        font-size: 1.4rem;
      }
    }
  }

  &.confirm {
    th {
      padding: 2.4rem 0;
      line-height: 2;

      @media (max-width: 767px) {
        padding: 2rem 0 0;
        line-height: 1.6;
      }
    }

    td {
      padding: 2.4rem 0;
      line-height: 2;

      @media (max-width: 767px) {
        padding: 0.7rem 0 2.4rem; 
      }
    }

    tr:nth-child(-n+4) td::before,
    tr:nth-child(7) td::before,
    tr:last-child td::before {
      content: none;
    }
  }
}

.button_box {
  margin-top: 5.2rem;
  text-align: center;

  @media (max-width: 767px) {
    margin-top: 0;
  }

  .btn {
    font-size: 2.2rem;
    padding: 2.9rem 0 3.2rem;
  
    @media (max-width: 767px) {
      font-size: 1.8rem;
      padding: 2.2rem 0;
    }
  }

  &.confirm_btn {
    margin-top: 6rem;

    @media (max-width: 767px) {
      margin-top: 4rem;
    }

    @media (min-width: 768px) and (max-width: 1024px) {
      .btn {
        max-width: 300px;
      }
    }
    
    .btn:first-child {
      margin-right: 4rem;

      @media (max-width: 767px) {
        margin-right: 0;
      }
    }

    .btn_outline {
      @media (max-width: 767px) {
        margin-top: 2rem;
      }
    }
  }
}


