#digital_history {
    text-align: center;
    /*margin: 5px;*/
}

.link {
    margin-top: 10px;
    text-align: right;
}

.link a {
    text-decoration: none;
    background: #ddd;
    padding: 5px 15px;
    border-radius: 100px;
    color: black;
}

.link a:hover {
    background: #333;
    color: white;
}

.history_wide {
    padding: 20px;
    margin-bottom: 50px;
    /*font-weight: bold;*/
    background-color: gray;
    position: relative;
    z-index: 6;
    color: #fff;
}

.history_wide .event,
.history_wide .date,
.history_wide .discription {
    text-align: center;
}

.event {
    font-size: 1.3em;
    position: relative;
    margin-bottom: 5px;
    line-height: 1.2em;
    font-weight: bold;
    margin-left: 10px;
}

.history_wide .event {
    font-size: 1.8em;
    margin-left: 0;
}

.discription,
.date {
    margin-bottom: 5px;
}

.history_local {
    padding: 20px;
    position: relative;
}

.backline::before {
    align-items: center;
    content: '';
    position: absolute;
    width: 3px;
    background-color: black;
    top: 70px;
    bottom: 0%;
    left: 50%;
    margin-left: -1px;
    display: block;
}

.history_list {
    position: relative;
    background: linear-gradient(to left, white 10%, #ccc 50%, white 90%);
    /*background-color: #eee;*/
    padding-bottom: 50px;
}

/*.series_block{
    text-align: center;
    margin: 20px;
    display: flex;
}*/



/*フェードイン設定*/
.fade-in {
    opacity: 0;
    transition-duration: 500ms;
    transition-property: opacity, transform;
}

.fade-in-up {
    transform: translate(0, 50px);
}

.scroll-in {
    opacity: 1;
    transform: translate(0, 0);
}

.cd-timeline__block {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    z-index: 10;
    margin-bottom: 2em;
}

.cd-timeline__block:last-child {
    margin-bottom: 0
}

.cd-timeline__content {
    width: 45%;
    -ms-flex-positive: 0;
    flex-grow: 0;
    position: relative;
    will-change: transform;
    background: white;
    border-radius: 0.7em;
    padding: 1em;
}

.cd-timeline__content {
    width: 45%;
    -ms-flex-positive: 0;
    flex-grow: 0;
    will-change: transform;
    margin-bottom: 30px;
    min-height: 130px;
}

.cd-timeline__date {
    width: 100%;
    height: 100px;
    top: 3px;
    display: flex;
}

.cd-timeline__date a {
    width: 100%;
    height: 130px;
}

.cd-timeline__date img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 10%;
}


/*イベントコンテンツ　PC表示の時*/
@media(min-width:48rem) {
    .cd-timeline__block:nth-child(even) {
        -ms-flex-direction: row-reverse;
        flex-direction: row-reverse
    }

    .cd-timeline__block:nth-child(odd) .cd-timeline__content::before {
        right: auto;
        left: 100%;
        /*        width:0;
        height:0;*/
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-right: 30px solid transparent;
        border-left: 30px solid white;
    }

    .cd-timeline__content::before {
        content: '';
        position: absolute;
        top: 16px;
        right: 100%;
        /*        width:0;
        height:0;*/
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-left: 30px solid transparent;
        border-right: 30px solid white;
    }

    .cd-timeline__content::before {
        top: 24px
    }

    .cd-timeline__block:nth-child(even) .cd-timeline__date {
        left: auto;
        right: 112%;
        text-align: right
    }

    .cd-timeline__date {
        position: absolute;
        left: 112%;
    }
}


/*イベントコンテンツ　スマホ表示の時*/
@media(max-width:48rem) {
    .cd-timeline__content {
        width: 90%;
        will-change: none;
        min-height: 0;
        margin-bottom: 10px;
    }

    .cd-timeline__date {
        height: 100%;
        ;
    }

    /*    .series_block{
        text-align: center;
        margin: 10px;
    }
    .series_block img{
        width: 100%;
    }*/

    .cd-timeline__block {
        display: -ms-flexbox;
        display: flex;
        position: relative;
        z-index: 1;
        margin-bottom: 2em;
        justify-content: space-around
    }

}








/*写真ポップアップ*/
.item_wrapper:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
}

.popupbg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    top: 0;
    left: 0;
    display: none;
}

.popwrap .popupbg {
    position: relative;
}

.popwrap {
    text-align: center;
    display: none;
    width: 75%;
    height: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 11;
    transform: translate(-50%, -50%);
    background-color: #000000a3;
}

@media print,
screen and (min-width:745px) {
    .popwrap {
        width: 30%;
    }
}

.popwrap img {
    display: inline-block;
    width: 80%;
    height: auto;
    margin-top: 30px;
}

.popwrap .close_btn {
    line-height: 30px;
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background: #fff;
    margin: -15px -15px 0 0;
    font-size: 24px;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    color: #D7392A;
    font-weight: bold;
}

.popwrap .caption {
    padding: 10px;
    font-size: 1.2em;
    color: #fff;
}
