@charset "utf-8";
/* CSS Document */
/*===== 基本設定 =====*/

/*== 共通：Slickスライダーの基本設定 ==*/
.slick-slider {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/*== トップ画像スライダー ==*/
.top-slider {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0px auto;
  overflow: hidden;
}

.top-slider img, 
.top-slider video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* PCだけ高さ固定 */
@media screen and (min-width: 1025px) {
  .top-slider img, 
  .top-slider video {
    height: auto;
    object-fit: contain;
	margin: 15px;
  }
}

/* スマホ用：フェード */
@media screen and (max-width: 767px) {
  .top-slider .slick-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
    transform: none !important;
  }
  .top-slider .slick-active {
    opacity: 1;
    z-index: 1;
    transform: none !important;
  }
  .top-slider .slick-slide[aria-hidden="true"] {
    opacity: 0;
    z-index: 0;
    transform: none !important;
  }
}

/* 動画YouTube埋込版 */
.top-slider iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* 画面比率をきれいにする */
  object-fit: cover;
  display: block;
}

/* PCだけ高さ固定するならこれも追加 */
@media screen and (min-width: 1025px) {
  .top-slider iframe {
    height: 100%;
  }
}

/*== トップ画像ドット ==*/
.top-image-slider .slick-dots {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.top-image-slider .slick-dots li button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-indent: -9999px;
}

.top-image-slider .slick-dots li.slick-active button {
    background-color: rgba(255, 255, 255, 1);
}

/*== スマホドットサイズ調整 ==*/
@media screen and (max-width: 767px) {
  .top-image-slider .slick-dots {
    bottom: 3%;
    gap: 14px;
  }
  .top-image-slider .slick-dots li button {
    width: 10px;
    height: 10px;
  }
}

/*== タブレットドット位置調整 ==*/
@media screen and (min-width: 768px) and (max-width: 1279px) {
  .top-image-slider .slick-dots {
    bottom: 5%;
  }
}

/*== 共通：矢印デザイン (トップ画像＆アイテム共通) ==*/
.top-slider .slick-prev, .top-slider .slick-next,
.item-slider .slick-prev, .item-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.slick-prev::before,
.slick-next::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border-left: 5px solid #fff;
    border-bottom: 5px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.3s ease;
}

.slick-next::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.slick-prev:hover::before,
.slick-next:hover::before {
    transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
}

.slick-next:hover::before {
    transform: translate(-50%, -50%) scale(1.2) rotate(-135deg);
}

.slick-prev {
    left: 20px;
}

.slick-next {
    right: 20px;
}


/*===== テキスト・カルーセル =====*/
.text-slider {
  width: 100%;
  padding: 3px 0;
  margin: -20px auto 0px;
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-sand);
  transition: background-color 0.5s ease;
  min-height: 1.5em;
  z-index: 100;
}

/* 背景色パターン */
.bg1 { background-color: var(--color-pink); } 
.bg2 { background-color: var(--color-mint); } 
.bg3 { background-color: var(--color-blue); } 
.bg4 { background-color: var(--color-sand); } 
.bg5 { background-color: var(--color-green); }

/* スライド内リンク */
.text-slide a {
  display: block;
  color: #fff;
  text-decoration: underline;
  padding: 3px 20px;
}

/*.text-slide a:hover {
  text-decoration: underline;
}*/

/* スライド単体 */
.text-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5; /* 最初は薄く */
  transition: opacity 0.5s ease;
}

/* 表示中（アクティブ）だけ濃くする */
.slick-active .text-slide {
  opacity: 1;
}

/* 矢印デザイン */
.text-slider .slick-prev,
.text-slider .slick-next {
  width: 25px;       /* ← 幅を半分に */
  height: 25px;      /* ← 高さも半分に */
  font-size: 14px;   /* ← 矢印の大きさも半分に */
  color: rgba(255, 255, 255, 0.3);  /* ← 白色で透明度40%にして「薄く」 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}

.text-slider .slick-prev::before,
.text-slider .slick-next::before {
  width: 10px;   /* ← 小さく */
  height: 10px;  /* ← 小さく */
  border-left: 3px solid rgba(255, 255, 255, 0.4); /* ← 細めで半透明 */
  border-bottom: 3px solid rgba(255, 255, 255, 0.4);
}

.text-slider .slick-prev { left: 20px; }   /* ← 左右も合わせた */
.text-slider .slick-next { right: 20px; }

/* ドットはいらない */
.text-slider .slick-dots {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .text-slide a {
  font-size: 1rem;
  text-decoration: underline;
  }
}
/*===== =====*/



/*== アイテム・スライダー ==*/
.item-slider {
    position: relative;
    margin-top: 0px;
    display: block;
    width: 100%;
    overflow: hidden;
}

.item-slider .slick-slide {
    float: left;
    position: relative;
    overflow: visible;
    min-height: 1px;
    padding: 0 10px;
	height: auto;
    box-sizing: border-box;
}

.item-slider img {
    width: 100%;
	height: auto;
    display: block;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.item-slider img:hover {
  transform: scale(1.02);
}

@media screen and (min-width: 768px) {
  .item-slider .slick-slide {
    height: 480px; /* 真ん中の高さを固定 */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .item-slider .slide-item img {
    height: 100%;
    width: auto;
    max-width: 90%;
    object-fit: contain;
  }
	
/* 真ん中のスライドだけ大きく見せる */
.item-slider .slick-center img {
  transform: scale(1.25); /* ← 1.1倍に拡大 */
  transition: transform 0.5s ease;
}

/* 通常のスライドはそのまま */
.item-slider img {
  transition: transform 0.5s ease;
}
}

/*== item-sliderのドットインジケーター ==*/
.item-slider .slick-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.item-slider .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
    border: none;
    cursor: pointer;
    transition: background-color 0.4s ease;
    text-indent: -9999px;
    padding: 0;
    box-sizing: border-box;
}

.item-slider .slick-dots li.slick-active button {
    background-color: #fff;
}

/*== スライドのエフェクト（アクティブ時と非アクティブ時）==*/
.slick-slide {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.slick-slide:not(.slick-active) {
    opacity: 0.5;
    transform: scale(0.9);
}

.slick-slide.slick-active {
    opacity: 1;
    transform: scale(1);
}

.slide-item {
    text-align: center;
    
}

.slide-caption {
    font-size: 1rem;
    margin-top: 10px;
    color: #331;
}

/*== 768px以上の場合 ==*/
@media screen and (min-width: 768px) {
  .item-slider .slide-caption {
    display: block; /* ← none から block に変更！ */
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.8);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 5; /* ドットの下にならないように注意 */
  }

  .slide-item {
    position: relative; /* ← キャプションを絶対位置にするために必要！ */
  }
}

