html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative; /* これでabsoluteが効く */

  /*    overflow-x: hidden; /* 横は非表示、縦はOK */
/*    overflow-y: auto;:*/
  }
.dotgothic16-regular {
  font-family: "DotGothic16", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* 上下黒帯 */
.black-bar-top,
.black-bar-bottom {
  position: fixed;
  left: 0;
  width: 100%;
  height: 50px; /* 太さUP */
  background-color: black;
  z-index: 9999;
  opacity: 1; /* 不透明に */
}
.black-bar-top { top: 0; }
.black-bar-bottom { bottom: 0; }


@media (max-width: 600px) {
  .black-bar-top,
  .black-bar-bottom {
    height: 4vh;
  position: fixed;
  overflow: hidden;
    opacity: 1;
  }
}
/*.frame-front{
        position: absolute;
        top: 0;
    left: 0;
     width: 100vw;
    height: 100vh;
      z-index: 9990;
   opacity: 0.5; /* ノイズの濃さ（0～1）調整可 */
  
  
  
.back {
  width: 100%;
  height: 100vh;
  background: url('sozai/back3.png') center/cover no-repeat;
  z-index: 1;

}


  .noise-gif-overlay{
    position: fixed; /* 画面全体に固定 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
     background: url("sozai/noise.gif") center center repeat;
    opacity: 0.8; /* ノイズの濃さ（0～1）調整可 */
    pointer-events: none; /* クリックを通す */
    z-index: 10; 
  }
  
  .noise-overlay{
      position: fixed;
      top: 0;
    left: 0;
    z-index: 13; 
   width: 100vw;
    height: 100vh;
     background: url("sozai/noise1.png")center center repeat;
}
    

.main-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35vw;
  height: 35vw;
  z-index: 200;
  overflow: hidden;
  pointer-events: none; /* デコ画像と干渉しないように */
}

/* 中身は中央配置で余白調整 */
.main-img,
.main-flame {
  position: absolute;
  display: block;
  top: 37%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
/* 装飾が切れないよう少しだけサイズ調整 */
.main-img {
  
  width: 52%;
  height: 52%;
  z-index: 1;
}

.main-flame {
  width: 72%;
  height: 72%;
  z-index: 2;
}





/* テキストフレーム全体 */
.text-frame {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 40;
}

/* 上テキスト位置 */
.text-top {
  top: 12vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5vw;
}

/* 上枠 */
.top-wrapper {
  position: relative;
  width: 18vw; /*15*/
  height: 9vh;/*6*/
  display: flex; /* ← これがないと中央揃えされない！ */
  justify-content: center;
  align-items: center;
}

/* 上枠画像 */
.top-frame-bg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; /* テキストの下に画像を置く */
}

/* 下枠 */
/* 下テキストの位置指定を追加！ */
.text-bottom {
  position: fixed; /* ← これ必須！ */
  bottom: 7vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1vw;
}

/* 下枠 */
.bottom-wrapper {
  position: relative;
  width: 23vw;/*15*/
  height: 25vh;/*25*/
  padding: 7%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 下枠背景画像 */
.bottom-frame-bg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* 下のテキスト */
.bottom-text {
  font-size: 1vw;

}


/* テキスト本体 */
.text-content {
  font-family: "DotGothic16", sans-serif;
  color: white;
  text-shadow: 0 0 2px black;
  animation: glitch 0.55s infinite;
  text-align: center;
  white-space: pre-wrap;
}




.deco-img{
  position: absolute;
    width: 8vw;
  pointer-events: auto;
  z-index: 40;
 margin:0;
}


.img1 { top: 3vh; left: -3vw; width: 15vw;  }    /*画像*/
.img2 { top: 39vh; left: 20vw; width: 10vw;  }    /*矢印左*/
.img3 { top: 55vh; left: 2vw; width: 8vw; }    /*ミラー*/
.img4 { top: 70vh; left: 15vw; width: 11vw;  }    /*歩道*/
.img5 { top: 10vh; right: 30vw; width: 4vw;  }    /*コーン*/
.img6 { top: 30vh; right: 28vw; width: 5vw;  transform: rotate(-13deg);  }    /*矢印右*/
.img7 { top: 45vh; right: 5vw; width: 5vw;  }    /*画像*/
.img8 { top: 80vh; right: 28vw; width: 7vw;}    /*画像*/
.img9 { top: 70vh; right: 15vw; width: 10vw;}    /*標識*/
 .img10 { top: 30vh; right: 2vw; width: 7vw;}    /*テレビ*/
 .img11 { top: 70vh; left: 25vw; width: 12vw;} /*ちゃん*/


.img11{
    pointer-events: auto;
  
}

/* ぴたっとホバー：傾け＋発光 */
.img11:hover {
  transform: rotate(-5deg);
    cursor: pointer;
  transition: none; /* ← ふわっとしない */
}
  
.deco-img img {
  width: 100%;
  height: auto;
}

.deco-nazo{
  z-index: 39;
}
/* メニューアイコン共通 */
.menu-icon {
  position: absolute;
  width: 9vw;
  z-index: 9999;
  pointer-events: auto;
}
.menu-icon img {
  display: block;
  width: 60%;
  height: auto;
}

/* ぴたっとホバー：傾け＋発光 */
.menu-icon:hover {
  transform: rotate(-5deg);
  filter: brightness(1.4) drop-shadow(0 0 0.5vw white);
  cursor: pointer;
  transition: none; /* ← ふわっとしない */
}

/* 各アイコンの位置とposition追加 */
.icon1, .icon2, .icon3, .icon4, .icon5, .icon6 {
  position: absolute; /* ← これがなかった！ */
}
.icon1 { top: 23vh; left: 35vw; }
.icon2 { top: 37vh; left: 32vw; }
.icon3 { top: 53vh; left: 35vw; }
.icon4 { top: 23vh; right: 32vw; }
.icon5 { top: 37vh; right: 32vw; }
.icon6 { top: 53vh; right: 34vw; }



.update-log {
  position: absolute;
   font-family: "DotGothic16", sans-serif;
    font-size: 1vw;
  top: 40%;
 right: 15%;
  width: 17vw;
  height: 20vh;            
  overflow-y: scroll;       
  padding: 0 10px;
  margin: 0px;
  background: black;      
  border: 1px solid #aaa;   
  border-radius: 0; /* ←丸み除去 */
  color: white;
  cursor: pointer;
text-align:center;
  z-index: 30;

}

.update-log ul {
  list-style: none;
  padding: 0;
  margin: 0;
}



.update-log-label {
  position: absolute;
  top: calc(38% - 2vh);  /* update-log の top より少し上 */
  right: 15.5%;
  width: 18vw;
  text-align: center;
  font-size: 1.2vw;
  font-family: "DotGothic16", sans-serif;
  color: white;
  z-index: 31;
background-color:black;
background-size:20vw;
}

.counter-wrapper {
  position: absolute;
  width: 20vw;
  text-align: center; /* 中央寄せ */
  /* 上に余白を作る（任意） */
top:28%;
right:8%;
  z-index: 999;
transform: rotate(-8deg);


}
@media (max-width: 768px) {


  .text-top-frame-img,
  .text-bottom-frame-img {
    width: 60vw;
    font-size: 3.5vw;
  }

  .menu-icon {
    width: 16vw;
    top: auto; /* スマホの高さに応じて調整 */
  }


  .black-bar-top,
  .black-bar-bottom {
    height: 4vh;
    opacity: 0.8;
  }

