@charset "utf-8";

/* main {
  background-image: url(../img/j.png);
   background-size: cover;
} */

.bgi {
  height: 210px;
  background-image: url(../img/sweater-1.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.category {
  width: 100%;
  text-align: center;
  color: rgba(255, 250, 250, 0.9);
  font-family: Libre Baskerville;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.507);
  font-weight: bold;
}

h2 {
  font-family: Libre Baskerville;
  font-size: 24px;
  color: rgb(63, 49, 49);
  padding-top: 80px;
  padding-left: 80px;
}

.item-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px;
  padding: 80px 150px;
  margin: auto;
  text-align: center;
  justify-content: center;
}

.itemg {
  position: relative;
  display: inline-block;
}

.item-group img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: block;
  filter: brightness(0.7);
}

.itemg p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  width: auto;
  padding: 0px 5px;
  z-index: 1;
}

.pagetop {
  position: fixed;
  bottom: 25px;
  right: 20px;
  display: inline-block;
  /* 画像のサイズに合わせる */
}

.pagetop img {
  width: 45px;
  display: block;
  /* 画像の下に余白ができないようにする */
}

.top-text {
  position: absolute;
  /* 親要素からの絶対位置で配置する */
  left: 50%;
  /* 親要素の幅の中央に配置 */
  top: -10%;
  transform: translate(-50%, -50%);
  /* 文字自体の中央に配置し直す */
  text-align: center;
  /* 文字を中央揃えにする */
  font-family: "Zen Old Mincho", serif;
  /* padding-top: 11px; */
  font-size: 11px;
}