.spUser,
.pcUser {
    display :none;
}

.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;
}

.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;
}

.p-sub-category__name::before {
  position: absolute;
  top: 0;
  left: 0;
  content: '-';
}

.sp-list {
  position: absolute;
  z-index: 1000;
  top: 0;
  display: table;
  width: 100%;
  transition: transform .2s;
  transform: translateY(0%);
  border-bottom: 1px solid #eaeaea;
  background: #fff;
}

.square_btn {
    display: inline-block;
    width: 16vw;
    height:10vw;
    text-decoration: none;
    text-align:center;
    font-size:2.5vw;
    color: #666;
    border: solid 1px #666;
    border-radius: 3px;
    transition: .4s;
}

.square_btn:hover {
    background: #666;
    color: white;
}

.box {
  margin:5vw 0 0 5vw;
  float: left;
}

.boxContainer {
    width: 99vw;
    overflow: hidden;
}

.flexiblebox {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center; /* 侥数羹面丙路え∈Safari脱∷ */
  align-items: center; /* 侥数羹面丙路え */
  -webkit-justify-content: center; /* 玻数羹面丙路え∈Safari脱∷ */
  justify-content: center; /* 玻数羹面丙路え */
}

/* clearfix */
.boxContainer:before,
.boxContainer:after {
    content: "";
    display: table;
}

.boxContainer:after {
    clear: both;
}
 
/* For IE 6/7 (trigger hasLayout) */
.boxContainer {
    zoom: 1;
}

@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;
  }
}
