/* スマホ版LP対応（393px幅） */
@media (min-width: 394px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #fff8fa;
    }
    
    body > * {
        max-width: 433px;
        background: #ffffff;
    }
}

/* ヒーロー画像 */
body > img {
    width: 100%;
    max-width: 473px;
    display: block;
    margin: 0 auto;
}

#form_wrap {
    font-size: 16px;
    font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
}
#form_wrap .check input , #form_wrap .radio input {
    margin-right: 5px;
}
#form_wrap .contact_txt {
    text-align: center;
}
#form_wrap .footer_bottom {
    padding-bottom: 20px !important;
}
#form_wrap h3 {
    text-align: center;
    margin-bottom: 20px;
}
#form_wrap .privacy_link a {
    color: #000;
}

/* media query : mobile
---------------------------------------------*/
@media screen and (max-width: 768px) {
    .sp_mr {
        margin-top: 10px !important;
    }
}

/* .form系スタイル（レスポンシブ対応なし - PCでもスマホ表示） */
.form {
    width: auto;
    box-sizing: border-box;
}
.form .title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100vw;
    height: 220px;
    text-align: center;
    margin: 0 calc(50% - 50vw) 50px;
    background-color: rgba(255, 255, 255, 0.6);
}
.form .title:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../assets/img/property-intro_title_bg.jpg) no-repeat;
    background-size: cover;
    background-position: center bottom 30%;
    z-index: -1;
}
.form .title h2 {
    font-size: 1.9rem;
    margin-bottom: 0;
}
.form form {
    margin-top: 30px;
}
.form .input-wrap {
    padding-bottom: 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e3e3e3;
}
.form .input-wrap:first-of-type {
    padding-top: 20px;
    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
}
.form .input-wrap label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: justify;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.form .input-wrap label .required {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 21px;
    font-size: 0.8rem;
    color: #fff;
    padding: 3px 7px;
    background-color: #BB0115;
    border-radius: 2px;
}
.form .input-wrap div.input {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}
.form .input-wrap div.input input::placeholder {
    font-size: 1rem;
}
.form .input-wrap div.input > input,
.form .input-wrap div.input > textarea {
    width: 100%;
    font-size: 1rem;
    padding: 15px;
    box-sizing: border-box;
}
.form .input-wrap div.input div {
    display: flex;
    width: 50%;
}
.form .privacy_02 .input-wrap div.input div {
    width: 100% !important;
}
.form .privacy_02 .input-wrap label {
    width: auto;
}
.form .input-wrap div.input select {
    width: 100%;
    min-height: 55px;
    font-size: 1rem;
    padding: 15px;
    box-sizing: border-box;
}
.form .input-wrap div.input select option {
    padding: 3px 7px;
}
.form .form-submit_button {
    margin-top: 40px;
}
.form .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 59px;
    font-size: 1rem;
    color: #fff;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    border: 0 !important;
    background-color: #D70019;
    filter: drop-shadow(0 5px 0 rgb(128, 0, 15, 1));
    border: 0;
}

.form dl.confirm {
    display: flex;
    flex-wrap: wrap;
    box-sizing:border-box !important;
    margin-top: 30px;
}
.form dl.confirm dt,
.form dl.confirm dd {
    display: flex;
    box-sizing:border-box !important;
    margin: 0 !important;
    flex-wrap: wrap;
    padding: 25px 0;
    border-bottom: 1px solid #e3e3e3;
    box-sizing: border-box;
}
.form dl.confirm dt:first-of-type,
.form dl.confirm dd:first-of-type {
    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
}
.form dl.confirm dt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 30%;
    box-sizing: border-box;
}
.form dl.confirm dd {
    width: 70%;
    padding-left: 15px;
    box-sizing: border-box;
    margin-left: 0 !important;
}
.form .form-submit_button {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.form p.form-submit_button .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(50% - 7.5px);
    height: 59px;
    font-size: 1rem;
    color: #fff;
    border-radius: 10px;
    background-color: #D70019;
    filter: drop-shadow(0 5px 0 rgb(128, 0, 15, 1));
}
.form.complete .content {
    max-width: 780px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
} 
.form .return_button {
    margin-top: 40px;
}
.form .return_button a {
    color: #fff;
}

/* media query : desktop
---------------------------------------------*/
/* .form系のスタイルはレスポンシブ対応なしのため削除 */


