/* ヘッダーのスタイル */
header{
    display: flex;
    align-items: flex-end;
    width: 100cqw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: solid 1px white;
    border-image: var(--grad5) 1;
}
header h1{
    color: transparent;
    position: absolute;
    z-index: -1;
}
.header_wrapp{
    display: grid;
    width: 100%;
    height: max-content;
    align-content: flex-end;
    grid-template-columns: auto 1fr 1fr auto;
    /* grid-template-rows: 1fr; */
    grid-template-areas: "logo menu menu menu";
    background-color: white;
}
.header_wrapp .logo{
    grid-area: logo;
    width: 160px;
    align-content: center;
    padding: 10px 0 10px 20px;
}
.header_wrapp .logo img{
    width: 100%;
}
.header_wrapp .menu{
    display: flex;
    height: 100%;
    box-sizing: border-box;
    padding: 0 30px;
    column-gap: 30px;
}
.header_wrapp .menu > li > a{
    transition: color 0.3s ease-in;
}
.header_wrapp .menu > li.hover > a{
    /* color: var(--sub_color); */
    color: var(--sub_color5);

}

.header_wrapp .menu > li::before{
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--sub_color5);
    top: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease-in;
    transform-origin: left center;
}

.header_wrapp .menu > li.hover::before{
    transform: scaleX(100%);
}
.header_wrapp .menu :is(ul, li){
    list-style-type: none;
}
.header_wrapp .sub-menu {
    display: flex;
    visibility: hidden;
    flex-direction: column;
    position: absolute;
    width: 180px;
    top: 100%;
    left: 0%;
    background: var(--main_color);

    opacity: 0;
    z-index: 1;
}

.header_wrapp .sub-menu li a{
    display: block;
    color: white;
    padding: 20px;
}
.header_wrapp .sub-menu li::before{
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;

    background: var(--sub_color5);
    transform: scaleY(0);
    transition: transform 0.2s ease-in;
}

.header_wrapp .sub-menu li.hover::before{
    transform: scaleY(1);
}
.header_wrapp ul.sub-menu li{
    padding: 0;
    position: relative;
}
.header_wrapp .menu-primary-menu-container{
    grid-area: menu;
    justify-items: flex-end;
    align-self: flex-end;
}
.header_wrapp .menu-primary-menu-container::-webkit-scrollbar{
    display: none;
}
.header_wrapp .menu-primary-menu-container li{
    font-weight: var(--wp);
    position: relative;
}

.header_wrapp .menu-primary-menu-container a{
    padding: 20px 0 20px 0;
    display: block;
    color: var(--main_color)
}
.header_wrapp .entry_wrap{
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 0 20px 20px 0;
}
.header_wrapp .entry{
    /* position: fixed; */
    width: max-content;
    /* bottom: 20px; */
    /* right: 20px; */
    flex-direction: column;
    display: flex;
}
.not_entry .header_wrapp .entry_wrap{
    display: none;
}

.header_wrapp .entry span{
    pointer-events: none;
}
.header_wrapp .entry .btn{
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 12px;
    width: auto;
    padding: 10px 10px;
    background: var(--grad5);
    /* background: var(--main_color); */
}
.header_wrapp .entry a:last-child{
    background: var(--grad5);
    /* background: var(--main_color); */
}
.header_wrapp .entry .btn.hover p{
    transform: translate(0px, 8px);
}
.header_wrapp .nav_btn{
    display: none;
}

.header_wrapp .entry .btn p::after{
    background-size: 25px 25px;
}

/* パンくずリストのスタイル */
.pankuzu{
    margin: 20px;
}
.pankuzu_list{
    display: flex;
    align-items: center;
    column-gap: 5px;
    list-style-type: none;
}
.pankuzu_list li{
    font-size: 12px;
    color: var(----page_text_color);
    flex-shrink: 0;
}
.pankuzu_list li:last-child{
    flex-shrink: 1;
}

.pankuzu_list a{
    color: var(--main_color);
}

