@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --text: #181818;
    --body: #fdfdfd;
    --background: #f4f6f5;
    --button: #4d4d4d;
    --border: #eaecea;
}
html {
    font-size: 10px;
    overflow-y: scroll;
}
body {
    background-color: var(--body);
    font-size: 1.6em;
    line-height: 1;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text);
}
a {
    text-decoration: none;
    color: inherit;
}
a:hover:not(.botton>a) {
    opacity: .6;
}
img {
    width: 100%;
}
ul, dl {
    list-style-type: none;
}
.button {
    display: block;
    background: var(--button);
    color: #fff;
    letter-spacing: .15em;
    text-align: center;
    padding: 1.25em;
    width: 150px;
    border-radius: 999px;
}
.button:hover {
    opacity: .7;
}

/* header ----- */
body>header {
    height: 100vh;
    background: var(--background);
}
.header {
    background: var(--background);
    padding: 45px 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.header h2 {
    font-size: 1.25em;
    letter-spacing: .15em;
    font-weight: 500;
}
.header nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
}
.header nav ul li {
    font-size: .825em;
    letter-spacing: .15em;
}
#menu,
#menu+label,
.header nav ul li span {
    display: none;
}
.top {
    width: 100%;
    height: calc(100vh - 91.2px);
    display: flex;
    justify-content: center;
    align-items: center;
}
.top>div {
    display: flex;
    flex-flow: row-reverse;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    max-width: 1050px;
    position: relative;
}
.top h1 {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 2em;
    writing-mode: vertical-rl;
}
.top h1:first-of-type {
    order: -1;
    letter-spacing: .15em;
}
.top h1:last-of-type {
    order: 1;
    letter-spacing: .1em;
}
.top img {
    width: 475px;
}

/* main ----- */
/* policy */
#aboutme {
    scroll-margin-top: 120px;
}
.policy {
    width: 100%;
    max-width: 950px;
    margin: 120px auto;
    display: flex;
    justify-content: space-evenly;
}
.policy>div {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    width: 335px;
}
.policy>div h2 {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 2.5em;
    line-height: 1.5;
    letter-spacing: .05em;
}
.policy>div p {
    line-height: 1.825;
    text-align: justify;
}
.policy>div a {
    width: 180px;
    font-size: .825em;
}
.policy img {
    width: 350px;
}
.pc { display: block !important; }
.sp { display: none !important; }

/* works */
.works {
    margin-left: 100px;
    background: var(--background);
    border-radius: 120px 0 0 120px;
}
.works>div {
    padding: 120px 10px 90px;
}
.works>div h2 {
    display: block;
    text-align: center;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 2.25em;
    font-weight: 600;
    letter-spacing: .15em;
    margin-bottom: 120px;
}
.works>div ul {
    display: flex;
    flex-flow: wrap;
    justify-content: space-evenly;
    width: 100%;
}
.works>div ul li {
    display: flex;
    flex-flow: column;
    margin-bottom: 60px;
    width: 45%;
}
.works>div ul li img {
    margin-bottom: .75em;
}
.border {
    border: var(--border) 1px solid;
}
.works>div ul li h3 {
    font-size: 12.8px;
    font-weight: 400;
    letter-spacing: .1em;
    margin-bottom: .625em;
}
.works>div ul li p {
    font-size: 12.8px;
    opacity: .6;
    letter-spacing: .05em;
}

/* footer ----- */
footer {
    background: var(--background);
    border-radius: 0 150px 0 0;
    margin-top: 150px;
}
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 70px 70px 30px 50px;
}
.footer>div {
    display: flex;
    flex-flow: column;
    gap: 4em;
}
.footer>div nav {
    display: flex;
    flex-flow: column;
    gap: 1.25em;
}
.footer>div nav>a,
.footer>a p {
    letter-spacing: .1em;
}
.footer>div small {
    letter-spacing: .1em;
}
.footer>a {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: .375em;
}
.footer>a img {
    width: 66px;
    border-radius: 999px;
}



@media (max-width:799px) {
    #aboutme {
        scroll-margin-top: 100px;
    }
    .policy {
        flex-flow: column-reverse;
        align-items: center;
        margin: 100px auto;
        gap: 2em;
    }
    .policy>div {
        gap: 1.5em;
    }
    .policy>div h2 {
        font-size: 2em;
    }
    .policy>div p {
        margin-bottom: 1em;
    }
    .policy img {
        width: 360px;
    }
    .pc { display: none !important; }
	.sp { display: block !important; }
    .works {
        margin-left: 80px;
    }
    .works>div {
        padding: 120px 10px 60px;
    }
    .works>div h2 {
        font-size: 2em;
        margin-bottom: 90px;
    }
    .works>div ul {
        justify-content: center;
    }
    .works>div ul li {
    width: 90%;
}
}

@media (max-width:767px) {
    .header {
        align-items: center;
    }
    .top {
        height: calc(100vh - 65px);
    }
    .top h1{
        font-size: 1.75em;
        font-weight: 550;
    }
    .top img {
        width: 325px;
    }
    /* menu ----- */
    .meatball {
        display: inline-block;
        vertical-align: middle;
        color: var(--button);
        line-height: 1;
        width: .375em;
        height: .375em;
        background: var(--button);
        border-radius: 50%;
        box-shadow: -1.5em 0 0 0 var(--button), -.75em 0 0 0 var(--button)
    }
    #menu:checked + label span {
        opacity: .5;
    }
    #menu + label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -24px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    .header nav {
        position: relative;
    }
    .header nav ul {
        display: none;
    }
    #menu:checked ~ ul {
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
        opacity: .8;
        position: absolute;
        top: 100%;
        right: 0;
        width: 150px;
        padding: 25px 0;
        z-index: 999;
    }
}

@media (max-width:574px) {
    .top>div {
        flex-flow: column;
        align-items: flex-start;
        width: 375px;
        padding: 0 25px;
    }
    .top h1 {
        writing-mode: horizontal-tb;
    }
    .top h1:first-of-type {
        order: 0;
        margin-bottom: .625em;
    }
    .top h1:last-of-type {
        order: 1;
        margin-bottom: 1.75em;
    }
    .top img {
        order: -1;
        margin-bottom: 60px;
    }
    .works {
        margin-left: 0;
    }
}

@media (max-width:440px) {
    .header {
        padding: 15px 25px 0;
    }
    .button {
        width: 100px;
    }
    .meatball {
        width: .25em;
        height: .25em;
    }
    #menu:checked ~ ul {
        width: 100px;
    }
    #aboutme {
        scroll-margin-top: 25px;
    }
    .policy {
        margin: 80px auto 100px;
    }
    .policy>div {
        width: 280px;
    }
    .policy>div h2 {
        font-size: 1.75em;
    }
    .policy>div p {
        font-size: .825em;
    }
    .policy>div a {
        font-size: .825em;
        width: 150px;
    }
    .policy img {
        width: 310px;
    }
    .works>div h2 {
        font-size: 1.75em;
        margin-bottom: 60px;
    }
    .works>div ul li {
        margin-bottom: 40px;
    }
    footer {
        margin-top: 100px;
    }
}