:root {
    --primary-color: #c5a059;
    /* Rich Gold */
    --primary-hover: #b08d45;
    --secondary-color: #2d2a26;
    /* Warm Charcoal */
    --text-color: #4a4a4a;
    /* Warm Gray */
    --text-light: #7a7a7a;
    --bg-color: #fdfcf8;
    /* Warm Off-White */
    --bg-light: #f4f1ea;
    /* Warm Beige */
    --white: #ffffff;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --transition: all 0.4s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(253, 252, 248, 0.95);
    /* Warm Off-White */
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* background-color: #2d2a26; Removed fallback to let slides show */
    color: var(--white);
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 10s linear;
}

.slide.active {
    opacity: 1;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(45, 42, 38, 0.7), rgba(74, 66, 56, 0.6));
    /* Warm Gradient with transparency */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

/* Sections General */
.section {
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

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

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* News Section */
.news-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.news-header .section-title {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.view-all {
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid transparent;
}

.view-all:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.news-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    padding-left: 1rem;
}

.news-date {
    font-family: var(--font-serif);
    color: var(--text-light);
    margin-right: 2rem;
    min-width: 100px;
}

.news-cat {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    background-color: var(--secondary-color);
    color: var(--white);
    margin-right: 2rem;
    min-width: 80px;
    text-align: center;
}

.news-title {
    flex: 1;
    font-weight: 500;
}

.news-title:hover {
    color: var(--primary-color);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 2;
    margin-bottom: 3rem;
}

.desc-text {
    margin-bottom: 3rem;
    color: var(--text-light);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.message-profile {
    flex-shrink: 0;
    width: 250px;
}

.message-profile img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message-text {
    flex: 1;
}

@media (max-width: 768px) {
    .message-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .message-profile {
        width: 200px;
    }
}

/* Split Layout (Scholarship / Donation) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
    height: 400px;
    background-color: #eee;
    /* Placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    overflow: hidden;
    /* Ensure image doesn't overflow */
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.split-image:hover img {
    transform: scale(1.05);
    /* Subtle zoom effect */
}

.img-placeholder {
    border: 1px dashed #ccc;
    padding: 2rem;
}

.split-content {
    flex: 1;
}

.split-content p {
    margin-bottom: 1.5rem;
}

.sm-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    background-color: var(--bg-light);
}

.contact-desc {
    margin-bottom: 2rem;
}

.contact-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.contact-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #aaa;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .split-image {
        width: 100%;
        height: 250px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-date,
    .news-cat {
        margin-right: 0;
    }
}

/* Animation Classes */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* Performance Page */
.page-main {
    padding-top: 100px;
    /* Offset for fixed header */
    padding-bottom: 4rem;
    min-height: 80vh;
}

.page-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--secondary-color);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.page-title .en {
    font-size: 1.2rem;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 400;
}

/* Performance List */
.performance-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.performance-card {
    display: flex;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.perf-thumb {
    width: 300px;
    flex-shrink: 0;
}

.perf-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.placeholder-thumb {
    width: 300px;
    height: 200px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-weight: bold;
}

.perf-info {
    flex: 1;
}

.perf-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.perf-details {
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    margin-bottom: 1rem;
}

.detail-row .label {
    width: 80px;
    font-weight: 700;
    color: var(--secondary-color);
}

.detail-row .dates p {
    margin-bottom: 0.2rem;
}

.perf-actions {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
    border-color: #ccc;
    color: #fff;
}

/* Performance Detail Page */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.detail-hero {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.detail-thumb {
    width: 400px;
    flex-shrink: 0;
}

.detail-thumb img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.detail-header {
    flex: 1;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.detail-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: var(--font-serif);
}

.detail-section {
    margin-bottom: 4rem;
}

.detail-text {
    line-height: 2;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: left;
}

.schedule-table th {
    background-color: var(--bg-light);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .performance-card {
        flex-direction: column;
    }

    .perf-thumb,
    .placeholder-thumb {
        width: 100%;
    }

    .detail-hero {
        flex-direction: column;
    }

    .detail-thumb {
        width: 100%;
    }

    .schedule-table,
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table th,
    .schedule-table td {
        display: block;
        width: 100%;
    }

    .schedule-table tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
    }

    .schedule-table th {
        background-color: var(--bg-light);
        color: var(--secondary-color);
        padding: 0.5rem 1rem;
    }

    .schedule-table td {
        padding: 0.5rem 1rem;
        text-align: left;
        border: none;
        border-bottom: 1px solid #eee;
    }
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}