/* Keep the message anchored while the photographs slide underneath. */
.reference-home .rn-header--overlay:not(.is-scrolled) {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.reference-home .rn-header--overlay.is-scrolled {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.reference-home .rn-header .global-logo {
    width: 200px;
}

.reference-home .rn-header .global-logo img {
    width: 100%;
    height: auto;
}

.reference-home .rn-header .global-logo-hero {
    display: none;
}

.reference-home .rn-header--overlay:not(.is-scrolled) .global-logo-default {
    display: none;
}

.reference-home .rn-header--overlay:not(.is-scrolled) .global-logo-hero {
    display: block;
    filter: drop-shadow(0 1px 2px #182e3540);
}

.reference-home .rn-header--overlay:not(.is-scrolled) .global-primary-nav > a:not(.global-contact-link),
.reference-home .rn-header--overlay:not(.is-scrolled) .global-primary-nav > details > summary {
    color: #fff;
    text-shadow: 0 1px 3px #182e3540;
}

.reference-home .rn-header--overlay:not(.is-scrolled) .global-primary-nav > a::after {
    background: #fff;
}

.reference-home .co-hero {
    container-type: inline-size;
    --hero-logo-left: max(48px, calc((100cqw - 1600px) / 2 + 48px));
    height: 100vh;
    height: 100svh;
    min-height: 720px;
}

.reference-home .co-hero-stage {
    inset: 0 0 128px;
}

.reference-home .co-hero .ed-photo-slide {
    overflow: hidden;
}

.reference-home .co-hero .ed-photo-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.reference-home .co-hero .ed-photo-slide img {
    object-position: 40% 44%;
}

.reference-home .co-hero .ed-photo-slide:first-child img,
.reference-home .co-hero .ed-photo-slide:last-child img {
    object-position: 50% 50%;
    transform: none;
}

.reference-home .co-hero-copy {
    position: absolute;
    top: calc(30% - 40px);
    bottom: auto;
    left: var(--hero-logo-left);
    width: calc(100% - var(--hero-logo-left) * 2);
    margin: 0;
    padding: 0;
    transform: none;
    color: #183e50;
}

.reference-home .co-hero-message {
    position: relative;
    isolation: isolate;
    width: 600px;
    max-width: 100%;
    padding: 36px 0;
    color: #103f43;
    background: transparent;
}

.reference-home .co-hero-copy h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .015em;
    color: inherit;
    text-shadow: none;
}

.reference-home .co-hero-line {
    display: block;
    max-width: 100%;
    padding: 0;
    background: none;
    color: inherit;
}

.reference-home .co-hero-line--main {
    font-size: clamp(49px, 5vw, 78px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.035em;
}

/* Keep the full stop without its empty half-width advance. */
.reference-home .co-hero-stop {
    display: inline-block;
    width: .38em;
    color: inherit;
    letter-spacing: 0;
}

.reference-home .co-hero-copy .co-hero-description {
    width: 100%;
    margin: 22px 0 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: .01em;
    color: #304b59;
}

.reference-home .co-hero-description > span {
    display: block;
}

.reference-home .co-hero-mobile-break {
    display: none;
}

.reference-home .co-hero-keywords {
    display: grid;
    width: fit-content;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(16px, 2.5vw, 40px);
    row-gap: 5px;
    margin: 20px 0 0;
    padding: 11px 0 0;
    border-top: 1px solid #345f7333;
    list-style: none;
    color: #204f52;
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: 700;
    line-height: 1.7;
}

.reference-home .co-hero-keywords li {
    white-space: nowrap;
}

/* Keep the type in the same place as the pictures move under it. */
.reference-home .co-hero-message::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 max(-24px, calc(0px - var(--hero-logo-left) / 2));
    width: min(100%, 34rem);
    background: rgba(255, 255, 255, .78);
    pointer-events: none;
}

.reference-home .co-hero[data-active-slide="0"] .co-hero-message::before {
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .reference-home .co-hero[data-active-slide="0"] .co-hero-message::before {
        transition: opacity .35s ease .8s;
    }
}

/* Light the paper beneath the opening copy, including its matching loop frame. */
@media (min-width: 768px) {
    .reference-home .ed-photo-slide:is(:first-child, :last-child)::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(ellipse 48% 75% at 8% 55%, #f1f6eae8 30%, #e2eee0d9 54%, transparent 84%);
        mask-image: linear-gradient(to bottom, transparent 6%, #000 32%);
    }
}

.reference-home .co-hero .ed-photo-slide img[src$="hero-business-ai-kakekomi.webp"] {
    object-position: 65% 35%;
}

.reference-home .co-hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e3e9ec;
}

.reference-home .co-hero-bottom {
    position: static;
    transform: none;
    min-height: 128px;
    padding: 20px 0;
    gap: 32px;
}

.reference-home .co-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 36px;
    max-width: 100%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #217d9f;
}

.reference-home .co-hero-intro {
    min-width: 0;
}

.reference-home .co-hero-caption[hidden] {
    display: none;
}

.reference-home .co-hero-caption > p {
    margin: 0 0 6px;
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 1.55;
    text-wrap: balance;
    color: #183e50;
}

.reference-home .co-hero-link > span {
    flex-shrink: 0;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #2186ab;
}

.reference-home .co-hero-link:hover {
    color: #2186ab;
}

.reference-home .co-hero .ed-controls {
    gap: 20px;
    padding: 0;
    flex-shrink: 0;
}

.reference-home .co-hero .ed-counter {
    font-size: 12px;
    color: #56646c;
}

.reference-home .co-hero .ed-counter strong {
    margin-right: 4px;
    font-size: 22px;
    color: #202b32;
    font-weight: 500;
}

.reference-home .co-hero .ed-slide-selector {
    width: 24px;
    min-height: 44px;
}

.reference-home .co-hero .ed-slider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #d5dfe4;
    border-radius: 50%;
    color: #202b32;
}

