:root {
    --new_recruit_green1: rgb(0, 151, 75);
    --new_recruit_green2: #cfc;
    --new_recruit_red1: rgb(200, 0, 50);
    --new_recruit_red2: #fcc;
}

#page_new_recruit {
    font-family: "Noto Serif JP", serif;
    font-size: 16px;
    & .header {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: 1fr 32px;
        grid-template-rows: auto auto;
        grid-template-areas:
            "a b"
            "c c";
        gap: 0 20px;
        justify-content: center;
        align-items: center;
        padding: 20px 20px 0 20px;
        background-color: #fff;
        font-family: 'Noto Sans JP', sans-serif;
        z-index: 999999998;
        & > a {
            grid-area: a;
            display: block;
            & img {
                display: block;
                width: 100%;
            }
        }
        & input {
            grid-area: b;
            width: 32px;
            height: 32px;
            background-image: url("page-new_recruit_menu_open.svg");
            background-size: cover;
            transition: background-image 0.2s ease-out;
            & ~ nav {
                grid-area: c;
                padding-top: 20px;
                & ul {
                    position: absolute;
                    left: 0;
                    right: 0;
                    background-color: rgba(255, 255, 255, 0.9);
                    padding: 0 50px;
                    text-align: center;
                    transform: scaleY(0);
                    transform-origin: top;
                    transition: transform 0.4s ease-out;
                    & li {
                        border-bottom: solid 1px #bbb;
                        &:last-of-type {
                            border-bottom: none;
                        }
                        & a {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            padding: 1em;
                            &::after {
                                content: "";
                                display: block;
                                width: 16px;
                                height: 16px;
                                background-image: url("page-new_recruit_arrow.svg");
                                background-size: contain;
                            }
                        }
                    }
                    & li:last-of-type a::after{
                        background-image: url("page-new_recruit_new_window.svg");
                    }
                }
            }
            &:checked {
                background-image: url("page-new_recruit_menu_close.svg");
                & ~ nav ul {
                    transform: scaleY(1);
                }
            }
        }
    }
    & .top1 {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        & img {
            display: block;
            width: 100%;
        }
        & h1 {
            position: absolute;
            top: 0;
            left: 0;
            padding: 10px;
            color: rgba(255, 255, 255, 0.5);
            font-family: 'Noto Sans JP', sans-serif;
            font-weight: bold;
            line-height: 100%;
        }
        & p {
            position: absolute;
            bottom: -16px;
            padding: 8px 16px;
            background-color: var(--new_recruit_green1);
            color: #fff;
            font-size: 16px;
            font-weight: bold;
            line-height: 100%;
            letter-spacing: 0.2em;
        }
    }
    & .top2 {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 40px 0;
        & h2 {
            padding-bottom: 20px;
            font-family: 'Noto Sans JP', sans-serif;
            font-weight: bold;
            letter-spacing: 0.2em;
        }
        & p {
            font-size: 14px;
            line-height: 22px;
            writing-mode: vertical-rl;
        }
        & div {
            align-self: stretch;
            position: relative;
            & img {
                display: block;
                width: 100%;
                height: 100px;
                object-fit: cover;
            }
            &::after {
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                content: "";
                display: block;
                background: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
            }
        }
    }
    & #page_new_recruit_movie {
        margin: 40px 0;
        padding: 0 20px;
        & h2 {
            padding-bottom: 20px;
            text-align: center;
            & span {
                display: block;
                font-family: 'Noto Sans JP', sans-serif;
                font-weight: bold;
                letter-spacing: 0.2em;
            }
        }
        & video {
            width: 100%;
            border: solid 1px #ccc;
        }
    }
    & #page_new_recruit_interview {
        margin: 40px 0;
        & h2 {
            padding-bottom: 20px;
            text-align: center;
            & span {
                display: block;
                font-family: 'Noto Sans JP', sans-serif;
                font-weight: bold;
                letter-spacing: 0.2em;
            }
        }
        & > div:nth-of-type(odd) {
            & div:first-of-type {
                display: flex;
                justify-content: center;
                padding: 40px 40px 80px 40px;
                background: linear-gradient(90deg, var(--new_recruit_red2) 0%, var(--new_recruit_red2) 70%, transparent 70%, transparent 100%);
                & img {
                    width: 200px;
                    height: 200px;
                    object-fit: cover;
                }
            }
            & div:last-of-type {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 0 40px;
                transform: translateY(-60px);
                & h3 {
                    width: fit-content;
                    margin-bottom: 40px;
                    padding: 0.5em 1em;
                    background-color: var(--new_recruit_red1);
                    color: #fff;
                    font-family: 'Noto Sans JP', sans-serif;
                    font-weight: bold;
                }
                & p {
                    text-align: justify;
                }
            }
        }
        & > div:nth-of-type(even) {
            & div:first-of-type {
                display: flex;
                justify-content: center;
                padding: 40px 40px 80px 40px;
                background: linear-gradient(-90deg, var(--new_recruit_green2) 0%, var(--new_recruit_green2) 70%, transparent 70%, transparent 100%);
                & img {
                    width: 200px;
                    height: 200px;
                    object-fit: cover;
                }
            }
            & div:last-of-type {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 0 40px;
                transform: translateY(-60px);
                & h3 {
                    width: fit-content;
                    margin-bottom: 40px;
                    padding: 0.5em 1em;
                    background-color: var(--new_recruit_green1);
                    color: #fff;
                    font-family: 'Noto Sans JP', sans-serif;
                    font-weight: bold;
                }
            }
        }
    }
    & #page_new_recruit_style {
        margin: 100px 0;
        & h2 {
            padding-bottom: 20px;
            text-align: center;
            & span {
                display: block;
                font-family: 'Noto Sans JP', sans-serif;
                font-size: 32px;
                font-weight: bold;
                letter-spacing: 0.2em;
            }
        }
        & div {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px;
            &:nth-of-type(odd) {
                background-color: var(--new_recruit_red2);
                & h3 {
                    background-color: var(--new_recruit_red1);
                }
                & h4 {
                    color: var(--new_recruit_red1);
                }
    
            }
            &:nth-of-type(even) {
                background-color: var(--new_recruit_green2);
                & h3 {
                    background-color: var(--new_recruit_green1);
                }
                & h4 {
                    color: var(--new_recruit_green1);
                }
            }
            & h3 {
                width: fit-content;
                margin-bottom: 40px;
                padding: 0.5em 1em;
                color: #fff;
                font-family: 'Noto Sans JP', sans-serif;
                font-weight: bold;
            }
            & ol {
                display: flex;
                flex-direction: column;
                gap: 40px;
                & li {
                    background-color: #fff;
                    & h4 {
                        padding: 0.5em 1em 0 1em;
                        font-family: 'Noto Sans JP', sans-serif;
                        font-weight: bold;
                    }
                    & p {
                        padding: 0 1em 0.5em 2.2em;
                        text-align: justify;
                    }
                    & img {
                        display: block;
                        width: 100%;
                        height: 300px;
                        object-fit: cover;
                    }
                }
            }
        }
    }
    & #page_new_recruit_overview {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 100px 0;
        padding: 0 10px;
        & h2 {
            padding-bottom: 20px;
            text-align: center;
            & span {
                display: block;
                font-family: 'Noto Sans JP', sans-serif;
                font-size: 32px;
                font-weight: bold;
                letter-spacing: 0.2em;
            }
        }
        & th {
            padding: 10px;
            text-align: right;
            vertical-align: top;
            white-space: nowrap;
        }
        & td {
            padding: 10px;
        }
    }
    & #page_new_recruit_faq {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 100px 0;
        & h2 {
            padding-bottom: 20px;
            text-align: center;
            & span {
                display: block;
                font-family: 'Noto Sans JP', sans-serif;
                font-size: 32px;
                font-weight: bold;
                letter-spacing: 0.2em;
            }
        }
        & details {
            width: 300px;
            padding: 20px;
            border-top: solid 1px #ccc;
            &[open] {
                & summary::after {
                    content: "-";
                }
            }
            & summary {
                display: flex;
                justify-content: space-between;
                font-family: 'Noto Sans JP', sans-serif;
                &::after {
                    content: "+";
                    display: block;
                    margin-left: 1em;
                }
                & > span {
                    display: flex;
                    gap: 1em;
                    text-align: justify;
                    & span {
                        display: block;
                        color: var(--new_recruit_green1);
                        font-weight: bold;
                    }
                }
            }
            & p {
                display: flex;
                gap: 1em;
                margin-top: 20px;
                text-align: justify;
                & span {
                    display: block;
                    color: var(--new_recruit_red1);
                    font-family: 'Noto Sans JP', sans-serif;
                    font-weight: bold;
                }
            }
            &:last-of-type {
                border-bottom: solid 1px #ccc;
            }
        }
    }
    & .info {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 40px 0;
        & h2 {
            text-align: center;
            & span {
                display: block;
                font-family: 'Noto Sans JP', sans-serif;
                font-size: 32px;
                font-weight: bold;
                letter-spacing: 0.2em;
            }
        }
        & img {
            width: 100%;
            object-fit: cover;
            margin: 20px 0;
            padding: 0 20px;
        }
        & p {
            padding: 20px;
        }
    }
    & .footer {
        padding-top: 20px;
        border-top: solid 1px #ccc;
        font-family: 'Noto Sans JP', sans-serif;
        & address {
            display: flex;
            flex-direction: column;
            align-items: center;
            & div:first-of-type {
                display: flex;
                flex-direction: column;
                justify-content: center;
                & a:first-of-type {
                    display: block;
                    width: 200px;
                    & img {
                        display: block;
                        width: 100%;
                    }
                }
                & a:last-of-type {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-size: 24px;
                    &::before {
                        content: "";
                        display: block;
                        width: 1em;
                        height: 1em;
                        background-image: url("freedial.gif");
                        background-size: contain;
                        background-repeat: no-repeat;
                        background-position: center;
                    }
                }
            }
            & div:last-of-type {
                display: flex;
                justify-content: center;
                gap: 10px;
                font-size: 12px;
            }
            & > p {
                font-size: 12px;
                text-align: center;
            }
        }
        & small {
            display: block;
            padding-top: 10px;
            font-size: 10px;
            text-align: center;
        }
    }
}