﻿/* =============================================
   フォーム
============================================= */
.section_content--form {
    padding: 0;
}

.section_content--form .section_space {
    position: relative;
}


.section_content--form .section_space::before {
    content: "";
    position: absolute;
    top: 190px;
    right: 0;
    width: 89px;
    height: 112px;
    background: url("../images/contact/form_bg_deco_top_sp.png") center / contain no-repeat;
    pointer-events: none;
}


.section_content--form .section_space::after {
    content: "";
    position: absolute;
    bottom: 580px;
    right: 0;
    width: 101px;
    height: 124px;
    background: url("../images/contact/form_bg_deco_bottom_sp.png") center / contain no-repeat;
    pointer-events: none;
}


.contact_form {
    width: 100%;
}

/* --- 定義リスト --- */
.form_dl {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.form_dl-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form_label {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--text-font);
    color: var(--main-color);
}

.form_dl-item.is-inline {
    flex-direction: row;
    align-items: center;
    gap: 45px;
}

.form_required {
    font-size: 12px;
    font-weight: 400;
    color: #D04D18;
    margin-left: 10px;
}

/* --- 入力フィールド共通 --- */
.form_input,
.form_select,
.form_textarea {
    width: 100%;
    padding: 6px 15px;
    font-size: 12px;
    letter-spacing: 0.06em;
    font-family: var(--text-font);
    color: var(--main-color);
    background: #fff;
    border: 1px solid var(--main-color);
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
}

.form_input::placeholder,
.form_textarea::placeholder {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #A2A2A2;
}

.form_input:focus,
.form_select:focus,
.form_textarea:focus {
    outline: none;
    border-color: var(--sub-color);
}

/* --- セレクト --- */
.form_select {
    background-image: url("../images/contact/form_select_ic.png");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px 6px;
    padding-right: 35px;
    cursor: pointer;
    max-width: 215px;
}

/* --- テキストエリア --- */
.form_textarea {
    resize: vertical;
    min-height: 225px;
}

/* --- ラジオボタン --- */
.form_radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.form_radio {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--text-font);
    color: var(--main-color);
    cursor: pointer;
}

.form_radio input[type="radio"] {
    accent-color: var(--main-color);
    width: 20px;
    height: 20px;
    margin: 0;
}

/* --- ファイル --- */
.form_file {
    display: block;
    cursor: pointer;
}

.form_file input[type="file"] {
    display: none;
}

.form_file-btn {
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    font-family: var(--text-font);
    color: #A2A2A2;
    letter-spacing: 0.06em;
    background: #fff;
    border: 1px solid var(--main-color);
    border-radius: 2px;
    width: 100%;
    max-width: 215px;
}

.form_file-note {
    font-size: 12px;
    color: var(--main-color);
    font-family: var(--text-font);
    margin-top: 8px;
}

/* --- 同意 --- */
.form_agree-block {
    margin-bottom: 40px;
}

.form_agree-text {
    font-size: 12px;
    font-family: var(--text-font);
    color: var(--main-color);
    line-height: 1.7;
    letter-spacing: 0.06em;
    text-align: center;
    margin-bottom: 30px;
}

.form_agree-text a {
    color: var(--main-color);
    text-decoration: underline;
}

.form_agree-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border-radius: 5px;
    padding: 20px;
}

.form_checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-family: var(--text-font);
    color: var(--main-color);
    cursor: pointer;
}

.form_checkbox input[type="checkbox"] {
    accent-color: var(--sub-color);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
}

.form_agree-box .form_required {
    display: inline-block;
    background: var(--sub-color);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.06em;
    margin-left: 0;
}

/* --- 送信ボタン --- */
.form_submit {
    text-align: center;
    margin: 0 auto;
}

.form_submit .cp_more-btn::after {
    background: none;
    content: "";
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--main-color);
    border-right: 1px solid var(--main-color);
    transform: translateY(-50%) rotate(45deg);
}

