/* ジャンル別詳細 */
.genre {
  background-color: #fcf2f5;
}

.genre_contents-wrap {
  padding-top: 48px;
  display: grid;
  grid-template-columns: 100%;
  gap: 70px;
}

.genre_contents-box {
  width: 100%;
}

/* ジャンル見出し - 吹き出しスタイル */
.genre_contents-heading {
  position: relative;
  margin: 12px auto;
  max-width: 100%;
  padding: 0 3.2%;
}

.genre_contents-heading::before,
.genre_contents-heading::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 1;
}

.genre_contents-heading::before {
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  border-width: 0 12px 10px 12px;
}

.genre_contents-heading.about::before {
  border-color: transparent transparent #edb44a transparent;
}

.genre_contents-heading.skills::before {
  border-color: transparent transparent #e6739b transparent;
}

.genre_contents-heading.popular::before {
  border-color: transparent transparent #b29feb transparent;
}

.genre_contents-heading.scene::before {
  border-color: transparent transparent #a2d32e transparent;
}

.genre_contents-heading::after {
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-width: 10px 12px 0 12px;
}

.genre_contents-heading.about::after {
  border-color: #edb44a transparent transparent transparent;
}

.genre_contents-heading.skills::after {
  border-color: #e6739b transparent transparent transparent;
}

.genre_contents-heading.popular::after {
  border-color: #b29feb transparent transparent transparent;
}

.genre_contents-heading.scene::after {
  border-color: #a2d32e transparent transparent transparent;
}

.genre-heading-bubble {
  position: relative;
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 15px 40px;
  border-radius: 25px;
  margin: 0 auto;
  width: max-content;
  min-width: 380px;
}

@media screen and (max-width: 991px) {
  .genre-heading-bubble {
    font-size: 20px;
    min-width: 310px;
    padding: 15px 30px;
  }
}

.genre_contents-heading.about .genre-heading-bubble {
  background-color: #edb44a;
}

.genre_contents-heading.skills .genre-heading-bubble {
  background-color: #e6739b;
}

.genre_contents-heading.popular .genre-heading-bubble {
  background-color: #b29feb;
}

.genre_contents-heading.scene .genre-heading-bubble {
  background-color: #a2d32e;
}

.genre-heading-bubble::before,
.genre-heading-bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  top: 50%;
  transform: translateY(-50%);
}

.genre-heading-bubble::before {
  left: -8px;
  border-width: 12px 10px 12px 0;
}

.genre_contents-heading.about .genre-heading-bubble::before {
  border-color: transparent #edb44a transparent transparent;
}

.genre_contents-heading.skills .genre-heading-bubble::before {
  border-color: transparent #e6739b transparent transparent;
}

.genre_contents-heading.popular .genre-heading-bubble::before {
  border-color: transparent #b29feb transparent transparent;
}

.genre_contents-heading.scene .genre-heading-bubble::before {
  border-color: transparent #a2d32e transparent transparent;
}

.genre-heading-bubble::after {
  right: -8px;
  border-width: 12px 0 12px 10px;
}

.genre_contents-heading.about .genre-heading-bubble::after {
  border-color: transparent transparent transparent #edb44a;
}

.genre_contents-heading.skills .genre-heading-bubble::after {
  border-color: transparent transparent transparent #e6739b;
}

.genre_contents-heading.popular .genre-heading-bubble::after {
  border-color: transparent transparent transparent #b29feb;
}

.genre_contents-heading.scene .genre-heading-bubble::after {
  border-color: transparent transparent transparent #a2d32e;
}

/* ---知識を深めたい人のための資格 */
.genre_contents-about-text {
  width: 100%;
  max-width: 590px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  text-align: center;
  line-height: 1.8;
}

@media screen and (max-width: 991px) {
  .genre_contents-about-text {
    text-align: left;
  }
}

/* ---スキルアップのための資格 */
.genre_contents-skills-items {
  width: 100%;
  max-width: 650px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 991px) {
  .genre_contents-skills-items {
    max-width: 500px;
  }
}

.genre_contents-skills-item {
  width: 100%;
}

/* ---人気の資格 */
.genre_contents-popular-items {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-wrap: wrap;
  gap: 35px 70px;
  justify-content: center;
  margin-top: 45px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 991px) {
  .genre_contents-popular-items {
    max-width: 500px;
    gap: 20px;
  }
}

