/**
 * 問い合わせフォーム用スタイル（Contact Form 7）
 * 既存フォームデザインを適用
 * WordPress テーマの functions.php でこのファイルを enqueue してください。
 */

.form-table {
  max-width: 800px;
  margin: 0 auto;
  border: none;
}
.form-table th,
.form-table td {
  border: none;
  display: block;
  width: 100%;
}
.form-table input,
.form-table select {
  margin: 5px 0;
}
.form-table th {
  text-align: left;
  padding: 1em;
  background: #efefef;
}
.form-table td {
  padding: 1em;
}
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"] {
  width: 100%;
  margin: 5px 0;
  box-sizing: border-box;
}
.form-table textarea {
  width: 100%;
  margin: 5px 0;
  min-height: 120px;
  box-sizing: border-box;
}
.form-table .wpcf7-list-item {
  display: block;
  margin: 0;
  padding: 4px 0;
}
.form-table .hissu {
  display: inline-block;
  color: #fff;
  background: #F15A22;
  padding: 2px 4px;
  border-radius: 2px;
  line-height: 1.2em;
  float: right;
}
.form-table .ninni {
  display: inline-block;
  color: #fff;
  background: #999;
  padding: 2px 4px;
  border-radius: 2px;
  line-height: 1.2em;
  float: right;
}
.form-table label {
  cursor: pointer;
}

@media screen and (min-width: 576px) {
  .form-table th,
  .form-table td {
    display: table-cell;
  }
  .form-table th {
    padding: 1em 0;
    width: 200px;
    background: transparent;
  }
  .form-table td {
    width: auto;
    padding: 1em 0 1em 1em;
  }
}

.wpcf7 input[type="submit"] {
  margin: 30px auto 0;
  border-radius: 0;
  background: #F15A22;
  color: #fff;
  display: block;
  line-height: 3em;
  border: 1px solid #F15A22;
  transition: 0.5s;
  padding: 0.5em 2em;
  min-width: 280px;
  cursor: pointer;
}
.wpcf7 input[type="submit"]:hover {
  background: #fff;
  color: #F15A22;
}

.wpcf7 input[type="button"].wpcf7-previous {
  margin: 30px auto 0;
  border-radius: 0;
  background: #999;
  color: #fff;
  display: block;
  line-height: 3em;
  border: 1px solid #999;
  transition: 0.5s;
  padding: 0.5em 2em;
  min-width: 280px;
  cursor: pointer;
}
.wpcf7 input[type="button"].wpcf7-previous:hover {
  background: #fff;
  color: #555;
}

.form-footer {
  text-align: center;
}

.privacy-link {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

/* form-template1（ワイドフォーム用） */
.form-template1 table.form-table-template {
  border-top: 1px solid #e2d9d0;
  margin-bottom: 30px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}
.form-template1 table.form-table-template > tbody > tr > th,
.form-template1 table.form-table-template > tbody > tr > td {
  padding: 1em 2em;
  font-size: 13px !important;
}
.form-template1 table.form-table-template > tbody > tr > th {
  font-size: 13px;
  background: #f4f4f4;
}
.form-template1 table.form-table-template > tbody > tr > td {
  border-bottom: 1px solid #e2d9d0;
}
/* 見出しとテーブルの幅を揃える */
.form-template1 .referral-campaign__form-title {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.form-template1 .referral-campaign__form-title h2 {
  background: #8f7b51;
  color: #fff;
  padding: 2px 10px;
}

@media screen and (min-width: 576px) {
  .form-template1 table.form-table-template > tbody > tr > th {
    border-bottom: 1px solid #e2d9d0;
  }
}

@media screen and (min-width: 768px) {
  .form-template1.form-template1--wide table.form-table-template th {
    width: 240px;
  }
}

/* 同意チェックボックス */
.form-footer .wpcf7-list-item {
  display: block;
  margin: 1em 0;
  text-align: left;
}
.form-footer .wpcf7-list-item label {
  cursor: pointer;
}
