.contact-container {
    max-width: 1020px;
    margin: 80px auto 50px auto;
    padding: 0 20px;
}

.lend-container {
    max-width: 1130px;
    margin: 80px auto 50px;
    padding-left: 50px;
}

.contact-title {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    position: relative;
    color: #000000;
    font-family: "Zen Kaku Gothic New ", Medium;
    font-weight: 500;
}

.contact-title::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -50px;
    bottom: -6px;
    height: 1px;
    background-color: #ccc;
}

.contact-bullet {
    color: #dc000c;
    font-size: 28px;
    line-height: 1;
    position: relative;
    top: 5px;
}

.contact-txt {
    width: 100%;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
    font-family: "Zen Kaku Gothic New", "游ゴシック", sans-serif;
    letter-spacing: 0.1em;
    margin-top: 51px;
    margin-bottom: 80px;
    font-weight: 500;
}

/* 横並びフォーム */
.form-row-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 5px;
}

.form-label-box-property.required::after {
    content: " 必須";
    color: #fff;
    background-color: #dc000c;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: auto;
    margin-right: 20px;
}

/* ラベルボックス（お問い合わせ内容） */
.form-label-box-inquiry {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 378px;
    background-color: #f5f5f5;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    padding-left: 30px;
    gap: 25px;
    font-size: 16px;
}

.form-label-box-inquiry.required::after {
    content: " 必須";
    color: #fff;
    background-color: #dc000c;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: auto;
    margin-right: 20px;
}

/* 入力欄（共通） */
.form-input-horizontal {
    flex: 1;
    font-size: 16px;
    background-color: #fff;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 22px 10px;
    border-radius: 0;
    transition: border-color 0.15s ease;
}
.form-input-horizontal:focus {
    outline: none;
    border-bottom-color: #ccc;
}

.form-divider {
    height: 2px;
    background-color: #ccc;
    width: calc(100% - 295px);
    margin-left: 295px;
    margin-top: 0;
    margin-bottom: 0;
}

/* お問い合わせ内容ブロック */
.form-input-inquiry {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 2px solid #ccc;
}

.checkbox-section {
    margin-bottom: 15px;
}

.checkbox-title {
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 16px;
}

/* ラジオボタン */
.form-radio-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    width: 100%;
    gap: 30px;
    margin-top: 20px;
    box-sizing: border-box;
    margin-left: 20px;
}

.form-radio-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    cursor: pointer;
    font-family: "DNP 秀英角ゴシック銀 Std B", sans-serif;
    font-weight: 500;
    width: 100%;
}

.form-radio-item input[type="radio"] {
    accent-color: #333;
    margin-right: 10px;
    transform: scale(1.6);
}

/* 自由記入欄 */
.form-input-other {
    width: 667px;
    height: 92px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    border-radius: 4px;
    resize: none;
}

.btn-submit {
    background-color: #dc000c;
    color: white;
    font-size: 16px;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit:hover {
    opacity: 0.9;
}

.contact-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin: 60px 0 20px 0;
    padding-left: 10px;
    font-family: "DNP 秀英角ゴシック銀 Std, B", sans-serif;
}

/* ラベルボックス （名前・フリガナ・メアド・電話番号用）*/
.form-label-box-customer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 99px;
    background-color: #f5f5f5;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    padding-left: 30px;
    font-size: 16px;
    gap: 25px;
}

.form-label-box-customer.required::after {
    content: " 必須";
    color: #fff;
    background-color: #dc000c;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: auto;
    margin-right: 20px;
}

/* ラベルボックス （物件種別用）*/
.form-label-box-customer-property {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 173px;
    background-color: #f5f5f5;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    padding-left: 30px;
    font-size: 16px;
    gap: 25px;
}

.form-label-box-customer-property.required::after {
    content: " 必須";
    color: #fff;
    background-color: #dc000c;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: auto;
    margin-right: 20px;
}

