.sub_category_area{
  display: -ms-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-left: -5px;
  margin-right: -5px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin-bottom: 20px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.sub_category{
  -webkit-box-flex:0;
      -ms-flex:0 0 25%;
          flex:0 0 25%;
  max-width: 25%;
  padding-left: 5px;
  padding-right: 5px;
  margin-bottom: 10px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
@media (max-width: 767px) {
  .sub_category {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}
}
@media (max-width: 480px) {
  .sub_category {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}
}
.sub_category a {
    text-decoration: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 8px 20px 8px 15px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: #FFF;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    color: #231815;
    border-radius: 60px;
    line-height: 1.2;
    -webkit-transition: 0.25s;
    font-size: 12px;
    border: 2px solid #d2d2d2;
    font-weight: bold;
    width: 100%;
    position: relative;
}

.sub_category a:after {
    content: "";
    top: 50%;
    right: 10px;
    -webkit-transition: 0.25s;
    transition: 0.25s;
    position: absolute;
    width: 4px;
    height: 4px;
    border-top: 2px solid #231815;
    border-right: 2px solid #231815;
    -webkit-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
}

.freespace {
    margin-bottom: 30px;
    line-height: 1.8;
}

.sub_category a span:first-child {
    max-width: 30px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 30px;
            flex: 0 0 30px;
}

.sub_category a span:last-child {
    max-width: calc(100% - 30px);
    -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(100% - 30px);
            flex: 0 0 calc(100% - 30px);
}

@media (max-width: 767px) {
  .sort, .pager {
    font-size: 10px!important;
  }
}
.pager a {
  margin: 10px!important;
}


.itemImg {
  position: relative;
  display: block;
}

.shopName {
	position: absolute;
	bottom: 0px;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	padding: 3px;
	text-align: center;
	font-size: 78% !important;
	line-height: 1.2em !important;
  	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: transform 0.4s ease, opacity 0.4s ease;
	z-index: 2;
}
.FavoriteshopName {
	position: absolute;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	padding: 3px;
	text-align: center;
	font-size: 78% !important;
	line-height: 1.2em !important;
	width: 100%;
    white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: transform 0.4s ease, opacity 0.4s ease;
	z-index: 2;
}

.itemWrap {
	position: relative;
	overflow: hidden; 
}
/* 画像ズーム用 */
.itemWrap .itemImg {
	display: block;
	width: 100%;
	transition: transform 0.5s ease;
}
/* ホバー時にズーム */
.itemWrap:hover .itemImg {
	transform: scale(1.05); /* 少し拡大 */
}
/* ホバー時に下にスライドして消える */
.itemWrap:hover .FavoriteshopName,.itemWrap:hover .shopName{
	transform: translateY(100%);
	opacity: 0;
}
/* ホバー時に下にスライドして消える */
.itemWrap:hover .recommendshopName {
	transform: translateY(100%);
	opacity: 0;
}
/* スマホサイズ（〜767px） */
@media screen and (max-width: 767px) {
  /* スマホ専用のスタイル */
      .recommendshopName {
       bottom:73px;
        }
}

/* タブレットサイズ（768px&#12316;1024px） */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* タブレット専用のスタイル */
      .recommendshopName {
        bottom:73px;
        }
}
