:root {
    --navy: #16294a;
    --ink: #1d2f4f;
    --text: #3d4f6c;
    --blue: #1f6fe0;
    --line: #e4eaf2;
    --foot: #0f213d
}

html {
    scroll-behavior: smooth
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'Noto Sans JP',sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased
}

html[lang=en] body {
    font-family: 'Poppins','Noto Sans JP',sans-serif
}

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

img {
    display: block;
    max-width: 100%;
    height: auto
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px
}

.logo img {
    height: 34px;
    width: auto
}

.eyebrow {
    font-family: 'Poppins',sans-serif;
    font-size: .68rem;
    letter-spacing: .2em;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px
}

    .eyebrow::after {
        content: "";
        width: 40px;
        height: 1px;
        background: #9dbcf0
    }

h2 {
    font-weight: 500;
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--navy);
    letter-spacing: .04em
}

.txt {
    font-size: .86rem;
    color: var(--text);
    margin-top: 22px;
    line-height: 2
}

.more {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    font-size: .84rem;
    color: var(--blue);
    font-weight: 500
}

    .more::after {
        content: "→"
    }

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(6px)
}

    header .wrap {
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        max-width: none;
        padding: 0 48px
    }

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    font-size: .78rem
}

nav a {
    position: relative;
    padding: 6px 0;
    transition: color .2s
}

    nav a:hover {
        color: var(--blue)
    }

    nav a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px;
        height: 1px;
        background: var(--blue);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s
    }

    nav a.on {
        color: var(--blue)
    }

        nav a.on::after {
            transform: scaleX(1)
        }

section[id] {
    scroll-margin-top: 72px
}

#contact {
    scroll-margin-top: 96px
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #c9d6e8;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative
}

    .burger span {
        position: absolute;
        left: 12px;
        right: 12px;
        height: 1.5px;
        background: var(--navy);
        transition: transform .25s,opacity .2s
    }

        .burger span:nth-child(1) {
            top: 14px
        }

        .burger span:nth-child(2) {
            top: 20px
        }

        .burger span:nth-child(3) {
            top: 26px
        }

    .burger[aria-expanded=true] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg)
    }

    .burger[aria-expanded=true] span:nth-child(2) {
        opacity: 0
    }

    .burger[aria-expanded=true] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg)
    }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px
}

.hright {
    display: flex;
    align-items: center;
    gap: 18px
}

.lang {
    display: flex;
    border: 1px solid #c9d6e8;
    border-radius: 999px;
    overflow: hidden;
    font-family: 'Poppins';
    font-size: .7rem
}

    .lang button {
        border: 0;
        background: #fff;
        color: var(--text);
        padding: 6px 12px;
        cursor: pointer;
        font: inherit;
        letter-spacing: .1em
    }

        .lang button[aria-pressed=true] {
            background: var(--navy);
            color: #fff
        }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--blue);
    color: var(--navy);
    border-radius: 999px;
    padding: 7px 18px 7px 22px;
    font-size: .78rem;
    transition: .2s;
    white-space: nowrap
}

    .pill::after {
        content: "→";
        color: var(--blue)
    }

    .pill:hover {
        background: var(--blue);
        color: #fff
    }

        .pill:hover::after {
            color: #fff
        }

.hero {
    position: relative;
    height: clamp(500px,42vw,700px);
    background: #eef4fb;
    overflow: hidden
}

    .hero .photo {
        position: absolute;
        inset: 0;
        background: url("images/photos/hero-office.jpg") right center/cover no-repeat
    }

    .hero .veil {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,rgba(248,251,255,.97) 0%,rgba(248,251,255,.92) 30%,rgba(248,251,255,.55) 46%,rgba(248,251,255,0) 62%)
    }

    .hero .wrap {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: none;
        padding: 0 5.5vw
    }

    .hero .logo img {
        height: clamp(52px,6vw,78px)
    }

    .hero .tag {
        font-family: 'Poppins';
        font-size: .68rem;
        letter-spacing: .3em;
        color: var(--text);
        margin: 24px 0 20px
    }

    .hero h1 {
        font-weight: 400;
        font-size: clamp(1.6rem,2.8vw,2.35rem);
        letter-spacing: .1em;
        line-height: 1.65;
        color: var(--navy)
    }

html[lang=en] .hero h1 {
    letter-spacing: .02em
}

.hero p {
    font-size: .84rem;
    color: var(--text);
    margin-top: 20px;
    letter-spacing: .04em
}

.hero .go {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    font-size: .84rem;
    color: var(--navy)
}

    .hero .go i {
        width: 44px;
        height: 44px;
        border: 1px solid var(--blue);
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--blue);
        font-style: normal
    }