input[type="submit"] {
    border: 0;
    box-shadow: 0;
}
input[type="button"] {
    border: 0;
    box-shadow: 0;
}
.form div.validation-error {
    display: block;
    color: #d00303;
    text-align: justify;
    padding-left: 10px;
}
.form .error-message {
    background-color: #efefef;
    color: #d00303;
}
#form_wrap input , #form_wrap textarea , #form_wrap select {
    border: 1px solid #2E2722;
}

#form_wrap .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 3rem auto 0 auto;
    padding: 15px 30px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #FFB222 0%, #F9751E 100%);
    border: none;
    border-radius: 5px;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(249, 117, 30, 0.3);
    transition: all 0.3s ease;
}
#form_wrap .btn:hover {
    box-shadow: 0 6px 15px rgba(249, 117, 30, 0.5);
    transform: translateY(-2px);
}

#header_contact {
    text-align: center;
    padding: 50px;
    margin: 0 20px;
}
#header_contact h1 {
    line-height: 0;
    margin: 0;
}

.privacy_01 , .privacy_02 {
    text-align: justify;
    padding-bottom: 1rem;
}
.error-message {
    list-style: none;
    padding: 1rem;
}
@media screen and (max-width: 768px) {
    .calendar_gap{
        margin-bottom: 1rem;
    }
    br.sp_none {
        display: none;
    }
    .privacy_01,
    .privacy_02 {
        text-align: left;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ラジオボタン・チェックボックス共通スタイル */
.form .input.radio,
.form .input.checkbox {
    flex-direction: column;
    gap: 10px;
}

.form .radio-item,
.form .checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    justify-content: flex-start !important;
}

.form .radio-item:hover,
.form .checkbox-item:hover {
    background-color: #f8f8f8;
}

.form .radio-item input[type="radio"],
.form .checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ボタンスタイル */
.btn_wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.btn_submit,
.btn_back {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn_submit {
    background: linear-gradient(90deg, #FFB222 0%, #F9751E 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(249, 117, 30, 0.3);
}

.btn_submit:hover {
    box-shadow: 0 6px 15px rgba(249, 117, 30, 0.5);
    transform: translateY(-2px);
}

.btn_back {
    background: #fff;
    color: #333;
    border: 2px solid #e3e3e3;
}

.btn_back:hover {
    background: #f8f8f8;
}

/* レスポンシブ対応 */
@media screen and (min-width: 769px) {
    .btn_wrap {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .btn_submit,
    .btn_back {
        max-width: 250px;
    }
}

/* フォーム必須マークスタイル */
.form_required {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 12px;
    color: #fff;
    background-color: #EB6E8F;
    border-radius: 3px;
}

/* セクションとコンテナのスタイル */
.sec_contact {
    padding: 30px 20px;
}

.contact_wrap {
    max-width: 100%;
}

.contact_title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.contact_subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: #666;
}

/* プライバシー関連 */
.privacy_01,
.privacy_02 {
    margin-top: 30px;
    padding: 20px;
    background: #FFF8CF;
    border-radius: 5px;
}

.privacy_01 .p_bold,
.privacy_02 .p_bold {
    font-weight: bold;
    margin-bottom: 10px;
}

.privacy_01 .p14,
.privacy_02 .p14 {
    font-size: 14px;
    line-height: 1.8;
}

.privacy_link {
    margin: 15px 0;
    text-align: center;
}

.privacy_link a {
    color: #EB6E8F;
    text-decoration: underline;
}

/* 完了画面 */
.form.complete .content {
    text-align: center;
    padding: 40px 20px;
}

.form.complete h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #EB6E8F;
}

.contact_txt {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* フッター（LP側の.site-footerと同一見た目にする） */
#footer.site-footer {
    padding: 1.875rem 0;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    background: #fff;
    border-top: none;
}

body {
    font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
}

/* PC表示時：中央寄せ、左右余白 */
@media (min-width: 394px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #fff8fa;
    }
    
    body > * {
        background: #ffffff;
    }
}

.lp_back_link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #aaa;
}

.lp_back_link a {
    color: #aaa;
    text-decoration: underline;
}

.lp_back_link a:hover {
    color: #888;
}

/* ==========================================================================
   KNT LP theme override
   ========================================================================== */
body#form {
    background: #fff9f7 !important;
    color: #000;
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    margin: 0;
    display: block !important;
    padding-bottom: 0;
}

/* 必要な領域のみ幅をLP基準で制御（全要素への一括解除はしない） */
body#form #header,
body#form #fv,
body#form #footer {
    max-width: 1500px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body#form .sec_contact{
    max-width: 1500px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
