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

        :root {
            --primary-color: #1e3a8a;
            --secondary-color: #3b82f6;
            --accent-color: #60a5fa;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --bg-light: #f9fafb;
            --bg-white: #ffffff;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        body {
            font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background-color: var(--bg-white);
            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;
}

        /* ヒーローセクション */
        .hero {
            margin-top: 60px;
            height: 600px;
            background: linear-gradient(rgb(106, 144, 59, 0.5), rgb(106, 144, 59, 0.7)),
                        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f9ff"/><g fill="%233b82f6" opacity="0.1"><circle cx="200" cy="150" r="100"/><circle cx="1000" cy="450" r="150"/><rect x="500" y="250" width="200" height="200" transform="rotate(45 600 350)"/></g></svg>');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 800px;
            padding: 0 20px;
            animation: fadeInUp 1s ease;
        }

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

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

        .hero p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            opacity: 0.95;
        }

        .cta-button {
            display: inline-block;
            padding: 12px 30px;
            background: white;
            color: var(--primary-color);
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: var(--shadow-lg);
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        /* セクション共通スタイル */
        section {
            padding: 80px 5%;
            max-width: 2000px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
            color: rgb(106, 144, 59);
            position: relative;
            padding-bottom: 15px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background: rgb(106, 144, 59);
            border-radius: 2px;
        }

        /* ギャラリーセクション */
        .gallery {
            background: var(--bg-light);
        }

        .image-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 2rem;
        }

        .image-card {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            background: white;
        }

        .image-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .image-placeholder-zemi {
            width: 100%;
            height: 250px;
            background-image: url('image/ques.jpg');
            background-size: cover;
            background-position: center;
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .image-placeholder-room {
            width: 100%;
            height: 250px;
            background-image: url('image/room.JPG');
            background-size: cover;
            background-position: center;
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .image-placeholder-experiment {
            width: 100%;
            height: 250px;
            background-image: url('image/jikken.JPG');
            background-size: cover;
            background-position: center;
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .image-placeholder-presentation {
            width: 100%;
            height: 250px;
            background-image: url('image/slide2025f1.jpg');
            background-size: cover;
            background-position: center;
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .image-placeholder-with {
            width: 100%;
            height: 250px;
            background-image: url('image/presentation.jpg');
            background-size: cover;
            background-position: center;
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .image-placeholder-event {
            width: 100%;
            height: 250px;
            background-image: url('image/soumen.jpg');
            background-size: cover;
            background-position: center;
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
        }


        .image-caption {
            padding: 15px;
            background: white;
        }

        .image-caption h3 {
            color: var(--text-dark);
            margin-bottom: 5px;
        }

        .image-caption p {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        /* 特徴セクション */
        .features {
            background: white;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
            margin-top: 3rem;
        }

        .feature-card {
            display: flex;
            gap: 20px;
            padding: 25px;
            background: var(--bg-light);
            border-radius: 10px;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .feature-card:hover {
            transform: translateX(5px);
            box-shadow: var(--shadow);
        }

        .feature-image {
            width: 120px;
            height: 120px;
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
            flex-shrink: 0;
        }

        .feature-content h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .feature-content p {
            color: var(--text-light);
            line-height: 1.6;
        }

        /* Q&Aセクション */
        .qa-section {
            background: var(--bg-light);
        }

        .qa-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .qa-table th {
            background: rgb(106, 144, 59);
            color: white;
            padding: 20px;
            text-align: left;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .qa-table td {
            padding: 20px;
            border-bottom: 1px solid #e5e7eb;
        }

        .qa-table tr:hover {
            background: var(--bg-light);
        }

        .qa-table .question {
            font-weight: 600;
            color: var(--primary-color);
            width: 30%;
        }

        .qa-table .answer {
            color: var(--text-dark);
            line-height: 1.6;
        }

        /* メッセージセクション */
        .messages {
            background: white;
        }

        .message-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 40px;
            margin-top: 3rem;
        }

        .message-card {
            padding: 30px;
            background: var(--bg-light);
            border-radius: 10px;
            border-left: 4px solid rgb(106, 144, 59);
            transition: transform 0.3s;
        }

        .message-card:hover {
            transform: translateY(-5px);
        }

        .message-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .avatar {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin-right: 15px;
        }

        .message-info h3 {
            color: var(--primary-color);
            margin-bottom: 3px;
        }

        .message-info .role {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .message-content {
            color: var(--text-dark);
            line-height: 1.6;
            font-style: italic;
        }

        /* コンタクトセクション */
        .contact {
            background: linear-gradient(135deg, rgb(106, 144, 59, 0.8) 0%, rgb(106, 144, 59) 100%);
            color: white;
            text-align: center;
        }

        .contact .section-title {
            color: white;
        }

        .contact .section-title::after {
            background: white;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-top: 3rem;
        }

        .contact-item {
            padding: 30px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            backdrop-filter: blur(10px);
            transition: background 0.3s;
        }

        .contact-item:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .contact-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

        .contact-item h3 {
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .contact-item p {
            opacity: 0.95;
            line-height: 1.6;
        }

        .contact-item a {
            color: #0066cc;
            text-decoration: underline;
            font-weight: bold;
        }

        a:hover {
            color: #004999;
            text-decoration: underline;
        }

        /* フッター */
        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: 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;
            }

            
        }


        @media (max-width: 768px) {
            

            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .feature-grid,
            .message-grid {
                grid-template-columns: 1fr;
            }

            .qa-table .question {
                width: 40%;
            }

            .contact-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .hero {
                height: 500px;
            }

            section {
                padding: 60px 5%;
            }

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

            .feature-image {
                margin: 0 auto;
            }

            .qa-table {
                font-size: 0.9rem;
            }

            .qa-table th,
            .qa-table td {
                padding: 15px;
            }
        }