/* 固定ページh1部分のスタイル */
.h1_container_wrap{
    padding: 70px 0 0 0;
}
.h1_container{
    display: flex;
    flex-direction: column;
    position: relative;
    /* padding: 110px 0; */
    aspect-ratio: 9/2;
    align-items: center;
    background-image: url(../img/aboutcraft.png);
    background-position: 50% 15%;
    background-size: cover;
    overflow: hidden;
}
:is(.about_us, .message, .company-info, .projects, .accomplishment) .h1_container{
    background-image: url(../img/pixta_30036556_M.jpg);
    background-position: 50% bottom;
}
:is(.inquiry) .h1_container{
    background-image: url(../img/contact9.png);
    background-position: 0% 95%;
    background-size: 100% auto;
}
:is(.recruit-info, .grad, .mid-career, .entry-for-fm, .entry-for-mc) .h1_container{
    background-image: url(../img/recruit2.png);
    background-position: 50% 10%;
    background-size: 100% auto;
}

:is(.privacy) .h1_container{
    background-image: none;
    background: var(--main_color);
}
.h1_container::before{
    content: "";
    display: block;
    width: 100%;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    background-color: rgba(255, 255, 255, 0.7);
}
:is(.privacy) .h1_container::before{
    display: none;
}
.h1_container::after{
        content: "";
    display: block;
    width: 100%;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    backdrop-filter: blur(3px);
}
.h1_container h1{
    font-size: 50px;
    font-weight: var(--wh);
    color: var(--main_color);
    place-content: center;
    z-index: 10;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

:is(.privacy) .h1_container h1{
    color:white;
}


@media (max-width:900px){

    .header_wrapp .menu-primary-menu-container{
        position: absolute;
        /* background: var(--grad1); */
        background: var(--grad5);
        width: 100cqw;
        height: 100cqh;
        overflow-y: scroll;
        top: 0;
        left: 0;
        z-index: -999;
        box-sizing: border-box;
        justify-items: flex-start;

        visibility: hidden;
        opacity: 0;
    }
    .header_wrapp .menu-primary-menu-container li{
        border-bottom: solid 1px white;
        padding: 0 0 10px 0;
        margin: 0 0 20px 0;
    }
    .header_wrapp .menu > li.hover > a{
        color: white;
    }

    .header_wrapp .menu-primary-menu-container a{
        color: white;
        transition: opacity 1s ease-in;
        padding: 0;
    }
    .header_wrapp .menu-primary-menu-container a::after{
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url(../img/icons/arrow_left_icon_white.svg);
        background-size: 100%;
        transform: translateY(5px);
        fill: white;
    }
    .header_wrapp .sub-menu{
        opacity: 1;
        /* visibility: visible; */
        visibility: hidden;
        position: static;
        width: max-content;
        top: 0;
        left: 0%;
        transform: translateX(0%);
        background: none;
    }

    .header_wrapp .sub-menu li {
        border: none;
        margin: 0;
    }
    .header_wrapp .sub-menu li a{
        padding: 10px 0 0 20px;
    }
    .header_wrapp .logo{
        width: 150px;
    }
    .header_wrapp .menu{
        display: block;
        padding: 50px;
        width: 100%;
        height: max-content;
    }
    .header_wrapp .entry_wrap{
        width: 100cqw;
        padding: 10px;
        background: rgba(255, 255, 255, 0.7);
    }
    .header_wrapp .entry{
        position: relative;
        left: 50%;
        /* right: 50%; */
        transform: translateX(-50%);
        flex-direction: row;
        column-gap: 20px;
    }
    .header_wrapp .entry .btn{
        writing-mode: horizontal-tb;
    }
    .header_wrapp .entry .btn.hover p{
        transform: translate(8px, 0);
    }
    .header_wrapp .nav_btn{
        display: block;
        width: 40px;
        height: 40px;
        margin: 0 20px 0 0;
        /* background-color: red; */
        grid-area: menu;
        justify-self: flex-end;
        align-self: center;
        cursor: pointer;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    .header_wrapp .nav_btn span{
        display: block;
        width: 100%;
        height: 3px;
        /* background: var(--grad1); */
        background: var(--grad5);
        border-radius: 1px;
    }
    .header_wrapp .menu > li::before{
        display: none;
    }

    .h1_container{
        aspect-ratio: 5/2;
    }
    .h1_container h1{
        font-size: 30px;
    }
}