/****　お問い合わせ（入力フォーム）　****/
.contact-item-wrapper, .contact-btn-wrapper, .contact-item-wrapper input, .contact-item-wrapper textarea, .privious-btn[type=button]{
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* デフォルトのマージンをリセット */
.contact-item-wrapper p{
  margin: 0px;
} 

.eael-contact-form-7 .wpcf7-form p{
	margin-bottom: 0;
}

.contact-item-wrapper{
  display: grid;
  grid-template-columns: 180px 120px 520px;
  border-bottom: solid 1px #9CA5AC;
  align-items: center;
  margin: 0 40px;
  padding: 30px 30px;
}

.contact-item-wrapper input, textarea{
  box-sizing: border-box;
}



.contact-item-wrapper input:not(.check-box-items input):not(.acceptance-wrapper input):not(.contact-btn-wrapper input), .contact-item-wrapper textarea{
  width: 500px;
}

.acceptance-wrapper{
  width: 500px;
}


/* 必須ボックス（オプションも） */
.required-box p{
  padding: 3px 10px; 
  width: 70px;
  height: 20px;
  background: red;
  text-align: center;
  color: white;
}

.required-box{
  justify-self: center;
}


.required-box.not-required p{
   background: #6D757A;
}

.contact-item-wrapper input, .contact-item-wrapper textarea, .acceptance-wrapper p:first-child,
.contact-item-wrapper input[type=text], .contact-item-wrapper .eael-contact-form input[type=email], .contact-item-wrapper input[type=tel]
{
  background: #F5F5F7 !important;
  border: none;
  padding: 15px;
  font-size: 16px;
}

.contact-item-title{
  font-size: 18px;
}

.contact-item-title span{
  font-size: 16px;
}


/* ご相談内容（チェックボックス） */
.check-box-items{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.check-box-items label{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 15px 0 0;
  padding: 15px;
  border-radius: 8px;
  background: #F5F5F7;
}

.check-box-items span:nth-of-type(odd){
  margin-right: 15px;
}

.check-box-items span{
  margin: 0; /*デフォルトで入る1remのマージンを消す*/
}


/* 一番上のグリッドの上線 */
.contact-first-box{
  border-top: solid 1px #9CA5AC;
}



/* チェックボックスの形状  
.contact-item-wrapper input[type=checkbox] {
  opacity: 1;
}   

.check-box-items label{
  position: relative;
}

.check-box-items span:after {
  content: "";
  background-image: url(https://mirashia.com/new/wp-content/uploads/2024/06/circle-check-solid.svg);
  background-size: contain;
  background-repeat:no-repeat;
  opacity: 1;
  
  text-align: center;
  display: block;  
  width: 25px;
  height: 25px;
  border-radius: 50%; 
  position: absolute;
  top: 50% ;
  transform: translateY(-50%);
  right: 10px;
}

チェック時の動作
.contact-item-wrapper input[type=checkbox]:checked　~ .check-box-items span:after{
  background-image: url();
} */





/* 同意事項 */
.acceptance-wrapper p:nth-child(2){
  font-weight: 200px;
  margin-top: 10px;
}

.acceptance-wrapper a{
	color: #1D3B56;
	text-decoration: underline;
}

.acceptance-wrapper a:hover{
	color: #E00022;
}



/* 送信ボタン */
.contact-btn-wrapper{
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.contact-btn-wrapper input[type=submit], .contact-btn-wrapper input[type=button]{
  border: 2px solid black !important;
  padding: 12px;
  background: white;
  margin-top: 80px;
  width: 240px;
  font-size: 18px;
  color: black;
  transition: .2s ease;
}


.contact-btn-wrapper input[type=submit]:hover{
  border: none;
  background: #f7b8ac !important;
  color: white;
}


/* 不備があったときのメッセージ */
.wpcf7-response-output{
  color: red;
  border-color: none;
}



/* タブレット以下で2行表示 */
@media screen and (max-width:1080px) {
  .contact-item-wrapper{ 
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    row-gap: 10px;
  }

  .contact-item-wrapper p:nth-of-type(2), .acceptance-wrapper, .check-box-wrapper p{
    grid-column-start: 1;
    grid-column-end: 3;
  }

  .contact-item-wrapper input:not(.check-box-items input):not(.acceptance-wrapper input):not(.contact-btn-wrapper input), .contact-item-wrapper textarea{
    width: 100%;  
  }
  
  .acceptance-wrapper{
    width: 100%;
  }

  /* 必須ボックスを左寄せ */
  .required-box{
    justify-self: end;
  }
}


/**** スマホ ****/
@media screen and (max-width:760px) {
  /* チェックボックスを1列表示 */
  .check-box-items{
    display: grid;
    grid-template-columns: 1fr;
  }

  .check-box-items label{
    height: 40px;
    margin-right: 0;
  }
  
  .check-box-items span:nth-of-type(odd){
    margin-right: 0;
  }

  /* 全体のパディングを減らす */
  .contact-item-wrapper{
    margin: 0 15px;
    padding: 20px 0;
  }

}

/*ローディングアイコンを非表示*/
.wpcf7-spinner{
  display: none;
}


.wpcf7-response-output{
  border: inherit !important;
}



/******************確認ページ***********************/
/*必須ボックスを非表示*/
.contact-confirmation-wrapper .required-box{
  display: none;
}

.contact-confirmation-wrapper .contact-item-wrapper{
  grid-template-columns: 1fr 3fr;
}

/* タブレット以下で表示幅変更 */
@media screen and (max-width:1080px) {
  .contact-confirmation-wrapper .contact-item-wrapper{
    grid-template-columns: 1fr 1fr;
  }
}


/* プライバシーポリシーに同意の背景を白にする */
.contact-confirmation-wrapper .acceptance-wrapper p:first-child{
  background: white;
}

/*戻るボタン*/
.contact-btn-wrapper input[type=button]:hover{
  border: none;
  background: #6D757A;
  color: white;
}


/*ボタンを横並びにする*/
.contact-confirmation-wrapper .contact-btn-wrapper input{
  margin-right: 80px;
}


/* スマホはボタンを縦並びにする */
@media screen and (max-width:1080px) {
  .contact-confirmation-wrapper .contact-btn-wrapper {
    display: block;
    text-align: center;
  }

  .contact-confirmation-wrapper .contact-btn-wrapper input:nth-of-type(2){
    margin-top: 40px;
  }
  .contact-confirmation-wrapper .contact-btn-wrapper input{
    margin-right: 0;
  }
}



/* reCAPTCHA v2を中央寄せにする */
.wpcf7-form-control-wrap.recaptcha {
    display: flex;
    justify-content: center;
}