/* --- デザインの一貫性を保つための共通スタイル --- */
:root {
    --primary-blue: #5dade2; 
    --light-blue: #ebf5fb;
    --accent-orange: #f39c12;
    --text-dark: #333;
    --text-muted: #666;
    --bg-white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- ヘッダー・ナビゲーション（共通） --- */
header { background-color: var(--bg-white); text-align: center; padding: 20px 10px; }
.lab-logo { font-size: 2rem; font-weight: bold; color: #2e86c1; display: flex; flex-direction: column; align-items: center; }

nav { background-color: var(--primary-blue); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.nav-container { max-width: 1000px; margin: 0 auto; display: flex; justify-content: center; }
.nav-menu { list-style: none; display: flex; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 15px 20px; color: white; text-decoration: none; font-weight: bold; }
.nav-item:hover > a { background-color: #3498db; }

.submenu { display: none; position: absolute; top: 100%; left: 0; background-color: #fdfefe; min-width: 220px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); list-style: none; border-top: 2px solid var(--primary-blue); }
.nav-item:hover .submenu { display: block; }
.submenu li a { padding: 12px 15px; display: block; color: var(--text-dark); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid #eee; }

/* --- メインコンテンツ --- */
.container { max-width: 1000px; margin: 30px auto; background: white; padding: 40px; box-shadow: 0 0 10px rgba(0,0,0,0.05); border-radius: 4px; }
.section-title { font-size: 1.5rem; color: var(--text-dark); border-left: 6px solid #d4e6f1; padding-left: 15px; margin: 40px 0 25px; }
.section-title:first-child { margin-top: 0; }

/* 教員プロフィール */
.faculty-card {
    display: flex;
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
    align-items: center;
}
.faculty-img { width: 150px; height: 150px; border-radius: 50%; margin-right: 30px; background-color: #fff; object-fit: cover; }
.faculty-info h3 { color: var(--primary-blue); margin-bottom: 10px; font-size: 1.4rem; }
.faculty-info p { font-size: 0.95rem; color: var(--text-muted); }

/* 学生グリッド */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.member-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s;
}
.member-card:hover { transform: translateY(-5px); border-color: var(--primary-blue); }
.member-card i { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 15px; }
.member-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
.member-card p { font-size: 0.85rem; color: var(--text-muted); }

footer { text-align: center; padding: 30px; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid #eee; }

@media (max-width: 768px) {
    .nav-menu { flex-direction: column; width: 100%; }
    .submenu { position: static; box-shadow: none; background-color: #f0f8ff; }
    .faculty-card { flex-direction: column; text-align: center; }
    .faculty-img { margin-right: 0; margin-bottom: 20px; }
    .container { margin: 10px; padding: 20px; }
}
