/* Editorial CPT / source-led reading file. */

.sxjy-editorial-main {
    --sxjy-editorial-ivory: #f5f1e9;
    --sxjy-editorial-paper: #fcfaf6;
    --sxjy-editorial-ink: #171717;
    --sxjy-editorial-burgundy: #751f2b;
    --sxjy-editorial-muted: #756f67;
    --sxjy-editorial-line: rgba(23, 23, 23, .25);
    background: var(--sxjy-editorial-ivory);
}

.sxjy-editorial-main,
.sxjy-editorial-main .l-content,
.sxjy-editorial-main .l-mainContent__inner {
    color: var(--sxjy-editorial-ink);
}

#body_wrap.single-editorial,
#body_wrap.single-editorial .l-content,
#body_wrap.single-editorial #content,
#body_wrap.single-editorial .l-mainContent,
#body_wrap.single-editorial .l-mainContent__inner {
    width: 100%;
    max-width: none;
    background: var(--sxjy-editorial-ivory, #f5f1e9);
}

#body_wrap.single-editorial .l-content {
    display: block;
    margin-bottom: 24px;
}

#body_wrap.single-editorial .l-header {
    background: rgba(245, 241, 233, .96);
    border-bottom: 1px solid var(--sxjy-editorial-line);
    box-shadow: none;
}

#body_wrap.single-editorial .l-content {
    padding-top: 0;
}

.sxjy-editorial-article,
.sxjy-editorial-article * {
    box-sizing: border-box;
}

.sxjy-editorial-article {
    width: min(1440px, calc(100vw - 96px));
    max-width: none;
    margin: 0 auto;
    padding: 0 42px 36px;
    font-family: "Noto Sans JP", "Noto Sans", sans-serif;
}

.sxjy-editorial-article h1,
.sxjy-editorial-article h2,
.sxjy-editorial-article h3,
.sxjy-editorial-article p,
.sxjy-editorial-article dl,
.sxjy-editorial-article ol,
.sxjy-editorial-article ul {
    margin: 0;
}

.sxjy-editorial-article h1,
.sxjy-editorial-article h2,
.sxjy-editorial-article h3 {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: inherit;
}

.sxjy-editorial-article h1::before,
.sxjy-editorial-article h1::after,
.sxjy-editorial-article h2::before,
.sxjy-editorial-article h2::after,
.sxjy-editorial-article h3::before,
.sxjy-editorial-article h3::after {
    display: none !important;
}

.sxjy-editorial-article a {
    color: inherit;
}

.sxjy-editorial-hero {
    padding: 28px 0 clamp(48px, 5vw, 78px);
}

.sxjy-editorial-hero__topline,
.sxjy-editorial-reading__topline {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--sxjy-editorial-line);
    color: var(--sxjy-editorial-muted);
    font-family: "Antonio", "Noto Sans", sans-serif;
    font-size: 11px;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sxjy-editorial-hero__topline {
    padding-bottom: 14px;
}

.sxjy-editorial-hero__grid {
    display: block;
    padding-top: clamp(46px, 6vw, 82px);
}

.sxjy-editorial-hero__copy {
    min-width: 0;
    max-width: 1100px;
}

.sxjy-editorial-back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 40px;
    color: var(--sxjy-editorial-burgundy) !important;
    font-family: "Antonio", "Noto Sans", sans-serif;
    font-size: 12px;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease;
}

.sxjy-editorial-back:hover,
.sxjy-editorial-back:focus-visible {
    color: var(--sxjy-editorial-ink) !important;
}

