.notice-box {
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    color: #555;
}
.notice-box p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

/* --- 注目の研究 (Featured) --- */
.featured-research {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 40px;
    transition: box-shadow 0.2s;
}
.featured-research:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}
.featured-research h3 {
    margin-top: 15px;
    font-size: 24px;
    color: #2c3e50;
    line-height: 1.4;
}
.research-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.research-summary {
    line-height: 1.8;
    font-size: 16px;
    color: #444;
}

/* --- 修正: 研究キーワード --- */
.research-keywords {
    display: flex; /* 横並びにする */
    align-items: center; /* 縦方向の中央揃え */
    flex-wrap: wrap; /* スマホなどで折り返す */
    margin-bottom: 20px; /* 下の要素（サマリー）との余白 */
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}
.research-keywords strong {
    color: #333;
    margin-right: 15px; /* ラベルとタグリストの間の余白 */
    flex-shrink: 0; /* ラベルを縮めない */
}
.keyword-list {
    display: flex;
    flex-wrap: wrap; /* タグを折り返す */
    gap: 8px; /* タグ同士の余白 */
    flex-grow: 1; /* 残りのスペースを埋める */
}
.keyword-tag {
    display: inline-block;
    padding: 3px 10px; /* 内側余白 */
    background-color: #f0f0f0; /* 背景色 */
    border: 1px solid #e0e0e0; /* 境界線 */
    color: #333; /* 文字色 */
    font-size: 13px; /* 少し小さめに */
    border-radius: 15px; /* 角丸（バッジっぽく） */
    white-space: nowrap; /* タグ内で折り返さない */
    transition: background-color 0.2s;
}
.keyword-tag:hover {
    background-color: #e6e6e6; /* ホバー時の効果 */
}

/* --- プロジェクトグリッド --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
}
.project-card-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column; /* カード内の要素を縦並びにし、高さを揃える */
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.project-card-item h4 {
    margin: 15px 0 10px 0;
    font-size: 18px;
    line-height: 1.5;
    color: #333;
}
.card-summary {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    flex-grow: 1; /* 余白を埋めてフッターを最下部に押し下げる */
}
.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #777;
}

/* --- ステータスバッジ --- */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    align-self: flex-start; /* フレックスコンテナ内で自身の幅に合わせる */
}
.status-badge.main-research { background-color: #007bff; }
.status-badge.activity { background-color: #17a2b8; }
.status-badge.community { background-color: #28a745; }
.status-badge.past { background-color: #6c757d; }

/* --- 実績リスト --- */
.latest-activities {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.activity-status-label {
    font-size: 14px;
    font-weight: bold;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.achievements-list, .achievements-list-sm {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.achievements-list li, .achievements-list-sm li {
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.5;
}
.achievements-list-sm li {
    font-size: 14px;
}
.date, .date-range {
    width: 85px;
    color: #888;
    font-family: monospace;
    flex-shrink: 0;
    padding-top: 2px; /* テキストとのベースライン調整 */
}
.achievements-list a, .achievements-list-sm a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* スマホ等で折り返すように */
    gap: 5px;
    transition: color 0.2s;
}
.achievements-list a:hover, .achievements-list-sm a:hover {
    color: #007bff;
}
.badge {
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
    background-color: #e9ecef;
    color: #495057;
    white-space: nowrap;
}
.badge.presentation { background-color: #e0f3ff; color: #0066cc; }
.badge.paper { background-color: #e8f5e9; color: #2e7d32; }
.badge.award { background-color: #fff3e0; color: #e65100; }

/* === 4. Responsive (Mobile Specific) === */
@media (max-width: 768px) {
    .project-grid { grid-template-columns: 1fr; }
    .featured-research { padding: 20px; }
    /* 修正: スマホでの研究キーワードの並び */
    .research-keywords {
        flex-direction: column; /* 縦並びにする */
        align-items: flex-start; /* 左寄せ */
    }
    .research-keywords strong {
        margin-right: 0;
        margin-bottom: 8px; /* ラベルとタグリストの間に縦の余白 */
    }
    .keyword-list {
        justify-content: flex-start; /* タグを左寄せ */
    }
    .achievements-list li, .achievements-list-sm li { flex-direction: column; }
    .date { width: auto; font-size: 13px; margin-bottom: 4px; }
}