#pc-knowledge-top-main {
  background: #f8fafa;
}

.single-row-items {
  overflow-x: scroll;
  cursor: grab;
  scrollbar-width: none;
}

.single-row-items::-webkit-scrollbar {
  display: none;
}

.category-button {
  width: 200px;
  height: 56px;
  display: flex;
  border-radius: 14px;
  align-items: center;
  padding: 10px;
  background-color: var(--Neutral-Black);
  flex-shrink: 0;
  margin-right: 10px;
  cursor: pointer;
}

.category-button img {
  border-radius: 14px;
  margin-right: 10px;
  user-select: none;
}

.category-title {
  color: white;
  font-family: 'Times New Roman';
  margin-bottom: 0;
  font-size: 16px;
  user-select: none;
}

.category-card {
  flex-shrink: 0;
  margin-right: 15px;
}

.category-img-container {
  width: 174px;
  height: 247px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}

.favourite-btn {
  position: absolute;
  width: 32px;
  height: 32px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  right: 10px;
  top: 10px;
}

.category-card {
  width: 174px !important; /* 親要素に画像とテキストの一貫性を保つ幅を設定 */
  text-align: center; /* テキストを中央揃えにする場合 */
}

.category-img-container {
  width: 174px !important;
  height: 247px !important;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
  margin-bottom: 10px;
  display: flex;
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え（必要であれば） */
}

.category-img-container img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* アスペクト比を維持して全体を表示 */
  object-position: center; /* 中央揃え */
  user-select: none;
  border-radius: 16px;
}

.category-title {
  font-size: 14px; /* 必要に応じてフォントサイズを調整 */
  line-height: 1.5; /* 行間を調整して読みやすくする */
  word-wrap: break-word; /* 長い単語を折り返す */
  overflow-wrap: break-word; /* モダンなブラウザ向けの折り返し指定 */
}

.favourite-btn img {
  width: 16px;
  height: 16px;
  border-radius: 0;
}

.category-card .category-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--Neutral-Black);
}

.category-card .category-sub-title {
  font-weight: 500;
  font-size: 11px;
  color: #949494;
}
