body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background-color: white;
    padding-top: 7vh;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 13vh;
    background: linear-gradient(135deg, rgba(106, 144, 59, 0.9), rgba(78, 116, 35, 0.9));
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display:flex;
    justify-content: space-around;
    align-items: center;
    height: 13vh;
    background-color: rgb(106, 144, 59, 0.65);
}



.nav-links {
    display: flex;
    justify-content: space-around;
    width: 56%;
    transition: all 0.3s ease-in-out;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
            background-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
}


        /* ハンバーガーメニュー */
        .burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-active {
    transform: translateX(0%) !important;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}


        /* メインコンテンツ */
        .wrapper {
            max-width: 1000px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .sec-title {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 1rem;
            
        }

        .number1 {
            margin-top: 4rem;
        }
        
        .sec-title::after {
            content: '';
            height: 4px;
            background-color: #8eb775;
            flex-grow: 1;
            max-width: 100px;
        }

        .intro-text {
            background-color: white;
            padding: 2rem;
            border-radius: 10px;
            margin-bottom: 1rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        

        .about-main {
            display: block;
            font-size: 2.2em;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .about-sub {
            display: block;
            font-size: 1.2em;
            color: #7f8c8d;
            font-weight: normal;
        }

        .wrapper p {
            font-size: 16px;
            line-height: 1.8;
            color: #444;
            margin-bottom: 20px;
            text-align: justify;
        }

        /* 研究画像 */
        .research-images {
            margin: 0 auto;
            width: 100%;
            justify-content: center;
        }

        .image-gallery {
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            margin: 0 auto;
            
        }

        .image-gallery img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            max-width: 80%;        /* 画面幅の80%に制限 */
            display: block;        /* ブロック要素として表示 */
            margin: 0 auto;        /* 左右マージンを自動で中央配置 */
        }

        .image-gallery img:hover {
            transform: scale(1.02);
        }

        /* フッター */
        footer {
    width: 100%;
    min-height: 80px;
    background-color: #2f5167;
    padding: 30px 15px; /* 上下パディングを少し増やす */
    color: white;
    margin-top: 40px; /* フッターの上のマージン */
}

div.footerWrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* 要素間の隙間 */
}

    div.footerWrapper h4 {
        color: white;
        margin: 0;
        font-size: 1.1em;
        line-height: 1.4;
    }

    div.footerWrapper p {
        color: white;
        margin: 0;
        font-size: 0.9em;
        text-align: right;
        line-height: 1.4;
    }

@media screen and (max-width: 1200px) {
    body {
        overflow-x: hidden;
        padding-top: 7vh;
    }
    .nav-links {
        right: 0;
        height: 87vh;
        flex-direction: column;
        position: absolute;
        align-items: center;
        top: 13vh;
        background-color: rgb(106, 144, 59, 0.8);
        width: 30%;
        transform: translateX(100%);
        z-index: 10;
    }

    .nav-links li {
        opacity: 0;
        z-index: 3;
    }

    .burger {
        display: block;

    }
}

@keyframes navLinksFade {
    0% {
        opacity: 0;
        transform: translateX(50%);
    }

    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

.labo-name {
    color: white;
}

.labo-name h1 {
    font-size: 15px;
}

.labo-name h2  {
    font-size: 35px;
}

.break-on-small {
    display: none;
}

@media screen and (max-width: 700px) {
            body {
                padding-top: 10vh;
            }

            header {
                height: 10vh;
            }

            nav {
                height: 10vh;
                padding: 0 15px;
            }

            .labo-name h1 {
                font-size: 12px;
            }

            .labo-name h2 {
                font-size: 20px;
            }

            .nav-links {
                top: 10vh;
            }

            .about-main {
                font-size: 1.8em;
            }

            .about-sub {
                font-size: 1em;
            }

            .wrapper {
                padding: 30px 15px;
            }
        }

        @media screen and (max-width: 600px) {
            .labo-br {
        display: inline;
        }
        }

        @media screen and (max-width: 500px) {
            .labo-name h1 {
                font-size: 10px;
            }

            .labo-name h2 {
                font-size: 18px;
            }

            .about-main {
                font-size: 1.5em;
            }

            .footerWrapper h4 {
                font-size: 14px;
            }

            
        }

        .theme {
            display: block;
            font-size: 1.3em;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .theme-sub {
            display: block;
            font-size: 0.8em;
            color: #7f8c8d;
            font-weight: normal;
        }






        /* 研究会の流れ */
    
    .process-section {
            background: white;
            padding: 60px 0;
            margin: 40px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

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

        /* タイムラインスタイル */
        .timeline {
            position: relative;
            padding: 40px 0;
        }

        /* 中央の縦線 */
        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 3px;
            height: calc(100% - 80px);
            background: linear-gradient(180deg, #6a903b, #4e7423);
            top: 40px;
        }

        .timeline-item {
            display: flex;
            align-items: center;
            margin-bottom: 60px;
            position: relative;
            opacity: 0;
            animation: fadeInSlide 0.8s ease forwards;
        }

        .timeline-item:nth-child(1) { animation-delay: 0.2s; }
        .timeline-item:nth-child(2) { animation-delay: 0.4s; }
        .timeline-item:nth-child(3) { animation-delay: 0.6s; }
        .timeline-item:nth-child(4) { animation-delay: 0.8s; }

        /* 偶数番目は逆配置 */
        .timeline-item:nth-child(even) {
            flex-direction: row-reverse;
        }

        .timeline-content {
            flex: 1;
            padding: 0 40px;
        }

        .timeline-image {
            flex: 1;
            padding: 0 40px;
        }

        .timeline-image img {
            width: 100%;
            max-width: 400px;
            height: 250px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .timeline-image img:hover {
            transform: scale(1.03);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            
        }

        .image-default {
transition: opacity 0.5s ease-in-out;
}



        /* タイムラインマーカー */
        .timeline-marker {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 50px;
            background: white;
            border: 4px solid #6a903b;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #6a903b;
            font-size: 20px;
            z-index: 10;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .process-card {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border-left: 4px solid #6a903b;
        }

        .process-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .process-card h3 {
            font-size: 24px;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .process-time {
            display: inline-block;
            background: #4e7423;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .process-card p {
            color: #555;
            line-height: 1.8;
            font-size: 15px;
        }

        /* 研究会の特徴セクション */
        .features-section {
            background: #f8f9fa;
            padding: 60px 0;
            margin: 40px 0;
        }

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

        .feature-card {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            text-align: center;
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #6a903b, #4e7423);
            border-radius: 50%;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: bold;
        }

        .feature-card h3 {
            font-size: 20px;
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .feature-card p {
            color: #666;
            line-height: 1.6;
            font-size: 14px;
        }

        /* レスポンシブ対応 */
        @media screen and (max-width: 900px) {
            .timeline::before {
                display: none;
            }

            .timeline-item,
            .timeline-item:nth-child(even) {
                flex-direction: column;
                text-align: center;
            }

            .timeline-marker {
                position: relative;
                left: auto;
                transform: none;
                margin: 20px auto;
            }

            .timeline-content,
            .timeline-image {
                padding: 20px;
            }

            .timeline-image img {
                margin: 0 auto;
            }

            .process-card {
                border-left: none;
                border-top: 4px solid #6a903b;
            }
        }

        @media screen and (max-width: 600px) {
            .process-card h3 {
                font-size: 20px;
            }

            .features-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        

        /* アニメーション */
        .fade-in {
            animation: fadeIn 0.6s ease-in;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInSlide {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }