/* ========================================
   グローバルスタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ナビゲーションバー
   ======================================== */
header {
    background-color: #003d7a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffd700;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    background: linear-gradient(135deg, #003d7a 0%, #005fa3 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* ========================================
   セクション共通
   ======================================== */
.section {
    background-color: white;
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    font-size: 2rem;
    color: #003d7a;
    margin-bottom: 2rem;
    border-bottom: 3px solid #005fa3;
    padding-bottom: 1rem;
}

/* ========================================
   コンテンツグリッド（研究内容）
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.research-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-left: 4px solid #005fa3;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.research-item h3 {
    color: #003d7a;
    margin-bottom: 0.5rem;
}

.research-item p {
    color: #666;
}

/* ========================================
   研究業績リスト
   ======================================== */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid #ffd700;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(5px);
}

.achievement-item h4 {
    color: #003d7a;
    margin-bottom: 0.5rem;
}

.achievement-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.achievement-year {
    font-size: 0.9rem;
    color: #999;
    font-weight: bold;
}

/* ========================================
   メンバーグリッド
   ======================================== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.member-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e0e0e0;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #005fa3;
}

.member-avatar {
    width: 80px;
    height: 80px;
    background-color: #005fa3;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.member-card h4 {
    color: #003d7a;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-email {
    color: #005fa3;
    font-size: 0.85rem;
    word-break: break-all;
}

/* ========================================
   連絡先
   ======================================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    border-top: 3px solid #003d7a;
}

.contact-item h4 {
    color: #003d7a;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.8;
}

.contact-label {
    font-weight: bold;
    color: #333;
}
/* Google Maps のスタイル */
.contact-item iframe {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .contact-item iframe {
        height: 250px !important;
    }
}

/* ========================================
   フッター
   ======================================== */
footer {
    background-color: #003d7a;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

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

    .section h2 {
        font-size: 1.5rem;
    }

    .content-grid,
    .members-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
}
