/* =====================================
   ONEPATH TSUSHIN
===================================== */

.ts-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
}

.ts-hero-media {
    position: absolute;
    inset: 0;
}

.ts-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.93) 35%,
            rgba(255,255,255,.45) 62%,
            rgba(255,255,255,.05) 100%
        );
}

.ts-hero-inner {
    position: relative;
    z-index: 2;

    min-height: 760px;

    display: flex;
    align-items: center;
}

.ts-hero-copy {
    width: min(680px, 100%);
}

.ts-hero-label,
.ts-en {
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .16em;
}

.ts-hero h1 {
    margin: 22px 0;

    font-size: clamp(
        48px,
        6vw,
        88px
    );

    line-height: 1.14;
    letter-spacing: .03em;
}

.ts-hero h1 em,
.ts-section h2 em {
    color: var(--primary);

    font-style: normal;
}

.ts-hero-copy > p {
    font-size: 18px;

    line-height: 2;

    color: #4c565d;
}

.ts-hero-actions {
    margin-top: 38px;

    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}


/* BUTTON */

.ts-btn {
    min-height: 58px;

    padding: 0 26px;

    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    font-weight: 800;

    transition:
        transform .2s,
        box-shadow .2s;
}

.ts-btn:hover {
    transform: translateY(-3px);
}

.ts-btn-primary {
    background: var(--primary);

    color: white;

    box-shadow:
        0 12px 30px rgba(25, 174, 181, .25);
}

.ts-btn-white {
    background: white;

    border: 1px solid var(--border);
}

.ts-btn-pink {
    background: var(--pink);

    color: white;
}


/* QUICK NAV */

.ts-quick {
    position: relative;

    z-index: 5;

    margin-top: -38px;
}

.ts-quick-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    background: white;

    border-radius: 24px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.09);

    overflow: hidden;
}

.ts-quick-grid > a {
    min-height: 110px;

    padding: 25px;

    display: flex;
    align-items: center;

    gap: 16px;

    border-right:
        1px solid var(--border);
}

.ts-quick-grid > a:last-child {
    border-right: 0;
}

.ts-quick-grid strong,
.ts-quick-grid small {
    display: block;
}

.ts-quick-grid strong {
    font-size: 17px;
}

.ts-quick-grid small {
    margin-top: 4px;

    color: var(--sub-text);
}

.ts-quick-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #e9f8f8;

    color: var(--primary-dark);

    display: grid;
    place-items: center;

    font-weight: 800;
}


/* SECTION */

.ts-section {
    padding: 120px 0;
}

.ts-section-head {
    display: grid;

    grid-template-columns:
        1.25fr .75fr;

    gap: 80px;

    align-items: end;

    margin-bottom: 55px;
}

.ts-section h2 {
    margin: 10px 0 0;

    font-size:
        clamp(34px, 4.6vw, 62px);

    line-height: 1.35;
}

.ts-section-head > p {
    margin: 0;

    color: var(--sub-text);

    line-height: 2;
}


/* MATCHING */

.ts-matching {
    background:
        linear-gradient(
            180deg,
            #fff,
            #f6fbfb
        );
}

.matching-preview {
    display: grid;

    grid-template-columns:
        1.15fr .85fr;

    gap: 24px;
}

.matching-question,
.matching-result-preview {
    border-radius: 30px;

    padding: 50px;

    background: white;

    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.matching-step,
.matching-result-preview > span {
    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .16em;
}

.matching-question h3,
.matching-result-preview h3 {
    margin: 16px 0 28px;

    font-size: 27px;

    line-height: 1.5;
}

.matching-options {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.matching-options span {
    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: #fafcfd;

    font-weight: 700;
}

.matching-result-preview {
    background:
        linear-gradient(
            145deg,
            #0d929c,
            #24b8bd
        );

    color: white;
}

.matching-result-preview > span {
    color: rgba(255,255,255,.75);
}

.matching-result-preview ul {
    padding-left: 20px;

    line-height: 2;
}

.matching-result-preview p {
    color: rgba(255,255,255,.85);
}

.text-link {
    display: inline-block;

    margin-top: 18px;

    font-weight: 800;
}


/* PEOPLE */

.ts-section-title-row {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 50px;
}

.ts-section-title-row > a {
    color: var(--primary-dark);

    font-weight: 700;
}

.people-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.person-card {
    position: relative;

    overflow: hidden;

    border-radius: 24px;

    border: 1px solid var(--border);

    background: white;

    transition:
        transform .25s,
        box-shadow .25s;
}

.person-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow);
}

