.joydea-color-table {
    background: #fff;
}

.joydea-color-table .aim-column {
    background-color: rgb(254 246 245);
}

.joydea-color-table tbody th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.joydea-scroll-hint {
    position: relative;
}

@media (max-width: 576px) {
    .joydea-color-table th {
        white-space: nowrap;
    }

    .joydea-color-table td {
        white-space: normal;
        line-height: 1.35;
    }

    .joydea-color-table th,
    .joydea-color-table td {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .joydea-scroll-hint::before {
        content: "← 横にスクロールできます →";
        position: sticky;
        left: 0;
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #6c757d;
        padding: 6px 0;
        background: linear-gradient(to right,
                rgba(255, 255, 255, 0),
                rgba(255, 255, 255, 0.9),
                rgba(255, 255, 255, 0));
    }
    .joydea-color-table thead th {
        position: sticky;
        top: 0;
        z-index: 4;
        background: #212529;
        color: #fff;
    }
    .joydea-color-table thead th.bg-orange {
        background: #f78b7a;
        color: #fff;
    }
    .joydea-color-table th:first-child,
    .joydea-color-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 120px;
        background: #f8f9fa;
    }
    .joydea-color-table thead th:first-child {
        z-index: 5;
        background: #212529;
        color: #fff;
    }

    /* スマホ表示時にグリッド内のアイテム幅制限（w-75等）を解除して100%にする */
    .overlap-grid-2 .item__ {
        width: 100% !important;
    }
}

/* 背景動画をコンテナいっぱいに広げるスタイル */
.section-bg-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.section-bg-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* 25%の薄い黒で文字を読みやすく */
    z-index: 1;
}

.section-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 1; /* 最初からポスター画像を表示 */
    z-index: 0;
}

.video-bg-section > *:not(.section-bg-video-wrapper) {
    position: relative;
    z-index: 1;
}

/* インライン動画用スタイル */
.inline-video {
    width: 100%;
    height: auto;
    display: block;
}

/* === 採用「Hack your future」Matrixハッキング演出 === */
.joydea-hack-panel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin: 4rem 0;
    padding: 3rem 1.5rem;
    background: #18100e;
    border: 1px solid rgba(247, 139, 119, 0.25);
    box-shadow: 0 0 40px rgba(247, 139, 119, 0.1);
}

/* 背景だけ画面幅100%に広げるフルブリード */
.joydea-hack-fullwidth {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* フルブリード時もテキストは読みやすい幅で中央に */
.joydea-hack-fullwidth .joydea-hack-content {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.joydea-matrix-rain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

.joydea-hack-content {
    position: relative;
    z-index: 1;
}

/* ダーク背景に合わせてパネル内テキストを反転 */
.joydea-hack-panel h2,
.joydea-hack-panel p {
    color: #fdeeeb;
}

.joydea-hack-tagline {
    color: #f78b77 !important;
    font-family: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
    letter-spacing: 1px;
    text-shadow: 0 0 14px rgba(247, 139, 119, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .joydea-matrix-rain {
        display: none;
    }
}
