/* PRESSO - Custom Design System */

/* Root Variables for consistency */
:root {
    --presso-white: #FFFFFF;
    --presso-green: #F1F8F6;
    --presso-blue: #F0F7FF;
    --presso-accent: #88A49C;
    --presso-text: #333333;
    --section-margin-sp: 80px;
    --section-margin-pc: 120px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

body {
    line-height: 2.0;
    /* ゆとりを持たせる */
    letter-spacing: 0.05em;
    /* 上品さを出す */
    color: var(--presso-text);
}

/* Typography polish */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.4;
    letter-spacing: 0.1em;
}

/* Image rules - No rounded corners or shadows as per "最重要・垢抜けの肝" */
img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Swiper overrides */
.fv-swiper {
    width: 100%;
}

.fv-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Custom Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Parallax tweak for mobile */
@media (max-width: 768px) {
    .bg-fixed {
        background-attachment: scroll !important;
    }
}

/* Interactive Elements */
a,
button {
    transition: all 0.3s ease;
}

.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-hover-effect:hover::after {
    left: 100%;
}

/* Section Spacing - Strict adherence to prompt */
section {
    position: relative;
}

/* Specific component styles */
#sp-menu {
    transition: opacity 0.5s ease;
}

#sp-menu.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal animation */
#gallery-modal {
    visibility: hidden;
    pointer-events: none;
}

#gallery-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#gallery-modal img {
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

#gallery-modal.active img {
    transform: scale(1);
}

/* Responsive Font Scaling */
@media (max-width: 640px) {
    body {
        font-size: 15px;
        /* 可読性重視 */
    }
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--presso-accent);
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6D847E;
}

/* Horizontal line decoration */
.hr-deco {
    width: 100px;
    height: 1px;
    background: var(--presso-accent);
    margin: 2rem auto;
}

/* Logo Text Glow */
.logo-glow {
    text-shadow: 0 0 10px rgba(136, 164, 156, 0.1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━
   MOVED FROM INLINE STYLE
   ━━━━━━━━━━━━━━━━━━━━━━ */

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#header {
    z-index: 99999 !important;
    /* Force to the very top */
    background-color: #FFFFFF !important;
}

#sp-nav-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    /* Changed from 100vw to prevent scroll */
    height: 100dvh !important;
    /* Dynamic viewport height */
    background-color: #FFFFFF !important;
    z-index: 99998 !important;
    /* Just below header */

    /* Visibility Control */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    /* Centering Content */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

#sp-nav-panel.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#sp-nav-panel ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.sp-menu-item {
    color: #333333 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 1.5rem !important;
    display: block !important;
    text-align: center !important;
}

/* Guarantee visibility for all main content */
.reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Only apply minor animation if active */
.reveal.active {
    animation: minorFade 0.5s ease forwards !important;
}

@keyframes minorFade {
    from {
        opacity: 0.8;
        transform: translateY(10px);
    }

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

.logo-text {
    color: #88A49C !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-decoration: none !important;
}

/* --- FAQ Accordion --- */
.faq-item.active {
    border-color: var(--presso-accent);
    background-color: var(--presso-green);
}

.faq-toggle.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-content {
    max-height: 500px;
    /* Sufficient height */
    opacity: 1;
    padding-bottom: 2rem;
}