@import url('common.css');

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

body {
    font-family: 'Garamond', 'Georgia', serif;
    color: #9e6b48;
    overflow-x: hidden;
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #9e6b48;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: #9e6b48;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    animation: menuFadeIn 0.3s ease;
}

.menu-overlay.active {
    display: flex;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.menu-items {
    list-style: none;
    text-align: center;
}

.menu-items li {
    margin: 30px 0;
    font-size: 2rem;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.menu-items li a {
    color: #9e6b48;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu-items li a:hover {
    color: #9e6b48;
    border-bottom: 2px solid #9e6b48;
}

/* Page Hero */
.page-hero {
    width: 100vw;
    height: 65vh;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4)),
        url('../img/new1.jpg');
    background-size: cover;
    background-position: center 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
}

.hero-overlay {
    text-align: center;
}

.hero-overlay h1 {
    font-size: 4.5rem;
    font-weight: 200;
    letter-spacing: 12px;
    margin-bottom: 15px;
    color: #9e6b48;
}

.hero-overlay .subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 300;
    color: #9e6b48;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
}

/* Profile Content */
.profile-content {
    padding: 100px 60px;
    /* Background removed to show body image */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Bio Section */
.bio-section {
    margin-bottom: 100px;
}

.bio-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 50px;
    color: #9e6b48;
    border-bottom: 1px solid #2a1f1d;
    padding-bottom: 20px;
}

.bio-text p {
    font-size: 1.15rem;
    line-height: 2;
    color: #9e6b48;
    margin-bottom: 25px;
}

.bio-text p.en {
    font-weight: 300;
}

.bio-text p.jp {
    font-size: 1rem;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
    color: #9e6b48;
    margin-bottom: 40px;
}

/* Education Section */
.education-section {
    margin-bottom: 100px;
}

.education-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 10px;
    color: #9e6b48;
}

.subtitle-jp {
    font-size: 1.1rem;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
    color: #9e6b48;
    margin-bottom: 50px;
    font-weight: 300;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #9e6b48, transparent);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #9e6b48;
    border-radius: 50%;
    border: 2px solid #0a0a0a;
}

.timeline-item .year {
    font-size: 0.95rem;
    color: #9e6b48;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 400;
}

.timeline-item .content h4 {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #9e6b48;
}

.timeline-item .content p {
    font-size: 1rem;
    color: #9e6b48;
    margin-bottom: 5px;
}

.timeline-item .content p.jp {
    font-size: 0.9rem;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
    color: #9e6b48;
}

/* Teachers Section */
.teachers-section {
    margin-bottom: 80px;
}

.teachers-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 10px;
    color: #9e6b48;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.teacher-item {
    padding: 25px;
    border: 1px solid #2a1f1d;
    text-align: center;
    transition: all 0.4s ease;
}

.teacher-item:hover {
    border-color: #9e6b48;
    transform: translateY(-5px);
}

.teacher-item p.en {
    font-size: 1.1rem;
    color: #9e6b48;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.teacher-item p.jp {
    font-size: 0.9rem;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
    color: #9e6b48;
}

/* Footer */
footer {
    /* Background removed for body image */
    padding: 60px 50px;
    text-align: center;
}

footer p {
    color: #9e6b48;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-links a {
    color: #9e6b48;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.social-links a:hover {
    color: #9e6b48;
}

/* Responsive */
@media (max-width: 768px) {

    /* スマホでは中央に配置 */
    .page-hero {
        height: 50vh;
        background-position: center 25%;
    }

    .hero-overlay h1 {
        font-size: 3rem;
    }

    .menu-items li {
        font-size: 1.5rem;
    }

    .profile-content {
        padding: 60px 30px;
    }

    .timeline {
        padding-left: 30px;
    }

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