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 */
.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);
}

.sec-title {
    margin-top: 30px;
}



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

        .sec-title {
            text-align: center;
            margin-bottom: 20px;
            position: relative;
            padding: 30px 0;
        }

        .sec-title::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #6a903b, #4e7423);
            border-radius: 2px;
        }

        .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: 100%;        /* 画面幅の80%に制限 */
            display: block;        /* ブロック要素として表示 */
            margin: 0 auto;        /* 左右マージンを自動で中央配置 */
        }

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

        /* フッター */
        footer {
            background: linear-gradient(135deg, #2f5167, #1e3a52);
            color: white;
            padding: 40px 20px;
            margin-top: 60px;
        }

        .footerWrapper {
            max-width: 1000px;
            margin: 0 auto;
            text-align: center;
        }

        .footerWrapper h4 {
            font-size: 16px;
            margin-bottom: 15px;
            line-height: 1.6;
            font-weight: normal;
        }

        .footerWrapper p {
            font-size: 14px;
            opacity: 0.8;
        }

        .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: 1200px) {
    body {
        overflow-x: hidden;
    }
    .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%);
    }
}



@media screen and (max-width: 700px) {
    .labo-name h1 {
    font-size: 14px;
    }
    .labo-name h2  {
    font-size: 27px;
    }
    header {
        height: 8vh;
    }
    

    
}

@media screen and (max-width: 550px) {
    .labo-name h1 {
    font-size: 12px;
    }
    .labo-name h2  {
    font-size: 24px;
    }
    .break-on-small {
        display: block;
    }
}

        /* レスポンシブ対応 */
        @media screen and (max-width: 1220px) {

            .labo-br {
            display: none;
            }
    
            .nav-links {
                position: fixed;
                top: 13vh;
                right: -100%;
                width: 300px;
                height: calc(100vh - 13vh);
                background: rgba(106, 144, 59, 0.95);
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                padding-top: 40px;
                transition: right 0.3s ease;
            }

            .nav-links.nav-active {
                right: 0;
            }

            .nav-links li {
                margin: 10px 0;
                opacity: 0;
                animation: fadeInSlide 0.5s ease forwards;
            }

            
        }

        @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;
            }

            
        }

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

        /* スクロール効果 */
        .wrapper {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease forwards;
        }

        .wrapper:nth-child(2) { animation-delay: 0.2s; }
        .wrapper:nth-child(3) { animation-delay: 0.4s; }
        .wrapper:nth-child(4) { animation-delay: 0.6s; }

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

        .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;
        }