/* Custom CSS extensions for detailed rules */
html {
    scroll-behavior: smooth;
}

/* Margin rules: 120px PC, 80px SP */
.layout-mb {
    margin-bottom: 80px;
}

@media (min-width: 1024px) {
    .layout-mb {
        margin-bottom: 120px;
    }
}

/* Parallax */
.parallax-bg {
    background-attachment: scroll;
    /* SP off */
    background-position: center;
    background-size: cover;
}

@media (min-width: 1024px) {
    .parallax-bg {
        background-attachment: fixed;
    }
}

/* Floating animation for images (Asymmetry feeling enhancement) */
.float-img {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Price items appearance reveal */
.p-item {
    transition: all 0.5s ease;
}

.p-item:hover {
    transform: translateX(10px);
}

/* Hamburger active states */
#hamburgerBtn.active .line1 {
    transform: translateY(8px) rotate(45deg);
    background-color: white;
}

#hamburgerBtn.active .line2 {
    opacity: 0;
}

#hamburgerBtn.active .line3 {
    transform: translateY(-8px) rotate(-45deg);
    background-color: white;
}

/* --- Statically professional & Stunning Section Titles --- */
.section-title-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    /* Space for vertical accent line */
    overflow: visible;
}

/* Watermark Background Text */
.section-title-en-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    font-family: 'Arial', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(30, 75, 61, 0.04);
    /* Faint primary green */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Delay utilities for staggered reveals */
.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;
}

/* --- High-End Full Screen SP Menu --- */
#spMenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1E4B3D;
    background-image:
        radial-gradient(at 0% 0%, rgba(44, 110, 90, 0.8) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(197, 160, 89, 0.15) 0px, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 10px);
    overflow-y: auto;
    z-index: 100;
    /* Above header */
}

#spMenu ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

#spMenu:not(.translate-x-full) ul li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for menu items */
#spMenu:not(.translate-x-full) ul li:nth-child(1) {
    transition-delay: 0.1s;
}

#spMenu:not(.translate-x-full) ul li:nth-child(2) {
    transition-delay: 0.2s;
}

#spMenu:not(.translate-x-full) ul li:nth-child(3) {
    transition-delay: 0.3s;
}

#spMenu:not(.translate-x-full) ul li:nth-child(4) {
    transition-delay: 0.4s;
}

#spMenu:not(.translate-x-full) ul li:nth-child(5) {
    transition-delay: 0.5s;
}

#spMenu:not(.translate-x-full) ul li:nth-child(6) {
    transition-delay: 0.6s;
}

#spMenu .close-btn-wrap {
    position: absolute;
    top: 20px;
    right: 20px;
}

#spMenu a:hover {
    color: #C5A059;
}

/* --- Selected Plan Section Generated Background --- */
.selected-plan-bg {
    background-color: #1e4b3d;
    background-image:
        radial-gradient(at 0% 0%, rgba(44, 110, 90, 0.8) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(197, 160, 89, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(44, 110, 90, 0.8) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(197, 160, 89, 0.15) 0px, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 10px);
    /* Subtle luxury grid */
}

.light-pattern-bg {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(30, 75, 61, 0.02) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(197, 160, 89, 0.03) 0px, transparent 50%),
        repeating-linear-gradient(45deg, rgba(30, 75, 61, 0.01) 0px, rgba(30, 75, 61, 0.01) 1px, transparent 1px, transparent 15px);
}

/* --- CTA Animated Background (Sleek Horizontal Flow) --- */
.cta-animated-bg {
    background: linear-gradient(to right, #f8faf9 0%, #e2eeea 25%, #d1e2da 50%, #e2eeea 75%, #f8faf9 100%);
    background-size: 200% 100%;
    animation: ctaFlowLR 10s linear infinite;
}

@keyframes ctaFlowLR {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: -200% 0%;
    }
}

.cta-btn-text-main {
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .cta-btn-text-main {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .section-title-en-bg {
        font-size: 7rem;
        /* Even larger on PC for impact */
    }
}

/* Vertical Gold Lead-in Line */
.section-title-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #C5A059);
}

/* Foreground English Label */
.section-title-en {
    position: relative;
    z-index: 2;
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #C5A059;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 12px;
}

/* Main Japanese Title with high-end Serif */
.section-title-main {
    position: relative;
    z-index: 2;
    font-family: "Noto Serif JP", serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1E4B3D;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title-main {
        font-size: 2.25rem;
    }
}

/* Subtle gold dot accent under the title */
.section-title-main::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #C5A059;
    border-radius: 50%;
    margin: 20px auto 0;
}

/* Override for Dark Backgrounds (Recommend section) */
.section-title-wrap.is-dark .section-title-en-bg {
    color: rgba(255, 255, 255, 0.05);
}

.section-title-wrap.is-dark .section-title-main {
    color: #ffffff;
}

/* --- End of Section Titles --- */

/* FV Responsive Fixes */
.fv,
.fv-swiper,
.fv-swiper .swiper-wrapper,
.fv-swiper .swiper-slide {
    height: auto !important;
}

.fv-swiper img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    /* Ensure full image visibility */
    vertical-align: bottom;
}

/* Redesigned Concerns (TV Section) styles */
.concern-list-item {
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.concern-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    /* Aligns with the first line */
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #1E4B3D;
}

.concern-list-item:hover {
    padding-left: 2rem;
    color: #1E4B3D;
}

.concern-img-frame {
    position: relative;
}

.concern-img-frame::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid #1E4B3D;
    z-index: -1;
}