.layout_section_contact {
    margin-bottom: 0;
}

.layout_section_form_sp {
    margin-top: 0;
}

.contact_bg {
    background-image: repeating-linear-gradient(145deg, #f2f4f5, #f2f4f5 8px, #fff 8px, #fff 9px);
}

.layout_block {
    margin-bottom: 52px;
}

.layout_box_contact {
    margin-top: 48px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.emphasis {
    font-size: 2.4rem;
    margin-right: 1rem;
}

.contact_dtl {
    display: flex;
    align-items: center;
}

.contact_dtl dt {
    width: 12%;
}

.contact_dtl dd {
    width: 88%;
    margin: 0;
}

/*-----------------*/
label {
    color: var(--color-black);
}

.layout_block__contents {
    margin-bottom: 56px;
}

.module_ttl {
    background-color: var(--color-primary-default);
    color: #fff;
    padding: 8px 2.4rem;
    margin-bottom: 24px;
}

.module_ttl span {
    display: inline-block;
    background-color: var(--color-white);
    color: #ff0000;
    padding: 5px 2.4rem;
    margin-left: 1rem;
}

.label_h2 {
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.category {
    width: 47rem;
}

.contact_text {
    width: 100%;
    height: 26vh;
    padding: 1rem;
}

.radio-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* 行を折り返せるように */
    gap: 1rem;
    /* ← ラベル同士の隙間 */
    margin-bottom: 88px;
}

.radio-group>label:first-child {
    margin-right: 14rem;
    /* 「お客様区分」の見出しラベルとラジオボタンの間に隙間 */
    /*font-weight: bold;*/
}

.radio-group>label:last-of-type {
    margin-left: 4rem;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.form-row__emphasis {
    display: inline-block;
    color: var(--color-white);
    background-color: var(--color-primary-default);
    padding: 5px 2.4rem;
    margin-left: 2.4rem;
}

.form-row label {
    width: 30%;
    /* ラベル幅固定 */
    margin-right: 10px;
    /*font-weight: bold;*/
    text-align: left;
}

.form-row input {
    flex: 1;
    padding: 8px;
    box-sizing: border-box;
    max-width: 100%;
}


.contact_note {
    text-align: center;
    background-color: #efdde2;
    color: #000;
    padding: 62px 6.2rem;
    line-height: 2.4;
}

.contact_note__checkbox {
    margin-top: 24px;
}

.confirm-button {
    width: 40rem;
    margin: auto;
}

.confirm-button button {
    background-color: var(--color-primary-default);
    color: var(--color-white);
    padding: 2rem;
}

.caution {
    color: var(--color-black);
    line-height: 1.8;
}

/* 個人情報の取り扱い */
.contact_note p a {
    color: var(--color-primary-default);
    text-decoration: underline;
}

/* ポップアップ背景 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow: auto;
    padding: 5%;
    box-sizing: border-box;
}

/* ポップアップ本体 */
.popup-content {
    position: relative;
    /* ← CLOSEボタンの位置指定基準になる */
    background: #fff;
    max-width: 960px;
    width: 100%;
    margin: auto;
    padding: 5%;
    box-sizing: border-box;
}

.popup-content .head {
    text-align: left;
    margin-bottom: 30px;
}

.popup-content .head .top {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary-default);
    line-height: 1;
    margin-bottom: 20px;
}

.popup-content .head .textarea {
    line-height: 1.5;
}


/* テーブル調整 */
.popup-content .table {
    width: 100%;
    margin: auto;
    font-size: 1.3rem;
    line-height: 1.7em;
}

.popup-content .table thead th {
    border-left: solid 1px #a3a2a2;
    border-top: solid 1px #a3a2a2;
}

.popup-content .table th:first-child {
    border-left: solid 1px #a3a2a2;
    border-top: solid 1px #a3a2a2;
    text-align: center;
}

.popup-content .table th,
.popup-content .table td {
    padding: 10px;
    border-right: 1px solid #A3A2A2;
    border-bottom: 1px solid #A3A2A2;
    text-align: left;
}


/* CLOSEボタン */
.close-btn {
    position: absolute;
    content: "";
    font-size: 20px;
    width: 50px;
    height: 50px;
    top: 0;
    right: 0;
    background: #00000000;
    color: #000000;
    border: none;
    cursor: pointer;
}


/* スマホ対応 */
@media (max-width: 768px) {
    .popup-content {
        max-height: 95vh;
        overflow-y: scroll;
    }

    .popup-content .table {
        width: 100%;

    }

    .popup-content .table thead {
        display: none;

    }

    .popup-content .table tr {
        display: block;
        text-align: left;
    }

    .popup-content .table tbody tr th:nth-child(1) {
        display: none;
    }

    .popup-content .table tbody tr th {
        background-color: #F4F4F4;
        padding: 3px 10px;
        margin-bottom: 5px;
        display: block;
        border: none;
        padding: 5px;
    }

    .popup-content .table tbody tr td {
        display: block;
        border: none;
    }

    .popup-content .table tbody tr+tr {
        margin-top: 15px;
    }

}


/* スマホ（600px以下）では縦積みに切り替え */
@media (width <=768px) {
    .contact_bg {
        background-color: var(--color-white);
        background-image: none;
    }

    .inner_form_sp {
        width: 100%;
    }

    .layout_section_contact {
        margin-bottom: 56px;
    }

    .layout_section_form_sp {
        padding: 0;
        margin-top: 56px;
    }

    .form_wrap_sp,
    .form-section,
    .caution {
        width: 90%;
        margin: auto;
    }

    .contact_dtl {
        flex-wrap: wrap;
    }

    .contact_dtl dt {
        width: 100%;
    }

    .contact_dtl dd {
        width: 100%;
    }

    .label_h2 {
        justify-content: space-between;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row label {
        width: 100%;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .form-row input {
        width: 100%;
    }

    .category {
        width: 100%;
    }

    .radio-group>label:first-child {
        margin-right: 4rem;
    }

    .contact_note {
        line-height: 1.6;
        padding: 24px 1.6rem;
    }

    .contact_note__checkbox label {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .checkbox_text_sp {
        display: inline-block;
        text-align: left;
        font-size: 2rem;
    }

    .confirm-button {
        width: 100%;
    }

    .confirm {
        display: inline-block;
        border: 1px #fff solid;
        padding: 10px 1rem;

    }

    .caution {
        line-height: 1.6;
        font-size: 1.3rem;
        color: #231815;
    }
}