@charset "utf-8";
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto; /* 縦方向のスクロールを許可 */
}

.background-loop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../image/sousasen.png') repeat-y;
  background-size: cover;
  animation: loopAnimation 240s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

@keyframes loopAnimation {
  from { background-position: 0 0; }
  to { background-position: 0 100%; }
}


.haikei-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../image/haikei.png') no-repeat; 
  background-size: cover;
  z-index: -2;
  animation: float-bg 5s ease-in-out infinite;
  background-position: center center; /* 初期位置 */
}

@media screen and (max-width: 768px) {
  .haikei-container {
    background-position: left top; /* 小さい画面では左上に配置 */
    height: auto;
    background-size: contain;
  }
}

@media screen and (max-width: 480px) {
  .haikei-container {
    background-position: left top; /* 小さい画面では左上に配置 */
    height: auto;
    background-size: contain;
  }
}

@keyframes float-bg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.typing-text {
  font-size: 70px;
  font-family: "genkaimincho", sans-serif;
  font-weight: 800;
  color: #000;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.typing-text::after {
  content: '|';
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  20% { opacity: 0; }
}

.letter {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.letter.fade-out {
  opacity: 0;
  transform: translateY(20px);
}


.typing-text .letter-image {
  display: inline-block;
  height: 1em;
  vertical-align: text-bottom;
}

.letter-image{
	margin-bottom: 10px;
}

#main-content {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#top {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}


.sp-only {
  display: none;
}

/* スマートフォン版のスタイル */
@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
}



.center-character {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 75%;
  max-height: 75%;
  opacity: 0;
  animation: fadeInFromBottom 1s ease-out forwards;
}

@keyframes fadeInFromBottom {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.logo-app-container {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  text-align: center;
}
#logo-container {
  margin-bottom: 30px; 
}


#logo {
  max-width: 80%; /* ロゴの最大幅を調整 */
  height: auto;
  opacity: 0; /* 初期状態で透明 */
  animation: fadeInFromBottom 1s ease-out forwards;
}

#store-text,
#store-text2 {
  font-size: 25px;
  font-family: "genkaimincho", sans-serif;
  font-weight: 800;
  color: #000;
}
.app-image-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.app-logo {
  max-height: 50px;
  height: auto;
}

.block-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.block-object {
  position: absolute;
  width: 15vw;
  height: auto;
  max-width: 200px;
  animation: float 3s ease-in-out infinite;
}

#block-a {
  top: 10%;
  right: 20%;
  animation-delay: 0s;
}

#block-b {
  top: 10%;
  left: 2%;
  animation-delay: 0.5s;
}



#block-c {
  top: 35%;
  left: 25%;
  animation-delay: 1s;
}

@media screen and (max-width: 768px) {
	
	#block-c{
		display: none;
	}
}

@media screen and (max-width: 768px) {
	
	.block-container{
		z-index: -1;	
	}
	#block-a{
		top:-20px;
	}
}






@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}




/* 初期状態では非表示 */
.menu-container.pc-only {
  display: none;
}

/* PC環境でのみ表示 */
@media screen and (min-width: 769px) {
  .menu-container.pc-only {
    display: flex; /* または block, inline-blockなど適切な表示形式 */
  }
}


.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.8);
  transition: opacity 0.5s ease-in-out;
  display: none; /* 初期状態では非表示 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  overflow: auto;
  touch-action: pan-y;
}

/* スマートフォン版のスタイル */
@media screen and (max-width: 768px) {
  .pc-only {
    display: none !important;
  }

  /* ハンバーガーメニュー */
#hamburger-menu {
    display: block;
    position: fixed;
    top: 20px;
    right: 15px;
    width: 37px;
    height: 25px;
    cursor: pointer;
    z-index: 1000;
  }

#hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  margin-bottom: 7px;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
  background-color: rgba(0, 0, 0, 0.6); /* 基本色を少し濃いめの半透明の黒に設定 */
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3); /* 白系の発光シャドウ */
}

  #hamburger-menu span:last-child {
    margin-bottom: 0;
  }

