/* Base Styles & Variables */
:root {
    --primary-color: #72ace8;
    /* Pale Blue - slightly deeper for text legibility if needed, or stick to lighter for bg */
    --primary-light: #e6f2ff;
    /* Background Pale Blue */
    --accent-color: #ff6b6b;
    /* Ladybug Red */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --font-base: "M PLUS Rounded 1c", "Hiragino Maru Gothic Pro", sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1000px;
    /* narrowed slightly for cleaner read */
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 80px 0;
}

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

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.3);
}

.btn-line {
    background-color: #06c755;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.icon {
    margin-right: 0.5rem;
}

.section-header {
    margin-bottom: 3rem;
}

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

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 70px;
}

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

.logo img {
    height: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.nav-btn a {
    background-color: #06c755;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.nav-btn a:hover {
    color: var(--white);
    opacity: 0.9;
}

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

/* Hero Section */
.hero {
    padding-top: 100px;
    /* Reduced padding top */
    padding-bottom: 0;
    background-color: var(--primary-light);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    /* Vertically center content */
}

.hero-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
    width: 90%;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    /* relative width */
    max-width: 600px;
    /* Limit text width */
    z-index: 2;
    /* On top of image */
    padding-top: 2rem;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    /* Readability */
}

.hero-title {
    font-size: 4rem;
    /* Larger title */
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    /* Placeholder for english font */
}

.hero-title .en-font {
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    /* Playful font */
    color: var(--accent-color);
    background: linear-gradient(transparent 60%, rgba(255, 235, 59, 0.8) 60%);
    /* Marker effect */
    display: inline-block;
}

.hero-location {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-color);
    /* Darker for readability */
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.7);
    /* translucent bg */
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 65%;
    /* Large image */
    height: auto;
    z-index: 1;
    opacity: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    border: none;
    box-shadow: none;
    /* Soft edges/fade if possible, but user asked for "large image" */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
    mask-image: linear-gradient(to right, transparent, black 15%);
}

.hero-wave {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

/* Concept Section */
.concept {
    background-color: var(--white);
}

.concept-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.concept-item {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.concept-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.concept-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.concept-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.concept-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Service Section */
.service {
    background-color: #fafafa;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.price-box {
    background-color: var(--primary-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.price-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.price-label {
    font-weight: 700;
    color: var(--text-color);
}

.price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-cycle {
    font-size: 0.8rem;
    color: var(--text-light);
}

.price-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.other-services {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.other-item {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    min-width: 200px;
    border: 1px solid var(--primary-light);
}

.other-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.accent-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.accent-price.free {
    color: var(--accent-color);
}

.price-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.price-text span {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.small-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
}

/* Teacher Section */
.teacher {
    background-color: var(--primary-light);
    position: relative;
    z-index: 1;
}

/* ladybug background decoration if desired */
.teacher::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-image: url('images/logo.png');
    /* Assuming logo contains ladybug */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.teacher-wapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.teacher-image {
    flex: 1;
}

.teacher-image img {
    border-radius: 50% 50% 20px 20px;
    border: 5px solid var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.teacher-content {
    flex: 1.2;
}

.teacher-content .section-title {
    margin-bottom: 2rem;
}

.teacher-name {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.teacher-role {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.teacher-bio {
    background: var(--white);
    padding: 2rem;
    border-radius: 0 20px 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.teacher-bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid var(--white);
    border-left: 15px solid transparent;
}

/* About Space */
.about-space {
    background-color: var(--white);
}

.space-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.space-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    /* group: hover; removed invalid property */
}

.space-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.space-item:hover img {
    transform: scale(1.05);
}

.space-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
}

.space-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.space-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Access */
.access {
    background-color: #fafafa;
}

.access-content {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.access-info {
    flex: 1;
    min-width: 300px;
}

.info-row {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.info-row h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
}

.map-link {
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: underline;
}

.access-map {
    flex: 1.2;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
    /* Fixed height to prevent cutoff */
}

.access-map iframe {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1.5rem;
}

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

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-social img {
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-social a:hover img {
    .copyright {
        font-size: 0.8rem;
        opacity: 0.8;
    }

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

    .footer-bottom-links a {
        font-size: 0.8rem;
        opacity: 0.8;
        text-decoration: underline;
    }

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

    opacity: 0.8;
}

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

.footer-bottom-links a {
    font-size: 0.8rem;
    opacity: 0.8;
    text-decoration: underline;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove default button styles */
    outline: none;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    background-color: #ff5252;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 25px;
        background: none;
        border: none;
        position: relative;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        position: absolute;
        transition: 0.3s;
    }

    .mobile-menu-btn span:nth-child(1) {
        top: 0;
    }

    .mobile-menu-btn span:nth-child(2) {
        top: 11px;
    }

    .mobile-menu-btn span:nth-child(3) {
        bottom: 0;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        padding: 5rem 2rem;
        transition: 0.3s;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }

    /* Hero Mobile */
    .hero {
        padding-top: 100px;
        text-align: center;
        min-height: auto;
        display: block;
    }

    .hero-container {
        flex-direction: column-reverse;
        padding-bottom: 2rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-content {
        padding-right: 0;
        z-index: 2;
    }

    .hero-image {
        position: relative;
        width: 100%;
        top: auto;
        right: auto;
        transform: none;
        margin-bottom: 1rem;
        opacity: 1;
    }

    .hero-image img {
        -webkit-mask-image: none;
        mask-image: none;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Teacher */
    .teacher-wapper {
        flex-direction: column;
    }

    .teacher-image img {
        width: 250px;
        height: 250px;
        object-fit: cover;
    }

    /* Access */
    .access-content {
        flex-direction: column;
    }

    .other-item {
        width: 100%;
    }
}