div.layout {
    display: flex;
    flex-direction: column;
}

div.contents-layout {
    width: 100%;
    text-align: center;
}

main.contents-layout {
    width: 100%;
    text-align: center;
}

div.page-header {
    flex-grow: 1;
    margin: 10px;
}

header.page-header {
    flex-grow: 1;
    margin: 10px;
}

div.page-menu {
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
}

    div.page-menu ul li {
        background-color: #506f04;
        margin-left: -1px;
        min-width: 80px;
    }

div.main-contens {
    display: inline-flex;
    text-align: center;
    width: 100%;
}

section.main-contens {
    display: inline-flex;
    text-align: center;
    width: 100%;
}

div.head-contents {
    flex-grow: 1;
    margin: 0 10px 10px 10px;
    text-align: initial;
    width: 100%;
}

div.page-contents {
    flex-grow: 1;
    margin: 0 10px 10px 10px;
    text-align: initial;
    /*width: calc(90%  - 360px);*/
    flex-basis: calc(100% - 300px);
    /*border:solid;*/
}

div.page-contents-left {
    margin: 0 60px 10px 10px;
    width: 300px;
}

div.page-side {
    min-width: 8%;
    margin: 10px;
}

div.page-footer {
    flex-grow: 1;
    background-color: #506f04;
    color: white;
}

footer.page-footer {
    flex-grow: 1;
    background-color: #506f04;
    color: white;
}

div.page-footer-box {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

div.page-footer-box-sub {
    display: flex;
    justify-content: space-around;
    margin: 10px;
    flex-wrap: wrap;
    line-height: 16px;
    text-decoration: none;
}

    div.page-footer-box-sub a {
        text-decoration: none;
        margin: 0 30px;
        color: #fff;
    }

div.page-footer-box-sepalate {
    border: 1px solid #fff;
    display: initial;
}

@media screen and (max-width:1120px) {
    div.layout {
        display: flex;
        flex-direction: column;
    }

    div.contents-layout {
        display: flex;
        flex-direction: column;
    }

    main.contents-layout {
        display: flex;
        flex-direction: column;
    }

    div.page-header {
        flex-grow: 1;
    }

    header.page-header {
        flex-grow: 1;
    }

    div.page-menu {
        display: none;
    }

    div.main-contens {
        display: inline;
        width: 100%;
    }

    section.main-contens {
        display: inline;
        width: 100%;
    }

    div.page-contents {
        flex-grow: 1;
        margin: 5px;
    }

    div.page-side {
        display:none;
        width: 1px;
        flex-grow: 1;
    }

    div.page-margin {
        display: none;
    }

    div.page-footer {
        flex-grow: 1;
    }

    footer.page-footer {
        flex-grow: 1;
    }

    div.head-contents {
        display: flex;
        justify-content: center;
        width: calc(100% - 15px);
        box-sizing: border-box;
        margin-top: 62px;
        margin-bottom:-10px;
        flex-direction: column;
    }

    div.page-contents-left {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
}
