/* AIプログラミング体験教室 - カスタムスタイル */

:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-soft: rgba(99, 102, 241, 0.1);
    
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --danger-color: #ef4444;
    
    --dark-color: #1f2937;
    --light-bg: #f8fafc;
    --text-muted: #6b7280;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Typography */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Bootstrap Utilities */
.bg-primary-soft {
    background-color: var(--primary-soft) !important;
}

.bg-gradient {
    background: var(--gradient-primary) !important;
}

.rounded-4 {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-5 {
    border-radius: var(--border-radius-xl) !important;
}

/* Navigation */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    color: var(--primary-color) !important;
	display: inline-block;
    line-height: 1.2;
}

.site-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-subtitle {
  display: block;
  font-size: 0.9rem;
  margin-top: 2px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    z-index: -1;
    opacity: 0.1;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Hybrid Learning Visual */
.hybrid-learning-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.learning-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
}

.learning-card:hover {
    transform: scale(1.02);
}

.learning-card .card-header {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.learning-card .card-body {
    padding: 1.5rem;
}

.plus-icon,
.equal-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

div.equal-icon .rotate-vertical {
    display: inline-block;
    transform: rotate(90deg);
}

.result-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    color: white;
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 1.5rem;
    box-shadow: var(--shadow-large);
}

/* Partner Cards */
.partner-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.partner-card img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Curriculum Cards */
.curriculum-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.curriculum-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.curriculum-list {
    list-style: none;
    padding-left: 0;
}

.curriculum-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.curriculum-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Application Form */
.application-form-container {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-large);
}

.application-form .form-control,
.application-form .form-select {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.application-form .form-control:focus,
.application-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-soft);
}

.interest-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        margin-bottom: 3rem;
    }
	
	.slider-title-1 {
		font-size: 12px !important;
	}
	.slider-title-2 {
		font-size: 13px !important;
	}
}
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hybrid-learning-visual {
        margin-top: 3rem;
    }
    
    .application-form-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .interest-checkboxes {
        flex-direction: column;
    }
    
    .curriculum-number {
        left: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-stats .row {
        text-align: center;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
	
	.slider-title-1 {
		font-size: 10px !important;
	}
	.slider-title-2 {
		font-size: 11px !important;
	}
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f9fafb;
        --light-bg: #1f2937;
        --text-muted: #9ca3af;
    }
}

/* Print styles */
@media print {
    .navbar,
    #apply,
    footer {
        display: none;
    }
    
    .hero-section,
    section {
        page-break-inside: avoid;
    }
}

/* Loading animation for form submission */
.btn.loading {
    position: relative;
    color: transparent;
}

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

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

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
