body.admin-bar {
    padding-top: 32px;
}

html:has(body.open) {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}


#page-recruit,
#recruit-footer,
#recruit-header {
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
}

input.wpcf7-form-control[type="text"],
input.wpcf7-form-control[type="email"],
input.wpcf7-form-control[type="tel"],
textarea {
    margin: 1rem 0 2rem 0;
}

.font-sans {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.actor-regular {
    font-family: "Actor", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#recruit-footer {
    .cpright {
        background-color: #040404;
        color: #fff;
        display: flex;
        justify-content: center;
        padding: 16px 0;
    }

    .address {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 4rem;
    }
}

/* ======= Layout ====== */

.wide-size {
    max-width: 1100px;
    margin: auto;

    @media screen and (max-width:1340px) {
        padding-left: 3.75rem;
        padding-right: 3.75rem;
    }

    @media screen and (max-width:900px) {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.content-size {
    max-width: 970px;
    margin: auto;

    @media screen and (max-width:1340px) {
        padding-left: 3.75rem;
        padding-right: 3.75rem;
    }

    @media screen and (max-width:900px) {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.sp-break {
    display: none;
}

/* ======= Atomic ====== */

.btn {
    display: block;

    a {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 1.5rem;
        background: #0E6EB8;
        background: linear-gradient(90deg, rgba(14, 110, 184, 1) 0%, rgba(6, 49, 82, 1) 100%);
        color: #fff;
        font-weight: bold;
        transition: all 0.25s ease;

        &:hover {
            opacity: 0.8;
        }
    }

}

/* ======= Navigation ====== */
#recruit-header {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 1rem;

        img {
            width: 20rem;
            max-width: 300px;
        }

        .items-wrapper {
            display: flex;
            gap: 2rem;

            .items {
                display: flex;
                align-items: center;
                gap: 24px;
                font-size: 16px;

                a {
                    transition: all 0.25s ease;

                    &:hover {
                        color: #0E6EB8;
                    }
                }
            }
        }
    }
}


/* =========== */

.section-1 {
    background-color: #2A3039;
    color: #fff;
    padding-top: 5rem;
    padding-bottom: 5rem;
    font-size: 16px;

    .inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .title {
        grid-area: 1 / 1 / span 1 / span 2;

        h2 {
            font-size: clamp(3rem, 2.0672rem + 2.9851vw, 3.5rem);
            font-family: 'Times New Roman', Times, serif;
            line-height: 1;
        }

        span {
            font-size: 20px;
        }
    }

    .list-wrapper {
        margin-top: 3rem;

        .item {
            margin-bottom: 2rem;

            h3 {
                display: flex;
                gap: 0.5rem;
                align-items: center;
                margin-bottom: 8px;

                &::before {
                    content: "";
                    width: 20px;
                    aspect-ratio: 1/1;
                    background-image: url('./icon-1.svg');
                    background-repeat: no-repeat;
                    background-size: contain;
                }
            }

            p {
                padding-left: calc(20px + 0.5rem);
                line-height: 1.4;
            }
        }
    }

    .img {
        place-self: center;

        img {
            width: 100%;
        }
    }
}

#slider1 {
    position: relative;

    .splide__slide img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .splide__slide {
        .catch {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            color: #fff;
            height: 50%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: #21547B;
            background: linear-gradient(180deg, rgba(33, 84, 123, 0) 0%, rgba(0, 0, 0, 1) 100%);
            font-family: "Noto Sans JP", sans-serif;

            .small {
                font-size: 80%;
                padding-left: 0.15em;
            }

            .small-tight {
                padding-left: 0em;
            }

            .catch1 {
                font-size: clamp(1.25rem, -2.4813rem + 11.9403vw, 4.25rem);
                font-weight: bold;
                letter-spacing: 0.04em;
            }

            .catch2 {
                font-size: clamp(1.125rem, -0.5075rem + 5.2239vw, 2rem);
                font-weight: bold;
            }
        }
    }
}


.section-2 {
    padding-top: 5rem;
    padding-bottom: 5rem;
    font-size: 16px;
    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 30%, rgba(232, 245, 255, 1) 100%);

    .title {
        font-size: 28px;
        text-align: center;
        color: #0E6EB8;
        font-weight: bold;
        margin-bottom: 4rem;
    }

    .points {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;

        .item {
            display: grid;
            aspect-ratio: 35/30;

            .content {
                grid-area: 1 /-1;
                padding: 2rem;
            }

            &::before {
                content: "";
                display: block;
                width: 100%;
                height: 100%;
                background-image: url('./line.svg');
                background-repeat: no-repeat;
                background-size: contain;
                grid-area: 1 / -1;
            }

            &.noline::before {
                background-image: url('./img/Rectangle32.webp');
                background-position: bottom;
            }

            h3 {
                font-size: 22px;
                margin-bottom: 32px;

                span {
                    font-size: 42px;
                }
            }
        }
    }
}


.section-3 {
    background-color: #21547B;
    padding-top: 5rem;
    padding-bottom: 5rem;
    font-size: 16px;
    color: #fff;

    .title {
        h2 {
            font-size: clamp(3rem, 2.0672rem + 2.9851vw, 3.5rem);
            font-family: 'Times New Roman', Times, serif;
            line-height: 1;
        }

        span {
            font-size: 20px;
        }
    }

    .feature-section {
        .actor-regular {
            font-size: 22px;
            display: flex;
            align-items: baseline;
            gap: 4px;
            padding-left: 7rem;

            span {
                font-size: 42px;
            }
        }

        margin-top: 3rem;

        .outer {
            border-top: 0.6px solid #ffffffbc;
            border-bottom: 0.6px solid #ffffffbc;
            padding-left: 4rem;
        }

        .content {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            border-left: 0.6px solid #ffffffbc;
            padding: 3rem;
            padding-right: 0;
            min-height: 370px;
        }

        .splide__arrow {
            position: relative;
        }

        .splide__arrows {
            display: flex;
            gap: 3rem;
            padding-left: 5rem;
            bottom: -14%;
            position: absolute;
            right: 5%;
        }
    }
}



.section-4 {
    padding-top: 5rem;
    padding-bottom: 5rem;
    font-size: 16px;
    margin-bottom: 3rem;

    .title {
        border-bottom: 1px solid #000000;
        border-left: 1px solid #000000;
        padding-left: 16px;
        padding-bottom: 16px;
        margin-bottom: 30px;

        h2 {
            font-size: 1.75rem;
            font-family: 'Times New Roman', Times, serif;
            line-height: 1.3;
        }

        span {
            font-size: 16px;
        }
    }

    .content {
        display: flex;
        flex-direction: column;
        gap: 3rem;

        .item {
            h3 {
                font-weight: bold;
                margin-bottom: 1rem;
            }

            p {
                background-color: #EDF7FF;
                padding: 1rem;
                line-height: 1.6;
            }
        }
    }
}



.section-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
    font-size: 16px;

    .title {
        border-bottom: 1px solid #000000;
        border-left: 1px solid #000000;
        padding-left: 16px;
        padding-bottom: 16px;
        margin-bottom: 30px;

        h2 {
            font-size: 1.75rem;
            font-family: 'Times New Roman', Times, serif;
            line-height: 1.3;
        }

        span {
            font-size: 16px;
        }
    }

    .content {
        .item {
            display: grid;
            grid-template-columns: 0.25fr 1fr;
            gap: 8px;
            margin-bottom: 8px;

            h4 {
                padding: 12px;
                font-weight: normal;
                text-align: center;
            }

            p {
                padding: 12px;
            }

            &:nth-child(odd) {

                h4,
                p {
                    background-color: #E7E8EA;
                }
            }

            &:nth-child(even) {

                h4,
                p {
                    background-color: #F8F8F9;
                }
            }
        }
    }

    .job-list-title{
        margin-top: 4rem;
        font-family: "Noto Sans JP", sans-serif;
        padding-bottom: 1rem;
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 1rem;
        &::before{
            content: "";
            display: block;
            width: 4px;
            height: 20px;
            background: #0E6EB8;
        background: linear-gradient(90deg, rgba(14, 110, 184, 1) 0%, rgba(6, 49, 82, 1) 100%);
        }
    }
    .joblist {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
        .job {
            a {
                display: flex;
                gap: 1rem;
                border: 1px solid #ddd;
                padding: 14px;
                transition: all 0.25s ease;
                h1{
                    font-family: "Noto Sans JP", sans-serif;
                    font-size: 14px;
                }
                img{
                    aspect-ratio: 1/1;
                    object-fit: cover;
                }
                &:hover{
                    border-color: #0C6DB7;;
                }
                .body{
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    .updatetime{
                        font-size: 12px;
                        color: #aaa;
                        align-self: end;
                    }
                }
            }

        }
        & + .btn{
            width:fit-content;
            margin: 2rem auto;
            a{
                padding: 1rem 3rem;
            }
        }
    }
}

