:root {
    /* --- Color Palette (Vibrant Future Green) --- */
    --primary-color: #00C853;
    /* Vibrant Emerald */
    --primary-dark: #007E33;
    --secondary-color: #64DD17;
    /* Bright Lime */
    --accent-color: #FFD600;
    /* Sunny Yellow */
    --text-main: #263238;
    --text-muted: #546E7A;
    --white: #ffffff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --backdrop-blur: 12px;

    /* Matrix Zones */
    --zone-top: #4CAF50;
    --zone-teach: #AED581;
    --zone-intervene: #FFF176;
    --zone-risk: #FFAB91;
}

* {
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text-main);
    min-height: 100vh;
    font-weight: 500;
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #E0F2F1, #E8F5E9, #FFFDE7, #F3E5F5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Floating Background Blobs --- */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #69F0AE;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #FFF59D;
    bottom: 20%;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #80DEEA;
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* --- Navigation --- */
header {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta {
    background: var(--text-main);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: scale(1.05);
}


/* --- LP SECTIONS COMMON --- */
.lp-section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-main);
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 40px;
    padding-bottom: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    background: #E8F5E9;
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-headline {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0 0 20px 0;
    font-weight: 900;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(100, 221, 23, 0.3);
    z-index: -1;
    transform: rotate(-1deg);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #A5D6A7, #E8F5E9);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 200, 83, 0.2);
}

.visual-icon {
    font-size: 8rem;
    color: #fff;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.floating-tag {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    animation: float 4s infinite ease-in-out;
}

.tag-1 {
    top: 20%;
    left: -20px;
    color: var(--primary-dark);
    animation-delay: 0s;
}

.tag-2 {
    bottom: 20%;
    right: -20px;
    color: var(--accent-dark);
    animation-delay: 2s;
}


/* --- BUTTONS --- */
.btn-primary-glow {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0, 200, 83, 0.3);
    transition: all 0.3s;
}

.btn-primary-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 200, 83, 0.4);
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}


/* --- PAIN SECTION --- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.pain-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pain-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.pain-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.pain-arrow i {
    display: block;
    font-size: 2rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}


/* --- SOLUTION SECTION --- */
.solution-section {
    background: var(--white);
    border-radius: 40px;
    margin: 40px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    padding: 80px 40px;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: left;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    background: #F1F8E9;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.6;
}


/* --- PROCESS SECTION --- */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid white;
}

.step-num {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.step-separator {
    display: flex;
    align-items: center;
    color: #CFD8DC;
    font-size: 1.5rem;
    height: 150px;
    /* Approximate height of card */
}


/* --- VOICE SECTION --- */
.voice-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
}

.voice-slider::-webkit-scrollbar {
    display: none;
}

.voice-card {
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.voice-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.6;
}

.voice-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.voice-avatar {
    width: 40px;
    height: 40px;
    background: #ECEFF1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B0BEC5;
}

.voice-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* --- FAQ SECTION --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 12px;
}

.faq-q {
    margin: 0 0 10px 0;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-a {
    margin: 0;
    padding-left: 30px;
    color: var(--text-muted);
}


/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border-radius: 40px;
    text-align: center;
    margin-bottom: 60px;
    overflow: hidden;
}

.cta-inner {
    padding: 80px 20px;
}

.cta-inner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-inner p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #E8F5E9;
}

.btn-large {
    font-size: 1.5rem;
    padding: 25px 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: white;
    color: var(--primary-color);
}

.btn-large:hover {
    background: #F1F8E9;
    color: var(--primary-dark);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #ECEFF1;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-separator {
        display: none;
    }

    .visual-card {
        margin: 0 auto;
    }
}


/* --- Common Card Styles --- */
.question-card,
.result-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
}

@media (min-width: 769px) {

    .question-card,
    .result-card {
        padding: 50px;
    }
}

.screen {
    display: none;
    animation: slideUpFade 0.6s ease;
}

.screen.active {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESTORED MATRIX LAYOUT --- */
.result-matrix-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    width: 100%;
}

.matrix-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    position: relative;
    padding: 20px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    background-color: #CFD8DC;
    border: 2px solid #B0BEC5;
    border-radius: 12px;
    padding: 4px;
    aspect-ratio: 1 / 1;
}

.matrix-cell {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-align: center;
    border-radius: 4px;
    position: relative;
    padding: 2px;
}

.matrix-cell.active-type {
    background: linear-gradient(135deg, var(--primary-color), #43A047) !important;
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(0, 200, 83, 0.4);
    border: 2px solid #fff;
    color: #fff;
    z-index: 10;
}

.matrix-grid:has(.active-type) .matrix-cell:not(.active-type) {
    opacity: 0.5;
}

/* --- AXIS LABELS --- */
.axis-label {
    position: absolute;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-muted);
}

.axis-y-top {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-y-bottom {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-x-left {
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.axis-x-right {
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

/* --- RESULT BOXES --- */
.result-content-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-box {
    padding: 30px;
    border-radius: 20px;
}

.box-desc {
    background: #F9FBE7;
    border-left: 6px solid var(--secondary-color);
}

.box-advice {
    background: #FFFDE7;
    border-left: 6px solid var(--accent-color);
}

.result-box h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-desc h3 {
    color: var(--primary-dark);
}

.box-advice h3 {
    color: #FBC02D;
}

/* Zone Colors (if needed for all cells) */
.zone-1 {
    background-color: var(--zone-top);
}

.zone-2 {
    background-color: var(--zone-teach);
}

.zone-3 {
    background-color: var(--zone-intervene);
}

.zone-4 {
    background-color: var(--zone-risk);
}
