/*
Theme Name: SHIBATA DRIFT RACING TEAM FAN CLUB
*/
@charset "utf-8";
/* CSS Document */
.textthemecolor {
    color: #A50000;
}
/* WP投稿・画像位置設定時 */
.status-publish img.alignright {
    display: block;
    margin: 0 0 0 auto;
}
.status-publish img.alignleft {
    display: block;
    margin: 0 auto 0 0;
}
.status-publish img.aligncenter {
    display: block;
    margin: 0 auto;
}
/* お知らせ */ 
.wp__infolist {
    padding: 0;
    margin: 0;
    list-style: none;
}
.wp__infolist__item {
    background-color: #fff;
    margin: 0 0 5px;
}
.wp__infolist__item:last-child {
    margin: 0;
}

.wp__infolist__item > a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    background-color: #fff;
    color: #000;
}
.wp__infolist__item > a:hover,
.wp__infolist__item > a:hover .infotext time,
.wp__infolist__item > a:hover .infotext .moretext{
    color: #A50000;
}

.wp__infolist__item .infothumbnail {
    display: block;
    flex: 0 0 180px;
    padding: 0;
    margin: 0;
    background-position: center center;
    background-size: 100% auto;
    background-repeat: no-repeat;
}

.wp__infolist__item .infothumbnail span {
    display: block;
    padding: 100% 0 0;
    margin: 0;
    width: 100%;
    height: 0;
}
.wp__infolist__item .infotext {
    flex: 1 1 auto;
    padding: 15px 10px 10px 20px;
    margin: 0;
}

.wp__infolist__item .infotext time {
    display: block;
    margin: 0 0 5px;
    width: 100%;
    line-height: 1;
    color: #666;
}
.wp__infolist__item .infotext h2,
.wp__infolist__item .infotext h3 {    
    padding: 0;
    margin: 0 0 10px;
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1.5;
}
.wp__infolist__item .infotext p {
    padding: 0;
    margin: 0;
    font-size: 1.6rem;
}

.wp__infolist__item .infotext .moretext {
    display: inline-block;
    padding: 0 0 0 .5em;
    font-size: 1.2rem;
    color: #001a8b;
}

/* ページネーション */
.p-blog__pager {
    padding: 0;
    margin: 25px auto;
}

ul.page-numbers {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.page-numbers > li {
    flex: 0 0 auto;
    margin: 0 12px 10px 0;
    line-height: 1;
    font-size: 2rem;
    text-align: center;
}

ul.page-numbers > li:last-child {
    margin: 0 0 5px;
}

ul.page-numbers > li > a {
    display: block;
    padding: 5px 10px;
    border: 1px solid #444;
    border-radius: 3px;
    background-color: #fff;
    text-decoration: none;
    color: #444;
}

ul.page-numbers > li > a:hover {
    background-color: #444;
    color: #fff;
}

ul.page-numbers > li > .current {
    display: block;
    padding: 5px 10px;
    background-color: #444;
    border: 1px solid #444;
    border-radius: 3px;
    font-weight: bold;
    color: #fff;
}

ul.page-numbers > li > .dots {
    font-weight: bold;
    color: #666;
}
ul.page-numbers > li > .prev,
ul.page-numbers > li > .next {
    font-weight: bold;
    color: #A50000;
}

@media only screen and (max-width: 768px) {
    .p-blog__pager {
        padding: 0 5px;
    }
    
    ul.page-numbers > li {
        margin: 0 8px 6px 0;
        font-size: 1.6rem;
    }
    
    /* お知らせ */
    .wp__infolist__item {
        margin: 0 auto 15px;
        max-width: 600px;
    }
    .wp__infolist__item > a {
        display: block;
        width: 100%;
        padding: 5px;
    }
    .wp__infolist__item .infothumbnail {
        width: 100%;
    }

    .wp__infolist__item .infotext {
        display: block;
        width: 100%;
        padding: 10px 5px 5px;
    }

    .wp__infolist__item .infotext time {
        margin: 0 0 5px;
        text-align: right;
    }
    .wp__infolist__item .infotext h2,
    .wp__infolist__item .infotext h3 {
        font-size: 1.6rem;
    }
    .wp__infolist__item .infotext p {
        font-size: 1.4rem;
    }
    
}