/* セクションタイトル */
.section-title {
  display: flex;
  align-items: center;
  margin: 160px 0 50px;
  color: #666;
  font-size: 1.5em;
  font-weight: 600;
}

.contact_title {
  display: block;
  text-align: center;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 4px;
  margin-bottom: 40px;
}


.section-title:first-child {
  margin-top: 0;
}

.section-title:before,
.section-title:after {
  content: "";
  height: 1px;
  flex-grow: 1;
}

.section-title:before {
  background: linear-gradient(-90deg, #666, transparent);
  margin-right: 1rem;
}

.section-title:after {
  background: linear-gradient(90deg, #666, transparent);
  margin-left: 1rem;
}


/* 予約日選択 条件付き */
.reserve_date {
  display: flex;
  align-items: center;
  padding-bottom: 20px;
  width: 100%;
}

.reserve_date dt {
  width: 35%;
}

.reserve_date dd {
  width: 65%;
}



/* テキストボックス 横並び */
.text-row {
  display: flex;
  justify-content: space-between;
}

/* テキストボックス 横2つ並び */
.two-box {
  width: 49%;
}

/* 生年月日ボックス 横サイズ */
.birth-box {
  width: 30%;
}





.wpcf7-free-text {
  margin-top: 10px;
}

.cf7__list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cf7__list dt:nth-of-type(n + 2),
.cf7__list dd:nth-of-type(n + 2) {
  margin-top: 30px;
}

.cf7__list dt {
  width: 45%;
  padding-top: 15px;
}

.cf7__list dd {
  width: 55%;
}

/* 必須・任意 */
.cf7__required,
.cf7__optional {
  margin-right: 15px;
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  vertical-align: 1px;
}

.cf7__required {
  background: #BE1D1D;
}

.cf7__optional {
  background: #878D8E;
}

/* input・textarea仕様 */
.cf7__list dd input[type="text"],
.cf7__list dd input[type="tel"],
.cf7__list dd input[type="number"],
.cf7__list dd input[type="email"],
.cf7__list dd input[type="date"],
.cf7__list dd textarea,
.cf7__conditions_list dd input[type="date"],
.cf7__conditions_list dd input[type="text"],
.cf7__conditions_list dd input[type="tel"],
.cf7__conditions_list dd input[type="email"],
.cf7__conditions_list dd input[type="date"],
.cf7__conditions_list dd textarea {
  width: 100%;
  padding: 15px 12px;
  margin-bottom: 5px;
  background: #F4F4F4;
  border: 1px solid #d5d5d5;
}

/* 分岐 */
.condition {
  width: 100%;
  margin: 15px 0;
}

/* ドロップダウンメニュー */
.cf7__select {
  position: relative;
}

.cf7__select:before {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 10;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid #000;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  pointer-events: none;
  content: '';
}


.cf7__select select {
  width: 100%;
  padding: 19px 12px;
  background: #F4F4F4;
  color: #000000;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* チェックボックス・ラジオボタン */
.cf7__list dd .wpcf7-checkbox,
.cf7__list dd .wpcf7-radio {
  display: block;
  padding: 15px 0 10px;
}

/* 縦並び（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item {
  display: block;
  margin: 0;
}

.cf7__list dd .wpcf7-list-item:nth-child(n + 2) {
  margin-top: 18px;
}

/* マウスカーソル（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item label {
  cursor: pointer;
}

/* チェックボックス・ラジオボタン */
input[type="checkbox"],
input[type="radio"] {
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid #bcbcbc;
  vertical-align: -3px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* チェックボックス */
input[type="checkbox"]:checked {
  border: 1px solid #000;
  background: #000;
}

input[type="checkbox"]:checked:before {
  position: absolute;
  top: 2px;
  left: 5px;
  transform: rotate(50deg);
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: '';
}

/* ラジオボタン */
input[type="radio"] {
  border-radius: 50%;
}

input[type="radio"]:checked:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #000;
  content: '';
}

/* プレースホルダー */
/* Google Chrome / Safari / Mozilla Firefox / Opera */
.cf7__list dd input[type="text"]::placeholder,
.cf7__list dd input[type="tel"]::placeholder,
.cf7__list dd input[type="email"]::placeholder,
.cf7__list dd textarea::placeholder {
  color: #a5a5a5;
}

/* Microsoft Edge */
.cf7__list dd input[type="text"]::-ms-input-placeholder,
.cf7__list dd input[type="tel"]::-ms-input-placeholder,
.cf7__list dd input[type="email"]::-ms-input-placeholder,
.cf7__list dd textarea::-ms-input-placeholder {
  color: #a5a5a5;
}

/* Internet Explorer */
.cf7__list dd input[type="text"]:-ms-input-placeholder,
.cf7__list dd input[type="tel"]:-ms-input-placeholder,
.cf7__list dd input[type="email"]:-ms-input-placeholder,
.cf7__list dd textarea:-ms-input-placeholder {
  color: #a5a5a5;
}

/* 送信ボタン */
.cf7__button {
  display: flex;
  justify-content: center;
  text-align: center;
  column-gap: 20px;
}


div.wpcf7 .wpcf7-spinner {
  display: none !important;
}

input[type="submit"],
.back_btn {
  width: 260px;
  height: 60px;
  background: #000;
  color: #fff;
  transition: opacity .6s;
  text-align: center;
}

input[type="submit"]:hover,
.back_btn:hover {
  opacity: .6;
}

/* ajax-loader */
.wpcf7-spinner {
  vertical-align: middle;
}


/* リフォーム・増改築 条件付き */
.reform {
  display: flex;
  width: 100%;
}

.reform dt {
  width: 45%;
}

.reform dd {
  width: 55%;
}



/* 確認画面 */
.confirm_wrapper {
  width: 100%;
  margin: 0 auto;
}

.confirm_list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 50px;
  line-height: 1.4;
}

.confirm_list dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dotted #969696;
  padding: 20px 0;
}

.confirm_list dt {
  width: 40%;
}

.confirm_list dd {
  width: 50%;
}



/* サンクスページ */
.thanks_message {
  text-align: center;
  font-size: 1.3em;
  font-weight: 500;
  line-height: 1.5;
}

.home_button {
  background-color: #000;
  color: #fff;
  padding: 20px 0;
  width: 30%;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 80px;
  text-align: center;
}




@media(max-width:1040px) {

  /* セクションタイトル */
  .section-title {
    margin: 100px 0 50px;
  }

  .contact_title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  /* 予約日選択 条件付き */
  .reserve_date {
    display: block
  }

  .reserve_date dt {
    vertical-align: middle;
    margin-bottom: 15px;
    width: 100%;
  }

  .reserve_date dd {
    width: 100%;
  }

  /* リフォーム・増改築 条件付き */
  .condition {
    margin: 35px 0 0;
  }

  .reform {
    display: block
  }

  .reform dt {
    vertical-align: middle;
    margin-bottom: 15px;
    width: 100%;
  }

  .reform dd {
    width: 100%;
  }


  /* 確認画面 */
  .confirm_list {
    font-size: 0.9em;
  }

  .confirm_list dt {
    width: 30%;
  }

  .confirm_list dd {
    width: 60%;
  }

  .cf7__list dt {
    width: 100%;
    margin-bottom: 15px;
    padding-top: 0;
  }

  .cf7__list dd {
    width: 100%;
  }

  .cf7__list dd:nth-of-type(n + 2) {
    margin-top: 0;
  }

  .cf7__list dd .wpcf7-checkbox,
  .cf7__list dd .wpcf7-radio {
    padding: 15px 0 0;
  }

  .confirm_message {
    text-align: center;
    margin-bottom: 40px;
  }


  /* 送信ボタン */
  .cf7__button {
    flex-direction: column;
    row-gap: 20px;
  }

  input[type="submit"],
  .back_btn {
    width: 100%;
    height: 56px;
  }

  /* サンクスページ */
  .home_button {
    width: 100%;
  }


}