@charset "UTF-8";
/* カテゴリー選択部分 */
.news-category-selector {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin:  0 0 20px;
}
.news-category-selector__button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.9);
    height: 40px;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 20px 20px 0 20px;
    transition: filter 0.25s;
}
:where(.news-category-selector:has(.news-category-selector__button:hover)) .news-category-selector__button{
    filter: brightness(0.675);
}
.news-category-selector__button:hover {
    filter: brightness(1);
}
.news-category-selector__button--is-active {
    color: var(--color-white-primary);
    background: var(--color-turquoise-primary);
}
@media screen and (max-width:800px) {
    .news-category-selector {
        grid-template-columns: repeat(2,1fr);
        gap: 10px;
    } 
}

/* post-header */
.post-header {
    padding: 0 0 30px;
    margin: 0 0 30px;
    border-bottom: 2px solid rgba(17,16,95,0.5);
}
.post-header__info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
}
.post-header__category {
    padding: 2px 20px;
    font-weight: 700;
    color: var(--color-white-primary);
    background: var(--color-turquoise-primary);
}
.post-header__date {
    font-size: 2.0rem;
    color: var(--color-turquoise-primary);
}
.post-header__title {
    font-size: 30px;
    font-weight: 500;
}

@media screen and (max-width:960px) {
    .post-header {
        padding: 0 0 24px;
        margin: 0 0 24px;
    }
    .post-header__title {
        font-size: 2.4rem;
    }
}

/* 投稿のコンテンツ部分 */
.post-content {
    line-height: 2;
}
.post-content {
    text-align: left;
}

.post-content p {
    line-height: 2;
    margin: 1em 0 1em;
}
.post-images img {
	width:auto;
	display:inline-block;
	margin-bottom:30px;
}
@media screen and (max-width:800px) {
	.post-images img {
		width:100%;
		margin-bottom:0;
		vertical-align:bottom;
		}
}

.post-content em {
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: underline;
    text-decoration-color: rgba(17,16,95,0.125);
    text-decoration-thickness: 1em;
    text-underline-offset: -0.375em;
}

.post-content strong {
    font-weight: 700;
    font-size: 1.25em;
}

.post-content a {
    color: #0d7ea4;
    text-decoration: underline;
}

.post-content h1,
.post-content h2 {
    position: relative;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 16px 20px;
    margin: 0 0 40px;
    border-radius: 4px;
    background: var(--color-lightgray-primary);
}

.post-content h1::before,
.post-content h2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 28px;
    width: 4px;
    transform: translate(0, -50%);
    background: var(--color-navy-primary);
}

.post-content h2:not(:first-child) {
    margin-top: 64px;
}

.post-content h3 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0 0 12px;
    margin: 0 0 32px;
    border-bottom: 1px solid var(--color-lightgray-secondary);
}

.post-content h3:not(:first-child) {
    margin-top: 48px;
}

.post-content h4 {
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 0 0 10px;
    margin: 0 0 24px;
    border-bottom: 1px solid var(--color-lightgray-secondary);
}

.post-content h4:not(:first-child) {
    margin-top: 40px;
}

.post-content h5 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.75;
    margin: 0 0 16px;
}

.post-content h5:not(:first-child) {
    margin-top: 32px;
}

.post-content h6 {
    font-weight: 700;
    line-height: 2;
    margin: 0 0 16px;
}

.post-content h6:not(:first-child) {
    margin-top: 24px;
}

.post-content ul {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
    list-style: disc;
    padding-left: 1em;
}

.post-content ul ul {
    margin-top: 8px;
    gap: 8px;
    list-style: circle;
}

.post-content blockquote {
    position: relative;
    margin: 0 0 24px;
    background: var(--color-lightgray-primary);
    border-radius: 4px;
    padding: 32px 40px;
}

.post-content blockquote cite {
    display: block;
    margin: 8px 0 0;
    text-align: right;
}

.post-content img {
    max-width: 720px;
}

.postfunction-icon {
    display: inline-block;
    margin: 0 4px 0 0;
    padding: 8px 8px;
    line-height: 1;
    color: #2271b1;
    border: 2px solid #2271b1;
    border-radius: 6px;
}

