/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6; /* 行間を少し詰める */
    color: #333;
    background-color: #f7faff; /* より落ち着いた薄いブルー */
    overflow-x: hidden; /* 横スクロールバーが出ないように */
}

/* 基本スタイル */
.container {
    max-width: 1100px; /* 全体の幅を少し狭めて引き締める */
    margin: 0 auto;
    padding: 20px;
}

a {
    color: #007bff; /* 青 */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease; /* ホバーアニメーションを追加 */
}

a:hover {
    color: #0056b3; /* 濃い青 */
    text-decoration: underline;
    transform: translateY(-1px);
}

ul {
    list-style: none;
}

/* ヘッダー */
.header {
    background-color: #ffffff; /* ホワイト */
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); /* 影を控えめに */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0f2f7; /* 細いボーダーを追加 */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7em; /* 少し小さく */
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-title a {
    color: #1a73e8; /* より洗練されたブルー */
    text-decoration: none;
}

.nav-list {
    display: flex;
    gap: 20px; /* メニュー間のスペースを調整 */
}

.nav-item a {
    display: block;
    padding: 8px 12px; /* パディングを調整 */
    color: #555; /* 色を少し濃く */
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px; /* 角を丸く */
}

.nav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; /* 下線を細く */
    background-color: #1a73e8; /* 洗練されたブルー */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-item a:hover {
    color: #1a73e8;
    background-color: #e3f2fd; /* ホバー時の背景色 */
}

.nav-item a:hover::before {
    transform: translateX(0);
}

/* ハンバーガーメニューボタン (モバイル用) */
.menu-toggle {
    display: none; /* デフォルトでは非表示 */
    background: none;
    border: none;
    width: 28px; /* サイズ調整 */
    height: 22px; /* サイズ調整 */
    position: relative;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px; /* 細く */
    background-color: #333;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-icon {
    top: 10px;
}

.menu-icon::before {
    top: -7px; /* 間隔調整 */
}

.menu-icon::after {
    top: 7px; /* 間隔調整 */
}

.menu-toggle.is-active .menu-icon {
    background-color: transparent;
}

.menu-toggle.is-active .menu-icon::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-icon::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* メインコンテンツ */
.main-content {
    padding-top: 40px; /* ヘッダーとの間隔を広げる */
}

.section {
    padding: 70px 0; /* セクションのパディングを増やす */
    margin-bottom: 40px; /* セクション間の余白を増やす */
    background-color: #ffffff;
    border-radius: 12px; /* 角をより丸く */
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); /* 影をよりソフトに */
    border: 1px solid #e0f2f7; /* 薄いボーダー */
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6em; /* タイトルを調整 */
    text-align: center;
    margin-bottom: 55px; /* 余白を増やす */
    color: #1a73e8; /* 洗練されたブルー */
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px; /* 下線の長さを調整 */
    height: 4px; /* 下線の太さを調整 */
    background-color: #4285F4; /* Google Blueのようなアクセントカラー */
    margin: 15px auto 0;
    border-radius: 2px;
}

.lead-text {
    text-align: center;
    font-size: 1.05em; /* フォントサイズを調整 */
    margin-bottom: 60px; /* 余白を増やす */
    max-width: 750px; /* 幅を調整 */
    margin-left: auto;
    margin-right: auto;
    color: #555;
    line-height: 1.7;
}

/* プロフィールエリア */
.profile-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px; /* 間隔を広げる */
    margin-bottom: 70px; /* 余白を増やす */
    justify-content: center;
}

.profile-photo {
    flex: 0 0 200px; /* 少し小さくしてスマートに */
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* 影を調整 */
    border: 4px solid #e3f2fd; /* 薄いブルーの縁を調整 */
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    flex: 1;
    min-width: 320px; /* 最小幅を調整 */
}

.profile-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.1em;
    color: #1a73e8;
    margin-bottom: 8px; /* 余白調整 */
    font-weight: 700;
}

.profile-affiliation {
    font-size: 1.05em; /* フォントサイズ調整 */
    color: #666;
    margin-bottom: 18px; /* 余白調整 */
    font-weight: 500;
}

