.d-ind_contact_form {
    margin-inline: auto;
    margin-bottom: 80px;
    max-width: 1080px;
    width: calc(100% - 80px);
    color: var(--color-black);
    font-family: var(--font-ja);
    @media (max-width: 600px) {
        width: calc(100% - 48px);
    }
    @media (max-width: 500px) {
        width: calc(100% - 40px);
    }
    * {
        letter-spacing: 0.08em;
        box-sizing: border-box;
    }

    /* チェックボックスはカスタム描画: 黒枠の四角 + 選択時は白い隙間を挟んでオレンジの内四角（ラジオと同系デザイン） */
    input[type="checkbox"] {
        margin: 0;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        appearance: none;
        -webkit-appearance: none;
        display: grid;
        place-items: center;
        background: #fff;
        border: 1px solid #000;
        cursor: pointer;

        &::before {
            content: "";
            width: 12px;
            height: 12px;
            background: transparent;
        }

        &:checked::before {
            background: var(--color-text-2);
        }

        &:focus-visible {
            outline: 2px solid var(--color-text-2);
            outline-offset: 2px;
        }
    }
    dl {
        display: grid;
        grid-template-columns: 350px 1fr;
        gap: 40px 0;
        align-items: start;

        @media (max-width: 800px) {
            gap: 8px 0;
            grid-template-columns: 1fr;
        }

        dt {
            padding-top: 8px;
            line-height: 1.6;
            font-weight: 700;
            font-size: 18px;

            @media (max-width: 800px) {
                padding-top: 0;
                font-size: 16px;
            }

            .required {
                margin-left: 6px;
                padding: 2px 8px;
                display: inline-block;
                vertical-align: middle;
                background: #eff3f6;
                border-radius: 2px;
                color: var(--color-black);
                line-height: 1.4;
                font-weight: 500;
                font-size: 11px;
            }
        }

        dd {
            max-width: 560px;
            min-width: 0;
            font-size: 16px;
            @media (max-width: 800px) {
                margin-bottom: 24px;
                max-width: initial;
            }
            /* ラジオ/チェックの行を dt（padding-top: 12px）とベースライン揃え */
            &:has(.radio_label, .checkbox_label) {
                padding-top: 12px;
            }

            input[type="text"],
            input[type="email"],
            input[type="tel"],
            input[type="number"],
            input[type="url"],
            select,
            textarea {
                padding: 9px 16px;
                width: 100%;

                background: #fff;
                border: 1px solid #000;
                border-radius: 2px;
                color: var(--color-black);
                line-height: 1.6;
                font-size: 15px;

                &::placeholder {
                    color: #b8b8b8;
                }

                &:focus {
                    border-color: var(--color-text-2);
                    outline: none;
                }
            }

            textarea {
                min-height: 140px;
                resize: vertical;
            }

            .radio_label,
            .checkbox_label {
                margin: 0 24px 8px 0;
                display: inline-flex;
                gap: 6px;
                align-items: center;
                line-height: 1.6;
                font-size: 15px;
                cursor: pointer;

                @media (max-width: 800px) {
                    margin-right: 16px;
                }
            }

            .checkbox_label {
                gap: 10px;
            }

            /* ラジオはカスタム描画: 黒枠の円 + 選択時は白い隙間を挟んでオレンジの内円 */
            .radio_label {
                gap: 10px;

                input[type="radio"] {
                    margin: 0;
                    width: 16px;
                    height: 16px;
                    flex-shrink: 0;
                    appearance: none;
                    -webkit-appearance: none;
                    display: grid;
                    place-items: center;
                    background: #fff;
                    border: 1px solid #000;
                    border-radius: 50%;
                    cursor: pointer;

                    &::before {
                        content: "";
                        width: 12px;
                        height: 12px;
                        border-radius: 50%;
                        background: transparent;
                    }

                    &:checked::before {
                        background: var(--color-text-2);
                    }

                    &:focus-visible {
                        outline: 2px solid var(--color-text-2);
                        outline-offset: 2px;
                    }
                }
            }
        }
    }

    .privacy {
        /* 入力欄カラム（ラベル190px + gap32px）に左揃え */
        margin-top: 40px;
        margin-bottom: 48px;
        margin-left: 350px;
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: flex-start;
        line-height: 1.6;
        font-size: 16px;
        cursor: pointer;

        @media (max-width: 800px) {
            margin-top: 0;
            margin-left: 0;
            margin-bottom: 32px;
        }

        a {
            color: var(--color-text-2);
            text-decoration: underline;
        }
    }

    .form-notice {
        margin-top: 24px;
        text-align: center;
        color: var(--color-black);
        line-height: 1.9;
        font-size: 14px;

        @media (max-width: 800px) {
            text-align: left;
        }

        p {
            margin: 0;

            /* 段落間は1行分空ける（デザインカンプ準拠） */
            + p {
                margin-top: 1.9em;
            }
        }

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

    button[type="submit"] {
        margin: 40px auto 0;
        height: 60px;
        width: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffb570;
        border: 1px solid #ff892e;
        border-radius: 0;
        color: #fff;
        letter-spacing: 0.08em;
        font-weight: 400;
        font-size: 18px;
        cursor: pointer;
        transition: opacity 0.2s;
        font-family: var(--font-ja);
        @media (max-width: 800px) {
            min-width: 0;
            width: 100%;
            font-size: 16px;
        }

        &:hover {
            opacity: 0.85;
        }
    }
}

/* 住所（郵便番号→自動入力）：郵便番号と住所を1項目に内蔵 */
.d-ind_contact_form .pf-address {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.d-ind_contact_form .pf-address__zip {
    display: flex;
    align-items: center;
    gap: 6px;
}
.d-ind_contact_form .pf-address__mark {
    flex: 0 0 auto;
    font-size: 16px;
    color: var(--color-black);
}
/* 郵便番号欄は短く（住所欄はそのまま100%） */
.d-ind_contact_form .pf-address .pf-address__zip-input {
    flex: 0 0 auto;
    width: 170px;
    max-width: 55%;
}
