/* =========================================================
   RADWAN PORTFOLIO V2
   Japanese Homepage — V2 Language & Layout Adjustments
========================================================= */


/* =========================================================
   Scope
========================================================= */

html[lang="ja"] .jp-home-v2 {
    --v2-section-space:
        clamp(7rem, 10vw, 10rem);
}


/* =========================================================
   Japanese Typography
========================================================= */

html[lang="ja"] .jp-home-v2 .v2-hero h1,
html[lang="ja"] .jp-home-v2 .v2-section-intro h2,
html[lang="ja"] .jp-home-v2 .v2-section-heading h2,
html[lang="ja"] .jp-home-v2 .v2-capability-panel-heading h3,
html[lang="ja"] .jp-home-v2 .v2-case-study-content h3,
html[lang="ja"] .jp-home-v2 .v2-process-intro h2,
html[lang="ja"] .jp-home-v2 .v2-process-list h3,
html[lang="ja"] .jp-home-v2 .v2-context-item h3,
html[lang="ja"] .jp-home-v2 .v2-tech-intro h2,
html[lang="ja"] .jp-home-v2 .v2-about-content h2,
html[lang="ja"] .jp-home-v2 .v2-cta h2 {
    word-break: auto-phrase;
    line-break: strict;
    overflow-wrap: normal;

    text-wrap: pretty;

    letter-spacing: -0.025em;
}

html[lang="ja"] .jp-home-v2 .v2-hero h1 {
    max-width: 900px;

    font-size:
        clamp(2.65rem, 4.25vw, 4.35rem);

    line-height: 1.2;
}

html[lang="ja"] .jp-home-v2 .v2-hero h1 span {
    margin-top: 0.08em;
}

html[lang="ja"] .jp-home-v2 .v2-hero-lead {
    max-width: 760px;

    font-size:
        clamp(1rem, 1.3vw, 1.12rem);

    line-height: 2;
}

html[lang="ja"] .jp-home-v2 .v2-section-intro h2,
html[lang="ja"] .jp-home-v2 .v2-section-heading h2 {
    font-size:
        clamp(2.15rem, 3.45vw, 3.55rem);

    line-height: 1.32;
}

html[lang="ja"] .jp-home-v2 .v2-section-heading>p,
html[lang="ja"] .jp-home-v2 .v2-process-intro>p:last-of-type,
html[lang="ja"] .jp-home-v2 .v2-tech-intro>p:last-child,
html[lang="ja"] .jp-home-v2 .v2-cta>div:first-child>p:last-child {
    line-height: 2;
}

html[lang="ja"] .jp-home-v2 .v2-capability-panel-heading h3 {
    font-size:
        clamp(2.05rem, 3.35vw, 3.35rem);

    line-height: 1.34;
}

html[lang="ja"] .jp-home-v2 .v2-capability-panel-content>p {
    font-size: 1rem;

    line-height: 2;
}

html[lang="ja"] .jp-home-v2 .v2-case-study-content h3 {
    max-width: 720px;

    font-size:
        clamp(1.95rem, 3.15vw, 3.15rem);

    line-height: 1.34;
}

html[lang="ja"] .jp-home-v2 .v2-case-study-summary {
    font-size:
        clamp(1rem, 1.35vw, 1.14rem);

    line-height: 2;
}

html[lang="ja"] .jp-home-v2 .v2-case-study-facts p {
    line-height: 1.95;
}

html[lang="ja"] .jp-home-v2 .v2-process-intro h2 {
    font-size:
        clamp(2.05rem, 3.35vw, 3.35rem);

    line-height: 1.34;
}

html[lang="ja"] .jp-home-v2 .v2-process-list h3 {
    font-size:
        clamp(1.45rem, 2.15vw, 2rem);

    line-height: 1.5;
}

html[lang="ja"] .jp-home-v2 .v2-process-list div>p:last-child {
    line-height: 1.95;
}

html[lang="ja"] .jp-home-v2 .v2-context-item h3 {
    font-size:
        clamp(1.35rem, 1.9vw, 1.75rem);

    line-height: 1.55;
}

html[lang="ja"] .jp-home-v2 .v2-context-item div>p:last-child {
    line-height: 1.95;
}