.profile-intro {
    font-size: 0.98em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px; /* リンク間のスペースを調整 */
    font-size: 0.95em;
}

.contact-links li a {
    color: #007bff;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.contact-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.contact-links li a:hover::after {
    width: 100%;
}

/* サブセクションタイトル */
.subsection-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9em;
    color: #1a73e8; /* 洗練されたブルー */
    text-align: center;
    margin-bottom: 40px; /* 余白を調整 */
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.subsection-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #FFC107; /* アクセントカラー */
    margin: 10px auto 0;
    border-radius: 1.5px;
}

/* 履歴リスト (学歴・職歴、更新履歴) */
.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px; /* 間隔を狭める */
    max-width: 700px;
    margin: 0 auto 60px; /* 余白を増やす */
}

.history-item {
    background-color: #fafdff; /* より明るい背景色 */
    padding: 16px 22px; /* パディング調整 */
    border-radius: 8px; /* 角を調整 */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 影をソフトに */
    border-left: 4px solid #4285F4; /* アクセントラインを調整 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.history-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #007bff;
    flex-shrink: 0;
    width: 100px; /* 日付の幅を調整 */
    font-size: 0.95em;
}

.history-description {
    margin-left: 20px; /* スペースを調整 */
    color: #555;
    font-size: 0.98em;
}

.update-history ul {
    max-width: 600px;
    margin: 0 auto 60px;
    background-color: #fafdff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px 25px; /* パディング調整 */
}

.update-history li {
    padding: 10px 0;
    border-bottom: 1px dashed #eef5fb; /* 薄いボーダー */
    display: flex;
    align-items: flex-start;
    font-size: 0.95em;
}

.update-history li:last-child {
    border-bottom: none;
}

.update-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #007bff;
    margin-right: 18px;
    flex-shrink: 0;
    width: 85px; /* 幅を調整 */
}

/* 最新の研究記事 (トップページ) */
.latest-articles {
    margin-bottom: 70px;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* 間隔を調整 */
    max-width: 950px; /* 最大幅を調整 */
    margin: 0 auto;
}

.article-preview {
    background-color: #eef5fb; /* より落ち着いた薄いブルー */
    border-radius: 10px;
    padding: 22px; /* パディングを調整 */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.08); /* ボーダーを薄く */
}

.article-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.article-preview h4 {
    font-size: 1.3em;
    margin-bottom: 8px; /* 余白調整 */
    font-weight: 600;
}

.article-preview h4 a {
    color: #0056b3;
    display: block;
}

.article-preview h4 a:hover {
    text-decoration: underline;
}

.article-preview .article-date {
    font-size: 0.85em; /* 小さく */
    color: #777;
    margin-bottom: 12px; /* 余白調整 */
    font-family: 'Montserrat', sans-serif;
}

.article-preview p {
    font-size: 0.9em; /* 小さく */
    color: #444;
    line-height: 1.6;
}

/* 研究実績・スキル等のテーブルスタイル */
.table-container {
    /* overflow-x: auto; をメディアクエリ内で適用することで、PCでは横スクロールなし、スマホで必要に応じて横スクロール */
    margin-bottom: 50px;
    border-radius: 10px; /* 角を丸く */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); /* 影をソフトに */
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0; /* 行間のスペースをなくす */
    margin: 0 auto;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden; /* 角丸を適用するため */
}

th, td {
    padding: 14px 20px; /* パディング調整 */
    text-align: left;
    border-bottom: 1px solid #eef5fb; /* 薄いボーダー */
}

th {
    background-color: #2196F3; /* スカイブルー */
    color: #ffffff;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    padding-top: 16px;
    padding-bottom: 16px;
}

td {
    background-color: #ffffff;
    font-size: 0.9em; /* フォントサイズを調整 */
    color: #444;
}