.gray-wrapper {
    background-color: #FAFAFA;
}


.section-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
    font-size: 16px;

    .title {
        border-bottom: 1px solid #000000;
        border-left: 1px solid #000000;
        padding-left: 16px;
        padding-bottom: 16px;
        margin-bottom: 30px;

        h2 {
            font-size: 1.75rem;
            font-family: 'Times New Roman', Times, serif;
            line-height: 1.3;
        }

        span {
            font-size: 16px;
        }
    }

    .content {
        .wpcf7 {
            background-color: transparent;
            border: none;

            p {
                margin-bottom: 0;
            }

            input[type="text"],
            input[type="tel"],
            input[type="email"],
            textarea {
                height: 100%;
                border-radius: 7px;
                margin: 0;
            }
        }

        .item {
            display: grid;
            grid-template-columns: 0.25fr 1fr;
            gap: 8px;
            margin-bottom: 8px;

            h4 {
                padding: 12px;
                font-weight: normal;
                text-align: center;
            }

            p {
                padding: 12px;
            }

            &:nth-child(odd) {

                h4,
                p {
                    background-color: #E7E8EA;
                }
            }

            &:nth-child(even) {

                h4,
                p {
                    background-color: #F8F8F9;
                }
            }

            &:has(input.wpcf7-validates-as-required) {
                p {
                    &::after {
                        content: "*";
                        color: red;
                    }
                }
            }

            &:has(.wpcf7-not-valid-tip) {
                p {
                    background-color: #eca8a8;
                }
            }

            .wpcf7-not-valid-tip {
                visibility: hidden;
                position: absolute;
            }
        }

        div:has(.wpcf7-acceptance) {
            padding-top: 1rem;

            a {
                text-decoration: underline;
            }
        }

        input[type="submit"] {
            background: #0E6EB8;
            background: linear-gradient(90deg, rgba(14, 110, 184, 1) 0%, rgba(6, 49, 82, 1) 100%);
            color: #fff;
            font-weight: bold;
            transition: all 0.25s ease;

            &:hover {
                opacity: 0.8;
            }
        }
    }
}