html[lang="ja"] .jp-home-v2 .v2-tech-intro h2 {
    font-size:
        clamp(2.05rem, 3.3vw, 3.3rem);

    line-height: 1.35;
}

html[lang="ja"] .jp-home-v2 .v2-about-content h2 {
    font-size:
        clamp(2.05rem, 3.3vw, 3.3rem);

    line-height: 1.35;
}

html[lang="ja"] .jp-home-v2 .v2-about-lead {
    font-size:
        clamp(1.18rem, 1.7vw, 1.5rem);

    line-height: 1.9;
}

html[lang="ja"] .jp-home-v2 .v2-about-content>p:not(.section-label):not(.v2-about-lead) {
    line-height: 2;
}

html[lang="ja"] .jp-home-v2 .v2-cta h2 {
    font-size:
        clamp(2.3rem, 3.8vw, 3.75rem);

    line-height: 1.3;
}


/* =========================================================
   Labels
========================================================= */

html[lang="ja"] .jp-home-v2 .section-label,
html[lang="ja"] .jp-home-v2 .v2-hero-role,
html[lang="ja"] .jp-home-v2 .v2-hero-location,
html[lang="ja"] .jp-home-v2 .v2-case-study-meta p,
html[lang="ja"] .jp-home-v2 .v2-case-study-kicker,
html[lang="ja"] .jp-home-v2 .v2-case-study-facts span,
html[lang="ja"] .jp-home-v2 .v2-process-label {
    letter-spacing: 0.08em;
}

html[lang="ja"] .jp-home-v2 .v2-hero-role,
html[lang="ja"] .jp-home-v2 .v2-hero-location {
    text-transform: none;
}

html[lang="ja"] .jp-home-v2 .v2-case-study-meta p,
html[lang="ja"] .jp-home-v2 .v2-case-study-kicker,
html[lang="ja"] .jp-home-v2 .v2-case-study-facts span,
html[lang="ja"] .jp-home-v2 .v2-process-label,
html[lang="ja"] .jp-home-v2 .v2-context-item div>p:first-child {
    text-transform: none;
}


/* =========================================================
   Hero
========================================================= */

html[lang="ja"] .jp-home-v2 .v2-hero-grid {
    grid-template-columns:
        minmax(0, 1.36fr) minmax(330px, 0.64fr);

    gap:
        clamp(3.5rem, 6vw, 6rem);
}

html[lang="ja"] .jp-home-v2 .v2-hero-content {
    max-width: 900px;
}

html[lang="ja"] .jp-home-v2 .v2-hero-dynamic {
    min-height: auto;

    margin-top: 1.7rem;

    line-height: 1.8;
}

html[lang="ja"] .jp-home-v2 .v2-hero-dynamic strong {
    min-width: 0;

    font-weight: 650;
}

html[lang="ja"] .jp-home-v2 .v2-delivery-map {
    max-width: 420px;
}

html[lang="ja"] .jp-home-v2 .v2-delivery-flow strong {
    font-size: 0.95rem;

    line-height: 1.55;
}

html[lang="ja"] .jp-home-v2 .v2-delivery-flow small {
    line-height: 1.7;
}


/* =========================================================
   Snapshot
========================================================= */

html[lang="ja"] .jp-home-v2 .v2-metric {
    min-height: 300px;
}

html[lang="ja"] .jp-home-v2 .v2-metric-value {
    max-width: 100%;

    font-family:
        Inter,
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-size:
        clamp(2.8rem, 4vw, 4rem);

    line-height: 1;

    white-space: nowrap;
}

html[lang="ja"] .jp-home-v2 .v2-metric-word {
    max-width: 260px;

    font-size:
        clamp(1.45rem, 2.15vw, 2.1rem);

    line-height: 1.3;

    letter-spacing: -0.035em;
}

html[lang="ja"] .jp-home-v2 .v2-metric-title {
    font-size: 0.96rem;
}

html[lang="ja"] .jp-home-v2 .v2-metric>p:last-child {
    max-width: 260px;

    line-height: 1.9;
}


/* =========================================================
   Capabilities
========================================================= */

html[lang="ja"] .jp-home-v2 .v2-capability-tab {
    min-height: 120px;
}

