@import url('./fv-rebuild.css');
@import url('./fv-assets-fix.css');
@import url('./fv-form-figma.css');
@import url('./fv-form-assets.css');

.fv-form-section{padding:0 0 36px;}.fv-form-container{width:min(100% - 40px,390px);margin:0 auto}.fv-form-section .hero-form-wrap{padding:0;background:transparent;box-shadow:none}.fv-form-section .form-kicker,.fv-form-section .hero-form-wrap>h2{display:none}.fv-multi-step-form{padding:22px 18px 18px;border:2px solid #a88843;border-radius:8px;box-shadow:0 1px 2px rgba(16,41,74,.04);color:#10294a;overflow:hidden}.fv-step-header{margin-bottom:18px}.fv-step-header h3{margin:0 0 14px;font-size:18px;line-height:1.62;font-weight:700;color:#10294a;letter-spacing:.01em}.fv-step-status{display:flex;align-items:center;gap:14px;color:#a88843;font-size:14px;line-height:1}.fv-step-status>span:first-child{white-space:nowrap}.fv-progress-bar{flex:1;height:5px;border:1px solid #d8c79f;background:repeating-linear-gradient(90deg,#fff 0,#fff 13px,#eadfca 13px,#eadfca 14px)}.fv-progress-bar>span{display:block;height:100%;background:#a88843}.fv-multi-step-form .field-grid{display:block}.fv-multi-step-form .field{margin-bottom:16px}.fv-multi-step-form .field:last-child{margin-bottom:0}.fv-multi-step-form .field label,.fv-multi-step-form .field legend{margin-bottom:8px;color:#10294a;font-size:13px;font-weight:700;line-height:1.5}.fv-multi-step-form .required,.fv-multi-step-form .optional{margin-left:4px;font-size:9px;font-weight:700}.fv-multi-step-form .field input:not([type=radio]):not([type=checkbox]),.fv-multi-step-form .field select,.fv-multi-step-form .field textarea{width:100%;min-height:44px;border:1px solid #cbd7e3;border-radius:7px;background:#fff;padding:9px 11px;color:#173352;font-size:14px;box-shadow:none}.fv-multi-step-form .field textarea{min-height:96px;line-height:1.65}.fv-multi-step-form .choice-grid{display:flex;flex-wrap:wrap;gap:8px}.fv-multi-step-form .choice{position:relative;display:inline-flex;align-items:center;width:auto;min-height:40px;padding:8px 12px;border:1px solid #cbd7e3;border-radius:7px;background:#fff;color:#173352;font-size:14px;line-height:1.35;font-weight:400}.fv-multi-step-form .choice input{position:absolute;opacity:0;pointer-events:none}.fv-multi-step-form .choice:has(input:checked){border-color:#a88843;background:#fffaf0;box-shadow:0 0 0 1px #a88843 inset}.fv-multi-step-form .choice:has(input:focus-visible){outline:2px solid #10294a;outline-offset:2px}.fv-multi-step-form .error-message{min-height:0;margin:4px 0 0;font-size:11px}.fv-multi-step-form .form-actions{margin-top:18px;display:grid;grid-template-columns:1fr;gap:7px}.fv-multi-step-form .btn-primary{width:100%;min-height:56px;border-radius:8px;background:#a88843;color:#fff;font-size:16px;font-weight:700;box-shadow:none}.fv-multi-step-form .btn-primary:hover{background:#96773a}.fv-multi-step-form .btn-secondary{width:100%;min-height:44px;border-radius:8px;border:1px solid #cbd7e3;background:#fff;color:#173352;font-size:13px;font-weight:700}.fv-multi-step-form .privacy-row{display:flex;align-items:flex-start;gap:8px;margin:0;padding:12px;border:1px solid #d6e0e9;border-radius:7px;background:#fafcfd;font-size:12px;line-height:1.6}.fv-multi-step-form .privacy-row input{flex:0 0 auto;margin-top:3px}.fv-multi-step-form .recaptcha-note{margin-top:12px}.fv-multi-step-form .form-global-error{margin-top:12px}.fv-form-note{margin:14px 0 0;color:#52687d;font-size:12px;line-height:1.8}@media(max-width:430px){.fv-form-section{padding-top:32px}.fv-form-container{width:calc(100% - 40px)}.fv-multi-step-form{padding:20px 18px 18px}.fv-step-header h3{font-size:18px}.fv-multi-step-form .choice{font-size:14px}}@media(min-width:768px){.fv-form-container{width:min(100% - 48px,680px)}.fv-multi-step-form{padding:28px 30px}.fv-multi-step-form .form-actions{grid-template-columns:auto minmax(220px,1fr);justify-content:end}.fv-multi-step-form .form-actions:has(.btn-primary:only-child){grid-template-columns:1fr}.fv-multi-step-form .btn-secondary{min-width:120px}.fv-multi-step-form .btn-primary{min-width:240px}}

/* PC: FV直下のフォーム。SPの既存指定は変更しない。 */
@media (min-width:768px) {
  .fv-form-section {
    position:relative;
    padding:58px 0 38px;
    background:#f7faff;
  }
  .fv-form-section .fv-form-container {
    position:relative;
    width:min(calc(100% - 80px),1100px);
    margin:0 auto;
    padding:70px clamp(35px,6.5vw,96px) 42px;
    border-radius:12px;
    background:#fff;
  }
  .fv-form-section .hero-form-wrap,
  .fv-form-section .fv-multi-step-form {
    width:100%;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;
  }
  .fv-form-section .fv-step-header {
    margin:0 0 18px !important;
  }
  .fv-form-section .fv-step-header h3 {
    position:absolute;
    top:-42px;
    left:50%;
    z-index:2;
    width:max-content;
    max-width:calc(100vw - 48px);
    min-height:0 !important;
    margin:0 !important;
    transform:translateX(-50%);
  }
  .fv-form-section .fv-step-header h3::before {
    content:"まずは売却の検討状況だけ教えてください" !important;
    display:block !important;
    max-width:100%;
    padding:10px 30px 13px !important;
    font-size:clamp(25px,3vw,43px) !important;
    line-height:1.3 !important;
    text-align:center;
    white-space:normal !important;
  }
  .fv-form-section .fv-step-header h3::after {
    display:none !important;
  }
  .fv-form-section .fv-step-status {
    margin:8px 0 17px;
  }
  .fv-form-section .fv-step-status>span:first-child::after {
    font-size:20px !important;
  }
  .fv-form-section .fv-progress-bar {
    flex-basis:156px !important;
    width:156px !important;
  }
  .fv-form-section .fv-multi-step-form .field-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 22px;
  }
  .fv-form-section .fv-multi-step-form .field.full {
    grid-column:auto;
  }
  .fv-form-section .fv-multi-step-form .field:first-child {
    grid-column:1/-1;
  }
  .fv-form-section .fv-multi-step-form .field label,
  .fv-form-section .fv-multi-step-form .field legend {
    font-size:18px;
  }
  .fv-form-section .fv-multi-step-form .field input:not([type=radio]):not([type=checkbox]),
  .fv-form-section .fv-multi-step-form .field select,
  .fv-form-section .fv-multi-step-form .field textarea {
    min-height:62px;
    font-size:19px;
  }
  .fv-form-section .fv-multi-step-form .choice-grid {
    gap:9px;
  }
  .fv-form-section .fv-multi-step-form .choice {
    min-height:44px;
    font-size:14px;
  }
  .fv-form-section .fv-multi-step-form .form-actions {
    display:flex;
    justify-content:center;
    margin-top:14px;
  }
  .fv-form-section .fv-multi-step-form .btn-secondary {
    flex:0 0 225px;
    width:225px;
    min-width:225px;
    min-height:70px;
    margin:0;
    font-size:21px;
  }
  .fv-form-section .fv-multi-step-form .btn-primary {
    width:225px;
    min-width:225px;
    min-height:70px;
    font-size:0;
  }
  .fv-form-section .fv-multi-step-form [data-step="1"] .btn-primary::after,
  .fv-form-section .fv-multi-step-form [data-step="2"] .btn-primary::after {
    font-size:26px;
  }
  .fv-form-section .fv-form-note {
    position:absolute;
    top:52px;
    right:clamp(35px,6.5vw,96px);
    width:42%;
    margin:0;
    font-size:14px;
    line-height:1.65;
  }
  .fv-form-section .fv-form-note br {
    display:none;
  }
  .fv-form-section .fv-multi-step-form .field:first-child {
    margin-top:0;
  }
}
@media (min-width:768px) and (max-width:1100px) {
  .fv-form-section .fv-form-container {
    width:calc(100% - 48px);
    padding:86px 35px 36px;
  }
  .fv-form-section .fv-form-note {
    top:65px;
    right:35px;
    width:40%;
    font-size:12px;
  }
  .fv-form-section .fv-step-header h3::before {
    font-size:clamp(23px,3.1vw,35px) !important;
  }
}


