/* Styles for Blog Archive Page */
.p-archive {
    padding: 126px 0 91px;
    background-image: url(../../img/pc_bg_3.jpg);
    background-size: cover;
}

.p-archive__inner {
    max-width: 1154px;
    margin: 0 auto;
    padding: 0 31px;
    width: 100%;
}

.p-archive__header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5.6rem;
    margin-bottom: 8.7rem;
}

.p-archive__title {
    display: flex;
    flex-direction: column;
    color: #5B4D46;
    margin: 0;
}

.p-archive__title-ja {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: normal;
    font-size: 1.6rem;
    line-height: 1.8;
}

.p-archive__title-en {
    font-family: "adobe-garamond-pro", serif;
    font-weight: normal;
    font-size: 4rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
}

.p-archive__categories {
    display: flex;
    justify-content: flex-end;
}

.p-archive__categories-list {
    display: flex;
    gap: 2.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.p-archive__categories-item a {
    text-decoration: none;
    color: #5B4D46;
    transition: opacity 0.3s ease;
    font-size: 1.6rem;
    padding-bottom: 5px;
    border-bottom: 1px solid #5B4D46;
    transition: opacity 0.3s ease;
    opacity: 0.6;
}


.p-archive__categories li.is-active a,
.p-archive__categories a:hover {
    opacity: 1;
}

.p-archive__posts {
    display: grid;
    gap: 3.2rem;
    margin-bottom: 7.1rem;
}

.p-blog__post-card-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

@media (any-hover: hover) {
    .p-blog__post-card-link:hover {
        opacity: 0.6;
    }
}
.p-blog__post-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 328 / 246;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.p-blog__post-card-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p-blog__post-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Lato", sans-serif;
    font-size: 1.6rem;
    line-height: 1.1;
    color: #5B4D46;
    margin-bottom: 2rem;
}
.p-blog__post-card-categories span {
    margin-right: 5px;
}
.p-blog__post-card-title {
    font-size: 2rem;
    line-height: 1.8;
    color: #5B4D46;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Pagination Styles */
.p-archive-pagination__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #5B4D46;
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
}

.page-numbers {
    color: #5B4D46;
    text-decoration: none;
    opacity: 0.6;
    padding: 15px;
    transition: opacity 0.3s ease;
}
.page-numbers.current {
    opacity: 1;
    border-bottom: 1px solid #5B4D46;
}

.prev.page-numbers,
.next.page-numbers {
    position: relative;
    display: flex;
}

.prev.page-numbers::after, 
.next.page-numbers::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 15px;
    background-image: url(../../img/arrow.svg);
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.3s ease,background-image 0.3s ease;
}

.prev.page-numbers::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.next.page-numbers::after {
    transform: translate(-50%, -50%) rotate(-90deg);
}
@media (any-hover: hover) {
    .page-numbers:hover {
        opacity: 1;
    }
    .prev.page-numbers:hover::after {
        transform: translate(-10px, -50%) rotate(90deg);
        background-image: url(../../img/arrow_full_opacity.svg);
    }
    .next.page-numbers:hover::after {
        transform: translate(-3px, -50%) rotate(-90deg);
        background-image: url(../../img/arrow_full_opacity.svg);
    }
}


/* PC Styles */
@media (min-width: 750px) {
    .p-archive {
        padding: 207px 0;
    }
    .p-archive__header {
        flex-direction: row;
        align-items: flex-end;
        gap: 2rem;
        margin-bottom: 16.5rem;
    }
    .p-archive__posts {
        grid-template-columns: repeat(3, 1fr);
        gap: 39px 54px;
        margin-bottom: 9rem;
    }
}
