/* ============================================
   デザイン思考研修LP - カスタムスタイル
   ============================================ */

/* Header Styles */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Custom Animations */
@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply Animations */
.animate-fade-in-down {
    animation: fade-in-down 1s ease-out;
}

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

.animate-fade-in {
    animation: fade-in 1.2s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll Animation Classes */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible,
.slide-in-right.visible,
.scale-in.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

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

body {
    overflow-x: hidden;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 5px;
}

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

/* Hero Section Enhancements */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Card Hover Effects */
.schedule-card,
.instructor-card,
.photo-card,
.process-card {
    transition: all 0.3s ease;
}

.schedule-card:hover,
.instructor-card:hover {
    transform: translateY(-8px);
}

/* Stats Counter Animation */
.stats-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stats-card:nth-child(1) {
    transition-delay: 0.1s;
}

.stats-card:nth-child(2) {
    transition-delay: 0.2s;
}

.stats-card:nth-child(3) {
    transition-delay: 0.3s;
}

.stats-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Button Enhancements */
button,
a.button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button::before,
a.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

button:hover::before,
a.button:hover::before {
    width: 300px;
    height: 300px;
}

/* Process Diagram Image Styling */
.process-diagram {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.process-diagram:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

/* Schedule Cards Staggered Animation */
.schedule-card:nth-child(1) {
    animation-delay: 0.2s;
}

.schedule-card:nth-child(2) {
    animation-delay: 0.4s;
}

/* Instructor Cards */
.instructor-card:hover .ring-4 {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
}

/* Photo Overlay Enhancement */
.photo-card img {
    filter: brightness(1);
    transition: filter 0.5s ease;
}

.photo-card:hover img {
    filter: brightness(0.8);
}

/* CTA Section Animation */
#cta {
    animation: subtle-pulse 4s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
    50% {
        box-shadow: 0 0 50px 10px rgba(37, 99, 235, 0.1);
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

/* Loading Animation for Images */
img {
    opacity: 1;
}

img[src] {
    animation: fade-in 0.5s ease-in forwards;
}

/* Accessibility Improvements */
button:focus,
a:focus {
    outline: 3px solid #60A5FA;
    outline-offset: 2px;
}

/* Comparison Table Mobile Adjustments */
@media (max-width: 640px) {
    /* Design Thinking vs Product-Out Table */
    table thead th {
        font-size: 0.75rem !important;
        padding: 0.75rem 0.5rem !important;
    }
    
    table tbody td {
        font-size: 0.75rem !important;
        padding: 0.75rem 0.5rem !important;
    }
    
    table tbody td p,
    table tbody td div {
        font-size: 0.7rem !important;
    }
    
    /* Adjust specific cells */
    table tbody td.font-semibold {
        font-size: 0.75rem !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }
    */
}

/* Print Styles */
@media print {
    #hero,
    #cta,
    footer {
        page-break-after: always;
    }
    
    .shadow-lg,
    .shadow-xl,
    .shadow-md {
        box-shadow: none !important;
    }
}

/* Decorative Elements */
.section-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563EB, transparent);
    margin: 4rem 0;
}

/* Tag Badges Animation */
.bg-blue-50,
.bg-cyan-50 {
    transition: all 0.3s ease;
}

.bg-blue-50:hover {
    background-color: #2563EB;
    color: white;
}

.bg-cyan-50:hover {
    background-color: #06B6D4;
    color: white;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #2563EB;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Utility Classes */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
}

/* Shadow Variants */
.shadow-blue {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.shadow-cyan {
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.15);
}

/* Gradient Backgrounds */
.bg-gradient-blue {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
}

.bg-gradient-cyan {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

/* Text Selection */
::selection {
    background-color: #60A5FA;
    color: white;
}

::-moz-selection {
    background-color: #60A5FA;
    color: white;
}

/* Responsive Padding */
@media (max-width: 640px) {
    section {
        padding: 3rem 0;
    }
}

/* Hero Parallax Effect (Optional Enhancement) */
@media (min-width: 1024px) {
    #hero img {
        transform: scale(1.1);
        transition: transform 8s ease-out;
    }
    
    #hero:hover img {
        transform: scale(1.15);
    }
}

/* Microinteractions */
.process-card:hover {
    animation: pulse-scale 0.6s ease;
}

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

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Performance Optimization */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Accessibility - Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563EB;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}
