/* 共通styleの上書き */

div.head h1 {
    width: auto;
    max-width: 1280px;
    min-width: 960px;
}

footer {
    width: 100%;
    border-top-width: 1px;
    background-color: #DB0300;
}

div.footerLinkArea {
    background-color: white;
}

.footerLinkArea > ul {
    max-width: 1280px;
    min-width: 960px;
    margin: auto;
}

.footerLinkArea > ul > li > a {
    color: #DB0300;
}

footer small {
    width: auto;
    max-width: 1280px;
    min-width: 960px;
}

footer small,
footer small a {
    color: white;
}

footer small a:hover {
    color: white;
}


/*メニューの上書き*/

.move-page-top,
#sp_logo {
    background: #DB0300;
}

@media screen and (max-device-width: 767px) {
    #sp_header_menu-area {
        position: absolute;
        top: -200px;
        right: 0;
        z-index: 10;
        background-color: #DB0300;
    }
}


/* ページのstyle */

section.heading {
    width: 100%;
    background-color: #DB0300;
    margin-bottom: 30px;
}

div.headingBg {
    max-width: 1280px;
    min-width: 960px;
    margin: auto;
    -js-display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.headingBg > img {
    display: block;
    width: 50%;
    padding: 1.173% 0.782% 1.173% 0;
}

.headingBg > p {
    padding: 0.782%;
    color: white;
    width: 50%;
}

article.mainContainer {
    max-width: 1280px;
    min-width: 960px;
    margin: auto;
    font-size: 10px;
}

.mainContainer > h2 {
    font-size: 2em;
    padding: 0 0 1rem 1rem;
    border-bottom: 2px solid #ccc;
    position: relative;
    margin: 10px 0 10px 0;
}

.mainContainer > h2:before {
    content: "";
    display: block;
    width: 12%;
    border-bottom: 2px solid #eb6100;
    position: absolute;
    bottom: -2px;
    left: 0;
}

section.itemList {}

.itemList > ul {
    -js-display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    flex-flow: row wrap;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.itemList > ul > li {
    width: 24%;
    height: 200px;
    box-sizing: border-box;
    border: solid 1px #d0d0d0;
    margin-bottom: 1.3333%;
    margin-bottom: calc(4% / 3);
    transition: 0.3s;
}

@-moz-document url-prefix() {
    .itemList > ul > li {
        width: 24%;
        height: 200px;
        box-sizing: border-box;
        border: solid 1px #d0d0d0;
        margin-bottom: 15px;
        transition: 0.3s;
    }
}

.itemList > ul > li:not(:nth-of-type(4n+1)) {
    margin-left: 1.3333%;
    margin-left: calc(4% / 3);
}

.itemList > ul > li:hover {
    opacity: 0.5;
}

.itemList > ul > li > a,
.itemList > ul > li > a > img {
    display: block;
    width: 100%;
}

.itemList > ul > li > a {
    position: relative;
    height: 100%;
    overflow: hidden
}

.itemList > ul > li > a > img {
    position: absolute;
    top: -70px;
}

.itemList > ul > li > a > h3 {
    width: 100%;
    height: 35px;
    bottom: 0;
    position: absolute;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    -js-display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: start;
    justify-content: start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding-left: 10px;
    color: black;
    font-size: 1.4rem;
    font-weight: normal;
}

.itemList > small + a {
    display: block;
    background-color: #DB0300;
    width: 52%;
    width: calc(24% * 2 + ((4% / 3) * 3));
    margin: auto;
    -js-display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    color: white;
    height: 40px;
    position: relative;
    transition: 0.3s;
    margin-top: 30px;
    margin-bottom: 50px;
    border-radius: 3px;
    box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
}

.itemList > small + a:hover {
    opacity: 0.5;
    text-decoration: none;
}


/* IE10~に対応するCSSハック */

@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
    .itemList > ul > li:not(: nth-of-type(4n+1)) {
        margin-left: 1.333%;
    }
}

@media screen and (max-device-width:959px) {
    div.head h1 {
        max-width: 959px;
        min-width: 768px;
    }
    div.headingBg {
        max-width: 959px;
        min-width: 768px;
    }
    .headingBg > p {
        width: 50%;
    }
    article.mainContainer {
        max-width: 959px;
        min-width: 768px;
    }
    .mainContainer > h2:before {
        width: 16%;
    }
    .itemList > ul > li {
        width: 32%;
    }
    .itemList > ul > li:not(:nth-of-type(4n+1)) {
        margin-left: 0;
    }
    .itemList > ul > li:not(:nth-of-type(3n+1)) {
        margin-left: 2%;
        margin-left: calc((100% - (32% * 3)) / 2);
    }
    .itemList > ul > li > a > img {
        top: -10%;
    }
    .footerLinkArea > ul {
        max-width: 959px;
        min-width: 768px;
    }
    footer small {
        max-width: 959px;
        min-width: 768px;
    }
}

@media screen and (max-device-width:767px) {
    div.head h1 {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    section.heading {
        padding-top: 50px;
    }
    div.headingBg {
        max-width: 100%;
        min-width: auto;
        width: 100%;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        flex-flow: column nowrap;
    }
    .headingBg > img {
        width: 90%;
        margin: 2% 0;
    }
    .headingBg > p {
        width: 90%;
        margin-bottom: 2%;
    }
    article.mainContainer {
        max-width: 100%;
        min-width: auto;
        width: 100%;
        padding-top: 0;
    }
    .mainContainer > h2:before {
        width: 16%;
    }
    .itemList > ul > li {
        width: 49%;
    }
    .itemList > ul > li:not(:nth-of-type(3n+1)) {
        margin-left: 0;
    }
    .itemList > ul > li:not(:nth-of-type(2n+1)) {
        margin-left: 2%;
    }
    .itemList > ul > li > a > img {
        top: 0px;
    }
    .itemList > small + a {
        width: 70%;
    }
    .footerLinkArea > ul {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    footer small {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
}

@media screen and (max-device-width:374px) {
    section.heading {
        padding-top: 40px;
    }
    .headingBg > img {
        width: 96%;
    }
    .headingBg > p {
        width: 96%;
    }
    .mainContainer > h2:before {
        width: 45%;
    }
    .itemList > ul {
        width: 96%;
        margin: auto;
    }
    .itemList > ul > li {
        width: 100%;
        margin-bottom: 10%;
    }
    .itemList > ul > li:not(:nth-of-type(2n+1)) {
        margin-left: 0;
    }
    .itemList > ul > li > a > img {
        top: -20%;
    }
    .itemList > small + a {
        width: 90%;
    }
    .footerLinkArea > ul {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    footer small {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
}
