body {
    position: relative;
    width: 100%;
    height: 100%;
    font-family: 'Comfortaa', YuGothic,'Yu Gothic','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','メイリオ', 'Meiryo','ＭＳ ゴシック',cursive;
}




/***　　　　　ヘッダー　　　　　***/

header {
    position: fixed;
    width: 240px;
    height: 100%;
    left: 0;
    background: #323643;
    z-index: 1000;
    overflow-y: auto;
}

.h-logo {
    position: relative;
    width: 100%;
    height: 240px;
    background: #ef2694;
}

.h-logo img {
    position: absolute;
    width: 80%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

header nav {
    width: 100%;
}

header ul {
    margin: 0;
    padding: 0;
}

header li {
    list-style: none;
    width: 100%;
    height: 100px;
}

header li a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 27px 0;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    font-size: 40px;
    text-decoration: none;
    transition: .3s;
}

.h-blog img {
    padding-left: 10px;
}

.h-top:hover {
    background: #ef2694;
}

.h-aboutme:hover {
    background: #7a4b9b;
}

.h-works:hover {
    background: #fdd366;
}

.h-contact:hover {
    background: #00bdaa;
}



/***　　　　　フッター　　　　　***/

footer {
    position: fixed;
    width: 240px;
    top: 640px;
    z-index: 2000;
}

small {
    display: block;
    position: absolute;
    width: 100%;
    margin: 15px 0;
    color: #fff;
    text-align: center;
}


.pc_blank {
    display: none;
}



/***　　　　　メイン　　　　　***/

main {
    position: absolute;
    width: calc(100% - 240px);
    left: 240px;
}

#main-space {
    position: relative;
    max-width: 800px;
    margin: 150px auto;
    padding: 0 50px;
    z-index: 10;
}

.mb-logo {
    display: none;
}


.m-contents h2 {
    font-size: 40px;
    border-left: solid 10px #ef2694;
    padding-left: 10px;
    margin-bottom: 70px;
}

.m-contents p {
    line-height: 2.2;
    margin: 20px 0;
    text-align: center;
}

#m-bg {
    position: fixed;
    bottom: 0;
    right: -15px;
    text-align: right;
    font-size: 120px;
    color: #ef2694;
    opacity: 0.5;
}

#m-bg h1 {
    margin: 0;
    line-height: 0.9;
}




/**　　　　　フェードイン設定　　　　　**/

/*　　　画面外にいる状態　　　*/
.fade-in {
    opacity : 0;
    transform : translate(0, 45px);
    transition : all 700ms;
    }

/*　　　画面内に入った状態　　　*/
.scroll-in {
    opacity : 1;
    transform : translate(0, 0);
    }






/***　　　　　レスポンシブ設定　　　　　***/

@media screen and (max-width: 1140px) {
    
    /***　　　　　ヘッダー　　　　　***/
    
    .h-logo {
        display: none;
    }
    
    header {
        position: fixed;
        left: inherit;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background: none;
        transition: all .6s;
        z-index: 999;
    }
    
    
    header nav {
        position: fixed;
        top: 0;
        width: 300px;
        height: 100%;
        margin: 0;
        
        background: #323643;
        overflow-y: auto;
    }
    
    .active header {
        right: 0;
    }
    
    header nav ul {
        display: block;
        position: absolute;
        top: 130px;
        width: 100%;
        padding: 0;
    }
    
    header nav li {
        width: 100%;
        height: 75px;
        color: #606060;
        border-bottom: 1px solid rgba(118,123,133,0.3);
        text-align: center;
    }
    
    header nav a {
        color: #fff;
        font-weight: normal;
        text-shadow: none;
        padding: 22px 0;
        box-sizing: border-box;
        text-align: center;
        font-size: 30px;
    }
    
    header nav img {
        width: 25px;
    }
    
    #hamburger-menu {
        position: fixed;
        right: 0;
        width: 70px;
        height: 70px;
        margin: 30px;
        padding: 18px 15px 18px 15px;
        box-sizing: border-box;
        z-index: 1000;
        background: #323643;
        border-radius: 50%;
        z-index: 1000;
    }
    
    .trigger,.trigger span {
        display: inline-block;
        transition: all .4s;
        box-sizing: border-box;
    }
    
    .trigger {
        position: relative;
        width: 40px;
        height: 34px;
        cursor: pointer;
        overflow: hidden;
    }
    
    .trigger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 6px;
        background-color: #fff;
        border-radius: 6px;
        opacity: 1;
    }
    
    .trigger a:hover {
        opacity: 1;
    }
    
    .trigger span:nth-of-type(1) {
        top: 0;
    }
    
    .trigger span:nth-of-type(2) {
        top: 14px;
    }
    
    .trigger span:nth-of-type(3) {
        bottom: 0;
    }
    
    .active .trigger span:nth-of-type(1) {
        -webkit-transform: translateY(14px) rotate(-45deg);
        transform: translateY(14px) rotate(-45deg);
    }
    
    .active .trigger span:nth-of-type(2) {
        left: 50%;
        opacity: 0;
        -webkit-animation: active-menu-bar02 .8s forwards;
        animation: active-menu-bar02 .8s forwards;
    }
    
    @-webkit-keyframes active-menu-bar02 { 100% { height: 0; }}
    @keyframes active-menu-bar02 { 100% { height: 0; }}
    
    .active .trigger span:nth-of-type(3) {
        -webkit-transform: translateY(-14px) rotate(45deg);
        transform: translateY(-14px) rotate(45deg);
    }
    
    .onanimation {
        display: block;
    }
    
    main {
        position: relative;
        width: 100%;
        right: 0;
        left: 0;
        min-height: calc(100vh - 30px);
    }
    
    
    #main-space {
        padding: 150px 30px;
        margin: 0 auto;
    }
    
    .mb-logo {
        display: inherit;
        width: 60%;
        max-width: 513px;
        margin: 0 auto;
    }
    
    
    
    /***　　　　　フッター　　　　　***/
    
    
    footer {
        position: relative;
        width: 100%;
        height: 30px;
        top: inherit;
        bottom: 0;
        background: #323643;
        z-index: 900;
    }
    
    
    small {
        position: absolute;
        width: 100%;
        margin: 0;
        top: 50%;
        left: 50%;
        -webkit-transform: translateY(-50%) translateX(-50%);
        transform: translateY(-50%) translateX(-50%);
    }
    
    .mb_br {
        display: none;
    }
    
    .pc_blank {
        display: inline;
    }
    
    
}



@media screen and (max-width: 900px) {
    #m-bg {
        font-size: calc(40px + ((1vw - 3.2px)*(80/5.8)));
        right: -3%;
    }
}

@media screen and (max-width: 320px) {
    #m-bg {
        font-size: 40px;
        right: -10px;
    }
}
