/* Portfolio Page Specific Styles */

/* カーソル問題の最終修正 */
.custom-cursor, #customCursor {
    display: none !important;
}

* {
    cursor: auto !important;
}

/* Portfolio Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, #024F83 0%, #1e40af 100%);
}

/* Font Weights for Portfolio */
.font-noto {
    font-family: 'Noto Sans JP', sans-serif;
}

.font-Light {
    font-weight: 300;
}

/* Portfolio Card Animations */
.portfolio-card {
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-card .portfolio-icon {
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-icon {
    transform: scale(1.1);
}

/* Concept Showcase Animations */
.concept-card {
    transition: all 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Case Study Cards */
.case-study-card {
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Tech Stack Tags */
.tech-stack-tag {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid rgba(2, 79, 131, 0.1);
    transition: all 0.3s ease;
}

.tech-stack-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 79, 131, 0.2);
}

/* Video/Demo Preview Styles */
.video-preview {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.video-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.video-preview:hover::before {
    opacity: 0.5;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Phone Frame Styles */
.phone-frame {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 1.5rem;
    padding: 0.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
}

/* Desktop Preview Styles */
.desktop-preview {
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Partners Logo Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    max-width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* CTA Section Enhancements */
.cta-enhanced {
    position: relative;
    overflow: hidden;
}

.cta-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.cta-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.cta-enhanced span {
    position: relative;
    z-index: 1;
}

/* Timeline Animation */
.timeline-progress {
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: scale(1.05);
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .portfolio-card {
        padding: 1.5rem;
    }
    
    .portfolio-card:hover {
        transform: translateY(-4px);
    }
    
    .concept-card {
        padding: 1rem;
    }
    
    .tech-stack-tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Loading States */
.loading-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;
    }
}

/* Focus States for Accessibility */
.focus-visible:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .portfolio-hero {
        background: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
    }
    
    .portfolio-card,
    .concept-card,
    .case-study-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tech-stack-tag {
        background: linear-gradient(135deg, #1f2937, #374151);
        color: #f9fafb;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}