.p-sub-category {
  margin: 30px 10px;
  padding: 0;
  list-style-type: none;
}

.p-sub-category::after {
  display: block;
  clear: both;
  content: '';
}

.p-sub-category__item {
  float: left;
  box-sizing: border-box;
  width: 50%;
  padding: 10px 5px;
}

.p-sub-category__image {
  display: block;
  margin-bottom: 10px;
}

.p-sub-category__link {
  display: block;
  transition: opacity .2s;
  text-decoration: none;
  color: #333;
  border-radius: 10px;
  background-color: #ffda2a;
  padding: 10px;
}

.p-sub-category__link:hover {
  opacity: .66;
}

.p-sub-category__link:active {
  opacity: 1;
}

.p-sub-category__name {
  line-height: 1.3;
  position: relative;
  display: block;
  padding-left: .8em;
  }



@media screen and (min-width: 600px) {
  .p-sub-category {
    margin-right: 0;
    margin-left: 0;
  }

  .p-sub-category__item {
    width: 25%;
    padding: 15px 10px;
  }

  .p-sub-category__item:nth-child(4n + 1) {
    clear: both;
  }
}

@media screen and (max-width: 599px) {
  .p-sub-category__item:nth-child(2n + 1) {
    clear: both;
  }
}

.gama-sub-search::after {
    display: block;
    clear: both;
    content: '';
}

 .gama-sub-search__link {
   display: block;
    transition: opacity .2s;
    text-decoration: none;
    color: #333;
    border-radius: 10px;
    background-color: #ffda2a;
    padding: 10px;
   font-weight: 600;
    font-size: medium;
   text-align: center;
}
   
.gama-sub-search__item {
  float: left;
    box-sizing: border-box;
    width: 50%;
    padding: 10px 5px;
}

.gama-sub-search {
  list-style-type: none;
  margin: 30px 10px;
    padding: 0;
}

.gama-sub-title {
  background-color: #333;
  text-align: center;
  color: #fff;
  padding: 10px;
}

/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc { display: block !important; }
.sp { display: none !important; }
 
/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 750px) {
    .pc { display: none !important; }
    .sp { display: block !important; }
}