/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
}

/* Disable image protection bypass attempts */
body * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Re-enable text selection for content areas */
p, h1, h2, h3, h4, h5, h6, span, a {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0066cc;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-image {
    margin-bottom: 30px;
}

.hero-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #0066cc;
}

.btn-primary:hover {
    background-color: #004d99;
    border-color: #004d99;
    transform: translateY(-1px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #1d1d1f;
}

/* Education & Experience Sections */
.education-grid,
.experience-grid {
    display: grid;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.education-item,
.experience-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover,
.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.education-year,
.experience-year {
    font-weight: 500;
    color: #0066cc;
    font-size: 0.9rem;
}

.education-content h3,
.experience-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.education-content p,
.experience-content p {
    color: #666;
}

/* Affiliations Section */
.affiliations-grid {
    display: grid;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.affiliation-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.affiliation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.affiliation-year {
    font-weight: 500;
    color: #0066cc;
    font-size: 0.9rem;
}

.affiliation-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* License Section */
.license-grid {
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.license-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.license-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.license-year {
    font-weight: 500;
    color: #0066cc;
    font-size: 0.9rem;
}

.license-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #333;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-contact {
    display: inline-block;
    padding: 10px 25px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #0066cc;
    box-shadow: 0 1px 5px rgba(0, 102, 204, 0.15);
}

.btn-contact:hover {
    background-color: #004d99;
    border-color: #004d99;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

.btn-contact span {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #1d1d1f;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    color: #ccc;
}


/* Tablet Design */
@media (max-width: 768px) and (min-width: 481px) {
    .hero-image img {
        width: 220px;
        height: 220px;
        pointer-events: none;
        cursor: default;
    }
}

/* Mobile Design */
@media (max-width: 480px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero {
        padding: 0 0 40px;
        text-align: center;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }
    
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 0;
    }
    
    .hero-image {
        margin-bottom: 30px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 44px;
        display: flex;
        justify-content: center;
    }
    
    .hero-image img {
        width: 100vw;
        height: 100vw;
        max-height: 500px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        object-fit: cover;
    }
    
    .hero-title {
        font-size: 2.5rem;
        color: #1d1d1f;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        color: #666;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 1.1rem;
        color: #666;
        margin-bottom: 30px;
        font-weight: 400;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .education-item,
    .experience-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .affiliation-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .license-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-contact {
        width: 150px;
        text-align: center;
        padding: 8px 20px;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image img {
        max-height: 400px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 15px;
    }
}
