/* 投稿ページ */
.post_contents {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
	width: min(1830px, 100%);
	margin: 0 auto;
	margin-bottom: 150px;
    padding: 0 50px;
}

.categoriz_contents {
    min-width: 700px;
    width: min(1200px, calc(100% - 350px));
}

.categoriz_contents a{
    color: #960032;
}

.category_area {
    position: sticky;
    margin: 0 auto;
    width: 280px;
    height: calc(100vh - 150px);
    top: 150px;
    right: 0;
}

/* 投稿記事の装飾 */
.posted_article,
.next_right p,
.previous_left p {
    background: #fff;
    background: 
    repeating-radial-gradient(circle at center center,
    transparent 0px, transparent 13px,
    rgba(0,0,0,0.03) 13px, rgba(0,0,0,0.03) 24px,
    transparent 24px, transparent 62px,
    rgba(0,0,0,0.03) 62px, rgba(0,0,0,0.03) 96px),
    repeating-radial-gradient(circle at center center, 
    rgb(255,255,255) 0px, rgb(255,255,255) 14px,
    rgb(255,255,255) 14px, rgb(255,255,255) 18px,
    rgb(255,255,255) 18px, rgb(255,255,255) 28px,
    rgb(255,255,255) 28px, rgb(255,255,255) 32px); 
    background-size: 21px 21px;
    border: 1px solid #960032;
    border-radius: 20px;
}

.posted_article {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 50px;
    padding: 25px;
}

.posted_article h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 5rem;
    text-align: center;
    color: #960032;
}

.posted_date {
    padding-bottom: 10px;
    line-height: 1.5rem;
    text-align: right;
}

.category_link {
    display: flex;
    justify-content: flex-end;
    padding: 0 15px;
}

.category_link ul {
    display: flex;
}

.category_link ul li {
    margin: 0 5px;
}

.category_link a{
    color: #FAF2E9;
}

.post_text {
    padding: 25px;
}

.read_more {
    text-align: right;
}

.category_area li {
    background: #FAF2E9;
    background: 
    repeating-linear-gradient(148deg, 
    hsla(54,0%,87%,0.12) 0px, hsla(54,0%,87%,0.12) 1px,
    transparent 1px, transparent 4px,
    hsla(54,0%,87%,0.12) 4px, hsla(54,0%,87%,0.12) 5px,
    transparent 5px, transparent 7px,
    hsla(54,0%,87%,0.12) 7px, hsla(54,0%,87%,0.12) 8px),
    repeating-linear-gradient(119deg, 
    hsla(54,0%,87%,0.12) 0px, hsla(54,0%,87%,0.12) 1px,
    transparent 1px, transparent 4px,
    hsla(54,0%,87%,0.12) 4px, hsla(54,0%,87%,0.12) 5px,
    transparent 5px, transparent 7px,
    hsla(54,0%,87%,0.12) 7px, hsla(54,0%,87%,0.12) 8px),
    repeating-linear-gradient(0deg, 
    hsla(54,0%,87%,0.15) 0px, hsla(54,0%,87%,0.15) 0px,
    transparent 0px, transparent 1px,
    hsla(54,0%,87%,0.15) 1px, hsla(54,0%,87%,0.15) 4px,
    transparent 4px, transparent 5px,
    hsla(54,0%,87%,0.15) 5px, hsla(54,0%,87%,0.15) 8px),
    repeating-linear-gradient(90deg, 
    hsla(54,0%,87%,0.15) 0px, hsla(54,0%,87%,0.15) 0px,
    transparent 0px, transparent 1px,
    hsla(54,0%,87%,0.15) 1px, hsla(54,0%,87%,0.15) 4px,
    transparent 4px, transparent 5px,
    hsla(54,0%,87%,0.15) 5px, hsla(54,0%,87%,0.15) 8px),
    linear-gradient(90deg, 
    rgb(251,251,251),rgb(251,251,251));
}

.category_link, 
li.categories {
    color: #FAF2E9;
    background: #f9b3b3;
    background: 
    radial-gradient(circle at 22% 15%, 
    rgba(45, 45, 45,0.05) 0%, rgba(45, 45, 45,0.05) 50%,
    rgba(95, 95, 95,0.05) 50%, rgba(95, 95, 95,0.05) 100%),
    radial-gradient(circle at 83% 16%, 
    rgba(122, 122, 122,0.05) 0%, rgba(122, 122, 122,0.05) 50%,
    rgba(194, 194, 194,0.05) 50%, rgba(194, 194, 194,0.05) 100%),
    radial-gradient(circle at 74% 7%, 
    rgba(82, 82, 82,0.05) 0%, rgba(82, 82, 82,0.05) 50%,
    rgba(230, 230, 230,0.05) 50%, rgba(230, 230, 230,0.05) 100%),
    linear-gradient(90deg, rgb(243, 136, 126),rgb(251, 43, 71));
}

li.categories {
    list-style: none;
    line-height: 2.5rem;
    text-align: center;
}

.categories ul li a {
    display: flex;
    width: 100%;
    font-size: 18px;
    text-decoration: none;
    text-align: left;
    color: #960032;
    padding-left: 25px;
    border-top: 1px solid #960032;
}

.categories ul li a:hover {
    background: rgba(255,0,0,0.2);
}

.pagination_group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    width: 100%;
}

.next_right, 
.previous_left {
    width: calc(50% - 50px);
    max-width: 360px;
}

.next_right p,
.previous_left p {
    border-radius: 5px;
}

.next_right p a,
.previous_left p a {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: relative;
    height: 50px;
    padding: 0 25px;
    font-size: 16px;
    line-height: 1.2rem;
    text-decoration: none;
}

.next_right p a::after {
    content: '\0bb';
    position: absolute;
    right: 0;
    padding-right: 10px;
}

.previous_left p a::after {
    content: '\0ab';
    position: absolute;
    left: 0;
    padding-left: 10px;
}

.next_right p a:hover,
.previous_left p a:hover {
    background: rgba(255,0,0,0.2);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 50px;
    padding-bottom: 50px;
}

span.page-numbers,
a.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    text-align: center;
    text-decoration: none;
    line-height: 1rem;
    border: 2px solid #960032;
    border-radius: 5px;
}

span.page-numbers {
    color: #960032;
    background: #FAF2E9;
}

a.page-numbers {
    color: #FAF2E9;
    background: #960032;
}

.next.page-numbers, 
.prev.page-numbers {
    width: 80px;
    color: #960032;
    background: #FAF2E9;
    border: 5px double #960032;
}

.pagination a:hover {
    color: #960032;
    background: rgba(255, 0, 0, 0.2);
}

@media screen and (max-width:1150px) {
    .categoriz_contents {
        width: 100%;
    }

    .post_contents {
        width: 95%;
        margin: 0 auto;
        padding: 0;
    }

    .category_area {
        max-width: 700px;
        width: 100%;
        height: auto;
        margin-top: 100px;
        padding-bottom: 50px;
    }

    .pagination{
        border-bottom: 5px solid #960032;
    }
}

/* 768px以下 */
@media screen and (max-width:768px) {
    .categoriz_contents {
        min-width: auto;
    }

    .posted_article {
        margin: 0 auto;
        margin-bottom: 100px;
    }

    .category_link {
        flex-wrap: wrap;
    }

    .category_link ul {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .pagination_group {
        gap: 0;
    }

    .previous_left,
    .next_right {
        width: 100%;
        padding-top: 25px;
    }
	
	.post_text {
		padding: 0;
	}
}