/* テーブルの最初の行と最後の行の角を丸く */
th:first-child { border-top-left-radius: 10px; }
th:last-child { border-top-right-radius: 10px; }
tr:last-child td:first-child { border-bottom-left-radius: 10px; }
tr:last-child td:last-child { border-bottom-right-radius: 10px; }


/* テーブルの列幅調整 (必要に応じて) */
.col-year { width: 10%; }
.col-type { width: 15%; }
.col-qualification { width: 30%; }
.col-item { width: 75%; }

/* 研究テーマページ (research.html) */
.research-content {
    max-width: 750px; /* 幅を調整 */
    margin: 0 auto;
    font-size: 1em;
    line-height: 1.8;
    color: #444;
}

.research-content h3 {
    margin-top: 35px; /* 余白調整 */
    margin-bottom: 18px; /* 余白調整 */
    color: #1a73e8;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em; /* 調整 */
    border-left: 4px solid #FFC107;
    padding-left: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.research-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.research-content ul li {
    margin-bottom: 6px;
}

.related-fields {
    background-color: #fafdff;
    border-radius: 10px;
    padding: 25px; /* パディング調整 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef5fb;
}

/* スキルページ (skills.html) */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* 調整 */
    gap: 25px; /* 間隔調整 */
    max-width: 850px; /* 調整 */
    margin: 0 auto;
}

.skill-category {
    background-color: #fafdff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #4285F4; /* アクセントライン調整 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.skill-category h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: #1a73e8;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    background-color: #eef5fb; /* 薄い背景色 */
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-category li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.9em;
}

/* 記事一覧ページ (articles.html, deep_research/index.html, other.html) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 調整 */
    gap: 25px;
    max-width: 950px;
    margin: 0 auto;
}

.article-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    border: 1px solid #eef5fb;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border-color: #aad5ff; /* ホバー時のボーダー色 */
}

.article-card-title {
    font-size: 1.25em; /* 調整 */
    margin-bottom: 8px;
    font-weight: 600;
    color: #0056b3;
}

.article-card-title a {
    display: block;
    color: inherit;
}

.article-card-title a:hover {
    text-decoration: underline;
}

.article-card-date {
    font-size: 0.8em; /* 調整 */
    color: #777;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.article-card-description {
    font-size: 0.9em;
    color: #444;
    line-height: 1.5;
    margin-bottom: 18px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: #1a73e8;
    font-weight: 600;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* 各記事詳細ページ (articles/*.html) */
.article-detail {
    max-width: 800px; /* 幅を調整 */
    margin: 40px auto; /* 余白を調整 */
    padding: 35px 40px; /* パディング調整 */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0f2f7;
}

.article-title {
    font-size: 2.2em; /* 調整 */
    color: #1a73e8;
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.article-meta {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 35px; /* 余白調整 */
    font-family: 'Montserrat', sans-serif;
}

.article-body {
    font-size: 1em; /* 調整 */
    line-height: 1.8; /* 行間調整 */
    color: #333;
}

.article-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em; /* 調整 */
    color: #1a73e8;
    margin-top: 35px;
    margin-bottom: 18px;
    border-left: 5px solid #FFC107;
    padding-left: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 1.2em; /* 余白調整 */
}

.article-body ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 1.2em;
}

.article-body ul li {
    margin-bottom: 0.6em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 調整 */
    gap: 18px; /* 間隔調整 */
    margin-top: 25px;
}

.image-gallery img {
    width: 100%;
    height: 180px; /* 高さを調整 */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}


.article-navigation {
    text-align: center;
    margin-top: 40px;
}

.back-to-list {
    display: inline-block;
    background-color: #1a73e8;
    color: #ffffff;
    padding: 10px 22px; /* パディング調整 */
    border-radius: 6px; /* 角を調整 */
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    font-size: 0.95em;
}

.back-to-list:hover {
    background-color: #0056b3;
    text-decoration: none;
    transform: translateY(-2px);
}


/* フッター */
.footer {
    background-color: #2c3e50; /* ダークネイビー */
    color: #e0f2f7; /* 薄いスカイブルー */
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.08);
}

.footer p {
    font-size: 0.85em;
    color: #aebfd4; /* フッター内のテキスト色 */
}

