    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }


    :root {
            --primary: #BF3131;
            --secondary: #7D0A0A;
            --third: #EAD196;
            --bg: #f7f7f7;
            --text: #1d1d1d;
            --text-secondary: #666666;
            --white: #ffffff;
            --overlay: rgba(0, 0, 0, 0.8);
            --font-h1: 42px;
            --font-h2: 32px;
            --font-h3: 24px;
            --font-p: 16px;
            --font-btn: 16px;
            --image-height: 500px;
            --padding-large: 80px;
            --padding-medium: 50px;
            --padding-small: 30px;
            --padding-xsmall: 15px;
        }


body {
            font-family: 'Noto Sans JP', Arial, sans-serif;
            /* background-color: var(--bg); */
            /* color: var(--text); */
        }



 .japanese-animated-section {
            max-width: 1600px;
            width: 95%;
            margin: 100px auto;
            padding: 20px;
            background: linear-gradient(135deg, #4B0000 0%, #BF3131 100%);
            border-radius: 12px;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
        }

        .background-shapes {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        .shape {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            animation: float-shape 12s infinite ease-in-out;
            opacity: 0.3;
        }

        .shape.sphere-1 {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            top: 15%;
            left: 20%;
            animation-delay: 0s;
        }

        .shape.sphere-2 {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            top: 60%;
            left: 30%;
            animation-delay: 2s;
        }

        .shape.rectangle-1 {
            width: 120px;
            height: 60px;
            top: 30%;
            left: 70%;
            animation-delay: 1s;
        }

        .shape.square-1 {
            width: 70px;
            height: 70px;
            top: 80%;
            left: 50%;
            animation-delay: 3s;
        }

        .shape.triangle-1 {
            width: 0;
            height: 0;
            border-left: 50px solid transparent;
            border-right: 50px solid transparent;
            border-bottom: 80px solid rgba(255, 255, 255, 0.1);
            top: 20%;
            left: 10%;
            animation-delay: 4s;
        }

        @keyframes float-shape {
            0% { transform: translate(0, 0) rotate(0deg); }
            50% { transform: translate(15px, -25px) rotate(10deg); }
            100% { transform: translate(0, 0) rotate(0deg); }
        }

        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            animation: fall-particle 5s linear infinite;
            opacity: 1;
        }

        .particle:nth-child(1) { left: 10%; animation-delay: 0s; }
        .particle:nth-child(2) { left: 25%; animation-delay: 1s; }
        .particle:nth-child(3) { left: 40%; animation-delay: 0.5s; }
        .particle:nth-child(4) { left: 55%; animation-delay: 2s; }
        .particle:nth-child(5) { left: 70%; animation-delay: 1.5s; }
        .particle:nth-child(6) { left: 85%; animation-delay: 3s; }

        @keyframes fall-particle {
            0% {
                transform: translateY(-10px);
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
            100% {
                transform: translateY(100vh);
                opacity: 0;
            }
        }

        .text-section {
            flex: 1 1 40%;
            padding: 30px;
            color: var(--white);
            z-index: 2;
        }

        .text-section h1 {
            font-size: var(--font-h1);
            font-weight: 700;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .text-section p {
            font-size: var(--font-p);
            line-height: 1.6;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .text-section .cta-button{
            outline: none;
            border: none;
            background: transparent;
        }
        .text-section .cta-button a{
            text-decoration: none;
            color: var(--white);
            background: var(--third);
            color: var(--text);
            border: 1px solid var(--primary);
            padding: 12px 24px;
            border-radius: 8px;
            font-size: var(--font-btn);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .text-section .cta-button a:hover {
            background: var(--secondary);
            color: var(--white);
            transform: translateY(-10px);
            box-shadow: 0 4px 10px rgba(253, 61, 61, 1);
        }

        .animation-section {
            flex: 1 1 50%;
            position: relative;
            height: 400px;
            z-index: 1;
        }

        .japanese-character {
            position: absolute;
            font-size: 36px;
            font-weight: 900;
            color: var(--white);
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            cursor: pointer;
            user-select: none;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .japanese-character:hover {
            transform: scale(1.2);
            opacity: 0.8;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
        }

        @keyframes float {
            0% { transform: translate(0, 0) rotate(0deg); }
            25% { transform: translate(20px, -30px) rotate(10deg); }
            50% { transform: translate(0, -60px) rotate(0deg); }
            75% { transform: translate(-20px, -30px) rotate(-10deg); }
            100% { transform: translate(0, 0) rotate(0deg); }
        }

        @media (max-width: 1024px) {
            .japanese-animated-section {
                flex-direction: column;
            }

            .text-section, .animation-section {
                flex: 1 1 100%;
            }

            .animation-section {
                /* height: 300px; */
            }

            .shape.sphere-1 { width: 80px; height: 80px; }
            .shape.sphere-2 { width: 60px; height: 60px; }
            .shape.rectangle-1 { width: 100px; height: 50px; }
            .shape.square-1 { width: 60px; height: 60px; }
            .shape.triangle-1 { border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 60px solid rgba(255, 255, 255, 0.1); }
        }

        @media (max-width: 768px) {
            
            .text-section{
                padding: 20px;
            }
            .text-section h1 {
                font-size: calc(var(--font-h1) * 0.8);
            }

            .text-section p {
                font-size: calc(var(--font-p) * 0.9);
            }

            .japanese-character {
                font-size: 28px;
            }

            .shape.sphere-1 { width: 60px; height: 60px; }
            .shape.sphere-2 { width: 50px; height: 50px; }
            .shape.rectangle-1 { width: 80px; height: 40px; }
            .shape.square-1 { width: 50px; height: 50px; }
            .shape.triangle-1 { border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 50px solid rgba(255, 255, 255, 0.1); }

            .particle { width: 3px; height: 3px; }
        }

        @media (max-width: 480px) {
            .japanese-animated-section {
                padding: 20px;
            }

            .text-section {
                padding: 15px;
            }

            .animation-section {
                /* height: 200px; */
            }

            .shape.sphere-1 { width: 50px; height: 50px; }
            .shape.sphere-2 { width: 40px; height: 40px; }
            .shape.rectangle-1 { width: 60px; height: 30px; }
            .shape.square-1 { width: 40px; height: 40px; }
            .shape.triangle-1 { border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 40px solid rgba(255, 255, 255, 0.1); }

            .particle { width: 2px; height: 2px; }
        }










        .japanese-section {
            max-width: 1400px;
            margin: 50px auto;
            padding:  15px;
        }

        .filter-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: var(--padding-medium);
        }

        .filter-btn {
            background: var(--white);
            color: var(--secondary);
            border: 1px solid var(--secondary);
            padding: 12px 18px;
            border-radius: 8px;
            font-size: var(--font-btn);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-btn.active, .filter-btn:hover {
            background: var(--secondary);
            color: var(--white);
            border-color: var(--secondary);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .table-container {
            display: none;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .table-container.active {
            display: block;
            opacity: 1;
        }

        .japanese-table {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            width: 100%;
        }

        .japanese-card {
            background: var(--white);
            border-radius: 8px;
            padding: var(--padding-xsmall);
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--secondary);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .japanese-card:hover {
            transform: translateY(-1px);
            box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        .japanese-card .romaji {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 5px;
            font-weight: 500;
        }

        .japanese-card .character {
            font-size: 36px;
            font-weight: 900; /* Bolder font */
            color: var(--primary);
            margin-bottom: 10px;
        }

        .japanese-card .meaning, .japanese-card .example {
            font-size: var(--font-p);
            color: var(--text-secondary);
            margin-bottom: 5px;
        }

        .japanese-card .example {
            font-style: italic;
        }

        @media (max-width: 1024px) {
            .japanese-table {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 768px) {
            .japanese-table {
                grid-template-columns: repeat(3, 1fr);
            }

            .japanese-card .character {
                font-size: 28px;
            }

            .filter-btn {
                padding: 8px 15px;
                font-size: calc(var(--font-btn) * 0.9);
            }
        }

        @media (max-width: 480px) {
            .filter-buttons {
                /* flex-direction: column; */
                flex-wrap: wrap;
                align-items: center;
            }

            .japanese-table {
                grid-template-columns: repeat(2, 1fr);
            }
        }