.l-main {
  width: 100%;
}

.l-inner {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.header-line {
  margin-top: 9rem;
  height: 20px;
  background-color: #FFFFFF;
}

.p-video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding: 5px 0px;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

.p-video-gallery__item {
  width: calc(33.333% - 28px);
  background-color: #fff;
  text-align: center;
  box-sizing: border-box;
}

.p-video-gallery__thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.p-video-gallery__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-video-gallery__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 18px;
  padding: 0 16px;
  line-height: 1.6;
  color: #111;
  height: auto;
  text-align: center;
}

.genre-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 2rem auto;
}
.genre-button {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #e6e6e6;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  color: #004087; /* 通常時の文字色（itogo用：紫） */
  text-decoration: none;
}

.genre-button:hover {
  background-color: #004087;
  color: #fff !important; /* ホバー時に白に固定 */
  text-decoration: none;
}

.genre-button.active {
  background-color: #004087;
  color: #fff;
  text-decoration: none;
}


.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 12px;
  margin: 10px 4px;
  border: 1px solid #ccc;
  color: #004087; /* ボタン文字色（iToGoなら #53ba8c に変更可） */
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
  background-color: #004087;  /* ホバー背景色 */
  color: #fff;
}

.pagination .current {
  background-color: #004087;
  color: #fff;
  font-weight: bold;
  border: 1px solid #004087;
}



@media screen and (max-width: 768px) {
  .p-video-gallery__item {
    width: calc(50% - 20px);
  }

  .p-video-gallery {
    margin: 3rem auto;
  }

  .p-video-gallery__title {
    font-size: 1.2rem;
  }
.header-line {
margin-top: 4rem;
height: 20px;
  }
}

@media screen and (max-width: 600px) {
  .p-video-gallery {
    padding: 10px;
    margin: 0 auto;
  }

  .p-video-gallery__item {
    width: 100%;
  }

  .header-line {
    margin-top: 4rem;
    height: 15px;
  }
}
