@charset "UTF-8";

/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
    /* Modern Beauty Palette */
    --color-primary: #5CA4CD;
    /* Elegant Light Blue */
    --color-secondary: #A0CA70;
    /* Fresh Yellow Green */
    --color-accent: #338DB4;
    /* Deep Light Blue */
    --color-text: #2B3D44;
    /* Modern Soft Dark Gray */
    --color-bg: #FFFFFF;
    /* Clean White */
    --spacing-sp: 80px;
    --spacing-pc: 120px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    letter-spacing: 0.05em;
    line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.1em;
}

/* Prevent selection */
body {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

/* No Border Radius / Shadow on Images as per instruction */
img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Base Spacing for Sections */
.section-margin {
    margin-bottom: var(--spacing-sp);
}

@media (min-width: 768px) {
    .section-margin {
        margin-bottom: var(--spacing-pc);
    }
}

/* Tailwind Utilities Extended */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

.text-main-text {
    color: var(--color-text);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.bg-main-bg {
    background-color: var(--color-bg);
}

.border-primary {
    border-color: var(--color-primary);
}

.border-secondary {
    border-color: var(--color-secondary);
}

.border-accent {
    border-color: var(--color-accent);
}

.border-main-text {
    border-color: var(--color-text);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Mobile Menu & Hamburger
   ========================================================================== */
#hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

#hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

#hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#sp-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    /* Supreme z-index to cover everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    /* Solid white base */
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-100%);
    /* Slide from top for more premium feel */
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.4s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#sp-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Premium Staggered Animation for Links */
#sp-menu.active .sp-nav-link,
#sp-menu.active a {
    animation: spLinkFadeIn 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes spLinkFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Stagger delays */
#sp-menu a:nth-child(1) {
    animation-delay: 0.1s;
}

#sp-menu a:nth-child(2) {
    animation-delay: 0.2s;
}

#sp-menu a:nth-child(3) {
    animation-delay: 0.3s;
}

#sp-menu a:nth-child(4) {
    animation-delay: 0.4s;
}

#sp-menu a:nth-child(5) {
    animation-delay: 0.5s;
}

#sp-menu div a:nth-child(1) {
    animation-delay: 0.6s;
}

#sp-menu div a:nth-child(2) {
    animation-delay: 0.7s;
}

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

.sp-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ==========================================================================
   Section Headings (Image Overlay)
   ========================================================================== */
.section-heading-container {
    position: relative;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .section-heading-container {
        max-width: 80%;
        /* Wider on SP so text fits */
    }
}

.section-heading-bg {
    width: 100%;
    height: auto;
    display: block;
}

.section-heading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    width: 100%;
    text-align: center;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

@media (min-width: 768px) {
    .section-heading-text {
        font-size: 2rem;
    }
}

/* ==========================================================================
   FV Custom Styles
   ========================================================================== */
.fv-section {
    width: 100%;
    height: auto;
    margin-bottom: var(--spacing-sp);
}

@media (min-width: 768px) {
    .fv-section {
        margin-bottom: var(--spacing-pc);
    }
}

.fv-swiper {
    width: 100%;
    height: auto;
}

.fv-swiper .swiper-slide {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Mobile Only Helpers
   ========================================================================== */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

/* ==========================================================================
   Q&A Accordion
   ========================================================================== */
.faq-toggle .faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(92, 164, 205, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: Arial, sans-serif;
    line-height: 1;
}

.faq-toggle.active .faq-icon {
    transform: rotate(45deg);
    background-color: var(--color-primary);
    color: #ffffff !important;
}

.faq-toggle:hover .faq-icon {
    background-color: rgba(92, 164, 205, 0.2);
}

.faq-content {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    background-color: #fafafa;
}

.faq-content.is-open {
    max-height: 1000px;
    opacity: 1;
}

.faq-toggle {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-toggle:hover {
    background-color: #fcfcfc;
}

/* ==========================================================================
   Animations & Box Styles (Visibility Fix Applied)
   ========================================================================== */
.sh-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.sh-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Ensure content is visible if JS fails */
@media (prefers-reduced-motion: reduce) {
    .sh-reveal {
        opacity: 1;
        transform: none;
    }
}

.box-beautiful {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(92, 164, 205, 0.15);
    /* Soft primary border */
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

@media (min-width: 768px) {
    .box-beautiful {
        padding: 4rem;
    }
}

.box-beautiful:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(92, 164, 205, 0.15);
    border-color: rgba(92, 164, 205, 0.4);
}

/* Gallery Smooth Auto Scroll */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* ==========================================================================
   New Section Titles
   ========================================================================== */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

@media (min-width: 768px) {
    .section-title-wrapper {
        margin-bottom: 5rem;
    }
}

.section-title-en {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.4em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.section-title-jp {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

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

.section-title-border {
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
    margin: 1.5rem auto 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.section-title-border::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.sh-reveal.active .section-title-border {
    width: 160px;
}

/* ==========================================================================
   CTA Premium Buttons
   ========================================================================== */
.btn-cta-premium {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    /* Pill shape */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.btn-cta-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Shimmer effect */
.btn-cta-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: rotate(30deg);
    pointer-events: none;
    animation: btn-shimmer 4s infinite;
    z-index: -1;
}

@keyframes btn-shimmer {
    0% {
        left: -60%;
    }

    15% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

.btn-cta-premium:active {
    transform: translateY(-2px) scale(0.98);
}

/* ==========================================================================
   GLightbox Refinements
   ========================================================================== */
.glightbox-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gslide-image {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3) !important;
    max-height: 85vh !important;
}

/* Clean Close Button */
.gclose {
    background: none !important;
    color: #fff !important;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.gclose:hover {
    opacity: 1;
}

/* Elegant Arrows */
.gnext,
.gprev {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s !important;
}

.gnext:hover,
.gprev:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Gallery Hover UI */
.gallery-swiper .swiper-slide {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-swiper img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.gallery-swiper .swiper-slide:hover img {
    transform: scale(1.1) rotate(1deg);
}

/* Add a subtle overlay on hover */
.gallery-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(92, 164, 205, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.gallery-swiper .swiper-slide:hover::after {
    opacity: 1;
}

/* Lightbox counter styling */
.gcounter {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
}