/* =========================
   Hero
========================= */

.hero {

    position: relative;

    width: 100%;
    min-height: 56svh;

    padding:
        calc(var(--header-height) + 35px)
        24px
        65px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

}


/* =========================
   Background
========================= */

.hero-background {

    position: absolute;
    inset: 0;

    z-index: -3;

}


.hero-background img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(0.8)
    contrast(0.42);

    transform: scale(1.03);

}


.hero-overlay {

    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            to bottom,
            rgba(244, 240, 231, 0.38),
            rgba(244, 240, 231, 0.58)
        );

}


/* =========================
   Content
========================= */

.hero-content {

    width: min(100%, 620px);

    text-align: center;

    animation:
        heroFade 1.6s cubic-bezier(.22, 1, .36, 1)
        forwards;

}


.hero-copy {

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;

}


/* 基本の文章 */

.hero-copy > p,
.hero-question p {

    margin: 0;

    font-size:
        clamp(0.72rem, 2.75vw, 0.86rem);

    font-weight: 400;

    line-height: 2.05;

    letter-spacing: 0.13em;

    color: rgba(34, 35, 31, 0.84);

}


/* 私たちは。人間は。 */

.hero-question {

    margin: 12px 0;

}


.hero-question p + p {

    margin-top: 3px;

}


/* 最後だけ少し強調 

.hero-copy .hero-message {

    margin-top: 5px;

    font-size:
        clamp(0.88rem, 3.35vw, 1.05rem);

    font-weight: 500;

    line-height: 2;

    letter-spacing: 0.14em;

    color: var(--text);

}*/


/* =========================
   Scroll
========================= */

.scroll-guide {

    position: absolute;

    bottom: 20px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--text);
    text-decoration: none;

}


.scroll-guide span {

    margin-bottom: 8px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 0.58rem;

    letter-spacing: 0.28em;

}


.scroll-guide i {

    display: block;

    width: 1px;
    height: 28px;

    background:
        rgba(34, 35, 31, 0.42);

    animation:
        scrollLine 2s ease-in-out infinite;

}


/* =========================
   Animation
========================= */

@keyframes heroFade {

    from {

        opacity: 0;
        transform: translateY(18px);

    }

    to {

        opacity: 1;
        transform: translateY(0);

    }

}


@keyframes scrollLine {

    0% {

        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;

    }

    35% {

        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;

    }

    65% {

        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 1;

    }

    100% {

        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;

    }

}


/* =========================
   PC
========================= */

@media (min-width: 768px) {

    .hero {

        min-height: 100vh;

        padding:
            120px
            60px
            75px;

    }


    .hero-content {

        width: min(100%, 700px);

    }


    .hero-copy {

        gap: 20px;

    }


    .hero-copy > p,
    .hero-question p {

        font-size: 0.84rem;

        line-height: 2.15;

        letter-spacing: 0.16em;

    }


    .hero-question {

        margin: 14px 0;

    }


    .hero-copy .hero-message {

        font-size: 1.02rem;

        letter-spacing: 0.17em;

    }

}