#upload01 .content_core {
    margin-top: 0;
}

#upload01 .main_text {
    margin: 30px auto 40px;
    padding-left: 60px;
    line-height: 1.2em;
}
#upload01 .main_text span {
    color: #22801a;
    font-weight: bold;
}

#dl_form .title {
    color: #22801a;
    padding-left: 2em;
    padding-bottom: 1em;
    font-weight: bold;
    border-bottom: 1px solid #cccccc;
}
#dl_form table {
    max-width: 920px;
    width: 100%;
    margin: 30px auto 0;
    vertical-align: middle;
}

#dl_form table th {
    margin: 30px auto 80px;
    width: 30%;
    min-width: 140px;
    text-align: left;
    position: relative;
    font-weight: bold;
    font-size: 16px;
    vertical-align: top;
    padding-top: 16px;
}

#dl_form table th.required::after {
    content: "※必須";
    position: absolute;
    display: block;
    right: 5px;
    color: #22801A;
    font-weight: bold;
    font-size: 15px;
    margin: auto;
    top: 18px;
    right: 15px;
}

#dl_form table td {
    padding: 10px;
    width: 70%;
}
#dl_form table td .file:not(:first-child) {
    margin-top: 10px;
}
#dl_form table td .notion {
    line-height: 1.6;
    margin-top: 15px;
}

#dl_form table td input,
#dl_form table td textarea {
    width: 100%;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}
#dl_form table td textarea {
    max-height: 180px;
    padding: 10px 5px;
    border: solid 1px #808080;
    border-radius: 5px;
}

#dl_form .policy {
    text-align: center;
    margin-top: 30px;
}
#dl_form .policy a {
    text-decoration: underline;
    color: #808080;
}
#dl_form .policy input {
    transform: scale(1.5);
}
#dl_form .policy .wpcf7-list-item-label {
    display: none;
}

#upload01 .submit_wrap {
    margin: 40px auto 0;
    display: block;
    width: 240px;
    position: relative;
    border: 1px solid transparent;
    transition: border .4s;
}


#upload01 .wpcf7-submit {
    position: relative;
    border: 1px solid #808080;
    font-size: 16px;
    color: black;
    text-align: center;
    display: block;
    margin: auto;
    transition: 0.2s all;
    padding: 25px 40%;

}

#upload01 .submit_wrap::after {
    content: "＞";
    position: absolute;
    right: 10px;
    margin: auto;
    top: 0;
    bottom: 0;
    height: 1em;
}

#upload01 .wpcf7-spinner {
    margin: auto;
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
}

@media screen and (max-width: 700px) {
    #upload01 .main_text {
        padding-left: 0;
    }

    #dl_form table tr {
        display: flex;
        flex-wrap: wrap;
    }
    #dl_form table th,
    #dl_form table td {
        width: 100%;
    }
    #dl_form table th {
        margin: 10px 0;
        padding-top: 5px;
    }
    #dl_form table td {
        padding-left: 0;
        padding-right: 0;
    }
    #dl_form table td .file:not(:first-child) {
        margin-top: 15px;
    }
}


/* モーダル背景（オーバーレイ） */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* モーダル有効化状態 */
.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* モーダル本体のウィンドウ */
.modal-wrapper {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* コンテンツ表示エリア（スクロール可能） */
.modal-content {
    padding: 40px 30px;
    overflow-y: auto;
}

/* 閉じるボタン */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 10;
    line-height: 1;
}

.modal-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media screen and (max-width: 700px) {
    .modal-content {
        padding: 30px 15px;
    }
}


.f_file {
    display: none;
}

@media screen and (max-width: 700px) {
    .f_file {
        display: block;
        width: 60px;
        height: 60px;
        background-color: #22801b;
        border-radius: 10px;
        color: #ffffff;
        font-size: 12px;        
        position: fixed;
        right: 15px;
        bottom: 14vw;
        z-index: 999;
    }
    .f_file a {
        width: 100%;
        height: 100%;
        color: #ffffff;
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
}


#upload_test .page_image {
  background-image: url(../img/common/upload_bg.jpg);
}
#upload_test .content_wrap {
    min-height: 600px;
}