.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 5rem;

    .item {
        .content {
            display: grid;
            overflow: hidden;

            &::after {
                content: "";
                display: block;
                background-color: hsla(0, 0%, 0%, 0.3);
                width: 100%;
                height: 100%;
                grid-area: 1/-1;
                z-index: -1;
            }

            div {
                grid-area: 1/-1;
                display: flex;
                justify-content: center;
                flex-direction: column;
                align-items: center;
                color: #fff;
            }

            img {
                grid-area: 1/-1;
                width: 100%;
                z-index: -2;
                transition: all 0.25s ease;
            }

            &:hover {
                img {
                    transform: scale(1.06);
                }
            }
        }
    }
}



/* ======= jobs ======== */

.jobs-header {
    background-image: url('../assets/img/career.webp');
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: grid;
    padding: 4rem;
    background-position: center;

    &::after {
        content: "";
        background-color: rgba(33, 47, 67, 0.588);
        margin: auto;
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    .title {
        grid-area: 1 / -1;
        margin: auto;
        display: flex;
        gap: 2rem;
        flex-direction: column;
        align-items: center;
        color: #fff;
        z-index: 9;

        h1 {
            font-size: clamp(1.25rem, -2.4813rem + 11.9403vw, 3.25rem);
            display: flex;
            gap: 12px;
            flex-direction: column;

            span {
                font-weight: bold;
                text-align: center;
            }

            .underline {
                display: block;
                border-bottom: 6px solid #fff;
            }
        }

        p {
            text-align: center;
            line-height: 1.7;
            font-size: 18px;
            font-weight: bold;
        }
    }
}

.job-archive-contents {
    padding: 8rem 0;

    .contens-warpper {
        max-width: 900px;
        margin: auto;
        display: grid;
        grid-template-columns: 0.3fr 1fr;
        justify-items: center;

        .aside {
            width: 100%;

            ul {
                background-color: #eee;
                border-top: 8px solid #0E6EB8;
                border-radius: 4px 4px 0;
            }

            li {
                a {
                    display: block;
                    padding: 1rem;
                    border-bottom: 1px solid #ddd;
                    transition: all 0.25s ease;
                    font-family: "Noto Sans JP", sans-serif;

                    &:hover {
                        background-color: #ddd;

                    }
                }
            }
        }

        &.single {
            max-width: 1100px;
            gap: 2rem;
        }
    }

    .jobcard {
        margin-bottom: 2rem;
        max-width: 550px;
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid #ddd;
        transition: all 0.25s ease;
        box-shadow: 0 2px 6px #c0c0c0;

        &:hover {
            box-shadow: 0 0px 2px #eee;
        }

        >a {
            display: block;

            border-top: 8px solid #0E6EB8;
        }

        .card-head {
            display: flex;
            gap: 1rem;
            justify-content: space-between;
            padding: 2rem;

            .flex {
                display: flex;
                flex-direction: column;
                gap: 12px;
            }

            .category {
                display: flex;
                gap: 12px;

                p {
                    display: inline-block;
                    background-color: #ddd;
                    border-radius: 999px;
                    padding: 8px 16px;
                    font-size: 12px;
                    font-family: "Noto Sans JP", sans-serif;
                }
            }

            .title {
                font-family: "Noto Sans JP", sans-serif;
                font-size: clamp(0.9375rem, 0.5877rem + 1.1194vw, 1.125rem);
            }

            .thumbnail {
                aspect-ratio: 3/2;
                overflow: hidden;
                max-width: 50%;

                img {
                    object-fit: contain;
                    width: 100%;
                    height: 100%;
                }
            }
        }

        .card-content {
            border-top: 1px solid #ddd;
            padding-top: 1rem;
            padding-left: 2rem;
            padding-right: 2rem;

            p {
                display: block;
                margin-bottom: 0.5rem;
                font-weight: bold;
                font-family: "Noto Sans JP", sans-serif;
                display: flex;
                gap: 12px;
                align-items: center;
            }

            .yen::before {
                content: "";
                background: url('./yen.svg');
                background-repeat: no-repeat;
                background-size: contain;
                width: 18px;
                aspect-ratio: 1/1;
            }

            .pin::before {
                content: "";
                background: url('./pin.svg');
                background-repeat: no-repeat;
                background-size: contain;
                width: 18px;
                aspect-ratio: 1/1;
            }
        }

        .card-footer {
            font-family: "Noto Sans JP", sans-serif;
            background-color: #ddd;
            text-align: end;
            padding: 8px 1rem;
            color: #5f5f5f;
        }

        &.single {
            max-width: 900px;

            .card-body {
                padding: 2rem;
            }

            .card-content {
                border-bottom: 1px solid #ddd;
                padding-bottom: 16px;
            }
        }

    }
}




/* Hamberger */
.menu-btn {
    margin-left: auto;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: #0C6DB7;
}

.menu-btn span {
    z-index: 10;
}

.menu-btn span,
.menu-btn span:before {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #fff;
    position: absolute;
}

.menu-btn span:before {
    bottom: 8px;
}

.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #fff;
    position: absolute;
    transition: all 0.2s ease-in;
}

