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

:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --text-dark: #000000;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #fafafa;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --max-width: 1280px;
    --accent-color: #ff6b6b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.logo a {
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.6;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: opacity 0.3s ease;
    position: relative;
    letter-spacing: 0.05em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-dark);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 1px;
    background: var(--text-dark);
    margin: 4px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"%3E%3Cpath d="M 100 0 L 0 0 0 100" fill="none" stroke="%23f0f0f0" stroke-width="1"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23grid)" /%3E%3C/svg%3E');
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease;
    z-index: 1;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title-main {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 200;
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: var(--text-dark);
    word-break: keep-all;
    line-break: strict;
    overflow-wrap: break-word;
}

.hero-title-sub {
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: 300;
    color: var(--text-gray);
    letter-spacing: 0.1em;
    margin-top: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: var(--border-color);
}

.scroll-indicator span {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--text-dark);
    border-bottom: 1px solid var(--text-dark);
    transform: translateX(-50%) rotate(45deg);
    animation: scroll 2s infinite;
}

/* Concept Section */
.concept-section {
    padding: 160px 0;
    background: var(--white);
}

.section-title {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 300;
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    color: var(--text-dark);
    letter-spacing: 0.08em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--text-dark);
}

.concept-content {
    max-width: 900px;
    margin: 0 auto;
}

.concept-card {
    background: transparent;
    padding: 80px 0;
    margin-bottom: 80px;
    position: relative;
}

.concept-text {
    font-size: 16px;
    line-height: 2.2;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 300;
}

.concept-text.highlight {
    font-weight: 400;
    color: var(--text-dark);
    border-left: 2px solid var(--text-dark);
    padding-left: 30px;
    margin: 60px 0;
    font-size: 18px;
}

.concept-statement h3 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: 0.08em;
}

.concept-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin: 80px 0;
}

.point {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.point:hover {
    border-color: var(--text-dark);
}

.point:hover::before {
    transform: translateX(0);
}

.point-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 30px;
    opacity: 0.8;
}

.point h4 {
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.point p {
    font-weight: 300;
    line-height: 1.8;
    font-size: 14px;
}

.mission-statement {
    text-align: center;
    font-size: 18px;
    line-height: 2;
    margin-top: 80px;
    padding: 60px;
    background: var(--text-dark);
    color: var(--white);
    letter-spacing: 0.05em;
    font-weight: 300;
}

.mission-statement strong {
    font-weight: 400;
    font-size: 20px;
    display: block;
    margin-bottom: 20px;
}

/* Activity Section */
.activity-section {
    padding: 160px 0;
    background: var(--bg-light);
}

.activity-item {
    margin-bottom: 120px;
}

.activity-title {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 60px;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: 0.08em;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.activity-card {
    background: var(--white);
    padding: 0;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card-image {
    width: 100%;
    height: 240px;
    background: var(--bg-gray);
    position: relative;
    overflow: hidden;
}


.activity-card-content {
    padding: 40px;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.activity-card h4 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.activity-card p {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 14px;
}

.activity-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.activity-description p {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 300;
}

.course-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.course {
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.course:hover {
    border-color: var(--text-dark);
}

.course h5 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.course p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Team Section */
.team-section {
    padding: 160px 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.team-member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--bg-gray);
    margin: 0 auto 30px;
    position: relative;
    overflow: hidden;
}


.team-member h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.team-member .role {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.team-member p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 300px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 160px 0;
    background: var(--bg-light);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 300;
    line-height: 2;
}

.contact-link {
    font-size: 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s ease;
    letter-spacing: 0.05em;
}

.contact-link:hover {
    opacity: 0.6;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.05em;
    font-weight: 300;
}

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

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) rotate(45deg) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) rotate(45deg) translate(-10px, 10px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Course pages styles */
.presentation-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    padding: 20px;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.slide-description {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 4px;
}

.slide-description h4 {
    font-weight: 500;
    margin-bottom: 10px;
}

.slide-description p {
    font-size: 14px;
    line-height: 1.8;
}

.slider-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    z-index: 2;
}

.slider-nav-button.prev {
    left: 20px;
}

.slider-nav-button.next {
    right: 20px;
}

.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--primary-color);
}

/* Course pages responsive styles */
@media (max-width: 770px) {
    .course-section {
        padding: 0;
        overflow-x: hidden;
    }
    
    .course-section table {
        table-layout: fixed;
        width: 100%;
    }
    
    .course-section table td {
        word-break: break-word;
        padding: 10px;
        font-size: 14px;
    }
    
    .presentation-slider {
        width: 100%;
        padding: 0;
        overflow: hidden;
    }
    
    .slider-container {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }
    
    .slide {
        width: 100%;
        padding: 10px !important;
        box-sizing: border-box;
    }
    
    .slide img {
        max-width: 100%;
        height: auto;
    }
    
    .course-content {
        padding: 0;
        overflow-x: hidden;
    }
    
    .course-section li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .course-section ul {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
        height: 60px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title-main {
        font-size: 40px;
    }

    .hero-title-sub {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 60px;
    }

    .concept-section,
    .activity-section,
    .team-section,
    .contact-section {
        padding: 80px 0;
    }

    .concept-card {
        padding: 40px 0;
    }

    .activity-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .concept-points {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .course-info {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}