.form-description {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-description .bold {
font-weight: 700;
}

.contact-form-placeholder {
	max-width:1200px;
	margin: 4.62rem auto 0;
	display: block;
}

#contact-form .contact-phone {
    text-align: center;
    color: #011018;
    font-family: "Open Sans";
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2.75rem; /* 110% */
    letter-spacing: 0.05rem;
    margin-top: 1.88rem;
}
#contact .breadcrumb {
    margin-top: 0;
}

#contact-form .contact-phone::before {
    width: 1.5rem;
    content: "";
    display: inline-block;
    height: 1.5rem;
    background: url('https://www.env-value.co.jp/wp/wp-content/themes/environment-site-w/src/assets/contact/phone-icon.svg') no-repeat center/contain; /* アイコン画像 */
    margin-right: 8px; /* 文字との間隔 */
    margin-bottom: .25rem;
    vertical-align: middle; /* テキストと揃える */
}

.phone-hours {
    text-align: center;
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* .required-notice {
    margin-bottom: 4.19rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 5.95rem;
    justify-content: center;
} */

#contactForm .form-group {
    margin-bottom: 1.87rem;
    display: flex;
    align-items: flex-start;
}

#contactForm .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-right: 1rem;
    align-self: unset;
    width: 14rem;
}


.form-group .input-container {
    flex: 1;
    width: -webkit-fill-available ;
    
}

.form-group .form-item {
	padding-top: .25rem;
    font-size: 1.125rem;
    font-weight: 500;
}

#contact .submit-button {
    width: 18rem;
    padding: 1.1rem 1.5rem 1.1rem 6.8rem;
}
#contactForm .submit-button {
    text-align: center;
    padding: 1.1rem 1.5rem 1.1rem 0;
}

.submit-button:hover {
    transition: all 0.3s ease;
}
@media screen and (max-width: 768px) {

    .form-description {
        margin-top: 3.13rem;
    }
    #contactForm .form-group {
        flex-direction: column;
    }
    
}

.wpcf7 select:focus {
    background-color: #f0f8ff; /* 薄い水色など、好みで変更OK */
    outline: none;             /* デフォルトの枠を消す */
    border-color: #00547D;     /* 枠色も指定して整える */
  }
  

/* 確認画面をプラグインで追加したたため、確認画面関連のレイアウト調整 */
fieldset legend {
    display: block;
    width: 100%;
}


div.wpcf7cp-btns  {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 5rem 0 7rem !important;
}

.wpcf7cp-btns .wpcf7cp-cfm-edit-btn {
    width: 18rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    background-color: white;
    color: #00547D;
    border: 1px solid #00547D;
    text-decoration: none;
    border-radius: 1.875rem 1.90625rem 1.875rem 1.875rem;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;

}

.wpcf7cp-btns .wpcf7cp-cfm-edit-btn::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 1.58rem;
    content: "←";
    margin-left: 8px;
    font-size: 1rem;
}
.wpcf7-form-control.wpcf7-submit.has-spinner.submit-button {
    position: relative; /* 親に relative つけるの忘れずに */
  }
  
  .wpcf7-form-control.wpcf7-submit.has-spinner.submit-button::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    font-size: 1rem;
    color: white; /* ボタン背景が濃い青なので白が見やすいかも */
  }
  



.wpcf7cp-btns .wpcf7cp-cfm-submit-btn {
    width: 18rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    background-color: #00547D;
    color: white;
    border: 1px solid white;
    text-decoration: none;
    border-radius: 1.875rem 1.90625rem 1.875rem 1.875rem;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    padding: 1.1rem 5.44rem 1.1rem 5.44rem;
}

.wpcf7cp-btns .wpcf7cp-cfm-submit-btn::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1.58rem;
    content: "→";
    margin-left: 8px;
    font-size: 1rem;
}


#wpcf7cpcnf tr {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 1rem;
}

#wpcf7cpcnf th {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    height: 100%;
    align-self: center;
}

/* ==== */
.form-item.required,
.form-item.optional {
display: flex;
align-items: center;
justify-content: flex-start;
}
.form-item.required::before{
content: "必須";
background-color: #00547D;
border-color: #00547D;
color: white;
padding: 0.25rem 0.5rem;
margin-right: 1.44rem;
display: inline-flex;
align-items: center;
font-family: "Noto Sans JP";
font-size: 1.125rem;
font-style: normal;
font-weight: 500;
line-height: normal;
border-radius: 0.1875rem;
white-space: nowrap;
}

.form-item.optional::before {
content: "任意";
background-color: white;
color: #00547D;
border: solid 1px #00547D;
padding: 0.25rem 0.5rem;
margin-right: 1.22rem;
display: inline-flex;
align-items: center;
font-family: "Noto Sans JP";
font-size: 1.125rem;
font-style: normal;
font-weight: 500;
line-height: normal;
border-radius: 0.1875rem;
white-space: nowrap;
}

