:root {
    --red: #b91e2d;
    --dark: #171b20;
    --muted: #626a72;
    --line: #dce0e3;
    --paper: #f5f6f6
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
    color: var(--dark);
    line-height: 1.8;
    background: #fff
}

a {
    color: inherit;
    text-decoration: none
}

a:hover {
    color: var(--red)
}

.wrap {
    max-width: 1220px;
    margin: auto;
    padding: 0 32px
}

.topline {
    height: 6px;
    background: var(--red)
}

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 16px #0001
}

.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px
}

.brand {
    display: block;
    flex: 0 0 auto;
    padding: 8px 0;
    line-height: 0
}

.brand img {
    display: block;
    width: 112px;
    max-width: 100%;
    height: auto
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: .88rem;
    font-weight: 700
}

nav a {
    white-space: nowrap
}

.lang-switch {
    border-left: 1px solid #dce0e3;
    padding-left: 14px;
    color: var(--red)
}

.contact-btn,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    background: var(--red);
    color: #fff !important;
    font-weight: 800;
    line-height: 1.4;
    border: 1px solid var(--red);
    transition: .2s
}

.contact-btn:hover,
.button:hover {
    background: #861722;
    border-color: #861722
}

.button.alt {
    background: transparent;
    border-color: #fff;
    color: #fff !important
}

.button.alt:hover {
    background: #ffffff20
}

