/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widgets {
    margin-bottom: 0 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* Course Header */
.course-header {
    margin-bottom: 2rem;
}

.course-category {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.course-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
}

.course-image {
    margin-bottom: 2rem;
}

.thumbnail-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.thumbnail-placeholder svg {
    width: 60px;
    height: 60px;
    color: white;
    opacity: 0.8;
}

/* Course Overview Table */
.course-overview-table {
    margin-bottom: 3rem;
}

.course-overview-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
}

thead th {
    font-size: 1.125rem;
    padding: 0.875rem 1.25rem !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)) !important;
    border-radius: 10px 10px 0 0;
    color: white !important;
    text-align: center !important;
}

.course-overview-table th,
.course-overview-table td {
    padding: 0.8rem 1rem;
    border: 1px solid #dee2e6;
    text-align: left;
    vertical-align: top;
}

.course-overview-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    width: 20%;
}

.course-overview-table td {
    background: white;
    color: #212529;
}

/* Section Styles */
section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* Course Description */
.course-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

/* Curriculum Section */
.curriculum-section {
    margin-bottom: 3rem;
}

.chapter-block {
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.chapter-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.chapter-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.curriculum-table {
    width: 100%;
    margin-bottom: 0 !important;
    border-collapse: collapse;
}

.curriculum-table thead th {
    background: #e9ecef;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    text-align: left;
}

.curriculum-table thead th:first-child {
    width: 75%;
}

.curriculum-table thead th:last-child {
    width: 25%;
    text-align: right;
}

.curriculum-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.curriculum-table tbody tr:last-child {
    border-bottom: none;
}

.curriculum-table tbody td {
    padding: 0.8rem 1rem;
    color: #495057;
    background: white;
}

.curriculum-table tbody tr:hover {
    background: #f8f9fa;
}

.curriculum-table tbody td:last-child {
    font-weight: 500;
    color: #667eea;
}

/* Learning Goals */
.learning-goals ul {
    list-style: none;
    padding: 0;
}

.learning-goals li {
    display: flex;
    align-items: start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.learning-goals li:last-child {
    border-bottom: none;
}

.learning-goals li::before {
    content: '✓';
    background: #28a745;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.learning-goals li {
    color: #495057;
    line-height: 1.6;
}

/* Target Audience Table */
.target-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    margin-top: 1rem;
}

.target-table th,
.target-table td {
    padding: 1rem;
    border: 1px solid #dee2e6;
    text-align: center;
}

.target-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.target-table td {
    background: white;
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

/* Prerequisites */
.prerequisites p {
    color: #495057;
    line-height: 1.6;
}

/* Instructor Info */
.instructor-card {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instructor-avatar svg {
    width: 40px;
    height: 40px;
    color: white;
}

.instructor-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.instructor-title {
    font-size: 1rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 1rem;
}

.instructor-experience {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* Action Section */
.action-section {
    text-align: center;
    padding: 2rem 0;
    margin: 3rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 200px;
    justify-content: center;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.secondary-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
}

.primary-btn svg,
.secondary-btn svg {
    width: 18px;
    height: 18px;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
    position: relative;
}

.faq-question h3 {
    background: #667eea;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    margin: 0;
}

.faq-question p {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.4;
}

.faq-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #e9ecef;
    color: #6c757d;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #dee2e6;
}

.faq-answer p {
    color: #495057;
    line-height: 1.7;
    margin: 0;
}

/* Related Courses */
.related-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-course-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-course-card:hover {
    background: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.course-thumbnail {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-thumbnail svg {
    width: 24px;
    height: 24px;
    color: white;
}

.course-info {
    flex: 1;
}

.course-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.3;
}

.course-info h4 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-info h4 a:hover {
    color: #667eea;
}

.course-category {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.course-duration {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
    margin: 0;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-title {
        font-size: 1.8rem;
    }

    .course-overview-table th,
    .course-overview-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .curriculum-table thead th,
    .curriculum-table tbody td {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .instructor-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        max-width: 300px;
    }

    .related-courses-grid {
        grid-template-columns: 1fr;
    }

    .related-course-card {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        gap: 1rem;
    }

    .nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .faq-question {
        flex-direction: column;
        gap: 0.5rem;
    }

    .faq-number {
        position: static;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main {
        padding: 1.5rem 0;
    }

    .course-title {
        font-size: 1.5rem;
    }

    .course-overview-table {
        overflow-x: auto;
    }

    .curriculum-table {
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chapter-header {
        padding: 0.8rem 1rem;
    }

    .chapter-header h3 {
        font-size: 1rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Smooth Transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .header,
    .breadcrumb,
    .action-section,
    .footer {
        display: none;
    }

    .main {
        padding: 0;
    }

    .course-title {
        color: #212529;
    }

    .course-overview-table,
    .curriculum-table {
        border: 1px solid #000;
    }

    .course-overview-table th,
    .course-overview-table td,
    .curriculum-table th,
    .curriculum-table td {
        border: 1px solid #000;
    }
}