﻿.busrepo.h2 {
    padding-top: 35px;
    padding-bottom: 67px;
    font-size: 28px;
    color: #3E3A39;
    font-weight: 800;
    line-height: 2;
    margin-left: 132px;
}

.busrepo h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/*.busrepo div.mark-arrow {
    display: inline-block;
    position: relative;
    max-width: 100%;
    padding: 10px 2em 12px 1em;
    border-radius: 4px;
    background-color: rgb(38, 139, 186);
    color: #fff;
    font-weight: bold;
    text-align: left;
    margin-top: 20px;
    margin-left:45em;
    text-align: center;
}*/

div#wordpress_blog {
    width: 94%;
    position: relative;
    margin-left: 16px;
    margin-right: 50px;
}

    div#wordpress_blog > article.wp-article {
        width: 22%;
        /*margin-right: 3%;*/
        display: inline-block;
        vertical-align: top;
        margin-left: 3%;
    }

        div#wordpress_blog > article.wp-article:nth-child( 3n ) {
            margin-right: 0;
        }

        div#wordpress_blog > article.wp-article > h3 > a {
            color: #D0104C;
        }

div.eyecatch {
    /*border: 1px solid #000000;*/
    margin-bottom: 20px;
}

    div.eyecatch > img {
        width: 100% !important;
        vertical-align: top;
        height: 139px !important;
        object-fit: cover;
    }
@media screen and (max-width:320px){
    .carousel {
        padding-top: 190% !important;
    }

    .busrepo {
        height: 26em !important;
    }

    .carousel__slide {
        height: 123% !important;
    }
}

@media screen and (max-width:414px) {
    .carousel {
        padding-top: 113% !important;
    }
    .busrepo {
        height: 26em !important;
    }

    .carousel__slide {
        height: 123% !important;
    }
}

/*@media screen and (max-width:560px) {
    .carousel {
        padding-top: 103% !important;
    }
    .busrepo {
        height: 26em !important;
    }

    .carousel__slide {
        height: 123% !important;
    }
}*/

@media screen and (max-width:326px) {
    .carousel {
        padding-top: 168% !important;
    }

    .busrepo {
        height: 29em !important;
    }

    .carousel__slide {
        height: 101% !important;
    }
}

@media screen and (min-width:326px) and (max-width:350px) {
    .carousel {
        padding-top: 165% !important;
    }

    .busrepo {
        height: 31em !important;
    }

    .carousel__slide {
        height: 101% !important;
    }
}


@media screen and (min-width:350px) and (max-width:375px) {
    .carousel {
        padding-top: 145% !important;
    }

    .busrepo {
        height: 29em !important;
    }

    .carousel__slide {
        height: 101% !important;
    }
}
@media screen and (min-width:375px) and (max-width:440px) {
    .carousel {
        padding-top: 140% !important;
    }

    .busrepo {
        height: 31em !important;
    }

    .carousel__slide {
        height: 36em !important;
    }
}

@media screen and (min-width:440px) and (max-width:475px) {
    .carousel {
        padding-top: 118% !important;
    }
    .busrepo {
        height: 31em !important;
    }

    .carousel__slide {
        height: 36em !important;
    }
}

@media screen and (min-width:475px) and (max-width:540px) {
    .carousel {
        padding-top: 118% !important;
    }

    .busrepo {
        height: 31em !important;
    }

    .carousel__slide {
        height: 36em !important;
    }
}

@media screen and (min-width:540px) and (max-width:768px){
    .carousel {
        padding-top: 75% !important;
    }
    .busrepo {
        height: 31em !important;
    }

    .carousel__slide {
        height: 35em !important;
    }
}

/*@media screen and (max-width: 768px) {
    .carousel {
        position: relative;
        padding-top: 58% !important;
        perspective: 100px;
        padding-left: 103%;
    }

    .carousel__slide {
        height: 123% !important;
    }

    .busrepo {
        height: 28em !important;
    }

    article.wp-article {
        height: 140px;
        overflow: hidden;
        margin-right: 1%;
        margin-left: 1%;
        margin-top: 1%;
        margin-bottom: 3%;
        display: inline-block;
        vertical-align: top;
        position: relative;
        border: dashed 2px white;
        padding: 0.2em 0.5em;
        color: #454545;
        border-radius: 8px;
    }

    div.eyecatch {*/
        /*border: 1px solid #000000;*/
        /*margin-bottom: 20px;
    }

        div.eyecatch > img {
            width: 275px !important;
            vertical-align: top;
            height: 118px !important;
            object-fit: cover;
        }
}*/