html[lang="ja"] .jp-home-v2 .v2-capability-tab strong {
    font-size:
        clamp(1.45rem, 2.2vw, 2.2rem);

    letter-spacing: -0.025em;
}

html[lang="ja"] .jp-home-v2 .v2-capability-panel-content li {
    line-height: 1.8;
}


/* =========================================================
   Selected Work
========================================================= */

html[lang="ja"] .jp-home-v2 .v2-case-study {
    grid-template-columns:
        135px minmax(0, 1.07fr) minmax(390px, 0.93fr);

    gap:
        clamp(2.5rem, 4.5vw, 5rem);
}

html[lang="ja"] .jp-home-v2 .v2-case-study-meta>span {
    font-family:
        Inter,
        "Helvetica Neue",
        Arial,
        sans-serif;
}

html[lang="ja"] .jp-home-v2 .v2-tag-list li {
    line-height: 1.5;
}

html[lang="ja"] .jp-home-v2 .v2-work-more {
    display: flex;
    justify-content: flex-end;

    padding-top: 3rem;
}


/* =========================================================
   Process
========================================================= */

html[lang="ja"] .jp-home-v2 .v2-process-grid {
    grid-template-columns:
        minmax(330px, 0.74fr) minmax(0, 1.26fr);

    gap:
        clamp(4rem, 8vw, 8rem);
}

html[lang="ja"] .jp-home-v2 .v2-process-list {
    min-width: 0;
}


/* =========================================================
   Context / Tech
========================================================= */

html[lang="ja"] .jp-home-v2 .v2-context-item {
    min-height: 430px;
}

html[lang="ja"] .jp-home-v2 .v2-context-item>span {
    margin-bottom: 4.5rem;

    font-family:
        Inter,
        "Helvetica Neue",
        Arial,
        sans-serif;
}

html[lang="ja"] .jp-home-v2 .v2-tech-matrix li {
    line-height: 1.65;
}


/* =========================================================
   About
========================================================= */

html[lang="ja"] .jp-home-v2 .v2-about-grid {
    grid-template-columns:
        minmax(330px, 0.78fr) minmax(0, 1.22fr);

    gap:
        clamp(4rem, 8vw, 8rem);
}


/* =========================================================
   Large Tablet
========================================================= */