.sxjy-editorial-hero__eyebrow,
.sxjy-editorial-hero__number,
.sxjy-editorial-hero__meta dt,
.sxjy-editorial-rail__label,
.sxjy-editorial-rail a span,
.sxjy-editorial-explore__intro > p,
.sxjy-editorial-explore li span {
    font-family: "Antonio", "Noto Sans", sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sxjy-editorial-hero__eyebrow {
    margin-bottom: 16px;
    color: var(--sxjy-editorial-burgundy);
    font-size: 12px;
    line-height: 1.2;
}

.sxjy-editorial-hero__number {
    margin-bottom: 20px;
    color: var(--sxjy-editorial-muted);
    font-size: 13px;
    line-height: 1.2;
}

.sxjy-editorial-hero__number span {
    color: var(--sxjy-editorial-burgundy);
}

.sxjy-editorial-hero h1 {
    max-width: none;
    font-family: "Noto Serif JP", serif !important;
    font-size: clamp(2.8rem, 5.4vw, 6.8rem) !important;
    font-weight: 500 !important;
    letter-spacing: .02em !important;
    line-height: 1.12 !important;
    overflow-wrap: normal;
    word-break: normal;
    line-break: strict;
    text-wrap: pretty;
}

.sxjy-editorial-hero__title-chunk {
    display: inline-block;
    white-space: nowrap;
}

.sxjy-editorial-article .sxjy-editorial-hero__meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1120px;
    margin-top: clamp(28px, 3vw, 38px);
    min-width: 0;
    border-top: 2.5px solid var(--sxjy-editorial-burgundy);
}

.sxjy-editorial-hero__meta div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 13px 18px 13px 0;
    border-bottom: 1px solid var(--sxjy-editorial-line);
}

.sxjy-editorial-hero__meta div:not(:last-child) {
    margin-right: 18px;
    border-right: 1px solid var(--sxjy-editorial-line);
}

.sxjy-editorial-hero__meta dt {
    color: var(--sxjy-editorial-burgundy);
    font-size: 10px;
    line-height: 1.3;
}

.sxjy-editorial-hero__meta dd {
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sxjy-editorial-share {
    margin: 0 0 26px;
}

.sxjy-editorial-share--bottom {
    margin: 28px 0 0;
}

.sxjy-editorial-reading-layout {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 760px) minmax(0, 190px);
    gap: clamp(28px, 5vw, 82px);
    align-items: start;
    justify-content: center;
}

.sxjy-editorial-rail {
    position: sticky;
    top: 110px;
    min-width: 0;
    border-top: 2.5px solid var(--sxjy-editorial-burgundy);
}

.sxjy-editorial-rail__label {
    padding: 15px 0;
    color: var(--sxjy-editorial-burgundy);
    font-size: 11px;
    line-height: 1.2;
}

.sxjy-editorial-rail nav {
    border-top: 1px solid var(--sxjy-editorial-line);
}

.sxjy-editorial-rail a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--sxjy-editorial-line);
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

.sxjy-editorial-rail a span {
    position: relative;
    top: .2em;
    color: var(--sxjy-editorial-burgundy);
    font-size: 10px;
    line-height: 1.4;
}

.sxjy-editorial-rail a strong {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.sxjy-editorial-rail a:hover,
.sxjy-editorial-rail a:focus-visible {
    padding-left: 6px;
    color: var(--sxjy-editorial-burgundy);
}

.sxjy-editorial-reading {
    min-width: 0;
    width: 100%;
}

.sxjy-editorial-reading__topline {
    padding: 0 0 14px;
    border-top: 2.5px solid var(--sxjy-editorial-burgundy);
    border-bottom: 1px solid var(--sxjy-editorial-line);
    padding-top: 14px;
}

.sxjy-editorial-content {
    max-width: none;
    margin: 0 !important;
    padding: 30px 0 0;
    font-size: 16px;
}

.sxjy-editorial-content > p {
    margin: 0 0 1.8em !important;
    font-size: 1em;
    line-height: 2.05;
}

.sxjy-editorial-content > p:first-child {
    margin-bottom: 1.9em !important;
    padding-left: 20px;
    border-left: 2.5px solid var(--sxjy-editorial-burgundy);
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.95;
}

.sxjy-editorial-content > p:last-of-type {
    margin-bottom: 0 !important;
}

.sxjy-editorial-content h2.sxjy-editorial-section-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: clamp(48px, 7vw, 88px) 0 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--sxjy-editorial-line) !important;
    font-family: "Noto Serif JP", serif !important;
    font-size: clamp(1.45rem, 2.3vw, 2.05rem) !important;
    font-weight: 500 !important;
    letter-spacing: .04em !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
    scroll-margin-top: 120px;
}

