.img-frame{
  position: relative;
  width: 70%;
  height: 500px;
  overflow: hidden;
  margin: 0 auto;
}
.msg{
  font-size: 50px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  pointer-events: none;
}

/* 修正: px に変更 */
.msg-01, .msg-02, .msg-03, .msg-04, .msg-05, .msg-06, .msg-07, .msg-08, .msg-09{
  text-shadow: 2px 2px 3px #000, -1px -1px 3px #000;
}

@media screen and (max-width: 767px){
  .img-frame{ width: 100%; height: 600px; }
}

/* 共通レイヤ */
.img{
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  will-change: opacity, transform;
  pointer-events: none;
  z-index: 10;
}

/* ここは実際のパスに合わせてください */
.img-01{ background-image: url('../Accpos-01.jpg'); }
.img-02{ background-image: url('../Accpos-02.jpg'); }
.img-03{ background-image: url('../Accpos-03.jpg'); }
.img-04{ background-image: url('../Accpos-04.jpg'); }
.img-05{ background-image: url('../Accpos-05.jpg'); }
.img-06{ background-image: url('../Accpos-06.jpg'); }
.img-07{ background-image: url('../Accpos-07.jpg'); }
.img-08{ background-image: url('../Accpos-08.png'); }
.img-09{ background-image: url('../Accpos-09.png'); }

/* 共通アニメーション設定（あなたの周期を尊重） */
.img{
  animation-name: fadezoom;
  animation-duration: 25.65s; /* 元の値に合わせる */
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

/* 25.65s / 9 = 2.85s（位相ずらし） */
.img-01{ animation-delay: 0s;       z-index:11; }
.img-02{ animation-delay: -2.85s;   z-index:12; }
.img-03{ animation-delay: -5.70s;   z-index:13; }
.img-04{ animation-delay: -8.55s;   z-index:14; }
.img-05{ animation-delay: -11.40s;  z-index:15; }
.img-06{ animation-delay: -14.25s;  z-index:16; }
.img-07{ animation-delay: -17.10s;  z-index:17; }
.img-08{ animation-delay: -19.95s;  z-index:18; }
.img-09{ animation-delay: -22.80s;  z-index:19; }

/* 共通 keyframes（表示→ホールド→フェードアウト→非表示） */
/* 9枚なので1枚あたりおよそ11.11%（100/9）を占めます。 */
@keyframes fadezoom {
  0%       { opacity: 1; transform: scale(1.03); }
  11.11%   { opacity: 1; transform: scale(1.06); } /* ホールド */
  13.33%   { opacity: 0; transform: scale(1.15); } /* フェードアウト */
  100%     { opacity: 0; transform: scale(1.15); }
}
