:root {
    --color-cream: #FAF7F2;
    --color-charcoal: #2C2C2C;
    --color-sage: #8B9D83;
    --color-terracotta: #D4A59A;
    --color-sand: #E8DED2;
    --font-display: 'Cormorant Garamond', 'Noto Serif JP', serif;
    --font-jp: 'Noto Serif JP', serif;
    --font-body: 'Work Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--color-cream);
    color: var(--color-charcoal);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 2.5rem;
    right: 2.5rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lang-btn {
    text-decoration: none;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-charcoal);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: var(--color-sage);
    color: white;
}

.lang-btn:hover:not(.active) {
    color: var(--color-sage);
}

.admin-link {
    position: fixed;
    top: 0.5rem;
    right: 1rem;
    font-size: 1rem;
    color: var(--color-charcoal);
    text-decoration: none;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.admin-link:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 4rem 2rem;
    background: 
        linear-gradient(rgba(250, 247, 242, 0.85), rgba(250, 247, 242, 0.75)),
        url('../media/background.webp') center center / cover no-repeat;
    background-attachment: scroll; /* Default: scroll for mobile/tablet compatibility */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 157, 131, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 165, 154, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-charcoal);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Decorative Elements */
.decorative-line {
    width: 80px;
    height: 1px;
    background: var(--color-sage);
    margin: 2rem auto;
    animation: expandWidth 1s ease-out 0.8s both;
}

/* Content Sections */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-charcoal);
    opacity: 0.9;
}

html[lang="ja"] .about-text {
    font-family: var(--font-jp);
    line-height: 2.1;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Classes Section */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.class-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-sage), var(--color-terracotta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.class-card:hover::before {
    transform: scaleX(1);
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.class-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.class-time {
    font-size: 0.95rem;
    color: var(--color-sage);
    margin-bottom: 1rem;
    font-weight: 400;
}

.class-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-charcoal);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

html[lang="ja"] .class-description,
html[lang="ja"] .legal {
    font-family: var(--font-jp);
    line-height: 2;
}

.class-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-terracotta);
    font-weight: 400;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--color-sage);
}

/* Connect Section */
.connect-section {
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-cream) 100%);
    padding: 6rem 2rem;
    text-align: center;
}

.connect-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.connect-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: white;
    color: var(--color-charcoal);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.connect-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-sage);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 0;
}

.connect-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.connect-link:hover {
    color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.connect-link span {
    position: relative;
    z-index: 1;
}

.connect-link svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    text-align: center;
}

.email-link {
    display: inline-block;
    margin-top: 2rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-charcoal);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--color-sage);
    transition: all 0.3s ease;
    position: relative;
}

.email-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-sage);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    z-index: -1;
}

.email-link:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.email-link:hover {
    color: white;
}

/* Footer */
footer {
    background: var(--color-charcoal);
    color: var(--color-cream);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}


/* Desktop only - Enable Parallax Effect */
@media (min-width: 1025px) {
    .hero {
        background-attachment: fixed;
    }
}

/* Responsive */
@media (max-width: 768px) {
			.admin-link {
				top: 0.5rem;
				right: 0.5rem;
			}
			.language-toggle {
        top: 1rem;
        right: 1rem;
    }

    .hero {
        background-attachment: scroll; /* Ensure scroll on mobile */
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

    .connect-links {
        flex-direction: column;
        gap: 1rem;
    }

    .connect-link {
        width: 100%;
        max-width: 300px;
    }
}

/* Scroll reveal */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact intro */
.contact-intro {
    margin-top: 1rem;
    opacity: 0.8;
}

/* Footer links */
.footer-links {
    margin-top: 0.6rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-cream);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Legal pages */
.page-header {
    padding: 2.5rem 2rem 0;
    text-align: center;
}

.home-link {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-charcoal);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
    font-size: 1rem;
    line-height: 1.85;
}

.legal h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    margin: 2.8rem 0 0.8rem;
}

.legal h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 1.8rem 0 0.4rem;
}

.legal p, .legal ul {
    margin-bottom: 1rem;
}

.legal ul {
    padding-left: 1.4rem;
}

.legal a {
    color: var(--color-sage);
}

.legal .note {
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 4.5rem;
    }
}
