@charset "UTF-8";
/*//////////PCサイズ///////////*/
@media screen and (min-width: 768px) {
  .topimage{
    position: relative;
    width: 100vw;
    height: 100vh;     /* 画面一杯 */
    overflow: hidden;
    z-index: 1;
  }

  /* スライド各レイヤーを全面に敷く */
  .topimage .image{
    position: absolute;
    inset: 0;          /* top/right/bottom/left: 0; */
    z-index: 1;
  }

  /* 画像：比率は元データ（16:9）を維持したまま “全面をカバー” */
  .topimage .image img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;         /* 16:9を維持したまま拡大・トリミング */
    object-position: 50% 50%;  /* 上下左右の中央を基準 */
  }
  /* バンドの見た目（rem固定） */
.band{
  display: inline-block;
  background: #ffffff;
  color: #333333;
  line-height: 1.9;
  letter-spacing: .08rem;
  font-weight: 400;
  font-size: 1.6rem; /* 指定どおり */
  padding: .6rem 1rem;
   z-index: 10;

  /* 幅が広がらない保険（align-items: flex-start と併用） */
  width: -moz-fit-content;
  width: fit-content;
  max-width: none;
  align-self: flex-start;
}

/* 位置指定は static のまま */
.band--1{ position: static; }
.band--2{
  position: static;
  margin-left: 14vw;         /* ← band-1 より右へずらす量（調整可） */
}
  }
  /*//////////SPサイズ///////////*/
  @media screen and (max-width:767px) {
  .topflex {
    position: flex;
    width: calc(100vw);
    height: calc(100vh);
    top: calc(0%);
    left: calc(0%);
    overflow: hidden;
  }
  .topimage {
    position: absolute;
    width: calc(100vw);
    height: calc(100vh);
    top: calc(0%);
    left: calc(0%);
    overflow: hidden;
    z-index: 1;
  }
  .image {
    position: absolute;
    top: calc(0%);
    left: calc(0%);
    width: calc(100vw);
    height: calc(100vh);
  }
  .image img {
    position: absolute;
    width: calc(100vw);
    height: calc(100vh);
    object-fit: cover;
    top: calc(0%);
    left: calc(50% - (100vw / 2));
  }
  /* バンドの見た目（rem固定） */
.band{
  display: inline-block;
  background: #ffffff;
  color: #333333;
  line-height: 1.9;
  letter-spacing: .08rem;
  font-weight: 400;
  font-size: 1.2rem; /* 指定どおり */
  padding: .6rem 1rem;

  /* 幅が広がらない保険（align-items: flex-start と併用） */
  width: -moz-fit-content;
  width: fit-content;
  max-width: none;
  align-self: flex-start;
}

/* 位置指定は static のまま */
.band--1{ position: static; }
.band--2{
  position: static;
  margin-left: 14vw;         /* ← band-1 より右へずらす量（調整可） */
}
  }
  
/* すべて無限ループ／同周期。遅延は使わず、各keyframes側で表示区間を割り当てる */
.image0 img {
  animation-name: image0;
  animation-duration: 5s;
  animation-delay: 0s;
  animation-fill-mode: both;
  animation-iteration-count: forwards; /*infinite forwards*/
  opacity: 1;
}
.image1 img {
  animation-name: image1;
  animation-duration: 5s;
  animation-delay: 5s;
  animation-fill-mode: both;
  animation-iteration-count: forwards; /*infinite forwards*/
  opacity: 0;
}
.image2 img {
  animation-name: image2;
  animation-duration: 5s;
  animation-delay: 10s;
  animation-fill-mode: both;
  animation-iteration-count: forwards; /*infinite forwards*/
  opacity: 0;
}
.image3 img {
  animation-name: image3;
  animation-duration: 5s;
  animation-delay: 15s;
  animation-fill-mode: both;
  animation-iteration-count: forwards; /*infinite forwards*/
  opacity: 0;
}
.image4 img {
  animation-name: image4;
  animation-duration: 5s;
  animation-delay: 20s;
  animation-fill-mode: both;
  animation-iteration-count: forwards; /*infinite forwards*/
  opacity: 0;
}
.image5 img {
  animation-name: image5;
  animation-duration: 5s;
  animation-delay: 25s;
  animation-fill-mode: both;
  animation-iteration-count: forwards; /*infinite forwards*/
  opacity: 0;
}

@keyframes image0 {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  2% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}
@keyframes image1 {
  0% {
    transform: scale(1.05);
    opacity: 1;
  }
  2% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.0);
  }
}
@keyframes image2 {
  0% {
    transform: translate(0, 0) scale(1.0);
    opacity: 1;
  }
  2% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(15px, 0) scale(1.0);
  }
}
@keyframes image3 {
  0% {
    transform: translate(0, 0) scale(1.0);
    opacity: 1;
  }
  2% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-15px, 0) scale(1.0);
  }
}
@keyframes image4 {
  0% {
    transform: scale(1.0);
    opacity: 1;
  }
  2% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.0);
  }
}
@keyframes image5 {
  0% {
    transform: translate(0, -15px) scale(1.0);
    opacity: 1;
  }
  2% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1.0);
  }
}
