/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

a {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2E5C8A;
    text-decoration: underline;
}

/* Navigation */
.main-nav {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-links a {
    color: #666;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #4A90E2;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
}

.social-icons a {
    color: #666;
    font-size: 18px;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #4A90E2;
    text-decoration: none;
}

/* Container */
.container {
    width: 70%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-container {
    padding: 40px 20px;
}

/* Header Section */
.header-section {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.header-content {
    flex: 1;
}

.header-photo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d9d7d7;
}

.photo-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #555;
}

.info-item i {
    color: #4A90E2;
    font-size: 17px;
    width: 19px;
    text-align: center;
}

.info-item .fa-briefcase,
.info-item .fa-map-marker-alt,
.info-item .fa-envelope {
    color: #000;
}

.info-item span {
    line-height: 1.4;
}

.name {
    font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 55px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.name .first-name {
    font-weight: 700;
}

.name .rest-name {
    font-weight: 400;
}

.pronouns {
    font-size: 16px;
    color: #888;
    margin-bottom: 20px;
    font-style: normal;
    font-weight: 400;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

.intro-text {
    font-size: 15px;
    line-height: 1.7;
}

.intro-text p {
    margin-bottom: 15px;
}

.research-interests {
    list-style-type: disc;
    padding-left: 25px;
    margin: 15px 0;
}

.research-interests li {
    margin-bottom: 8px;
    color: #333;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.content-section:last-of-type {
    margin-bottom: 20px;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
    border-bottom: 3px solid #e0e0e0;
    padding-bottom: 10px;
    letter-spacing: -0.01em;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item-row {
    display: flex;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.news-item-row:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 15px;
    color: #888;
    font-weight: 400;
    min-width: 110px;
    flex-shrink: 0;
    padding-top: 2px;
}

.news-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
}

/* Publications */
.publication {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.publication:last-child {
    border-bottom: none;
}

.pub-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pub-title a {
    color: #4A90E2;
}

.pub-authors {
    font-size: 16px;
    margin-bottom: 6px;
    color: #555;
    line-height: 1.5;
}

.pub-authors strong {
    font-weight: 600;
    color: #333;
}

.pub-venue {
    font-size: 16px;
    font-style: italic;
    color: #666;
    margin-bottom: 6px;
}

.pub-note {
    font-size: 15px;
    color: #777;
    margin-bottom: 10px;
}

.pub-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pub-link-btn {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f0f0;
    color: #555;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.pub-link-btn:hover {
    background-color: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
    text-decoration: none;
}

/* Timeline Items (Employment & Education) */
.timeline-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 4px;
    color: #333;
}

.timeline-company {
    font-size: 17px;
    margin-bottom: 6px;
}

.timeline-company strong {
    font-weight: 600;
    color: #333;
}

.timeline-desc {
    font-size: 16px;
    color: #666;
    margin-top: 6px;
}

.timeline-date {
    font-size: 15px;
    color: #888;
    min-width: 140px;
    text-align: right;
    flex-shrink: 0;
    padding-top: 2px;
}

/* Projects */
.project {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.project:last-child {
    border-bottom: none;
}

.project-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.project-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-info h3 a {
    color: #4A90E2;
}

.project-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 600px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
    }

    .header-section {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .header-photo {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-photo img {
        width: 180px;
        height: 180px;
    }

    .photo-info {
        margin-top: 15px;
        align-items: center;
    }

    .name {
        font-size: 36px;
    }

    .intro-text {
        text-align: left;
    }

    .news-item-row {
        flex-direction: column;
        gap: 8px;
    }

    .news-date {
        min-width: auto;
        padding-top: 0;
    }

    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }

    .timeline-date {
        text-align: left;
        min-width: auto;
        padding-top: 0;
    }

    .project-header {
        flex-direction: column;
        align-items: center;
    }

    .project-icon {
        width: 100px;
        height: 100px;
    }

    .social-icons {
        justify-content: center;
    }

    .content-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .name {
        font-size: 32px;
    }

    .main-container {
        padding: 30px 15px;
    }

    .header-photo img {
        width: 150px;
        height: 150px;
    }

    .info-item {
        font-size: 14px;
    }

    .content-section h2 {
        font-size: 22px;
    }
}

/* Print Styles */
@media print {
    .social-bar,
    .main-nav,
    .site-footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .header-section {
        page-break-inside: avoid;
    }

    .publication,
    .project,
    .timeline-item {
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
