.caution {
  margin: 0 auto;
  color: red;
  width: 70%;
  text-align: right;
  font-size: 80%;
}
/****フォームスタイル****/
/*ContactForm7カスタマイズ*/
table.CF7_table {
  width: 70%;
  margin: 0 auto;
}

table.CF7_table tr {
  border-top: 1px solid #e5e5e5;
}

.single .entry-content table.CF7_table,
.page .entry-content table.CF7_table {
  display: table;
}
table.CF7_table td,
#wpcf7cpcnf td {
  border: 1px solid #e5e5e5;
  padding: 0;
}
table.CF7_table td p {
  margin: 0;
  font-size: 100%;
}

/*入力欄*/
.wpcf7-form-control-wrap {
  position: relative;
  display: block;
  height: 100%;
}

.CF7_table input,
.CF7_table textarea {
  border: none;
  height: 100%;
  width: 100%;
  font-size: 80%;
  padding: 1em;
}
.CF7_table select {
  width: 100%;
  height: 100%;
  font-size: 80%;
  padding: 1em;
  border: 1px solid #e5e5e5;
  color: #555;
}

.CF7_table ::placeholder {
  color: #797979;
}
.priv td {
  font-size: 80% !important;
}
.priv input {
  width: 1em;
}
.priv_dat {
  padding-top: 0 !important;
}
.priv p {
  padding: 1em;
}
.priv .wpcf7-list-item {
  margin: 0;
}
.wpcf7-not-valid-tip {
  font-size: 70% !important;
  line-height: 100%;
  margin: 0em 0 0.5em 1em !important;
}

/*「必須」文字*/
.CF7_req p {
  margin-left: 0.5em;
}
.CF7_req p::after {
  content: "*";
  font-size: 0.9em;
  color: red;
  margin-right: -0.4em;
}

/*「任意」文字*/
.CF7_unreq {
  font-size: 0.9em;
  padding: 5px;
  background: #bdbdbd; /*グレー*/
  color: #fff;
  border-radius: 3px;
  margin-right: 1em;
}

/*資料請求*/
.material p::after {
  content: "当会員の中でご希望のハウスメーカー名";
  display: block;
  font-size: 80%;
  line-height: 120%;
  font-weight: 500;
  letter-spacing: 0;
  width: 10em;
  margin: auto;
}

/* タイトル列 */
@media screen and (min-width: 768px) {
  .CF7_table th,
  #wpcf7cpcnf th {
    width: 20%;
    background-color: #e9edf2;
    font-size: 80%;
    font-weight: 500;
  }
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  table.CF7_table {
    width: 95%;
  }
  .CF7_table tr,
  .CF7_table td,
  .CF7_table th {
    display: block;
    width: 100%;
    line-height: 2.5em;
  }
  .CF7_table th {
    background-color: #ebedf5;
  }
}

