@charset "UTF-8";

.staff-hero {
    padding-top: 14rem;

    @media screen and (max-width: 767px) {
        padding-top: 7.2rem;
    }

    .staff-hero-layout {
        display: flex;
        align-items: flex-end;
        gap: 6.2rem;

        @media screen and (max-width: 767px) {
            flex-direction: column;
            align-items: stretch;
            gap: 2.4rem;
        }

        .staff-hero-visual {
            flex: 0 0 auto;
            width: 107.9rem;
            line-height: 0;

            @media screen and (max-width: 767px) {
                width: 100%;
                height: 26.671rem;
                border-radius: 1rem;
                overflow: hidden;
                & img {
                    width: 100%;
                    height: 118% !important;
                    object-position: center;
                    object-fit: cover;
                }
            }
            & img {
                display: block;
                width: 100%;
                height: auto;
            }
        }

        .staff-hero-body {
            flex: 1;
            min-width: 0;
            padding-bottom: 0.8rem;

            @media screen and (max-width: 767px) {
                padding-bottom: 0;
            }

            .staff-hero-catch {
                font-style: normal;
                font-weight: 700;
                font-size: 3.6rem;
                line-height: 1.9;
                letter-spacing: 0.2em;
                color: #000;
                margin: 0 0 4rem;
                @media screen and (max-width: 767px) {
                    font-size: 2.2rem;
                    line-height: 1.7;
                    margin-bottom: 1.6rem;
                    letter-spacing: 0.1em;
                }
            }

            .staff-hero-meta {
                font-style: normal;
                font-weight: 700;
                font-size: 1.4rem;
                line-height: 1.7;
                letter-spacing: 0.05em;
                color: #000;
                margin: 0 0 2rem;
                @media screen and (max-width: 767px) {
                    font-size: 1.3rem;
                }
            }

            .staff-hero-name {
                font-family: "Montserrat", sans-serif;
                font-style: normal;
                font-weight: 500;
                font-size: 3.1rem;
                line-height: 1.11;
                letter-spacing: -0.01em;
                color: #006acd;
                margin: 0;
                @media screen and (max-width: 767px) {
                    font-size: 2rem;
                }
            }
        }
    }
}

