* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    font-size: 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 100%;
}

.header-left {
    flex: 1;
    text-align: left;
}

.header-right {
    flex-shrink: 0;
}

.header-content .name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.025em;
}

.header-content .title {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.header .contact-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-container .contact-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-item {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-item a {
    color: inherit;
    text-decoration: underline;
}

.contact-item a:hover {
    text-decoration: underline;
}

.separator {
    font-size: 0.9rem;
    opacity: 0.7;
    color: inherit;
}

.main-content {
    padding: 1.5rem;
}

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-photos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.photo-item {
    text-align: center;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.photo-caption {
    margin-top: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    text-align: left;
}

.education-item,
.experience-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.degree-header,
.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.degree,
.position {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.year {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    background: #e5e7eb;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.institution,
.company {
    font-size: 1rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.description {
    color: #6b7280;
    font-style: italic;
}

.additional-degrees {
    color: #4b5563;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.responsibilities {
    list-style: none;
    margin-top: 0.7rem;
}

.responsibilities li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
    color: #4b5563;
    font-size: 1rem;
}

.responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.research-interest {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    margin-bottom: 1.5rem;
}

.research-interest h3 {
    color: #0ea5e9;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.publications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.paper-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.paper-description {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.paper-keywords {
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.authors {
    color: #4b5563;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.venue {
    color: #10b981;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.venue a {
    color: #10b981;
    text-decoration: underline;
}

.venue a:hover {
    text-decoration: underline;
}

.books {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.book-item {
    background: #fefce8;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #eab308;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.book-description {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.book-link a {
    color: #eab308;
    font-weight: 500;
    text-decoration: underline;
}

.book-link a:hover {
    text-decoration: underline;
}

.vtubing-content {
    background: #fdf2f8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ec4899;
}

.vtubing-description {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.8rem;
}

.channel-link {
    margin-bottom: 1.5rem;
}

.channel-link a {
    display: inline-block;
    background: #ec4899;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.channel-link a:hover {
    background: #db2777;
    transform: translateY(-1px);
}

.language-note {
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
}

.vtubing-content h3 {
    color: #ec4899;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.lecture-series {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.series-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

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

.series-thumbnail {
    width: 120px;
    height: 68px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    margin-left: 1rem;
}

.series-content {
    padding: 0.8rem;
    flex: 1;
}

.series-content h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.series-content h4 .status {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7280;
}

.series-content p {
    margin: 0;
}

.series-item:hover .series-content h4 {
    color: #ec4899;
}

.series-content a:hover {
    text-decoration: underline;
}

.japanese {
    color: #6b7280;
    font-style: italic;
    font-weight: normal;
}

.japanese-note {
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 500;
    background: #fef2f2;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
}

.type-tag {
    color: #7c3aed;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.conference-paper-unreviewed-tag {
    color: #ea580c;
    background: #fff7ed;
    border-color: #fed7aa;
}

.patent-tag {
    color: #7c3aed;
    background: #f5f3ff;
    border-color: #e9d5ff;
}

.language-tag {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
}

.year-tag {
    color: #6b7280;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .header {
        padding: 1rem 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .header-left {
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
        flex-direction: row;
        gap: 0.3rem;
    }
    
    .header-content .name {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .degree-header,
    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .lecture-series {
        grid-template-columns: 1fr;
    }
    
    .vtubing-content {
        padding: 1rem;
    }
    
}

@media (max-width: 480px) {
    .header-content .name {
        font-size: 1.6rem;
    }
    
    .header-content .title {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .education-item,
    .experience-item,
    .publication-item,
    .book-item,
    .research-interest {
        padding: 0.8rem;
    }
    
    .vtubing-content {
        padding: 0.8rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
}