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

.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 #fdd366;
    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: #fdd366;
    opacity: 0.5;
}

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

.contents-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.m-contents span {
    background: linear-gradient(transparent 60%, rgba(253, 211, 102, 0.5) 60%);
}





/**　　　　　コンテンツ1：WEBデザイン　　　　　**/

.m-contents img {
    width: 100%;
}

.w-L {
    position: relative;
    width: 100%;
    margin-top: 30px;
    background: #fdd366;
    overflow: hidden;
}

.w-card {
    width: 32%;
}

.w-S {
    position: relative;
    height: 0;
    padding-bottom: 72%;
    background: #fdd366;
    overflow: hidden;
}

.w-L img {
    box-sizing: border-box;
}

.w-S img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.banner-yuenchi {
    object-position: 15% 100%;
}

.site-captionL h5 {
    margin: 10px 0 0;
    font-size: 32px;
}

.site-captionL p {
    margin: 0;
}

.site-captionS {
    width: 100%;
}

.site-captionS h5 {
    margin: 10px 0 0;
    font-size: 20px;
}

.site-captionS p {
    margin: 0;
    font-size: 14px;
}




/**　　　　　コンテンツ2：グラフィックデザイン　　　　　**/

.g-S {
    position:relative;
    width: 32%;
    height: 0;
    padding-bottom: 32%;
    box-sizing: border-box;
    line-height: 0;
    background: #fdd366;
}

.g-S img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

h3 {
    font-size: 30px;
    border-bottom: dotted 7px #fdd366;
    margin-top: 70px;
}






/**　　　　　リンク先子ページ　　　　　**/

video {
    width: 100%;
    margin: 30px 0;
}

.story {
    width: 90%;
    margin: 0 auto;
    padding: 25px 50px;
    box-sizing: border-box;
    background: rgba(253, 211, 102,0.5);
    border-radius: 30px;
}

.story h4 {
    font-size: 20px;
}

.web-img {
    position: relative;
    width: 100%;
    padding: 3%;
    margin-top: 30px;
    box-sizing: border-box;
    background: #fdd366;
}

.close-button {
    max-width: 300px;
    height: 75px;
    margin: 100px auto 0;
    border-radius: 50px;
    border: solid 3px #fdd366;
    overflow: hidden;
}

.close-button a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 25px;
    text-decoration: none;
    background: #fdd366;
    transition: .3s;
}

.button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit- transform: translateY(-50%) translateX(-50%);
    
}

.button-text:before {
    font-family: "Font Awesome 5 Free";
    content: "\f053";
    font-weight: bold;
    padding-right: 30px;
}

.button-text:after {
    font-family: "Font Awesome 5 Free";
    content: "\f054";
    font-weight: bold;
    padding-left: 30px;
    opacity: 0;
}

.close-button a:hover {
    background: #fff;
    color: #fdd366;
}

.site-map {
    max-width: 600px;
    margin: 50px auto;
}

.w-list li {
    line-height: 2.2;
}






/**　　　　　ホバー設定　　　　　**/

.mask {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    background: #323643;
    opacity: 0;
    transition: .3s;
}

.mask .caption {
    position: absolute;
    color: #fff;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit- transform: translateY(-50%) translateX(-50%);
}

.caption p {
    font-size: 20px;
    line-height: 1;
    margin: 0;
}

.caption h4 {
    font-size: 40px;
    line-height: 1;
    margin: 0;
}

.no-image h4 {
    position: absolute;
    font-size: 40px;
    line-height: 1;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit- transform: translateY(-50%) translateX(-50%);
}

.mask:hover {
    opacity: 0.7;
}

.n-S a {
    transition: .3s;
}

.g-S a {
    transition: .3s;
}




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

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

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

/* 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: 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 (max-width: 640px) {
    
    .web-flex {
        flex-direction: column;
    }
    
    .w-card {
        width: 100%;
    }
    
    .site-captionS h5 {
        margin: 10px 0 0;
        font-size: 32px;
    }

    .site-captionS p {
        margin: 0;
    }
    
    .no-card {
        display: none;
    }
    
    .no-image h4 {
        font-size: calc(16px + ((1vw - 3.2px)*(24/3.2)));
    }
    
    .story {
        width: 90%;
        padding: 15px 25px;
        font-size: 14px;
    }
    
    
    
}

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