/* ============================= */
/*     スライダー基本設定        */
/* ============================= */
.slider-area {
  position: relative;
  width: 100%;
  background: #000;
}

/* ============================= */
/* メインスライダー              */
/* ============================= */
.slider {
  position: relative;
  width: 100%;
  height: 600px;     /* PC高さ */
  overflow: hidden;
}

/* スライダー画像 */
.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  opacity: 0;
  transition: opacity 1.6s ease;
}

.slider img.active {
  opacity: 1;
}

/* ============================= */
/* サムネイル切替エリア          */
/* ============================= */
.slider-thumbs {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: #111;

  overflow-x: auto;
  scrollbar-width: none;
}
.slider-thumbs::-webkit-scrollbar {
  display: none;
}

.slider-thumb {
  flex: 0 0 auto;
  width: 120px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;

  opacity: 0.5;
  transition: opacity .3s ease,
              transform .3s ease,
              box-shadow .3s ease;
}

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

.slider-thumb.active {
  opacity: 1;
  box-shadow: 0 0 0 2px #fff;
  transform: scale(1.03);
}

/* ============================= */
/* 矢印                          */
/* ============================= */
.arrow {
  position: absolute;
  top: 300px; /* slider高さの半分 */
  transform: translateY(-50%);
  background: rgba(255,255,255,0.5);
  padding: 6px 16px;
  font-size: 40px;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.left  { left: 20px; }
.right { right: 20px; }

/* ============================= */
/* スマホ向け調整                */
/* ============================= */
@media (max-width: 800px) {

  .slider {
    height: 380px;
  }

  .arrow {
    top: 190px;
    font-size: 34px;
  }

  .slider-thumb {
    width: 90px;
    height: 56px;
  }
}

