/* 野上保之教授 WEBページ - スタイルシート */

/* ========================================
   基本設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --accent-color: #ff6600;
    --text-color: #333;
    --bg-color: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

body {
    font-family: 'Noto Sans JP', '游ゴシック体', 'Yu Gothic', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* ========================================
   ヘッダー
   ======================================== */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-switch a {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid white;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   ナビゲーション
   ======================================== */
nav {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--primary-color);
}

/* ========================================
   メインコンテンツ
   ======================================== */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: 60vh;
}

/* プロフィール写真 */
.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-info h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.profile-info .position {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.profile-info .description {
    line-height: 1.8;
}

/* セクション */
section {
    margin-bottom: 3rem;
}

section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

section h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* リスト */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
}

/* リンク */
a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 外部リンクボックス */
.external-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.external-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.external-link:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

/* カード */
.card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h3 {
    margin-top: 0;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th,
table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

/* ========================================
   フッター
   ======================================== */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    main {
        padding: 0 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   ユーティリティクラス
   ======================================== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.highlight {
    background-color: #fff9e6;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}
