/* 全体*/
body{
    margin: 0;
    color: rgb(80, 80, 80);
}
/* header部分 */
header{
    width: 100%;
    display: flex;
    border-bottom: 2px solid green;
    position: fixed;
    top: -80px;
    background-color: white;
    z-index: 1001;
}
header a{
    width: 78%;
    max-width: 300px;
}
header img{
    padding: 8px 0;
    width: 100%;
}
header h1{
    width: 126px;
    margin: auto 10px;
    font-size: 14px;
    font-weight: 500;
}
.wrapper{
    display: flex;
}

/* サイドバー */
aside{
    width: 18%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: url("../img/header/aside_image.jpg");
    background-size: cover;
    background-position-y: 80px;
    background-position-x: center;
    z-index: 1000;
    overflow: scroll;
    scrollbar-width: none;
}
aside::-webkit-scrollbar{
    display: none;
}
.aside_head{
    background-color: white;
}
.aside_head a{
    width: 90%;
    margin: auto;
    display: block;
}
aside img{
    width: 100%;
}
aside h1{
    width: max-content;
    font-size: 15px;
    font-weight: 500;
    margin-left: auto;
    margin-top: 0;
    margin-right: 10px;
}
aside ul{
    margin-top: 0;
    padding: 0;
}
aside li{
    list-style: none;
    user-select: none;
    text-shadow: 5px 5px 5px rgb(0, 0, 0);
    display: flex;
}
.aside_ul > li{
    width: 100%;
    position: relative;
}
.aside_ul > li > a{
    width: 100%;
    margin-left: 10%;
    text-decoration: none;
    display: block;
    line-height: 3.5vmax;
    font-size: 1.8vmax;
    color: white;
}
.aside_ul > li > a::after{
    content: '';
    position: relative;
    top: -12px;
    display: block;
    width: 0;
    height: 2px;
    background: rgb(9, 89, 136);
    z-index: 1;
    transition: all 1s;
}
.aside_ul > li:hover  ul{
    transform: scale(1);
    transition: 0.7s;
}
.aside_ul > li:hover{
    background-color: rgba(0, 0, 0, 0.5);
    text-shadow: 0px 0px 10px rgb(255, 255, 255);
}
.aside_ul > li:hover a::after{
    width: 90%;
}

.aside_ul > li > ul{
    width: max-content;
    margin: 0;
    position: fixed;
    left: 15%;
    transform: scale(0);
    transform-origin: -5px 20px;
    border-radius: 8px;
    background-color: #1c5291;
    z-index: 1;
}
.aside_ul > li > ul > li{
    list-style: none;
    margin: 5px 0;
    padding: 0 1rem;
}
.home_arrow,.kaisha_arrow{
    content: "";
    position: absolute;
    top: 30%;
    left: 76%;
    width: 0px;
    height: 0px;
    border-style: solid;
    border-color: rgb(104, 189, 146) transparent transparent transparent;
    border-width: 0.8vmax 0.5vmax 0 0.5vmax;
    transform: rotate(0);
}
.suvNavi_home a, .subNavi_kaisha a{
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    display: block;
    text-decoration: none;
    font-size: 1.2vmax;
    font-weight: bold;
    line-height: 2.4vmax;
    text-shadow: none;
    color: rgb(255, 255, 255);
}
.suvNavi_home a:hover,
.subNavi_kaisha a:hover
{
    background-color: rgba(255, 255, 255, 0.5);
    transition: 0.5s;
}
.aside_ul > li:hover .home_arrow,
.aside_ul > li:hover .kaisha_arrow
{
    transform: rotate(90deg);
    border-width: 1.2vmax 0.8vmax 0 0.8vmax;
    border-color: #1c5291 transparent transparent transparent;
    transition: 0.7s;
}

.open{
    width: 50px;
    height: 30px;
    padding: 5px;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: -100px;
    right: 10px;
    z-index: 1001;
}
.open span{
    margin: auto;
    display: block;
    height: 3px;
    width: 30px;
    border-radius: 1px;
    background-color: #284bbb;
    transition: 0.5s;
}
input[type="checkbox"]{
    position: absolute;
    left: -100px;
}
input[type="checkbox"]:checked ~ aside{
    left: 0;
    z-index: 1000;
}
input[type="checkbox"]:checked ~ .back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1000%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 400;
}
input[type="checkbox"]:checked ~ .open span:nth-of-type(1){
    transform: rotate(45deg);
    position: relative;
    top: 10px;
    transition: 0.5s;
}
input[type="checkbox"]:checked ~ .open span:nth-of-type(2){
    background-color: white;
    transition: 0.5s;
}
input[type="checkbox"]:checked ~ .open span:nth-of-type(3){
    transform: rotate(-45deg);
    position: relative;
    top: -10px;
    transition: 0.5s;
}