/* Shared 4-step confirmation UI used by both forms. */
.fv-multi-step-form .form-confirmation{
  display:grid;
  gap:0;
  margin:4px 0 0;
  border:1px solid #d4dbe4;
  border-radius:9px;
  background:#fff;
  overflow:hidden;
}
.fv-multi-step-form .confirmation-row{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  border-bottom:1px solid #e3e8ee;
}
.fv-multi-step-form .confirmation-row:last-child{border-bottom:0;}
.fv-multi-step-form .confirmation-label,
.fv-multi-step-form .confirmation-value{
  padding:12px 13px;
  font-family:"Noto Sans JP",sans-serif;
  font-size:13px;
  line-height:1.6;
}
.fv-multi-step-form .confirmation-label{
  background:#f5f7fb;
  color:#173463;
  font-weight:700;
}
.fv-multi-step-form .confirmation-value{
  color:#2f3742;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
@media(max-width:430px){
  .fv-multi-step-form .confirmation-row{grid-template-columns:1fr;}
  .fv-multi-step-form .confirmation-label{padding-bottom:6px;}
  .fv-multi-step-form .confirmation-value{padding-top:6px;}
}
@media(min-width:768px){
  .fv-multi-step-form .confirmation-row{grid-template-columns:190px minmax(0,1fr);}
  .fv-multi-step-form .confirmation-label,
  .fv-multi-step-form .confirmation-value{
    padding:14px 16px;
    font-size:15px;
  }

  /* FAQ下フォームもFV下フォームと同じ入力UIにそろえる。外側タイトルは既存のまま。 */
  .contact-section .fv-multi-step-form{
    width:min(calc(100% - 48px),680px);
    margin:0 auto;
    padding:28px 30px;
  }
  .contact-section .fv-multi-step-form .field-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 22px;
  }
  .contact-section .fv-multi-step-form .field:first-child{grid-column:1/-1;}
  .contact-section .fv-multi-step-form .field label,
  .contact-section .fv-multi-step-form .field legend{font-size:18px;}
  .contact-section .fv-multi-step-form .field input:not([type=radio]):not([type=checkbox]),
  .contact-section .fv-multi-step-form .field select,
  .contact-section .fv-multi-step-form .field textarea{
    min-height:62px;
    font-size:19px;
  }
  .contact-section .fv-multi-step-form .choice{min-height:44px;font-size:14px;}
  .contact-section .fv-multi-step-form .form-actions{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:14px;
  }
  .contact-section .fv-multi-step-form .btn-secondary{
    flex:0 0 225px;
    width:225px;
    min-width:225px;
    min-height:70px;
    margin:0;
    font-size:21px;
  }
  .contact-section .fv-multi-step-form .btn-primary{
    width:225px;
    min-width:225px;
    min-height:70px;
    margin:0;
  }
}

/* STEP4はFVのPC見出し上書きより優先して確認画面タイトルを表示する。 */
.fv-form-section .step-panel[data-step="4"] .fv-step-header h3::before{
  content:"入力内容をご確認ください" !important;
}
.fv-form-section .step-panel[data-step="4"] .fv-step-header h3::after{
  display:none !important;
}
