* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, rgb(102, 126, 234, 0.3) 0%, rgb(102, 126, 234) 100%);
            min-height: 100vh;
            padding: 20px;
            padding-top: 7vh;
        }

        /* ヘッダー */
    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);
}

.nav a {
            color: white;
            text-decoration: none;
            font-size: 16px;
            transition: color 0.3s;
        }

        .nav a:hover {
            color: rgba(106, 144, 59, 1);
        }

        .nav a.active {
            color: rgba(106, 144, 59, 1);
            border-bottom: 2px solid rgba(106, 144, 59, 1);
            padding-bottom: 2px;
        }

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

.labo-name {
    color: white;
}

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

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

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

        /* フィルターボタン */
        .filter-buttons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 120px;
            margin-bottom: 40px;
            animation: fadeInUp 0.8s ease;
        }

        .filter-btn {
            padding: 10px 25px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid white;
            color: white;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
            backdrop-filter: blur(10px);
        }

        .filter-btn:hover {
            background: white;
            color: #764ba2;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .filter-btn.active {
            background: white;
            color: #764ba2;
        }

        /* ギャラリーコンテナ */
        .gallery-container {
            max-width: 1400px;
            margin: 0 auto;
            columns: 4;
            column-gap: 20px;
            animation: fadeIn 1s ease;
        }

        /* ギャラリーアイテム */
        .gallery-item {
            position: relative;
            margin-bottom: 20px;
            break-inside: avoid;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            animation: slideUp 0.6s ease;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.4);
        }

        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.05);
        }

        /* オーバーレイ */
        .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .overlay {
            transform: translateY(0);
        }

        .overlay h3 {
            font-size: 18px;
            margin-bottom: 5px;
        }

        .overlay p {
            font-size: 14px;
            opacity: 0.9;
        }

        /* ライトボックス */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            animation: fadeIn 0.3s ease;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 10px;
            box-shadow: 0 0 50px rgba(255,255,255,0.1);
            animation: zoomIn 0.3s ease;
        }

        .close-lightbox {
            position: absolute;
            top: 30px;
            right: 30px;
            color: white;
            font-size: 40px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .close-lightbox:hover {
            transform: rotate(90deg);
        }

        /* レスポンシブデザイン */
        @media (max-width: 1200px) {
            .gallery-container {
                columns: 3;
            }
        }

        @media (max-width: 768px) {
            .gallery-container {
                columns: 2;
            }
            .header h1 {
                font-size: 2em;
            }
        }

        @media (max-width: 480px) {
            .gallery-container {
                columns: 1;
            }
            .header h1 {
                font-size: 1.5em;
            }
        }

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

            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 fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes zoomIn {
            from {
                transform: scale(0.8);
            }
            to {
                transform: scale(1);
            }
        }

        .gallery-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

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