.sxjy-editorial-content .sxjy-editorial-section-heading__text {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.sxjy-editorial-content h2.sxjy-editorial-section-heading::before {
    display: block !important;
    transform: translateY(.3em);
    grid-column: 1;
    grid-row: 1;
    content: attr(data-section);
    color: var(--sxjy-editorial-burgundy);
    font-family: "Antonio", "Noto Sans", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.55;
}

.sxjy-editorial-content h2.sxjy-editorial-heading--sources {
    margin-top: 96px !important;
}

.sxjy-editorial-content sup {
    margin-left: .12em;
    font-family: "Antonio", "Noto Sans", sans-serif;
    font-size: .68em;
    line-height: 0;
}

.sxjy-editorial-content sup a,
.sxjy-editorial-content .sxjy-editorial-footnote-backlinks a {
    color: var(--sxjy-editorial-burgundy);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.sxjy-editorial-content .sxjy-editorial-heading--sources + p {
    color: var(--sxjy-editorial-muted);
    font-size: .85em;
    line-height: 1.8;
}

.sxjy-editorial-content .sxjy-editorial-footnotes {
    margin-top: 20px !important;
    padding: 0;
    background: var(--sxjy-editorial-paper);
    border-top: 1px solid var(--sxjy-editorial-line);
    list-style-position: inside;
}

.sxjy-editorial-content .sxjy-editorial-footnotes li {
    padding: 14px 18px 14px 8px;
    border-bottom: 1px solid var(--sxjy-editorial-line);
    font-size: .82em;
    line-height: 1.8;
}

.sxjy-editorial-content .sxjy-editorial-footnotes li::marker {
    color: var(--sxjy-editorial-burgundy);
    font-family: "Antonio", "Noto Sans", sans-serif;
}

.sxjy-editorial-content .sxjy-editorial-footnote-backlinks {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0 8px;
    margin-left: 8px;
    white-space: nowrap;
}

.sxjy-editorial-explore {
    display: grid;
    grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 80px);
    margin-top: clamp(40px, 5vw, 72px);
    padding-top: 18px;
    border-top: 2.5px solid var(--sxjy-editorial-burgundy);
}

.sxjy-editorial-explore__intro > p {
    margin-bottom: 12px;
    color: var(--sxjy-editorial-burgundy);
    font-size: 11px;
    line-height: 1.2;
}

.sxjy-editorial-explore__intro h2 {
    font-family: "Cormorant Garamond", "Noto Serif JP", serif !important;
    font-size: clamp(2rem, 3.2vw, 3.4rem) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.sxjy-editorial-explore ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    border-top: 1px solid var(--sxjy-editorial-line);
    list-style: none;
}

.sxjy-editorial-explore li {
    min-width: 0;
    border-bottom: 1px solid var(--sxjy-editorial-line);
}

.sxjy-editorial-explore li:nth-child(odd) {
    border-right: 1px solid var(--sxjy-editorial-line);
}

.sxjy-editorial-explore a {
    position: relative;
    display: flex;
    min-height: 124px;
    flex-direction: column;
    justify-content: center;
    padding: 18px 46px 18px 20px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.sxjy-editorial-explore a:hover,
.sxjy-editorial-explore a:focus-visible {
    background: var(--sxjy-editorial-paper);
    color: var(--sxjy-editorial-burgundy);
}

.sxjy-editorial-explore li span {
    margin-bottom: 8px;
    color: var(--sxjy-editorial-burgundy);
    font-size: 10px;
    line-height: 1.2;
}

.sxjy-editorial-explore li strong {
    font-family: "Antonio", "Noto Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sxjy-editorial-explore li small {
    margin-top: 7px;
    color: var(--sxjy-editorial-muted);
    font-size: 11px;
    line-height: 1.5;
}

.sxjy-editorial-explore li i {
    position: absolute;
    right: 18px;
    bottom: 20px;
    color: var(--sxjy-editorial-burgundy);
    font-family: "Antonio", "Noto Sans", sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    transition: transform .2s ease;
}

.sxjy-editorial-explore a:hover i,
.sxjy-editorial-explore a:focus-visible i {
    transform: translateX(4px);
}

.sxjy-editorial-article :focus-visible {
    outline: 2px solid var(--sxjy-editorial-burgundy);
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .sxjy-editorial-article {
        width: min(100%, calc(100vw - 48px));
        padding-right: 24px;
        padding-left: 24px;
    }

    .sxjy-editorial-hero__grid {
        padding-top: clamp(38px, 5vw, 56px);
    }

    .sxjy-editorial-reading-layout {
        grid-template-columns: 164px minmax(0, 720px);
        gap: 34px;
    }
}

@media (max-width: 960px) {
    .sxjy-editorial-article {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .sxjy-editorial-hero {
        padding-top: 18px;
    }

    .sxjy-editorial-hero__grid {
        display: block;
        padding-top: 36px;
    }

    .sxjy-editorial-article .sxjy-editorial-hero__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        margin-top: 32px;
    }

    .sxjy-editorial-hero__meta div {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
    }

    .sxjy-editorial-reading-layout {
        display: block;
    }

    .sxjy-editorial-rail {
        position: static;
        margin-bottom: 42px;
    }

    .sxjy-editorial-rail nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sxjy-editorial-rail a {
        padding-right: 14px;
    }

    .sxjy-editorial-rail a:nth-child(odd) {
        border-right: 1px solid var(--sxjy-editorial-line);
    }

    .sxjy-editorial-explore {
        display: block;
    }

    .sxjy-editorial-explore__intro {
        margin-bottom: 26px;
    }
}

@media (max-width: 560px) {
    .sxjy-editorial-article {
        padding-right: 16px;
        padding-left: 16px;
    }

    .sxjy-editorial-hero__topline,
    .sxjy-editorial-reading__topline {
        font-size: 9px;
    }

    .sxjy-editorial-hero__grid {
        padding-top: 28px;
    }

    .sxjy-editorial-back {
        margin-bottom: 30px;
    }

    .sxjy-editorial-hero h1 {
        font-size: clamp(2.15rem, 10.5vw, 3.4rem) !important;
        line-height: 1.2 !important;
    }

    .sxjy-editorial-article .sxjy-editorial-hero__meta {
        grid-template-columns: 1fr;
    }

    .sxjy-editorial-hero__meta div:not(:last-child) {
        margin-right: 0;
        border-right: 0;
    }

    .sxjy-editorial-rail nav {
        grid-template-columns: 1fr;
    }

    .sxjy-editorial-rail a:nth-child(odd) {
        border-right: 0;
    }

    .sxjy-editorial-content {
        padding-top: 24px;
        font-size: 15px;
    }

    .sxjy-editorial-content > p {
        line-height: 2;
    }

    .sxjy-editorial-content > p:first-child {
        padding-left: 14px;
        font-size: 1.05rem;
    }

    .sxjy-editorial-content h2.sxjy-editorial-section-heading {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
        margin-top: 58px !important;
        padding-top: 16px !important;
        font-size: 1.35rem !important;
    }

    .sxjy-editorial-content h2.sxjy-editorial-section-heading::before {
        font-size: .9rem;
    }

    .sxjy-editorial-content h2.sxjy-editorial-heading--sources {
        margin-top: 72px !important;
    }

    .sxjy-editorial-content .sxjy-editorial-footnotes li {
        padding-right: 12px;
        padding-left: 4px;
        font-size: .84em;
    }

    .sxjy-editorial-explore ul {
        grid-template-columns: 1fr;
    }

    .sxjy-editorial-explore li:nth-child(odd) {
        border-right: 0;
    }

    .sxjy-editorial-explore a {
        min-height: 94px;
        padding: 16px 36px 16px 0;
    }

    .sxjy-editorial-explore li i {
        right: 8px;
        bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sxjy-editorial-article a,
    .sxjy-editorial-article i {
        transition: none;
    }
}