.spec {
    position: relative;
    width: 100%;
}

/* 画像のスタイル（固定サイズ + 絶対位置） */
.sp-menu {
    position: absolute;
    width: 340px;
    bottom: -20%;
    right: -50%; 
    animation: rotation 10s infinite linear;
	animation-direction: reverse;
    transform-origin: center;
}

/* アニメーション */
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
	

.menu {
    opacity: 1;
    right: auto;
	overflow-x: hidden;
    overflow-y: hidden; /* 縦方向のスクロールを許可 */
  }
}

#menu ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

#menu a {
	display: flex; /* Flexboxを使用 */
    justify-content: center; /* 水平方向中央揃え */
    align-items: center; /* 垂直方向中央揃え */
    color: #fff;
    text-decoration: none;
	margin-bottom: 20px;  }

#menu ul li a img {
  max-width:300px; /* 画像の幅を調整 */
  height: 50px; /* 画像の高さは自動調整 */
  vertical-align: middle; /* 画像を垂直方向中央に配置 */
}
/* ハンバーガーメニューが開いている状態 */
#hamburger-menu.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

#hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

#hamburger-menu.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/**/

.banners-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  top: 15%;
  right: 2vw;
  z-index: 1001;
  width: 90%; /* バナーコンテナの幅をメニューコンテナの90%に設定 */
  box-sizing: border-box; /* padding, border を含めて幅を計算 */
}

.banner {
  width: 100%; /* 親要素に合わせて拡大縮小 */
  height: auto;
  margin-bottom: 3vw;
  display: block; /* リンク要素内で画像が適切に表示されるように */
}

@media screen and (max-width: 1200px) {
  .menu-container {
    width: 25vw;
  }
  .banner {
    margin-bottom: 4vw; /* バナー間の余白を調整 */
  }
}

@media screen and (max-width: 768px) {
  .menu-container {
    width: 30vw;
  }
  .banner {
    margin-bottom: 5vw; /* バナー間の余白を調整 */
  }
}

@media screen and (max-width: 480px) {
  .menu-container {
    width: 40vw;
  }
  .banner {
    margin-bottom: 6vw; /* バナー間の余白を調整 */
  }
}

/* 個別のバナーサイズ調整 */
#top-banner,
#news-banner,
#story-banner,
#character-banner,
#system-banner,
#spec-banner{
  height: 2.5vw; /* バナーの高さをビューポート幅の3%に設定 */
  min-height: 30px; /* 最小高さを設定 */
}

.menu-container {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 1000;
  width: 30vw; /* 適切な初期値を設定 */
  padding: 2vw;
  box-sizing: border-box;
  opacity: 0;
}

#menu-plate {
  position: relative;
  z-index: 1000;
  height: auto;
  width: 100%; /* 親要素の幅に合わせる */
  max-width: none; /* 最大幅を削除 */
  max-height: 80%;
  margin-top: 3%;
  margin-right: -70px; /* 負のマージンを削除 */
  opacity: 0;
  transition: opacity 1s ease-out;
}

#menu-plate, .banner {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.fade-in-right {
  animation: fadeInRight 1s ease-out forwards;
}

.banners-container a{
  transition-duration: 0.4s;
}

.banners-container a:hover{
	transform: scale(1.1);
}


@media screen and (max-width: 768px) {
  .menu-container {
    width: 30vw;
  }
  
  #top-banner,
  #news-banner,
  #story-banner,
  #character-banner,
  #system-banner {
    height: 5vw;
  }
}

@media screen and (max-width: 480px) {
  .menu-container {
    width: 40vw;
  }
  
  #top-banner,
  #news-banner,
  #story-banner,
  #character-banner,
  #system-banner {
    height: 6vw;
  }
}

/*newsページ*/
#news {
  position: relative;
  width: 100%; /* 幅を可変にする */
  max-width: 960px; /* 最大幅を設定 */
  height: auto;
  margin: 0 auto;
  box-sizing: border-box; /* padding, border を含めて幅を計算 */
  padding: 0 10px; /* 左右に余白を追加 */
}

