:root {
    --bg-white: #fdfaf2; 
    --bg-light: #f5f0e1; 
    --text-main: #121212; 
    --text-sub: #5c5c5c; 
    --accent: #b08a40; 
    --accent-hover: #967434;
    --header-blur: saturate(180%) blur(20px);
    --transition-base: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body { 
    scroll-behavior: smooth; 
    background-color: var(--bg-white); 
    overflow-x: hidden !important; 
    width: 100% !important; 
    max-width: 100vw !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    word-break: keep-all;
}

/* Typography */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
p { color: var(--text-sub); }

.container { 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 32px; 
    overflow: hidden; /* Added safety */
}

/* Header */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(253, 250, 242, 0.8) !important; 
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur); 
    height: 72px;
    display: flex; align-items: center; 
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}
.header-inner { 
    width: 100%; display: flex; align-items: center; justify-content: space-between; 
    max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.logo span { color: var(--accent); font-weight: 300; }

.section-title {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 32px;
}
.section-subtitle {
    color: var(--accent) !important;
}

.nav-menu { display: flex; align-items: center; gap: 40px; }
@media (max-width: 1024px) { 
    .nav-menu { display: none; } 
    .hamburger { display: block !important; }
}

.nav-menu a {
    text-decoration: none; color: var(--text-main);
    font-size: 0.95rem; font-weight: 500; transition: var(--transition-base);
}
.nav-menu a:hover { color: var(--accent); }

/* UI Components */
.cta-button {
    text-decoration: none; padding: 18px 44px; border-radius: 99px; font-weight: 700;
    background: var(--accent); color: #fff; display: inline-block; 
    transition: var(--transition-base); min-height: 56px; min-width: 180px;
    text-align: center; border: none; cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); white-space: nowrap;
}
.cta-button:hover { transform: scale(1.05); background-color: var(--accent-hover); color: #fff; }
.cta-button.secondary-cta {
    background: transparent; color: var(--text-main); border: 1px solid var(--accent);
    box-shadow: none;
}

/* Sections */
.hero { padding: 180px 0 120px; text-align: left; width: 100%; max-width: 100vw; overflow: hidden; }
.hero-content { margin-left: 0; }
.hero-title { font-size: 1.5rem; line-height: 1.4; margin-bottom: 32px; }
.hero-subtitle { 
    display: inline-block;
    color: var(--accent); 
    font-weight: 600; 
    letter-spacing: 0.1em; 
    text-transform: uppercase; 
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.hero-desc { font-size: 1.2rem; margin-bottom: 56px; max-width: 800px; margin-left: 0; text-align: left; }

.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s var(--transition-base); }
.reveal.active { opacity: 1; transform: translateY(0); }

.features { padding: 120px 0; background: var(--bg-light); border-radius: 60px 60px 0 0; width: 100%; max-width: 100vw; overflow: hidden; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: 100%; }
.feature-card { 
    background: #fff; padding: 64px 40px; border-radius: 32px; border: 1px solid rgba(0,0,0,0.02);
    display: flex; flex-direction: column;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.pricing { padding: 140px 0; width: 100%; max-width: 100vw; overflow: hidden; }
.pricing-table { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px; 
    width: 100%; 
    align-items: stretch; 
}
.pricing-card { 
    background: var(--bg-light); 
    border-radius: 40px; 
    padding: 40px 32px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    transition: var(--transition-base); 
    height: 100%; 
    border: 1px solid rgba(197, 160, 89, 0.1);
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}
.pricing-card.emphasized { background: #fff; border: 2px solid var(--accent); transform: scale(1.05); z-index: 5; }
.pricing-card ul { font-size: 0.85rem; line-height: 1.4; }
.pricing-card ul li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px !important; }
.pricing-card ul li i { margin-top: 4px; flex-shrink: 0; }
.plan-price { font-size: 1.5rem; margin: 24px 0 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.plan-price small { font-size: 0.5em; margin-top: 8px; font-weight: 400; vertical-align: middle; color: var(--text-sub); display: block; }
.pricing-card .cta-button { margin-top: auto; width: 100%; }

.final-cta-title { font-size: 1.5rem; line-height: 1.4; margin-bottom: 24px; color: #fff; }

/* Slider Dots */
.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.slider-dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.slider-dots span {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.1); transition: 0.3s;
}
.slider-dots span.active { background: var(--accent) !important; transform: scale(1.2); }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(12px);
    z-index: 99999; visibility: hidden; opacity: 0;
    transition: 0.4s ease; display: flex; align-items: center; justify-content: center;
}
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-content {
    background: var(--bg-white); padding: 48px; border-radius: 32px;
    width: 90%; max-width: 500px; position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3); transform: translateY(20px); transition: 0.5s var(--transition-base);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-main); }

