@charset "UTF-8";

#job-description {
    padding: 10.4rem 0 14rem;

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

    .job-card {
        position: relative;
        padding: 16rem 12rem;
        background: #ffffff;
        border-radius: 1.6rem;
        box-sizing: border-box;

        @media screen and (max-width: 767px) {
            padding: 4rem 2rem;
            border-radius: 1.2rem;
        }

        .job-main-visual {
            position: absolute;
            top: -17.8rem;
            right: -9.55rem;
            width: 78rem;
            line-height: 0;

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

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

        .job-intro {
            position: relative;
            z-index: 1;
            padding-bottom: 13rem;
            border-bottom: 0.1rem solid #e0e0e0;

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

            .job-catch {
                font-style: normal;
                font-weight: 600;
                font-size: 4.2rem;
                line-height: 1.45;
                letter-spacing: 0.09em;
                color: #006acd;
                margin: 0 0 6rem;

                @media screen and (max-width: 767px) {
                    font-size: 2rem;
                    letter-spacing: 0.06em;
                    margin-bottom: 2rem;
                }
            }

            .job-intro-text {
                width: 67.3rem;
                max-width: 100%;
                font-style: normal;
                font-weight: 400;
                font-size: 1.8rem;
                line-height: 2.22;
                letter-spacing: 0.04em;
                color: #000000;
                margin: 0;

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

            .job-entry-btn {
                display: inline-flex;
                align-items: center;
                justify-content: space-between;
                width: 27.5rem;
                height: 7.7rem;
                margin-top: 4rem;
                padding: 0 3rem;
                background-color: #000000;
                border: 0.1rem solid transparent;
                border-radius: 4.5rem;
                box-sizing: border-box;
                text-decoration: none;
                transition:
                    background-color 0.35s ease,
                    transform 0.35s ease,
                    box-shadow 0.35s ease;

                @media screen and (max-width: 767px) {
                    width: 100%;
                    max-width: 28rem;
                    height: 5.6rem;
                    margin-top: 2.4rem;
                    padding: 0 2.4rem;
                }

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

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

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

                @media (hover: hover) and (pointer: fine) {
                    &:hover {
                        background-color: #222222;
                        box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
                        text-decoration: none;

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

        .job-block {
            padding-top: 12rem;

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

    .job-type-list {
        display: flex;
        flex-direction: column;
        gap: 4rem;

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

        .job-type-item {
            padding: 5.4rem 6rem 5.4rem 6.5rem;
            background: #f4f7f9;
            border-radius: 1.2rem;
            box-sizing: border-box;

            @media screen and (max-width: 767px) {
                padding: 2.4rem 2rem;
                border-radius: 1rem;
            }

            .job-type-title {
                font-style: normal;
                font-weight: 700;
                font-size: 2.8rem;
                line-height: 2.14;
                letter-spacing: 0.08em;
                color: #006acd;
                margin: 0 0 1rem;
                @media screen and (max-width: 767px) {
                    font-size: 1.7rem;
                    letter-spacing: 0.06em;
                    margin-bottom: 1.6rem;
                }
            }

            .job-type-text {
                font-style: normal;
                font-weight: 400;
                font-size: 1.8rem;
                line-height: 2;
                letter-spacing: 0.04em;
                color: #000000;
                margin: 0;
                @media screen and (max-width: 767px) {
                    font-size: 1.4rem;
                }
            }
        }
    }

    .job-tabs {
        display: flex;
        justify-content: center;
        gap: 3rem;
        margin-bottom: 6rem;

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

        .job-tab {
            width: 54rem;
            max-width: 100%;
            height: 7rem;
            padding: 0 2rem;
            background: #c9c9c9;
            border: none;
            border-radius: 3.5rem;
            box-sizing: border-box;
            font-style: normal;
            font-weight: 700;
            font-size: 2rem;
            line-height: 1;
            letter-spacing: 0.15em;
            color: #ffffff;
            white-space: nowrap;
            cursor: pointer;
            transition:
                background-color 0.3s ease,
                color 0.3s ease;

            @media screen and (max-width: 767px) {
                flex: 1;
                width: auto;
                min-width: 0;
                height: 4.4rem;
                padding: 0 0.8rem;
                font-size: 1.1rem;
                letter-spacing: 0.02em;
                border-radius: 2.2rem;
            }

            &.is-active {
                background: #0064d2;
                color: #ffffff;
            }

            @media (hover: hover) and (pointer: fine) {
                &:hover {
                    background: #0064d2;
                }
            }
        }
    }

    .job-panel {
        display: none;

        &.is-active {
            display: block;
        }
    }

    .job-table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;

        & th,
        & td {
            padding: 4rem;
            border-top: 0.1rem solid #e0e0e0;
            border-bottom: 0.1rem solid #e0e0e0;
            text-align: left;
            vertical-align: middle;
            font-style: normal;
            font-size: 1.8rem;
            line-height: 2;
            letter-spacing: 0.09em;
            color: #000000;
            @media screen and (max-width: 767px) {
                display: block;
                width: 100%;
                padding: 1.6rem;
                box-sizing: border-box;
                font-size: 1.3rem;
                padding: 3rem 2rem;
            }
        }

        & th {
            width: 34rem;
            background: #f5f7f8;
            font-weight: 500;

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

        & td {
            font-weight: 400;
            @media screen and (max-width: 767px) {
                border-top: none;
            }
        }

        .job-dots {
            margin: 0;
            padding: 0;
            list-style: none;

            & li {
                position: relative;
                padding-left: 2rem;
                margin-bottom: 0.4rem;

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

                &::before {
                    content: "";
                    position: absolute;
                    left: 0;
                    top: 1.2rem;
                    width: 0.8rem;
                    height: 0.8rem;
                    border-radius: 50%;
                    background: #0064d2;

                    @media screen and (max-width: 767px) {
                        top: 0.9rem;
                        width: 0.6rem;
                        height: 0.6rem;
                    }
                }

                /* ★のみ丸ではなく記号で表示 */
                &.is-star {
                    padding-left: 2rem;

                    &::before {
                        content: "★";
                        top: 0;
                        width: auto;
                        height: auto;
                        border-radius: 0;
                        background: none;
                        color: #000000;
                    }
                }
            }
        }
    }

    .flow-list {
        margin: 0;
        padding: 0;
        list-style: none;

        .flow-item {
            position: relative;
            display: flex;
            align-items: center;
            gap: 6.3rem;
            padding-bottom: 6rem;

            @media screen and (max-width: 767px) {
                gap: 2rem;
                padding-bottom: 3.2rem;
            }

            /* 詳細テキストがある場合はタイトルを上寄せ（アイコン中央に合わせる） */
            &:has(.flow-body) {
                align-items: flex-start;

                .flow-content {
                    padding-top: 3.2rem;

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

            &:last-child {
                padding-bottom: 0;

                /* 最後は縦バーを出さない */
                &::before {
                    display: none;
                }
            }

            /* アイコンの背面に通す縦バー */
            &::before {
                content: "";
                position: absolute;
                top: 9rem;
                left: 10.5rem;
                width: 1.9rem;
                height: 100%;
                background: #e9edf0;

                @media screen and (max-width: 767px) {
                    top: 5rem;
                    left: 5.2rem;
                    width: 0.5rem;
                }
            }

            .flow-step {
                position: relative;
                z-index: 1;
                flex: 0 0 auto;
                width: 19.9rem;
                line-height: 0;

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

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

            .flow-content {
                flex: 1;
                min-width: 0;
            }

            .flow-title {
                font-style: normal;
                font-weight: 700;
                font-size: 2.8rem;
                line-height: 1;
                letter-spacing: 0.09em;
                color: #1d1d1d;
                margin: 0;

                @media screen and (max-width: 767px) {
                    font-size: 1.7rem;
                    letter-spacing: 0.06em;
                }
            }

            .flow-body {
                margin-top: 5rem;
                min-width: 0;

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

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

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

                .flow-group {
                    margin-bottom: 5rem;

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

                    .flow-group-title {
                        font-style: normal;
                        font-weight: 700;
                        font-size: 2rem;
                        line-height: 1.6;
                        letter-spacing: 0.06em;
                        color: #006acd;
                        margin: 0 0 2.9rem;

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

    .faq-group {
        margin-bottom: 5rem;

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

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

        .faq-group-title {
            font-style: normal;
            font-weight: 600;
            font-size: 2.6rem;
            line-height: 1;
            letter-spacing: 0.09em;
            color: #006acd;
            margin: 0 0 3.6rem;
            @media screen and (max-width: 767px) {
                font-size: 1.4rem;
                letter-spacing: 0.06em;
                margin-bottom: 1.2rem;
            }
        }

        .faq-item {
            margin-bottom: 1.6rem;
            background: #ffffff;
            border: 0.1rem solid #b9d8f5;
            border-radius: 1rem;
            overflow: hidden;

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

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

            .faq-q {
                display: flex;
                align-items: center;
                gap: 1.6rem;
                width: 100%;
                padding: 3.2rem 3rem;
                background: none;
                border: none;
                text-align: left;
                cursor: pointer;
                box-sizing: border-box;

                @media screen and (max-width: 767px) {
                    gap: 1rem;
                    padding: 1.2rem 1.4rem;
                }

                .faq-q-icon {
                    flex: 0 0 auto;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 5.3rem;
                    height: 5.3rem;
                    border-radius: 50%;
                    background: #0064d2;
                    font-family: "Montserrat", sans-serif;
                    font-weight: 600;
                    font-size: 2.4rem;
                    line-height: 1;
                    color: #ffffff;
                    @media screen and (max-width: 767px) {
                        width: 3.2rem;
                        height: 3.2rem;
                        font-size: 1.4rem;
                    }
                }

                .faq-q-text {
                    flex: 1;
                    min-width: 0;
                    font-style: normal;
                    font-weight: 700;
                    font-size: 2.2rem;
                    line-height: 1.6;
                    letter-spacing: 0.11em;
                    color: #0064d2;

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

                .faq-q-mark {
                    position: relative;
                    flex: 0 0 auto;
                    width: 2.5rem;
                    height: 2.5rem;

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

                    &::before,
                    &::after {
                        content: "";
                        position: absolute;
                        top: 50%;
                        left: 0;
                        width: 100%;
                        height: 3.3px;
                        background: #9a9a9a;
                        transform: translateY(-50%);
                    }

                    /* 縦棒を消すと＋から−になる */
                    &::after {
                        transform: translateY(-50%) rotate(90deg);
                        transition: transform 0.3s ease;
                    }
                }

                &[aria-expanded="true"] {
                    .faq-q-mark::after {
                        transform: translateY(-50%) rotate(0deg);
                    }
                }
            }

            .faq-a {
                display: none;
                padding: 0 2.4rem 2.4rem 8.4rem;

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

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

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

    .job-link {
        margin: 10rem auto 0;

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