#news-object-block{
	position: absolute;
	top:10%;
	left:-35%;
}

#news-object-block img{
	width: 50%;
	animation: float 3s ease-in-out infinite;
}

#news-badge{
	text-align: center;
}

#news-badge img {
  width: 100%;
  max-width: 40%;
  margin-bottom: 50px;
}

#glass-plate {
  display: block; /* デフォルトはblock */
}

.news-items-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.news-item {
  width: calc(50% - 10px); /* gapの半分を引く */
  position: relative;
}

.news-item > img {
  width: 100%;
  height: auto;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.title {
  text-align:left;
  color: #000;
  font-size: 15px;
  padding-left: 55px;
  font-family: vdl-gigamaru, sans-serif;
  font-weight: 500;
  font-style: normal;
  line-height: 1.5;
}

.lower-content {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* 子要素を親の高さに合わせる */
  height: calc(100% - 75px); /* タイトルの高さとマージンを引く */
  padding: 10px;
}

.image-box, .text-box {
  width: 48%;
  display: flex;
  flex-direction: column;
}

.image-box img {
  width: 100%;
  height: auto; /* 画像を親要素の高さに合わせる */
  object-fit: cover; /* アスペクト比を保ちながら領域を埋める */
}

.text-box {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
  font-size: 15px;
  font-family: vdl-gigamaru, sans-serif;
  font-weight: 500;
  font-style: normal;
  text-align: left;
  line-height: 1.5;
}

.view-more {
  position: absolute;
  bottom: -80px;
  right: 10px;
}

.view-more a {
  display: inline-block;
  padding: 15px 20px; /* タップしやすいサイズに調整 */
  background-color: #000; /* 黒系統の背景色 */
  color: #fff; /* 白文字でコントラストを高める */
  text-decoration: none;
  font-family: vdl-gigamaru, sans-serif;
  font-size: 20px; /* フォントサイズを調整 */
  border-radius: 8px; /* ボタンの角丸を強調 */
  box-shadow: 0px 4px 6px rgba(0,0,0,0.2); /* ボタンに影を追加して立体感を演出 */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-more a:hover {
  background-color: #333; /* ホバー時に少し明るい黒色に変更 */
  transform: scale(1.05); /* ホバー時に少し拡大してアクティブ感を演出 */
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  /* スマホ版では縦並びにする */
  .news-items-container {
    flex-direction: column;
  }

  .news-item {
    width: 100%; /* 幅を100%にする */
    margin-bottom: 20px; /* 下に余白を追加 */
  }

	.title{
		font-size:13px;
		padding-left: 50px;
	}
	
  .view-more a {
    font-size: 16px; /* モバイル向けにフォントサイズを少し小さく */
    padding: 12px 16px; /* パディングも調整 */
    border-radius: 6px; /* モバイル用に角丸も少し控えめに */
    box-shadow: none; /* モバイルでは影を控えめにする場合もあり */
  }

  #news-object-block{
    left: -15%;
  }

  #news-object-block img{
    width: 30%;
  }
}




/*STORY*/
#story{
	overflow: hidden;
	margin-top: 150px;
}


#story_head img{
  width: 110vw; 
  height: auto;
  margin-left: -5vw;
  margin-bottom: -5px;
}

#story_wrapper{
	position: relative;
	width: 100%;
	background-color: #040404;
	padding:20px 0;
	margin-bottom: -5px;
}


#maincharacter img,
#mainheroine img{
  width: 250px;
  height: auto;
}


#story_discription {
  width: 80%; /* Adjust the width as needed */
  max-width: 600px; /* Maximum width */
  margin: 20px auto;
  box-sizing: border-box;
}

#story_text{
  font-family: vdl-gigamaru, sans-serif;
  font-size: 20px;
  color: #f0f0f0;
  text-align: left;
  line-height: 1.8;
}

