/* E / ONE PARTNER. Only the purpose section's right-hand artwork is changed.
 * Brand pigments and fonts come from the site's existing central variables.
 */
#provided-value .ms-brand-team {
    --team-blue: var(--ms-color-blue, #2155bf);
    --team-mocha: var(--ms-color-mocha, #bea493);
    --team-orange: var(--ms-color-orange, #f5a200);
    --team-violet: var(--ms-color-violet-existing, #6c4fa1);
    --team-mocha-ink: var(--ms-color-mocha-text, #725746);
    --team-orange-ink: var(--ms-color-orange-text, #805400);
    --team-rule: #aaa6a2;
    --team-type-ja: var(--ms-font-ja, sans-serif);
    --team-type-en: var(--ms-font-en, sans-serif);
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center;
    perspective: none !important;
    transform-style: flat !important;
    /* Preserve the existing outer story's native-scroll scale. */
    transform: scale(var(--story-photo-scale, 1));
    transform-origin: center center;
    pointer-events: auto !important;
    overflow: visible !important;
    isolation: auto;
}
#provided-value .ms-brand-team::before,
#provided-value .ms-brand-team::after { content: none !important; }
#provided-value .ms-brand-team,
#provided-value .ms-brand-team * { box-sizing: border-box; }

#provided-value .ms-brand-team .ms-team-label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px !important;
    position: relative;
    margin: 0 0 38px !important;
    padding: 0 !important;
    text-align: center;
}
#provided-value .ms-brand-team .ms-team-logo {
    width: 120px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
#provided-value .ms-brand-team .ms-team-logo img {
    display: block;
    width: 120px !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
/* Reuse the site's existing transparent mark only for the known original logo.
 * The current 300×150 RGB logo has a baked-in white rectangle; blending cannot
 * remove it across the component's transform/container stacking context.
 * The 512×512 transparent version is already used by this site's header.
 * Its mark occupies x22..491, y153..336, entirely inside the 2:1 central window.
 * Later CMS replacements with another URL keep their own original image.
 */
#provided-value .ms-brand-team .ms-team-logo img:is([src$="/assets/logo.png"], [data-src$="/assets/logo.png"]) {
    content: url('logo-white.png');
    aspect-ratio: 2 / 1;
    height: auto !important;
    object-fit: cover;
    object-position: center;
    filter: brightness(0);
    mix-blend-mode: normal;
}
#provided-value .ms-brand-team .ms-team-tagline {
    margin: 0 !important;
    padding: 0 !important;
    font: 400 12px/1.7 var(--team-type-ja) !important;
    color: #292a2b !important;
}
#provided-value .ms-brand-team .ms-team-label::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -25px;
    width: 1px;
    height: 22px;
    background: var(--team-rule);
}
#provided-value .ms-brand-team .ms-team-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px !important;
    position: relative;
    border-top: 1px solid var(--team-rule);
    margin: 0 5px !important;
    padding: 0 !important;
}
#provided-value .ms-brand-team .ms-team-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    margin: 0 !important;
    padding: 22px 0 0 !important;
    isolation: isolate;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
#provided-value .ms-brand-team .ms-team-recruit { --team-color: var(--team-blue); --team-ink: var(--team-blue); }
#provided-value .ms-brand-team .ms-team-pr { --team-color: var(--team-mocha); --team-ink: var(--team-mocha-ink); }
#provided-value .ms-brand-team .ms-team-digital { --team-color: var(--team-orange); --team-ink: var(--team-orange-ink); }
#provided-value .ms-brand-team .ms-team-dx { --team-color: var(--team-violet); --team-ink: var(--team-violet); }
#provided-value .ms-brand-team .ms-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 28px;
    background: var(--team-color);
}
#provided-value .ms-brand-team .ms-team-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 170px;
    left: 0;
    right: 0;
    height: 122px;
    border-bottom: 3px solid var(--team-color);
    background: linear-gradient(to top, color-mix(in srgb, var(--team-color) 12%, #fff), #ffffff00);
    pointer-events: none;
}
#provided-value .ms-brand-team figure.ms-brand-team-character {
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    height: 270px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 6px 18px !important;
    position: relative;
    z-index: 2;
    pointer-events: none;
    overflow: visible !important;
}
#provided-value .ms-brand-team figure.ms-brand-team-character img {
    display: block !important;
    flex: none;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 240px !important;
    aspect-ratio: 279 / 396;
    object-fit: contain !important;
    object-position: center bottom;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    box-shadow: none !important;
    transform: none !important;
}
#provided-value .ms-brand-team .ms-team-caption {
    position: relative;
    z-index: 3;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    min-height: 145px;
    margin: 0 !important;
    padding: 18px 0 0 !important;
    text-align: center;
}
#provided-value .ms-brand-team .ms-team-name {
    font: 400 clamp(14px, 3cqi, 22px)/1.3 var(--team-type-en) !important;
    color: var(--team-ink) !important;
    white-space: nowrap;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}
