.set__color {
  color: #f89d9d;
}
.set__bg {
  background: #f5dcdc !important;
}
.onair__color {
  color: #b0e6fa;
}
.onair__bg {
  background: #e4f2f7 !important;
}
.visual__color {
  color: #fde08f;
}
.visual__bg {
  background: #fff6db !important;
}
.cg__color {
  color: #d3b7ff;
}
.cg__bg {
  background: #f0e7ff !important;
}
.mbs__color {
  color: #dfe9a4;
}
.mbs__bg {
  background: #f5faf0 !important;
}

.topics {
  background: #eff8c6;
}


.topics .section__title span.jp {
  color: #000;
}

.topics ul li a h4 {
  display: flex;
  justify-content: center;
  font-weight: 500;
  font-size: 18px;
  color: #000;
  text-align: center;
  line-height: 1.5;
  padding: 20px;
  align-items: center;
  transition: 0.5s all;
}
.topics ul li a:hover h4 {
  transition: 0.5s all;
  color: #a6c309;
}

.topics.set__bg ul li a:hover h4 {
  transition: 0.5s all;
  color: #ff6766;
}
.topics.onair__bg ul li a:hover h4 {
  transition: 0.5s all;
  color: #44c4f4;
}
.topics.visual__bg ul li a:hover h4 {
  transition: 0.5s all;
  color: #ffba00;
}
.topics.cg__bg ul li a:hover h4 {
  transition: 0.5s all;
  color: #a66dff;
}


.topics__text {
  font-weight: bold;
  font-size: 20px;
  background: #fff;
  padding: 0.5em 1em;
  margin-bottom: 1em;
}

.topics__text::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 6px 0 6px;
  border-color: #fff transparent transparent transparent;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.topics__block .text-c {
  margin-bottom: 30px;
}

.topics__block.welfare {
  margin: 0 auto 30px;
}

.topics ul {
  display: flex;
  flex-wrap: wrap;
  gap :22px;
}

.topics ul li {
  width: calc(100% / 3 - 15px);
  font-size: 12px;
  line-height: 2;
  display: inline-block;
  vertical-align: top; /*追加*/
}
.topics ul li a {
  display: block;
  text-decoration: none;

}

.topics ul li a .topics__img {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow:hidden;
  background: #fff;
}

.topics ul li a .topics__img .topics__img__in {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topics ul li a .topics__img img {
  width: 100%;
  height: 100%;
  transition: 0.5s all;
  object-fit: contain;
}

.topics ul li a:hover .topics__img img {
  transform: scale(1.1, 1.1);
  transition: 0.5s all;
}

.more__btn {
  text-align: center;
}

.more__btn__inner {
  font-size: 18px;
  font-weight: 700;
  font-family: "Noto Sans JP", "YakuHanJP", "Noto Sans", "Noto Sans CJK JP Subset", "Noto Sans CJK JP", sans-serif;
  padding: 10px 40px;
  background: #a6c309;
  border: 1px solid #a6c309;
  color: #fff;
  transition: 0.5s all;
}
.more__btn__inner:hover {
  background: #fff;
  border: 1px solid #a6c309;
  box-sizing: border-box;
  color: #a6c309;
}
@media screen and (max-width: 1024px) {
  .topics ul li a img {
    height: 19.53vw;
  }
}

@media screen and (max-width: 768px) {
  .topics ul {
    flex-wrap: wrap;
    gap: 20px;
  }
  .topics ul li {
    width: 100%;
    box-sizing: border-box;
  }
  .topics ul li a img {
    height: 50vw;
  }

}

@media screen and (max-width: 680px) {
  .topics__text {
    font-size: 3vw;
  }
  .topics__text br {
    display: block !important;
  }
  .topics ul li {
    width: 100%;
  }
  .topics h4 {
    margin-bottom: 0;
    font-size: 4vw;
  }
  .topics .text-c {
    text-align: center;
  }
}