/* 「ファイルを選択」ボタン部分だけ装飾を消す */
.form_file-btn::file-selector-button {
    background: transparent;
    border: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

/* Chrome / Safari 系の古い互換用 */
.form_file-btn::-webkit-file-upload-button {
    background: transparent;
    border: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.news_list__no-post {
    text-align: center;
    font-size: 16px;
    margin-top: 100px;
    margin-bottom: 100px;
}

/* =============================================
   PC
============================================= */
@media (min-width: 768px) {
    .section_content--form {
        padding: 0 20px;
    }

    .form_file {
        position: relative;
    }

    .mwform-file-delete {
        position: absolute;
        top: 20px;
        right: 10px;
    }

    .section_content--form .section_space::before {
        top: 210px;
        right: clamp(-400px, -27vw, -200px);
        width: clamp(300px, 40vw, 587px);
        height: clamp(310px, 41vw, 608px);
        background-image: url("../images/contact/form_bg_deco_top_right.png");
    }


    .section_content--form .section_space::after {
        top: 160px;
        bottom: auto;
        right: auto;
        left: clamp(-450px, -30vw, -350px);
        width: clamp(300px, 40vw, 587px);
        height: clamp(260px, 34vw, 508px);
        background-image: url("../images/contact/form_bg_deco_top_left.png");
    }

    .section_content--form .content_box {
        max-width: 980px;
        margin: 0 auto;
        position: relative;
    }


    .section_content--form .content_box::before {
        content: "";
        position: absolute;
        bottom: 930px;
        right: clamp(-620px, -42vw, -250px);
        width: clamp(300px, 40vw, 587px);
        height: clamp(262px, 35vw, 514px);
        background: url("../images/contact/form_bg_deco_bottom_right.png") center / contain no-repeat;
        pointer-events: none;
    }

    .section_content--form .content_box::after {
        content: "";
        position: absolute;
        bottom: 250px;
        left: clamp(-650px, -44vw, -250px);
        width: clamp(300px, 40vw, 587px);
        height: clamp(254px, 34vw, 498px);
        background: url("../images/contact/form_bg_deco_bottom_left.png") center / contain no-repeat;
        pointer-events: none;
    }

    .form_dl {
        gap: 60px;
        margin-bottom: 80px;
    }

    .form_dl-item {
        gap: 15px;
    }

    .form_label {
        font-size: 20px;
    }

    .form_input,
    .form_select,
    .form_textarea {
        font-size: 16px;
        border-radius: 10px;
        padding: 20px 25px;
        max-width: 705px;
    }

    .form_textarea {
        min-height: 250px;
        max-width: 83%;
    }

    .form_dl-item:has(.form_file) {
        flex-direction: row;
        /* align-items: flex-start; */
        align-items: center;
        gap: 30px;
    }

    .form_dl-item:has(.form_file) .form_label {
        flex-shrink: 0;
        width: 170px;
        padding-top: 15px;
    }

    .form_file-btn {
        max-width: 350px;
        border-radius: 10px;
        padding: 15px 20px;
        font-size: 14px;
    }

    .form_agree-box {
        max-width: 420px;
    }

    .form_checkbox {
        font-size: 14px;
    }

    .form_agree-box .form_required {
        font-size: 14px;
    }

    .form_agree-block {
        margin-bottom: 80px;
    }

    .form_agree-text {
        font-size: 16px;
    }

    .form_agree-text br {
        display: none;
    }

    .form_input::placeholder,
    .form_textarea::placeholder {
        font-size: 14px;
    }

    .form_select {
        background-image: url("../images/contact/form_select_ic.png");
        background-position: right 30px center;
        background-size: 16px 13px;
        max-width: 320px;
    }

    .form_required {
        font-size: 14px;
        margin-left: 18px;
    }

    .form_radio input[type="radio"] {
        width: 30px;
        height: 30px;
    }

    .form_radio {
        gap: 10px;
        font-size: 20px;
    }
}