@charset "utf-8";
/* CSS Document */
.slide-inner{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-slide {
 margin-top: 120px;
 display: block;	
}

 .carousel-container {
    max-width: 1200px;
}

.carousel-wrapper {
    display: flex;
    height: auto;
    position: relative;
}

/* メイン画像エリア */
.main-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* スライドアニメ用—2枚並びで一括スライド */
.slide-group {
    display: flex;
    width: 100%;        /* 2枚分なので200%幅 */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

.slide-img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

/* サムネイルエリア */
.thumbnail-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.thumbnail-track {
    position: absolute;
    width: 100%;
    /*transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);*/
}

.thumbnail-track {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail  {
    height: auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 5px 20px rgba(0,123,255,0.3);
}

.thumbnail.next-main {
    border-color: #28a745;
    box-shadow: 0 5px 20px rgba(40,167,69,0.3);
}

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

/* オーバーレイ */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slide-img:hover .image-overlay,
.thumbnail:hover .image-overlay {
    transform: translateY(0);
}

.image-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.image-description {
    font-size: 14px;
    opacity: 0.9;
}

/* コントロール */
.controls {
    margin-top: 30px;
    text-align: center;
    display: none;
}

.control-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.control-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.status-indicator {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.rotation-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #007bff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: rotate 1s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 0.1s linear;
}

/*@media (max-width: 1200px) {
    .carousel-wrapper {
        flex-direction: column;
        height: auto;
    }
}*/

/* レスポンシブ */
@media (max-width: 820px) {
    
    .main-image-container {
        height: auto;
    }
    .thumbnail-container {
        height: 120px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        display: none;
    }
    .thumbnail-track {
        display: flex;
        flex-direction: row;
    }
    .thumbnail {
        min-width: 150px;
        height: 100%;
        margin-bottom: 0;
        margin-right: 15px;
    }
}

/*ループスライダー*/

.loop{
	margin: 40px auto;
}

.infinite-loop-swiper {
  width: 100%;
  overflow: hidden;
}

.infinite-loop-swiper .swiper-slide {
  width: 100%; /* スライド幅はお好みで調整 */
  height: auto!important;
  display: flex;
  align-items: center;
  justify-content: center;	
}

.infinite-loop-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 20px;	
}

/* 無限ループを滑らかにするために追加 */
.infinite-loop-swiper .swiper-wrapper {
  transition-timing-function: linear;
}

@media screen and (max-width:1100px) {

	.main-slide{
		margin-top: clamp(2.875rem, 2.267rem + 2.7vw, 4.125rem);
	}	
	
	

  .slider-container {
    flex-direction: column; /* スライダーとサムネイルを縦並び */
  }
  .main-swiper {
    width: 100%;
    height: 100%; /* お好みで調整 */
  }
  .thumb-swiper {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .thumb-swiper .swiper-wrapper {
    flex-direction: row;
  }
  .thumb-swiper .swiper-slide {
    width: auto;         /* 固定幅を外す */
    flex: 1 1 0%;        /* 均等割り付け */
    height: 60px;        /* お好みで調整 */
    margin-right: 0;     /* 余計な余白を防ぐ */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .thumb-swiper .swiper-slide img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
  }
	
	.thumb-swiper{
		height: 60px;
	}

.infinite-loop-swiper .swiper-slide {
  width: 100%; /* スライド幅はお好みで調整 */
  height: 180px;
}	
	
.infinite-loop-swiper .swiper-slide {height: auto!important;}
}	
	
}

@media screen and (max-width: 768px) {

	.thumb-swiper{
		display: none;
	}
	
	.infinite-loop-swiper .swiper-slide {
  width: 100%; /* スライド幅はお好みで調整 */
  height: 130px;
}
}

