.jn-home {
    color: #142d40;
    background: #fff;
}

.jn-home h1, .jn-home h2, .jn-home p { margin: 0; }
.jn-home h1, .jn-home h2, .jn-home p { word-break: keep-all; }

.jn-home-hero {
    background: url("../img/joinall-legacy/m_icon01.png") left -120px bottom -255px / 460px no-repeat,
        url("../img/joinall-legacy/m_icon02.png") right 5% top -106px / 300px no-repeat,
        #005e9d;
    color: #fff;
    text-align: center;
}

.jn-home-hero__inner {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: clamp(390px, 56vh, 570px);
    padding-block: 64px;
}

.jn-home-hero h1 {
    color: inherit;
    font-size: clamp(36px, 5.4vw, 76px);
    font-weight: 780;
    letter-spacing: -.04em;
    line-height: 1.08;
    text-wrap: balance;
}

.jn-home-hero p {
    margin-top: 22px;
    font-size: clamp(17px, 2.1vw, 25px);
    line-height: 1.55;
}

.jn-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.jn-home-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 11px 22px;
    border: 1px solid #fff;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease;
}

.jn-home-button--white { background: #fff; color: #005489; }
.jn-home-button:hover { transform: translateY(-2px); }
.jn-home-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.jn-home-tools {
    padding-block: clamp(52px, 7vw, 94px);
    background: #f3f5f7;
    text-align: center;
    scroll-margin-top: 95px;
}

.jn-home h2 {
    font-size: clamp(27px, 3.6vw, 47px);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.18;
}

.jn-home-tools p, .jn-home-story p {
    margin-top: 13px;
    color: #405767;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.65;
}

.jn-home-tools__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 38px auto 0;
    padding: 0;
    list-style: none;
}

.jn-home-tools li > * {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    height: 100%;
    min-height: 145px;
    padding: 10px 5px;
    border: 1px solid #dce5ec;
    border-radius: 13px;
    background: #fff;
    color: #142d40;
    font-size: clamp(13px, 1.5vw, 17px);
    font-weight: 680;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.jn-home-tools li > a:hover { transform: translateY(-2px); border-color: #005e9d; }
.jn-home-tools img { display: block; width: 80px; max-width: 88%; height: 62px; object-fit: contain; }

.jn-home-story { padding-block: clamp(58px, 8vw, 110px); }
.jn-home-story__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(30px, 6vw, 90px);
}

.jn-home-story__image { display: block; width: 100%; border-radius: 14px; }
.jn-home-story a { display: inline-block; margin-top: 21px; color: #005e9d; font-weight: 700; }
.jn-home-tools a:focus-visible, .jn-home-story a:focus-visible { outline: 2px solid #005e9d; outline-offset: 3px; }

@media (max-width: 680px) {
    .jn-home-hero {
        background-size: 280px, 175px;
        background-position: left -92px bottom -163px, right -24px top -66px;
    }

    .jn-home-hero__inner { min-height: 365px; }
    .jn-home-tools__list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
    .jn-home-tools li { grid-column: span 2; }
    .jn-home-tools li:nth-child(4) { grid-column: 2 / span 2; }
    .jn-home-tools li > * { min-height: 108px; gap: 7px; }
    .jn-home-tools img { width: 60px; height: 43px; }
    .jn-home-story__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .jn-home-button, .jn-home-tools li > * { transition: none; }
}
