#company[data-nkn-purpose] {
    padding: 0;
}

#company[data-nkn-purpose] > .section-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    padding: clamp(44px, 6vw, 88px) clamp(20px, 5vw, 76px);
}

#company[data-nkn-purpose] > .section-inner > div {
    width: 100%;
    padding: 0;
}

/* The group's three children are the original copy, the diagram and the existing button. */
#company[data-nkn-purpose] > .section-inner > div > div {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
    grid-template-areas: "diagram copy" "diagram action";
    align-items: center;
    gap: 24px clamp(32px, 4.5vw, 72px);
    width: 100%;
    min-width: 0;
}

#company[data-nkn-purpose] > .section-inner > div > div > :first-child {
    grid-area: copy;
    align-self: end;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#company[data-nkn-purpose] .nkn-purpose-diagram {
    grid-area: diagram;
    width: 100%;
    min-width: 0;
    margin: 0;
}

#company[data-nkn-purpose] .nkn-purpose-diagram img {
    display: block;
    width: 100%;
    height: auto;
}

#company[data-nkn-purpose] .nkn-purpose-diagram + div {
    grid-area: action;
    align-self: start;
    justify-self: start;
}

#company[data-nkn-purpose] [data-s-ced25124-5725-47bc-bf71-fd205485fc14] {
    font-size: clamp(30px, 3.2vw, 46px);
}

#company[data-nkn-purpose] [data-s-b270379e-205f-4954-8683-f04dd94bcb07] {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.75;
}

/* Allow for the fixed header when the service contents links to 技術基盤. */
.nakano-service-body > #light > #technology {
    scroll-margin-top: 140px;
}

@media (max-width: 900px) {
    .nakano-service-body > #light > #technology {
        scroll-margin-top: 100px;
    }

    #company[data-nkn-purpose] > .section-inner > div > div {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "copy" "diagram" "action";
        row-gap: 24px;
    }

    #company[data-nkn-purpose] .nkn-purpose-diagram {
        justify-self: center;
        max-width: 620px;
    }

    #company[data-nkn-purpose] [data-s-ced25124-5725-47bc-bf71-fd205485fc14] {
        font-size: clamp(22px, 6.6vw, 38px);
    }
}