.wpcf7-form-control.wpcf7-checkbox.wpcf7-validates-as-required.checkbox {
    display: flex;
    flex-direction: column;
}
div#wpcf7cpcnf {
    z-index: 1 !important;
    position: initial !important;

}

@media screen and (max-width: 768px) {
    .form-item.required::before{
        margin-right: 0.6rem;
        }
        
        .form-item.optional::before {
            margin-right: 0.6rem;
        }
        .wpcf7cp-btns .wpcf7cp-cfm-edit-btn {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 3.5rem;
            background-color: white;
            color: #00547D;
            border: 1px solid #00547D;
            text-decoration: none;
            border-radius: 1.875rem 1.90625rem 1.875rem 1.875rem;
            transition: background-color 0.3s ease;
            font-size: 1rem;
            font-weight: 500;
            line-height: 1;
            margin-right: 0;
            margin-top: 0;
            width: 288px;

        }

        .wpcf7cp-btns .wpcf7cp-cfm-submit-btn  {
            margin-top: 4.8rem;
        }
    .view-all-button.slide-up-down.top-button {
        margin-bottom: 8.75rem;
    }
    div.wpcf7cp-btns {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column-reverse;
        align-items: center;
        margin-top: 0 !important;

    }
    .wpcf7-list-item label::before {
        min-height: 1.25rem;
        min-width: 1.25rem;
    }
    #contact-form /*  textのレイアウト */
    .column-text p,
    .content-detail p {
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
}
/* 確認画面時、入力フォームは非表示にする */
[data-status="custom-wpcf7cp-confirm"] .wpcf7-form {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  
  /* 確認画面以外では確認画面部分 (#wpcf7cpcnf) を非表示にする */
  [data-status]:not([data-status="custom-wpcf7cp-confirm"]) #wpcf7cpcnf {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  

  .wpcf7cp-form-hide {
    display: none;
  }

  /* スマホ、確認画面の項目の余白調整 */

@media screen and (max-width: 768px) {
    #wpcf7cpcnf th p {
    margin-bottom: .4rem;
    }
    }

/* 入力後のフォーム背景を戻す */
input:-internal-autofill-selected {
    background-color: transparent !important;
    }


    #contactForm-confirm.contact-form {
        align-items: flex-start;
        width: 100%;
        max-width: 800px;
        margin: 0 auto ;
        display: block;
    }
    #contactForm-confirm .form-group label {
        font-weight: 500;
    }
    #contactForm-confirm .form-content {
        text-align: left;
    }
    #contactForm-confirm .form-group label,
    #contactForm-confirm .form-content {
        font-size: 18px;
    }
    #contactForm-confirm .form-group {
        margin-bottom: 3rem;
    }
    #contactForm-confirm .form-submit {
        margin-top: 5rem;
        gap: 20px;
    } 
    #contactForm-confirm .submit-button {
        text-align: center;
        padding: 1.1rem 1.5rem 1.1rem 1.8rem;
    }
    .form-actions {
        margin: 5rem auto 6.25rem;
    }
    .more-button-outer {
        display: flex;
        justify-content: center;
        margin-top: 5rem;
    }
@media screen and (max-width: 1200px) {
    #contactForm-confirm .form-submit {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
    } 
    #contactForm .submit-button {
        padding: 1.1rem 1.5rem 1.1rem 0;
    }

    .confirm_area .back-button {
        text-align: center;
        padding: 1.1rem 6.2rem 1.1rem 6.4rem;
    }

    .wpcf7-list-item-label {
        width: 75%;
    }
}

.form-note {
    font-size: 1rem;
}




/* お問い合わせフォームをAIに対応するように改修するため、ページ拡充につき追加 */

/* ============================================================
   MAIN SECTIONS
   ============================================================ */
#contact .third-wrapper section {
  padding: 46px 0;
  border-bottom: 1px solid #e5e7eb;
}

#contact .third-wrapper section:nth-last-of-type(2) { border-bottom: 0; }

#contact .third-wrapper h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.5625rem;
  color: #000000;
  margin: 0 0 1.25rem;
	padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
  line-height: 1.5;
  letter-spacing: 0.0625rem;
	background:none;
}

#contact .third-wrapper h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background-color: #00547D;
}

/* ============================================================
   Topics grid
   ============================================================ */
.topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #e5e7eb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.topic { background: #ffffff; padding: 18px 24px; min-height: 120px; }
.topic .t { font-weight: 700; color: #003d5c; display: block; margin-bottom: 5px; font-size: 1.25rem; border-bottom: none; }
.topic .d { font-size: 18px; color: #011018; line-height: 1.85; 
line-height: 1.875rem;
    letter-spacing: 0.045rem;}
.note-after { margin: 20px 0 0; font-size: 1rem; color: #011018; }

/* ============================================================
   Plain list (主な対象)
   ============================================================ */
ul.plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

ul.plain li {
  position: relative;
  padding-left: 26px;
  font-size: 18px;
	line-height: 1.875rem;
    letter-spacing: 0.045rem;
}

ul.plain li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 84, 125, 0.6);
}