/* ------------------------------------------------------------- */
/* レスポンシブデザインの強化 (style.cssのこの部分を更新/追加) */
/* ------------------------------------------------------------- */

/* タブレット (992px以下) */
@media (max-width: 992px) {
    .container {
        padding: 15px; /* コンテナのパディングを減らす */
    }
    .nav-list {
        gap: 12px; /* メニュー間のスペースを減らす */
    }
    .nav-item a {
        padding: 7px 10px;
        font-size: 0.85em;
    }
    .site-title {
        font-size: 1.6em;
    }
    .section-title {
        font-size: 2.1em;
        margin-bottom: 45px;
    }
    .lead-text {
        font-size: 1em;
        margin-bottom: 50px;
    }
    .profile-area {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 50px;
    }
    .profile-photo {
        margin-bottom: 15px;
        width: 180px; /* サイズ調整 */
        height: 180px; /* サイズ調整 */
    }
    .profile-details {
        min-width: unset; /* 最小幅を解除 */
        padding: 0 10px; /* 左右に少しパディング */
    }
    .profile-name {
        font-size: 1.9em;
    }
    .profile-affiliation {
        font-size: 1em;
    }
    .profile-intro {
        font-size: 0.95em;
    }
    .subsection-title {
        font-size: 1.5em;
        margin-bottom: 35px;
    }
    .history-grid {
        max-width: 600px;
        margin-bottom: 50px;
    }
    .history-item {
        padding: 14px 20px;
        font-size: 0.95em;
    }
    .update-history ul {
        max-width: 550px;
        padding: 18px 22px;
    }
    .article-list, .article-grid, .skills-list {
        gap: 20px;
    }
    .article-preview {
        padding: 20px;
    }
    .article-preview h4 {
        font-size: 1.2em;
    }
    .article-preview p {
        font-size: 0.88em;
    }
    .table-container {
        /* テーブルの横スクロールをこのブレークポイントから有効にする */
        overflow-x: auto;
    }
    table {
        min-width: 600px; /* テーブルがこの幅より小さくならないようにする */
        width: 100%; /* 親要素の幅いっぱい */
        display: block; /* 横スクロールのために必要 */
    }
    .article-detail {
        padding: 30px;
        margin: 30px auto;
    }
    .article-title {
        font-size: 2em;
    }
    .article-meta {
        font-size: 0.85em;
    }
    .article-body {
        font-size: 0.95em;
    }
    .article-body h3 {
        font-size: 1.4em;
    }
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    .image-gallery img {
        height: 150px;
    }
}