/* ラベルボックス（住所用） */
.form-label-box-customer-address {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 425px;
    background-color: #f5f5f5;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    padding-left: 30px;
    font-size: 16px;
}

/* ラベルボックス（所在地用） */
.form-label-box-customer-location {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 318px;
    background-color: #f5f5f5;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    padding-left: 30px;
    font-size: 16px;
}

.form-label-box-customer-location.required::after {
    content: " 必須";
    color: #fff;
    background-color: #dc000c;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: auto;
    margin-right: 20px;
}

/* ボックス型入力欄 */
.form-row-horizontal .form-input-customer-mail,
.form-row-horizontal .form-input-customer-remarks,
.form-row-horizontal .form-input-customer-phonNum {
    width: 689px;
    height: 72px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    border-radius: 4px;
    resize: none;
    margin-top: 15px;
    letter-spacing: 0.1em;
}

/* ボックス型入力欄 */
.form-row-horizontal .form-input-customer-area {
    width: 306px;
    height: 72px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    border-radius: 6px;
    resize: none;
    margin-top: 15px;
    letter-spacing: 0.1em;
}

.form-input-customer-address-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* 各行（郵便番号、都道府県など） */
.form-subrow {
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-divider-address {
    height: 2px;
    background-color: #ccc;
    margin-top: 0;
    margin-bottom: 15px;
}

/* 各項目名 */
.form-sublabel {
    width: 110px;
    font-size: 16px;
    font-weight: 500;
    margin-left: 10px;
    white-space: nowrap;
}

/* 入力欄 */
.form-input-customer-address-group .form-input-customer-address {
    width: 506px;
    height: 72px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    letter-spacing: 0.1em;
}

.form-input-customer-address {
    transform: translateX(40px);
}


/* 郵便番号のブロック */
.form-subrow.postcode {
    margin-top: 15px;
}

/* 都道府県のブロック */
.form-subrow.prefecture {
    margin-top: 20px;
}

/* ▼ セレクトボックス本体 */
.form-input-customer-select {
    width: 230px;
    height: 72px;
    padding: 10px 40px 10px 10px; 
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpolygon points='6,0 12,12 0,12' fill='%23666'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpolygon points='0,0 12,0 6,12' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 13px 8px;
    background-position: right 12px top 33%, /* ▲ */ right 12px bottom 28%; /* ▼ */
    transform: translateX(40px);
}

/* 初期状態の文字を薄くする */
.form-input-customer-select option[value=""] {
    color: #999;
}

.form-input-customer-select:valid {
    color: #000;
}

.form-input-customer-select:invalid {
    color: #999;
}

/* フォーカス時 */
.form-input-customer-address:focus,
.form-input-customer-address select:focus {
    outline: none;
    border-color: #000000;
}

/* フォーカス時 */
.form-input-customer-address:focus,
.form-input-customer-address select:focus {
    outline: none;
    border-color: #000000;
}

/* チェックボックス全体のエリア */
.privacy-consent {
    margin-top: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 30px;
}

/* チェックボックス */
.privacy-checkbox {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #333;
}

/* テキスト部分 */
.privacy-text {
    font-size: 16px;
    color: #333;
    font-family: "DNP 秀英角ゴシック銀 Std", B;
    color: #d71122;
    font-weight: 500;
    letter-spacing: 0.12em;
}

/* 必須マーク */
.required-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 21px;
    background-color: #d71122;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
}

