@charset "utf-8";
@import url(reset.css);

* {
    box-sizing: border-box;
}

html {
    font-size:62.5%;
    width: 100%;
}

body {
    line-height: 1.0;
    font-family: 'Sawarabi Mincho', sans-serif;
    font-size: 1.4em;
    letter-spacing: .2em;
    text-align: center;
    background: #fbe9e7;
}

a {
    color:inherit;
}

a:hover {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}



/* header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 4rem;
    background-color: #fbe9e7;
    opacity: 0.9;
}

header:hover {
    transition-property: all;
    transition-duration: 300ms;
    transition-delay: 0s;
    transition-timing-function: ease;
    opacity: 1;
}

header .icon{
    margin-left: 1.6rem;
    width: 40px;
    height: 40px;
}

header nav {
    margin-right: 1.6rem;
}

header nav a {
    margin-right: 2rem;
    padding: 1rem 0;
}

header nav a:hover {
    background-color: #fff;
    transition-property: all;
    transition-duration: 300ms;
    transition-delay: 0s;
    transition-timing-function: ease;
    opacity: 1;
}

header nav a:nth-last-of-type(1) {
    margin-right: 0;
}



/* main-visual */
#main-visual {
    width: 100%;
    height: 100vh;
    background: url("../img/main-visual.png") center no-repeat;
    box-shadow: 0 0.3rem 0.5rem 0.5rem #dececc;
}


/* section */
section {
    padding-top: 4rem;
}

section h1 {
    font-size: 2.4rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
}

section h2 {
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
    font-size: 1.8rem;
}

section h2:nth-of-type(1) {
    margin-top: 0;
}

section p {
    font-size: 1.4rem;
    line-height: 2.1rem;
}

section p:nth-last-of-type(1) {
    margin-bottom: 1.8rem;
}

#works {
    margin: 0 auto;
    border-radius: 1.0rem;
    width: 60%;
    height: auto;
    background-color: grey;
}

#works h1 {
    color: white;
}

.views {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}



/* footer */
footer {
    margin-top: 3rem;
    color: white;
    background-color: brown;
}

footer small {
    font-size: 1.4rem;
    color: white;
}