:root {
    --main-color: #000;
    --secondary-color: #63696E;
    --accent-color: #E63200;
    --base-font-color: #63696E;
    --light-gray-color: #E0E1E2;
    --white-font-color: #fff;
    --en-font: 'Montserrat', sans-serif;
} 

body {
    margin: 0;
    padding: 0;
    background-position: 100%;
    background-size: 100%;
    background-repeat: repeat;
    font-family: 'Noto Sans JP',sans-serif;
    width: 100%;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}
p{
	margin-block-start: 0;
    margin-block-end: 0;
}
a{
    text-decoration: none;
    color: var(--base-font-color);
}
ul,ol{
    list-style: none;
    padding-left: 0;
}

.wrap{
    max-width: 1200px;
    width: 94%;
    margin: auto;
    /* background-color: #ccc; */
}

.pc_only{
    display: block;
}
.sp_only{
    display: none;
}
@media screen and (max-width: 767.98px) {
.pc_only{
    display: none;
}
.sp_only{
    display: block;
}
}
.en {
    font-family: var(--en-font);
}


.header{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    .header_inner{
        background-color: var(--accent-color);
        height: 100px;
        display: flex;
        justify-content: space-between;
        .header_logo{
            display: flex;
            align-items: center;
            width: 100%;
            max-width: 264px;
            min-width: 80px;
            & a:hover{
                opacity: 0.7;
            }
        }
        .header_link{
            display: flex;
            justify-content: end;
            font-family: var(--en-font);
            .header_link_list{
                display: flex;
                gap: 20px 0;
                font-size: clamp(16px, calc(25 / 1720 * 100vw), 25px);
                font-weight: bold;
                text-align: center;
                white-space: nowrap;
                & a{
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    height: 100%;
                    padding: 4px 0.8em;
                    background-color: var(--white-font-color);
                    color: var(--accent-color);
                    transition: 0.3s;
                    &:hover{
                        background-color: var(--accent-color);
                        color: var(--white-font-color);
                    }
                }
                .ja{
                    display: block;
                    font-size: 13px;
                    font-size: clamp(10px, calc(25 / 1720 * 100vw), 13px);
                    width: 100%;
                }
            }
        }
        .header_link_service,
        .header_link_contact,
        .header_link_documents {
            & a{
                display: flex;
                align-items: center;
                justify-content: center;
                width: clamp(10em, calc(260 / 1720 * 100vw), 260px);
                height: 100%;
                color: var(--white-font-color);
                font-weight: bold;
                font-size: clamp(16px, calc(25 / 1720 * 100vw), 25px);
                text-align: center;
                white-space: nowrap;
                transition: 0.3s;
                .ja{
                    display: block;
                    font-size: 13px;
                    font-size: clamp(10px, calc(25 / 1720 * 100vw), 13px);
                    width: 100%;
                }
                &:hover{
                    background-color: var(--white-font-color);
                    color: var(--accent-color);
                }
            }
        }
        .header_link_list  {
            .header_link_expertise {
                & a{
                    background-color: var(--secondary-color);
                }
            }
            .header_link_contact {
                & a{
                    background-color: var(--main-color);
                    color: var(--white-font-color);
                }
            }
            .header_link_documents {
                & a{
                    background-color: var(--accent-color);
                    color: var(--white-font-color);
                    &:hover {
                        background-color: var(--white-font-color);
                        color: var(--accent-color);
                    }
                    }
            }
        }
    }
    .sp_menu_btn{
        display: none;
    }
}

@media screen and (max-width: 767.98px) {
.header{
    /*メニュー SP版レイアウト*/
    .header_inner{
        height: 72px;
        .header_logo{
            & img{
                max-height: 72px;
            }
        }
        .header_link{
            display: block;
            background: var(--white-font-color);
            min-width: 280px;
            max-width: 100%;
            padding-top: 120px;
            z-index: -1;
            .header_link_list{
                flex-wrap: wrap;
                margin: auto;
                width: 90%;
                >li{
                    width: 100%;
                    >a{
                        width: 100%;
                        display: block;
                        color: var(--accent-color);
                    }
                }
                .header_link_contact a {
                    color: var(--white-font-color);
                }
                .header_link_documents a {
                    color: var(--white-font-color);
                    &:hover {
                        color: var(--accent-color);
                    }
                }
            }
        }
        .header_link_service,
        .header_link_contact{
            width: 90%;
            margin: 20px auto;
            & a{
                width: 100%;
                display: block;
                text-align: center;
                padding: 1.5em;
            }
        }
    }
    /* メニュー スライドアニメーション*/
    .header_link {
        position: fixed;
        top: 0;
        right: 0;
        right: -100%;
        height: 100vh;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        transition: 0.3s;
        &.active {
            right: 0;
        }
    }
    /* 開くボタン */
    .sp_menu_btn {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 30px;
        height: 25px;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        transform: translate(0,-50%);
        right: 3%;
        & span{
            width: 30px;
            height: 3px;
            background: var(--white-font-color);
            transition: transform 0.3s, opacity 0.3s;
            position: absolute;
            
            &:nth-child(1){
                top: 0;
            }
            &:nth-child(2){
                top: 50%;
                transform: translateY(-50%);
            }
            &:nth-child(3){
                bottom: 0;
            }
        }
        &.active{
            & span{
                background: var(--white-font-color);
                &:nth-child(1){
                    transform: translateY(11px) rotate(45deg);
                }
                &:nth-child(2){
                    opacity: 0;
                }
                &:nth-child(3){
                    transform: translateY(-11px) rotate(-45deg);
                }
            }
        }
    }
    /* 閉じるボタン */
    .sp_menu_close_btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        align-self: flex-end;
    }
}
}