/* スマートフォン (768px以下) */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap; /* ヘッダー要素を折り返す */
        justify-content: center;
        text-align: center;
        padding: 0 15px;
    }
    .site-title {
        width: 100%;
        margin-bottom: 10px;
        font-size: 1.5em;
    }
    .nav {
        width: 100%;
        display: none; /* デフォルトで非表示 */
        flex-direction: column;
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        position: absolute;
        top: 65px; /* ヘッダーの高さに合わせて調整 */
        left: 0;
        right: 0;
        padding: 8px 0;
        z-index: 999;
    }
    .nav.is-active {
        display: flex; /* JavaScriptで表示 */
    }
    .nav-list {
        flex-direction: column;
        gap: 3px;
    }
    .nav-item {
        width: 100%;
        text-align: center;
    }
    .nav-item a {
        padding: 10px 0;
        font-size: 1em;
        border-bottom: 1px solid #f8f8f8;
    }
    .nav-item:last-child a {
        border-bottom: none;
    }
    .menu-toggle {
        display: block; /* モバイルで表示 */
        position: absolute;
        right: 15px;
        top: 20px;
    }
    .section {
        padding: 30px 15px; /* 左右のパディングも調整 */
        margin-bottom: 30px;
    }
    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .section-title::after {
        width: 50px;
        height: 3px;
        margin: 10px auto 0;
    }
    .lead-text {
        font-size: 0.95em;
        margin-bottom: 35px;
        padding: 0 5px; /* 左右に少しパディング */
    }
    .profile-area {
        gap: 20px;
        margin-bottom: 40px;
    }
    .profile-photo {
        width: 150px; /* さらに小さく */
        height: 150px;
    }
    .profile-name {
        font-size: 1.7em;
    }
    .profile-affiliation {
        font-size: 0.95em;
    }
    .profile-intro {
        font-size: 0.9em;
        line-height: 1.7;
    }
    .contact-links {
        justify-content: center;
        gap: 10px 20px;
        font-size: 0.9em;
    }
    .subsection-title {
        font-size: 1.3em;
        margin-bottom: 25px;
    }
    .subsection-title::after {
        width: 40px;
        height: 2px;
    }
    .history-grid {
        margin-bottom: 40px;
    }
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        font-size: 0.9em;
    }
    .history-date {
        margin-bottom: 3px;
        width: auto;
        font-size: 0.85em;
    }
    .history-description {
        margin-left: 0;
        font-size: 0.9em;
    }
    .update-history ul {
        padding: 15px 20px;
        font-size: 0.9em;
    }
    .update-history li {
        padding: 8px 0;
    }
    .update-date {
        width: 80px;
        font-size: 0.8em;
    }
    .latest-articles {
        margin-bottom: 40px;
    }
    .article-list, .article-grid, .skills-list {
        grid-template-columns: 1fr; /* 1列表示 */
        gap: 20px;
    }
    .article-preview {
        padding: 18px;
    }
    .article-preview h4 {
        font-size: 1.1em;
    }
    .article-preview .article-date {
        font-size: 0.75em;
    }
    .article-preview p {
        font-size: 0.85em;
    }
    th, td {
        padding: 10px 15px; /* テーブルセルのパディングを減らす */
        font-size: 0.85em;
    }
    .col-year { width: 15%; } /* モバイルで列幅を調整 */
    .col-type { width: 25%; }
    .col-item { width: 60%; }
    .research-content {
        font-size: 0.95em;
    }
    .research-content h3 {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .skills-list {
        gap: 20px;
    }
    .skill-category {
        padding: 20px;
    }
    .skill-category h4 {
        font-size: 1.2em;
    }
    .skill-category li {
        padding: 7px 10px;
        font-size: 0.9em;
    }
    .article-detail {
        padding: 20px;
        margin: 25px auto;
    }
    .article-title {
        font-size: 1.8em;
    }
    .article-meta {
        font-size: 0.8em;
    }
    .article-body {
        font-size: 0.9em;
        line-height: 1.7;
    }
    .article-body h3 {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .image-gallery {
        grid-template-columns: 1fr; /* 1列表示 */
        gap: 15px;
    }
    .image-gallery img {
        height: auto; /* 高さを自動調整にすることで、縦長の画像も適切に表示 */
        max-width: 100%;
    }
    .back-to-list {
        padding: 8px 18px;
        font-size: 0.9em;
    }

    /* Deep Research固有のモバイル調整 */
    #deep-research-rag .deep-research-nav-header {
        padding: 1rem 0;
        border-radius: 0; /* モバイルでは角丸をなくす */
    }
    #deep-research-rag .deep-research-nav-header h1 {
        font-size: 1.5rem;
    }
    #deep-research-rag .deep-research-nav-header p {
        font-size: 0.9rem;
    }
    #deep-research-rag .deep-research-nav-tabs {
        flex-wrap: wrap;
        padding: 0.5rem 0;
        border-radius: 0; /* モバイルでは角丸をなくす */
    }
    #deep-research-rag .deep-research-nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.25rem; /* ボタン間に隙間 */
    }
    #deep-research-rag .diagram-component {
        font-size: 0.9em;
        padding: 0.8rem;
    }
    #deep-research-rag .chart-container {
        height: 300px; /* モバイルではチャートの高さを低く */
        max-height: 300px;
        padding: 0.5rem;
    }
}

