.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: 33%;
  padding: 10px 5px;
}

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

.p-sub-category__link {
  display: block;
  transition: opacity .2s;
  text-decoration: none;
  text-align: center;
  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: '';
}
/*基本文字*/
p{
  margin: 5px 2px;
  position: relative;
  line-height: 25px;
  font-size: 15px;
}

.square_btn:hover {
    background: #1f355f;
    color: white;
}

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

  .p-sub-category__item {
    width: 16%;
    padding: 15px 8px;
  }

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

@media screen and (max-width: 599px) {
  .p-sub-category__item:nth-child(3n + 1) {
    clear: both;
  }
/*基本文字*/
  p{
  margin: 5px 8px;
  font-size: 15px;
  }
}
/*各選択肢スマホ*/
.blogwrapper { /*NEWSお知らせコーナー*/
  display: flex;
  justify-content: center; /*左右中央揃え*/
  flex-wrap: wrap;
  }
  .blogitem {
	float: left;
    width: 160px;
    background-color: white;
    margin: 3px 4px;
  }
  .blogitem h3 {
    font-size: 14px;
  }
  .blogitem p {
	font-size: 12px;
	color: #333;
    line-height: 16px;
  }
  .blogitem img {
  justify-content: center; /*左右中央揃え*/
  width: 100%;
  }
/*ボタン*/
.square_btn {
    display: inline-block;
    font-size: 11px;
    width: 138px;
    margin: 2px 0px;
    padding: 0.5em 1em;
    text-decoration: none;
    color: #1f355f;
    border: solid 1px #1f355f;
    border-radius: 3px;
    transition: .4s;
    text-align:center;
}

.square_btn:hover {
    background: #1f355f;
    color: white;
}
/*簡易説明送料無料・ネコポスタグ PC*/
.shortpr {
  color: white;
  background-color: #fd7f23;
  font-size: 12px;
  line-height: 26px;
  padding: 2px 8px;
  margin: 5px 10px 0px 0px;
  border-radius: 3px 3px;
}
/*簡易説明タグ送料無料・ネコポスPC*/ 
/*これ買ったら送料無料*/
.freeship23 {
  color: white;
  background-color: #1c8e4a;
  font-size: 12px;
  line-height: 26px;
  padding: 2px 8px;
  margin: 5px 10px 0px 0px;
  border-radius: 3px 3px;
}
/*これ買ったら送料無料*/
}