.about {
    padding: 48px 0 40px
}

    .about .wrap {
        display: grid;
        grid-template-columns: 1fr 1.15fr .45fr;
        gap: 48px;
        align-items: center
    }

    .about .side {
        font-family: 'Poppins';
        font-size: .68rem;
        letter-spacing: .32em;
        color: var(--text);
        line-height: 2.6
    }

.services {
    background: linear-gradient(180deg,#f6f9fd,#eef4fb);
    padding: 72px 0 80px
}

.shead {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px
}

    .shead .eyebrow {
        justify-content: center
    }

        .shead .eyebrow::before {
            content: "";
            width: 40px;
            height: 1px;
            background: #9dbcf0
        }

    .shead .txt {
        margin-top: 14px
    }

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

.scard {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16/10.5;
    background: #0e1d33;
    color: #fff;
    box-shadow: 0 8px 28px rgba(15,33,61,.14)
}

    .scard img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 72% 50%;
        transition: transform .6s ease
    }

    .scard::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(95deg,rgba(9,22,44,.92) 0%,rgba(12,30,58,.74) 38%,rgba(12,30,58,.25) 62%,rgba(12,30,58,.05) 100%)
    }

    .scard:hover img {
        transform: scale(1.05)
    }

.sc-body {
    position: relative;
    z-index: 1;
    padding: 22px 22px 20px;
    max-width: 64%
}

.badge {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(143,196,255,.7);
    background: rgba(31,111,224,.55);
    border-radius: 4px;
    font-family: Poppins;
    font-size: .82rem;
    margin-bottom: 14px
}

.scard h3 {
    font-family: Poppins;
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: .01em
}

.scard .sub {
    font-size: .72rem;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: .04em;
    line-height: 1.55
}

.scard .desc {
    font-size: .72rem;
    line-height: 1.85;
    margin-top: 10px;
    color: rgba(255,255,255,.88)
}

.sol {
    position: relative;
    height: clamp(300px,20vw,360px);
    background: linear-gradient(90deg,#f7fafe 0%,#eef4fb 35%,#dce9f8 100%);
    overflow: hidden
}

    .sol .photo {
        position: absolute;
        top: 0;
        right: 0;
        width: 62%;
        height: 100%;
        background: url("images/photos/solutions-city.jpg") center/cover no-repeat;
        -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 30%);
        mask-image: linear-gradient(90deg,transparent 0,#000 30%)
    }

    .sol .wrap {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center
    }

.news {
    padding: 64px 0 24px
}

    .news .wrap {
        display: grid;
        grid-template-columns: .7fr 2.4fr;
        gap: 40px;
        align-items: start
    }

    .news h2 {
        font-weight: 400
    }

.nlist {
    list-style: none;
    border-top: 1px solid var(--line)
}

    .nlist li {
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 20px 0;
        border-bottom: 1px solid var(--line);
        font-size: .86rem
    }

    .nlist time {
        font-family: Poppins;
        color: var(--text);
        font-size: .8rem;
        letter-spacing: .06em;
        min-width: 64px
    }

.ntag {
    font-size: .66rem;
    border: 1px solid #9dbcf0;
    color: var(--blue);
    border-radius: 999px;
    padding: 2px 12px;
    white-space: nowrap
}

.company {
    padding: 48px 0 16px
}

    .company .wrap {
        display: grid;
        grid-template-columns: .7fr 2.4fr;
        gap: 40px;
        align-items: start
    }

    .company h2 {
        font-weight: 400
    }

.company-map {
    margin-top: 16px;
}

.company-map iframe {
    display: block;
    width: 100%;
    height: clamp(240px, 35vw, 320px);
    border: 0;
    border-radius: 6px;
}

.company-map a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .72rem
}

th, td {
    text-align: left;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    vertical-align: top
}

th {
    width: 100px;
    font-weight: 500
}

tr:last-child th, tr:last-child td {
    border-bottom: 1px solid var(--line)
}

td ul {
    list-style: none
}

td li::before {
    content: "・"
}

