.mainvisual {}

.splide {
  position: relative;

  line-height: inherit;

  max-width: 1200px;
  width: 100%;

  visibility: inherit;
  margin: 0 auto 20px;
}

.splide__track {
  visibility: hidden;
  /*読み込み時の表示崩れ防止用*/
  width: 100%;
  aspect-ratio: 1/1;

  padding: 0 0.5em;
  position: relative;
  /*z-index: 1;*/
  box-sizing: border-box !important;


  overflow: hidden;
}

.is-initialized>.splide__track {
  visibility: visible;
}

.splide__list {
  display: flex;
  flex-flow: row nowrap;


}

.splide__list li {

  list-style: none;
  margin: ;
  display: flex;
  flex-flow: column nowrap;
  position: relative;
  flex: 1 0 auto;
  width: 25%;
  /*padding-right: 16px;*/
}

.splide__slide {
  height: auto;
  position: relative;

}

.splide__slide a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*
.splide__slide:hover {
filter: brightness(1.1);
    opacity: 1;
}
*/
.splide__slide figure {
  /*border: solid 1px #e9e9e9;*/
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border: 1px solid #F0F0F0;

}

.splide__slide figure>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.splide__slide figcaption>p {
  color: #FFFFFF;
  flex: 1 auto;
  line-height: 160%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.loading {
  display: none;
}


/*ページネーション*/
/* 数字の位置 */
.pagination {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  z-index: 1;
  /* これがないとスライドの下になる */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 6rem;
  height: 3.2rem;
  border-radius: 2rem;
  background-color: rgba(129, 129, 129, 0.5);

}

/* 数字の色やサイズ調整 */
.pagination span {
  color: #333;

}

/*アロー*/

/* 矢印のクリック範囲など */
:root {
  --swiper-navigation-size: 4rem;
}

.splide__arrows {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.button {
  position: absolute;
  background-color: transparent;
  /* ボタンの背景を透明にする */
  border-radius: inherit;
  transition: .2s;
  width: 30px;
  height: 100%;
  transform: inherit;
  cursor: pointer;
  &.prev {
    top: 50%;
    left: .5rem;
    transform: translateY(-50%)
  }

  &.next {
    top: 50%;
    left: auto;
    right: .5rem;
    transform: translateY(-50%)
  }
}

/* 矢印共通のスタイル */
.button::before {
  font-size: 0;
  content: '';
  display: inline-block;
  opacity: .8;
  height: 30px;
  width: 30px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

}


.prev::before {
  background-image: url("../images/common/Icon ionic-ios-arrow-dropleft.svg");
}

.next::before {
  text-align: right;
  background-image: url("../images/common/Icon ionic-ios-arrow-dropright.svg");
}

.prev:hover::before, .next:hover::before {
  cursor: pointer;

  color: #fff;
  opacity: 1;
}

.prev:hover::before {
  transition: all 0.2s;
  transform: translate(-2px, 0);
  opacity: 1;

}

.next:hover::before {
  transition: all 0.2s;
  transform: translate(2px, 0);
}

.prev:active::before, .next:active::before {
  color: #ff9900;
  opacity: 1;
  transition: all 0s;
}


@media only screen and (max-width:767px) {
  :root {
    --swiper-navigation-size: 3rem;
  }

  .splide {
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    margin: 0 auto 10px;
  }

  .splide__track {}

  .splide__list li {}

  .splide__list p {}


  /*アロー*/
  .button {
    width: 30px;
  }

  .prev {
    left: 2px;
  }

  .next {
    right: 2px;
  }
}

/* サムネイル */
.thumbnails {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;

  padding: 0;
  justify-content: center;
  font-size: 0;
}

.thumbnail {
  border: 1px solid #F0F0F0;
  overflow: hidden;
  list-style: none;
  margin: 0 0.2rem;
  cursor: pointer;

  &.is-active {
    border: 1px solid #2e2e2e;

  }
}

.thumbnail img {
  width: 100%;
  height: auto;
}