/* 非常に小さなスマートフォン向け (480px以下) */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3em;
    }
    .section-title {
        font-size: 1.6em;
    }
    .subsection-title {
        font-size: 1.2em;
    }
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    .profile-name {
        font-size: 1.5em;
    }
    .profile-affiliation, .profile-intro {
        font-size: 0.85em;
    }
    .contact-links li a {
        font-size: 0.85em;
    }
    .history-item, .update-history li {
        font-size: 0.85em;
    }
    .article-preview h4 {
        font-size: 1em;
    }
    .article-preview p {
        font-size: 0.8em;
    }
    th, td {
        font-size: 0.8em;
        padding: 8px 10px;
    }
    .article-title {
        font-size: 1.6em;
    }
    .article-body {
        font-size: 0.88em;
    }
    .article-body h3 {
        font-size: 1.2em;
    }
    .back-to-list {
        font-size: 0.85em;
        padding: 7px 15px;
    }
    #deep-research-rag .deep-research-nav-header h1 {
        font-size: 1.3rem;
    }
    #deep-research-rag .deep-research-nav-header p {
        font-size: 0.8rem;
    }
    #deep-research-rag .deep-research-nav-tabs .nav-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}


/* コマンドセクションの追加スタイル */
.command-category-section {
    margin-bottom: 60px; /* カテゴリ間のスペース */
}

.command-category-section .subsection-title {
    margin-bottom: 30px; /* サブタイトルとコマンドリストのスペース */
    text-align: left; /* 左寄せ */
    padding-left: 0; /* paddingをリセットして、subsection-title::after を個別に制御 */
}

.command-category-section .subsection-title::after {
    display: none; /* 下線を非表示に (セクションタイトルと区別するため) */
}

/* もし、コマンドカテゴリのタイトルにも下線が欲しい場合は、上記の `display: none;` を削除し、
   以下のように左寄せの下線に変更することも可能です。
.command-category-section .subsection-title::after {
    display: block;
    width: 40px;
    margin: 10px 0 0 0; /* 左寄せにする */
}
*/

.command-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* カード形式で並べる */
    gap: 25px; /* カード間のスペース */
}

.command-item {
    padding: 20px;
    background-color: #fafdff; /* 背景色 */
    border: 1px solid #eef5fb; /* 薄いボーダー */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.command-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.command-item h4 {
    font-size: 1.15em;
    color: #1a73e8;
    margin-bottom: 15px;
    font-weight: 600;
}

.command-item pre {
    background-color: #f0f4f7; /* コードブロックの背景色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 横スクロールが必要な場合に表示 */
    margin-bottom: 15px;
    border: 1px solid #dde7f0;
}

.command-item code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace; /* 等幅フォント */
    color: #333;
    font-size: 0.9em;
    line-height: 1.4;
    display: block; /* pre内で改行を保持 */
}

.command-item .command-description {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/* レスポンシブ対応の調整 (既存のmedia queryに追加) */
@media (max-width: 768px) {
    .command-list {
        grid-template-columns: 1fr; /* スマホでは1列表示 */
        gap: 20px;
    }
    .command-category-section .subsection-title {
        text-align: center; /* 中央寄せ */
    }
}

/* スキルページの資格テーブル専用スタイル */
.qualification-table-container {
    margin-bottom: 50px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.qualification-table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
}

/* ヘッダーのフォントサイズを小さくし、パディングを調整して横幅を圧縮 */
.qualification-table-container th {
    font-size: 0.8em;
    padding: 10px 15px;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
}

/* セルのフォントサイズを小さくし、パディングを調整して横幅を圧縮 */
.qualification-table-container td {
    font-size: 0.8em;
    padding: 10px 15px;
}

/* 取得年月日と資格名の列幅を調整 */
.qualification-table-container .col-date {
    width: 35%; /* 日付の列幅を確保 */
}
.qualification-table-container .col-qualification {
    width: 65%; /* 資格名の列幅を確保 */
}

/* スキルページの表でのみ、スマホで横スクロールを無効化 */
@media (max-width: 767px) {
    .qualification-table-container {
        overflow-x: hidden;
    }
}