* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d8659;
    --secondary-green: #3fa96a;
    --light-green: #e8f5e9;
    --primary-blue: #1976d2;
    --secondary-blue: #42a5f5;
    --light-blue: #e3f2fd;
    --text-dark: #1b5e20;
    --text-gray: #555;
    --bg-gray: #f5f5f5;
    --white: #ffffff;
    --border-gray: #ddd;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Comfortaa', cursive;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    border-bottom: 3px solid var(--secondary-green);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-container img {
    box-shadow: none;
}

.center-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links li a:hover {
    background: rgba(255,255,255,0.2);
}

.lang-switcher, .lang-switcher-mobile {
    position: relative;
}

.lang-switcher-mobile {
    display: none;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: rgba(255,255,255,0.3);
}

.lang-current img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

.lang-current img[src*="lang-jp"] {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 10px;
    margin-top: 5px;
    min-width: 150px;
    z-index: 1000;
}

.lang-options.hidden {
    display: none;
}

.lang-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.lang-option:hover {
    background: var(--light-green);
}

.lang-option img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

.lang-option img[src*="lang-jp"] {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}

.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.hero {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-blue) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.hero h1 img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    background: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.4);
}

.section {
    padding: 60px 20px;
    margin: 40px auto;
    max-width: 1200px;
}

.section h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    text-align: center;
}

.section > p {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.film-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.film-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.film-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.film-content {
    padding: 25px;
}

.film-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.film-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.film-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.film-button:hover {
    background: var(--secondary-blue);
    transform: translateX(5px);
}

.books-carousel {
    margin: 60px 0;
    position: relative;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 60px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 314px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: #f5f5f5;
}

.carousel-info {
    padding: 20px;
}

.carousel-title {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 12px;
    font-weight: 600;
}

.carousel-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.carousel-button {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: var(--secondary-green);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-green);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--secondary-green);
}

.carousel-arrow.prev {
    left: 0;
}

.carousel-arrow.next {
    right: 0;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-gray);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-green);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.solution-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.solution-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.solution-title {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.solution-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Modal Styles Contact */
.modal-overlay-456 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
}

.contact-modal-567 {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    margin: 50px auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.contact-modal-header-678 {
    margin-bottom: 30px;
}

.contact-close-btn-789 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    width: 40px;
    height: 40px;
}

.contact-close-btn-789::before {
    content: '×';
}

.contact-form-container-890 h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.contact-form-group-901 {
    margin-bottom: 20px;
}

.contact-form-group-901 label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form-group-901 input,
.contact-form-group-901 textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.contact-form-group-901 input:focus,
.contact-form-group-901 textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.field-counter-012 {
    font-size: 0.85rem;
    margin-top: 5px;
    color: var(--text-gray);
}

.field-counter-012.valid-123 {
    color: #27ae60;
}

.field-counter-012.invalid-234 {
    color: #e74c3c;
}

.contact-slider-captcha-container-789 {
    background: var(--light-green);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

.contact-slider-track-890 {
    position: relative;
    height: 50px;
    background: #ddd;
    border-radius: 25px;
    margin: 15px 0;
}

.contact-slider-handle-901 {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-slider-target-012 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.contact-submit-btn-234 {
    background: var(--primary-green);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-submit-btn-234:hover {
    background: var(--secondary-green);
}

.contact-loading-message-567,
.contact-success-345,
.contact-error-message-456 {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.contact-loading-message-567 {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.contact-success-345 {
    background: #d4edda;
    color: #155724;
}

.contact-error-message-456 {
    background: #f8d7da;
    color: #721c24;
}

.hidden-678 {
    display: none;
}

.hidden {
    display: none !important;
}

footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

footer p {
    text-align: center;
    margin-bottom: 10px;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: 1;
    }

    nav {
        position: relative;
    }

    .logo-section {
        order: 2;
        flex: 1;
        justify-content: center;
    }

    .lang-switcher {
        display: none !important;
    }

    .lang-switcher-mobile {
        display: block;
        order: 3;
    }

    .center-section {
        display: none;
        width: 100%;
        flex-direction: column;
        order: 4;
        margin-top: 10px;
    }

    .center-section.show {
        display: flex !important;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 12px 15px;
    }

    .hero h1 {
        font-size: 2rem;
        flex-direction: column;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .carousel-container {
        padding: 20px 50px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-arrow.prev {
        left: 5px;
    }

    .carousel-arrow.next {
        right: 5px;
    }

    .carousel-item {
        flex: 0 0 calc(100% - 20px);
    }

    .carousel-item img {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .carousel-container {
        padding: 20px 45px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel-item img {
        height: 320px;
    }
    
    .contact-modal-567 {
        padding: 20px;
        margin: 20px auto;
    }
}