/* Nikko Lab: editorial reading flow built from editable page blocks. */
.ncit-page-nikko .entry-body {
    --nikko-water: var(--ncit-accent, #315d7a);
    --nikko-ink: var(--ncit-ink, #002387);
    --nikko-text: var(--ncit-text, #202a35);
    --nikko-soft: #edf5f7;
    --nikko-line: rgba(35, 77, 96, .16);
}

body.ncit-page-nikko:not(.home):not(.post-name-chiikiokoshi) .entry-body :is(p, li, dd, blockquote):not(.has-text-color),
body.ncit-page-nikko:not(.home):not(.post-name-chiikiokoshi) .entry-body .ncit-nikko-birds .wp-block-group > p:not(.has-text-color) {
    color: var(--nikko-text);
    font-weight: 400;
}

.ncit-page-nikko .page-header .container {
    margin-block: 0;
}

.ncit-page-nikko .entry-body > .wp-block-vk-blocks-spacer,
.ncit-page-nikko .entry-body > p:empty {
    display: none;
}

.ncit-page-nikko .entry-body > * + * {
    margin-block-start: clamp(30px, 4vw, 52px);
}

.ncit-page-nikko .entry-body > .ncit-nikko-intro {
    display: grid;
    gap: 20px;
}

.ncit-page-nikko .entry-body .ncit-nikko-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
}

.ncit-page-nikko .entry-body .ncit-nikko-title-row > p {
    white-space: nowrap;
}

.ncit-page-nikko .entry-body .ncit-nikko-intro .ncit-nikko-title {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--nikko-ink);
    font-size: 2.25rem;
    line-height: 1.4;
}

.ncit-page-nikko .entry-body .ncit-nikko-intro > figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
}

.ncit-page-nikko .entry-body .ncit-nikko-intro img {
    display: block;
    height: 100%;
    border-radius: 0;
}

.ncit-page-nikko .entry-body .ncit-nikko-intro > .ncit-nikko-lead {
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.7;
}

.ncit-page-nikko .ncit-nikko-lead strong {
    color: var(--nikko-ink);
}

.ncit-page-nikko .entry-body .ncit-nikko-experience h2 {
    margin: 0 0 22px;
    color: var(--nikko-ink);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.42;
}

.ncit-page-nikko .entry-body .ncit-nikko-start p,
.ncit-page-nikko .entry-body .ncit-nikko-ecosystem p,
.ncit-page-nikko .entry-body .ncit-nikko-culture p,
.ncit-page-nikko .entry-body .ncit-nikko-experience p {
    line-height: 1.9;
}

.ncit-page-nikko .entry-body .ncit-nikko-assets > .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px !important;
    margin-top: 28px;
    padding: 0 !important;
}

.ncit-page-nikko .entry-body .ncit-nikko-assets > .wp-block-columns > .wp-block-column {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 8px;
    background: #fff;
}

.ncit-page-nikko .entry-body .ncit-nikko-assets h3 {
    margin: 20px 20px 0;
    padding: 0;
    border: 0;
    color: var(--nikko-ink);
    font-size: 1rem;
    line-height: 1.4;
}

.ncit-page-nikko .entry-body .ncit-nikko-assets h3::before,
.ncit-page-nikko .entry-body .ncit-nikko-assets h3::after {
    content: none;
}

.ncit-page-nikko .entry-body .ncit-nikko-assets > .wp-block-columns p {
    margin: 0 20px 10px;
    color: var(--nikko-text);
    font-size: .9rem;
    line-height: 1.65;
}

