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

/* アニメーション */
        .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);
            }
        }
        /* アニメ終わり */

@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;
}
@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: 550px) {
    .labo-name h1 {
    font-size: 12px;
    }
    .labo-name h2  {
    font-size: 24px;
    }
    .break-on-small {
        display: block;
    }
}

.member-head {
    margin-top: 100px; /* headerの高さに応じて調整 */
    text-align: center;
    padding: 20px;
}

.member-head h1 {
    font-size: 2.5rem; /* 例: 48px相当。お好みで調整 */
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 0.5em;
}

.member-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
    
}

.member-yone {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: auto;
    
}

/* 左右交互に写真を配置する */
.member-card:nth-child(odd) .member-image {
    order: 1;
}

.member-card:nth-child(even) .member-image {
    order: 2;
}
.member-card:nth-child(even) {
    flex-direction: row-reverse; /* 偶数番目のカードは画像を右側に配置 */
} 


.member-card {
    position: relative;
    display: flex;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 200px;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: scale(1.1);
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.member-text {
    background-color: rgb(0, 102, 204, 0.4);
    color: white;
    padding: 20px;
    flex: 1;
    justify-content: center;
    text-align: center;
    /* 上下中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.member-text h3 {
    margin-top: 0;
    font-size: 20px;
}
.member-text p {
    margin: 10px 0;
    font-size: 12px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 700px) {
    .member-text h3 {
        font-size: 15px;
    }
    .member-text p {
        font-size: 10px;
    }
}

@media screen and (max-width: 500px) {
    .member-text h3 {
        font-size: 15px;
    }
    .member-text p {
        font-size: 9px;
    }
}
.member-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    height: 100%;
    position: relative;
    transition: all 0.4s ease;
}






.member-center {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;

}

.member-doctor {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.purple-bg {
    background-color: rgb(210, 146, 208);
    color: white;
    padding: 20px;
    flex: 1;
    justify-content: center;
    text-align: center;
    /* 上下中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.yellow-bg {
    background-color: rgb(207, 204, 106);
    color: white;
    padding: 20px;
    flex: 1;
    justify-content: center;
    text-align: center;
    /* 上下中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blue-bg {
    background-color: rgb(99, 177, 149);
    color: white;
    padding: 20px;
    flex: 1;
    justify-content: center;
    text-align: center;
    /* 上下中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.orange-bg {
    background-color: rgb(231, 162, 113);
    color: white;
    padding: 20px;
    flex: 1;
    justify-content: center;
    text-align: center;
    /* 上下中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.black-bg {
    background-color: rgba(37, 24, 14, 0.5);
    color: white;
    padding: 20px;
    flex: 1;
    justify-content: center;
    text-align: center;
    /* 上下中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 850px) {
    .member-section {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 85vw;
    }
    .member-card {
        margin: 0 5px;
        height: 30vh;
        display: flex;
        flex-direction: row;
    }
    .member-card:nth-child(even) {
        flex-direction: row-reverse;
    }
    .member-image {
        width: 50%;
        min-width: 120px;
        height: 100%;
    }
    .member-text {
        width: 50%;
        padding: 10px;
        font-size: 16px;
    }
}

/* ホバー時の背景画像変更効果 */
    

    .member-card[data-hover-images] .member-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 1;
    }

    .member-card[data-hover-images]:hover .member-image::before {
        opacity: 1;
    }

    .member-card.taniguti:hover .member-image::before {
        background-image: url('image/25/taniguti.jpg');
    }

    .member-card.yoshida:hover .member-image::before {
        background-image: url('image/25/yoshida2.jpg');
    }

    .member-card.hinase:hover .member-image::before {
        background-image: url('image/24/hinase2.jpg');
    }

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






