.add0208{

}
.add0208__btn{
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.add0208__btn_item{
    width: calc(50% - 1rem);
    height: 5.5rem;
}
.add0208__btn_item a{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color:#12224e;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all .5s;
}
.add0208__btn_item a:hover{
    background-color: initial;
    color: #12224e;
    border: 1px solid #12224e;
    transition: all .5s;
}
@media screen and (max-width: 767px){
    .add0208__btn{
        flex-direction: column;
        gap: 1rem;
    }
    .add0208__btn_item{
        width: 100%;
        height: 4rem;
    }
    .add0208__btn_item a{
        font-size: 1rem;
    }
}


.add0208 .route {
    display: flex;
    position: relative;
    margin-bottom: 30px;
    padding: 60px 80px;
    border: solid 1px #eeeeee;
    background: #fdfdff;
    color: #225d85;
    font-weight: bold;
    font-size: 24px;
}
@media screen and (max-width: 768px) {
    .add0208 .route {
        flex-direction: column;
        height: 89.156vw;
        padding: 13.8125vw 2.4166vw;
        font-size: 3.125vw;
    }
}
.add0208 .route .sta {
    display: flex;
    flex-direction: column;
    height: fit-content;
}
@media screen and (max-width: 768px) {
    .add0208 .route .sta {
        flex-direction: row;
        justify-content: space-between;
    }
}
.add0208 .route .sta span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: fit-content;
    padding-right: 1.5em;
    padding-left: 1.5em;
    border: 2px solid #225d85;
    border-radius: 5em;
    background-color: #ffffff;
}
@media screen and (max-width: 768px) {
    .add0208 .route .sta span {
        padding-right: .5em;
        padding-left: .5em;
    }
}
@media screen and (min-width: 769px) {
    .add0208 .route .sta span:not(:last-child) {
        margin-bottom: 1em;
    }
}
.add0208 .route .sta span::before {
    position: absolute;
    top: 50%;
    right: -150%;
    z-index: 0;
    width: 150%;
    height: 2px;
    background-color: #225d85;
    content: "";
    translate: 0 50%;
    scale: 0 100%;
    transform-origin: left;
}
@media screen and (max-width: 768px) {
    .add0208 .route .sta span::before {
        top: auto;
        right: calc(50% + -1px);
        bottom: -300%;
        width: 2px;
        height: 300%;
        scale: 100% 0;
        translate: 100% 0;
        transform-origin: top;
    }
}
.add0208 .route .sta span::after {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    position: absolute;
    transform: translateY(20px);
    padding-right: .5em;
    padding-left: .5em;
    background-color: #ffffff;
    color: #225d85;
}
.add0208 .route .sta span:nth-of-type(1)::after {
    right: -7.5em;
    content: "約50分";
}
@media screen and (max-width: 768px) {
    .add0208 .route .sta span:nth-of-type(1)::after {
        right: .5em;
        bottom: -2.5em;
    }
}
.add0208 .route .sta span:nth-of-type(2)::after {
    right: -7.5em;
    content: "約34分";
}
@media screen and (max-width: 768px) {
    .add0208 .route .sta span:nth-of-type(2)::after {
        right: .5em;
        bottom: -2.5em;
    }
}
.add0208 .route .sta span:nth-of-type(3)::after {
    right: -6.5em;
    content: "約43分";
}
@media screen and (max-width: 768px) {
    .add0208 .route .sta span:nth-of-type(3)::after {
        right: .8em;
        bottom: -2.5em;
    }
}
.add0208 .route .sta span:nth-of-type(4)::after {
    right: -7.6em;
    content: "約19分\A約15分(快速)";
    white-space: pre;
    text-align: center;
}
#yokaichi #message .route .sta span:nth-of-type(4)::after {
    right: -7.6em;
    content: "約19分\A約15分(快速)"!important;
    white-space: pre;
    text-align: center;
}
@media screen and (max-width: 768px) {
    .add0208 .route .sta span:nth-of-type(4)::after {
        right: 1.5em;
        bottom: -2.5em;
    }
}
.add0208 .route .youkaici_sta {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    height: 270px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5em;
    padding-left: 1.5em;
    border: 2px solid #225d85;
    border-radius: 1em;
    background-color: #ffffff;
}
@media screen and (max-width: 768px) {
    .add0208 .route .youkaici_sta {
        top: 13.02083vw;
        width: 100%;
        height: fit-content;
    }
    .add0208 .route .youkaici_sta span br {
        display: none;
    }
}
.add0208 .route .youkaici_sta::before {
    position: absolute;
    top: 50%;
    right: -150%;
    z-index: 0;
    width: 150%;
    height: 2px;
    background-color: #225d85;
    content: "";
    translate: 0 50%;
    scale: 0 100%;
    transform-origin: left;
}
@media screen and (max-width: 768px) {
    .add0208 .route .youkaici_sta::before {
        top: auto;
        right: calc(50% + -1px);
        bottom: 0;
        width: 2px;
        height: 300%;
        scale: 100% 0;
        transform-origin: top;
        translate: 0 100%;
    }
}
.add0208 .route .youkaici_sta::after {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    position: absolute;
    right: -5.8em;
    transform: translateY(20px);
    padding-right: .5em;
    padding-left: .5em;
    background-color: #ffffff;
    color: #225d85;
    content: "徒歩\A約3分";
    white-space: pre;
    text-align: center;
}
#yokaichi #message .route .youkaici_sta::after {
    content: "徒歩\A約3分"!important;
    white-space: pre;
    text-align: center;
}
@media screen and (max-width: 768px) {
    .add0208 .route .youkaici_sta::after {
        right: 50%;
        bottom: -3em;
        translate: 50% 50%;
    }
}
.add0208 .route .campus {
    position: relative;
    z-index: 1;
    height: 270px;
}
@media screen and (max-width: 768px) {
    .add0208 .route .campus {
        top: 29.156vw;
        height: 27.156vw;
        text-align: center;
    }
}
.add0208 .route .campus img {
    height: 100%;
}
.add0208 .route:before, .add0208 .route:after {
    position: absolute;
    border-width: 30px 30px 0 0;
    border-style: solid;
    content: "";
}
.add0208 .route:before {
    top: 10px;
    left: 10px;
    border-color: #225c85 transparent;
}
.add0208 .route:after {
    right: 10px;
    bottom: 10px;
    border-color: transparent #225c85;
}
.add0208 .route.inview_active .sta span::before {
    transition: .8s;
    transition-delay: .8s;
    scale: 100% 100%;
}
.add0208 .route.inview_active .sta span::after {
    opacity: 1;
    transform: translateY(0px);
    line-height: 1;
    transition: .8s ease-in-out;
    transition-delay: 1.1s;
}
.add0208 .route.inview_active .sta span:nth-of-type(2)::before {
    transition-delay: 1.1s;
}
.add0208 .route.inview_active .sta span:nth-of-type(2)::after {
    transition-delay: 1.4s;
}
.add0208 .route.inview_active .sta span:nth-of-type(3)::before {
    transition-delay: 1.4s;
}
.add0208 .route.inview_active .sta span:nth-of-type(3)::after {
    transition-delay: 1.7s;
}
.add0208 .route.inview_active .sta span:nth-of-type(4)::before {
    transition-delay: 1.7s;
}
.add0208 .route.inview_active .sta span:nth-of-type(4)::after {
    transition-delay: 2.1s;
}
.add0208 .route.inview_active .youkaici_sta::before {
    transition: .8s;
    transition-delay: 2.4s;
    scale: 100% 100%;
}
.add0208 .route.inview_active .youkaici_sta::after {
    opacity: 1;
    transform: translateY(0px);
    line-height: 1;
    transition: .8s ease-in-out;
    transition-delay: 2.7s;
}
#yokaichi #message .route .sta span:nth-of-type(1)::after {
  right: -7.5em;
  content: "約50分";
}
#yokaichi #message .route .sta span:nth-of-type(3)::after {
  right: -6.5em;
  content: "約43分";
}
