@charset "utf-8";

/* 共通パーツ用 CSS */

body ,html {
    margin: 0 auto;
    padding: 0;
    max-width: 1045px;
    height: 100%;
}

#container {
    overflow-x: hidden;
    position: relative;
    height: auto !important;
    height: 100%;
    min-height: 100%;
}

header {
    padding-top: 10px;
    height: 100px;
}

header a {
    color: black;
    text-decoration: none;
}

header>div:nth-child(1) {
    float: left;
}

header>div:nth-child(1) img:nth-child(1) {
    display: inline;
    max-width: 381px;
    margin-right: -70px;
}

header>div:nth-child(1) img:nth-child(2) {
    display: none;
}

header>div:nth-child(2), header>div:nth-child(3) {
    text-align: right;
    white-space: nowrap;
    margin: 0 5px;
}

#content {
    padding: 5px;
    float: none;
    padding-bottom: 58px;
    max-width:800px;
    margin: auto;
}

footer {
    color:#fff;
    background-color:#CD5C5C;
    text-decoration:none;
    width: 100%;
    max-width: 1045px;
    position: absolute;
    bottom: 0;
    border-style: solid;
    border-width: 10px 28px 10px 27px;
    border-color: #FFF;
    box-sizing: border-box;
    border-collapse: collapse;
    border-spacing: 0;
}

footer a {
    text-decoration: none;
    color: white;
}

footer>div:nth-child(1) {
    float: left;
}

footer>div:nth-child(2) {
    float: right;
    margin-right: 1em;
    text-align: right;
}

@media screen and (max-width: 767px) {
    header {
        height: 120px;
    }
    header>div:nth-child(1) {
        float: none;
    }
    header>div:nth-child(2), header>div:nth-child(3) {
        white-space: nowrap;
        text-align: left;
    }
    header>div:nth-child(2)>a:nth-child(5) {
        display: none;
    }
    header>div:nth-child(1) img:nth-child(1) {
        display: none;
    }
    header>div:nth-child(1) img:nth-child(2) {
        display: inline;
    }
}
