/* =========================
   資料請求フォーム
========================= */

/* -------------------------
   ページ全体
------------------------- */
.wp-site-blocks{
  padding-top: 60px;
  padding-bottom: 60px;
}

.wpcf7{
  max-width: 900px;
  margin: 80px auto 0;
}

.form-lead{
  margin: 18px 0 28px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

/* -------------------------
   ロゴ
------------------------- */
.request-form-logo img{
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

/* -------------------------
   ページタイトル
------------------------- */
.wp-block-heading{
  text-align: center !important;
  font-size: 30px !important;
  font-weight: 500 !important;
  letter-spacing: .05em;
  margin: 30px 0;
  position: relative;
}

.wp-block-post-title {
  text-align: center;
  font-size: 30px;
  margin-bottom: 30px;
}

/* -------------------------
   STEPナビ
------------------------- */
.form-step{
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 20px auto 40px;
  max-width: 700px;
  overflow: hidden;
}

.form-step .step{
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: #c9c9c9;
  color: #222;
  text-align: center;
  padding: 8px 28px 8px 40px;
  box-sizing: border-box;
}

.form-step .step + .step{
  margin-left: 8px;
}

.form-step .step::after{
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -26px;
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-left: 26px solid #c9c9c9;
  z-index: 2;
}

.form-step .step:not(:first-child)::before{
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-left: 26px solid #fff;
  z-index: 1;
}

.form-step .step:last-child::after{
  display: none;
}

.form-step .step span{
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  margin-bottom: 4px;
}

.form-step .step p{
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  color: inherit;
}

.form-step .step.active{
  background: #009d70;
  color: #fff;
}

.form-step .step.active::after{
  border-left-color: #009d70;
}

/* -------------------------
   フォーム共通
------------------------- */
.cf7-row{
  margin: 0 0 22px;
}

.cf7-row p{
  margin: 0;
}

.cf7-row br{
  display: none;
}

.cf7-row > p{
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 28px;
  align-items: center;
  margin: 0;
}

.cf7-row .cf7-label{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  box-sizing: border-box;
  text-align: left;
}

.cf7-row .wpcf7-form-control-wrap{
  display: block;
  width: 100%;
}

/* 性別行だけ別構造 */
.cf7-row:has(.cf7-inline){
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 28px;
  align-items: center;
}

.cf7-row:has(.cf7-inline) > p{
  display: block;
  margin: 0;
}

.cf7-row:has(.cf7-inline) .cf7-label{
  padding-top: 0;
}

/* -------------------------
   必須バッジ
------------------------- */
.required{
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 4px;
  background: #e60012;
  color: #fff;
  font-weight: 700;
  margin-left: 8px;
  transform: translateY(-1px);
}

/* -------------------------
   入力UI
------------------------- */
.wpcf7 input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea{
  width: 100%;
  height: 42px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  font-size: 15px;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus{
  outline: none;
  border-color: #f39800;
  box-shadow: 0 0 0 3px rgba(243,152,0,.15);
}

.wpcf7 ::placeholder{
  color: #9aa0a6;
}

/* -------------------------
   ラジオ（性別）
------------------------- */
.cf7-inline{
  display: flex;
  align-items: center;
  margin: 0;
}

.cf7-radio-inline .wpcf7-list-item{
  margin: 0 22px 0 0;
}

.cf7-radio-inline label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1.2;
}

.cf7-radio-inline input[type="radio"]{
  width: 18px;
  height: 18px;
  margin: 0;
}

.cf7-radio-inline .wpcf7-list-item-label{
  font-size: 15px;
}

/* -------------------------
   個人情報ボックス
------------------------- */
.privacy-box{
  margin: 40px 0 40px;
  padding: 40px 0 0;
  border-top: 1px solid #e9e9e9;
}

.privacy-box h3{
  margin: 0 0 10px;
  font-size: 16px;
}

.privacy-box p{
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #444;
}

/* -------------------------
   同意チェック
------------------------- */
.cf7-accept{
  margin-top: 14px;
}

.cf7-accept .wpcf7-form-control-wrap{
  display: block;
  text-align: center;
  font-size: 18px;
}

.cf7-accept .wpcf7-list-item{
  display: inline-block;
  margin: 0;
}

.cf7-accept .wpcf7-list-item label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.4;
  vertical-align: middle;
}

.cf7-accept .wpcf7-list-item input[type="checkbox"]{
  width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
}

.cf7-accept .wpcf7-list-item-label{
  display: inline;
  margin: 0;
}

/* -------------------------
   ボタン
------------------------- */
.cf7-actions{
  margin-top: 26px;
  text-align: center;
}

.wpcf7 input[type="submit"]{
  width: min(420px, 100%);
  background: #c63f4b;
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.wpcf7 input[type="submit"]:hover{
  opacity: .92;
}

/* -------------------------
   エラー
------------------------- */
.wpcf7-not-valid-tip {
  font-size: 16px;
  line-height: 1.4;
  margin-top: 4px;
  color: #e60023;
  display: block;
  text-align: left;
}
.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #c33;

  background: #fff5f5;
  border: 1px solid #f3c2c2 !important;
  border-radius: 6px;
}
.wpcf7 form.sent .wpcf7-response-output {
  color: #2a7a4b;
  background: #edf9f1;
  border: 1px solid #bfe5cc;
}

/* =========================
   SP
========================= */
@media (max-width: 750px){

  .wp-site-blocks{
    padding: 40px 16px;
  }

  .wpcf7{
    margin: 40px auto 0;
    max-width: 100%;
  }

  .request-form-logo img{
    width: 200px;
    margin-bottom: 16px;
  }

  .wp-block-heading{
    font-size: 22px !important;
    margin: 20px 0;
    line-height: 1.5;
  }
  .wp-block-post-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
  }
  .form-step{
    margin: 16px auto 28px;
  }

  .form-step .step{
    padding: 10px 16px 10px 24px;
  }

  .form-step .step::after{
    right: -18px;
    border-top-width: 30px;
    border-bottom-width: 30px;
    border-left-width: 18px;
  }

  .form-step .step:not(:first-child)::before{
    border-top-width: 30px;
    border-bottom-width: 30px;
    border-left-width: 18px;
  }

  .form-step .step span{
    font-size: 11px;
    margin-bottom: 2px;
  }

  .form-step .step p{
    font-size: 11px;
  }

  /* スマホは縦並び：項目 → その下にフォーム */
  .cf7-row > p{
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .cf7-row:has(.cf7-inline){
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .cf7-row .cf7-label{
    font-size: 16px;
    padding-top: 0;
  }

  .wpcf7 input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
  .wpcf7 select,
  .wpcf7 textarea{
    height: 44px;
    font-size: 14px;
  }

  .cf7-radio-inline .wpcf7-list-item-label{
    font-size: 14px;
  }

  .privacy-box{
    margin: 32px 0 32px;
    padding-top: 32px;
  }

  .privacy-box h3{
    font-size: 15px;
  }

  .privacy-box p{
    font-size: 12px;
    line-height: 1.8;
  }

  .cf7-accept .wpcf7-form-control-wrap{
    font-size: 16px;
  }

  .wpcf7 input[type="submit"]{
    width: 100%;
    padding: 16px;
    font-size: 15px;
  }
    
    
    
/* -------------------------
   エラー
------------------------- */
.wpcf7-not-valid-tip {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 4px;
  color: #e60023;
  display: block;
  text-align: left;
}   
.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #c33;

  background: #fff5f5;
  border: 1px solid #f3c2c2 !important;
  border-radius: 6px;
}
.wpcf7 form.sent .wpcf7-response-output {
  color: #2a7a4b;
  background: #edf9f1;
  border: 1px solid #bfe5cc;
} 
}

.step-1 .step:nth-child(1){
background:#009d70;
color:#fff;
}

.step-2 .step:nth-child(2){
background:#009d70;
color:#fff;
}

.step-3 .step:nth-child(3){
background:#009d70;
color:#fff;
}
/* STEP2 矢印 */

.step-2 .step:nth-child(2)::after{
border-left-color:#009d70;
}
.step-3 .step:nth-child(3)::after{
border-left-color:#009d70;
}

/* STEP2ページ */

.step-2 .step:nth-child(1),
.step-2 .step:nth-child(2){
  background:#009d70;
  color:#fff;
}

.step-2 .step:nth-child(1)::after,
.step-2 .step:nth-child(2)::after{
  border-left-color:#009d70;
}

/* STEP3ページ */

.step-3 .step:nth-child(1),
.step-3 .step:nth-child(2),
.step-3 .step:nth-child(3){
  background:#009d70;
  color:#fff;
}

/* STEP3矢印 */

.step-3 .step:nth-child(1)::after,
.step-3 .step:nth-child(2)::after,
.step-3 .step:nth-child(3)::after{
  border-left-color:#009d70;
}

/* 確認画面 */

.wpcf7 form input[readonly],
.wpcf7 form textarea[readonly],
.wpcf7 form select[readonly]{
border:none;
background:transparent;
box-shadow:none;
pointer-events:none;
padding:0;
}

/* 確認画面 */

.wpcf7 form input[readonly]{
border:none;
background:transparent;
padding:0;
pointer-events:none;
}

/* previous ボタン */
.wpcf7-previous{
  width: 100%;
  height: 56px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}

.wpcf7-previous:hover{
  opacity: .9;
}

/* 完了メッセージ */

.form-complete{
text-align:center;
margin-top:40px;
font-size:18px;
line-height:1.8;
}

.form-complete p{
margin:0;
}


.wp-block-post-content p{
  margin: 0 0 30px;
}

.request-form-step3 .wp-block-post-content,
.form-complete{
  text-align: center;
  margin: 40px auto 0;
  font-size: 18px;
  line-height: 1.8;
}
.wp-block-post-content{
  text-align: center;
  margin-top: 40px;
}


/* ボタン共通 */

.cf7-actions{
text-align:center;
}

.cf7-actions input{
width:360px;
height:56px;
border-radius:8px;
font-size:16px;
cursor:pointer;
}

/* 戻るボタン */

.wpcf7-previous{
background:#e5e5e5;
border:1px solid #d0d0d0;
color:#333;
margin-bottom:16px;
}

/* 送信ボタン */

.btn-primary{
background:#c7363b;
border:none;
color:#fff;
}

.btn-primary:hover{
opacity:.9;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea{
border-radius:8px;
background:#fff;
font-size:15px;
}


/* 確認画面 */

.step-2 input,
.step-2 select,
.step-2 textarea{
border:none !important;
background:transparent !important;
padding:0 !important;
height:auto !important;
}

.step-2 input[readonly]{
border:none;
background:transparent;
pointer-events:none;
font-size:16px;
}


/* =========================
   STEP2確認画面だけ枠なし表示
========================= */

/* STEP2確認フォームのIDに合わせて指定 */
#wpcf7-f077ced6-o1 input[readonly],
#wpcf7-f077ced6-o1 input[type="date"],
#wpcf7-f077ced6-o1 input[type="text"],
#wpcf7-f077ced6-o1 input[type="tel"],
#wpcf7-f077ced6-o1 input[type="email"],
#wpcf7-f077ced6-o1 input[type="number"]{
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  font-size: 16px !important;
  color: #222 !important;
}

/* 戻る・送信ボタンには影響させない */
#wpcf7-f077ced6-o1 .wpcf7-previous,
#wpcf7-f077ced6-o1 .wpcf7-submit{
  height: 56px !important;
  padding: 0 20px !important;
  border-radius: 8px !important;
}

