/* 共通 */
.calendar_contents {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: min(1200px, calc(100% - 50px));
    margin: 0 auto;
}

.content_pack, 
.calendar_pack {
    border: 1px solid #9ac1f0;
}

.post_date, 
.category_url, 
.calendar_title, 
.calendar_categories {
    color: #FAF2E9;
    background: #9ac1f0;
    background:
    linear-gradient(45deg, 
    rgb(144, 100, 159) 0%, rgb(144, 100, 159) 24%, 
    rgb(112, 112, 163) 24%, rgb(112, 112, 163) 28%, 
    rgb(79, 124, 166) 28%, rgb(79, 124, 166) 40%, 
    rgb(47, 136, 170) 40%, rgb(47, 136, 170) 84%, 
    rgb(14, 148, 173) 84%, rgb(14, 148, 173) 100%), 
    linear-gradient(0deg, 
    rgb(144, 100, 159) 0%, rgb(144, 100, 159) 24%, 
    rgb(112, 112, 163) 24%, rgb(112, 112, 163) 28%, 
    rgb(79, 124, 166) 28%, rgb(79, 124, 166) 40%, 
    rgb(47, 136, 170) 40%, rgb(47, 136, 170) 84%, 
    rgb(14, 148, 173) 84%, rgb(14, 148, 173) 100%), 
    linear-gradient(135deg, 
    rgb(144, 100, 159) 0%, rgb(144, 100, 159) 24%,
    rgb(112, 112, 163) 24%, rgb(112, 112, 163) 28%,
    rgb(79, 124, 166) 28%, rgb(79, 124, 166) 40%,
    rgb(47, 136, 170) 40%, rgb(47, 136, 170) 84%,
    rgb(14, 148, 173) 84%, rgb(14, 148, 173) 100%), 
    linear-gradient(90deg, 
    rgb(79, 35, 157),rgb(43, 171, 222));
    background-blend-mode: overlay,overlay,overlay,normal;
}

.post_content, 
.calender_display, 
.calendar_categories ul {
    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));
}

.calendar_year_area {
    position: sticky;
    width: 250px;
    height: 300px;
    margin: 0 auto;
    top: 150px;
    right: 0;
}

.calendar_categories {
    width: 100%;
    font-size: 30px;
    list-style: none;
    text-align: center;
    color: #FAF2E9;
}

.calendar_categories ul li a {
    display: flex;
    width: 100%;
    padding-left: 25px;
    font-size: 18px;
    line-height: 3.5rem;
    text-decoration: none;
    text-align: left;
    color: #514a79;
    border-top: 1px solid #9ac1f0;
}

.calendar_categories ul li a:hover {
    background: rgba(0,255,255,0.2);
}
/* 共通 */

/* 通常 */
.calendar_group {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 900px;
    width: max(700px, calc(100% - 280px));
}

.content_pack {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(400px, 95%);
    margin: 5px auto;
}

.post_date {
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 16px;
}

.content_pack table {
    width: 95%;
    line-height: 2rem;
}

.content_pack tr {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.content_pack table th {
    width: 14%;
    border-bottom: 1px solid #79584A;
}

.content_pack table td {
    width: 14%;
    line-height: 3rem;
    text-align: center;
}

.post_content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 400px;
    line-height: 2.5rem;
}

.category_url p {
    text-align: right;
}

.category_url a {
    padding-right: 10px;
    font-size: 16px;
    color: #FAF2E9;
}

.content_link {
    color: #3286ed;
}

.holiday_red {
    position: relative;
    color: #FAF2E9;
    z-index: 5;
}

.holiday_red::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    right: calc(calc(100% - 30px)/2);
    top: 0.5rem;
    z-index: -1;
    background: #f05050;
    border-radius: 50%;
}

/* シングルページ */
.calendar_pack {
    width: min(700px, 95%);
    margin: 0 auto;
}

.calendar_title {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.calender_display {
    margin: 0 auto;
    padding: 50px 0;
    text-align: center;
}

.calendar_pack table,
.calendar_pack tbody {
    width: 90%;
    margin: 50px auto;
    line-height: 2rem;
}

.calendar_pack table th {
    width: 14%;
    border-bottom: 1px solid #79584A;
}

.calendar_pack table td {
    line-height: 3rem;
}

.calendar_pack .holiday_red::after {
    width: calc(100% - 6px);
    height: 95%;
    left: 0;
    top: 0;
    border-radius: 0%;
    border: 3px solid;
}

@media screen and (max-width:1050px) {
    .calendar_year_area {
        max-width: 700px;
        width: 100%;
        height: auto;
    }

    .calendar_group {
        width: 100%;
        margin: 0 auto;
    }
}

@media screen and (max-width:768px) {
    .calendar_contents {
        width: 95%;
    }
    
    .calendar_categories {
        width: 95%;
        margin: 0 auto;
    }

    .calendar_group {
        min-width: auto;
        width: 100%;
    }
}