.scroll-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 1000px;
    overflow: hidden;
    border: 1px solid #ccc;
    background: #fff;
}

/* 横スクロール */
.scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    height: 100%;
    scroll-behavior: smooth;
}

/* 縦書きテキスト */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: inline-block;
    padding: 20px;
    font-size: 18px;
    line-height: 1.8;
}

/* 矢印 */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none;
    transition: background 0.3s, transform 0.3s;
}

.scroll-arrow:hover {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.scroll-arrow.left { left: 10px; }
.scroll-arrow.right { right: 10px; }

/* フェード */
.scroll-wrapper::before,
.scroll-wrapper::after {
    opacity: 0;
    transition: opacity 0.3s;
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 60px;
    pointer-events: none;
}

.scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.scroll-wrapper.show-left-fade::before { opacity: 1; }
.scroll-wrapper.show-right-fade::after { opacity: 1; }
