﻿/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 100px);
    background-image: url("../images/main_banner.png?x=2");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    position: absolute;
    top: 50%;
    left: clamp(10%, 23vw, 26%);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
}


/* =========================================================
   HIBIKI LOGO
   ========================================================= */

.hero-logo {
    display: block;
    width: clamp(130px, 13vw, 190px);
    height: auto;
    opacity: 0;
    transform: translateY(24px);
    animation: heroLogoIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms forwards;
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.hero-title {
    margin: 38px 0 0;
    color: var(--ui-color-white);
    font-family: Sabon, Georgia, serif;
    font-size: clamp( 28px, 2.8vw, 50px );
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(24px);
    animation: heroTextIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 650ms forwards;
}
.hero-subtitle {
    margin: 38px 0 0;
    color: var(--ui-color-white);
    font-family: SegoeUIVar, Georgia, serif;
    font-size: clamp( 12px, 1.2vw, 16px );
    line-height: 1.08;
    letter-spacing: -0.02em;
    opacity: 0;
    font-weight: 400;
    transform: translateY(24px);
    animation: heroTextIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 650ms forwards;
    width: 450px;
}
.home_signup {
    width: 200px;
    margin: 20px 0 0 0;
}

/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes heroLogoIn {

    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(-124px);
    }
}


@keyframes heroTextIn {

    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(-124px);
    }
}



@keyframes heroLogoInMobile {

    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(-70px);
    }
}


@keyframes heroTextInMobile {

    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(-80px);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 480px) and (max-width: 1200px) {

    .hero-content {
        left: 18%;
    }

    .hero-title {
        margin-top: 20px;
    }
    .hero-subtitle {
        margin-top: 10px;
        width: 300px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .hero {
        min-height: calc(100svh - 70px);
        background-position: 58% center;
        background-size: cover;
    }


    .hero-content {
        top: 50%;
        left: 56px;
        right: 16px;
        transform: translateY(-50%);
        align-items: flex-start;
    }


    .hero-logo {
        width: 125px;
    }


    .hero-title {
        margin-top: 20px;
        font-size: clamp( 24px, 7vw, 30px );
        line-height: 1.05;
    }
    .hero-subtitle {
        margin-top: 20px;        
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-logo,
    .hero-title {
        opacity: 1;
        transform: none;
        animation: none;
    }
}


@media (max-width: 480px) {

    .hero {
        min-height: 610px;
        background-position: 53% center;
        background-size: cover;
    }

    .hero-content {
        top: 38%;
        left: 16px;
        right: 16px;
        transform: translateY(-50%);
        align-items: flex-start;
    }

    .hero-logo {
        width: 200px;
        animation: heroLogoInMobile 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms forwards;
    }

    .hero-title {
        margin-top: 124px;
        font-size: clamp( 20px, 6.5vw, 28px );
        line-height: 1.05;
        animation: heroTextInMobile 900ms cubic-bezier(0.22, 1, 0.36, 1) 650ms forwards;
    }

    .hero-subtitle {
        margin-top: 24px;
        font-size: clamp( 14px, 3vw, 20px );
        line-height: 1.05;
        animation: heroTextInMobile 900ms cubic-bezier(0.22, 1, 0.36, 1) 650ms forwards;
        width:240px;
    }

    .home_signup {
        width:70%;
        margin: 30px auto;
    }
}

