/* @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    /* Base & Background (ミルク・キャンバス系) */
    --bg-color: RGB(240, 240, 240);
}

body {
    padding-top: 48px;
    font-family: "Tinos", "Times New Roman", "Noto Serif JP", serif;
    background-color: var(--bg-color);
}

.card {
    width: min(100%, 1000px);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 20px; */
    background-color: var(--bg-color);
}


.thema {
    margin-top: 30vh;
    padding: 10px;
    align-self: flex-start;
    font-size: clamp(6rem, 23vw, 10rem);

    animation: 3s fade-out linear forwards;

    /* background-color: rgb(240, 240, 240); */
    position: fixed;
    z-index: 10;
    /*要素を最前に設定？*/
    pointer-events: none;
    /* 操作を妨げない */
    animation-timeline: scroll();
    /* 時間からスクロール依存に変更 */
    animation-range: 0vh 80vh;
    background-color: transparent;

}

/* スクロール中は固定にしつつ、下の写真が上に上がってくるにつれてだんだん薄くする。 */
@keyframes fade-out {
    0% {

        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }

}

@keyframes fade-in-out {
    0% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.card-photos {
    margin-top: 120vh;
    margin-bottom: 30vh;
    background-color: rgb(240, 240, 240);

}

.area-photo {
    width: 100%;
    max-width: 100vh;
    margin-bottom: 10vh;
}

img {
    display: block;
    margin: 0 Auto;
    max-width: 100%;
    height: auto;
    opacity: 0;
    animation: fade-in-out linear;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;

}

.horizontal {
    width: 100%;
    height: auto;
}

.vertical {
    width: 70%;
    margin-top: 20px;
}


.test {
    font-size: 5rem;
}



.place {
    padding: 10px;
    font-size: 4rem;
    align-self: flex-end;
}


/* ヘッダー */

.site-header {
    background-color: rgba(255, 255, 255);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    z-index: 100;


}

.nav-link {
    text-decoration: none;
    font-size: 2rem;
    color: RGB(50, 50, 50);
}

.nav-link:hover {
    text-decoration: underline;
    color: RGB(100, 100, 100);
}

.nav-toggle {
    all: unset;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #8f8f8f;
    transition: transform 0.25s, opacity 0.25s;
}

.site-nav {
    background-color: rgb(255, 255, 255);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.site-header.is-open .site-nav {
    max-height: 240px;
}


.site-header.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* フッター（著作権） --------------------------------------*/
footer {
    padding: 20px 0;
    background-color: var(--bg-color);
    text-align: center;
    color: #8f8f8f;
    width: min(100%, 1000px);

}




/* メディア別描画設定---------------------------------------*/


@media (min-width: 768px) {
    .vertical {
        width: 60%;
    }
}