#story_text p {
  margin-bottom: 20px;
}

#story_text .highlight {
  background-color: rgba(255, 255, 255, 0.4);
  padding: 2px 5px;
  border-radius: 3px;
}

/*PC閲覧時*/
@media (min-width: 768px) {
    #maincharacter {
        position: absolute;
        top: 7%;
        left: 15%;
    }

    #mainheroine {
        position: absolute;
        top: 15%;
        right: 15%;
    }
}
/*スマホ*/
@media (max-width: 1200px) {
  #maincharacter,
  #mainheroine {
    display:none;
  }
}

@media (max-width: 768px) {
  #story_text {
	  font-size: 16px;}
  }
	


#story_foot {
  position: relative;
  width: 100%;
}

#story_foot img {
  width: 100%;
  margin-top: -5px;
  height: auto;
}

.object1 {
  position: absolute;
  top: 50%;
  right: 1.5%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  max-width: 15%; /* オブジェクトのサイズを調整 */
  animation-delay: 0s;
  animation: float 3s ease-in-out infinite;
}

/*CHARACTER*/
#character {
	overflow: hidden;
  margin-top: 150px;
}

#character_head img {
  width: 100vw;
  height: auto;
  margin-left: -5px;
  margin-bottom: -5px;
}

#character_wrapper {
  position: relative;
  width: 100%;
  background-color: #040404;
  padding: 20px;
  box-sizing: border-box;
}

#character_discription {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* グリッドレイアウト */
.character-grid {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px; /* キャラクター画像間の横方向の間隔 */
  margin-bottom: 20px; /* 上段と下段の間の縦方向の間隔 */
  flex-wrap: wrap;
}

.character-grid:last-child {
  margin-bottom: 0; /* 最後のグリッドの下マージンを削除 */
}

.block-wrapper1 {
  position: absolute;
  left: -35%;
  top: -20px;
  z-index: 1;
}

.block-wrapper2 {
  position: absolute;
  right: -23%;
  top:350%;
  z-index: 1;
}


.block-thumbnail {
  width: 300px;
  height: auto;
  animation: float 3s ease-in-out infinite;
}




.character-thumbnail {
  width: 180px;
  height: auto;
/*  object-fit: cover;*/
  cursor: pointer;
  border: 5px solid transparent;
  transition: border-color 0.3s ease-in-out;
}

.character-thumbnail:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

.character-thumbnail.selected {
  border-color: white;
  box-shadow: 0 0 5px white,
              0 0 10px white,
              0 0 15px white,
              0 0 20px white;
}

/* 選択されたキャラクター情報 */
#selected-character-info {
  width: 100%;
  margin-top: 30px;
  max-width: 800px; 
  margin: 0 auto; 
  text-align: center; 
}

.character-profile {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  opacity: 0; 
  transition: opacity 0.7s ease-in-out; 
}

.fade-in {
  opacity: 1; /* フェードイン時の不透明度 */
}

#character_foot {
  position: relative;
  width: 100%;
}

#character_foot img {
  width: 100%;
  height: auto;
  margin-top: -5px;
}

@media (max-width: 768px) {
  #character_discription {
    width: 100%;
    padding: 0 10px;
  }
#character_foot img {
  width: 100%;
  margin:0;
}
	#character_head img{
	    width:105%;
		margin-left: -5px;
		margin-bottom: -5px;
	}
	#character{
		margin: -5px 0;
	}

  .character-grid {
    justify-content: space-around;
    gap: 10px;
  }

  .character-thumbnail {
    width: calc(33% - 10px);
  }
	
	
  .block-wrapper1,
  .block-wrapper2{
		display: none;
	}
}
/*SYSTEM*/
#system {
  width: 100%;
  background-color: #fff;
  position: relative;
  top: -250px;
  padding-top: 200px;
  margin-bottom: -270px;
  z-index: -2;
}



