.trend-pdf {
    margin: 24px auto;
    max-width: 1440px;
    color: #333
}

.trend-pdf * {
    box-sizing: border-box
}

.trend-pdf button,
.trend-pdf-download a {
    font: inherit;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 7px;
    min-height: 44px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.trend-pdf button {
    color: #934600;
    background: #fff;
    border: 2px solid #ee7800
}

.trend-pdf button:hover:not(:disabled) {
    background: #fff2e5
}

.trend-pdf button:disabled {
    opacity: .4;
    cursor: default
}

.trend-pdf button:focus-visible,
.trend-pdf a:focus-visible,
.trend-pdf-stage:focus-visible {
    outline: 3px solid #2268b0;
    outline-offset: 3px
}

.trend-pdf-download,
.trend-pdf-controls,
.trend-pdf-pages {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap
}

.trend-pdf-download {
    margin-bottom: 20px
}

.trend-pdf-download a {
    background: #e96c00;
    color: #fff
}

.trend-pdf-download .trend-pdf-open {
    background: #fff;
    color: #934600;
    border: 1px solid #ee7800;
    font-size: 14px
}

.trend-pdf-help,
.trend-pdf-status {
    text-align: center;
    font-size: 14px;
    margin: 12px 0
}

.trend-pdf-stage {
    width: 100%;
    overflow: auto;
    background: #eee9e3;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
    min-height: 120px
}

.trend-pdf-stage canvas {
    display: block;
    max-width: none !important;
    margin: 0 auto;
    background: #fff
}

.trend-pdf-stage.is-zoomed {
    cursor: grab;
    touch-action: none
}

.trend-pdf-stage.is-dragging {
    cursor: grabbing
}

.trend-pdf-pages {
    margin-top: 16px
}

.trend-pdf-count {
    min-width: 72px;
    text-align: center;
    font-variant-numeric: tabular-nums
}

.trend-pdf-zoom {
    font-variant-numeric: tabular-nums;
    min-width: 48px
}

.trend-pdf-status:empty {
    display: none
}

@media(max-width:600px) {
    .trend-pdf {
        margin: 18px auto
    }

    .trend-pdf-controls {
        gap: 6px
    }

    .trend-pdf button {
        padding: 9px 11px;
        font-size: 14px
    }

    .trend-pdf-help {
        font-size: 12px
    }

    .trend-pdf-download {
        gap: 8px
    }

    .trend-pdf-download a {
        font-size: 14px;
        padding: 10px 12px
    }
}

/* 1.1.0: one toolbar and horizontal page transition */
.trend-pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    margin: 0 0 12px
}

.trend-pdf-toolbar .trend-pdf-download {
    margin: 0
}

.trend-pdf-toolbar .trend-pdf-controls {
    margin: 0
}

.trend-pdf-toolbar button,
.trend-pdf-toolbar a {
    white-space: nowrap
}

.trend-pdf-stage {
    position: relative
}

.trend-pdf-stage.is-sliding {
    overflow: hidden !important;
    touch-action: none
}

.trend-pdf-transition {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: #eee9e3;
    z-index: 1
}

.trend-pdf-transition-pane {
    position: absolute;
    inset: 0;
    will-change: transform
}

.trend-pdf-transition-pane canvas {
    position: absolute;
    top: 0;
    margin: 0 !important
}

@media(max-width:600px) {
    .trend-pdf-toolbar {
        gap: 10px
    }

    .trend-pdf-toolbar .trend-pdf-download,
    .trend-pdf-toolbar .trend-pdf-controls {
        width: 100%
    }
}

/* 1.1.1: fixed side arrows, outside the scrolling PDF area */
.trend-pdf-slider {
    position: relative;
    padding: 0 52px
}

.trend-pdf .trend-pdf-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f58200;
    color: #fff;
    box-shadow: 0 1px 5px #0002;
    touch-action: manipulation
}

.trend-pdf .trend-pdf-arrow:hover:not(:disabled) {
    background: #db6b00
}

.trend-pdf .trend-pdf-arrow:disabled {
    opacity: .65
}

.trend-pdf-arrow span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    margin-top: -3px
}

.trend-pdf-arrow--prev {
    left: 0
}

.trend-pdf-arrow--next {
    right: 0
}

@media(max-width:600px) {
    .trend-pdf-slider {
        padding: 0 22px
    }

    .trend-pdf .trend-pdf-arrow {
        width: 44px;
        height: 44px
    }
}

/* PDF表示領域とスクロールバー用余白を白に */
.trend-pdf-stage,
.trend-pdf-transition {
  background: #fff;
}