/* OkyPi感情経済プラットフォーム - カスタムCSS */

/* 基本設定 */
:root {
    --primary-purple: #7c3aed;
    --primary-pink: #ec4899;
    --primary-indigo: #4f46e5;
    --primary-green: #10b981;
    --gradient-purple-pink: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --gradient-purple-indigo: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    --gradient-green-blue: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

/* フォント設定 */
.font-inter {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* ナビゲーション */
nav {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* ヒーローセクション */
.hero-gradient {
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
}

/* ホバーエフェクト */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* グラデーションボタン */
.btn-gradient-purple {
    background: var(--gradient-purple-pink);
    transition: all 0.3s ease;
}

.btn-gradient-purple:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.btn-gradient-indigo {
    background: var(--gradient-purple-indigo);
    transition: all 0.3s ease;
}

.btn-gradient-indigo:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #3730a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-gradient-green {
    background: var(--gradient-green-blue);
    transition: all 0.3s ease;
}

.btn-gradient-green:hover {
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* カードエフェクト */
.card-hover {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(124, 58, 237, 0.2);
}

/* タイムライン */
.timeline-line {
    background: linear-gradient(to bottom, #a855f7, #ec4899);
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-gentle {
    animation: pulse 2s infinite;
}

/* スクロール時のアニメーション */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 背景パターン */
.pattern-dots {
    background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* グラデーションテキスト */
.text-gradient-purple {
    background: var(--gradient-purple-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* モバイル最適化 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-dot {
        position: relative;
        margin: 0 auto 1rem auto;
    }
}

/* タブレット最適化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}

/* デスクトップ最適化 */
@media (min-width: 1025px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .card-hover:hover {
        transform: translateY(-12px);
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* フォーカス状態 */
*:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* 印刷スタイル */
@media print {
    .no-print {
        display: none !important;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* カスタムスクロールバー（WebKit系ブラウザ） */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-purple), var(--primary-pink));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #6d28d9, #db2777);
}

/* 特殊効果 */
.glow-effect {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.neon-text {
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* グリッドアニメーション */
.grid-item {
    transition: all 0.3s ease;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }

/* ローディングアニメーション */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* モーダル */
.modal-backdrop {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 特殊レイアウト */
.masonry-grid {
    column-count: 3;
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

/* 追加のユーティリティクラス */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
    }
}