#system p{
    width: 80%; /* Adjust the width as needed */
    max-width: 750px; /* Maximum width */
	margin: 0 auto;
	text-align: left;
	font-size: 30px;
    font-family: "genkaimincho", sans-serif;
    font-weight: 800;
	line-height: 2.0;
	margin-bottom: 100px;
}

#system_middle img{
  width: 100%;
  height: auto;
  margin-top: -5px;
  vertical-align: bottom;
}

#system_head{
	text-align: center;
	margin-top: 150px;
	margin-bottom: 100px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
	#system_head{
		margin-top: 100px;
		margin-bottom:50px;
	}	
  #system_head img {
    max-width: 40%; /* スマホでは少し余白を持たせる */
  }
	#system p{
		font-size: 16px;
	}
}


#system_middle {
  width: 100vw; /* 110vw から 100vw に変更 */
  height: auto;
  margin-top: -10px;
  overflow: hidden; /* はみ出した部分を隠す */
}

/*システム説明*/
#system_contents {
  width: 100%;
  background-color: #040404;
  padding: 30px 0;
  font-family: "genkaimincho", sans-serif;
  font-weight: 800;
  position: relative;
  top: -5px;
/*  padding-bottom: 200px;*/
}

#system_elements{
	font-size: 60px;
	margin: 0 auto;
	color:#fff;
    text-align: center;
}

@media screen and (max-width:768px){
	#system_elements{
		font-size: 30px;
	}
}

/*dejavu-mode*/
.slide-in-box {
	width:80%;
	margin: 0 auto;
  opacity: 0;
  transform: translateX(-30%); /* 初期位置を左に隠す */
  transition: all 1s ease-out; /* アニメーション効果 */
}

.slide-in-box.right {
  transform: translateX(30%); /* 初期位置を右に隠す */
}

.slide-in-box.active {
  opacity: 1;
  transform: translateX(0); /* 本来の位置に移動 */
}





#dejavu-mode,
#real-mode,
#dream-mode{	
	width:960px;
	margin: 0 auto;
}

#dejavu-mode h2,
#dream-mode h2{
	color: #fff;
	font-size: 2vw;
	margin: 50px auto;
	text-align: left;
	margin-top: 100px;
}

#dejavu-mode-text-and-image,
#real-mode-text-and-image,
#dream-mode-text-and-image{
	width:100%;
	display: flex;
	gap:5%;
}

#dejavu-text, #dejavu-img,
#real-text, #real-img,
#dream-text, #dream-img{
	width: 47.5%;
} 

#dejavu-text,
#real-text,
#dream-text{
	text-align: left;
	color: #fff;
	font-size: 24px;
	line-height: 2.0;
}

#dejavu-img img,
#real-img img,
#dream-img img{
	width:100%;
	height: auto;
	margin-top: 20px;
}


#real-mode h2{
	color: #fff;
	font-size:2vw;
	text-align: right;
	margin: 50px auto;
	margin-top: 100px;
}



#real-text span{
	display: block;
	font-size: 18px;
	text-align: right;
	margin-top:10px;
}


#system-end-description {
  width: 960px; /* PC向け幅 */
  margin: 0 auto;
  margin-top: 150px;
  font-size: 35px;
  color: #fff;
  line-height: 1.2;
  padding: 0 20px; /* 左右に余白を追加 */
  box-sizing: border-box; /* padding分を含めて100%にする */
}

#gallery-img {
  width: 960px; /* PC向け幅 */
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  box-sizing: border-box; /* padding分を含めて100%にする */
}

#gallery-img img {
  width: calc((100% - 40px) / 3);
  height: auto;
  margin-top: 30px;
}

@media screen and (max-width: 768px) {
  #system-end-description {
    width: 75%; /* 画面幅いっぱいに広げる */
    font-size: 18px; /* 文字サイズを小さくする */
    margin-top: 10px; /* 上の余白を小さくする */
  }

  #gallery-img {
    display: flex; /* Flexboxで横並びにする */
    justify-content: space-around; /* 画像を均等に配置 */
    width: 80%; /* 幅を80%にする */
    margin: 30px auto; /* 上下のマージンを調整、中央寄せ */
    box-sizing: border-box;
  }

  #gallery-img img {
    width: calc(33.33% - 10px); /* 画像の幅を3等分し、少し余白を持たせる */
    height: auto;
    margin-top: 0; /* 画像間の余白をなくす */
  }

	
}


