*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN',
                 'Hiragino Sans', Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background: #f5f5f5;
}

/* ヘッダー */
#site-header {
    background: #1a3a5c;
    color: #fff;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
#site-header h1 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: .03em;
}
#site-header h1 a { color: #fff; text-decoration: none; }
#site-header .subtitle {
    font-size: .85em;
    opacity: .8;
    margin-top: 2px;
}

/* ナビゲーション */
#site-nav {
    background: #234e78;
    overflow-x: auto;
}
#site-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
#site-nav li a {
    display: block;
    padding: 10px 16px;
    color: #cfe0f0;
    text-decoration: none;
    font-size: .88em;
    white-space: nowrap;
    transition: background .15s;
}
#site-nav li a:hover,
#site-nav li.active a {
    background: #1a3a5c;
    color: #fff;
}

/* メインラッパー */
#wrapper {
    max-width: 1000px;
    margin: 28px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 260px;
    grid-template-areas: "main side";
    gap: 24px;
}
#wrapper.no-side {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
}

/* コンテンツ */
#main {
    grid-area: main;
    background: #fff;
    border-radius: 6px;
    padding: 28px 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
#side {
    grid-area: side;
}
#side .side-box {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* 見出し */
h1, h2, h3, h4 { line-height: 1.3; }
h2 {
    font-size: 1.3em;
    color: #1a3a5c;
    border-bottom: 2px solid #234e78;
    padding-bottom: 6px;
    margin-top: 1.6em;
}
h3 { font-size: 1.1em; color: #234e78; }

/* 画像 */
img { max-width: 100%; height: auto; }

/* テーブル */
table { border-collapse: collapse; width: 100%; margin: 1em 0; }
th, td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
th { background: #eef3f8; }

/* リスト */
ul.indent_lined > li { border-bottom: 1px dotted #ccc; padding: 6px 0; }
ul.indent_bubble > li { margin-bottom: 4px; }
ul.menu_menu-a, ul.menu_menu-b {
    list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px;
}
ul.menu_menu-a li a, ul.menu_menu-b li a {
    display: inline-block;
    padding: 6px 14px;
    background: #234e78;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: .9em;
}
ul.menu_menu-a li a:hover, ul.menu_menu-b li a:hover { background: #1a3a5c; }

/* プロフィールボックス */
.kakomi {
    background: #f0f4f8;
    border-left: 4px solid #234e78;
    padding: 8px 14px;
    margin: 6px 0;
}

/* フッター */
#site-footer {
    text-align: center;
    color: #888;
    font-size: .82em;
    padding: 24px 16px 32px;
}

/* レスポンシブ */
@media (max-width: 720px) {
    #wrapper { grid-template-columns: 1fr; grid-template-areas: "main" "side"; }
    #main { padding: 18px 16px; }
}

/* 最近の論文 */
.recent-paper {
    margin-top: 12px;
    padding: 14px;
    background: #f0f4f8;
    border-radius: 6px;
    border-left: 4px solid #234e78;
}
.paper-title {
    font-weight: bold;
    font-size: .92em;
    line-height: 1.5;
    color: #1a3a5c;
    margin: 0 0 6px;
}
.paper-authors {
    font-size: .82em;
    color: #555;
    margin: 0 0 4px;
}
.paper-journal {
    font-size: .82em;
    color: #444;
    margin: 0 0 6px;
}
.paper-desc {
    font-size: .88em;
    color: #333;
    margin: 0;
}
