@charset "utf-8";
.container {
    /*
      width: 70%;
      margin: 50px auto;
      font-size: 16px;
    */
    }
.container h2{font-size: 1.2em; font-weight: bold;
}

    .filtering {
      list-style: none;
      display: flex;
    
      justify-content:flex-start;
      align-items: center;
        margin-bottom: 1em;
    }

    .filtering li + li {
      /*margin: 0 0 0 20px;*/
    }
    .filtering li{margin: 0 10px;}

    .filtering span {
      cursor: pointer;
    }

    .filtering span.active {
      font-weight: bold;
    }

    .filtering-list-cont {
      margin: 30px 0 0;
      padding: 0;
      list-style: none;
      display: flex;
      justify-content:flex-start;
      align-items: center;
      flex-wrap: wrap;
    }

    .filtering-list-cont li {
      /*border: solid 2px #aaa;*/
      padding: 0px;
        display: flex;
        justify-content: center; align-items: center;
      width: calc((100%/4) - 15px);
      height: auto;
      margin: 0 15px 50px 0;
      text-align: center;
    }
.filtering-list-cont li a{
    width: 100%; height: 150px; display: block;
}
.filtering-list-cont li a img{
    width: 100%;
   height: 100%;
  object-fit: cover; /* この一行を追加するだけ！ */
}

@media screen and (max-width:768px) {
  .container {
    width: 100%;
  }
    .filtering-list-cont {
        justify-content: center;
    }
  .filtering-list-cont li{
    width: calc((100%/2) - 16px);
      /*margin: 0 15px 30px 0;*/
      margin: 0 8px 60px 8px
          ;
  }
}