.menu-btn span::before {
    width: 30px;
}

.menu-btn span:before {
    bottom: 8px;
}

.menu-btn span:after {
    top: 8px;
    opacity: 0;
}

#menu-btn-check:checked~.menu-btn span {
    background-color: rgba(255, 255, 255, 0);
    /*メニューオープン時は真ん中の線を透明にする*/
    position: fixed;
}

#menu-btn-check:checked~.menu-btn span::before {
    bottom: 0;
    width: 25px;
    transform: rotate(45deg);
}

#menu-btn-check:checked~.menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
    opacity: 1;
}

#menu-btn-check {
    display: none;
}

.menu-content {
    position: fixed;
    top: 60px;
    left: 0;
    height: 100vh;
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: #0e3b5ea4;
    opacity: 0.1;
    overflow: scroll;
    visibility: hidden;
    transition: all 0.5s;
    /*アニメーション設定*/
    color: #fff;
}

.menu-content ul li a {
    padding: 1rem;
    display: block;
    font-size: 0.875rem;
    border-bottom: 1px solid #fff;
    color: #fff;
}

.menu-content #mobile-nav-list .menu-item-has-children .sub-menu {
    display: block;
}

.menu-content #mobile-nav-list .menu-item-has-children .sub-menu li {
    border-bottom: none;
}

