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

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

.p-sub-category--button {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

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

.p-sub-category__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
  font-size: 1.2em; /* テキストサイズを大きくする */
  font-weight: bold; /* テキストを太字にする */
}

.p-sub-category__image {
  margin-right: 30px;
  max-width: 100px;
  height: auto;
}

.p-sub-category__name {
  flex-grow: 1;
}

.p-sub-category__divider {
  display: none;
}

/* ボタン内の矢印のスタイル */
.p-sub-category__link::after {
  content: '>';
  margin-left: 10px;
  font-size: 1.5em; /* フォントサイズを大きくする */
  font-weight: bold; /* 太字にする */
  line-height: 1; /* 行の高さを調整 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .p-sub-category__item {
    width: 100%; /* 画面幅が狭い場合は1列に表示 */
    padding: 10px; /* パディングを調整 */
  }
}