@media screen and (max-width: 768px) {
    .busrepo div#wordpress_blog {
        display: none;
    }

    .busrepo div#wordpress_blog_sp {
        display: block;
        width: 78%;
        position: relative;
        margin-left: 45px;
        margin-right: 50px;
    }


    article.wp-article {
        height: 140px;
        overflow: hidden;
        margin-right: 1%;
        margin-left: 1%;
        margin-top: 1%;
        margin-bottom: 3%;
        display: inline-block;
        vertical-align: top;
        position: relative;
        border: dashed 2px white;
        padding: 0.2em 0.5em;
        color: #454545;
        border-radius: 8px;
        width:98%;
    }

    .busrepo div#wordpress_blog_sp ul {
        /*display: -webkit-flex;*/
        display: flex;
        flex-basis: 730px;
        justify-content: space-between;
    }

    .busrepo {
        height: 31em;
        margin-left: -6px;
        margin-right: 2px;
    }

        .busrepo h3 {
            color: black;
            font-size: small;
            display: unset !important;
            -webkit-box-orient: unset !important;
            -webkit-line-clamp: 2;
            overflow: hidden;
        }

        .busrepo p {
            font-style: unset;
            color: white;
            font-size: smaller;
            overflow: hidden;
        }

        .busrepo a.articlelink {
            float: left;
            width: 100%;
            /*padding-right: 7px;*/
            display: block;
            position: absolute;
            height:100%;
            color:black !important;
        }

    div.floatright {
        /*float: right;*/
        /*width: 70%;*/
        margin-left: 169px;
        /*padding-left: 8px;
        padding-right: 10px;*/
        /*margin-top: -13px;*/
    }

    div.eyecatch {
        /*border: 1px solid #000000;*/
        margin-bottom: 20px;
    }

        div.eyecatch > img {
            width: 160px !important;
            vertical-align: top;
            height: 122px !important;
            object-fit: cover;
        }

    @keyframes tonext {
        75% {
            left: 0;
        }

        95% {
            left: 100%;
        }

        98% {
            left: 100%;
        }

        99% {
            left: 0;
        }
    }

    @keyframes tostart {
        75% {
            left: 0;
        }

        95% {
            left: -300%;
        }

        98% {
            left: -300%;
        }

        99% {
            left: 0;
        }
    }

    @keyframes snap {
        96% {
            scroll-snap-align: center;
        }

        97% {
            scroll-snap-align: none;
        }

        99% {
            scroll-snap-align: none;
        }

        100% {
            scroll-snap-align: center;
        }
    }

    /*  body {
        max-width: 37.5rem;
        margin: 0 auto;
        padding: 0 1.25rem;
        font-family: 'Lato', sans-serif;
    }*/

    * {
        box-sizing: border-box;
        scrollbar-color: transparent transparent; /* thumb and track color */
        scrollbar-width: 0px;
    }

        *::-webkit-scrollbar {
            width: 0;
        }

        *::-webkit-scrollbar-track {
            background: transparent;
        }

        *::-webkit-scrollbar-thumb {
            background: transparent;
            border: none;
        }

    * {
        -ms-overflow-style: none;
    }

    ol, li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .carousel {
        position: relative;
        padding-top: 68%;
        perspective: 100px;
        padding-left: 103%;
    }

    .carousel__viewport {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        overflow-x: scroll;
        counter-reset: item;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }

    .carousel__slide {
        position: relative;
        flex: 0 0 100%;
        width: 100%;
        background-color: #f99;
        counter-increment: item;
        /*height: 112%;*/
    }

        .carousel__slide:nth-child(even) {
            background-color: #99f;
        }

        .carousel__slide:before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate3d(-50%,-40%,70px);
            color: #fff;
            font-size: 2em;
        }

    .carousel__snapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        scroll-snap-align: center;
    }

    /*@media (hover: hover) {
        .carousel__snapper {
            animation-name: tonext, snap;
            animation-timing-function: ease;
            animation-duration: 4s;
            animation-iteration-count: infinite;
        }

        .carousel__slide:last-child .carousel__snapper {
            animation-name: tostart, snap;
        }
    }*/

    @media (prefers-reduced-motion: reduce) {
        .carousel__snapper {
            animation-name: none;
        }
    }

    .carousel:hover .carousel__snapper,
    .carousel:focus-within .carousel__snapper {
        animation-name: none;
    }

    .carousel__navigation {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        text-align: center;
    }

    .carousel__navigation-list,
    .carousel__navigation-item {
        display: inline-block;
    }

        .carousel__navigation-item.selected {
            background-color: #268bba;
            background-clip: content-box;
            border: 0.25rem solid transparent;
            border-radius: 50%;
            font-size: 0;
            transition: transform 0.1s;
        }

    .carousel__navigation-button {
        display: inline-block;
        width: 1.5rem;
        height: 1.5rem;
        background-color: #333333;
        background-clip: content-box;
        border: 0.25rem solid transparent;
        border-radius: 50%;
        font-size: 0;
        transition: transform 0.1s;
    }

    .carousel::before,
    .carousel::after,
    .carousel__prev,
    .carousel__next {
        position: absolute;
        top: 0;
        margin-top: 124.5%;
        width: 3rem;
        height: 3rem;
        transform: translateY(-50%);
        border-radius: 50%;
        font-size: 0;
        outline: 0;
        display: none;
    }

    .carousel::before,
    .carousel__prev {
        left: 0rem;
    }

    .carousel::after,
    .carousel__next {
        right: 0rem;
    }

    .carousel::before,
    .carousel::after {
        content: '';
        z-index: 1;
        background-color: #333;
        background-size: 1.5rem 1.5rem;
        background-repeat: no-repeat;
        background-position: center center;
        color: #fff;
        font-size: 2.5rem;
        line-height: 4rem;
        text-align: center;
        pointer-events: none;
    }

    .carousel::before {
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23fff'/%3E%3C/svg%3E");
    }

    .carousel::after {
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23fff'/%3E%3C/svg%3E");
    }
}