@import url(reset.css);

@import url(https://fonts.googleapis.com/earlyaccess/notosansjapanese.css);

@import url(https://fonts.googleapis.com/earlyaccess/sawarabimincho.css);

*{
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
}

body {
    font-family: 'Noto Sans Jaoanese',sans-serif;
    font-size: 10px;
    font-size: 1.5625vw;
    line-height: 1.0;
}

a,
a:hover{
    text-decoration: none;
}

a{
    color:inherit;
}

.fixed-nav li a:hover{
    text-decoration: none;
    transition: all .3s;
}

img{
    max-width: 100%;
}

.wrapper{
    width:100%;
}

header {
    width: 100%;
    height: 100vh;
    background: url(../images/hero.jpg) center center/cover no-repeat;
}

footer {
    width: 100%;
    background: #000;
}

.header-inner{
    position:relative;
    height: 100%;
}

h1 {
    color:  #fff;
    font-family: "Sawarabi Mincho";
    font-size: 80px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1em;
    margin: auto;
    text-align: center;
    letter-spacing: 4px;
}

#toMain{
    display: block;
    position: absolute;
    right: 0;
    bottom:120px;
    left: 0;
    margin: auto;
    width: 120px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 0;
    background: transparent;
    font-size: 3.0rem;
}

#toMain::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    display: block;
    width: 0;
    height: 0;
    background: #fff;
    transition: .1s;
}

#toMain:hover::before{
    width: 100%;
    height: 100%;
}

#toMain:hover .fa{
    color: #231815;
    animation: none;
    bottom: 0;
}

#toMain:hover{
    cursor: pointer;
}

#toMain:focus{
    outline: none;
}
#toMain .fa{
    color: #fff;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    animation: moveY 1.2s infinite alternate linear;
}

@keyframes moveY{
    0% {bottom:4px;}
    60%{ bottom 0;}
    100%{ bottom: 4px;}
}

.fixed-nav{
    width:100%;
    position: absolute;
    z-index: 900;
    bottom: 0;
    left: 0;
    background: transparent;
}
.fixed-nav .nav-inner{
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.fixed-nav ul{
    margin: 0 auto;
    line-height: 60px;
}

.fixed-nav li{
    display: inline-flex;
    margin-left: auto;
    width: 10em;
}

.fixed-nav li a {
    width: 100%;
    color: #fafafa;
    line-height: 3.0;
    text-align: center;
    font-family: "Rounded Mplus 1c";
    font-weight: 400;
    letter-spacing: 2px;
    position: relative;
}

.fixed-nav li a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1565c0;
    transform: scale(0,1);
    transform-origin: center top;
    transition: transform .3s;
}

.fixed-nav li a:hover{
    text-decoration: none;
}

.fixed-nav li a:hover::after{
    transform: scale(1,1);
}

.is-fixed .fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    height: 60px;
}

main{
    width: 100%;
    padding: 100px 0;
    background: #f5f5f5;
    position: relative;
}

main::before,
main::after{
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 23px;
}

main::before{
    top: 0;
}

main::after{
    bottom: 0;
}

article{
    width: 1024px;
    margin: 0 auto;
    padding: 50px 80px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19),0 6px 6px rgba(0,0,0,0.23);
}

article +article{
    margin-top: 40xp;
}

section{
    display: flex;
    flex-wrap: wrap;
}

section + section{
    margin-top: 40px;
}

section img{
    display: block;
    margin: 0 auto 4rem;
}

section p{
    line-height: 1.8;
}

section p + p{
    margin-top: 2em;
}

h2{
   width: 100%;
    font-size: 3.4rem;
    margin-bottom: 1em;
    font-family: "Sawarabi Mincho";
    padding: 0.4em 0.5em;
    color: #231815;
    background: #f4f4f4;
    border-left: solid 5px #1565c0;
    border-bottom: solid 3px #d7d7d7;
}

footer p{
    padding:2em 0;
    margin: 0 auto;
    background: #000;
    color: #fff;
    text-align: center;
    font-size: 1em;
    font-weight: 100;
}

@media screen and (min-width: 480px){
    
    body{
        font-size: 1.6em;
    }    
}

@media screen and (min-width: 1024px){
    
    .wrapper{
        min-width: 1024px;
    }
}

@media screen and (min-width: 480px){
    
    h1{
        font-size: 40px;
        font-size: 6.25vw;
    }
    
    #toMain {
        font-size: 24px;
        font-size: 3.75vw;
    }
    
    h2 span{
        width: 90%;
    }
    
    .header-inner {
        width: 94vw;
        margin: 0 auto;
    }
    
    article{
        width: 96vw;
        padding: 8vw 2vw;
    }
    
    main{
        padding: 16vw 0;
    }
    
    h2{
        font-size: 16px;
        font-size: 2.5vw;
    }
    
    p{
        font-size: 12px;
        font-size: 1.875vw;
    }
}