@charset "UTF-8";
/* =========================================================
共通
=========================================================*/

section .inner{
  padding-top: 60px;
}

section.lead .inner{
  padding-top: 100px;
}

#lower h2 span {
  color: #F15D56;
}

#lower h3 {
  border-top: 5px solid #333;
  padding-top: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 2;
  margin-bottom: 20px;
}

section .inner{
  padding-bottom: 0;
}

.inner_link{
  display: flex;
  justify-content: left;
  margin-bottom: 30px;
}

.inner_link li{
  margin-right: 10px;
}
.inner_link li:after{
  content: "|";
  padding-left: 10px;  
}

.mdrt_cont{
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
}

.mdrt_cont>dl{
  width: 160px;
  margin-right: 30px;
  margin-bottom: 50px;
  position: relative;
}

.mdrt_cont>dl dt{
  width: 160px;
  height: 175px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #333;
}

.mdrt_cont>dl dt img{
  width: 160px;
  height: 160px;
  object-fit: cover; /* この一行を追加するだけ！ */
}

.mdrt_cont>dl dd{
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 130px;
  margin-left: -65px;
  background: #fff;
  padding: 4px 5px 2px;
  text-align: center;
  box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: bold;
}

.mdrt_cont>dl.life_member dd:before{
  content: "終身会員";
  position: absolute;
  color: #fff;
  left: 0px;
  top: -20px;
  background: #cc0000;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 400;
  padding: 3px 10px;
  border-radius: 20px;
}


.mdrt_cont>dl dd span{
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: normal;
  display: block;
  text-align: center;
}

.mdrt_cont>dl:nth-child(5n){
  margin-right: 0;
}


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

  .inner_link{
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  
  .mdrt_cont{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .mdrt_cont>dl{
    width: 140px;
    margin-right: 0px;
    margin-bottom: 50px;
    position: relative;
  }
  
  .mdrt_cont>dl dt{
    width: 140px;
    height: 155px;
    overflow: hidden;
  }
  
  .mdrt_cont>dl dt img{
    width: 140px;
    height: 140px;
    object-fit: cover; /* この一行を追加するだけ！ */
  }

  .mdrt_cont>dl dd{
    position: absolute;
    left: 50%;
    width: 110px;
    margin-left: -55px;
    background: #fff;
    padding: 4px 5px 2px;
    text-align: center;
    box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    line-height: 1.4;
    font-weight: bold;
  }

  .mdrt_cont>dl:nth-child(5n){
    margin-right: 0;
  }
  .mdrt_cont>dl:nth-child(2n){
    margin-left: 30px;
  }

}