/* Base */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
}

a {
    color: #16a085;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h2 {
    font-size: 2em;
    color: #1abc9c;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    padding: 40px 0;
}

section {
    background-color: #fff;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


/* Header & Navigation */
header {
    background-color: #2c3e50;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #ecf0f1;
}

header p {
    margin: 5px 0 0;
    font-size: 1.1em;
    font-weight: 300;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;

    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: color 0.3s;
}

nav ul li a[aria-current="page"] {
    color: #1abc9c;
    font-weight: 600;
}

nav ul li a:hover {
    color: #1abc9c;
}

.nav-toggle {
    display: none;
}

.language-switch {
    white-space: nowrap;
}

.current-language {
    color: #1abc9c;
    font-weight: 600;
}

/* Home / Profile */
.home-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px 0;
}

.home-photo {
    flex: 0 0 auto;
}

.home-profile {
    flex: 1;
}

.profile-pic {
    width: 190px;
    height: 190px;
    border-radius: 6%; 
    object-fit: cover;
    /* border: 3px solid #ddd; */
}

.profile-name {
    margin: 0 0 12px;
    font-size: 2rem;
}

.position {
    font-size: 1.05rem;
    line-height: 1.6;
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
}

.profile-links a {
    font-size: 0.95rem;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

/* News */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list time {
    display: block;
    margin-bottom: 3px;
    font-size: 0.85rem;
    color: #777;
}

/* Publications */
.publications-list {
    padding-left: 2em; /* 番号の左側の余白 */
    line-height: 1.6;   /* 行間を少し広げる */
}

.publications-list li {
    margin-bottom: 1.5em; /* 各論文の間の余白 */
}

.publication-title {
    display: block;
    line-height: 1.5;
}

.coauthors {
    margin-right: 0.3em;
}

.publication-meta {
    display: block;
    margin-top: 0.2em;
    font-size: 0.95em;
    color: #555;
}

.publication-links {
    display: block;
    margin-top: 0.2em;
    font-size: 0.9em;
}

.publication-links li {
    display: inline-block;
    margin-right: 15px; /* リンク同士の余白 */
    font-size: 0.95em;
}

/* Presentation */
.presentation-list li {
    margin-bottom: 1.2em;
}

.presentation-title {
    display: block;
    font-weight: 500;
}

.presentation-meta {
    display: block;
    margin-top: 0.2em;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

/* CV */
.cv-section {
    margin-top: 2.2em;
}

.cv-section:first-of-type {
    margin-top: 1.5em;
}

.cv-section h3 {
    margin: 0 0 0.8em;
    font-size: 1.25rem;
    color: #333;
}

.cv-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 2em;
    align-items: baseline;
    margin-bottom: 1.1em;
}

.cv-entry-main {
    min-width: 0;
}

.cv-entry-title {
    font-weight: 600;
}

.cv-entry-meta {
    margin-top: 0.15em;
    font-size: 0.92em;
    color: #666;
}

.cv-date {
    white-space: nowrap;
    text-align: right;
    color: #555;
}

.cv-details {
    margin-top: 0.3em;
    font-size: 0.92em;
    color: #555;
}

.cv-subentry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 2em;
    margin-top: 0.25em;
    padding-left: 1.2em;
    color: #555;
}

.cv-subentry > :first-child {
    font-size: 0.9em;
}

.cv-subdate {
    white-space: nowrap;
    text-align: right;
}

.cv-outreach-group {
    grid-column: 1 / -1;
    margin-top: 0.5em;
}

.cv-outreach-title {
    margin-top: 0.2em;
    font-size: 0.92em;
    color: #555;
}


.cv-links {
    margin-top: 0.5em;
}


/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 0.9em;
}

/* Responsive */
/* ==================================================
   Responsive
   ================================================== */

@media (max-width: 768px) {

    /* ----- Header & Navigation ----- */

    header h1 {
        font-size: 1.4rem;
    }

    nav {
        position: relative;
    }

    .nav-toggle {
        display: block;
        border: 0;
        background: transparent;
        color: #ecf0f1;
        font-size: 1.5rem;
        cursor: pointer;
    }

    nav ul {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        min-width: 220px;
        padding: 12px 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background-color: #2c3e50;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 6px;
    }

    nav ul.is-open {
        display: flex;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a,
    nav ul li span {
        display: block;
        padding: 9px 16px;
    }

    nav ul li a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.08);
    }

    .language-switch {
        display: flex;
        align-items: center;
        padding: 4px 16px 0;
        margin-top: 5px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .language-switch a,
    .language-switch span {
        padding: 8px 3px;
    }


    /* ----- Home ----- */

    .home-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px 0;
    }

    .home-photo {
        width: 100%;
    }

    .home-profile {
        width: 100%;
        min-width: 0;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .profile-name {
        font-size: 1.7rem;
    }

    .position {
        font-size: 1rem;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cv-entry,
    .cv-subentry {
        grid-template-columns: 1fr;
        row-gap: 0.1em;
    }

    .cv-date,
    .cv-subdate {
        text-align: left;
        font-size: 0.9em;
        color: #777;
    }
}



