@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 to X transformation */
.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);
}

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

/* 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;
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s ease-out;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-logo {
    max-width: 60%;
    width: 300px;
    height: auto;
    margin-bottom: 30px;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(158, 107, 72, 0.2);
    border-radius: 50%;
    border-top-color: #9e6b48;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hero Section */
#hero {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4)),
        url('../img/main.jpg');
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transition: opacity 2s ease-in;
    -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.visible {
    opacity: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 200;
    letter-spacing: 12px;
    margin-bottom: 25px;
    color: #9e6b48;
}

.hero-content p {
    font-size: 1.6rem;
    letter-spacing: 8px;
    font-style: italic;
    font-weight: 300;
    color: #9e6b48;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #9e6b48;
    font-weight: 300;
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Section Base */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px;
}

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

/* Short Profile */
#profile {
    /* Background removed to show body image */
}

#profile h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 40px;
    color: #9e6b48;
}

#profile p {
    font-size: 1.2rem;
    line-height: 2.2;
    color: #9e6b48;
    font-weight: 300;
}

#profile p.en {
    margin-bottom: 20px;
}

#profile p.jp {
    font-size: 1.05rem;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
    line-height: 2;
    color: #9e6b48;
}

/* Highlights */
#highlights {
    /* Background removed to show body image */
}

#highlights h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 60px;
    color: #9e6b48;
    text-align: center;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.highlight-item {
    padding: 30px;
    border: 1px solid #2a1f1d;
    transition: all 0.4s ease;
}

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

.highlight-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.highlight-item p {
    color: #9e6b48;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

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

/* CAREER Styles (Merged from career.css) */
.career-content {
    /* padding is handled by section styles in style.css */
}

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

/* Awards Section */
.awards-section {
    margin-bottom: 120px;
}

.award-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #9e6b48;
    /* Changed to brown to match theme */
    opacity: 0.8;
}

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

.award-year {
    font-size: 1.1rem;
    color: #9e6b48;
    letter-spacing: 2px;
    font-weight: 400;
    padding-top: 5px;
}

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

.award-content p {
    font-size: 1rem;
    color: #9e6b48;
    margin-bottom: 8px;
    line-height: 1.8;
}

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

/* Performances Section */
.performances-section {
    margin-bottom: 80px;
}

.performance-category {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(158, 107, 72, 0.05);
    /* Updated to match theme */
    border-left: 3px solid #9e6b48;
}

.performance-category h4 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #9e6b48;
}

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

.performance-category ul {
    list-style: none;
    padding-left: 0;
}

.performance-category ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.performance-category ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #9e6b48;
    font-size: 1.2rem;
}

.performance-category ul li .en {
    display: block;
    font-size: 1.1rem;
    color: #9e6b48;
    margin-bottom: 5px;
}

.performance-category ul li .jp {
    display: block;
    font-size: 0.95rem;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
    color: #9e6b48;
}

.performance-category .description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #9e6b48;
    margin-bottom: 10px;
}

.performance-category .description.jp {
    font-size: 0.95rem;
    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;
}

@media (max-width: 768px) {

    /* スマホでは中央に配置 */
    #hero {
        background-position: center;
    }

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

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

    .award-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .performance-category {
        padding: 25px;
    }
}

/* iPhone 16 Pro / High-End Small Mobile Adjustments (approx 402px - 440px) */
@media screen and (max-width: 440px) {

    /* General Layout Fixes */
    body,
    html {
        width: 100%;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Hero Typography */
    .hero-content h1 {
        font-size: 1.7rem;
        /* Further reduced for Schedule title overflow */
        letter-spacing: 3px;
        /* Reduced spacing */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.1rem;
        letter-spacing: 4px;
        margin-top: 10px;
    }

    .page-hero {
        background-position: center 30%;
        /* Move image focus down slightly */
        align-items: flex-end;
        /* Push content to bottom */
        padding-bottom: 40px;
        height: 50vh;
    }

    /* Section Spacing */
    section {
        padding: 60px 20px;
        /* Reduced vertical padding */
    }

    /* Font Sizes */
    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    p,
    .jp,
    .en {
        font-size: 0.95rem;
        /* Readable on small screens */
        line-height: 1.8;
    }

    /* Career Grid Specifics */
    .award-item {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 15px;
        padding: 20px;
        border-bottom: 1px solid #ddd;
        /* Clearer separation */
    }

    .performance-category {
        padding: 20px;
    }

    /* Menu Size */
    .menu-items li {
        font-size: 1.6rem;
        margin: 25px 0;
    }
}