main{
    width: 82%;
    position: relative;
    left: 18%;
}
.kaisha_head1 h2,.tokuchu_head h2, .catalog_head h2, .toiawase_head h2, .zaisitu_head h2{
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI semibold", "Helvetica Neue", HelveticaNeue, YuGothic, "Yu Gothic", "Segoe UI", Verdana, Meiryo, sans-serif;
    font-size: 50px;
    color: rgb(255, 255, 255);
    text-align: center;
    text-shadow: 2px 2px 10px black;
    position: relative;
    top: 50%;
    left: -30%;
    transform: translate(0, -50%);
}

/* footer */
footer{
    width: 82%;
    margin: 0;
    position: relative;
    left: 18%;
    background: #284bbb;
    display: flex;
    justify-content: space-around;
}
.footer_link{
    font-size: 12px;
    color: white;
    display: flex;
    justify-content: space-around;
}
.footer_link > div{
    margin: 50px 0 20px 0;
}
footer li{
    margin: 5px 0;
    list-style: none;
}
footer li a{
    color: white;
}
footer a::after{
    content: "";
    width: 10px;
    height: 2px;
    position: relative;
    left: -15px;
    top: -10px;
    display: block;
    background: rgba(83, 182, 99, 0.6);
}
.headLI{
    font-weight: bold;
}
.toiawase_ul{
    margin-top: 80px;
}
.footer_kaisha{
    margin: auto 0;
    padding: 10px;
    text-align: center;
}
.footer_kaisha > div{
    margin: 1rem 0;
    text-align: center;
}
.footer_kaisha > div p{
    margin: 0;
}
.footer_kaisha p{
    font-size: 14px;
    color: rgb(255, 255, 255);
}
.footer_kaisha > p > a{
    color: white !important;
}
.footer_kaisha_name p{
    padding: 8px 10px;
    text-align: center;
    font-size: 28px;
    font-weight: 550;
    background-color: white;
    color: #284bbb;
}
.footer_end{
    width: 82%;
    margin: 0;
    padding-bottom: 20px;
    position: relative;
    left: 18%;
    display: flex;
    align-items: center;
    color: rgb(35, 35, 35);
    background: #284bbb;
}
.footer_end a{
    margin-left: auto;
    color: rgb(35, 35, 35);
    font-size: 12px;
    color: white;
}
.footer_end p{
    font-size: 14px;
    margin: auto 20px auto 50px;
    color: white;
}
.footer_end img{
    opacity: 0;
}

@media screen and (max-width: 1024px) {
    /* 1024px以下に適用されるCSS（タブレット用） */
    header{
        top: 0;
        z-index: 500;
    }
    .aside_head{
        display: none;
    }
    /* .aside_head a{
        max-width: 200px;
    } */
    aside{
        width: 70%;
        left: -800px;
        margin-top: 75px;
        background-size: cover;
        background-position: center;
        transition: 0.4s;
    }
    aside li{
        flex-direction: column;
    }
    .aside_ul > li > a{
        line-height: 1.5rem;
        margin-top: 20px;
        font-size: 3vmax;
    }
    .home_arrow,.kaisha_arrow{
        display: none;
    }
    .aside_ul > li > ul{
        position: relative;
        left: 0;
        transform: scale(1);
        transform-origin: -5px 20px;
        border-radius: 8px;
        background-color: transparent;
        z-index: 1;
    }
    .aside_ul > li > a::after{
        display: none;
    }
    .subNavi_kaisha a{
        font-size: 1.8vmax;
        font-weight: normal;
        padding-left: 10vmax;
    }
    .suvNavi_home{
        display: none;
    }
    .subNavi_kaisha a::before{
        content: "";
        width: 10px;
        height: 2px;
        display: block;
        position: relative;
        top: 0.6em;
        left: -1rem;
        background-color: white;
    }
    .open{
        top: 15px;
    }
    .tokuchu_head h2{
        left: -15%;
    }

    main{
        margin-top: 80px;
        width: 100%;
        left: 0;
    }
    .kaisha_head1 h2,.tokuchu_head h2, .catalog_head h2, .toiawase_head h2, .zaisitu_head h2{
        left: -20%;
    }
    footer{
        width: 100%;
        padding-top: 60px;
        padding-bottom: 30px;
        text-align: center;
        left: 0;
    }
    .footer_link{
        display: none;
    }
    .footer_end{
        width: 100%;
        left: 0;
    }
}
@media screen and (max-width: 500px) {
/* 500px以下に適用されるCSS（スマホ用） */
    header{
        flex-direction: column;
    }
    header h1{
        margin: auto;
    }
    aside{
        width: 80%;
        margin-top: 95px;
    }
    .aside_ul > li > a{
        font-size: 3vmax;
    }
    .suvNavi_home a, .subNavi_kaisha a{
        font-size: 2vmax;
        padding-left: 7vmax;
    }
    main{
        margin-top: 100px;
    }
    .kaisha_head1 h2,.tokuchu_head h2, .catalog_head h2, .toiawase_head h2, .zaisitu_head h2{
        font-size: 40px;
        font-weight: bold;
        left: 0;
    }
    footer{
        padding: 0;
    }
    .footer_end{
        flex-direction: column;
    }
    .footer_end a{
        margin: auto;
        font-size: 12px;
    }
}