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: #7a4b9b;
}

.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;
}

.m-contents {
    margin-bottom: 150px;
}

.m-contents:last-child {
    margin-bottom: 0;
}

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

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

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

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

.contents-wrapper {
    display: flex;
    justify-content: space-between;
}

.m-contents span {
    background: linear-gradient(transparent 60%, rgba(207, 139, 255, 0.5) 60%);
}





/**　　　　　コンテンツ1：プロフィール　　　　　**/

.profile-img {
    width: 100%;
    text-align: center;
}

.profile-img img {
    width: 60%;
    max-width: 400px;
    border-radius: 50%;
}

h3 {
    font-size: 30px;
    border-bottom: dotted 7px #774898;
}

.p-twitter {
    margin-left: 10px;
    color: #774898;
    transition: 0.3s;
}

.p-twitter:hover {
    opacity: 0.7;
}




/**　　　　　コンテンツ2：スキル　　　　　**/

.skill-icon {
    text-align: center;
}

.icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-top: 5px;
    margin-right: 5px;
    padding: 10px 0;
    box-sizing: border-box;
    border-radius: 10px;
}

.icon:last-child {
    margin-right: 0;
}

#s-ai {
    color: #ff763a;
    border: 3px solid #ff763a;
}

#s-ps {
    color: #52b6ff;
    border: 3px solid #52b6ff;
}

#s-dw {
    color: #48f841;
    border: 3px solid #48f841;
}

#s-xd {
    color: #f73fc5;
    border: 3px solid #f73fc5;
}

#s-w {
    color: #4061d1;
    border: 3px solid #4061d1;
}

#s-x {
    color: #3cb732;
    border: 3px solid #3cb732;
}

#s-p {
    color: #ef802f;
    border: 3px solid #ef802f;
}

.mb_br_skill {
        display: none;
    }






/**　　　　　コンテンツ3：キャリア　　　　　**/

.carrier-table table {
    position: relative;
    width: 100%;
    border: 0px none;
    border-collapse: collapse;
}

.line-1 {
    position: absolute;
    width: 46px;
    height: 100%;
    top: 50%;
    left: 0;
    border-right: 8px solid #7a4b9b;
}

.line-2 {
    position: absolute;
    width: 46px;
    height: 100%;
    top: 50%;
    left: 0px;
    border-right: 8px dotted #7a4b9b;
}

.tb-year {
    position: relative;
    width: 100px;
    height: 180px;
    box-sizing: border-box;
}


.year {
    position: relative;
    width: 100px;
    height: 100px;
    margin-right: 30px;
    background: #7a4b9b;
    border-radius: 50%;
    z-index: 100;
}

.year p {
    position: absolute;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit- transform: translateY(-50%) translateX(-50%);
    color: #fff;
}

.tb-now {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 20px;
    transform: rotate(-15deg);
    z-index: 200;
}







/**　　　　　コンテンツ4：趣味　　　　　**/

.hobby-box {
    width: 28%;
    text-align: center;
}

.hobby-box img {
    width: 100%;
    border-radius: 50%;
}

.hobby-box h4 {
    display: inline-block;
    margin: 10px auto;
    font-size: 25px;
    border-bottom: dotted 7px #774898;
}

.hobby-box p {
    text-align: justify;
}

.and {
    text-align: right;
    font-size: 20px;
}






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

/*　　　画面外にいる状態　　　*/
.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%;
        min-height: calc(100vh - 30px);
        right: 0;
        left: 0;
    }
    
    #main-space {
        padding: 150px 30px;
        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 (min-width: 641px) {
    /* 2つ目の要素に200msのdelayをかける */
    #delay-effect > .fade-in:nth-of-type(2) {
        -moz-transition-delay:200ms;
        -webkit-transition-delay:200ms;
        -o-transition-delay:200ms;
        -ms-transition-delay:200ms;
        }

    /* 3つ目の要素に400msのdelayをかける */
    #delay-effect > .fade-in:nth-of-type(3) {
        -moz-transition-delay:400ms;
        -webkit-transition-delay:400ms;
        -o-transition-delay:400ms;
        -ms-transition-delay:400ms;
        }
    
}


@media screen and (max-width: 640px) {
    .web-flex {
        flex-direction: column;
    }
    
    .hobby-box {
        width: 100%;
    }
    
    .hobby-box img {
        width: 60%;
        margin: 0 auto;
    }
    
    
    
    /**　　　　　コンテンツ2：スキル　　　　　**/

    
    #s-xd {
        margin-right: 0;
    }
    
    .mb_br_skill {
        display: inherit;
    }
    
    
    
    /**　　　　　コンテンツ3：キャリア　　　　　**/


    .line-1 {
        width: 34px;
        border-right: 6px solid #7a4b9b;
    }

    .line-2 {
        width: 34px;
        border-right: 6px dotted #7a4b9b;
    }

    .tb-year {
        width: 74px;
        
    }


    .year {
        width: 74px;
        height: 74px;
        margin-right: 20px;
    }

    .year p {
        font-size: 12px;
    }

    .tb-now {
        position: absolute;
        top: -10px;
        left: -20px;
        font-size: 20px;
        transform: rotate(-15deg);
        z-index: 200;
        font-size: 14px;
    }
    
    .tb-detail {
        font-size: 14px;
    }
    
}



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