.ncit-page-nikko .entry-body .ncit-nikko-assets .wp-block-column > figure {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.ncit-page-nikko .entry-body .ncit-nikko-assets .wp-block-column > figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.ncit-page-nikko .entry-body .ncit-nikko-ecosystem {
    align-items: center !important;
    gap: clamp(26px, 4vw, 48px) !important;
}

.ncit-page-nikko .entry-body .ncit-nikko-ecosystem figure {
    overflow: hidden;
    margin: 0;
    border-radius: 12px;
    background: #fff;
}

.ncit-page-nikko .entry-body .ncit-nikko-ecosystem .wp-block-group {
    padding: 0 !important;
}

.ncit-page-nikko .entry-body .ncit-nikko-ecosystem li {
    margin-top: 10px;
    color: var(--nikko-text);
    line-height: 1.7;
}

.ncit-page-nikko .entry-body .ncit-nikko-birds > .wp-block-group {
    max-width: 820px;
    padding: 0 !important;
}

.ncit-page-nikko .entry-body .ncit-nikko-birds > .wp-block-columns {
    gap: 14px !important;
    margin-top: 28px;
    padding: 0 !important;
}

body.ncit-page-nikko:not(.home):not(.post-name-chiikiokoshi) .entry-body .ncit-nikko-birds > .wp-block-columns > .wp-block-column > .wp-block-group {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-content: start;
    align-items: center;
    gap: 10px 12px;
    height: 100%;
    min-height: 0;
    padding: 16px !important;
    border: 1px solid var(--nikko-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

body.ncit-page-nikko:not(.home):not(.post-name-chiikiokoshi) .entry-body .ncit-nikko-birds > .wp-block-columns > .wp-block-column > .wp-block-group > * {
    width: 100%;
    max-width: none;
    margin: 0 !important;
}

body.ncit-page-nikko .entry-body .ncit-nikko-birds .vk_icon_border {
    width: 40px !important;
    height: 40px !important;
}

body.ncit-page-nikko:not(.home):not(.post-name-chiikiokoshi) .entry-body .ncit-nikko-birds h5 {
    display: block;
    min-height: 0;
    padding: 0;
    color: var(--nikko-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4 !important;
    text-align: left;
}

body.ncit-page-nikko .entry-body .ncit-nikko-birds h5::before,
body.ncit-page-nikko .entry-body .ncit-nikko-birds h5::after {
    display: none;
}

body.ncit-page-nikko .entry-body .ncit-nikko-birds h5 .vk-heading__text-wrapper {
    margin: 0;
    padding: 0;
}

body.ncit-page-nikko .entry-body .ncit-nikko-birds > .wp-block-columns > .wp-block-column > .wp-block-group > p {
    grid-column: 1 / -1;
    text-align: left;
    line-height: 1.65;
}

.ncit-page-nikko .entry-body .ncit-nikko-birds > .wp-block-group:last-child {
    width: fit-content;
    max-width: none;
    margin-top: 24px;
    margin-inline: 0;
    padding: 10px 16px !important;
    border-radius: 4px;
    background: var(--nikko-soft);
    text-align: left;
}

.ncit-page-nikko .entry-body .ncit-nikko-birds > .wp-block-group:last-child > p {
    margin: 0;
    color: var(--nikko-text) !important;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.65;
    text-align: left;
}

.ncit-page-nikko .entry-body .ncit-nikko-culture > .wp-block-columns {
    align-items: center !important;
    gap: clamp(28px, 4vw, 48px) !important;
}

.ncit-page-nikko .entry-body .ncit-nikko-culture .wp-block-group {
    padding: 0 !important;
}

.ncit-page-nikko .entry-body .ncit-nikko-culture figure,
.ncit-page-nikko .entry-body .ncit-nikko-culture img {
    width: 100%;
    height: 100%;
}

.ncit-page-nikko .entry-body .ncit-nikko-culture figure {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: 12px;
}

.ncit-page-nikko .entry-body .ncit-nikko-culture img {
    object-fit: cover;
}

.ncit-page-nikko .entry-body .ncit-nikko-culture blockquote {
    margin: 34px 0 0;
    padding: 24px 28px;
    border: 0;
    background: #fff;
    color: var(--nikko-text);
}

.ncit-page-nikko .entry-body .ncit-nikko-experience {
    align-items: center !important;
    gap: 32px !important;
    overflow: hidden;
}

.ncit-page-nikko .entry-body .ncit-nikko-experience > .wp-block-column:first-child {
    padding: 0;
}

.ncit-page-nikko .entry-body .ncit-nikko-experience :is(h2, p).has-white-color, .ncit-page-nikko .entry-body .ncit-nikko-experience :is(h2, p).has-white-color * {
    color: var(--nikko-text) !important;
}

.ncit-page-nikko .entry-body .ncit-nikko-experience figure,
.ncit-page-nikko .entry-body .ncit-nikko-experience img {
    width: 100%;
    height: auto;
}

.ncit-page-nikko .entry-body .ncit-nikko-experience figure {
    min-height: 0;
    margin: 0;
    border-radius: 0;
}

.ncit-page-nikko .entry-body .ncit-nikko-experience img {
    object-fit: cover;
}

body.ncit-page-nikko .entry-body .ncit-nikko-seasons {
    gap: 16px;
}

body.ncit-page-nikko .entry-body .ncit-nikko-seasons .ncit-season-card {
    --season-color: #376343;
    --season-paper: #eef5ec;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-content: start;
    gap: 8px 16px;
    padding: 20px;
    box-shadow: none;
}

body.ncit-page-nikko .entry-body .ncit-season-card:nth-child(2) {
    --season-color: #126a70;
    --season-paper: #eaf6f5;
}

body.ncit-page-nikko .entry-body .ncit-season-card:nth-child(3) {
    --season-color: #895615;
    --season-paper: #faf2e6;
}

body.ncit-page-nikko .entry-body .ncit-season-card:nth-child(4) {
    --season-color: #315887;
    --season-paper: #edf2fa;
}

body.ncit-page-nikko:not(.home):not(.post-name-chiikiokoshi) .entry-body .ncit-season-card .ncit-season-label {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 6px;
    color: var(--season-color);
    background: var(--season-paper);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1;
}

body.ncit-page-nikko .entry-body .ncit-nikko-seasons .ncit-season-card h3 {
    grid-column: 2;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.5;
}

body.ncit-page-nikko .entry-body .ncit-nikko-seasons .ncit-season-card > p:last-child {
    grid-column: 2;
    margin: 0;
    font-size: .9375rem;
    line-height: 1.7;
}

@media (max-width: 480px) {
    body.ncit-page-nikko .entry-body .ncit-nikko-seasons .ncit-season-card {
        padding: 16px;
        column-gap: 12px;
    }
}

@media (min-width: 768px) {
    .ncit-page-nikko .entry-body .ncit-nikko-intro > figure {
        position: relative;
        aspect-ratio: 21 / 10;
    }

    .ncit-page-nikko .entry-body .ncit-nikko-intro img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 767px) {
    .ncit-page-nikko .entry-body .ncit-nikko-intro > .ncit-nikko-lead {
        font-size: 1rem;
    }

    .ncit-page-nikko .entry-body .ncit-nikko-intro img {
        min-height: 300px;
    }

    .ncit-page-nikko .entry-body .ncit-nikko-start {
        font-size: 1.05rem;
    }

    .ncit-page-nikko .entry-body .ncit-nikko-assets > .wp-block-columns,
    .ncit-page-nikko .entry-body .ncit-nikko-birds > .wp-block-columns {
        grid-template-columns: 1fr 1fr !important;
    }

}

@media (max-width: 480px) {
    .ncit-page-nikko .entry-body .ncit-nikko-assets > .wp-block-columns,
    .ncit-page-nikko .entry-body .ncit-nikko-birds > .wp-block-columns {
        grid-template-columns: 1fr !important;
    }
}