body#form > img {
    display: block;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

/* formページでもFVをLP本体と同じ見た目で固定 */
body#form .fv {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    overflow: hidden;
    min-height: 0;
    padding: 0;
}

body#form .fv__hero {
    width: 100%;
}

body#form .fv__hero picture {
    display: block;
    width: 100%;
}

body#form .fv__hero-img {
    display: block;
    width: 100%;
    height: auto;
}

.sec_contact {
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding: 50px 0;
    background: #fff;
}

.contact_wrap {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 min(3.125rem, 4vw);
}

.contact_title {
    margin: 0;
    text-align: center;
    font-weight: 700;
    font-size: clamp(26px, 6vw, 40px);
    line-height: 1.3;
    letter-spacing: 0.06em;
    color: #000;
}

.contact_subtitle {
    margin: 16px 0 40px;
    text-align: center;
    font-weight: 500;
    font-size: clamp(16px, 2.2vw, 24px);
    line-height: 1.6;
    color: #000;
}

#form_wrap {
    width: 100%;
}

#form_wrap .form {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

#form_wrap .input-wrap {
    padding: 24px 0;
    margin: 0;
    border-bottom: 1px solid #e6e6e6;
}

#form_wrap .input-wrap:first-of-type {
    border-top: 1px solid #e6e6e6;
}

#form_wrap .input-wrap:last-of-type {
    border-bottom: none;
}

#form_wrap .input-wrap--memo {
    border-bottom: none !important;
}

#form_wrap .input-wrap label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.4;
    color: #000;
}

#form_wrap .form_required {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 48px;
    height: 24px;
    margin-left: 8px;
    padding: 2px 8px;
    background: #ff4000;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

#form_wrap .input {
    width: 100%;
    flex-direction: column;
}

#form_wrap input[type="text"],
#form_wrap input[type="email"],
#form_wrap input[type="tel"],
#form_wrap textarea {
    width: 100%;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 16px;
    line-height: 1.6;
    padding: 14px 16px;
    box-sizing: border-box;
}

#form_wrap textarea {
    min-height: 170px;
    resize: vertical;
}

#form_wrap input::placeholder,
#form_wrap textarea::placeholder {
    color: #8f8f8f;
}

#form_wrap .btn_wrap {
    margin-top: 36px;
}

#form_wrap .btn_submit,
#form_wrap .btn_back,
#form_wrap .btn,
#form_wrap .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 430px;
    min-height: 64px;
    margin: 0 auto;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    font-size: clamp(18px, 2.6vw, 24px);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

#form_wrap .btn_submit,
#form_wrap .btn,
#form_wrap .button {
    background: #ff4000;
    color: #fff;
}

#form_wrap .btn_back {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #ddd;
}

#form_wrap .btn_submit:hover,
#form_wrap .btn_back:hover,
#form_wrap .btn:hover,
#form_wrap .button:hover {
    opacity: 0.9;
    filter: brightness(1.02);
}

#form_wrap dl.confirm {
    display: block;
    margin-top: 0;
}

#form_wrap dl.confirm dt,
#form_wrap dl.confirm dd {
    margin: 0 !important;
    padding: 0;
    border: none !important;
}

#form_wrap dl.confirm dt {
    width: 100%;
    font-weight: 700;
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.4;
    color: #000;
    margin-bottom: 10px !important;
}

#form_wrap dl.confirm dd {
    width: 100%;
    color: #000;
    line-height: 1.6;
    background: #fff;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 24px !important;
}

#form_wrap .error-message {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff2f2;
    border: 1px solid #ffcfcf;
    color: #c40000;
}

#form_wrap div.validation-error {
    margin-top: 8px;
    padding-left: 0;
    font-size: 14px;
    color: #c40000;
}

#footer.site-footer {
    border-top: none;
}

@media (max-width: 768px) {
    .contact_wrap {
        padding: 0 16px;
    }

    #form_wrap .input-wrap label {
        font-size: 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    #form_wrap .btn_submit,
    #form_wrap .btn_back,
    #form_wrap .btn,
    #form_wrap .button {
        min-height: 58px;
        font-size: 18px;
    }

    #form_wrap dl.confirm dt,
    #form_wrap dl.confirm dd {
        width: 100%;
        border: none !important;
    }

    #form_wrap dl.confirm dt {
        font-size: 18px;
    }

    #form_wrap dl.confirm dd {
        border: 1px solid #d9d9d9 !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        padding: 14px 16px;
    }
}