.ccard {
    background: linear-gradient(135deg,#f3f8fe,#e3eefb);
    padding: 44px 30px;
    text-align: center
}

    .ccard img {
        height: 64px;
        width: auto;
        margin: 0 auto 14px
    }

    .ccard .cword {
        display: block;
        font-family: Poppins;
        font-weight: 300;
        letter-spacing: .3em;
        color: #16294a;
        font-size: 1.05rem;
        padding-left: .3em
    }

    .ccard p {
        font-size: .76rem;
        color: var(--text);
        margin: 16px 0 20px;
        letter-spacing: .06em
    }

footer {
    background: var(--foot);
    color: #dfe8f5;
    margin-top: 16px
}

    footer .wrap {
        min-height: 110px;
        display: flex;
        align-items: center;
        gap: 50px;
        max-width: none;
        padding: 0 60px
    }

    footer .logo img {
        height: 24px
    }

    footer ul {
        display: flex;
        gap: 22px;
        list-style: none;
        font-size: .68rem;
        flex: 1;
        flex-wrap: wrap
    }

.sns {
    display: flex;
    gap: 12px
}

    .sns a {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #fff;
        color: var(--foot);
        display: grid;
        place-items: center;
        font-size: .58rem;
        font-weight: 700
    }

footer small {
    font-size: .56rem;
    color: #b9c6da
}

@media(max-width:1000px) {
    .burger {
        display: block
    }

    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(15,33,61,.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        visibility: hidden
    }

        nav.open {
            max-height: 480px;
            visibility: visible
        }

        nav ul {
            flex-direction: column;
            gap: 0;
            padding: 8px 24px 20px;
            font-size: .95rem
        }

        nav li {
            border-bottom: 1px solid var(--line)
        }

        nav a {
            display: block;
            padding: 15px 0
        }

            nav a::after {
                bottom: 10px;
                right: auto;
                width: 28px
            }
}

@media(max-width:900px) {
    header .pill {
        display: none
    }

    header .wrap {
        padding: 0 20px
    }

    .hero {
        height: auto;
        display: flex;
        flex-direction: column-reverse
    }

        .hero .photo {
            position: relative;
            inset: auto;
            width: 100%;
            height: 240px
        }

        .hero .veil {
            display: none
        }

        .hero .wrap {
            padding: 40px 24px
        }

    .about .wrap, .company .wrap, .news .wrap {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .about .side {
        display: none
    }

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

    .sol {
        height: auto;
        padding: 48px 0
    }

        .sol .photo {
            opacity: .3;
            width: 100%;
            -webkit-mask-image: none;
            mask-image: none
        }

    .about, .services, .company, .news {
        padding: 48px 0
    }

    .nlist li {
        flex-wrap: wrap;
        gap: 8px 16px
    }

    .nlist p {
        flex-basis: 100%
    }

    .wrap {
        padding: 0 24px
    }

    footer .wrap {
        flex-wrap: wrap;
        gap: 20px;
        padding: 30px 24px
    }
}

@media(max-width:620px) {
    .hero h1 {
        font-size: 1.38rem;
        letter-spacing: .03em
    }

    .hero .tag {
        letter-spacing: .18em
    }

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

    .sc-body {
        max-width: 90%
    }
}

/* Contact form */
.contact {
    padding: 32px 0 48px;
    scroll-margin-top: 100px;
}

.contact .wrap {
    max-width: 960px;
}

.ccard {
    min-width: 0;
    border-radius: 6px
}

.ccard h2 {
    font-size: 1.2rem
}

.contact-form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px 24px;
    margin-top: 24px;
    text-align: left
}

.form-field {
    min-width: 0
}

.form-field-full {
    grid-column: 1 / -1
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--navy)
}

.form-field input, .form-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.6
}

.form-field textarea {
    resize: vertical;
    min-height: 140px
}

    .form-field input::placeholder, .form-field textarea::placeholder {
        /*color: var(--text);*/
        color: gray;
        opacity: 1
    }

.form-field input:focus, .form-field textarea:focus {
    border-color: var(--blue);
    outline: 2px solid var(--blue);
    outline-offset: 2px
}

.form-field input:user-invalid, .form-field textarea:user-invalid {
    border-color: #a32727
}

.contact-form .cf-turnstile {
    display: flex;
    justify-content: center;
    margin-bottom: 18px
}

.form-submit {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-size: .84rem;
    cursor: pointer;
    transition: background .2s, color .2s
}

.form-submit:hover:not(:disabled) {
    background: #195bbb;
    border-color: #195bbb
}

.form-submit:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px
}

.form-submit:disabled {
    opacity: .5;
    cursor: wait
}

.ccard .form-status {
    grid-column: 1 / -1;
    margin: 16px 0 0;
    letter-spacing: normal;
    overflow-wrap: anywhere
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap
}

.ccard .form-status[data-state=success], .ccard .form-status.is-success {
    color: #17613c
}

.ccard .form-status[data-state=error], .ccard .form-status.is-error {
    color: #a32727
}

@media(max-width:900px) {
    .contact-form {
        grid-template-columns: 1fr
    }
}
