.single-portrait .l-content {
    background: transparent;
}

.single-portrait .l-mainContent__inner {
    max-width: 1440px;
}

.portrait-hero {
    position: relative;
    display: grid;
    width: min(calc(100vw - 112px), 1440px);
    min-height: clamp(360px, 58vh, 620px);
    margin: 0 0 0 50%;
    overflow: hidden;
    transform: translateX(-50%);
    color: #151312;
    border-bottom: 1px solid rgba(21, 19, 18, 0.16);
}

.portrait-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(157, 27, 46, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(247, 244, 239, 0.68));
    pointer-events: none;
}

.portrait-hero__type {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-width: 0;
    padding: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 80px) clamp(32px, 6vw, 80px);
}

.portrait-hero__eyebrow {
    margin: 0 0 18px;
    color: #9d1b2e;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: clamp(0.95rem, 1.3vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.portrait-hero__roman {
    width: 100%;
    margin: 0;
    color: rgba(21, 19, 18, 0.14);
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: clamp(5.2rem, 12.8vw, 14rem);
    font-weight: 700;
    line-height: 0.74;
    text-transform: uppercase;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.portrait-hero__name {
    position: relative;
    z-index: 1;
    width: max-content;
    max-width: 100%;
    margin: -0.1em 0 0;
    color: #151312;
    font-family: "Zen Antique", "Noto Sans JP", serif !important;
    font-size: clamp(3rem, 8vw, 7.25rem);
    font-weight: 400 !important;
    line-height: 1.02;
}

.portrait-hero__name::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.14em;
    left: 0.08em;
    height: 0.08em;
    background: #9d1b2e;
}

.single-portrait .post_content h2.wp-block-heading {
    position: relative;
    display: block;
    box-sizing: border-box;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 64px 0 24px !important;
    padding: 20px 28px 18px !important;
    color: #151312 !important;
    background:
        linear-gradient(90deg, rgba(157, 27, 46, 0.13), rgba(157, 27, 46, 0.06) 34%, rgba(255, 253, 248, 0) 78%) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(21, 19, 18, 0.16) !important;
    border-radius: 0 !important;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif !important;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}

.single-portrait .post_content h2.wp-block-heading::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, rgba(157, 27, 46, 0.95), rgba(157, 27, 46, 0.28));
    pointer-events: none;
}

.single-portrait .post_content h2.wp-block-heading::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(157, 27, 46, 0.45), rgba(21, 19, 18, 0.14) 34%, rgba(21, 19, 18, 0.06));
    pointer-events: none;
}

.single-portrait .post_content h3.wp-block-heading {
    margin: 34px 0 16px !important;
    color: #151312 !important;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}

@media (max-width: 959px) {
    .portrait-hero {
        width: min(calc(100vw - 48px), 960px);
        min-height: clamp(320px, 52vh, 520px);
    }

    .portrait-hero__type {
        padding-top: 44px;
        padding-bottom: 52px;
    }

    .portrait-hero__roman {
        font-size: clamp(3.8rem, 14vw, 8rem);
    }

    .portrait-hero__name {
        font-size: clamp(2.6rem, 11vw, 5rem);
    }

    .single-portrait .post_content h2.wp-block-heading {
        margin-top: 52px !important;
        font-size: 2.2rem !important;
        padding-right: 24px !important;
        padding-left: 24px !important;
    }
}

@media (max-width: 599px) {
    .portrait-hero {
        width: calc(100vw - 24px);
        min-height: 300px;
        margin-left: 50%;
    }

    .portrait-hero__type {
        padding-right: 20px;
        padding-left: 20px;
    }

    .portrait-hero__eyebrow {
        margin-bottom: 14px;
    }

    .portrait-hero__roman {
        font-size: clamp(2.9rem, 14vw, 5.25rem);
        line-height: 0.78;
    }

.portrait-hero__name {
        font-size: clamp(2.4rem, 13vw, 4rem);
    }

    .single-portrait .post_content h2.wp-block-heading {
        margin-top: 44px !important;
        margin-bottom: 20px !important;
        padding: 16px 18px 14px 22px !important;
        font-size: 1.9rem !important;
    }

    .single-portrait .post_content h3.wp-block-heading {
        margin-top: 28px !important;
        font-size: 1.35rem !important;
    }
}

.sxjy-profile-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: stretch;
    margin: 24px 0 56px;
    padding: clamp(20px, 3vw, 40px);
    color: #171412;
    background: #fffdfa;
    border: 1px solid rgba(23, 20, 18, 0.12);
    border-radius: 8px;
}

.sxjy-profile-card__media {
    min-height: 360px;
    overflow: hidden;
    background: #211c1b;
    border-radius: 8px;
}

.sxjy-profile-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sxjy-profile-card__body {
    display: grid;
    gap: 22px;
    align-content: center;
    min-width: 0;
}

.sxjy-profile-card__heading {
    display: grid;
    gap: 8px;
}

.sxjy-profile-card__label {
    margin: 0;
    color: #9d1b2e;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.sxjy-profile-card__name {
    margin: 0;
    color: #171412;
    font-family: "Zen Antique", "Noto Sans JP", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
}

.sxjy-profile-card__roman {
    margin: 0;
    color: rgba(23, 20, 18, 0.52);
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.sxjy-profile-card__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0;
}

.sxjy-profile-card__item {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(23, 20, 18, 0.12);
}

.sxjy-profile-card__item dt {
    color: #9d1b2e;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.sxjy-profile-card__item dd {
    min-width: 0;
    margin: 0;
    color: #171412;
    font-size: 0.98rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sxjy-profile-card__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sxjy-profile-card__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #171412;
    background: transparent;
    border: 1px solid rgba(23, 20, 18, 0.22);
    border-radius: 50%;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sxjy-profile-card__link--primary {
    width: auto;
    min-width: 132px;
    padding: 0 18px;
    color: #fffdfa;
    background: #9d1b2e;
    border-color: #9d1b2e;
    border-radius: 4px;
    box-shadow: 0 12px 24px rgba(157, 27, 46, 0.18);
}

.sxjy-profile-card__link-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.sxjy-profile-card__link-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sxjy-profile-card__link-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sxjy-profile-card__link--primary .sxjy-profile-card__link-text {
    position: static;
    width: auto;
    height: auto;
    margin-left: 8px;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.sxjy-profile-card__link:hover,
.sxjy-profile-card__link:focus-visible {
    color: #fffdfa;
    background: #171412;
    border-color: #171412;
    transform: translateY(-1px);
}

.sxjy-profile-card__link--primary:hover,
.sxjy-profile-card__link--primary:focus-visible {
    color: #fffdfa;
    background: #171412;
    border-color: #171412;
}

@media (max-width: 959px) {
    .sxjy-profile-card {
        grid-template-columns: 1fr;
    }

    .sxjy-profile-card__media {
        min-height: 0;
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 599px) {
    .sxjy-profile-card {
        margin-bottom: 40px;
        padding: 20px;
    }

    .sxjy-profile-card__list {
        grid-template-columns: 1fr;
    }

    .sxjy-profile-card__link {
        width: 40px;
        height: 40px;
    }

    .sxjy-profile-card__link--primary {
        width: auto;
        min-width: 124px;
        padding-right: 14px;
        padding-left: 14px;
    }
}
