/* ==============================
   お問い合わせフォーム
============================== */

.screen-reader-response,.wpcf7-response-output,
.nrs-contact {
  width: 880px;
  max-width: 100%;
  margin: 0 auto 30px;
  color: #1F1F1F;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.nrs-contact *,
.nrs-contact *::before,
.nrs-contact *::after {
  box-sizing: border-box;
}

.nrs-contact__table {
  width: 100%;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

.nrs-contact__row {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-bottom: 1px solid #ccc;
}

.nrs-contact__label,
.nrs-contact__field {
  display: table-cell;
  vertical-align: middle;
}

.nrs-contact__label {
  width: 30%;
  padding: 20px;
  background: #E3E8F1;
  text-align: right;
  font-weight: bold;
}

.nrs-contact__label span {
  color: #E99D00;
}

.nrs-contact__field {
  width: 70%;
  padding: 20px;
  background: #fff;
}

.nrs-contact__field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* 入力欄 */

.nrs-contact__field input[type="text"],
.nrs-contact__field input[type="email"],
.nrs-contact__field input[type="tel"],
.nrs-contact__field input[type="url"] {
  width: 90%;
  height: 29px;
  padding: 5px 8px;
  border: 1px solid #97b2cf;
  border-radius: 0;
  background: #fff;
  font-size: 14px;
  color: #1F1F1F;
}

/* セレクトボックス */

.nrs-contact__field select {
  width: 90%;
  height: 32px;
  padding: 5px 30px 5px 8px;
  border: 1px solid #97b2cf;
  border-radius: 0;
  background-color: #fff;
  background-image: url("../img/select_arrow.png");
  background-repeat: no-repeat;
  background-position: right center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 14px;
  color: #1F1F1F;
}

/* テキストエリア */

.nrs-contact__field textarea {
  width: 90%;
  min-height: 120px;
  padding: 8px;
  border: 1px solid #97b2cf;
  border-radius: 0;
  background: #fff;
  font-size: 14px;
  color: #1F1F1F;
  resize: vertical;
}

/* フォーカス時 */

.nrs-contact__field input:focus,
.nrs-contact__field select:focus,
.nrs-contact__field textarea:focus {
  outline: none;
  border-color: #8aba7c;
  background-color: #fbfef8;
}

/* 必須項目・エラーメッセージ */

.nrs-contact .message {
  display: none;
  color: #f00;
  font-size: 12px;
}

.nrs-contact .wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  color: #DF141D;
  font-size: 12px;
}

.nrs-contact .wpcf7-not-valid {
  border-color: #DF141D !important;
}

/* 送信ボタン */

.nrs-contact__submit {
  width: 400px;
  max-width: 100%;
  margin: 30px auto 0;
  text-align: center;
}

.nrs-contact__submit input[type="submit"] {
  display: block;
  width: 100%;
  height: 51px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: linear-gradient(to bottom, #e79900 0%, #dd8607 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.nrs-contact__submit input[type="submit"]:hover {
  opacity: 0.8;
}

/* Contact Form 7 標準の余白調整 */

.nrs-contact .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

.nrs-contact .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 10px;
  font-size: 13px;
}

/* ==============================
   スマートフォン
============================== */

@media screen and (max-width: 667px) {

.screen-reader-response,.wpcf7-response-output,
  .nrs-contact {
    width: auto;
    margin: 0 10px 30px;
  }

  .nrs-contact__table {
    border: none;
  }

  .nrs-contact__row {
    display: block;
    border: none;
    margin-bottom: 15px;
  }

  .nrs-contact__label,
  .nrs-contact__field {
    display: block;
    width: 100%;
  }

  .nrs-contact__label {
    padding: 7px 10px;
    text-align: left;
  }

  .nrs-contact__field {
    padding: 15px 10px;
  }

  .nrs-contact__field input[type="text"],
  .nrs-contact__field input[type="email"],
  .nrs-contact__field input[type="tel"],
  .nrs-contact__field input[type="url"] {
    width: 88%;
  }

  .nrs-contact__field select {
    width: 91.4%;
  }

  .nrs-contact__field textarea {
    width: 90%;
  }

  .nrs-contact__submit {
    width: 264px;
    max-width: 100%;
    margin: 30px auto 0;
  }

}

/* ==============================
   小さいスマートフォン
============================== */

@media screen and (max-width: 568px) {

  .nrs-contact__field input[type="text"],
  .nrs-contact__field input[type="email"],
  .nrs-contact__field input[type="tel"],
  .nrs-contact__field input[type="url"] {
    width: 100%;
    font-size: 16px;
  }

  .nrs-contact__field select {
    width: 100%;
    font-size: 16px;
  }

  .nrs-contact__field textarea {
    width: 100%;
    font-size: 16px;
  }

}