/* Essential styles only */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
    scroll-behavior: smooth;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #A0605B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B4A46;
}


/* Fixed Action Buttons Styles */
.call-button {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #A0605B 0%, #8B4A46 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(160, 96, 91, 0.3);
    animation: callButtonPulse 2s infinite;
}

.call-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(160, 96, 91, 0.4);
}

.call-button:active {
    transform: translateY(0) scale(0.98);
}

.map-button {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.map-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.map-button:active {
    transform: translateY(0) scale(0.98);
}

@keyframes callButtonPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(160, 96, 91, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(160, 96, 91, 0.5), 0 0 0 8px rgba(160, 96, 91, 0.1);
    }
}

/* Action buttons responsive styles */
@media (max-width: 480px) {
    .call-button {
        padding: 12px 20px;
        font-size: 16px;
        min-width: fit-content;
    }
    
    .call-button .phone-number {
        display: none;
    }
    
    .call-button .call-text {
        font-size: 16px;
        white-space: nowrap;
    }
    
    .map-button {
        width: 56px;
        height: 56px;
    }
    
    .map-button i {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .call-button {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .call-button .call-text {
        font-size: 15px;
    }
    
    .map-button {
        width: 52px;
        height: 52px;
    }
    
    .map-button i {
        font-size: 16px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .call-button {
        padding: 14px 24px;
        font-size: 17px;
    }
    
    .map-button {
        width: 64px;
        height: 64px;
    }
    
    .map-button i {
        font-size: 22px;
    }
}


/* Mobile header optimizations - use higher specificity instead of !important */
@media screen and (max-width: 1023px) {
    body header.relative.min-h-screen.overflow-hidden {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        position: relative;
        transform: none;
        will-change: auto;
    }
    
    /* Fix for mobile KV sections with higher specificity */
    body .lg\:hidden .mobile-kv-upper {
        height: 50vh;
        min-height: 50vh;
        max-height: 50vh;
        position: relative;
        overflow: hidden;
        width: 100vw;
        left: 0;
        right: 0;
    }
    
    body .lg\:hidden .mobile-kv-lower {
        height: 50vh;
        min-height: 50vh;
        max-height: 50vh;
        position: relative;
        width: 100vw;
        left: 0;
        right: 0;
    }
    
    /* Ensure KV image doesn't change size with higher specificity */
    body .lg\:hidden .mobile-kv-upper img.w-full.h-full.object-cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
        will-change: auto;
    }
    
    /* Disable all transforms on mobile header elements */
    body .lg\:hidden div,
    body .lg\:hidden img,
    body .lg\:hidden span {
        transform: none;
        will-change: auto;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    
    /* Optimize mobile scroll performance */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce motion for better performance on mobile */
    body header.relative.min-h-screen.overflow-hidden {
        transform: none;
        will-change: auto;
    }
    
    
    /* Add bottom padding to prevent content being covered by call button */
    main {
        padding-bottom: 100px;
    }
    
    footer {
        padding-bottom: 120px;
    }
}