@charset "utf-8";

.header_img {
    background-image: url(../img/contact_header.jpg);
    height: calc(100vh - 300px);
    position: relative;
}

.title {
    width: 100vw;
    font-size: 40px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 0%;
    background-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.form {
    width:80%;
    margin: 150px auto 0;
}

.form h2 {
    text-align: center;
}

.form h2 {
    display: flex;
    align-items: center; /* 垂直中心 */
    justify-content: center; /* 水平中心 */
  }
  .form h2:before, .form h2:after {
    border-top: 3px solid;
    content: "";
    width: 6em; /* 線の長さ */
  }
  .form h2:before {
    margin-right: 1em; /* 文字の右隣 */
  }
  .form h2:after {
    margin-left: 1em; /* 文字の左隣 */
  }

  .form_text {
      margin: 50px auto 0;
      text-align: center;
  }

  form {
      width: 70%;
      margin: 80px auto 0;
  }

  table {
      height: 700px;
      text-align: center;
      width: 100%;
      border-collapse: collapse;
  }

  table th,
  table td{
      border: 1px solid ;
  }

  table th {
      width: 35%;
      padding: 5px 30px;
      /* font-weight: normal; */
      /* text-align: left; */
      background-color: rgba(153, 153, 153, 0.6);
  }

  select {
      display: block;
      width: 80%;
      height: 30%;
        margin: 0 auto;
  }


  input {
      width: 80%;
      height: 50%;
      display: block;
      margin: 0 auto;
      
  }

  textarea {
      width: 80%;
      height: 80%;
  }

  .required::after {
    content: "必須";
    background-color: #f39818;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    min-width: 10px;
    padding: 3px 7px;
    margin: 0px 5px;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    border-radius: 10px;
    display: inline-block;
  }

  label {
      text-align: left;
      display: block;
  }

  .submit_btn {
      margin: 80px auto 150px;
      width: 150px;
      height: 30px;
      color: #fff;
      background-color: #0c84ea;
      border: none;
      border-radius: 20px;
      font-weight: bold;
  }

  textarea {
      color: #999;
  }

  .submit_btn:hover {
      opacity: 0.7;
      cursor: pointer;
  }

  @media screen and (max-width: 959px) {
      .header_img {
          background-position: right;
          height: 300px;
      }

      .title {
          font-size: 28px;
      }

      .form {
          width: 90%;
      }

      .form h2 {
          font-size: 20px;
      }

      .form h2:before, .form h2:after {
          border-top: 2px solid;
      }

      form {
          width: 80%;
      }

      input {
          height: 20px;
      }
  }

  @media screen and (max-width: 480px) {
      .header_img {
          background-image: none;
      }

      header {
          background-image: url(../img/contact_header.jpg);
          background-repeat: no-repeat;
          background-position: center;
      }

      .title {
          top: 30%;
      }

      .form {
          margin: 80px auto;
      }

      .form h2 {
          font-size: 18px;
      }

      .form h2:before, .form h2:after {
        border-top: 1px solid;
        width: 4em;
    }

    .form h2:before {
        margin-right: 0.5em;
    }

    .form h2:after {
        margin-left: 0.5em;
    }

    .form_text {
        width: 90%;
    }

    .form_text p {
        padding-top: 10px;
        letter-spacing: 0.1em;
        text-align: left;
    }

    form {
        width: 96%;
    }

    table th {
     padding: 0;
     width: 48%;

    }

    label {
        font-size: 14px;
        text-align: left;
        padding-left: 5px;
    }

    input,select {
        width: 85%;
    }

    .required::after {
        font-size: 10px;
    }

    .submit_btn {
        margin: 50px auto 100px;
    }

  }