.person-photo {
    height: 340px;
}

.placeholder-photo {
    background:
        linear-gradient(
            135deg,
            #dbeef0,
            #f3e7ed
        );

    display: grid;
    place-items: center;

    color: rgba(0,0,0,.25);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .1em;
}

.favorite-heart {
    position: absolute;

    top: 16px;
    right: 16px;

    z-index: 3;

    width: 46px;
    height: 46px;

    border: 0;

    border-radius: 50%;

    background: rgba(255,255,255,.94);

    font-size: 24px;

    cursor: pointer;
}

.favorite-heart.is-active {
    color: var(--pink);
}

.person-body {
    padding: 25px;
}

.person-meta {
    color: var(--sub-text);

    font-size: 13px;
}

.person-body h3 {
    margin: 3px 0 14px;

    font-size: 27px;
}

.person-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 17px;
}

.person-tags span {
    padding: 5px 10px;

    border-radius: 999px;

    background: #edf8f8;

    color: var(--primary-dark);

    font-size: 12px;
    font-weight: 700;
}

.person-body p {
    color: #555;

    line-height: 1.8;
}

.person-body a {
    font-weight: 800;

    color: var(--primary-dark);
}


/* REAL */

.ts-real {
    background: #f6f8f9;
}

.real-grid {
    display: grid;

    grid-template-columns:
        1.35fr .65fr;

    gap: 30px;
}

.real-main {
    display: grid;

    grid-template-columns:
        1.15fr .85fr;

    overflow: hidden;

    border-radius: 26px;

    background: white;

    box-shadow: var(--shadow);
}

.real-photo {
    min-height: 430px;
}

.real-content {
    padding: 42px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.real-content > span,
.real-category {
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .08em;
}

.real-content h3 {
    margin: 15px 0;

    font-size: 30px;

    line-height: 1.55;
}

.real-content p {
    color: var(--sub-text);
}

.real-side {
    display: grid;

    gap: 15px;
}

.real-side > a {
    padding: 28px;

    border-radius: 22px;

    background: white;

    border: 1px solid var(--border);
}

.real-side h3 {
    margin: 8px 0 0;

    font-size: 18px;

    line-height: 1.65;
}


/* SCHOOL */

.school-search-box {
    padding: 70px;

    border-radius: 32px;

    background:
        linear-gradient(
            135deg,
            #eafafa,
            #edf1fb
        );

    display: grid;

    grid-template-columns:
        .85fr 1.15fr;

    gap: 80px;

    align-items: center;
}

.school-search-copy p {
    color: var(--sub-text);

    line-height: 2;
}

.school-search-form {
    padding: 32px;

    border-radius: 24px;

    background: white;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}

.school-search-form label {
    display: grid;

    gap: 8px;

    font-size: 13px;
    font-weight: 700;
}

.school-search-form select {
    width: 100%;

    height: 52px;

    padding: 0 15px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: white;
}

.school-search-form button {
    grid-column: 1 / -1;

    height: 54px;

    border: 0;

    border-radius: 999px;

    background: var(--primary);

    color: white;

    font-weight: 800;

    cursor: pointer;
}


/* PARENTS */

.ts-parents {
    padding-top: 50px;
}

.parents-box {
    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 80px;

    padding: 65px;

    border:
        1px solid var(--border);

    border-radius: 30px;
}

.parents-box p {
    color: var(--sub-text);

    line-height: 2;
}

.parents-links {
    display: grid;

    gap: 10px;
}

.parents-links a {
    padding: 21px 24px;

    border-radius: 15px;

    background: #f7f9fa;

    display: flex;

    justify-content: space-between;

    font-weight: 700;
}


/* FINAL */

.ts-final {
    padding: 40px 0 100px;
}

.ts-final-inner {
    padding: 85px 40px;

    border-radius: 34px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #159fa8,
            #2766a7
        );

    color: white;
}

