body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #0a0a0a;
    color: #f3f4f6;
    overflow-x: hidden;
}

/* Chart Container Styling */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #171717;
}

::-webkit-scrollbar-thumb {
    background: #00a491;
    border-radius: 4px;
}

/* Vertical Writing Mode */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
}

/* Tab Active State */
.tab-btn.active {
    background-color: #00a491;
    color: white;
    border-color: #00a491;
}

/* Background Textures */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Character Slam Animation */
@keyframes charSlam {
    0% {
        opacity: 0;
        transform: scale(10);
        filter: blur(20px);
    }

    30% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    /* Adding a subtle shake at the end for "SLAM" impact */
    35% {
        transform: scale(1) translateY(-2px);
    }

    40% {
        transform: scale(1) translateY(2px);
    }

    45% {
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.char-slam {
    display: inline-block;
    opacity: 0;
    animation: charSlam 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* PC only: スマホでは非表示になるbr */
@media (max-width: 767px) {
    br.pc-only {
        display: none;
    }
}
/* SP only: スマホでのみ表示になるbr */
@media (min-width: 768px) {
    br.sp-only {
        display: none;
    }
}