@media screen and (max-width: 800px) {
    .post-content h1,
    .post-content h2 {
        font-size: 2.4rem;
        padding: 14px 20px;
        margin-bottom: 32px;
    }

    .post-content h1::before,
    .post-content h2::before {
        left: 0;
        height: 24px;
    }

    .post-content:not(:first-child) {
        margin-top: 48px;
    }

    .post-content h3 {
        font-size: 2.0rem;
        font-weight: 700;
        line-height: 1.5;
        padding: 0 0 12px;
        margin-bottom: 24px;
        border-bottom: 1px solid var(--color-lightgray-secondary);
    }

    .post-content h3:not(:first-child) {
        margin-top: 32px;
    }

    .post-content h4 {
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 1.5;
        padding: 0 0 10px;
        margin-bottom: 20px;
    }

    .post-content h4:not(:first-child) {
        margin-top: 28px;
    }

    .post-content h5 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .post-content h5:not(:first-child) {
        margin-top: 24px;
    }

    .post-content h6 {
        font-weight: 700;
        margin: 0 0 16px;
    }

    .post-content h6:not(:first-child) {
        margin-top: 20px;
    }

    .post-content blockquote {
        position: relative;
        margin: 0 0 24px;
        padding: 24px 20px;
    }

    .post-content blockquote::before {
        top: 8px;
        left: 8px;
    }

    .post-content blockquote::after {
        right: 8px;
        bottom: 8px;
    }
}

/* post-navigation */
.post-navigation {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: var(--content-width);
    margin: 0 auto;
    color: var(--color-white-primary);
}
.post-navi-buttons {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-white-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-navi-buttons__button {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-family: "Urbanist", sans-serif;
    transition: opacity 0.5s;
}
.post-navi-buttons__button:hover {
    opacity: 0.5;
}
.post-navi-buttons__button--prev::before,
.post-navi-buttons__button--next::after {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    background: center/contain no-repeat;
    cursor: pointer;
}
.post-navi-buttons__button--prev::before {
    background-image: url("../images/arrow-left-secondary.svg");
}
.post-navi-buttons__button--next::after {
    background-image: url("../images/arrow-right-secondary.svg");
}

/* pagination */
.pagination>ul {
    display: flex;
    justify-content: center;
    padding: 32px 0;
    gap: 20px;
    color: var(--color-white-primary);
    border-bottom: 1px solid var(--color-white-primary);
}
.pagination>ul>li {
    display: contents;
}
.pagination a:not(.prev,.next),
.pagination .current {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 2.0rem;
    font-family: "Urbanist", sans-serif;
    letter-spacing: 0;
    --letter-spacing: 0;
    border-radius: 1000px;
    transition: opacity 0.25s;
    cursor: pointer;
}
:where(.pagination:has(a:not(.prev,.next):hover)) a:not(.prev,.next) {
    opacity: 0.5;
}
.pagination a:not(.prev,.next):hover {
    opacity: 1;
}

.pagination .current {
    color: var(--color-navy-primary);
    background: var(--color-white-primary);
}
.pagination .prev,
.pagination .next {
    flex-shrink: 0;
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    transition: opacity 0.25s;
}
.pagination .prev:hover,
.pagination .next:hover {
    opacity: 0.5;
}
.pagination .prev {
    margin-right: auto;
}
.pagination .prev::after {
    content: "Prev";
}
.pagination .next::before {
    content: "Next";
}
.pagination .next {
    margin-left: auto;
}
.pagination .prev::before,
.pagination .next::after {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
    background: center/contain no-repeat;
}
.pagination .prev::before {
    background-image: url("../images/arrow-left-secondary.svg");
}
.pagination .next::after {
    background-image: url("../images/arrow-right-secondary.svg");
}
.pagination .dots {
    border:0;
    pointer-events: none;
    color: transparent;
    background: transparent;
    width: 24px;
    margin: 0 4px;
    background: url("../images/pagination-dots.svg") center/contain no-repeat;
}
@media screen and (max-width:800px) {
    .pagination .prev::after {
        display: none;
    }
    .pagination .next::before {
        display: none;
    }
}