.edit-area {
    &.staff {
        padding: 6rem 0 12rem;

        @media screen and (max-width: 767px) {
            padding: 4rem 0 8rem;
        }

        .staff-layout {
            display: flex;
            align-items: flex-start;
            gap: 10rem;

            @media screen and (max-width: 767px) {
                flex-direction: column;
                gap: 4rem;
            }

            .staff-nav {
                position: sticky;
                top: 9.3rem;
                flex: 0 0 auto;
                width: 28rem;
                padding-top: 12rem;
                box-sizing: border-box;

                @media screen and (max-width: 767px) {
                    display: none;
                }

                & ul {
                    margin: 0;
                    padding: 0;
                    list-style: none;

                    & li {
                        margin-bottom: 3.2rem;

                        @media screen and (max-width: 767px) {
                            margin-bottom: 1.6rem;
                        }

                        &:last-child {
                            margin-bottom: 0;
                        }

                        & a {
                            display: block;
                            font-style: normal;
                            font-weight: 500;
                            font-size: 1.6rem;
                            line-height: 1.5;
                            letter-spacing: 0.04em;
                            color: #1d1d1d;
                            transition: color 0.25s ease;

                            @media screen and (max-width: 767px) {
                                font-size: 1.3rem;
                            }

                            &.is-active,
                            &:hover {
                                color: #006acd;
                            }

                            .staff-nav-num {
                                font-family: "Montserrat", sans-serif;
                                font-weight: 600;
                                margin-right: 1.2rem;
                            }
                        }
                    }
                }
            }

            .staff-main {
                flex: 1;
                min-width: 0;

                @media screen and (max-width: 767px) {
                    width: 100%;
                }

                .staff-career {
                    display: flex;
                    align-items: center;
                    gap: 4rem;
                    padding: 4rem 7.5rem;
                    margin-bottom: 10rem;
                    background: #ffffff;
                    border-radius: 1.2rem;
                    box-sizing: border-box;

                    @media screen and (max-width: 767px) {
                        flex-direction: column;
                        align-items: flex-start;
                        gap: 1.6rem;
                        padding: 2.4rem 2rem;
                        margin-bottom: 6rem;
                    }

                    .staff-career-label {
                        flex: 0 0 auto;
                        width: 18rem;
                        font-family: "Montserrat", sans-serif;
                        font-style: normal;
                        font-weight: 600;
                        font-size: 2rem;
                        line-height: 1.4;
                        letter-spacing: 0.02em;
                        color: #006acd;
                        margin: 0;

                        @media screen and (max-width: 767px) {
                            width: auto;
                            font-size: 1.8rem;
                        }
                    }

                    .staff-career-text {
                        flex: 1;
                        min-width: 0;

                        & p {
                            font-style: normal;
                            font-weight: 400;
                            font-size: 1.8rem;
                            line-height: 2;
                            letter-spacing: 0.04em;
                            color: #000000;
                            margin: 0 0 2em;

                            @media screen and (max-width: 767px) {
                                font-size: 1.4rem;
                            }

                            &:last-child {
                                margin-bottom: 0;
                            }
                        }
                    }
                }

                .staff-block {
                    margin-bottom: 10rem;

                    @media screen and (max-width: 767px) {
                        margin-bottom: 6rem;
                    }

                    .staff-block-label {
                        font-style: normal;
                        font-weight: 700;
                        font-size: 1.8rem;
                        line-height: 1.5;
                        letter-spacing: 0.04em;
                        color: #006acd;
                        margin: 0 0 1.2rem;

                        @media screen and (max-width: 767px) {
                            font-size: 1.4rem;
                        }

                        .staff-block-num {
                            font-family: "Montserrat", sans-serif;
                            font-weight: 600;
                            margin-right: 1.2rem;
                        }
                    }

                    .staff-block-title {
                        font-style: normal;
                        font-weight: 700;
                        font-size: 2.7rem;
                        line-height: 1.5;
                        letter-spacing: 0.06em;
                        color: #1d1d1d;
                        margin: 0 0 2.4rem;

                        @media screen and (max-width: 767px) {
                            font-size: 1.8rem;
                            margin-bottom: 1.6rem;
                        }
                    }

                    .staff-block-body {
                        & p {
                            font-style: normal;
                            font-weight: 400;
                            font-size: 1.6rem;
                            line-height: 1.9;
                            letter-spacing: 0.04em;
                            color: #000000;
                            margin: 0 0 2em;

                            @media screen and (max-width: 767px) {
                                font-size: 1.4rem;
                            }

                            &:last-child {
                                margin-bottom: 0;
                            }
                        }
                    }

                    .staff-block-photo {
                        margin-top: 4rem;
                        line-height: 0;

                        @media screen and (max-width: 767px) {
                            margin-top: 2.4rem;
                        }

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

#next-staff {
    position: relative;
    z-index: 1;
    padding: 10rem 0;
    background-color: #e1f2ff;
    overflow: hidden;

    @media screen and (max-width: 767px) {
        padding: 4rem 0;
    }

    &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(90deg, #e1f2ff 0%, #a2d5fd 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    @media (hover: hover) and (pointer: fine) {
        &:has(.next-staff-btn:hover, .next-staff-card:hover)::before {
            opacity: 1;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        &::before {
            transition: none;
        }
    }

    & > * {
        position: relative;
        z-index: 1;
    }

    .next-staff-layout {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "text card"
            "btn  card";
        align-items: center;
        column-gap: 4rem;
        row-gap: 1.6rem;

        @media screen and (max-width: 767px) {
            grid-template-columns: 1fr;
            grid-template-areas:
                "text"
                "card"
                "btn";
            row-gap: 0;
        }

        .next-staff-text {
            grid-area: text;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1.6rem;
            flex-shrink: 0;

            @media screen and (max-width: 767px) {
                gap: 1.2rem;
                margin-bottom: 3.5rem;
            }

            .next-staff-en {
                font-family: "Montserrat", sans-serif;
                font-style: normal;
                font-weight: 600;
                font-size: 1.6rem;
                line-height: 1;
                letter-spacing: 0.02em;
                color: #006acd;

                @media screen and (max-width: 767px) {
                    font-size: 1.2rem;
                    line-height: 1.2;
                }
            }

            .next-staff-title {
                font-style: normal;
                font-weight: 700;
                font-size: 3.2rem;
                line-height: 1.4;
                letter-spacing: 0.08em;
                color: #1d1d1d;
                margin: 0;

                @media screen and (max-width: 767px) {
                    font-size: 2.9rem;
                    line-height: 1.24;
                    letter-spacing: 0.09em;
                }
            }
        }

        .staff-btn-wrapper {
            grid-area: btn;

            @media screen and (max-width: 767px) {
                width: 100%;
                max-width: 29.5rem;
                margin: 0 auto;
            }
        }

        .next-staff-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 24.6rem;
            height: 6rem;
            padding: 0 3rem;
            box-sizing: border-box;
            background-color: #ffffff;
            border: 0.1rem solid #006acd;
            border-radius: 3rem;
            transition:
                transform 0.35s ease,
                box-shadow 0.35s ease;

            @media screen and (max-width: 767px) {
                width: 100%;
                max-width: 16.4rem;
                height: 5.6rem;
                padding: 0 2rem;
            }

            & span {
                font-style: normal;
                font-weight: 600;
                font-size: 1.6rem;
                line-height: 1;
                letter-spacing: 0.03em;
                color: #006acd;

                @media screen and (max-width: 767px) {
                    font-size: 1.4rem;
                }
            }

            & img {
                display: block;
                width: 1.3rem;
                height: auto;
                transition: transform 0.35s ease;
            }

            @media (hover: hover) and (pointer: fine) {
                &:hover {
                    transform: translateY(-0.2rem);
                    box-shadow: 0 0.8rem 2rem rgba(0, 106, 205, 0.28);

                    & img {
                        transform: translateX(0.4rem);
                    }
                }
            }
        }

        .next-staff-card {
            grid-area: card;
            flex: 0 0 auto;
            width: 34.6rem;
            color: inherit;

            @media screen and (max-width: 767px) {
                width: 100%;
                max-width: 29.5rem;
                margin: 0 auto 2.4rem;
            }

            @media (hover: hover) and (pointer: fine) {
                &:hover {
                    .next-staff-card-media img {
                        transform: scale(1.03);
                    }
                }
            }

            .next-staff-card-media {
                width: 34.6rem;
                height: 38.2rem;
                margin-bottom: 2rem;
                overflow: hidden;
                border-radius: 1.2rem;
                line-height: 0;

                @media screen and (max-width: 767px) {
                    width: 100%;
                    height: auto;
                    aspect-ratio: 346 / 382;
                    margin-bottom: 1.6rem;
                }

                & img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: transform 0.4s ease;
                }
            }

            .next-staff-card-catch {
                font-style: normal;
                font-weight: 700;
                font-size: 1.8rem;
                line-height: 1.6;
                letter-spacing: 0.04em;
                color: #1d1d1d;
                margin: 0 0 1.2rem;

                @media screen and (max-width: 767px) {
                    margin-bottom: 1rem;
                }
            }

            .next-staff-card-meta {
                font-style: normal;
                font-weight: 500;
                font-size: 1.4rem;
                line-height: 1.5;
                letter-spacing: 0.04em;
                color: #1d1d1d;
                margin: 0 0 0.8rem;

                @media screen and (max-width: 767px) {
                    font-size: 1.3rem;
                }
            }

            .next-staff-card-name {
                font-family: "Montserrat", sans-serif;
                font-style: normal;
                font-weight: 600;
                font-size: 2rem;
                line-height: 1.4;
                letter-spacing: 0.02em;
                color: #006acd;
                margin: 0;

                @media screen and (max-width: 767px) {
                    font-size: 1.6rem;
                }
            }
        }
    }
}

/* edit css */
/* h2 */
.staff-area {
    & h2 {
        position: relative;
        margin-bottom: 2rem;
        padding-left: 1.7rem;
        font-weight: bold;
        font-size: 2.2rem;
        letter-spacing: 0.1em;
        line-height: 1.5;
        color: #000;

        @media screen and (max-width: 767px) {
            margin-bottom: 1rem;
            padding-left: 1.2rem;
            font-size: 1.7rem;
            letter-spacing: 0.05em;
        }

        &:after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            display: block;
            width: 0.4rem;
            height: 100%;
            background: #d20000;
        }

        @media screen and (max-width: 767px) {
            &:after {
                width: 0.3rem;
            }
        }
    }

    /* h3 */
    & h3 {
        position: relative;
        margin-bottom: 2rem;
        padding: 0 0 1rem;
        font-size: 2rem;
        letter-spacing: 0.1em;
        line-height: 180%;

        @media screen and (max-width: 767px) {
            margin-bottom: 1rem;
            padding: 0 0 0.5rem;
            font-size: 1.6rem;
            line-height: 160%;
        }

        &:after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            display: block;
            width: 4rem;
            height: 0.3rem;
            background: #d20000;
        }
    }

    /* h4 */
    & h4 {
        margin-bottom: 1rem;
        font-size: 1.8rem;
        letter-spacing: 0.1em;
        line-height: 160%;

        @media screen and (max-width: 767px) {
            margin-bottom: 0.5rem;
        }
    }

    /* h5 */
    & h5 {
        position: relative;
        margin-bottom: 1rem;
        padding-left: 1.8rem;
        font-weight: bold;

        @media screen and (max-width: 767px) {
            margin-bottom: 0.5rem;
        }
    }

    & h5:after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 1.4rem;
        height: 1.4rem;
        background: #d20000;
    }

    /* h6 */
    & h6 {
        margin-bottom: 1rem;
        font-weight: bold;

        @media screen and (max-width: 767px) {
            margin-bottom: 0.5rem;
        }
    }

    /* p */
    & p {
        margin-bottom: 3rem;
        font-weight: bold;
        letter-spacing: 0.05em;
        line-height: 2;

        @media screen and (max-width: 767px) {
            margin-bottom: 1.5rem;
            line-height: 160%;
        }
    }

    & a {
        color: #d20000;

        &[target="_blank"] {
            position: relative;
            padding-right: 3rem;

            &:after,
            &:before {
                content: "";
                position: absolute;
                right: 0.8rem;
                bottom: 0.8rem;
                display: block;
                width: 1.4rem;
                height: 1rem;
                border: 1px solid #d20000;
                background: #fff;
                box-sizing: border-box;
            }

            &:before {
                right: 0.5rem;
                bottom: 1.2rem;
            }

            @media screen and (max-width: 767px) {
                &:after,
                &:before {
                    bottom: 0.4rem;
                }

                &:before {
                    bottom: 0.8rem;
                }
            }
        }
    }

    /* ul */
    & ul {
        margin-bottom: 2rem;

        & li {
            position: relative;
            padding-left: 1rem;
            font-weight: bold;
            line-height: 2;

            &:after {
                content: "";
                position: absolute;
                left: 0;
                top: 1.3rem;
                display: block;
                width: 0.6rem;
                height: 0.6rem;
                border-radius: 0.3rem;
                background: #d20000;
            }
        }
    }

    /* ol */
    & ol {
        margin-bottom: 2rem;
        counter-reset: number 0;

        & li {
            position: relative;
            padding-left: 2rem;
            line-height: 2;
            font-weight: bold;
            counter-increment: number 1;

            &:after {
                content: counter(number) ".";
                position: absolute;
                left: 0;
                top: 0.8rem;
                display: block;
                color: #d20000;
                font-size: 1.4rem;
                line-height: 100%;
            }
        }
    }

    /* img float */
    & img.alignleft {
        float: left;
        margin: 0.8rem 1rem 1rem 0;

        @media screen and (max-width: 767px) {
            float: none;
            display: block;
            margin: 0 auto 1rem;
        }
    }

    & img.aligncenter {
        display: block;
        margin: 0 auto 2rem;
    }

    & img.alignright {
        float: right;
        margin: 0.8rem 0 1rem 1rem;
    }

    @media screen and (max-width: 767px) {
        & img.alignright {
            float: none;
            display: block;
            margin: 0 auto 1rem;
        }
    }

    & img {
        vertical-align: top;
        max-width: 100%;
        height: auto;
    }

    /* blockquote */
    & blockquote {
        position: relative;
        margin: 0 0 3rem 3rem;
        padding-left: 6rem;
        font-size: 1.4rem;
        line-height: 180%;

        @media screen and (max-width: 767px) {
            margin: 0 0 1.5rem 0;
            padding-left: 4rem;
            line-height: 160%;
        }

        &:after,
        &:before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            display: block;
        }

        &:after {
            top: 0.5rem;
            width: 0.2rem;
            height: 5rem;
            background: #ccc;
        }

        &:before {
            content: "“";
            position: absolute;
            left: 1rem;
            top: -0.5rem;
            color: #ccc;
            font-size: 6rem;
            line-height: 100%;
        }
    }
}