#provided-value .ms-brand-team .ms-team-name strong { font-weight: 600; }
#provided-value .ms-brand-team .ms-team-role {
    min-height: 44px;
    margin: 10px 0 0 !important;
    color: #474747 !important;
    font: 400 13px/1.7 var(--team-type-ja) !important;
    letter-spacing: 0 !important;
    word-break: normal;
    overflow-wrap: anywhere;
}
#provided-value .ms-brand-team .ms-team-role span { display: block; }
#provided-value .ms-brand-team .ms-team-link {
    margin: auto 0 0 !important;
    padding: 0 !important;
    color: #292a2b !important;
    font: 500 12px/1.5 var(--team-type-ja) !important;
}
#provided-value .ms-brand-team .ms-team-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    padding: 5px 0;
    gap: 22px;
    color: inherit !important;
    text-decoration: none !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
}
#provided-value .ms-brand-team .ms-team-link a > span { font: 400 20px/1 var(--team-type-en); }
#provided-value .ms-brand-team .ms-team-link a:hover { text-decoration: underline !important; text-underline-offset: 5px; }
#provided-value .ms-brand-team .ms-team-link a:focus-visible { outline: 2px solid var(--team-ink); outline-offset: 2px; }

/* Existing typography is intentionally an important cascade layer. Match it
 * only inside this component, without changing headings or any left-side copy. */
@layer msTypography {
    #provided-value .ms-brand-team .ms-team-name,
    body.home #provided-value.ms-story-photo .ms-brand-team p.ms-team-name {
        font-family: var(--team-type-en) !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        letter-spacing: 0 !important;
    }
    #provided-value .ms-brand-team .ms-team-role,
    body.home #provided-value.ms-story-photo .ms-brand-team p.ms-team-role {
        font-family: var(--team-type-ja) !important;
        font-weight: 400 !important;
        line-height: var(--team-role-leading, 1.7) !important;
        letter-spacing: 0 !important;
    }
    #provided-value .ms-brand-team .ms-team-tagline,
    body.home #provided-value.ms-story-photo .ms-brand-team p.ms-team-tagline {
        font-family: var(--team-type-ja) !important;
        font-weight: 400 !important;
        line-height: 1.7 !important;
        letter-spacing: 0 !important;
    }
    #provided-value .ms-brand-team .ms-team-link,
    body.home #provided-value.ms-story-photo .ms-brand-team p.ms-team-link {
        font-family: var(--team-type-ja) !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        letter-spacing: 0 !important;
    }
}

/* Component query keeps this right column usable without changing its parent
 * grid, which belongs to the existing hero/story layout. */
#provided-value .ms-brand-team { container-type: inline-size; container-name: ms-team; }
@container ms-team (max-width: 500px) {
    #provided-value .ms-brand-team .ms-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 16px !important; margin-inline: 0 !important; }
    #provided-value .ms-brand-team .ms-team-card:nth-child(n+3) { border-top: 1px solid #c8c3bf; }
    #provided-value .ms-brand-team .ms-team-card { padding-top: 15px !important; }
    #provided-value .ms-brand-team .ms-team-card::before { height: 20px; }
    #provided-value .ms-brand-team .ms-team-card::after { top: 130px; height: 110px; }
    #provided-value .ms-brand-team figure.ms-brand-team-character { height: 225px !important; padding: 10px 5px 16px !important; }
    #provided-value .ms-brand-team figure.ms-brand-team-character img { max-height: 199px !important; }
    #provided-value .ms-brand-team .ms-team-name { font-size: 19px !important; }
    #provided-value .ms-brand-team .ms-team-role { font-size: 12px !important; line-height: 1.7 !important; min-height: 42px; }
}
@media (max-width: 600px) {
    #provided-value .ms-brand-team .ms-team-label { gap: 6px !important; margin-bottom: 32px !important; }
    #provided-value .ms-brand-team .ms-team-logo, #provided-value .ms-brand-team .ms-team-logo img { width: 100px !important; }
    #provided-value .ms-brand-team .ms-team-tagline { font-size: 11px !important; }
}
/* Short desktop/tablet stages keep the current story transition and copy size.
 * Compact only the replacement artwork; reserve all four characters and links. */