.ts-final-inner > span {
    font-size: 12px;

    font-weight: 800;

    letter-spacing: .14em;

    color: rgba(255,255,255,.7);
}

.ts-final-inner h2 {
    margin: 15px 0;

    font-size:
        clamp(36px, 5vw, 64px);

    line-height: 1.35;
}

.ts-final-inner p {
    color: rgba(255,255,255,.82);
}

.ts-final-actions {
    margin-top: 30px;

    display: flex;
    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}


/* =============================
 TABLET
============================= */

@media (max-width: 1000px) {

    .ts-quick-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .ts-quick-grid > a:nth-child(2) {
        border-right: 0;
    }

    .ts-section-head,
    .matching-preview,
    .real-grid,
    .school-search-box,
    .parents-box {
        grid-template-columns: 1fr;
    }

    .people-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =============================
 SMARTPHONE
============================= */

@media (max-width: 768px) {

    .ts-hero {
        min-height: 700px;
    }

    .ts-hero-inner {
        min-height: 700px;

        align-items: flex-end;

        padding-bottom: 50px;
    }

    .ts-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.08) 0%,
                rgba(255,255,255,.25) 30%,
                rgba(255,255,255,.91) 66%,
                rgba(255,255,255,1) 100%
            );
    }

    .ts-hero h1 {
        font-size: 48px;
    }

    .ts-hero-copy > p {
        font-size: 15px;
    }

    .ts-hero-actions {
        display: grid;
    }

    .ts-btn {
        width: 100%;
    }

    .ts-quick {
        margin-top: -20px;
    }

    .ts-quick-grid {
        grid-template-columns: 1fr 1fr;

        border-radius: 18px;
    }

    .ts-quick-grid > a {
        min-height: 100px;

        padding: 17px;

        border-bottom:
            1px solid var(--border);
    }

    .ts-quick-grid strong {
        font-size: 14px;
    }

    .ts-quick-grid small {
        font-size: 11px;
    }

    .ts-quick-icon {
        width: 38px;
        height: 38px;
    }

    .ts-section {
        padding: 80px 0;
    }

    .ts-section-head {
        gap: 18px;

        margin-bottom: 35px;
    }

    .ts-section h2 {
        font-size: 36px;
    }

    .matching-question,
    .matching-result-preview {
        padding: 28px;
    }

    .matching-options {
        grid-template-columns: 1fr;
    }

    .ts-section-title-row {
        align-items: flex-start;

        flex-direction: column;
    }

    .people-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .person-card {
        display: grid;

        grid-template-columns:
            42% 58%;
    }

    .person-photo {
        height: auto;
        min-height: 280px;
    }

    .person-body {
        padding: 20px;
    }

    .person-body h3 {
        font-size: 23px;
    }

    .person-body p {
        font-size: 13px;
    }

    .real-main {
        grid-template-columns: 1fr;
    }

    .real-photo {
        min-height: 250px;
    }

    .real-content {
        padding: 28px;
    }

    .real-content h3 {
        font-size: 23px;
    }

    .school-search-box {
        padding: 36px 22px;

        gap: 25px;
    }

    .school-search-form {
        padding: 20px;

        grid-template-columns: 1fr;
    }

    .school-search-form button {
        grid-column: auto;
    }

    .parents-box {
        padding: 36px 24px;

        gap: 25px;
    }

    .ts-final {
        padding: 20px 0 70px;
    }

    .ts-final-inner {
        padding: 60px 24px;
    }

}