@charset "UTF-8";

/*カテゴリー・事業所*/

.archive-page__categories {
    margin: 0 auto 10rem;
}

.archive-page__categories__office {
    display: flex;
    flex-wrap: wrap;
    font-size: 1.6rem;
    align-items: center;
}

.archive-page__categories__office__title {
    margin-right: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: bold;
    flex: 100%;
}

.archive-page__categories__office__items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.archive-page__categories__office__office-name a {
    /* background: #eee; */
    color: #ffffff;
    font-weight: bold;
    background: #ed6d03;
    padding: 0.25em 1.5em;
    margin-right: 1em;
    display: block;
    border-radius: 100vh;
}

.archive-page__categories__category {
    margin: 2rem auto;
}

.archive-page__categories__category__title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.archive-page__categories__category__list {
    display: flex;
    flex-wrap: wrap;
}

.archive-page__categories__category__list .cat-item a {
    /* background: #eee; */
    color: #ffffff;
    font-weight: bold;
    padding: 0.25em 1.5em;
    margin-right: 1em;
    display: block;
    border-radius: 1.2rem;
    border: 2px solid #9d875c;
    color: #9d875c;
}

@media screen and (max-width: 767px) {
    .archive-page__categories__office {
        justify-content: center;
    }

    .archive-page__categories__office__title {
        margin: 0 auto 1rem;
        text-align: center;
    }

    .archive-page__categories__office__items {
        gap: 0.3rem;
    }

    .archive-page__categories__office__office-name a {
        margin: 0.5rem;
        font-size: 1.4rem;
        padding: 0 0.5em;
    }

    .archive-page__categories__category__title {
        text-align: center;
        margin: 0 auto 1rem;
    }

    .archive-page__categories__category__list .cat-item a {
        margin: 0.5rem;
        font-size: 1.4rem;
        padding: 0 0.5em;
    }
}

/*記事一覧*/

/* .archive-page__posts-list {
    display: flex;
    flex-wrap: wrap;
} */

.archive-page__posts-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
/*     gap: 7.6rem 4rem; */
    gap: 7.6rem 2rem;
    margin-bottom: 7.6rem;
}

/* .archive-page__posts-item {
    width: 22%;
    margin-right: 4%;
    margin-bottom: 6%;
} */

.archive-page__posts-item:nth-child(4n) {
    margin-right: 0;
}

.archive-page__posts-item__imgBox {
    width: 100%;
/*     height: min(200px, 15vw); */
	aspect-ratio: 410 / 230;
    position: relative;
}

.archive-page__posts-item__imgBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #eee;
    position: relative;
    border-radius: 1rem;
}

.archive-page__posts-item__name {
    position: absolute;
    left: 0;
    top: 0;
    background: #ed6d03;
    color: #fff;
    padding: 0 1em;
    font-size: 1.4rem;
}

.archive-page__posts-item__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
	flex-wrap: wrap;
    margin: 0.5rem 0;
}

.archive-page__posts-item__cat {
    /* background: #eee; */
    color: #9d875c;
    border: 1px solid #9d875c;
    padding: 0 1em;
    font-size: 0.8em;
    border-radius: 0.8rem;
    font-weight: bold;
}

.archive-page__posts-item__date {
    font-size: 1em;
}

.archive-page__posts-item__txt {
    font-size: 2rem;
    font-weight: bold;
}

@media screen and (max-width: 767px) {
	
	.archive-page__posts-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
		margin-bottom: 4.6rem;
	}
	
/*     .archive-page__posts-item {
        width: 47%;
        margin: 0 auto 5rem;
    }
 */
	
    .archive-page__posts-item {
        margin: 0 auto 5rem;
    }

    .archive-page__posts-item__imgBox {
        height: auto;
/*         aspect-ratio: 4/3; */
        aspect-ratio: 16/9;
    }

    .archive-page__posts-item__name {
        font-size: 1.3rem;
        padding: 0 0.5em;
    }

    .archive-page__posts-item__cat {
        font-size: 1.4rem;
        padding: 0.5em;
        line-height: 1.2;
    }

    .archive-page__posts-item__txt {
        font-size: 1.8rem;
    }
	
	.archive-page__posts-item__info {
		flex-direction: column;
		align-items: flex-start;
	}
}

/*ページネーション*/

.m-pagenation__body {
    display: flex;
    flex-wrap: wrap;
}

.m-pagenation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.m-pagenation__body li a {
    font-size: 1.8rem;
    margin: 0 1rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 0.8rem;
}

.m-pagenation__prev,
.m-pagenation__nex {
    margin: 0 2rem;
}

.m-pagenation__body li.-current {
    font-size: 1.8rem;
    margin: 0 1rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9d875c;
    color: #fff;
    border-radius: 0.8rem;
}
.m-pagenation__next,
.m-pagenation__prev {
    margin: 0 1rem;
    width: 4rem;
    height: 4rem;
    line-height: 1;
    color: transparent;
    position: relative;
}
.m-pagenation__next a,
.m-pagenation__prev a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}
.m-pagenation__next a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ed6d03;
    pointer-events: none;
    border-radius: 0.8rem;
}

.m-pagenation__next a::after {
    content: "";
    position: absolute;
    border-top: 0.2rem solid #fff;
    border-right: 0.2rem solid #fff;
    width: 1rem;
    height: 1rem;
    transform: rotate(45deg);
    right: 6px;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    pointer-events: none;
}

.m-pagenation__prev a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ed6d03;
    border-radius: 0.8rem;
}

.m-pagenation__prev a::after {
    content: "";
    position: absolute;
    border-top: 0.2rem solid #fff;
    border-left: 0.2rem solid #fff;
    width: 1rem;
    height: 1rem;
    transform: rotate(-45deg);
    right: 0;
    left: 3px;
    top: 0;
    bottom: 0;
    margin: auto;
}
