#events .flex{
    display: flex;
}

#events .flex-wrap{
    flex-wrap: wrap;
}

.events-container{
    max-width: 1000px;
}

.events-event-a{
    width: 30%;
    min-width: 220px;
    background-color: #fff;
    margin-bottom: 20px; 
    padding: 20px 0;
}

.events-event-a:hover{
    opacity: 0.8;
    background-color: #fff;
}

.events-event-image-wrapper{
    position: relative;
}

.events-event-image-wrapper:before{
    content: "";
    display: block;
    padding-top: 66.6%;
}

.events-event-image{
    width: 100%;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.events-event-contents{
    margin-top: 10px;
}

.events-event-labels{
    margin-bottom: 10px;
}

.label-event-black{
    background-color: #000;
}

.label-event{
    color: #fff;
    font-weight: normal;
    padding: 5px 10px;
    border-radius: 0;
    text-align: center;
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: baseline;
}

.label-yoyaku{
    color: #4d4d4d !important;
    border: 1px solid #737373;
    background: #fff;
    font-weight: normal;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 0;
    text-align: center;
    display: inline-block;
    font-size: 12px;
    line-height: 1;
}

.events-event-date{
    height: 30px;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.3em;
    color: #333;
}

.events-event-contents-name{
    margin: 20px 0;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    overflow: hidden; 
}

.events-event-adrress{
    height: 21px;
}


@media screen and (min-width: 290px) {
  #events .flex-center-justified {
    -ms-flex-pack: center; /* IE */
    justify-content: center; 
  } 

  .events-event-a{
    width: 100%;
    min-width: 220px;
    background-color: #fff;
    margin-bottom: 20px; 
    padding: 20px 0;
  }
}

@media screen and (min-width: 498px) {
  #events .flex-center-justified {
    -ms-flex-pack: normal; /* IE */
    justify-content: normal;
  }

  .events-event-a{
    width: 50%;
    min-width: 220px;
    background-color: #fff;
    margin-bottom: 20px; 
    padding: 20px 2px;
  }
}

@media screen and (min-width: 756px) {
  #events .flex-center-justified {
    -ms-flex-pack: normal; /* IE */
    justify-content: normal;
  }

  .events-event-a{
    width: 50%;
    min-width: 220px;
    background-color: #fff;
    margin-bottom: 20px; 
    padding: 20px 3px;
  }
}

@media screen and (min-width: 930px) {
  /* homeのindex.htmlに当たっている */
  .flex-equal-justified{
    -ms-flex-pack: justify; /* IE */
    justify-content: space-between;
  }
  /* ここまで */

  .events-container{
    max-width: auto;
  }

  .events-event-a{
    width: 30%;
    min-width: 220px;
    background-color: #fff;
    margin-bottom: 20px;
    margin-left: 15px;
    margin-right: 15px; 
    padding: 20px 5px;
  }
}

@media screen and (min-width: 1000px) {
  /* homeのindex.htmlに当たっている */
  .flex-equal-justified{
    -ms-flex-pack: justify; /* IE */
    justify-content: space-between;
  }
  /* ここまで */

  .events-container{
    max-width: 1000px;
  }

  .events-event-a{
    width: 30%;
    min-width: 220px;
    background-color: #fff;
    margin-bottom: 20px; 
    padding: 20px 0;
  }
}