body{
    background-color: #fff;
}

section {
    margin: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-subtitle p{
    text-align: center;
    margin-bottom: 0;
}

.main-subtitle p::before{
    content: '';
    display: block;
    width: 75%;
    height: 0.25rem;
    background-color: #fff;
    margin: 1rem auto;
    border-radius: 1rem;
}

.category-container{
    width: 100%;
}

.category-container ul{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    overflow-x: scroll;
}

.category-container ul li{
    list-style: none;
    height: 100%;
    padding: 0.75rem;
    color: #435060;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}

.category-tab:hover{
    color: #1a489d;
    transition: color 0.3s ease;
}

.category-tab.active{
    border-bottom: 2px solid #1a489d;
    color: #1a489d;
    background: none;
}

.category-articles{
    width: 100%;
    transition: display 0.3s ease;
}

.article {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    margin-bottom: 1rem;
}

.article:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.article img:hover{
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.article .column-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.article .date {
    color: #737373;
    font-size: 0.75rem;
    padding: 1rem 1rem 0.5rem;
}

.article .header {
    padding: 0 1rem;
    margin-top: 1rem;
}

.article .category,
.article .tag {
    display: inline-block;
    background-color: #e3f6ff;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.tag{
    color: #1a489d;
    font-size: 0.8rem;
    margin: 0;
}

.article .body {
    padding: 1rem;
}

.article .body .title {
    color: #435060;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.article .body .title:hover{
    color: #1a489d;
    transition: color 0.3s ease;
}

.article .body .meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tags{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.tag{
    height: 100%;
    margin-bottom: 0 !important;
}

.article .body .date{
    color: #737373;
    font-size: 0.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.article .body .tags {
    margin-left: auto;
}

.article .body .date i,
.article .body .tags i,
.tags i {
    color: #06bbdb;
}

.article .footer {
    display: none;
}

.article .footer a {
    display: none;
}

.tags ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.article .body .excerpt{
    color: #737373;
}

.category-all-btn{
    display: block;
    text-align: right;
    margin: 1rem;
    padding: 0.5rem 1rem;
    color: #fff;
    border-radius: 1rem;
}

.category-all-btn a{
    color: #737373;
    text-decoration: none;
}

/* PC向けのスタイル */
@media screen and (min-width: 768px) {
    .menu-icon-container{
        height: 50%;
    }
    .category-container ul {
        grid-template-columns: repeat(5, 1fr);
        display: flex;
        justify-content: space-around;
        align-items: center;
        overflow-x: scroll;
    }

    .category-container li {
        padding: 0.5rem;
    }

    .category-container a {
        font-size: 1.2rem;
    }

    .article-container {
        display: flex;
        justify-content: space-between;
        padding: 2rem 0;
        max-width: 1200px;
        width: 100%;
    }

    .articles{
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .main-article .article{
        height: 100%;
    }

    .sub-articles .article {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .sub-articles .article .body{
        flex-grow: 2;
    }

    .article-container .article {
        width: 100%;
    }

    .article-container .article .column-thumbnail {
        width: 100%;
    }

    .article .column-thumbnail {
        height: 200px;
        min-width: 400px;

    }

    .sub-articles .article .thumbnail{
        position: relative;
    }

    .sub-articles .article .thumbnail img,
    .sub-articles .article .header{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .sub-articles .article .body{
        margin-left: 150px;
    }

    .sub-articles .article .column-thumbnail {
        min-width: 150px;
        height: auto;
    }

    .sub-articles .article .tags{
        overflow-x: scroll;
    }

    .sub-articles .article .tags i{
        display: none;
    }

    .sub-articles .article .tags .tag{
        white-space: nowrap;
    }

    .sub-articles .article{
        margin-bottom: 0.5rem;
    }

    .article .body .title {
        font-size: 1.2rem;
    }
}

/* ページネーションのスタイル */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    padding: 1rem;
    max-width: 1200px;
}

.pagination ul,
.pagination li {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.pagination .page-numbers:not(.prev):not(.next) {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pagination .prev,
.pagination .next {
    width: auto;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 1.2rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* 数字ボタン（current以外） */
.pagination .page-numbers:not(.current):not(.prev):not(.next) {
    background-color: #fff;
    color: #06bbdb;
    border: 1px solid #06bbdb;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pagination .page-numbers:not(.current):not(.prev):not(.next):hover {
    background-color: #e3f6ff;
    color: #1a489d;
    text-decoration: none;
}

/* current（現在ページ） */
.pagination .page-numbers.current {
    background-color: #06bbdb;
    color: #fff;
    border: 1px solid #06bbdb;
    text-decoration: none;
}

/* 前へ・次へボタン */
.pagination .prev,
.pagination .next {
    background-color: #fff;
    color: #06bbdb;
    border: 1px solid #06bbdb;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: #e3f6ff;
    color: #1a489d;
    text-decoration: none;
}