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

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

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

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

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

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

.contact-txt {
    width: 100%;
    font-size: 16px;
    line-height: 1.8;
    font-family: "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 80px;
    color: #000000;
}

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

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

.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;
}

/* ラジオボタン */
.form-input-customer-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.form-radio-row {
    display: flex;
    flex-wrap: wrap;
}

.form-radio-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    font-family: "DNP 秀英角ゴシック銀 Std B", sans-serif;
    font-weight: 500;
    color: #0b0b0b;
}

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

/* ラジオボタン間の余白を追加 */
.contact-container .form-radio-row .form-radio-item {
    margin-right: 30px;
}

.contact-container .form-radio-row .form-radio-item:last-child {
    margin-right: 0;
}

.contact-container .form-input-customer-radio-group {
    margin-left: 40px;
}

/* 自由記入欄 */
.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;
    font-family: "DNP 秀英角ゴシック銀 Std", sans-serif;
    margin: 80px auto 24px;
}

/* ラベルボックス （名前・フリガナ・メアド・電話番号用）*/
.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-location.required::after {
    content: " 必須";
    color: #fff;
    background-color: #dc000c;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: auto;
    margin-right: 20px;
}

/* ボックス型入力欄 */
.contact-container .form-input-customer-mail,
.contact-container .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;
}

/* 名前専用の横並びラッパー */
.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: 4px;
    letter-spacing: 0.1em;
}

/* フォーカス時 */
.form-input-box:focus,
.form-input-box-bottom:focus {
    outline: none;
    border-color: #dc000c;
}

/* ラベルボックス（住所用） */
.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-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;
    color: #0b0b0b;
    white-space: nowrap;
}
/* 入力欄 */
.contact-container .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;
}

/* ラベルボックス（備考用） */
.contact-container input.form-input-customer-request {
    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-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;
}

/* チェックボックス全体のエリア */
.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;
}

/* テキスト部分 */
.privacy-text {
    font-size: 16px;
    font-family: "DNP 秀英角ゴシック銀 Std";
    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;
}

.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 {
        max-width: 100%;
        padding: 0 20px;
        margin: 30px auto;
    }

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

    /* ラベルボックスを100%幅に、縦並びへ */
    .form-label-box-customer,
    .form-label-box-customer-address,
    .form-label-box-customer-location,
    .form-label-box-property,
    .form-label-box-inquiry {
        width: 100%;
        height: auto;
        display: block;
        padding: 15px 20px;
        text-align: left;
        border-radius: 4px;
    }

    /* 入力欄を幅100%に */
    .contact-container input.form-input-customer-mail,
    .contact-container input.form-input-customer-phonNum,
    .contact-container input.form-input-customer-request,
    .contact-container select.form-input-customer-select,
    .form-input-other {
        width: 100%;
        height: auto;
        margin-top: 10px;
        box-sizing: border-box;
    }

    /* ラジオボタン・チェックボックスを縦方向に整列 */
    .form-radio-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-input-customer-radio-group {
        margin-left: 0;
    }

    /* 送信ボタンのサイズ調整 */
    .contact-submit-btn {
        width: 100%;
        height: 60px;
        font-size: 16px;
        margin: 40px 0;
    }

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

    /* 住所ラベルの高さ調整（名前と揃える） */
    .form-label-box-customer-address {
        height: auto;
    }

    /* 各行を縦並びに */
    .form-row-horizontal {
        display: block;
        margin-bottom: 30px;
    }

    /* ラベルボックスを全幅表示に変更 */
    .form-label-box-property,
    .form-label-box-inquiry,
    .form-label-box-customer,
    .form-label-box-customer-location {
        width: 100%;
        height: auto;
        padding: 20px;
        font-size: 15px;
        box-sizing: border-box;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        position: relative; /* 疑似要素を維持するため */
    }

    /* 必須マークの調整 */
    .form-label-box-property.required::after,
    .form-label-box-inquiry.required::after,
    .form-label-box-customer.required::after,
    .form-label-box-customer-location.required::after {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    /* 入力欄も全幅に */
    .contact-container .form-input-horizontal,
    .contact-container .form-input-customer-mail,
    .contact-container .form-input-customer-phonNum,
    .contact-container input.form-input-customer-request,
    .contact-container .form-input-other {
        width: 100%;
        box-sizing: border-box;
        margin-top: 15px;
    }

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

    /* チェックボックスブロックも中央揃え */
    .privacy-consent {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 50px;
    }

    .lend-header .contact-title {
        margin-top: 100px;
    }

    .lend-header .contact-title {
        font-size: 28px;
    }
    /* ---------- 名前入力欄 ---------- */
    .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;
    }
    .form-input-customer-address {
        width: 100% !important;
        height: auto;
        box-sizing: border-box;
        margin-top: 8px;
    }
    .form-input-customer-select {
        width: 100% !important;
        height: auto;
        box-sizing: border-box;
        margin-top: 8px;
        transform: none !important;
    }
    .form-input-customer-address {
        transform: none;
    }

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