/* ============================================================
   CALLOUT
   ============================================================ */
.callout {
  padding: 0;
}

.callout p { margin: 0; font-size: 18px; line-height: 1.875rem;
    letter-spacing: 0.045rem;}
.callout .small { font-size: 16px; color: #011018; margin-top: 12px; }

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 18px;
}

.step .n {
  font-family: "Open Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #00547D;
  opacity: 0.6;
  line-height: 1.5625rem;
  letter-spacing: 0.0375rem;
  display: block;
  margin-bottom: 0;
}

.step .st { font-weight: 700; color: #003d5c; font-size: 1.25rem; margin: 0 0 4px; }
.step .sd { 
	font-size: 18px; color: #011018; 
	line-height: 1.875rem;
    letter-spacing: 0.045rem; margin: 0; }
.flow-note { font-size: 16px; color: #011018; margin: 18px 0 0; }

/* ============================================================
   Hint list (お話が早く進む情報)
   ============================================================ */
.hint-list {
  margin: 14px 0 0;
  color: #011018;
  font-size: 18px;
}

.hint-list li { 
	margin-bottom: 6px; position:relative; padding-left: 26px;
	line-height: 1.875rem;
    letter-spacing: 0.045rem;}

.hint-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 84, 125, 0.6);
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq details {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 50px 18px 22px;
  font-weight: 700;
  color: #003d5c;
  position: relative;
  font-size: 18px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .qmark {
  color: #00547D;
  margin-right: 10px;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #00547D;
  transition: transform .2s;
}

.faq details[open] summary::after { content: "−"; }

.faq .a {
  padding: 0 22px 20px;
  color: #011018;
  font-size: 18px;
line-height: 1.875rem;
    letter-spacing: 0.045rem;
}

/* ============================================================
   FORM — optional
   ============================================================ */


/* ---- Optional collapsible section ---- */
.optional-details {
  border: 1.5px dashed #c0c8d0;
  border-radius: 0.5rem;
  margin: 6px 0 1.87rem;
  overflow: hidden;
  background: #fff;
}

.optional-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 32px;
  font-weight: 700;
  color: #00547D;
  font-size: 18px;
  position: relative;
  background: #fff;
}

.optional-details > summary::-webkit-details-marker { display: none; }

.optional-details > summary::after {
  content: "＋ 開く";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 700;
}

.optional-details[open] > summary::after { content: "− 閉じる"; }

.optional-body { padding: 28px 32px 8px; }
.optional-lead { font-size: 16px; color: #011018; margin: 0 0 22px; }


/* Row 2 grid */
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-note {
  font-size: 16px;
  color: #011018;
  margin: 6px 0 0;
	text-align:right;
}

/* プライバシーポリシーをmainnのフォームのみレイアウト調整するため修正 */
#contactForm .form-group.flexstart label {
    width: auto;
}

/* selectが横並びで二つのレイアウト時に下矢印の位置がギリギリなので調整 */
	.main-contact .optional-body .form-group .input-container.select::after {
		    right: 6%;
	}

/* formの背景やディスクリプションなどの調整用 */
#contact .third-wrapper section.form-section {
  background: #f2f8fb;
  padding: 4rem 80px 1rem;
	margin-bottom:5rem;
	border-radius:2.5rem;
	border-bottom:none;
}


.form-description {
  font-size: 1.125rem;
  color: #011018;
  margin: 0 0 2rem;
  line-height: 1.8;
	text-align:left;
}


/* ============================================================
   RESPONSIVE — iPad (1024px) / SP (768px)
   ============================================================ */
@media (max-width: 1024px) {
  .contact-cta-section { padding: 48px 32px 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.topic .d,
	.callout p,
	ul.plain li,
	.step .sd,
	.callout p,
	.faq .a,
	.hint-list{
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.875rem;
    letter-spacing: 0.045rem;
	}
  #contact .third-wrapper section { padding: 38px 0; }
  .topics { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 12px; }

  .contact-cta-section { padding: 40px 20px 32px; }
  .cta-divider { display: none; }
  .cta-actions { flex-direction: column; gap: 16px; }
	
	.row2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
	
	.optional-details > summary::after {
		bottom:0;
		top:74%;
		right:40px;
	}


}

/* ============================================================
   FLOATING CTA
   ============================================================ */
a.float-cta  {
  position: fixed;
  bottom: 13%;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #00547D;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 20px 22px;
  border-radius: 9px;
  box-shadow: 0 4px 20px rgba(0, 84, 125, 0.35);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: background .15s, transform .05s, opacity .25s, visibility .25s;
	color: white;
    text-decoration: none;
}

.float-cta.is-visible {
  opacity: 1;
  visibility: visible;
}

.float-cta:hover { background: #003d5c; }
.float-cta:active { transform: translateY(1px); }
.float-cta .arw { font-size: 13px; }


#form-scroll {
	scroll-margin-top:180px;
}
@media (max-width: 768px) {
  .float-cta {
    bottom: 20px;
    right: 16px;
    font-size: 13px;
    padding: 11px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