@media (min-width: 601px) and (max-height: 850px) {
    #provided-value .ms-brand-team .ms-team-label { gap: 6px !important; margin-bottom: 26px !important; }
    #provided-value .ms-brand-team .ms-team-logo, #provided-value .ms-brand-team .ms-team-logo img { width: 96px !important; }
    #provided-value .ms-brand-team .ms-team-tagline { font-size: 11px !important; }
    #provided-value .ms-brand-team figure.ms-brand-team-character { height: 200px !important; padding: 8px 5px 14px !important; }
    #provided-value .ms-brand-team figure.ms-brand-team-character img { max-height: 178px !important; }
    #provided-value .ms-brand-team .ms-team-card::after { top: 123px; height: 99px; }
    #provided-value .ms-brand-team .ms-team-caption { min-height: 124px; padding-top: 10px !important; }
    #provided-value .ms-brand-team .ms-team-role { font-size: 12px !important; min-height: 38px; margin-top: 6px !important; }
    @container ms-team (max-width: 500px) {
        #provided-value .ms-brand-team .ms-team-grid { gap: 16px 14px !important; }
        #provided-value .ms-brand-team .ms-team-label { gap: 4px !important; margin-bottom: 24px !important; }
        #provided-value .ms-brand-team .ms-team-logo, #provided-value .ms-brand-team .ms-team-logo img { width: 80px !important; }
        #provided-value .ms-brand-team .ms-team-card { padding-top: 12px !important; }
        #provided-value .ms-brand-team .ms-team-card::before { height: 14px; }
        #provided-value .ms-brand-team .ms-team-card::after { top: 58px; height: 72px; }
        #provided-value .ms-brand-team figure.ms-brand-team-character { height: 118px !important; padding: 5px 4px 9px !important; }
        #provided-value .ms-brand-team figure.ms-brand-team-character img { max-height: 104px !important; }
        #provided-value .ms-brand-team .ms-team-caption { min-height: 104px; padding-top: 4px !important; }
        #provided-value .ms-brand-team .ms-team-name { font-size: 16px !important; }
        #provided-value .ms-brand-team .ms-team-role { --team-role-leading: 1.4; min-height: 34px; margin-top: 3px !important; font-size: 12px !important; line-height: 1.4 !important; }
    }
}
@media (min-width: 601px) and (max-width: 1439px) and (max-height: 850px) {
    #provided-value:has(.ms-brand-team) { padding-block: 90px 40px !important; }
}
@media (prefers-reduced-motion: reduce) {
    #provided-value .ms-brand-team { transform: none !important; }
}

/* Mobile final scene: keep the hero/message timeline, then allow the tall E
 * section to continue naturally below the sticky stage. The outer reserved
 * margin is excluded from story.offsetHeight, preserving the original progress
 * calculation. No content order changes and no nested scrolling are introduced. */
@media (max-width: 781px) {
    body.home .ms-hero-story.ms-story-active:has(#provided-value .ms-brand-team) {
        margin-bottom: var(--ms-team-mobile-overflow, 0px) !important;
    }
    body.home .ms-hero-story.ms-story-active #provided-value:has(.ms-brand-team) {
        justify-content: flex-start !important;
    }
    body.home .ms-hero-story.ms-story-active #provided-value:has(.ms-brand-team) > .wp-block-group {
        flex-shrink: 0 !important;
    }
    body.home .ms-hero-story.ms-story-active .ms-story-stage[data-story-phase="image"]:has(#provided-value .ms-brand-team) {
        overflow: visible !important;
    }
    body.home .ms-hero-story.ms-story-active .ms-story-stage[data-story-phase="image"] > #provided-value:has(.ms-brand-team) {
        inset: 0 0 auto !important;
        height: auto !important;
        min-height: 100svh !important;
        overflow: visible !important;
        clip-path: none !important;
    }
}
