body {
  background-color: #878788;
}

object {
  display: block;
  width: 100%;
}

/* .stamp object {
  pointer-events: none;
} */


/* イニシャル hide */
header,
#header_red,
#header_blue,
main,
#scene_top,
#scene_prologue,
#scene_regist,
#scene_map_select,
#scene_map,
#scene_stamp_book,
#scene_stamp_spot,
#scene_spot_about,
#scene_spot_movie,
#scene_complete,
#complete_a,
#complete_b,
aside,
#notice,
#notice_stamp_point,
footer,
#footer_menu_red,
#footer_menu_blue
{
  display: none;
}

/* 遅延読み込みフェード */
.lazyfade {
  opacity: 0;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
}

.lazyfade.lazyloaded {
  opacity: 1;
}

/* シーン：トップ */
#top_title, #prologue_title {
  background-image: url(../img/top_title_bg.jpg);
  background-size: contain;
}

#footer_menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100svw;
}

/* #scene_prologue,
#scene_regist,
#scene_map_select,
#scene_map
{
  padding-top: 25svw;
}

#header {
  position: fixed;
  width: 100%;
  height: 25svw;
  z-index: 500;
} */


#header_red,
#header_blue {
  margin-bottom: -2vw;
  position: relative;
  z-index: 10;
  /* height: 25svw; */
  /* transition: .3s; */
}

.is-animation #header_red,
.is-animation #header_blue {
  /* height: 10svw; */
}

#footer_menu_red,
#footer_menu_blue,
#footer_link {
  margin-top: -2vw;
}

#header {
  /* position: relative;
  aspect-ratio: 800 / 200;
  z-index:10; */
}

#header_red {
  /* position:absolute; */
}

/* -------- マップ */
#layer_map {
  position: absolute;
  width: 100dvw;
  height: calc(100dvh + 50px);
  overflow: hidden;
}

#map_element {
  position: absolute;
  display: block;
  touch-action: none;
}

#map_image {
  display: none;
  position: absolute;
  pointer-events: none;
}

#map_pointer {
  position: absolute;
  z-index: 100;
  width: 32px;
  height: 48px;
}

/* -------- スタンプ ブック*/
#scene_stamp_book {
  min-height: calc(100dvh - 25dvw);
  padding-bottom: 30dvw;
}

/* -------- スタンプカウント */
#stamp_count {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0; /* 各stamp間の余白を設定 */
  padding: 0 8%; /* 左右に8%の余白を設定 */
  box-sizing: border-box;
  margin-bottom: 3svw;
}

#stamp_count .count {
  position: relative;
}
#stamp_count .count_num {
  position: absolute;
  width: 25%;
  height: 27%;
  top: 46%;
  right: 27%;
}
#stamp_count .count_total {
  position: absolute;
  width: 10%;
  height: 16%;
  top: 57%;
  right: 10%;
}

#stamp_count_a,
#stamp_count_b {
  width: 100%; 
  box-sizing: border-box;
}
#stamp_count_a .count,
#stamp_count_b .count {
  display: none;
}
#stamp_count_a .count_full,
#stamp_count_b .count_full {
  display: block;
}

/* -------- スタンプリスト */
#stamp_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2dvw; /* 各stamp間の余白を設定 */
  padding: 0 10%; /* 左右に10%の余白を設定 */
  box-sizing: border-box;
}

#stamp_list .stamp {
  width: 100%; /* 各stampの幅を100%に設定 */
  box-sizing: border-box;
}

/* -------- スタンプスポット */
#scene_stamp_spot {
  min-height: calc(100dvh - 25dvw);
  padding-bottom: 22.5dvw;
}
#spot_stamp {
  width: 75dvw;
  margin: 0 auto;
  position: relative;
}
#spot_stamp object {
  pointer-events: none;
}
#spot_persons {
  position: absolute;
  top: -13.7dvw;
}
#stamp_anim {
  position:absolute;
  z-index:99999;
  top:16%;
  width:55%;
  left:22.5%;
  display:none;
}

/* -------- スポットアバウト */
#scene_spot_about {
  background-color: #5F8788;
  min-height: calc(100dvh - 25dvw);
  padding-bottom: 22.5dvw;
}
#about_photo {
  width:100%;
}

/* -------- スポット動画 */
#scene_spot_movie {
}
.iframe_youtube {
  width: 100dvw;
  height: calc(100dvh - 25dvw - 22.5dvw);
}

/* -------- コンプリート */
#scene_complete {
  background-image: url(../img/complete_bg.svg);
  background-size: cover;
  background-position: center;
  min-height: calc(100dvh - 25dvw);
  padding-bottom: 22.5dvw;
}



/* -------- 通知 */
#notice {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 888;
  width: 100dvw;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.7);
  /* display: flex; */
  justify-content: center;
  align-items: center;
}

#notice_lets_stamp {
  width: 87.5%;
}


/* -------- デバッグ */
.stamp_point {
  display:none;
  background-color: rgba(0,255,0,0.5);
  border-radius: 64px;
  position: absolute;
  z-index: 99;
}

#debug {
  display:none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  margin: 0.5rem;
  padding: 0.5rem;
}
#debug button, #debug_log button {
  margin: 0.25rem 0.25rem 0 0;
}

#debug_log {
  display:none;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  margin: 0.5rem;
  padding: 0.5rem;
}

#debug, #debug_log {
  /* display:none; */
}