* {
    color: black;
}
/******************************************
                sub-visual
******************************************/
.sub-visual {
    width: 100%;
    height: 30vw !important;
    /* background-color: #888; */
    margin: 0 0 200px 0;
    background-image: url(../img/sub-visual/sub-visual2.jpg) !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.sub-visual h1 {
    margin: 0 0 0 7.5%;
    width: 42.5%;
    height: 120px;
    /* border-bottom: solid 2px #FFA200; */
    border-left: solid 2px #FFA200;
    font-size: 20px;
    position: absolute;
    /* top: 200px !important; */
    bottom: -60px;
}
.sub-visual h1 span {
    position: absolute;
    bottom: 10px;
    left: 50px;
}
.sub-visual h1 span:nth-child(1) {
    position: absolute;
    top: 23px;
    left: 50px;
    color: #fff;
    font-size: 45px;
    text-transform: uppercase ;
    font-family: yu-mincho-36p-kana, sans-serif;
    font-weight: 400;
    font-style: normal;
}

/******************************************************************
                            work
******************************************************************/
.work-cat {
    /* width: 60%; */
    margin: 0 0 0 7.5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
}
main > .work-cat:nth-last-child(1) {
    margin-bottom: 150px;
}
.work-cat a {
    margin: 0 50px;
    position: relative;
    display: inline-block;
}
.work-cat a::after {
    position: absolute;
    bottom: -8px;
    left: 0;
    content: '';
    width: 100%;
    height: 1px;
    background: #586;
    transform: scale(0, 1);
    transform-origin: right top;
    transition: transform .3s;
    z-index: 999;
}
.work-cat a:hover::after {
    transform-origin: left top;
    transform: scale(1, 1);
}
.category {
    text-align: center;
    margin: 150px auto 100px auto;
    font-size: 20px;
    letter-spacing: 5px;
    padding-bottom: 15px;
    width: 50%;
    border-bottom: solid 1px #888;
}


/************************************
画面サイズが1000pxからはここを読み込む　
************************************/
@media screen and (min-width:1000px) { 

    .work-container {
        margin: 100px auto 100px auto;
        width: 80%;
        min-width: 900px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .work-container .work-box {
        position: relative;
        margin: 0 0 150px;
    }
    .work-container .work-box::before {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #fff;
        opacity: 0;
        transition: all .3s;
    }
    .work-container .work-box:hover::before{
        opacity: .5;
    } 
    
    .work-container .work-box .img-box {
        width: 35vw;
        height: 23vw;
        min-width: 390px;
        min-height: 260px;
        overflow: hidden;
        position: relative;
    }
    .work-container .work-box .img-box img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .work-container .work-box p {
        width: 100%;
        height: 100%;
        /* margin: -100px 0 0 auto; */
        position: absolute;
        bottom: -50px;
        right: 0;
    }
    .work-container .work-box p span {
        display: inline-block;
        /* margin: 115px 0 0 0; */
        position: absolute;
    }
    .work-container .work-box p span:nth-child(1) {
        left: 0;
        top: -24px;
        font-size: 20px;
        letter-spacing: 5px;
        background-color: #fff;
        line-height: 30px;
    }
    .work-container .work-box p span:nth-child(2) {
        right: 0;
        bottom: 15px;
    }
}
/************************************
画面サイズが1000px以下はここを読み込む　
************************************/
@media screen and (max-width:999px) { 

    .work-container {
        margin: 100px auto 100px auto;
        width: 900px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .work-container .work-box {
        position: relative;
        margin: 0 0 150px;
    }
    .work-container .work-box::before {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #fff;
        opacity: 0;
        transition: all .3s;
    }
    .work-container .work-box:hover::before{
        opacity: .5;
    } 
    
    .work-container .work-box .img-box {
        width: 390px;
        height: 260px;
        overflow: hidden;
        position: relative;
    }
    .work-container .work-box .img-box img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .work-container .work-box p {
        width: 100%;
        height: 100%;
        /* margin: -100px 0 0 auto; */
        position: absolute;
        bottom: -50px;
        right: 0;
    }
    .work-container .work-box p span {
        display: inline-block;
        /* margin: 115px 0 0 0; */
        position: absolute;
    }
    .work-container .work-box p span:nth-child(1) {
        left: 0;
        top: -24px;
        letter-spacing: 5px;
        font-size: 20px;
        background-color: #fff;
        line-height: 30px;
    }
    .work-container .work-box p span:nth-child(2) {
        right: 0;
        bottom: 15px;
    }
}

.more {
    display: block;
    width: 250px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border: solid 1px #000; 
    margin: 150px auto 150px auto;
    font-size: 16px;
    letter-spacing: 10px;
    cursor: pointer;
}
/***************************
       9件ずつ表示処理 
***************************/
.work-container .work-box {
    display: block;
    transition: all 1s;
    
}
.work-container .is-hidden {
    display: none;
    height: 0;
    margin: 0;
    transition: all 1s;
}

