@charset "UTF-8";

/* 基本スタイル（PC） */
#box {
    background: url(../images/bg01.png)no-repeat;
    background-size: contain;
    background-position: top left;
    margin: 0 auto 3%;
    padding: 0;
    position: relative;
}

#box:before {
    content: "";
    background: url(../images/topics/title.png)no-repeat;
    background-size: 100%;
    position: absolute;
    top: 3%;
    left: 5%;
    width: 64px;
    height: 340px;
}

#box .topicsinner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1% 0 3%;
}

#box .topicsinner .topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90%;
    margin: 3% auto;
    padding: 0 3%;
}
#box .topicsinner .topics picture{
    border: 1px solid #eee;
    width: 90%;
    height: 320px;
    overflow: hidden;
}

#box .topicsinner .topics picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#box .topicsinner .topics ul {
    position: relative;
    padding: 0 0 0 12%;
}
#box .topicsinner .topics ul:before {
    content: "";
    border-left: 6px solid #f5748c;
    position: absolute;
    top: 0;
    left: 30px;
    width: 5px;
    height: 100%;
}

#box .topicsinner .topics ul li {
    display: block;
}

#box .topicsinner .topics .title {
    font-size: 24px;
    line-height: 1.8em;
    font-weight: bold;
    padding: 15% 0 3%;
}

#box .topicsinner .topics .date {
    font-size: 20px;
}

#box .topicsinner .topics .text {
    grid-column: 1/3;
    margin: 3% 0;
    width: 100%;
    line-height: 1.8em;
}

#pagenation {
    background: #fff;
}

#pagenation ul {
    display: flex;
    justify-content: space-evenly;
    border: 1px #ccc solid;
    width: 70%;
    height: 45px;
    max-width: 1200px;
    margin: 0 auto 10%;
    padding: 10px 0 0;
}

#pagenation .latest {
    padding: 0 0 0;
    position: relative;
    margin: 0;
    width: 30%;
}

#pagenation .latest span {
    padding: 0 0 0 20px;
}

#pagenation .latest:before {
    content: "◀︎";
    position: absolute;
    top: 0px;
    left: 1px;
    width: 20px;
    height: 20px;
}

#pagenation .home {
    padding: 0 0 1%;
    margin: 0 0 0;
    width: 30%;
    text-align: center;
}

#pagenation .home span {
    padding: 0 0 0 20px;
}

#pagenation .home a {
    position: relative;
}

#pagenation .home a:before {
    content: "";
    background: url(../images/topics/home.png)no-repeat;
    background-size: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 13px;
    height: 16px;
}

#pagenation .past {
    position: relative;
    padding: 0 20px 8% 0;
    margin: 0 0 0;
    text-align: right;
    width: 30%;
}

#pagenation .past span {
    padding: 0 5px 0 0;
}

#pagenation .past:before {
    content: "▶︎";
    position: absolute;
    top: 0px;
    right: 3px;
    width: 20px;
    height: 20px;
}

/* 640px以下：基本スタイルとの差分 */
@media print, screen and (max-width: 640px) {
    header .contact .contact01 a {
        padding: 5% 0 4% 30px;
    }

    header .contact .contact02 a {
        padding: 5% 0 6%;
    }

    #box {
        background-size: 100%;
    }

    #box:before {
        width: 45px;
        height: 230px;
    }

    #box .topicsinner {
        width: 90%;
        margin: 0 auto 10%;
        padding: 3% 0 0;
        max-width: none;
    }

    #box .topicsinner .topics {
        width: 100%;
        margin: 10% auto;
        display: block;
        padding: 0;
    }

    #box .topicsinner .topics picture{
        display: block;
        width: 100%;
    }

    #box .topicsinner .topics ul {
        margin: 1.2rem auto 0;
        padding: 0 0 0 6%;
    }

    #box .topicsinner .topics ul:before {
        left: 0;
    }

    #box .topicsinner .topics ul li {
        padding: 5px 0 0;
    }

    #box .topicsinner .topics .title {
        width: 85%;
        font-size: inherit;
        line-height: inherit;
        font-weight: inherit;
        padding: 0;
    }

    #box .topicsinner .topics .title br {
        display: none;
    }

    #box .topicsinner .topics .text {
        margin: 10% 0 0 0;
        width: 93%;
        line-height: inherit;
    }

    #pagenation {
        border: 1px #ccc solid;
        margin: 0 auto 10%;
        padding: 4px 0 0;
        width: 90%;
        height: 32px;
    }

    #pagenation ul {
        justify-content: space-between;
        border: 0;
        width: auto;
        height: auto;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    #pagenation .latest {
        width: 35%;
        padding: 0;
    }

    #pagenation .latest:before {
        top: 1px;
        left: 0;
    }

    #pagenation .home {
        position: relative;
        width: 25%;
        padding: 0;
        text-align: inherit;
    }

    #pagenation .home:before {
        content: "";
        background: url(../images/topics/home.png)no-repeat;
        background-size: 100%;
        position: absolute;
        top: 3px;
        left: -5px;
        width: 10px;
        height: 14px;
    }

    #pagenation .past {
        padding: 0;
    }

    #pagenation .past:before {
        top: 1px;
        right: 0;
    }

    #pagenation .latest a,
    #pagenation .home a,
    #pagenation .past a {
        color: #4d4d4d;
        width: 100%;
        height: 0;
        position: absolute;
        top: 0;
        right: 0;
        padding: 0 0 26%;
    }

    #pagenation .latest a span {
        padding: 0 0 0 20px;
    }

    #pagenation .past a span {
        padding: 0 20px 0 0;
    }

    #pagenation .latest a b {
        padding: 0 0 0 13%;
    }

    #pagenation .home a b {
        padding: 0 0 0 13%;
    }

    #pagenation .past a b {
        padding: 0 13% 0 0;
    }

    #box .topicsinner .topics .date {
        font-size: inherit;
    }

    #pagenation .home span {
        padding: 0;
    }

    #pagenation .home a:before {
        content: none;
    }
}

@media screen and  (min-width: 501px) and (max-width: 640px) {
    header .contact .contact01 a {
        padding: 1% 0 4% 30px;
    }

    header .contact .contact02 a {
        padding: 1% 0 6%;
    }
}

@media screen and  (min-width: 401px) and (max-width: 500px) {
    header .contact .contact01 a {
        padding: 2% 0 4% 30px;
    }

    header .contact .contact02 a {
        padding: 2% 0 6%;
    }
}
