.en {
    display: none;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f0f8ff;
    color: #003366;
    padding-top: 190px;   /* header + main-nav 分 */
    padding-bottom: 70px; /* footer 分 */
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #0000ff, #aaaaff);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0px 2px 5px rgba(240, 0, 0, 0.1);

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 120px;
    white-space: nowrap;
}

header h1 {
    margin: 0;
    padding-left: 20px;
    font-size: 24px;
    color: white;   /* 好きな色 */
}

header h1 span {
    margin-right: 200px; /* 好きな幅に調整 */
}

header div {
    position: relative;
    padding-right: 20px;
}

header button {
    font-size: 14px;
    padding: 5px 10px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.flag {
    width: 30px;
    height: auto;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(153, 88, 88, 0.3);
}

.lang-btn:hover .flag {
    opacity: 0.8;
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Footer */

footer {
    position: fixed;
    height: 50px;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Main Navigation */

.main-nav {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100vw;
    min-height: 60px;

    background: #003366;  /* ← 青に変更 */
    
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.main-nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    justify-content: space-evenly;
    width: 100%;
    max-width: 1100px;
}

.main-nav li {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    border-right: 1px solid #ddd;
}

.main-nav li:first-child {
    border-left: 1px solid #ddd;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background 0.3s;
    display: block;
    padding: 10px;
}

.main-nav a:hover {
    background-color: #0055aa;
}

.main-nav .active {
    background-color: #001f4d;
}

/* メニューのリスト */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* リストアイテム */
.nav-links li {
    flex-grow: 1;
    text-align: center;
    padding: 10px 20px;
}

/* リンク */
.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background 0.3s;
    display: block;
    padding: 10px;
}

/* ハンバーガーメニュー（非表示） */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    text-align: center;
    padding: 10px;
}

/* スマホサイズ（900px以下）のとき */
@media screen and (max-width: 900px) {
    body {
        padding-top: 190px;
    }

    .main-nav {
        display: block;
        min-height: 60px;
        text-align: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #5a5a5a;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .nav-links li {
        padding: 15px;
        text-align: center;
        border-left: none;
        border-right: none;
        border-top: 1px solid #777;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links.show {
        display: flex;
    }
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Common Section */

section {
    padding: 20px;
    background-color: #e6f2ff;
    border-radius: 10px;
    margin: 20px auto;
    width: 80%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Staff / Profile */

.staff {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
}

.staff-info {
    flex: 1;
    text-align: left;
    padding-left: 5%;
}

@media screen and (max-width: 768px) {
    .staff {
        flex-direction: column;
        width: 95%;
        padding: 15px;
    }

    .staff-info {
        text-align: center;
        padding-left: 0;
    }
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-right: 20px;
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Titles */

h2 {
    text-align: left;
    margin-left: 0;
    padding-left: 15%;
}

h2,
h3 {
    margin: 5px 0;
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Publication / Presentation / Award Cards */

.publish {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 900px;
}

.publish-info {
    flex: 1;
    text-align: left;
    padding-left: 5%;
}

.publish-pic {
    width: 200px;
    height: 140px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 20px;
    background-color: #fff;
}

@media screen and (max-width: 768px) {
    .publish {
        flex-direction: column;
        text-align: center;
        width: 95%;
    }

    .publish-info {
        text-align: left;
        padding-left: 0;
        padding-top: 15px;
    }

    .publish-pic {
        width: 100%;
        max-width: 260px;
        height: auto;
        margin-right: 0;
    }
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Year Navigation */

.year-nav {
    position: fixed;
    top: 180px;
    left: 0;
    width: 100%;
    min-height: 30px;
    background: rgb(0, 0, 120);
    z-index: 999;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.year-nav a {
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    padding: 5px 10px;
    white-space: nowrap;
}

.year-nav a:hover {
    text-decoration: underline;
}

/* 年別ナビがあるページ用の余白を追加したいときに body に付ける */
.with-year-nav {
    padding-top: 240px;
}

@media screen and (max-width: 900px) {
    .year-nav {
        top: 180px;
        padding: 8px 4px;
        gap: 6px;
    }

    .year-nav a {
        font-size: 16px;
        padding: 4px 8px;
    }

    .with-year-nav {
        padding-top: 250px;
    }
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Links */

p a {
    text-decoration: none;
    color: blue;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline;
}

main {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.paper-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    width: 100%;
}

.paper-entry {
    display: flex;
    align-items: flex-start;
    text-align: left;
    background: #ffffff;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.paper-number {
    min-width: 55px;
    font-weight: bold;
    color: #003366;
    font-size: 18px;
    padding-top: 2px;
}

.paper-body {
    flex: 1;
}

.paper-authors {
    font-size: 15px;
    margin-bottom: 6px;
    color: #444;
    line-height: 1.5;
}

.paper-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #111;
    line-height: 1.5;
}

.paper-journal {
    font-size: 15px;
    line-height: 1.5;
}

.paper-journal a {
    color: #0055aa;
    text-decoration: none;
    font-weight: bold;
}

.paper-journal a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .paper-entry {
        flex-direction: column;
    }

    .paper-number {
        margin-bottom: 10px;
    }

    .paper-title {
        font-size: 16px;
    }

    .paper-authors,
    .paper-journal {
        font-size: 14px;
    }
}

.fund-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    width: 100%;
    max-width: 1000px;
}

.fund-entry {
    display: flex;
    align-items: flex-start;
    text-align: left;
    background: #ffffff;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fund-number {
    min-width: 55px;
    font-weight: bold;
    color: #003366;
    font-size: 18px;
    padding-top: 2px;
}

.fund-body {
    flex: 1;
}

.fund-source {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.5;
    color: #111;
}

.fund-period {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.info-block {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto 40px auto;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.info-block p {
    margin: 0 0 12px 0;
    line-height: 1.7;
}

.info-block p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .fund-entry {
        flex-direction: column;
    }

    .fund-number {
        margin-bottom: 10px;
    }

    .fund-source {
        font-size: 15px;
    }

    .fund-period {
        font-size: 14px;
    }

    .info-block {
        width: 95%;
        padding: 16px 18px;
    }
}