main {
    text-align: center;
}
.page_title h2{
    color: var(--main-color);
}


.category_block {
    max-width: 600px;
    margin: 10px auto 30px auto;
    text-align: center;
}

.category_list {
    display: inline-block;
    width: auto;
    margin: 10px 20px;
    padding: 0 10px;
    text-align: center;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    /* 背景色を無色に */
    background: transparent;
    /* 枠線を消す */
    border: none;
    /* クリックした際に枠線をnone消す */
    outline: none;
    /* 影を消す */
    box-shadow: none;
    font-family: '游明朝', serif;
    cursor: pointer;
}

.category_list span {
    width: 100%;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--main-color);
}

.category_list p {
    font-size: 18px;
    line-height: 50px;
    letter-spacing: 1px;
    color: black;
}


.topic {
    margin: 0px auto 100px auto;
    display: block;
}

.topic .title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
}

.topics_block {
    display: block;
    margin: 0 auto 50px auto;
}

.topics_list {
    display: flex;
    width: 750px;
    margin: 15px auto;
    text-decoration: none;
    border-bottom: 1px solid var(--main-color);
    padding: 25px 0;
    line-height: 28px;
}

.topics_list .category{
    width: 20%;
    background: var(--main-color);
    color: var(--text-color);
    font-size: 14px;
    align-self: center;
    padding: 3px 0;
    font-weight: 700;
}

.topic_list p {
    font-size: 16px;
}

.topics_list .date {
    width: 20%;
    color: #000;
    align-self: center;
}

.topics_list .topic_title {
    width: 60%;
    color: #000;
    text-align: left;
    align-self: center;
}

.topic .btn {
    margin: 0 auto;
    display: block;
    text-align: center;
    text-decoration: none;
    width: 218px;
    height: 40px;
    border: 1px solid var(--main-color);
    background: var(--main-color);
    color: var(--text-color);
    transition: 0.5s;
}

.topic .btn:hover {
    color: var(--main-color);
    background: #fff;
}

.pagination{
    margin-top: 50px;
}

.pagination button {
    margin: 0 15px;
    padding: 0 10px;
    border: none;
    outline: none;
    box-shadow: none;
    border-bottom: 1px solid var(--text-color);
    background-color: var(--main-color);
    background: transparent;
    cursor: pointer;
    color: var(--text-color);
    font-size: 18px;
    font-family: '游明朝', serif;
    line-height: 36px;
}

.pagination button:disabled {
    
    border-bottom: 0px solid var(--main-color);
}


/* ロード */
.loader,
.loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}

.loader {
    margin: 60px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid var(--main-color);
    border-right: 1.1em solid var(--main-color);
    border-bottom: 1.1em solid var(--main-color);
    border-left: 1.1em solid #b4b4b4;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}



.topic_box{
    margin-top: 50px;
}

.topic_page_title {
    text-align: center;
    font-size: 24px;
    margin: 10px auto;
}

.topic_page_category .topic_page_date {
    text-align: center;
    font-size: 14px;
}

.topic_page_content {
    font-size: 16px;
    width: 650px;
    margin: 50px auto 0px auto;
    text-align: left;
}


@media (max-width: 481px) {

    .topic {
        width: clamp(300px, calc(90%), 480px);
        margin-bottom: 50px;
    }
    .topics_list {
        display: block;
        width: 100%;
        position: relative;
        padding: 20px 0;
    }

    .topics_list .category {
        width: 40%;
        margin-bottom: 15px;
        font-size: 12;
        padding: 2px 0;
    }

    .topics_list .date {
        position: absolute;
        text-align: right;
        top: 26px;
        right: 0;
        width: auto;
    }

    .topics_list .topic_title {
        display: block;
        width: 70%;
        /* 2列目に表示 */
        order: 2;
    }

    .category_list{
        min-width: 30%;
    }

    .category_list p {
        font-size: 16px;
        line-height: 40px;
    }

    .pagination {
        margin-top: 30px;
    }


    .topic_page_content {
        font-size: 16px;
        width: 100%;
        margin-top: 30px;
    }
    .topic_box {
        margin-top: 40px;
    }
}

@media (min-width: 481px) {
    .topic {
        width: clamp(840px, calc(90%), 1000px);
    }
}