/* 確認画面の各行の下線だけにしたい場合 */
#wpcf7-f077ced6-o1 .cf7-row{
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

/* =========================
   STEP2確認画面専用
========================= */

.cf7-confirm-field{
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  pointer-events: none !important;
  font-size: 16px !important;
  color: #222 !important;
}

.cf7-confirm-field:focus{
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 確認画面っぽく少し余白 */
.step-2 .cf7-row{
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e9e9e9;
}

/* 建物名など空欄でも高さを保つ */
.step-2 .cf7-confirm-field[value=""]{
  min-height: 1.4em;
}



/* 戻るボタン */

.wpcf7-previous{
width:360px;
height:56px;
border-radius:8px;
background:#e5e5e5;
border:1px solid #d0d0d0;
color:#333;
font-size:16px;
cursor:pointer;
display:block;
margin:0 auto 16px;
}

/* hover */

.wpcf7-previous:hover{
background:#dcdcdc;
}

.wpcf7 input.wpcf7-previous{
width:420px !important;
height:56px !important;
border-radius:6px !important;
background:#e5e5e5 !important;
border:1px solid #d0d0d0 !important;
color:#333 !important;
font-size:16px !important;
cursor:pointer;
display:block;
margin:0 auto 16px;
}

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

/* 確認画面のボタンまわりの改行を消す */
.cf7-actions br{
  display: none;
}

/* ボタンを縦並びで整える */
.cf7-actions p{
  margin: 0;
}

.cf7-actions .wpcf7-previous{
  display: block;
  margin: 0 auto 16px;
}

.cf7-actions .wpcf7-submit{
  display: block;
  margin: 0 auto;
}


/* 確認画面：個人情報同意の表示 */
.cf7-row-privacy-confirm{
  margin-top: 18px;
  border-bottom: 1px solid #e9e9e9;
  padding-bottom: 14px;
}

.cf7-confirm-text{
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

/* SP */
@media (max-width: 750px){
  .cf7-confirm-text{
    font-size: 14px;
  }
}

.cf7-confirm-field{
display:block;
width:100%;
font-size:16px;
line-height:1.6;
font-weight: 500;   
text-align: left;    
}
/* 確認画面だけラベル余白を消す */
.step-2 .cf7-row .cf7-label{
padding-top:0;
}

/* 確認画面用フォームIDで指定 */
#wpcf7-f077ced6-o1 .cf7-label{
padding-top:0;
}

/* STEP2確認画面だけ */
#wpcf7-f077ced6-o1 .cf7-row .cf7-label{
padding-top:0 !important;
}

#wpcf7-f077ced6-o1 .cf7-row > p,
#wpcf7-f077ced6-o2 .cf7-row > p{
    align-items: center !important;
}

#wpcf7-f077ced6-o1 .cf7-row .cf7-label,
#wpcf7-f077ced6-o2 .cf7-row .cf7-label{
    padding-top: 0 !important;
}

#wpcf7-f39-o1 .cf7-row .cf7-label{
  padding-top: 0 !important;
}

#wpcf7-f39-o1 .cf7-row > p{
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 28px;
  align-items: center;
  margin: 0;
}