.menu-content #mobile-nav-list .menu-item-has-children .sub-menu li a {
    background-color: color-mix(in srgb, var(--wp--preset--color--dark-green) 80%, #fff 20%);
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.menu-content #mobile-nav-list .menu-item-has-children .sub-menu li a::before {
    content: "";
    display: block;
    width: 8px;
    height: 2px;
    background-color: var(--wp--preset--color--primary);
}

body.logged-in.admin-bar .menu-content {
    top: 117px;
}

#menu-btn-check:checked~.menu-content {
    opacity: 1;
    visibility: visible;
}


/* ************* */
.hamburger-menu {
    display: none;
}

@media screen and (max-width:1060px) {
    #recruit-header {
        padding: 0;

        nav {
            padding-right: 0;
            padding-bottom: 0;

            .items-wrapper {
                display: none;
            }
        }

        .hamburger-menu {
            display: block;

            .menu-content {
                z-index: 999;
            }
        }
    }

    .job-archive-contents {
        .contens-warpper {
            padding: 0 2rem;
        }
    }


}

@media screen and (max-width:768px) {
    #recruit-header {
        nav a img {
            width: 200px;
        }
    }

    .section-1 {
        .title {
            grid-area: 1 / 1;
        }

        .inner {
            grid-template-columns: 1fr;
        }
    }

    .section-2 {
        .points {
            grid-template-columns: 1fr;
        }
    }

    .section-3 {
        .feature-section {
            .outer {
                padding-left: 2rem;
            }

            .content {
                padding: 2rem;
                padding-right: 0;
            }
        }
    }

    .section-5 {
        .content {
            .item {
                grid-template-columns: 1fr;
                gap: 0;

                p {
                    background-color: #e7e8ea00 !important;
                }

                h4 {
                    background-color: #E7E8EA !important;
                }
            }
        }
        .joblist{
            grid-template-columns: 1fr;
        }
    }

    .section-6 {
        .content {
            .item {
                grid-template-columns: 1fr;
            }
        }
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .sp-break {
        display: block;
    }

    .jobs-header {
        .title {
            p {
                font-size: 14px;
            }
        }
    }

    .job-archive-contents {
        padding-top: 1.75rem;

        .contens-warpper {
            grid-template-columns: 1fr;
            gap: 2rem;

            &.single {
                padding-left: 0;
                padding-right: 0;

                .aside {
                    width: 80%;
                    ;
                }

                .jobcard.single {
                    box-shadow: none;
                    border-radius: 0;
                    border: none;
                    border-top: 1px solid #ddd;
                }

                .aside {
                    grid-row-start: 2;
                }
            }
        }

        div:has(.jobcard) {
            justify-self: stretch;
        }

        .jobcard {
            max-width: 1000px;

            .card-head {
                flex-direction: column;

                .thumbnail {

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: contain;
                    }

                }
            }
        }
    }
}