/* Mobile Table Scroll Guide */
.mtscg-shell {
    position: relative;
    max-width: 100%;
}

.mtscg-scroll-target {
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.mtscg-guide {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 32px);
    padding: 8px 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: rgba(30, 30, 30, 0.62);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mtscg-shell.mtscg-is-overflowing .mtscg-guide {
    opacity: 1;
    visibility: visible;
}

.mtscg-shell.mtscg-dismissed .mtscg-guide,
.mtscg-shell:not(.mtscg-is-overflowing) .mtscg-guide {
    opacity: 0;
    visibility: hidden;
}

/* 右側にまだ続きがあると分かる、ごく薄いグラデーション */
.mtscg-shell.mtscg-is-overflowing:not(.mtscg-at-end)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 100%;
    z-index: 30;
    pointer-events: none;
    background: linear-gradient(to left, rgba(255,255,255,.78), rgba(255,255,255,0));
}

@media (prefers-reduced-motion: reduce) {
    .mtscg-guide {
        transition: none;
    }
}
