@charset 'utf-8';

body{
  font-size: 14px;
}

#resipi{
  padding-bottom: 60px;
}

#resipi img {
  width: 100%;
}

#resipi .inner{
  width: 956px;
  margin: 0 auto;
}

#resipi h1 {
  margin-bottom: 40px;
  text-align: center;
}

#resipi .list-sort{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#resipi .list-sort .list-item{
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  margin-right: 10px;
  transition: 0.3s;
  cursor: pointer;
}

#resipi .list-sort .list-item:hover{
  background-color: #ddd;
}

#resipi .list-resipi{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
#resipi .list-resipi .list-item{
  width: calc((100% - 30px) / 4);
  margin-bottom: 10px;
  box-sizing: border-box;
  border: 1px solid #ddd;
}

#resipi .list-resipi .list-item.hide{
  display: none;
}

#resipi .list-resipi .item-name{
  background-color: #ff8000;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 0;
}
#resipi .list-resipi .item-img{
  text-align: center;
}
#resipi .list-resipi .item-img img{
  width: 100%;
}
#resipi .list-resipi .item-text{
  font-size: 12px;
  line-height: 1.5;
  padding: 1em;
}

@media only screen and (max-width:768px){
  #resipi .inner {
    width: 100%;
  }
  #resipi .list-resipi{
    justify-content: flex-start;
  }
  #resipi .list-resipi .list-item{
    width: 100%;
  }
  #resipi .list-resipi .list-item:after{
    clear: both;
    content: '';
    display: block;
  }
  #resipi .list-resipi .list-item .item-img{
    float: left;
    width: 50%;
  }
  #resipi .list-resipi .list-item .item-text{
    float: right;
    width: 50%;
    box-sizing: border-box;
    font-size: 3.74vw;
  }