@charset "UTF-8";

/* --- Base & Variables --- */
:root {
    --brand-color: #647295;
    --beige-bg: #fcfaf7;
    --text-color: #333333;
    --accent-dark: #222222;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--text-color);
    background-color: var(--beige-bg);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Character Animation Base */
.char {
    display: inline-block;
    opacity: var(--opacity, 0);
    transform: translateY(var(--translate-y, 15px));
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1),
        transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: calc(0.04s * var(--char-index));
    white-space: pre;
}

.fv-catch,
.fv-sub,
.fv-logo,
.fv-read-more {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fv-catch.is-active,
.fv-sub.is-active,
.fv-logo.is-active {
    opacity: 1;
    --opacity: 1;
    --translate-y: 0;
}

.fv-read-more.is-visible {
    opacity: 1;
}



.font-serif {
    font-family: 'Noto Serif JP', serif;
}

/* --- Section Spacing --- */
.section-mt {
    margin-top: 80px;
}

@media (min-width: 1024px) {
    .section-mt {
        margin-top: 120px;
    }
}

/* --- Navigation & Menu --- */
#nav-menu {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

#nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-link-sp {
    position: relative;
    padding-bottom: 5px;
}

.nav-link-sp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-color);
    transition: width 0.3s;
}

.nav-link-sp:hover::after {
    width: 100%;
}

/* --- UI Parts --- */
.section-title-img {
    max-width: 100%;
    margin: 0 auto 40px;
    position: relative;
    text-align: center;
}

.section-title-text {
    color: #8b004a;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    white-space: nowrap;
    text-transform: uppercase;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 114, 149, 0.2);
}

/* --- Parallax --- */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 1023px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* --- New FV Section Design --- */
.fv-section-new {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--beige-bg);
}

/* --- Wave Animation --- */
.wave-container {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    line-height: 0;
    z-index: 30;
}

.waves {
    position: relative;
    width: 100%;
    height: 10vh;
    min-height: 60px;
    max-height: 120px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 9s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 12s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 15s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 22s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@media (max-width: 768px) {
    .waves {
        height: 45px;
        min-height: 45px;
    }
}


.fv-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fv-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    animation: fv-fade-3 18s infinite;
}

.fv-slide:nth-child(1) {
    animation: none;
    /* remove fade transition */
    opacity: 1;
    /* ensure it stays visible */
    background-image: url('../img/3-1.jpeg');
}

/* 
.fv-slide:nth-child(2) {
    animation-delay: 6s;
    background-image: url('../img/fv02.jpg');
}

.fv-slide:nth-child(3) {
    animation-delay: 12s;
    background-image: url('../img/fv03.jpg');
} 
*/

@media (max-width: 767px) {
    .fv-slide:nth-child(1) {
        background-image: url('../img/3-1.jpeg');
    }

    /* 
    .fv-slide:nth-child(2) {
        background-image: url('../img/fv02.jpg');
    }

    .fv-slide:nth-child(3) {
        background-image: url('../img/fv03.jpg');
    } 
    */
}


@keyframes fv-fade-3 {
    0% {
        opacity: 0;
        transform: scale(1.0);
    }

    5% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
        transform: scale(1.08);
    }

    38.33% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
    }
}


.fv-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-bottom: 80px;
}

.fv-catch {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    color: #333;
    letter-spacing: 0.15em;
}

.fv-sub {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    color: #666;
    letter-spacing: 0.2em;
}

.fv-logo {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #333;
    letter-spacing: 0.2em;
}

.fv-read-more-line {
    width: 1px;
    height: 0;
    background-color: #333;
}

.fv-read-more-line.animate {
    animation: lineGrow 1.5s ease-out forwards;
}

@keyframes lineGrow {
    from {
        height: 0;
    }

    to {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .fv-section-new {
        height: 70vh;
    }

    .fv-content-wrapper {
        padding-bottom: 40px;
    }
}

/* --- Swiper Tweaks --- */
.fv-swiper .swiper-slide {
    overflow: hidden;
}

.fv-swiper img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

@media (max-width: 1023px) {
    .fv-swiper img {
        height: auto;
    }
}

/* --- Floating Bar (SP) --- */
.floating-cta {
    display: none;
}

@media (max-width: 1023px) {
    .floating-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 500;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    }
}

/* --- Page Top --- */
#pagetop {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 600;
    background-color: var(--brand-color);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    #pagetop {
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
    }
}

#pagetop:hover {
    transform: translateY(-5px);
    background-color: #556285;
}

/* --- Lightbox --- */
#gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#gallery-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* --- Scroll Animations --- */
.scroll-reveal {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Default: Slide Up */
.reveal-up {
    transform: translateY(50px);
}

/* Fade In only */
.reveal-fade {
    transform: none;
}

/* Zoom In */
.reveal-zoom {
    transform: scale(0.9);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delay Helpers */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}


/* --- New FV Layout Fixes --- */
.fv-section-new::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 5;
    pointer-events: none;
}


@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scroll-line {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-fade-in {
    animation: fade-in 1.5s ease-out;
}

.animate-scroll-line {
    animation: scroll-line 2.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@media (max-width: 1023px) {
    .fv-scroll-indicator {
        display: none;
    }
}