/* ==========================================================
   TOPページ スライダー用CSS(画像のみ・クリックでモーダル表示)
   ========================================================== */

.top-slider {
  width: 100%;
  aspect-ratio: 16 / 7;
}
/* (PC用の余白指定) */
@media screen and (min-width: 601px) {
  .swiper.top-slider {
    width: calc(100% - 4rem);
    margin-left: 4rem;
    margin-top: 55px;
    margin-right:0;
  }
}

.top-slider .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.top-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: pointer;
}

@media screen and (max-width: 1024px) {
 /* .top-slider { aspect-ratio: 16 / 7; }*/
}

@media screen and (max-width: 600px) {
  /*.top-slider { aspect-ratio: 16 / 7; }*/
}

.top-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}
.top-slider .swiper-pagination-bullet-active {
  opacity: 1;
}


/* ==========================================================
   モーダル
   ========================================================== */

.top-slider-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.top-slider-modal.is-active {
  display: flex;
}

.top-slider-modal__inner {
  background: #fff;
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  padding: 32px 24px 24px;
  position: relative;
  text-align: center;
}

.top-slider-modal__close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 0;
}
button:hover {
  background: none;
}

.top-slider-modal__title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 24px;
}

.top-slider-modal__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-slider-modal__btn {
  display: block;
  padding: 12px 20px;
  border-radius: 4px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.top-slider-modal__btn.top-slider-modal__btn--1 {
  background: #649ed7;
}
.top-slider-modal__btn.top-slider-modal__btn--2 {
  background: #e76172;
}

.top-slider-modal__btn:hover {
  opacity: 0.85;
}