/* === リスト === */
#fan35th .layoutRole_main {
  padding-top: 0;
      max-width: 1200px;
    margin: auto;
}
#fan35th .layoutRole_main img {
    width: 100%;
}
#fan35th .item-list-container {
  display: flex;
  gap: 16px;
  padding: 16px;
  flex-wrap: wrap;
}

#fan35th .list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
  opacity: 0;
  /* アニメーションの初期状態 */
  animation: fadeInUp 0.6s ease-out forwards;
  /* アニメーションを適用 */
}

#fan35th .list-item:hover {
  opacity: .7;
}

#fan35th .list-item p {
  font-size: 10px;
}

#fan35th .modal-text p {
  font-size: 10px;
}

#fan35th .modal-text h3 {
  font-size: 12px;
  font-weight: bold;
}

#fan35th .list-item img {
  border-radius: 4px;
  max-width: 120px;
  width: 40%;
}

#modal-description-design {
  margin-bottom: 15px;
}

@media screen and (min-width:750px) {
  #fan35th .list-item {
    width: calc((100% - 16px)/2);
  }

  .modal-detail {
    display: flex;
  }

  #fan35th .list-item h3 {
    font-size: 16px;
  }

  #fan35th .list-item p {
    font-size: 14px;
  }
}

/* === モーダル === */
#fan35th .modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

#fan35th .modal-wrapper.is-hidden {
  opacity: 0;
  visibility: hidden;
}

#fan35th .modal-content {
  position: relative;
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  max-width: 750px;
}

#fan35th .modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  color: #333;
}

#fan35th .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === スライダー (Swiper.js) === */

.swiper-container {
  min-width: 0;
}

#fan35th .main-swiper {
  margin-bottom: 10px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

#fan35th .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



#fan35th .thumb-swiper {
  width: 70%;
  margin: 0 0 15px 0;

}

#fan35th .thumb-swiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
}

#fan35th .thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
}

#fan35th .swiper {
  --swiper-navigation-size: 20px;
  --swiper-theme-color: #aaaaaa;
}

#fan35th .swiper-button-next,
#fan35th .swiper-rtl .swiper-button-prev {
  right: 0;
}

#fan35th .swiper-button-prev,
#fan35th .swiper-rtl .swiper-button-next {
  left: 0px;
  right: auto;
}

@media screen and (min-width:750px) {
  #fan35th .modal-text {
    width: 50%;
    padding-left: 2%;
  }

  #fan35th .modal-text h3 {
    font-size: 16px;
  }

  #fan35th .modal-text p {
    font-size: 14px
  }
}

@media screen and (max-width: 749px) {
  #fan35th .modal-close-btn {
    top: 5px;
    right: 5px;
    z-index: 1;
  }

  #fan35th .swiper {
    --swiper-navigation-size: 16px;
  }

  .modal-text {
    background-color: #ffffff;
    height: 130px;
    padding: 0px 10px 0px 0px;
    overflow-y: scroll;
    -ms-overflow-style: none;
    /* IE, Edge 対応 */
    scrollbar-width: none;
    /* Firefox 対応 */
    margin-right: -10px;
    height: 130px;
  }

  .modal-text::-webkit-scrollbar {
    /* Chrome, Safari 対応 */
    display: none;
  }

  .simplebar-scrollbar::before {
    background: #ffffff;
    border-radius: 0;
    width: 4px;
    margin-left: 1px;
    margin-top: 2px;
  }

  .simplebar-scrollbar.simplebar-visible::before {
    opacity: 1;
  }

  .simplebar-track {
    background: #dbdbdb;
    width: 10px !important;
  }

}

/* === Keyframes for Animation === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#fan35th .thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
}

/* === スピナー  === */
.spinner-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.3s ease-out;
  opacity: 1;
}

.spinner-wrapper.is-hidden {
  display: none;
}

.spinner {
  border: 5px solid #f3f3f3; /* Light grey */
  border-top: 5px solid #decca3; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide the swiper wrapper content while images are loading */
.swiper-container.is-loading .swiper-wrapper {
  visibility: hidden;
}

/* スクロールでのフェードイン用スタイル */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 背景スクロールロック用スタイル */
body.no-scroll {
  overflow: hidden;
}