@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter Tight", sans-serif;
}

body.modal-open {
    overflow: hidden;
}

#pageContent.blur {
    filter: blur(6px);
    transition: filter 0.3s ease;
}

.container {
    width: 85.5%;
    margin: 0 auto;
}

h1 {
    text-align: right;
    padding-top: 1em;
}

h1 img {
    width: 20vw;
}

h2 {
    font-weight: 600;
    font-size: 18vw;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #161b27;
}

#image-gallery {
    width: 100%;
}

.post {
    padding-top: 3em;
    padding-bottom: 3em;
    border-bottom: 2px solid #161b27;
}

.caption {
    font-size: 5vw;
    font-weight: 600;
    color: #161b27;
    padding-bottom: 1em;
}

.images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    align-items: center;
    aspect-ratio: 1 / 1;
}

#loading,
#error-message {
    text-align: center;
    font-size: 1.2em;
    font-weight: 500;
    margin-top: 3em;
}

/* #error-message {
    color: red;
} */

footer {
    padding-top: 20em;
    padding-bottom: 2em;
}

footer div {
    text-align: center;
    padding-bottom: 1.5em;
}

footer img {
    width: 15vw;
}

footer p {
    text-align: center;
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    font-weight: 400;
}

/* モーダル */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal-img {
    cursor: pointer;
    position: relative;
    z-index: 999;
}

.modal-content {
    margin: 0 auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #7e8584;
    font-size: 40px;
    cursor: pointer;
}

/* #modalCaption {
    font-size: 1em;
    font-weight: 600;
    color: #161b27;
    margin-top: 1em;
    padding: 0 1em;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-align: center;
} */

/* タブレット用CSS */
@media screen and (min-width:768px) {
    h1 {
        padding-top: 2em;
    }

    h1 img {
        width: 14vw;
    }

    h2 {
        font-size: 15vw;
        /* padding-top: 1.5em;
        padding-bottom: 1.5em; */
    }

    .images {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        width: 100%;
    }

    .caption {
        font-size: 4vw;
    }

    #modalCaption {
        font-size: 1.2em;
    }

    footer div{
        padding-bottom: 1.3em;
    }

    footer img {
        width: 8vw;
    }
}

/* デスクトップ用CSS */
@media screen and (min-width:1024px) {
    h2 {
        font-size: 11vw;
        /* padding-top: 0.8em;
        padding-bottom: 1.2em; */
    }

    .post {
        padding-top: 6em;
        padding-bottom: 6em;
    }

    .caption {
        font-size: 2.5vw;
    }

    .images {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        width: 100%;
    }

    footer img {
        width: 4vw;
    }
}
