/*-------------------------

  初期設定

-------------------------*/

.contactForm-agree{
  font-size: 1.2rem;
  margin: 24px auto;
}

/*-----------------------------

    input 初期値リセット

------------------------------*/
input{
  /* border: 0.5px solid #707070; */
  outline: none;
  border: none;
  height: 40px;
  width: 80%;
  max-width: 100%;
  padding-left: 8px;
  /* background: #F7F3E7; */
}

@media screen and (max-width:767px){
  input{
    height: auto;
  }
}
textarea{
  width: 80%;
  background: #F7F3E7;
  padding: 8px;
  height: 140px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="checkbox"],
input[type="submit"],
textarea{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

}

/*-----------------------------

    select 初期値リセット

------------------------------*/

select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0.5px solid #707070;
  outline: none;
  color:#434343;
}

/*------------------------

         ラジオボタン

------------------------------*/

/* 初期段階のチェックボックスを消す */
input[type="radio"] {
  display: none;
}
.wpcf7-form-control.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  /* align-items: center; */
}

input[type="radio"]:checked+ .wpcf7-list-item-label:after{
  display: inline-block;
}

.wpcf7-list-item{
  margin-right: 12px;
}

/* チェックボックスの疑似要素 */
.wpcf7-list-item-label{
  color:#434343;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  position: relative;
}


/* ラジオボタン 外側 */
.wpcf7-list-item-label:before {
  content: '';
  border: 1px solid #e2e2e2;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 50%;
}
/*--------------------------------

leftの数値
外側 width/2 - 内側 width/2 で産出

----------------------------*/

/* ラジオボタン内側 */
.wpcf7-list-item-label:after {
  content: '';
  display: inline-block;
  display: none;
  width: 14px;
  height: 14px;
  background: #2E385C;
  vertical-align: middle;
  border-radius: 50%;
  position: absolute;
  left:3px;
}




/*-------------------------------

           form設定

------------------------------------*/


form{
  /* width: 960px; */
  width: 80%;
  max-width: 100%;
  margin: auto;
}
form dl{
  width: 100%;
  display: flex;
  border: .5px solid #BBB0B0;
}
@media screen and (max-width:767px){
  form dl{
    border: none;
    display: block;
    margin-bottom: 16px;
  }
}


form dl dt{
  width:26%;
  text-align: left;
  background: #F6F1F1;
  font-size: 1.3rem;
  /* ddの項目を中央寄せ */
  display: flex;
  align-items: center;
  padding-left: 12px;

  position: relative;
}

@media screen and (max-width:767px){
  form dl dt{
    font-size: 1.3rem;
    width: 100%;
    border: none;
    text-align: left;
    line-height: 2;
    /* margin-bottom: 8px; */
  }
}

form dl dd{
  flex: 1;
  padding: 16px 12px;
  background: #FFFFFF;
}

.top__contactform__container form dl dd{
  padding: 8px;
}
@media screen and (max-width:767px){
  form dl dd{
    font-size: 1.3rem;
    width: 100%;
    padding: 8px;
  }
}

/*---------------------------------

    contactform7での設定関連

-----------------------------------*/

/* wordpressでinput要素などの中央配置する場合に設定する場所 */
.wpcf7-form-control-wrap {
  display: block;
  height: 100%;
}
/*問い合わせフォームの上部に表示される */
/* エラーメッセージの非表示設定 */
.screen-reader-response{
  display: none;
}
/*メールフォームrecaptcha中央配置*/
.wpcf7-recaptcha > div {
  margin: 32px auto;
}

/* 「入力内容に問題があります」の設定 */
.wpcf7-response-output{
  font-size: 2.0rem;
  margin-bottom: 40px;
  text-align: center;
}

/* エラーメッセージの非表示 */
span.wpcf7-not-valid-tip{
  display: none !important;
}

/* 必須項目欄が未入力時に背景色を変更 */
.wpcf7 .wpcf7-not-valid {
  background: pink;
  border-radius: 0;
}

/* 承諾ボタンカスタマイズ */
.wpcf7-acceptance{
  text-align: center;
  display: block;
}

.wpcf7-acceptance  .wpcf7-list-item-label:before {
  content: '';
  border: 1px solid #454545;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius:0;
}

.wpcf7-acceptance  .wpcf7-list-item-label:after{
  content: '';
  display: none;
  width: 23px;
  height: 23px;
  background: transparent;
  background-image: url(../image/check.png);
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  top:0;
  left:1px;
}
@media screen and (max-width:650px){
  .wpcf7-acceptance  .wpcf7-list-item-label:after{
    top:-5px;
  }

}

input[type="checkbox"]:checked+ .wpcf7-acceptance  .wpcf7-list-item-label:after{
  display: inline-block;
}








/* その他・ご要望の設定 */
/* textarea{
  width: 80%;
  font-size: 60%;
  height: 120px;
  padding:8px;
  outline: none;
} */
@media screen and (max-width:767px){
  textarea{
    width: 100%;
    height: 80px;
  }
}


/* 相談内容の設定 */
.checkbox_text{
  font-size: 1.6rem;
}
.checkbox_sen{
  font-size: 1.4rem;
}
input[type='checkbox']{
  display: none;
}

input[type="checkbox"]+label {
  display: block;
  position: relative;
  margin-bottom: 16px;
  padding-left: 24px;
}

input[type="checkbox"]+label::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #FFFFFF;
}
@media screen and (max-width:960px){
  input[type="checkbox"]+label::before {
    width: 16px;
    height: 16px;
    top:4px;
  }

}

input[type="checkbox"]:checked + label::after {
  content: "";
  display: block;
  background-image: url(../image/contact_check.png);
  background-size: cover;
  position: absolute;
  top: 0;
  left: 1px;
  width: 18px;
  height: 18px;
}




/* error */
.error{
  color:red;
  font-size: 1.8rem;
}

@media screen and (max-width:767px){
  /* 相談内容の設定 */
  .checkbox_text{
    font-size: 1.3rem;
  }
  .checkbox_sen{
    font-size: 1.0rem;
  }


}

/* 提出ボタン */

input[type="submit"]{
  display: block;
  /* margin: 48px auto; */
  margin: 0 auto;
  font-size: 1.6rem;
  color: #FFFFFF;
  transition:  all 0.6s;
  width: 300px;
  height: 45px;
  line-height: 45px;
  background: #d3d3d3;
  border: none;
  outline: none;
  box-shadow: 0 3px 6px #00000029;
}
@media screen and (max-width:767px){
  input[type="submit"]{
    margin: 16px auto;
    width: 100%;
    border-radius: 0;
  }
}
input[type="submit"]:hover{
  opacity: 0.5;
}


/* thanks */
.contact_sen_box{
  text-align: center;
}
.contact_sen_box p{
  line-height: 2;
}