/* 「送信する」ボタン */
.wpcf7 input.wpcf7-submit,
button.wpcf7cp-cfm-edit-btn,
button.wpcf7-submit {
  border: 1px solid #555;
  color: #555;
  font-size: 100%;
  font-weight: 500;
  margin: 3em auto 0 auto;
  height: 2em;
  letter-spacing: 0.5em;
  text-align: center;
  padding: 0 0 0 0.5em;
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
/*確認*/
.wpcf7 input.wpcf7-submit {
  width: 8em;
  background-color: #f2f2f2;
  filter: drop-shadow(3px 3px 4px #ccc);
}
.wpcf7 input.wpcf7-submit:hover {
  background: #555;
  color: #fff;
  transform: scale(0.95);
  filter: drop-shadow(2px 2px 3px #ccc);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
/*戻る*/
button.wpcf7cp-cfm-edit-btn {
  width: 10em;
  background-color: #e89439;
  color: #fff;
  filter: drop-shadow(3px 3px 4px #ccc);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
button.wpcf7cp-cfm-edit-btn:hover {
  transform: scale(0.95);
  filter: drop-shadow(2px 2px 3px #ccc);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
/*送信*/
button.wpcf7-submit {
  width: 10em;
  background-color: #a5b4c8;
  color: #fff;
  letter-spacing: 0.1em;
  filter: drop-shadow(3px 3px 4px #ccc);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
button.wpcf7-submit:hover {
  transform: scale(0.95);
  filter: drop-shadow(2px 2px 3px #ccc);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.CF7_btn {
  text-align: center;
  margin-top: 20px;
}

.wpcf7-spinner {
  width: 0;
  margin: 0;
}

.form_txt {
  width: 70%;
  font-size: 80%;
  line-height: 120%;
  margin-left: 30%;
}
.wpcf7cp-btns {
  width: 70%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*確認画面*/
#wpcf7cpcnf table {
  width: 70%;
  margin: auto;
}
#wpcf7cpcnf tr th p:empty:before {
  background-color: #e9edf2;
  font-size: 100%;
  font-weight: 500;
}
#wpcf7cpcnf tr:nth-child(1) th p:empty:before {
  content: "お名前";
}
#wpcf7cpcnf tr:nth-child(2) th p:empty:before {
  content: "ふりがな";
}
#wpcf7cpcnf tr:nth-child(3) th p:empty:before {
  content: "Mail";
}
#wpcf7cpcnf tr:nth-child(4) th p:empty:before {
  content: "郵便番号";
}
#wpcf7cpcnf tr:nth-child(5) th p:empty:before {
  content: "ご住所";
}
#wpcf7cpcnf tr:nth-child(6) th p:empty:before {
  content: "資料請求会社";
}
#wpcf7cpcnf tr:nth-child(9) th p:empty:before {
  content: "メッセージ本文";
}
#wpcf7cpcnf tr:nth-child(10) th p:empty:before {
  content: "個人情報確認";
}
#wpcf7cpcnf table p {
  padding: 1em;
  margin: 0;
}
/****フォームスタイル****/

/*****************************************************/
.contact_fbg {
  background: #a5b4c8;
  background-image: url(../../common/images/contact/foot_bg.svg);
}
/***********************************************************************/

/* --- レスポンシブ切替 Tablet--- */
@media screen and (max-width: 768px) {
} /* --- レスポンシブ切替 Tablet--- */

/***********************************************************************/

/* --- レスポンシブ切替 Mobile--- */
@media screen and (max-width: 480px) {
  /*ios style Reset*/
  .CF7_table select {
    -webkit-appearance: none; /* iOS Safariで必要 */
    appearance: none; /* 通常のブラウザで必要 */
    background-color: #fff; /* 例：背景色を白に */
    border: 1px solid #ccc; /* 例：ボーダーを追加 */
    padding: 5px; /* 例：パディングを設定 */
    border-radius: 4px; /* 例：角を丸くする */
  }
  .head_ke_h1 span {
    letter-spacing: 0.25em;
  }
  .caution {
    width: 100%;
    font-size: 120%;
    line-height: 140%;
    margin: 0 0 1em 0;
    text-align: left;
  }
  /*FORM*/
  table.CF7_table {
    width: 100%;
  }
  table.CF7_table tr {
    height: 100%;
  }
  .CF7_table th,
  table.CF7_table td,
  #wpcf7cpcnf td {
    min-height: 4em;
  }
  table.CF7_table td p {
    height: 100%;
    font-size: 120%;
  }
  .CF7_req p {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120%;
    line-height: 300%;
  }
  .material {
    height: 6em !important;
  }
  .material p::after {
    width: 100%;
  }
  .form_txt {
    margin: 1em 0;
    width: 100%;
  }
  /*確認画面*/
  #wpcf7cpcnf table {
    width: 100%;
  }
  #wpcf7cpcnf th {
    display: block;
    width: 90vw;
  }
  #wpcf7cpcnf p,
  #wpcf7cpcnf td {
    width: 100%;
    display: block;
  }
  #wpcf7cpcnf th p {
    padding: 0;
    height: 3em;
  }
  #wpcf7cpcnf tr:nth-child(1) th p:empty:before,
  #wpcf7cpcnf tr th p:empty:before {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #wpcf7cpcnf tr:nth-child(7) th,
  #wpcf7cpcnf tr:nth-child(8) th {
    display: none;
  }
  div.wpcf7cp-btns {
    width: 100%;
  }
  .wpcf7-spinner {
    display: block !important;
  }
}