#end-text{
	width: 960px;
	text-align: right;
	margin: 0 auto;
	margin-top: 20px;
	color: #fff;
	font-size: 20px;
}

#system-foot {
  position: relative;
  width: 100%;
  margin-top: 0; /* 親要素の上部余白を削除 */
}

#system-foot img {
  display: block; /* インライン要素の特性を解除 */
  width: 100%;
  max-width: 100%; /* 画像が親要素を超えないようにする */
  height: auto;
  margin: 0; /* 全てのマージンを削除 */
}

@media screen and (max-width: 768px) {
  /* Flexboxレイアウトを解除 */
  #dejavu-mode-text-and-image,
  #real-mode-text-and-image,
  #dream-mode-text-and-image {
	display: flex; /* Flexboxを指定 */
    flex-direction: column;
  }

  /* 幅を100%にする */
  #dejavu-text,
  #dejavu-img,
  #real-text,
  #real-img,
  #dream-text,
  #dream-img {
    width: 100%;
    box-sizing: border-box;
  }

  /* 画像をテキストの後に配置 */
  #dejavu-img {
    order: 1;
  }

  #dejavu-text {
    order: 2;
  }

  #real-img {
    order: 1;
  }

  #real-text {
    order: 2;
  }
	
  #dream-img {
    order: 1;
  }

  #dream-text {
    order: 2;
  }

  /* 要素のスタイル */
  #dejavu-mode,
  #real-mode,
  #dream-mode {
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
  }

  #real-text span {
    text-align: left;
    font-size: 10px;
  }

  /* 画像を中央に配置 */
  #dejavu-img img,
  #real-img img,
  #dream-img img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* h2要素の調整 */
  #dejavu-mode h2,
  #real-mode h2,
  #dream-mode h2 {
    font-size: 5vw;
    text-align: left;
    margin: 10px 0;
  }

  /* テキストの調整 */
  #dejavu-text,
  #real-text,
  #dream-text,
  #system-end-description {
    font-size: 3vw;
    line-height: 1.6;
  }

	#end-text{
	width:80%;
	margin: 0 auto;
	margin-top: 20px;
	color: #fff;
	font-size: 10px;
  }
}



/*SPEC*/
#spec{
	width: 100%;
	margin: 0 auto;
}

#spec-head{
	text-align: center;
}

#spec-head img{
	width:350px;
	height: auto;
	margin-top: 100px;
}



#spec-catalog{
	width: 100%;
    text-align:center;
	margin-top: 50px;
}

#spec-catalog img{
	width: 600px;
}
#store-text2{
	text-align: center;
	margin-top: 50px;
}

@media screen and (max-width:768px){
	#spec-head img{
		width:30%;
		margin-top: 50px;
	}
	#spec-catalog img{
	width: 80%;
}
}

/*footer*/

footer {
  margin-top: 50px;
 }

footer img {
  width:100%;
  height: auto;
	margin-bottom: -5px;
}

#footer-contents{
	background-color: #040404;
	margin: 0 auto;
	text-align: center;
	padding-bottom: 50px;
}

#foot_logo{
	max-width: 40%;
	margin-bottom: 50px;
} 

#foot-wrap{
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

#game_info,
#company_logo{
	display: block;
	max-width: 40%;
	margin: 0 auto;
	margin-bottom: 50px;	
}

small{
	text-align: center;
	color: #fff;
	line-height: 1.5;
}

@media screen and (max-width: 768px) {
	small{
		font-size: 10px;
	}
	#foot_logo,
	#game_info,
   #company_logo{
	display: block;
	max-width: 40%;
	margin: 0 auto;
	margin-bottom: 10px;	
}
}