.reference-home .co-hero .ed-slider-button:hover {
    border-color: #2186ab;
    color: #2186ab;
}

@media (max-width: 1100px) {
    .reference-home .co-hero {
        --hero-logo-left: 30px;
    }

    .reference-home .co-hero-message {
        width: 560px;
    }

    .reference-home .co-hero .ed-photo-slide img[src$="hero-business-saas-bright-v2.webp"] {
        object-position: 0% 44%;
    }

    .reference-home .co-hero .ed-photo-slide img[src$="hero-business-portal-bright-v2.webp"] {
        object-position: 70% 30%;
    }

    .reference-home .co-hero .ed-photo-slide img[src$="hero-business-wanochikara-v2.webp"] {
        object-position: 90% 65%;
    }
}

@media (min-width: 768px) and (max-width: 1000px) {
    .reference-home .co-hero .ed-photo-slide:is(:first-child, :last-child) img {
        object-position: 87% center;
    }

    .reference-home .co-hero-stage {
        bottom: 184px;
    }

    .reference-home .co-hero-bottom {
        min-height: 184px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .reference-home .co-hero-intro {
        min-height: 76px;
    }

    .reference-home .co-hero .ed-controls {
        align-self: flex-end;
    }
}

@media (min-width: 768px) and (max-width: 1100px) and (max-aspect-ratio: 6/5) {
    /* Give the wide scene room below the copy on upright tablets. */
    .reference-home .co-hero .ed-photo-slide:is(:first-child, :last-child) {
        background: linear-gradient(#0c4953, #256a70 56%, #a2cfc5);
    }

    .reference-home .co-hero .ed-photo-slide:is(:first-child, :last-child) picture {
        position: absolute;
        bottom: 0;
        height: auto;
        aspect-ratio: 1672 / 941;
        mask-image: linear-gradient(transparent, #000 30%);
    }

    .reference-home .co-hero .ed-photo-slide:is(:first-child, :last-child)::after {
        background: radial-gradient(ellipse 78% 52% at 14% 45%, #f1f6eae8 23%, #dfefdfd9 56%, transparent 90%);
    }
}

@media (max-width: 767px) {
    .reference-home .rn-header .global-logo {
        width: 160px;
    }

    .reference-home .co-hero {
        --hero-logo-left: 22px;
        --hero-photo-height: clamp(570px, 82svh, 720px);
        height: auto;
        min-height: 0;
        padding-top: 0;
        overflow: hidden;
    }

    .reference-home .co-hero-stage {
        position: relative;
        inset: auto;
        height: var(--hero-photo-height);
        padding: 0;
    }

    .reference-home .co-hero .ed-photo-slide img {
        object-position: 63% 40%;
    }

    .reference-home .co-hero .ed-photo-slide img[src$="hero-business-saas-bright-v2.webp"] {
        object-position: 35% 40%;
    }

    .reference-home .co-hero .ed-photo-slide img[src$="hero-business-ai-kakekomi.webp"] {
        object-position: 76% 25%;
    }

    .reference-home .co-hero .ed-photo-slide img[src$="hero-business-portal-bright-v2.webp"] {
        object-position: 63% 40%;
    }

    /* Fit the paper scene above the shared copy, even on short phone screens. */
    .reference-home .co-hero .ed-photo-slide:is(:first-child, :last-child) {
        background: #afd8d2;
    }

    .reference-home .co-hero .ed-photo-slide:is(:first-child, :last-child) picture {
        height: min(93.75cqw, calc(var(--hero-photo-height) - 298px));
        background: linear-gradient(#034750 12%, #2b696e 38%, #85bbb8 62%, #afd8d2 85%);
        mask-image: linear-gradient(#000 90%, transparent);
    }

    .reference-home .co-hero .ed-photo-slide:is(:first-child, :last-child) img {
        display: block;
        width: auto;
        max-width: 100%;
        height: 100%;
        margin-inline: auto;
        object-fit: contain;
        mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    }

    .reference-home .co-hero-copy {
        top: var(--hero-photo-height);
        bottom: auto;
        transform: translateY(calc(-100% - 48px));
    }

    .reference-home .co-hero-message {
        width: 400px;
        max-width: 100%;
        padding: 26px 0;
    }

    .reference-home .co-hero-copy h1 {
        gap: 8px;
        font-size: 16px;
        letter-spacing: 0;
    }

    .reference-home .co-hero-line--main {
        font-size: clamp(32px, 9.8vw, 44px);
    }

    .reference-home .co-hero-copy .co-hero-description {
        margin-top: 16px;
        font-size: clamp(12px, 3.47vw, 13px);
        line-height: 1.85;
    }

    .reference-home .co-hero-mobile-break {
        display: inline;
    }

    .reference-home .co-hero-keywords {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 16px;
    }

    .reference-home .co-hero-footer {
        position: relative;
        margin-top: 0;
    }

    .reference-home .co-hero-bottom {
        width: calc(100% - 40px);
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 22px 0 24px;
    }

    .reference-home .co-hero-link {
        font-size: 15px;
        gap: 16px;
        min-height: 44px;
    }

    .reference-home .co-hero-intro {
        min-height: 120px;
    }

    .reference-home .co-hero-caption > p {
        font-size: 20px;
    }

    .reference-home .co-hero .ed-controls {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) 44px 44px;
        gap: 10px;
        width: 100%;
    }

    .reference-home .co-hero .ed-selectors {
        justify-content: center;
        min-width: 0;
        gap: 5px;
    }

    .reference-home .co-hero .ed-slide-selector {
        flex: 1;
        min-width: 0;
        width: 100%;
        max-width: 24px;
    }

    .reference-home .co-hero .ed-counter strong {
        font-size: 18px;
    }
}
