@charset "utf-8";

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
}
.container h1 {
    font-family: 'Stick', sans-serif;
    font-weight: normal;
    color: #e7e7e7;
    font-size: 26px;
}

h2 {
    font-size: 20px;
    font-family: 'Stick', sans-serif;
    margin: 20px auto;
    padding: 0;
    text-align: center;
    max-width: 50%;
}

h2 {
	padding: 25px;
	position: relative;
    text-align: center;
}
h2::before, h2::after {
	content: '';
	width: 25px;
	height: 25px;
	position: absolute;
}
h2::before {
	border-left: solid 2px #000000;
	border-top: solid 2px #000000;
	top: 0;
	left: 0;
}
h2::after {
	border-right: solid 2px #000000;
	border-bottom: solid 2px #000000;
	bottom: 0;
	right: 0;
}

#splash {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    text-align:center;
    color:#fff;
}

#splash_text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -50%);
    color: #fff;
    width: 100%;
}

.loader_cover {
    width: 100%;
    height: 50%;
    background-color: #333;
    transition: all .3s cubic-bezier(.04, .435, .315, .9);
    transform: scaleY(1);
}

.loader_cover-up {
    transform-origin: center top;
}
.loader_cover-down {
    position: absolute;
    bottom: 0;
    transform-origin: center bottom;
}
.coveranime {
    transform: scaleY(0);
}

#g-nav{
    position:fixed;
    z-index: 997;
    top:0;
    right: -120%;
    width:40%;
    height: 100vh;
    background:rgba(54, 54, 54, 0.7);
    transition: all 0.6s;
}

#g-nav.panelactive{
    right: 0;
}

#g-nav.panelactive #g-nav-list{
    position: fixed;
    z-index: 997; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav ul {
    position: absolute;
    z-index: 997;
    top:50%;
    left: 20%;
    transform: translate(-50%,-50%);
}

#g-nav li{
    list-style: none;
    text-align: center;
}

#g-nav li a{
    color: #fff;
    text-decoration: none;
    padding:20px;
    margin: 10px;
    display: block;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.openbtn1{
    position:absolute;
    z-index: 998;
    top:14px;
    right: 20px;
    cursor: pointer;
    width: 50px;
    height:50px;
    transition: opacity .3s;
}
.openbtn1:hover {
    opacity: 0.6;
}

.openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    width: 45%;
}

.openbtn1 span:nth-of-type(1) {
    top:15px; 
}

.openbtn1 span:nth-of-type(2) {
    top:23px;
}

.openbtn1 span:nth-of-type(3) {
    top:31px;
}

.openbtn1.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn1.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn1.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}



@media screen and (min-width: 641px) {    
    .gnavi li{
        position: relative;
        margin:0 10px;
    }

    .gnavi li::before,
    .gnavi li::after{
        content:"";
        position: absolute;
        width: 0;
        height:2px;
        background:#fff;
        transition: all 0.2s linear;
        transition-delay: 0.2s;
    }
    
    .gnavi li::before{
        right: 0;
        top: 0;
    }
    .gnavi li::after{
        left: 0;
        bottom: 0;
    }
    
    .gnavi li span{
        display: block;
    }
    
    .gnavi li span::before,
    .gnavi li span::after{
        content:"";
        position: absolute;
        width:2px;
        height:0;
        background: #fff;
        transition: all 0.2s linear;
    }
    
    .gnavi li span::before{
        left: 0;
        top: 0;
    }
    .gnavi li span::after{
        right: 0;
        bottom: 0;
    }
    
    .gnavi li:hover::before,
    .gnavi li:hover::after{
        width: 100%;
    } 
    
    .gnavi li:hover span::before,
    .gnavi li:hover span::after{
        height: 100%;
    }
}




@media screen and (max-width: 640px) {
    #g-nav {
        width: 50%;
    }
    #g-nav ul {
    position: absolute;
    z-index: 997;
    top:50%;
    left: 25%;
    transform: translate(-50%,-50%);
    }
    

    .border1,.border2,.border3,.border4 {
        position: relative;
        width: 200px;
        margin: 50px auto 0;
        padding: 20px;
        text-align: center;
    }
    
    .border1.under::before{
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        border-bottom: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 1s;
    }
    .border1.top::after{
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        border-top: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 1s;
    }
    
    .border1.left::after{
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        border-right: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 1s;
    }
    .border1.right::before{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        border-left: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 1s;
    }
    
    .border2.under::before{
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        border-bottom: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 1.5s;
    }
    .border2.top::after{
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        border-top: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 1.5s;
    }
    
    .border2.left::after{
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        border-right: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 1.5s;
    }
    .border2.right::before{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        border-left: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 1.5s;
    }
    
    .border3.under::before{
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        border-bottom: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 2s;
    }
    .border3.top::after{
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        border-top: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 2s;
    }
    
    .border3.left::after{
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        border-right: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 2s;
    }
    .border3.right::before{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        border-left: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 2s;
    }
    
    .border4.under::before{
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        border-bottom: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 2.5s;
    }
    .border4.top::after{
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        border-top: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 2.5s;
    }
    .border4.left::after{
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        border-right: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 2.5s;
    }
    .border4.right::before{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        border-left: solid 2px #fff;
        animation: sen linear forwards;
        animation-delay: .2s;
        animation-duration: 2.5s;
    }
    
    @keyframes sen {
        0%{
            width: 0%;
            height: 0%;
        }
        100%{
            width: 100%;
            height: 100%;
        }
    }
}

footer {
    padding: 20px 0;
    text-align: center;
    color: #aaa;
    background: #363636;

    position: sticky;
    top: 100vh;
    width: 100%;
}