@media (max-width: 1180px) {

    html[lang="ja"] .jp-home-v2 .v2-case-study {
        grid-template-columns:
            105px minmax(0, 1fr);
    }

    html[lang="ja"] .jp-home-v2 .v2-case-study-visual {
        grid-column: 2;

        width: 100%;
        max-width: 760px;

        margin-top: 1.5rem;
    }

}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 980px) {

    html[lang="ja"] .jp-home-v2 .v2-hero-grid,
    html[lang="ja"] .jp-home-v2 .v2-process-grid,
    html[lang="ja"] .jp-home-v2 .v2-tech-grid,
    html[lang="ja"] .jp-home-v2 .v2-about-grid,
    html[lang="ja"] .jp-home-v2 .v2-cta {
        grid-template-columns: 1fr;
    }

    html[lang="ja"] .jp-home-v2 .v2-hero-grid {
        gap: 4rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-hero h1 {
        max-width: 800px;

        font-size:
            clamp(2.45rem, 6vw, 3.65rem);

        line-height: 1.28;
    }

    html[lang="ja"] .jp-home-v2 .v2-delivery-map {
        width: 100%;
        max-width: 620px;
    }

    html[lang="ja"] .jp-home-v2 .v2-section-heading {
        grid-template-columns: 1fr;

        gap: 1.8rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-metric-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    html[lang="ja"] .jp-home-v2 .v2-capability-panel {
        grid-template-columns: 1fr;

        gap: 3rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-process-intro {
        position: static;
    }

    html[lang="ja"] .jp-home-v2 .v2-context-grid {
        grid-template-columns: 1fr;
    }

    html[lang="ja"] .jp-home-v2 .v2-context-item,
    html[lang="ja"] .jp-home-v2 .v2-context-item:first-child,
    html[lang="ja"] .jp-home-v2 .v2-context-item:last-child {
        min-height: auto;

        border-right: 0;
        border-bottom:
            1px solid var(--v2-line);

        padding:
            3rem 0;
    }

    html[lang="ja"] .jp-home-v2 .v2-about-image {
        max-width: 460px;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 700px) {

    html[lang="ja"] .jp-home-v2 {
        --v2-section-space: 5.2rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-hero {
        min-height: auto;

        padding-block:
            4.6rem 5.4rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-hero h1 {
        font-size:
            clamp(2.05rem, 8.8vw, 2.8rem);

        line-height: 1.38;

        letter-spacing: -0.025em;
    }

    html[lang="ja"] .jp-home-v2 .v2-hero-lead {
        font-size: 0.98rem;

        line-height: 1.95;
    }

    html[lang="ja"] .jp-home-v2 .v2-hero-actions {
        width: 100%;

        align-items: stretch;

        flex-direction: column;
    }

    html[lang="ja"] .jp-home-v2 .v2-hero-actions .button {
        width: 100%;
    }

    html[lang="ja"] .jp-home-v2 .v2-hero-actions .v2-link {
        margin:
            0.7rem 0 0;
    }

    html[lang="ja"] .jp-home-v2 .v2-hero-dynamic {
        align-items: flex-start;

        flex-direction: column;

        gap: 0.2rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-scroll-cue {
        display: none;
    }

    html[lang="ja"] .jp-home-v2 .v2-section-intro h2,
    html[lang="ja"] .jp-home-v2 .v2-section-heading h2,
    html[lang="ja"] .jp-home-v2 .v2-capability-panel-heading h3,
    html[lang="ja"] .jp-home-v2 .v2-process-intro h2,
    html[lang="ja"] .jp-home-v2 .v2-tech-intro h2,
    html[lang="ja"] .jp-home-v2 .v2-about-content h2,
    html[lang="ja"] .jp-home-v2 .v2-cta h2 {
        font-size:
            clamp(1.8rem, 7.3vw, 2.35rem);

        line-height: 1.48;
    }

    html[lang="ja"] .jp-home-v2 .v2-capability-tabs {
        grid-template-columns: 1fr;
    }

    html[lang="ja"] .jp-home-v2 .v2-capability-tab {
        min-height: 74px;

        border-right: 0;
        border-bottom:
            1px solid var(--v2-line);

        padding:
            1.1rem 0;
    }

    html[lang="ja"] .jp-home-v2 .v2-capability-tab strong {
        font-size: 1.35rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-metric-grid {
        grid-template-columns: 1fr;
    }

    html[lang="ja"] .jp-home-v2 .v2-metric,
    html[lang="ja"] .jp-home-v2 .v2-metric:first-child,
    html[lang="ja"] .jp-home-v2 .v2-metric:last-child {
        min-height: auto;

        border-right: 0;
        border-bottom:
            1px solid var(--v2-line);

        padding:
            2.3rem 0;
    }

    html[lang="ja"] .jp-home-v2 .v2-case-study {
        grid-template-columns: 1fr;

        gap: 2rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-case-study-meta>span {
        margin-bottom: 0.9rem;

        font-size: 4.3rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-case-study-content h3 {
        font-size:
            clamp(1.75rem, 7.2vw, 2.3rem);

        line-height: 1.48;
    }

    html[lang="ja"] .jp-home-v2 .v2-case-study-summary {
        font-size: 0.98rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-case-study-facts {
        grid-template-columns: 1fr;

        gap: 1rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-case-study-visual {
        grid-column: auto;

        margin-top: 0.7rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-process-list h3 {
        font-size:
            clamp(1.4rem, 5.8vw, 1.8rem);

        line-height: 1.55;
    }

    html[lang="ja"] .jp-home-v2 .v2-tech-matrix {
        grid-template-columns: 1fr;
    }

    html[lang="ja"] .jp-home-v2 .v2-about-lead {
        font-size: 1.1rem;
    }

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 420px) {

    html[lang="ja"] .jp-home-v2 .v2-hero h1 {
        font-size: 2rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-delivery-flow li {
        grid-template-columns:
            44px 1fr;

        gap: 0.8rem;
    }

    html[lang="ja"] .jp-home-v2 .v2-system-flow span {
        font-size: 0.52rem;
    }

}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html[lang="ja"] .jp-home-v2 .v2-capability-tab {
        transition: none;
    }

}