/* Marie's 27 October 2026 amendments. Loaded after existing site overrides. */
body header #navigation li a:hover,
body header #navigation li a:focus-visible { color: #000 !important; }

/* Remove decorative heading rules consistently across browser engines. */
.about-title::before, .about-title::after,
.d-title::before, .d-title::after, .about-titlesub::before {
    content: none !important;
    display: none !important;
}
.about-title, .d-title { border-bottom: 0 !important; text-decoration: none !important; }
.home .about-wrap + .d-title-wrap { padding-top: clamp(48px, 6vw, 88px) !important; }

/* The typewriter is at the right edge of the original photograph. */
.services-item .img[style*="services-8.jpg"] {
    background-position: right center !important;
}

/* Match the supporting paragraph hierarchy used in About Us. */
@media (min-width: 641px) {
    body.en .services_new .about-text p.marie-services-support {
        font-size: 23px !important;
        line-height: 1.42 !important;
        margin-top: 24px !important;
    }
    html body.ja .about-wrap.services_new .about-text p:first-child .tele_jp_about_small {
        font-size: 20px !important;
        line-height: 1.56 !important;
    }
}

/* Keep mobile photographs and copy in separate rows, including mirrored photos. */
@media (max-width: 640px) {
    body.en.home .whatwedo-item,
    body.en.home #service_television,
    body.en.home #service_press {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 0 !important;
        background-image: none !important;
    }
    body.en.home .whatwedo-item::before,
    body.en.home #service_television::before,
    body.en.home #service_press::before {
        content: "" !important;
        position: relative !important;
        inset: auto !important;
        display: block !important;
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1961 / 535;
        background-image: var(--service-image) !important;
        background-size: 100% 100% !important;
        background-position: center !important;
        background-repeat: no-repeat;
    }
    body.en.home .whatwedo-item .whatwedo-text {
        position: relative;
        box-sizing: border-box;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }
}
.blog-pagination { clear: both; padding: 32px 0; text-align: center; }
.blog-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 4px; }
.blog-pagination .current { background: #111; color: #fff; }

@media (max-width: 640px) {
    body.en .services_new .about-text p.marie-services-support {
        font-size: 21px !important;
        line-height: 1.5 !important;
    }
}

/* Match the Japanese About Us supporting copy on phones as well. */
@media (max-width: 640px) {
    html body.ja .about-wrap.services_new .about-text p:first-child .tele_jp_about_small {
        font-size: 20px !important;
        line-height: 1.56 !important;
    }
}