.genre_contents-popular-item {
  width: calc((100% - 70px * 2) / 3);
  display: grid;
  grid-template-rows: max-content auto;
  gap: 22px;
}

@media screen and (max-width: 991px) {
  .genre_contents-popular-item {
    width: calc((100% - 20px) / 2);
  }
}

.genre_contents-popular-item-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}

.genre_contents-popular-item-text {
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

@media screen and (max-width: 991px) {
  .genre_contents-popular-item-text {
    font-size: 14px;
  }
}

/* ---普段の生活で活かせるシーン */
.genre_contents-box.scene {
  width: 100%;
  background-image: url(../img/genre/bg_scene.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 70px 0 80px;
}

@media screen and (max-width: 991px) {
  .genre_contents-box.scene {
    width: 106.4%;
    margin-left: -3.2%;
    padding: 30px 0 40px;
    overflow-x: hidden;
  }
}

.genre_contents-scene-items {
  width: 100%;
  margin-top: 35px;
}

.scene-item_content {
  display: grid;
  gap: 20px;
  width: 100%;
}

.scene-item_title {
  width: 100%;
  display: grid;
  grid-template-columns: 15px auto 15px;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.scene-item_title::before,
.scene-item_title::after {
  content: '';
  width: 100%;
  height: 100%;
  border: 1px solid #505050;
}

.scene-item_title::before {
  border-right: none;
}

.scene-item_title::after {
  border-left: none;
}

.scene-item_title .title {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: bold;
  height: 50px;
  text-align: center;
}

.scene-item_img {
  width: 100%;
  aspect-ratio: 220 / 145;
  overflow: hidden;
  border-radius: 10px;
}

.scene-item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* scene-swiper */
/* SP時はスライド幅を280pxに固定 */
@media (max-width: 767px) {
  .scene-swiper .swiper-slide {
    width: 280px !important;
  }
}

/* PC時はスライド幅を200pxに固定 */
@media (min-width: 768px) {
  .scene-swiper .swiper-slide {
    width: 200px !important;
  }
}

/* 最後のスライドが見切れないように余白を追加 */
.scene-swiper .swiper-slide:first-child {
  margin-left: 35px;
}

.scene-swiper .swiper-slide:last-child {
  margin-right: 35px;
}

/* PC時にも余白を確保 */
@media (min-width: 768px) {
  .scene-swiper_wrapper {
    padding-right: 35px !important;
  }
}

.scene-swiper_button-prev,
.scene-swiper_button-next {
  top: 70%;
}

@media screen and (max-width: 991px) {
  .scene-swiper_button-prev,
  .scene-swiper_button-next {
    top: 65%;
  }
}

.scene-swiper_button-prev::after,
.scene-swiper_button-next::after {
  content: '';
  min-width: 30px;
  min-height: 30px;
  background-color: rgba(255, 122, 115, 0.6);
  background-size: 8px 14px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.scene-swiper_button-prev::after {
  background-image: url(../img/arrow_left.png);
}

.scene-swiper_button-next::after {
  background-image: url(../img/arrow_right.png);
}

/* ジャンル別商品一覧 */
.genre_list {
  margin-top: 100px;
}

@media screen and (max-width: 991px) {
  .genre_list {
    margin-top: 60px;
  }
}

.genre_list-title {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 991px) {
  .genre_list-title {
    max-width: 220px;
  }
}

.genre_list-title .title-top {
  width: 100%;
  max-width: 130px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 991px) {
  .genre_list-title .title-top {
    max-width: 160px;
  }
}

.genre_list-title .title {
  width: 100%;
  margin-top: 5px;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
}

@media screen and (max-width: 991px) {
  .genre_list-title .title {
    font-size: 24px;
  }
}

.genre_list-title .title-bottom {
  position: relative;
  width: 100%;
}

.genre_list-title .title-bottom .text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  font-weight: bold;
  text-align: center;
}

@media screen and (max-width: 991px) {
  .genre_list-title .title-bottom .text {
    font-size: 24px;
  }
}

.genre_list-items {
  width: 100%;
  margin-top: 20px;
}

@media screen and (max-width: 991px) {
  .genre_list-items {
    margin-top: 40px;
  }
}
