/* 新着記事カルーセル用CSS - シンプル版 */
.carousel-custom-wrapper {
  padding: 100px 0 60px;
  position: relative;
  background-image: radial-gradient(circle at 0% 0%, hsla(295.99999999999994, 77%, 74%, 0.35) 3.1210986267166043%, transparent 40%), radial-gradient(circle at 20% 0%, hsl(151.43deg 77% 74% / 35%) 3.1210986267166043%, transparent 40%), radial-gradient(circle at 40% 0%, hsla(186.61764705882354, 77%, 74%, 0.35) 3.1210986267166043%, transparent 40%), radial-gradient(circle at 60% 0%, hsla(127.0588235294118, 77%, 74%, 0.35) 3.1210986267166043%, transparent 40%), radial-gradient(circle at 80% 0%, hsla(62.20588235294117, 77%, 74%, 0.35) 3.1210986267166043%, transparent 40%), radial-gradient(circle at 100% 0%, hsla(23.823529411764703, 77%, 74%, 0.35) 3%, transparent 40%);
  background-blend-mode: normal, normal, normal, normal, normal, normal;
}

.carousel-custom-swiper {
  position: relative;
  width: 100%;
  height: 400px;
}

/* PC用の設定 */
@media (min-width: 769px) {
  .carousel-custom-swiper {
    height: 380px;
  }
  
  .carousel-custom-thumb {
    flex: 0 0 66%;
  }
}

.carousel-custom-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.carousel-custom-swiper .swiper-slide-active {
  opacity: 1;
  border-radius: 12px;
}

.carousel-custom-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  height: 100%;
  display: flex;
}

.carousel-custom-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-custom-link:hover {
  text-decoration: none;
  color: inherit;
}

.carousel-custom-text {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-custom-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.carousel-custom-cat {
  font-size: 0.9rem;
  color: #28a745;
  font-weight: 700;
  width: fit-content;
}

.carousel-custom-date {
  font-size: 0.85rem;
  color: #888;
  text-align: left;
}

.carousel-custom-title-txt {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  line-height: 1.4;
  margin-bottom: 12px;
  flex-grow: 1;
  text-align: left;
}

.carousel-custom-thumb {
  flex: 0 0 63%;
  position: relative;
}

.carousel-custom-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ナビゲーションボタン */
.carousel-custom-swiper .swiper-button-next, 
.carousel-custom-swiper .swiper-button-prev {
  color: #fff;
  background: #333;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-custom-swiper .swiper-button-next:after {
  right: 6px;
  position: absolute;
  border: none;
}
.carousel-custom-swiper .swiper-button-prev:after {
  left: 6px;
  position: absolute;
  border: none;
}

/* ページネーション */
.carousel-custom-swiper .swiper-pagination {
  position: relative;
  bottom: -20px;
  text-align: center;
}

.carousel-custom-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 1;
  margin: 0 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.carousel-custom-swiper .swiper-pagination-bullet-active {
  background: #333;
  transform: scale(1.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .carousel-custom-wrapper {
    margin: 0 auto 10px;
    padding: 70px 0 0;
  }
  
  .carousel-custom-swiper {
    height: auto;
    min-height: 340px;
    width: 100%;
    margin: 0 auto;
  }
  
  .carousel-custom-meta {
    display: flex;
    flex-direction: row;
    margin-top: 12px;
  }
  
  .carousel-custom-content {
    flex-direction: column;
    height: auto;
    min-height: 270px;
    background: transparent;
    box-shadow: none;
  }
  
  .carousel-custom-text {
    padding: 0px;
    order: 2;
  }
  
  .carousel-custom-thumb {
    flex: 0 0 200px;
    order: 1;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .carousel-custom-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-custom-title-txt {
    font-size: 1.1rem;
  }
  
  .carousel-custom-swiper .swiper-button-next {
    right: 10px;
  }
  
  .carousel-custom-swiper .swiper-button-prev {
    left: 10px;
  }
}

@media (max-width: 600px) {
  .carousel-custom-wrapper {
    margin: 0 auto 10px;
    padding: 70px 0 0;
  }
  
  .carousel-custom-swiper {
    height: auto;
    width: 100%;
  }
  
  .carousel-custom-meta {
    display: flex;
    flex-direction: row;
    margin-top: 12px;
  }
  
  .carousel-custom-content {
    min-height: 270px;
    background: transparent;
    box-shadow: none;
  }
  
  .carousel-custom-text {
    padding: 0px;
  }
  
  .carousel-custom-thumb {
    flex: 0 0 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .carousel-custom-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-custom-title-txt {
    font-size: 1rem;
  }
  
  .carousel-custom-swiper .swiper-button-next, 
  .carousel-custom-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .carousel-custom-swiper .swiper-button-next:after, 
  .carousel-custom-swiper .swiper-button-prev:after {
    font-size: 14px;
  }
} 