/* Little Sprouts – home page styles (shared by index.html and index-ja.html) */

:root {
    --primary: #52B788;
    --primary-dark: #2D6A4F;
    --accent: #FF9F1C;
    --bg-light: #F4F9F4;
    --card-bg: #FFFFFF;
    --text-main: #2B2D42;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Fredoka', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.view-more {
    text-align: center;
    margin-top: 30px;
}

/* Top Navigation Bar for Contact Link */
.top-nav {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 0 0;
}

.levels-cta {
    text-align: center;
    margin-top: 30px;
}

.top-nav a {
    color: var(--primary-dark);
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    padding: 6px 16px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.top-nav a:hover {
    background-color: var(--primary);
    color: white;
}

header {
    background: #E8F5E9;
    padding: 20px 20px 40px 20px;
    text-align: center;
    border-bottom: 5px dashed var(--primary);
    position: relative;
}

.logo-container img {
    max-width: 280px;
    height: auto;
}

.hero-banner {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--primary-dark);
    max-width: 750px;
    margin: 15px auto;
}

.btn-payhip, .btn-gen {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 16px 40px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 0px #C77700;
    transition: transform 0.1s;
}

.btn-payhip:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0px #C77700;
}

section {
    padding: 50px 0;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.feature-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    border: 3px solid #E0E0E0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card.full-width {
    grid-column: 1 / -1;
    background: #FFF9E6;
    border-color: var(--accent);
}

.feature-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.level-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.level-card img {
    width: 90px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    text-align: center;
    justify-items: center;
}

.character-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--accent);
    background: white;
    padding: 8px;
    margin-bottom: 8px;
}

.faq-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border-left: 6px solid var(--primary);
}

.cta-ready{
    text-align: center;
    background: #D7E7FE;
    padding: 60px 20px;
    border-radius: 30px 30px 0 0;
}

.cta-bottom {
    text-align: center;
    background: #FFE8D6;
    padding: 60px 20px;
    border-radius: 30px 30px 0 0;
}

.cta-bottom .footer-links{
    margin: 1em;
    color: #000;
}

html {
    scroll-behavior: smooth;
}

.sample-image {
    width: 100% !important;
    height: auto !important;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sample-image:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.zoomable-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.zoomable-img:hover {
    transform: scale(1.03);
}

.sample-justify {
    justify-content: center;
    height: 100%;
}

/* Modal Image Viewer */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    transition: color 0.2s;
}

.image-modal-close:hover {
    color: var(--accent);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Layout Optimizations */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 0 15px;
    }

    h2 {
        font-size: 1.8rem;
    }

    audio {
        width: 100%;
    }
}

/* Japanese pages use a rounded Japanese font */
html:lang(ja) * {
    font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Comic Sans MS', 'Meiryo', sans-serif;
}

/* Hero text */
.hero-title {
    color: var(--primary-dark);
    margin-top: 10px;
}

.hero-sub {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
    margin-top: 5px;
}

/* Section backgrounds */
.bg-teal   { background: #EAF4F4; }
.bg-yellow { background: #FFF3B0; }
.bg-light  { background: #F4F9F4; }

/* Bottom call-to-action text */
.cta-text      { margin-bottom: 25px; }
.cta-text-tight { margin-bottom: 8px; }
