@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Lobster&display=swap');

html {
    font-size: 100%;
}
body {
    color: #2d2d2d;
    font-family: "Crimson Text", serif;
}
img {
    max-width: 100%;
}
ul {
    list-style: none;
}
a {
    color:#2d2d2d;
    text-decoration: none;
}

.mainvisual {
    width: 90vw;
    margin: 50px auto 0;
}

/* header */
header {
    display: flex;
    width: 90vw;
    height: 70px;
    margin: 0 auto;
}
header h1 {
    width: 110px;
    line-height: 70px;
}
nav ul {
    display: flex;
    justify-content: space-between;
}
header li {
    margin-left: 3rem;
    line-height: 70px;
    font-size: 14px;
}

/* contents */
.wrapper {
    max-width: 1000px;
    margin: 0 auto;
}
section {
    display: flex;
    margin-bottom: 50px;
}
.img {
    width: 50%
}
.txt {
    width: 50%;
    display: flex;
    align-items: center;
}
.txt-box {
    padding: 5rem;
}
.txt-box h2 {
    font-size: 24px;
}
.txt-box p {
    line-height: 1.75rem;
}
.txt-box p:first-of-type {
    display: block;
    margin-bottom: 1.75rem;
}
section#work {
    flex-direction: row-reverse;
}

/* footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}
.logo {
    width: 110px;
}
footer p {
    font-size: 14px;
}

@media screen and (max-width: 767px) {
    .mainvisual {
        width: 100%;
        margin: 0 auto;
    }
    .mainvisual img {
        width: 100%;
        height: 334px;
        object-fit: cover;
    }
    .wrapper {
        margin: 1rem;
    }
    section,
    section#work {
        flex-direction: column;
    }
    .img,
    .txt {
        width: 100%;
    }
    .txt-box {
        padding: 0;
        margin-top: 1rem;
    }
    .txt-box h2 {
        font-size: 20px;
    }
    .txt-box p:first-of-type {
        margin-top: 0.5rem;
    }
}