.header_logo a {
    display: flex;
    align-items: center;
}

.header_logo span {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: block;
    white-space: nowrap;
}

@media screen and (max-width: 400px) {
    .header .header_inner .header_logo {
        img {
            max-height: 60px;
        }
        span {
            font-size: 14px;
        }
    }
}

.breadcrumbs {
    font-size: 14px;
    text-align: left;
    width: 100%;
    padding: 10px 20px;
    min-height: 25px;
} 

.footer{
    background-color: var(--white-font-color);
    padding-top: 52px;
    position: relative;
    animation: topBtn 1s;
    animation-delay: 3s;

    .footer-pagetop {
        position: fixed;
        right: 36px;
        bottom: 36px;
        z-index: 1000;
        width: 76.2px;
        height: 76.2px;
    }
    .footer-pagetop__link {
        display: block;
        background-color: #fff;
        border-radius: 100px;
        height: 100%;
        padding-top: 17px;
    }
    .footer-pagetop__triangle {
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 23.1px 31.2px 23.1px;
        border-color: transparent transparent var(--accent-color) transparent;
        margin: 0 auto;
    }
    .footer_container{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 40px 10px;
        margin-bottom: 92px;
    }
    .footer_info{
        font-size: 15px;
        font-weight: 500;
        & a:hover{
            text-decoration: underline;
            opacity: 0.7;
        }
        .footer_logo{
            display: block;
            width: 190px;
            margin-bottom: 10px;
            &:hover{
                text-decoration: none;
            }
        }
    }
    .footer_link{
        margin-left: auto;
        .footer_link_list{
            display: flex;
            gap: 5px 30px;
            font-size: 15px;
            color: var(--secondary-color);
            font-weight: 500;
            > li{
                white-space: nowrap;
            }
            & a:hover{
                text-decoration: underline;
                opacity: 0.7;
            }
        }
    }
    .footer_copyright{
        font-family: var(--en-font);
        font-size: 15px;
        text-align: center;
        padding-bottom: 30px;
    }
}
@media screen and (max-width: 767.98px) {
    .footer{
        .footer-pagetop {
            right: 20px;
            bottom: 20px;
            width: 63.5px;
            height: 63.5px;
        }
        .footer-pagetop__link {
            padding-top: 15px;
            transition: 0.3s;
        }
        .footer-pagetop__link:hover {
            opacity: 0.7;
        }
        .footer-pagetop__triangle {
            border-width: 0 19.25px 26px 19.25px;
        }
        .footer_container{
            justify-content: start;
            margin-bottom: 30px;
            gap: 20px 10px;
        }
        .footer_info{
            margin-right: auto;
        }
        .footer_link{
            margin-left: 0;
            .footer_link_list{
                flex-wrap: wrap;
                justify-content: start;
                gap: 5px 1em;
                > li{
                    width: 100%;
                }
            }
        }
    }
}

/*ポップアップ*/
.p-popup-bnr {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 10000;
    width: 265px;
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation: popup-bnr 1s ease-in-out 3s forwards;
    /* animation-delay: 3s; */
    opacity: 0;
}
@media screen and (max-width: 960px) {
    .p-popup-bnr--recruit {
        bottom: 60px;
    }
}
.p-popup-bnr--service {
    right: 5px;
}
.p-popup-bnr.is-hide {
    display: none;
}
.p-popup-bnr__close {
    position: absolute;
    top: -5px;
    right: 0px;
    cursor: pointer;
    line-height: 0;
    background: none;
    border: none;
}
.p-popup-bnr__close--2 {
    top: -5px;
    right: -5px;
}
.p-popup-bnr__link {
    display: block;
    width: 100%;
}

@keyframes popup-bnr {
    0% {
        opacity: 0;
        transform: translate3d(0, 3000px, 0);
    }
    60% {
        opacity: 1;
        transform: translate3d(0, -20px, 0);
    }
    75% {
        opacity: 1;
        transform: translate3d(0, 10px, 0);
    }
    90% {
        opacity: 1;
        transform: translate3d(0, -5px, 0);
    }
    100% {
        opacity: 1;
        transform: translateZ(0);
    }
}