@charset "UTF-8";

/* Common */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
html {
    font-size: 100%;
}
body {
    color: #955e4b;
    display: flex;
    flex-direction: column;
    font-family: "ヒラギノ明朝 ProN W3", serif;
    
    ::-webkit-scrollbar {
        display: none;
    } /* Safari and Chrome */
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}
div.heading {
    padding-top: 80px;
}
h2 {
    font-size: 24px;
    margin: 16px 0;
}
.wrapper {
    padding: 0 4.27%;
}

/* Header */
h1 {
    margin: 16px 0;
}
h1 a {
    color: #955e4b;
}
h1 a:hover {
    cursor: pointer;
}
button {
    border: none;
    padding: 0;
    position: fixed;
    top: 16px;
    z-index: 4;
    height: 48px;
}
button#menu-open {
    right: 4.27%;
}
button#menu-close {
    right: 8.54%;
}
button img {
    background-color: #955e4b;
}
#mask {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100vw;
    visibility: hidden;
    z-index: 3;
}
#menu-panel {
    background-color: #955e4b;
    opacity: 90%;
    position: fixed;
    translate: 50vw;
    right: 0;
    top: 0;
    height: 100vh;
    width: 50vw;
    z-index: 4;
}
ul {
    list-style: none;
    margin-top: 80px;
    padding-left: 8.54%;
}
ul li {
    margin-top: 16px;
}
ul a {
    display: block; /* Ver 1.1 PS */
    color: #fff;
    font-size: 2rem;
}
ul a:hover {
    color: #f3d0c5;
    cursor: pointer;
}
header {
    background-color: #fff;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    opacity: 90%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

/* Footer */
footer {
    background-color: #955e4b;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
}
footer p {
    color: #fff;
    font-size: 14.4px;
    margin: 0;
    padding: 16px 0;
}

/* Index */
#index-img {
    flex: 1;
    filter: grayscale(100%);
    object-fit: cover;
}

/* About */
.container {
    height: 100vh;
    overflow: auto;
    scroll-snap-type: y mandatory;
}
section {
    height: 100vh;
    scroll-snap-align: start;

    /* text */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
section p {
    color: #fff;
    padding: 0 4.27%;
}
section a {
    color: #fff;
}
section a:hover{
    color: #f3d0c5;
}
section:nth-child(2n+1) {
    position: relative;
    z-index: 0;
}
section:nth-child(2n+1)::before {
    background-image: url(../images/background/programing.webp);
    content: '';
    filter: blur(2px) grayscale(100%);
    position: absolute;
    height: 100vh;
    width: 100vw;
    z-index: -1;
}
section:nth-child(2n) {
    position: relative;
    z-index: 0;
}
section:nth-child(2n)::before {
    background-image: url(../images/background/painting.webp);
    content: '';
    filter: blur(2px) grayscale(100%);
    position: absolute;
    height: 100vh;
    width: 100vw;
    z-index: -1;
}

/* Gallery */
.grid {
    display: grid;
    grid-gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding-bottom: 86px;
}
.grid img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
}
.img-item {
    opacity: 0;
}
.grid p {
    margin-top: 0;
    margin-bottom: 0;
}
.big-box {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.big-box img {
    height: 95.3%;
    width: 100%;
}

/* SNS */
.sns {
    flex: 1;
    padding-bottom: 86px;
}
.sns ul {
    display: block;
    padding-left: 0;
}
.sns li {
    margin-left: 0;
}
.sns a {
    color: #955e4b;
    display: flex;
}
.sns img {
    margin-right: 16px;
    margin-bottom: 32px;
}
.sns a:hover {
    color: #f3d0c5;
    cursor: pointer;
}
.sns h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0;
}
.sns p {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0;
}


/* iPhone */
@media (max-width: 512px) {
    /* Gallery */
    #bar {
        background-color: #955e4b;
        height: 8px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2;
    }

    .big-box {
        grid-column: auto;
        grid-row: auto;
    }
    .big-box img {
        height: auto;
    }
}