@charset: "utf-8";

.related_contents{
  margin:0 0 70px;
}
.related_contents h3{
  color:#0067bd;
  text-align: center;
  margin-bottom: 20px;
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
}
.related_things{
  display: flex;
  flex-wrap: wrap;
  width:100%;
}
.related_things li {
  width: 48.5%;
  position:relative;
  margin-bottom: 3%;
}

.related_things li:nth-child(2n){
  margin-left: 3%;
}
.related_things li:before{
  content:"";
  padding-top: 100%;
  display: block;
}
.related_things li a img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top:0;
  bottom:0;
  left:0;
  right: 0;
  margin:auto;
    border-radius: 10px;
    box-shadow: 0 0 8px #ccc;
  font-family: 'object-fit: cover;';
  transition: .3s;
}
.related_things li span{
  position: absolute;
/*  z-index: 2;*/
  bottom:0;
  background: rgba(0,0,0,0.5);
  color:#fff;
  width:100%;
  border-radius: 0 0 10px 10px;
  text-align: center;
  padding:5px 0;
  text-align: left;
  padding:10px;
  font-size: 1.4rem;
  line-height: 1.4;
}
.triple li a span b{
  display: block;
  background: #fff;
  color:#1c1c1c;
  width:76px;
  border-radius: 70px;
  margin:5px 0;
  text-align: center;
  font-size: 1.4rem
}


@media screen and (min-width:769px) {
  .related_contents {
    margin-bottom:40px;
  }
  .related_contents h3 {
    text-align: left;
    font-size: 2.6rem;
    margin-bottom: 30px;
  }
  .inner .related_things{
    margin:0;
    padding:0;
  }
  .related_things li {
    width:23.5%;
  }
  .related_things.triple li {
    width:32%;
  }
  .related_things li a:hover img,.related_things li a:hover span {
    transition: .5s;
    opacity: 0.8;
  }
/*
  .related_things li,.related_things li:nth-child(2n){
    margin-left: 2%;
  }
  .related_things li:nth-child(5n),.related_things li:first-child{
    margin-left: 0;
  }
  .related_things.triple li:nth-child(5n){
  margin-left: 2%;
  }
  .related_things.triple li:nth-child(4n){
    margin-left: 0;
  }
*/
  .related_things li:nth-child(2n){
    margin-left: inherit;
  }
  .related_things li:not(:nth-child(4n)){
    margin-right: 2%;
  }
  .related_things.triple li:not(:nth-child(4n)){
    margin-right: inherit;
  }
  .related_things.triple li:not(:nth-child(3n)){
    margin-right: 2%;
  }
  
  
  .related_things li span{
    text-align: left;
font-size: 1.6rem;
  }
  .triple li a span b {
    font-size: 1.7rem;
    width:100px;
    padding:3px;
  }
/* IE */
_:-ms-lang(x)::-ms-backdrop, .triple li a span b{
padding:7px 0 0;
}
}