/* ========================================
   StartPage Custom Styles (v2)
   ======================================== */

:root {
    --primary: #2563EB;
    --secondary: #10B981;
    --accent: #F59E0B;
    --background: #F9FAFB;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--background);
    color: #1f2937;
    line-height: 1.6;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* ========================================
   Fixed Contact Button
   ======================================== */

.fixed-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.fixed-contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.fixed-contact-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fixed-contact-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .fixed-contact-btn span {
        display: none;
    }
    
    .fixed-contact-btn {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* ========================================
   Hero Background Slider
   ======================================== */

.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero-bg-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-bg-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Hero Section Animations
   ======================================== */

/* Floating Elements Animation */
@keyframes float1 {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(30px) scale(1.1);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-40px) scale(1.2);
    }
}

.floating-1 {
    animation: float1 8s ease-in-out infinite;
}

.floating-2 {
    animation: float2 10s ease-in-out infinite;
}

/* Fade In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Scroll Indicator Animation */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes scrollWheel {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

/* Scroll Indicator Wrapper - Position adjusted */
.scroll-indicator-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.scroll-indicator {
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.scroll-mouse {
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-wheel {
    animation: scrollWheel 2s ease-in-out infinite;
}

/* Responsive adjustments for scroll indicator */
@media (max-width: 768px) {
    .scroll-indicator-wrapper {
        bottom: 20px;
    }
}

@media (min-width: 640px) and (max-width: 1024px) {
    .scroll-indicator-wrapper {
        bottom: 40px;
    }
}

/* ========================================
   Button Styles
   ======================================== */

.cta-button {
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-button:active {
    transform: scale(0.98);
}

/* ========================================
   Card Hover Effects
   ======================================== */

.service-card,
.pricing-card,
.process-step,
.testimonial-card,
.industry-card {
    transition: all 0.3s ease;
}

.service-card:hover,
.process-step:hover,
.industry-card:hover {
    transform: translateY(-8px);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Counter Animation
   ======================================== */

.counter {
    display: inline-block;
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-answer {
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 500px !important;
}

.faq-icon {
    transition: transform 0.2s ease;
}

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

/* ========================================
   Form Styles
   ======================================== */

input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Form Message Styles */
.form-success {
    padding: 1rem;
    background-color: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 0.75rem;
    color: #065f46;
    font-weight: 600;
}

.form-error {
    padding: 1rem;
    background-color: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 0.75rem;
    color: #991b1b;
    font-weight: 600;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    /* Mobile adjustments */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .floating-1,
    .floating-2 {
        display: none;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* ========================================
   Loading State
   ======================================== */

.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .no-print,
    .fixed-contact-btn {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
}