.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 16px 20px; border: 1.5px solid rgba(0,0,0,0.05);
    background: var(--bg-light); border-radius: 12px; font-size: 1rem; font-family: inherit;
}

/* Hamburger */
.hamburger { display: none; background: transparent; border: none; width: 44px; height: 44px; z-index: 10001; cursor: pointer; }
.hamburger span { display: block; width: 28px; height: 2px; background: var(--text-main); margin: 6px auto; transition: 0.3s; }

/* Final Mobile Resolution */
@media (max-width: 1024px) {
    html, body { width: 100vw !important; overflow-x: hidden !important; }
    .container { padding: 0 20px !important; width: 100% !important; max-width: 100% !important; overflow: hidden !important; }
    .header-inner { padding: 0 20px !important; }
    
    .hero { text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-title { font-size: 1.5rem; }
    .hero-desc { text-align: center; margin: 0 auto 56px; }

    .hamburger { display: block !important; }
    
    .nav-menu.active {
        display: flex !important; position: fixed !important; top: 0 !important; left: 0 !important;
        width: 100% !important; height: 100vh !important; background: var(--bg-white) !important;
        flex-direction: column !important; justify-content: flex-start !important; align-items: center !important; z-index: 10000 !important;
        padding-top: 100px;
        overflow-y: auto;
    }
    .nav-menu.active a:not(.mobile-contact-btn) { 
        padding: 20px 0 !important; font-size: 1.2rem !important; font-weight: 700 !important;
        width: 80% !important; text-align: center !important; border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    }
    .nav-menu.active .mobile-contact-btn { 
        margin-top: 30px !important; width: 80% !important; padding: 20px !important; 
        background: var(--accent) !important; color: #fff !important; display: flex !important;
        justify-content: center; align-items: center;
        border-radius: 99px !important; text-decoration: none !important; font-size: 1.1rem !important;
        font-weight: 700 !important;
    }
    
    .nav-footer-logo {
        margin-top: auto;
        margin-bottom: 60px;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main);
    }
    .nav-footer-logo span { color: var(--accent); font-weight: 300; }

    .features-grid, .pricing-table { 
        display: flex !important; 
        overflow-x: auto !important; 
        scroll-snap-type: x mandatory !important;
        flex-wrap: nowrap !important; 
        gap: 20px !important; 
        padding: 40px 20px 60px 20px !important; 
        margin: 0 !important; 
        width: 100% !important; 
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0 20px;
    }
    .features-grid::-webkit-scrollbar, .pricing-table::-webkit-scrollbar { display: none; }
    
    .feature-card, .pricing-card { 
        width: 90% !important; 
        flex-shrink: 0 !important; 
        scroll-snap-align: center !important; 
        margin: 0 !important;
        padding: 40px 24px !important;
        height: auto !important;
        min-height: 400px; /* Ensure uniform look */
    }
    .pricing-card { height: 500px !important; } /* Unify pricing card height on mobile */
    
    .pricing-card.emphasized { transform: scale(1); border-width: 1.5px; }
    
    .hero-actions { display: flex; flex-direction: column; gap: 16px; align-items: center; width: 100%; }
    .hero-actions .cta-button { width: 100%; max-width: 320px; }

    .final-cta-title { font-size: 1.5rem; }
}

/* Footer logo color sync */
.footer-logo { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.footer-logo span { color: var(--accent); font-weight: 300; }

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