.contact-submit-btn {
    display: inline-block;
    width: 400px;
    height: 70px;
    background-color: #d71122;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 60px;
    border: none;
    cursor: pointer;
    margin: 40px auto 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 名前専用の横並びラッパー */
.name-row .name-input-wrapper,
.furigana-row .furigana-input-wrapper {
    display: flex;
    gap: 20px;      
    width: 689px;   
    margin-top: 15px;
}

/* 姓・名の入力欄*/
.name-row .name-input,
.furigana-row .furigana-input {
    flex: 1;
    height: 72px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    border-radius: 7px;
    letter-spacing: 0.1em;
}

.pc-only { display: inline; }
.sp-only { display: none; }

@media screen and (min-width: 520px) and (max-width: 959px) {
}

@media screen and (max-width: 519px) {
    .contact-container,
    .lend-container {
        padding: 0 15px;
        margin: 30px auto;
        box-sizing: border-box;
    }

    .contact-title {
        font-size: 26px;
        text-align: center;
        margin-top: 100px;
    }

    .contact-title::after {
        left: 0;
        right: 0;
        width: 60%;
        margin: 0 auto;
    }

    .contact-txt {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 30px;
        margin-bottom: 50px;
    }

    /* 横並び→縦並びに */
    .form-row-horizontal {
        display: block;
    }

    .form-label-box-customer,
    .form-label-box-customer-property,
    .form-label-box-customer-address,
    .form-label-box-customer-location,
    .form-label-box-inquiry {
        width: 100%;
        height: auto;
        padding: 15px;
        margin-bottom: 10px;
        font-size: 15px;
        text-align: left;
    }

    /* --- 入力欄（テキストボックス） --- */
    .form-label-box-customer,
    .form-label-box-customer-property,
    .form-label-box-customer-address,
    .form-label-box-customer-location,
    .form-label-box-inquiry {
        width: 100%;
        height: auto;             
        padding: 15px 20px;      
        box-sizing: border-box;   
        text-align: left;
        margin-bottom: 10px;
        font-size: 15px;
    }

    .form-radio-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .form-radio-item {
        justify-content: flex-start;
        font-size: 15px;
    }

    .form-divider,
    .form-divider-address {
        display: none;
    }

    .privacy-consent {
        flex-direction: column;
        text-align: center;
        margin-top: 60px;
    }

    .privacy-text {
        font-size: 14px;
    }

    .contact-submit-btn {
        width: 100%;
        height: 60px;
        font-size: 15px;
        margin: 30px auto 60px;
    }

    /* --- 備考（textarea） --- */
    .form-row-horizontal .form-input-customer-remarks {
        height: 120px;
        resize: none;
    }

    .form-input-customer-address-group .form-sublabel {
    white-space: nowrap;  
}

/* ---------- 名前入力欄 ---------- */
    .name-input-wrapper {
        width: 100%;
        display: block;
        margin-top: 10px;
    }

    .name-input-wrapper .name-input {
        width: 100%;
        height: auto;
        margin-top: 10px;
        box-sizing: border-box;
    }

    /* ---------- フリガナ入力欄 ---------- */
    .furigana-input-wrapper {
        width: 100%;
        display: block;
        margin-top: 10px;
    }

    .furigana-input-wrapper .furigana-input {
        width: 100%;
        height: auto;
        margin-top: 10px;
        box-sizing: border-box;
    }

        .name-input-wrapper,
        .furigana-input-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px; 
        width: 100%;
    }

    .name-input-wrapper .name-input {
        width: 100%;
        height: auto;
        margin-top: 10px;
        box-sizing: border-box;
    }

    .name-row .name-input-wrapper,
    .furigana-row .furigana-input-wrapper {
        width: 100% !important;  
        display: block !important;
        gap: 0 !important;
    }

    .form-input-customer-name,
    .form-input-customer-furigana {
        width: 100% !important;  
        height: auto;
        margin-top: 10px;
    }

    .contact-container input.form-input-customer-mail,
    .contact-container input.form-input-customer-phonNum,
    .contact-container input.form-input-customer-remarks {
        width: 100%;
        height: auto;
        margin-top: 10px;
    }

    .form-input-customer-address {
    transform: none; 
}
.form-input-customer-select {
    transform: translateX(30px);
}
.form-radio-row {
    margin-left: 10px;
}
    .pc-only { display: none; }
    .sp-only { display: inline; }

}