.hero {
    min-height: 610px;
    background: linear-gradient(90deg, #12171ce8 0%, #12171ca0 41%, #12171c00 76%), url('inspection-lane.webp') center/cover;
    color: #fff;
    display: flex;
    align-items: center
}

.hero .wrap {
    width: 100%
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .19em;
    font-size: .79rem;
    font-weight: 800;
    color: #e66b72
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.33;
    letter-spacing: .045em;
    margin: 18px 0 20px;
    max-width: 780px
}

.hero p {
    font-size: 1.05rem;
    max-width: 610px;
    margin: 0 0 30px;
    color: #f0f2f3
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.status {
    background: #252b31;
    color: #fff;
    padding: 27px 0
}

.status .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.status strong {
    font-size: 1rem
}

.status p {
    margin: 5px 0 0;
    color: #d7dadd;
    font-size: .88rem
}

.status .tag {
    border: 1px solid #78818a;
    padding: 11px 16px;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 800
}

.section {
    padding: 90px 0
}

.section.gray {
    background: var(--paper)
}

.section-head {
    margin-bottom: 35px
}

.kicker {
    font-size: .78rem;
    letter-spacing: .16em;
    font-weight: 900;
    color: var(--red)
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.45;
    margin: 8px 0 13px;
    letter-spacing: .03em
}

.lead {
    max-width: 820px;
    color: var(--muted);
    margin: 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.card {
    background: #fff;
    padding: 31px;
    border-top: 4px solid var(--red);
    box-shadow: 0 12px 28px #19232b0b
}

.number {
    color: var(--red);
    font-weight: 900;
    letter-spacing: .1em
}

.card h3 {
    font-size: 1.27rem;
    margin: 13px 0 10px
}

.card p {
    margin: 0;
    color: #555f67;
    font-size: .95rem
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6%;
    align-items: center
}

.split img {
    width: 100%;
    height: 440px;
    object-fit: cover
}

.detail-list {
    padding: 0;
    margin: 25px 0;
    list-style: none
}

.detail-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.detail-list li:before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    margin-right: 12px
}

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.step {
    border-top: 2px solid var(--red);
    padding-top: 16px
}

.step b {
    color: var(--red);
    font-size: .8rem
}

.step h3 {
    margin: 4px 0 8px;
    font-size: 1.07rem
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: .91rem
}

.other {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.other .service-link {
    background: white;
    padding: 25px 20px;
    border: 1px solid var(--line);
    font-weight: 800
}

/* Link icons: the SVG is used as a mask so the icon takes the link's text colour. */
.icon-open-in-new,
.icon-open {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: .3em;
    vertical-align: -.15em
}

.icon-open-in-new::after,
.icon-open::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor
}

.icon-open-in-new::after {
    -webkit-mask: url(open_in_new.svg) center / contain no-repeat;
    mask: url(open_in_new.svg) center / contain no-repeat
}

.icon-open::after {
    -webkit-mask: url(open.svg) center / contain no-repeat;
    mask: url(open.svg) center / contain no-repeat
}

/* Underlined links: fix the underline position and continue it under the icon (and the gap before it). */
footer a:has(> .icon-open-in-new),
footer a:has(> .icon-open),
.downloads a:has(> .icon-open-in-new),
.downloads a:has(> .icon-open) {
    text-underline-offset: .15em;
    text-decoration-thickness: 1px
}

footer a>.icon-open-in-new::before,
footer a>.icon-open::before,
.downloads a>.icon-open-in-new::before,
.downloads a>.icon-open::before {
    content: "";
    position: absolute;
    left: -.3em;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: currentColor
}

.scope {
    background: #22282e;
    color: #fff
}

.scope p {
    color: #d8dcdf;
    max-width: 1000px
}

.scope small {
    color: #bfc5ca
}

.cta {
    background: var(--red);
    color: #fff;
    padding: 55px 0
}

.cta .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.cta h2 {
    margin: 0
}

.cta p {
    margin: 7px 0 0
}

.cta .button {
    background: white;
    color: var(--red) !important;
    border-color: white
}

footer {
    background: #171b20;
    color: #c8cdd1;
    padding: 35px 0;
    font-size: 13px
}

footer strong {
    color: #fff;
    font-size: 17px
}

footer p {
    margin: 8px 0 0
}

footer a {
    text-decoration: underline
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 30px
}

.footer-row span {
    align-self: end;
    font-size: 12px
}

@media(max-width:700px) {
    .footer-row {
        display: block
    }
}

.image-note {
    font-size: .8rem;
    color: var(--muted);
    margin: 8px 0 0
}

@media(max-width:940px) {
    nav {
        gap: 12px;
        font-size: .75rem
    }

    .grid {
        grid-template-columns: 1fr 1fr
    }

    .other {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:700px) {
    .wrap {
        padding: 0 21px
    }

    .hero {
        min-height: 590px;
        background-position: 62% center;
        background-image: linear-gradient(90deg, #12171ce8, #12171c7e), url('inspection-lane.webp')
    }

    .hero h1 {
        font-size: 2.35rem
    }

    .status .wrap,
    .cta .wrap {
        display: block
    }

    .status .tag {
        display: inline-block;
        margin-top: 15px
    }

    .section {
        padding: 65px 0
    }

    .grid,
    .split,
    .process,
    .other {
        grid-template-columns: 1fr
    }

    .split {
        gap: 30px
    }

    .split img {
        height: 300px
    }

    .process {
        gap: 26px
    }

    .cta .button {
        margin-top: 20px
    }
}

.service-link:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 4px 15px #19232b12
}

.service-link:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px
}

/* Mobile header: compact logo and hamburger menu below 800px (opened and closed by nav.js). */
.menu-toggle {
    display: none
}

@media(max-width:800px) {
    header .wrap {
        padding: 0 21px
    }

    .head {
        min-height: 64px;
        flex-wrap: wrap;
        gap: 0 16px
    }

    .brand {
        padding: 6px 0
    }

    .brand img {
        width: 64px
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-right: -10px;
        padding: 0 10px;
        border: 0;
        background: none;
        color: #171b20;
        cursor: pointer
    }

    .menu-toggle span {
        display: block;
        height: 2px;
        background: currentColor;
        transition: transform .2s, opacity .2s
    }

    .menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg)
    }

    .menu-open .menu-toggle span:nth-child(2) {
        opacity: 0
    }

    .menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg)
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow: auto;
        padding: 0 21px 20px;
        border-top: 1px solid #dce0e3;
        background: #fff;
        box-shadow: 0 14px 18px #0000001a;
        font-size: 1rem
    }

    .menu-open nav {
        display: flex
    }

    nav a:not(.contact-btn) {
        padding: 14px 0;
        border-top: 1px solid #dce0e3
    }

    nav .contact-btn {
        margin-top: 18px;
        padding: 13px 23px
    }

    nav .lang-switch {
        align-self: center;
        margin-top: 8px;
        padding: 10px 16px;
        border: 0
    }
}