/* 
ママスクエア前橋 - 企業向けBPOサービス
BtoBセールスランディングページ用CSS

ロゴカラーパレット:
- ライトグリーン: #8DC73F
- オレンジ: #F7941D  
- ブルー: #00ADEF
- レッド: #ED1C24
*/

/* Logo Brand Colors */
:root {
    --brand-green: #8DC73F;
    --brand-orange: #F7941D;
    --brand-blue: #00ADEF;
    --brand-red: #ED1C24;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Hero Section Animations and Background */
.hero-section {
    animation: fadeInUp 1s ease-out;
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    padding-top: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(141, 199, 63, 0.03), rgba(0, 173, 239, 0.03));
    z-index: 5;
}

/* Background Image Animation */
.hero-section img {
    transition: transform 20s ease-in-out;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Parallax Effect for Hero Background */
.hero-parallax {
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

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

/* Problem Cards Hover Effects */
.problem-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

/* Reason Items Animation */
.reason-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
}

.reason-item:nth-child(2) {
    animation-delay: 0.2s;
}

.reason-item:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Solution Cards with Background Images */
.solution-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
    z-index: 15;
}

.solution-card:hover::before {
    left: 100%;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.solution-card:hover img {
    transform: scale(1.05);
    opacity: 0.18;
    transition: all 0.3s ease;
}

.solution-card:nth-child(1):hover {
    border-color: #8DC73F;
}

.solution-card:nth-child(2):hover {
    border-color: #F7941D;
}

.solution-card:nth-child(3):hover {
    border-color: #00ADEF;
}

/* Background Image Styling */
.solution-card img {
    transition: all 0.3s ease;
}

/* Voice Cards */
.voice-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.voice-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.voice-section:nth-child(1) .voice-card:hover {
    border-left-color: #ec4899;
}

.voice-section:nth-child(2) .voice-card:hover {
    border-left-color: #3b82f6;
}

/* Button Animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-primary:hover::before {
    left: 100%;
}

/* Form Styles */
#contact-form {
    animation: fadeInUp 0.8s ease-out;
}

#contact-form input:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Loading Animation for Form Submission */
.loading {
    position: relative;
}

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

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

/* Success Message Animation */
#success-message {
    animation: slideDown 0.5s ease-out;
}

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

/* Header Fixed Background */
header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    animation: slideDownMenu 0.3s ease-out;
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Section Header Animations */
.section-badge {
    animation: fadeInDown 0.8s ease-out;
}

.section-title {
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Gradient Text Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.gradient-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Counter Animation */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating Animation for Icons */
.floating-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Custom Shadows */
.shadow-custom {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-custom-lg {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Pulse Animation for CTA Buttons */
.pulse-on-hover:hover {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(234, 88, 12, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
        align-items: flex-start;
    }
    
    .hero-first-line {
        font-size: 0.9em;
    }
    
    .hero-subtitle-clean {
        white-space: normal !important;
    }
    
    .hero-title-clean {
        font-size: 4.5rem;
    }
    
    .hero-title-clean span {
        display: block;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 4.5rem !important;
    }
    
    .hero-subtitle-clean {
        font-size: 2.5rem !important;
    }
    
    .problem-card h3 {
        font-size: 2.5rem !important;
    }
    
    .problem-card p {
        font-size: 1.5rem !important;
    }
    
    .hero-section p {
        font-size: 1.25rem;
    }
    
    .hero-section .absolute.inset-0 img {
        object-position: center;
    }
    
    .hero-section .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-section .grid > div {
        padding: 0.75rem;
    }
    
    .hero-section .grid > div h3 {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }
    
    .section-badge {
        padding: 0.5rem 1.5rem;
    }
    
    .section-badge span {
        font-size: 0.75rem;
    }
    
    .solution-card h3,
    .reason-item h3 {
        font-size: 1.5rem;
    }
}

/* Section Header Hover Effects */
.section-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Enhanced Section Styling */
.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-green));
    border-radius: 2px;
}

/* Clean Hero Title */
.hero-title-clean {
    position: relative;
    z-index: 20;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hero-first-line {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-title-clean span:last-child {
    background-size: 200% auto;
    animation: cleanGradientShift 4s ease-in-out infinite alternate;
}

@keyframes cleanGradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.hero-subtitle-clean {
    font-weight: 500;
    position: relative;
    z-index: 20;
    opacity: 0.9;
}

/* Backdrop Blur Effect for Better Readability */
.hero-content-backdrop {
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Key Points Cards */
.hero-section .grid > div {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-section .grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(141, 199, 63, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
}

.hero-section .grid > div i {
    transition: transform 0.3s ease;
}

.hero-section .grid > div:hover i {
    transform: scale(1.1);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Brand Color Utilities */
.text-brand-green { color: var(--brand-green) !important; }
.text-brand-orange { color: var(--brand-orange) !important; }
.text-brand-blue { color: var(--brand-blue) !important; }
.text-brand-red { color: var(--brand-red) !important; }

.bg-brand-green { background-color: var(--brand-green) !important; }
.bg-brand-orange { background-color: var(--brand-orange) !important; }
.bg-brand-blue { background-color: var(--brand-blue) !important; }
.bg-brand-red { background-color: var(--brand-red) !important; }

.border-brand-green { border-color: var(--brand-green) !important; }
.border-brand-orange { border-color: var(--brand-orange) !important; }
.border-brand-blue { border-color: var(--brand-blue) !important; }
.border-brand-red { border-color: var(--brand-red) !important; }

/* Hover Effects with Brand Colors */
.hover-brand-green:hover { color: var(--brand-green) !important; }
.hover-brand-orange:hover { color: var(--brand-orange) !important; }
.hover-brand-blue:hover { color: var(--brand-blue) !important; }
.hover-brand-red:hover { color: var(--brand-red) !important; }

/* Custom Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Section Spacing */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Enhanced Button Styles */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Service Icons Animation */
.service-icon {
    transition: all 0.3s ease;
}

.solution-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Progress Indicators */
.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e5e7eb;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background-color: #3b82f6;
    transform: scale(1.2);
}

/* Testimonial Quotes */
.quote-mark {
    font-size: 4rem;
    line-height: 1;
    opacity: 0.1;
    position: absolute;
    top: -10px;
    left: -10px;
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

footer a:hover {
    color: #60a5fa;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Custom Scrollbar for Webkit Browsers */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .problem-card,
    .solution-card,
    .voice-card {
        border: 2px solid #000;
    }
    
    a:focus,
    button:focus {
        outline: 3px solid #000;
    }
}