:root {
    --nk-single-ink: #1e2328;
    --nk-single-orange: #ee7b49;
    --nk-single-muted: #7d7d7d;
    --nk-single-line: #c5c5c5;
}

html {
    scroll-behavior: smooth;
}

body:has(.nk-single-page) {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--nk-single-ink);
    background-color: var(--nk-page-bg-color);
    background-image: url("img/single/page-bg-pc.png");
    background-repeat: repeat-y;
    background-position: 0 0;
    background-size: var(--nk-page-width-pc) auto;
    font-family: "Noto Sans JP", sans-serif;
}

.nk-single-page,
.nk-single-page * {
    box-sizing: border-box;
}

.nk-single-page {
    position: relative;
    width: var(--nk-page-width-pc);
    min-height: 0;
    margin: 0;
    padding: var(--nk-page-start-pc) var(--nk-page-gutter-pc) var(--nk-return-footer-gap);
    background-color: var(--nk-page-bg-color);
    background-image: url("img/single/page-bg-pc.png");
    background-repeat: repeat-y;
    background-position: 0 0;
    background-size: var(--nk-page-width-pc) auto;
}

.nk-single-page a {
    color: inherit;
    text-decoration: none;
}

.nk-single-article {
    width: var(--nk-page-content-pc);
    margin-top: 6.08rem;
}

.nk-single-title {
    width: 96rem;
    margin: 0;
    color: var(--nk-single-ink);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .32rem;
    overflow-wrap: anywhere;
}

.nk-single-meta {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
}

.nk-single-meta time {
    color: var(--nk-single-muted);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .07rem;
    white-space: nowrap;
}

.nk-single-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: .5rem 2rem;
    border: .1rem solid var(--nk-single-orange);
    border-radius: 3rem;
    color: var(--nk-single-orange) !important;
    background: transparent;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .065rem;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.nk-single-category:hover,
.nk-single-category:focus-visible {
    color: #f5f5f5 !important;
    background-color: var(--nk-single-orange);
}

.nk-single-divider {
    display: block;
    width: 100%;
    height: .1rem;
    margin-top: 4rem;
    background-color: var(--nk-single-line);
}

.nk-single-content {
    width: 100%;
    margin-top: 7.9rem;
    color: var(--nk-single-ink);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.8rem;
    letter-spacing: .08rem;
    overflow-wrap: anywhere;
}

.nk-single-content p,
.nk-single-content ul,
.nk-single-content ol,
.nk-single-content blockquote,
.nk-single-content figure {
    margin-top: 0;
    margin-bottom: 0;
}

.nk-single-content img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.nk-single-content a {
    color: var(--nk-single-orange);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.nk-single-content h2,
.nk-single-content h3,
.nk-single-content h4 {
    margin: 1.5em 0 .6em;
    font-weight: 700;
    line-height: 1.45;
}

.nk-single-more-area {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: var(--nk-return-content-gap-pc);
}

.nk-single-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 22.6rem;
    min-height: 4rem;
    color: var(--nk-single-ink);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .1rem;
    white-space: nowrap;
}

.nk-single-more picture,
.nk-single-more img {
    display: block;
    width: 4rem;
    height: 4rem;
}

.nk-single-more img {
    object-fit: fill;
    transition: transform .2s ease;
}

.nk-single-more:hover img,
.nk-single-more:focus-visible img {
    transform: translateX(.4rem);
}

.nk-single-page-links {
    margin-top: 2.8rem;
}

.nk-single-empty {
    width: var(--nk-page-content-pc);
    margin-top: 8rem;
    font-size: 1.6rem;
}

.nk-single-empty h1 {
    margin-bottom: 2rem;
    font-size: 3.2rem;
}

.nk-single-empty a {
    color: var(--nk-single-orange);
    text-decoration: underline;
}

.nk-single-page h2{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.nk-single-page h2::after{
    content: "";
    background-color: #3ba9e2;
    width: 7rem;
    height: 0.3rem;
}

.footer__fb,
.js-footer__fb {
    border: 0;
    background: transparent;
    cursor: pointer;
}

@media screen and (max-width: 699.98px) {
    body:has(.nk-single-page) {
        background-image: url("img/single/page-bg-sp.png");
        background-size: var(--nk-page-width-sp) auto;
    }

    .nk-single-page {
        background-image: url("img/single/page-bg-sp.png");
        background-size: var(--nk-page-width-sp) auto;
    }

    .nk-single-page {
        width: var(--nk-page-width-sp);
        min-height: 0;
        padding: var(--nk-page-start-sp) 0 var(--nk-return-footer-gap);
    }

    .nk-single-breadcrumb {
        position: absolute;
        top: 11.6rem;
        left: var(--nk-page-gutter-sp);
    }

    .nk-single-article {
        width: 100%;
        margin-top: 0;
        padding: 9rem var(--nk-page-gutter-sp) 0;
    }

    .nk-single-title {
        width: 100%;
        font-size: 2.4rem;
        line-height: 1.2;
        letter-spacing: .24rem;
    }

    .nk-single-meta {
        gap: 1.6rem;
        margin-top: 2.4rem;
    }

    .nk-single-meta time {
        font-size: 1.2rem;
        letter-spacing: .06rem;
    }

    .nk-single-category {
        min-height: 2.24rem;
        padding: .4rem 1.6rem;
        font-size: 1.2rem;
        letter-spacing: .06rem;
    }

    .nk-single-divider {
        margin-top: 2.4rem;
    }

    .nk-single-content {
        margin-top: 4.8rem;
        font-size: 1.4rem;
        line-height: 1.9;
        letter-spacing: .07rem;
    }

    .nk-single-more-area {
        align-items: flex-start;
        height: auto;
        margin-top: var(--nk-return-content-gap-sp);
        padding: 0 var(--nk-page-gutter-sp);
    }

    .nk-single-more {
        width: 18.1rem;
        min-height: 4rem;
        font-size: 1.6rem;
        letter-spacing: .08rem;
    }

    .nk-single-empty {
        width: var(--nk-page-content-sp);
        margin: 3.6rem auto 0;
        font-size: 1.4rem;
    }

    .nk-single-empty h1 {
        font-size: 2.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nk-single-page *,
    .nk-single-page *::before,
    .nk-single-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
