@charset "utf-8";

/**********************************************/
/*Highlights, News & Events*/
/**********************************************/

.news-box {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style-type: none;

    display: flex;    
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.news-box li {
    width: calc(8.333% * 4 - 40px);
    margin: 0 20px 50px;
    background-color: #fff;
    border-radius: 10px;
    border-bottom-right-radius: 50px;

    border: 1px #ddd solid;
}
.news-box li:hover {
    transition: all .5s;
    box-shadow: 0px 0px 20px 0px rgba(137,137,137,0.7);
}

.news-box li p {
    line-height: 140%;
}


/*レイアウト用*/
.news-photo {
    padding: 20px 20px 10px;
}
.news-text {
    padding: 30px 25px 30px;
    position: relative; /*カテゴリーリボン用*/
}

/*写真*/
.news-photo img {
    width:100%;
    max-width: 640px;
    height: 240px;
    display: block;
    margin: 0 auto;
    /*object-fit: cover;*/
    object-fit: contain;
}

/*ステータス*/
.news-text .item {
    margin-bottom: 20px;
}
/*ステータス：開催日時*/
.news-text .eventdate {
    margin-top: 20px;
    display: inline-block;
}
/*ステータス：開催場所*/
.news-text .venue {
    margin-left: 20px;
}

/*カテゴリーの色*/
/*
.ribbon {
    position: absolute;
    left: 0px;
    top: 0px;
}
*/

/*カテゴリーアイコン２つ*/
.news-text .rdouble{
    top: -30px!important;
}

/****************************/
/*リボン:親となる枠に「position: relative;」*/
/****************************/
.ribbon {
    position: absolute;
    left: -25px;
    top: 0px;
    left: 0px;
    top: 0px;

    box-sizing: border-box;
    padding: 0 20px 0 15px;
    margin: 0;
    height: 30px;
    line-height: 30px;
    color: #fff;
    background: #ddd;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 50px;
}
.ribbon:before {
    position: absolute;
    content: '';
    top: 0;
    left: -7px;
    border: none;
    height: 37px;
    width: 7px;
    background: #ddd;
    border-radius: 5px 0 0 5px;
}
.ribbon:after {
  position: absolute;
  content: '';
  bottom: -7px;
  left: -5px;
  border: none;
  height: 7px;
  width: 5px;
  background: #ddd;
  border-radius: 5px 0 0 5px;
}



/****************************/
/**カテゴリーの色*/
/****************************/
/*Past Events*/
.mk-events .ribbon {
    color: #fff;
    background: #66cc66;
}
.mk-events .ribbon:before {
    background: #66cc66;
}
.mk-events .ribbon:after {
  background: #669933;
}

/*News*/
.mk-news .ribbon {
    color: #fff;
    background: #6495ed;
}
.mk-news .ribbon:before {
    background: #6495ed;
}
.mk-news .ribbon:after {
  background: #26509b;
}

/*Upcoming Events*/
.mk-upcoming .ribbon {
    color: #fff;
    background: #ff69b4;
}
.mk-upcoming .ribbon:before {
    background: #ff69b4;
}
.mk-upcoming .ribbon:after {
    background: #a22262;
}

/*オンライン*/
.mk-online {
    border: 2px #ffb400 solid;
    padding: 2px 10px;
    color: #ffb400;
    border-radius: 100px;
    font-size: 1.4rem;
}


/*詳細*/
.news-text .summary {}

/*詳細：タイトル*/
.news-headline {}
.news-headline p {
    margin: 10px 0;
    font-size: 1.8rem;
    font-weight: 500;
}

/*詳細：言語案内*/
.news-lang {
    font-size: 1.4rem;
}



/****************************/
/*レスポンシブ*/
/****************************/
@media screen and (max-width: 1280px) {
}

@media screen and (max-width: 980px) {
    /*
    .news-box li {
        width: calc(8.333% * 6 - 40px);
        margin: 0 20px 50px;
    }
    */
    .news-box li {
        width: 100%;
        margin: 0 0 20px 0;
        padding: 20px;

        display: flex;    
        -webkit-flex-wrap: wrap;
        -moz-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;

        border:1px #eee solid;
    }    

    .news-photo {
        width: 160px;
        padding: 0;
        margin-bottom: 0;
        margin-right: 20px;
    }
    .news-text {
        width: calc(100% - 160px - 20px);
        position:static;
        padding: 0;
    }

    .news-photo img {
        height: 200px;
        object-fit: contain;
    }

    .news-text .item {
        margin-bottom: 10px;
    }
    .news-headline p {
        font-size: 1.6rem;
    }

    .news-text .category div {
        display: inline;
    }

    .ribbon {
        position:static;
        left: auto;
        top: auto;
        border-radius: 50px;
        box-shadow: none;
        height: auto;
        padding: 2px 20px;
        line-height: 100%;
        font-size: 1.4rem;
    }
    .ribbon:before {
        display: none;
    }
    .ribbon:after {
        display: none;
    }

    .news-text .rdouble:first-child .ribbon {
        top: auto;
    }
}

@media screen and (max-width: 780px) {

}

@media screen and (max-width: 580px) {
    .news-photo {
        width: 100%;
        margin-bottom: 30px;
        margin-right: 0;
    }
    .news-text {
        width: 100%;
    }
}


@media screen and (max-width: 380px) {


}
