:root {
    /* Light Theme */
    --primary-color: #2c5530;
    --secondary-color: #8b4513;
    --accent-color: #d4af37;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary-color: #4a7c59;
    --secondary-color: #a86c3d;
    --accent-color: #e6c44c;
    --text-dark: #e2e8f0;
    --text-light: #a0aec0;
    --bg-light: #1a202c;
    --bg-white: #2d3748;
    --border-color: #4a5568;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: var(--transition);
    overflow-x: hidden;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .header { background: rgba(45,55,72,0.95); }
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}
.kanji-logo {
    font-size: 1.5rem;
    color: var(--primary-color);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover { color: var(--primary-color); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}
.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-danger {
    background: #e53e3e;
    color: white;
}
.btn-danger:hover {
    background: #c53030;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
}
.theme-toggle:hover {
    background: var(--bg-light);
    transform: rotate(15deg);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}
.mobile-menu-btn span:nth-child(1) { margin-bottom: 6px; }
.mobile-menu-btn span:nth-child(2) { margin-bottom: 6px; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}
.mobile-menu-overlay.active { transform: translateX(0); }
.mobile-menu-container {
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 1.1rem;
}
.mobile-nav-link i {
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}
.mobile-nav-link:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}
.mobile-menu-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.mobile-social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.25rem;
}
.social-link:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
}
.mobile-copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.floating-sakura {
    position: absolute;
    background: rgba(255,255,255,0.7);
    border-radius: 50% 0 50% 0;
    animation: float 20s infinite linear;
}
.floating-sakura:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}
.floating-sakura:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}
.floating-sakura:nth-child(3) {
    width: 50px;
    height: 50px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}
.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}
.hero-title {
    margin-bottom: 1.5rem;
}
.title-line {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
}
.title-sub {
    display: block;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    opacity: 0.9;
}
.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Container & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
section {
    padding: 5rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Activities */
.activities { background: var(--bg-white); }
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.activity-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}
.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.activity-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.activity-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}
.activity-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.activity-level {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}
.activity-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.activity-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.activity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    background: var(--bg-light);
}
.activity-image.loaded { background: transparent; }
.activity-card:hover .activity-image { transform: scale(1.05); }
.activity-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}
.activity-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}
.feature i {
    color: var(--primary-color);
    width: 16px;
}
.activity-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    position: relative;
    z-index: 2;
}
.activity-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Instructors */
.instructors { background: var(--bg-light); }
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.instructor-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.instructor-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}
.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.instructor-info {
    padding: 1.5rem;
}
.instructor-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.instructor-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}
.instructor-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.instructor-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Events */
.events { background: var(--bg-white); }
.events-grid {
    display: grid;
    gap: 1.5rem;
}
.event-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.event-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}
.event-date {
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    min-width: 80px;
}
.event-day {
    font-size: 1.5rem;
    font-weight: 700;
}
.event-month {
    font-size: 0.9rem;
    opacity: 0.9;
}
.event-details h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.event-details p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.event-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.event-status.available {
    background: #c6f6d5;
    color: #22543d;
}
.event-status.limited {
    background: #fed7d7;
    color: #742a2a;
}
.event-status.full {
    background: #e2e8f0;
    color: #4a5568;
}
[data-theme="dark"] .event-status.available {
    background: #22543d;
    color: #c6f6d5;
}
[data-theme="dark"] .event-status.limited {
    background: #742a2a;
    color: #fed7d7;
}
[data-theme="dark"] .event-status.full {
    background: #4a5568;
    color: #e2e8f0;
}

/* Gallery */
.gallery { background: var(--bg-light); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    text-align: center;
    padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { margin-bottom: 0.5rem; }

/* Contact */
.location { background: var(--bg-white); }
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}
.contact-details { margin-bottom: 2rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}
.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}
.feedback-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.feedback-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}
.form-group { margin-bottom: 1.5rem; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44,85,48,0.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}
.footer-section a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
}
.modal-close:hover { color: var(--text-dark); }
.booking-form { padding: 2rem; }
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-actions { flex-direction: column; align-items: center; }
    .activities-grid,
    .instructors-grid,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
    .event-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .nav-container { padding: 1rem; }
    .container { padding: 0 1rem; }
    section { padding: 3rem 0; }
    .mobile-menu-container { padding: 1.5rem; }
    .activity-actions { flex-direction: column; }
    .activity-actions .btn { width: 100%; justify-content: center; }
    .form-actions { flex-direction: column; }
}

/* Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}
.error-state i {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}
.error-state h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Activity image loading shimmer */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}
.loading-shimmer {
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, var(--bg-light) 8%, var(--bg-white) 18%, var(--bg-light) 33%);
    background-size: 800px 104px;
}

/* Activity hero image */
.activity-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-light);
}
.activity-hero-img.loaded { background: transparent; }
.activity-hero-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .activity-hero-placeholder { height: 300px; font-size: 3rem; }
    .activity-hero-img { height: 300px; }
    .activity-actions { flex-direction: column; }
    .activity-actions .btn { width: 100%; justify-content: center; }
}