/*メインイメージ--------------------*/
/* 背景スライドを固定で敷く */
#mainImg {
  position: fixed;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
    height: 520px;
    width: 100%;
    inset: 0 auto auto 0;
    right: 0;
    margin-bottom: 520px;
}

/* 各スライド */
.mainSlide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: mainFade 20s infinite;
  will-change: opacity;
}

/* 画像指定 */
.mainSlide01 { background-image: url("../images/bg_main_pc01.jpg"); animation-delay: 0s; }
.mainSlide02 { background-image: url("../images/bg_main_pc02.jpg"); animation-delay: 4s; }
.mainSlide03 { background-image: url("../images/bg_main_pc03.jpg"); animation-delay: 8s; }
.mainSlide04 { background-image: url("../images/bg_main_pc04.jpg"); animation-delay: 12s; }
.mainSlide05 { background-image: url("../images/bg_main_pc05.jpg"); animation-delay: 16s; }

/* フェードアニメーション */
@keyframes mainFade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }   /* ゆっくりフェードイン */
  40%  { opacity: 1; }   /* しっかり表示 */
  60%  { opacity: 0; }   /* ゆっくりフェードアウト */
  100% { opacity: 0; }
}

/* SP */
@media (max-width: 767px) {
  #mainImg {
  }

  .mainSlide {
  }

}
/* ロゴを中央に固定表示 */
.mainLogo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* スライドより上 */
  width: 380px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* 背景扱いならクリック無効 */
}

.mainLogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#mainContents{
background: #fff;
margin-top: 520px;
}

