@charset "UTF-8";

:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    /* fix for Chrome */
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, 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: center;
    padding-top: 2.5em;
}

h1 img {
    width: 100%;
}

h2 {
    font-weight: 600;
    font-size: 5vw;
    padding-top: 3em;
}

#header_link {
    padding-top: 3em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #010f0e;
}

header p {
    text-align: right;
    font-weight: 600;
    font-size: 4.6vw;
    padding-bottom: 0.3em;
}

p a {
    color: #010f0e;
    text-decoration: none;
    padding-bottom: 1em;
}

p a:hover {
    opacity: 0.6;
}

#image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 5em;
    width: 100%;
}

#image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* ← contain から変更 */
    object-position: center; /* 中央を基準に切り抜き */
    display: block; /* align-items は img には効かないので不要 */
}

.images {
    width: 100%;
    aspect-ratio: 1 / 1;
}

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

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

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

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

footer img {
    width: 64vw;
}

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

/* モーダル */
.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: #010f0e;
    margin-top: 1em;
    padding: 0 1em;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-align: center;
}

/* Aboutページ */
#about header p {
    font-size: 5.5vw;
    font-weight: 800;
    text-align: left;
    border: none;
    padding: 0;
    margin: 1rem 0 0.5rem;
}

#about h2 {
    font-weight: 700;
    font-size: clamp(52px, 13.5vw, 100px);
    padding-top: 0;
}

.prof_img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0;
}

.prof_img img {
    width: 70%;
}

#about h3 {
    margin-bottom: 2rem;
}

#about h3 img {
    width: 40%;
}

.text_area p {
    margin-bottom: 1.5em;
    font-size: clamp(14px, 3.5vw, 22px);
    font-weight: 500;
}

.text_area p:last-child {
    margin-bottom: 3em;
}

section {
    padding-bottom: 3rem;
    border-bottom: 2px solid #010f0e;
}

#about h4 {
    font-size: clamp(24px, 6vw, 36px);
    margin: 1em 0 2em;

}

.contact_text {
    text-align: center;
    font-weight: 500;
}

.contact_text p:first-of-type {
    font-size: clamp(13px, 3.4vw, 22px);
    margin-bottom: 3em;
}

.contact_text p:nth-of-type(2) {
    display: inline-block;
    font-size: clamp(18px, 4.5vw, 30px);
    border-bottom: 2px solid #010f0e;
    padding: 0.3em;
    margin-bottom: 3em;
}

.contact_text p:last-of-type {
    font-size: clamp(11px, 3vw, 16px);
    padding-bottom: 2.6rem;
}

#about footer {
    padding-top: 10em;
}

#about footer img {
    width: 175px;
}

#about footer div {
    padding-bottom: 2rem;
}

/* タブレット用CSS */
@media screen and (min-width:768px) {
    h2 {
        font-size: 4vw;
        padding-top: 3em;
    }

    #header_link {
        padding-top: 2.7em;
    }

    header p {
        font-size: 4vw;
    }

    p a {
        font-size: 0.8em;
        /* 必要なら 1rem や px でもOK */
    }

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

    #modalCaption {
        font-size: 1.2em;
    }

    footer div {
        padding-bottom: 7em;
    }

    footer img {
        width: 25vw;
    }
}

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

    #header_link {
        padding-top: 2em;
    }

    header p {
        font-size: 4vw;
    }

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

    footer img {
        width: 21vw;
    }

    /* aboutページ */
    #about header p {
        font-size: 2.5vw;
        padding: 0;
        margin: 1rem 0 0.5rem;
    }

    #about h2 {
        font-weight: 700;
        font-size: clamp(65px, 6.2vw, 130px);
        padding-top: 0;
    }

    .flex_box {
        display: flex;
        gap: 7vw;
        margin-top: 4rem;
    }

    .prof_img {
        display: block;
        padding: 0;
        width: 90%;
    }

    .prof_img img {
        width: 100%;
    }

    .about_text {
        width: 100%;
    }

    #about h3 {
        margin-bottom: 2rem;
    }

    #about h3 img {
        width: 26%;
    }

    .text_area p {
        margin-bottom: 1.5em;
        font-size: clamp(16px, 1.5vw, 30px);
    }

    .text_area p:last-child {
        margin-bottom: 3em;
    }

    section {
        padding-bottom: 7vw;
    }

    #about h4 {
        font-size: clamp(28px, 2.7vw, 50px);
        margin: 1em 0 0.5em;

    }

    .contact_text {
        text-align: center;
        font-weight: 500;
    }

    .contact_text p:first-of-type {
        text-align: left;
        font-size: clamp(17.5px, 1.7vw, 32px);
        margin-bottom: 6em;
    }

    .contact_text p:nth-of-type(2) {
        font-size: clamp(28px, 2.7vw, 50px);
        margin-bottom: 2.5em;
    }

    .contact_text p:last-of-type {
        font-size: clamp(16px, 1.4vw, 26px);
        padding-bottom: 2.6rem;
    }

    #about footer {
        padding-top: 15em;
    }

    #about footer img {
        width: clamp(175px, 17vw, 275px);
    }

    #about footer p {
        font-size: clamp(15px, 1.4vw, 24px);
    }
}
