@charset "utf-8";
/* 標準可変メディア
   メモ : 可変メディアでは、HTML からメディアの高さおよび幅の属性を削除する必要がある
   http://www.alistapart.com/articles/fluid-images/ 
*/
img, object, embed, video {
	max-width: 100%;
}
/* IE 6 では最大幅がサポートされていないため、デフォルトで幅 100% に設定される */
.ie6 img {
	width:100%;
}

/* LayoutDiv800 - 最大1200pxまでの固定のセンターカラム */
#LayoutCenter {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	background-color: white;
	border-left: 2px solid #666;
	border-right: 2px solid #666;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

/* 1200px以下（タブレット・スマホ）では全画面表示 */
@media only screen and (max-width: 1200px) {
#LayoutCenter {
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	border-left: none;
	border-right: none;
}
}

/* CompanyTop - ブランド名のスタイル */
#CompanyTop {
	background-color: black;
	color: #888;
	font-family: serif;
	font-size: 2.5em;
	font-weight: bold;
	padding: 20px;
	text-align: right;
	margin: 0;
}

/* スマホサイズでのCompanyTop文字サイズ調整 */
@media only screen and (max-width: 480px) {
#CompanyTop {
	font-size: 1.5em;
	padding: 10px 20px;
}
}

/* サイト全体の背景色を黒に設定 */
body {
	background-color: black;
}

/* MainImg - 背景画像の設定 */
#MainImg {
	background-image: url('img/top-bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	height: 600px; /* PCサイズ（1200px）での高さ */
	margin: 0 0 2rem 0;
	display: block;
	position: relative;
}

/* スマホサイズでの調整 */
@media only screen and (max-width: 480px) {
#MainImg {
	height: 240px; /* 480px ÷ 2 = 240px */
}

#Hidden {
	height: 100px !important;
	letter-spacing: 0.2em !important; /* スマホでは文字間隔を0に */
	font-size: 1.2em !important;
}
}

/* タブレットサイズでの調整 */
@media only screen and (min-width: 481px) and (max-width: 768px) {
#MainImg {
	height: 384px; /* 768px ÷ 2 = 384px */
}
}

/* 900px以下での調整 */
@media only screen and (min-width: 481px) and (max-width: 920px) {
#Hidden {
	font-size: 1.8em !important;
	letter-spacing: 0.5em !important;
}
}

/* その他のdivのスタイル */
#GameInfo {
	margin: 0 0 2rem 0;
	padding: 2rem;
	background-color: #f5f5f5;
	border-radius: 8px;
}

/* brand、Policy、Inquiry - 背景色なし */
#brand, #Policy, #Inquiry {
	margin: 8px 0;
	padding: 1rem 0;
	background-color: transparent;
}

/* MiniGame - 背景色なし */
#MiniGame {
	margin: 0 0 0.1rem 0;
	padding: 2rem;
	background-color: transparent;
}

/* スマホ以外でのMiniGame文字スタイル */
@media only screen and (min-width: 481px) {
#MiniGame, #DL {
	font-size: 2em;
	font-weight: bold;
}
}

/* DL - ダウンロードセクション */
#DL {
	text-align: center;
	margin: 0;
	padding: 2rem;
	height: calc(min(100vw, 1200px) * 0.3);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: rgb(255, 255, 255);
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
	background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('img/DL-bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: transparent;
}

/* PCサイズでのDL余白調整 */
@media only screen and (min-width: 769px) {
#DL {
	margin: 0;
}
}

#DL img {
	max-width: 100%;
	width: 100%;
	max-width: 400px;
	height: auto;
	margin-top: 10px;
}

/* Footer - 背景色黒、文字色白 */
footer {
	background-color: black;
	color: white;
	padding: 20px;
}

/* スマホサイズでのfooter調整 */
@media only screen and (max-width: 480px) {
footer {
	padding: 10px 20px;
}
}

/* 下部のdivを横並びにする */
.footer-links {
	display: flex;
	justify-content: space-between;
	margin: 0;
}

/* スマホサイズでは縦並びに変更 */
@media only screen and (max-width: 480px) {
.footer-links {
	flex-direction: column;
	justify-content: center;
}

#brand, #Policy, #Inquiry {
	flex: none;
	margin: 0px 0;
}
}

#brand, #Policy, #Inquiry {
	flex: 1;
	margin: 0;
	text-align: center;
}

/* PCサイズでの文字サイズ調整 */
@media only screen and (min-width: 769px) {
#brand, #Policy, #Inquiry {
	font-size: 1.4em;
}
}

/* タブレットサイズでの調整 */
@media only screen and (min-width: 481px) and (max-width: 768px) {
#DL img {
	max-width: 300px;
	width: 300px;
}
}

/* スマホサイズでの調整 */
@media only screen and (max-width: 480px) {
#DL img {
	max-width: 200px;
	width: 200px;
	padding: 0rem;
}
}

/* Hidden - メシアセクション */
#Hidden {
	margin: 0;
	padding: 2rem;
	background-image: url('img/messiah.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: black;
	color: white;
	font-size: 2em;
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 1.0em;
	line-height: 4.0;
}

/* GameInfo - 背景画像とスタイル */
#GameInfo {
	background-image: url('img/infoImg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: rgba(255, 255, 255, 0.6); /* 半透明の白いオーバーレイ */
	background-blend-mode: overlay;
	color: #333;
	font-size: 1.2em;
	font-weight: bold;
	line-height: 1.8;
	letter-spacing: 0.05em;
	text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
	text-align: center;
}

/* PC・タブレットでの文字サイズ調整 */
@media only screen and (min-width: 481px) {
#GameInfo {
	font-size: 1.6em;
	line-height: 2.0;
	letter-spacing: 0.08em;
}
}

/* MiniGameImg - 画像スクロール機能 */
#MiniGameImg {
	position: relative;
	width: 100%;
	height: 300px;
	overflow: hidden;
	margin: 0.5rem 0;
}

.image-container {
	display: flex;
	transition: transform 0.3s ease;
	height: 100%;
}

.game-image {
	width: 300px;
	height: 300px;
	object-fit: cover;
	flex-shrink: 0;
	margin-right: 10px;
}

.scroll-arrows {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}

.arrow {
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 24px;
	cursor: pointer;
	pointer-events: auto;
	transition: background 0.3s ease;
}

.arrow:hover {
	background: rgba(0, 0, 0, 0.9);
}

.left-arrow {
	left: 10px;
}

.right-arrow {
	right: 10px;
}

/* 画像ポップアップモーダル */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.modal-content {
	position: relative;
	margin: auto;
	display: block;
	width: 70%;
	max-width: 840px; /* 1200px * 70% = 840px */
	height: auto;
	max-height: 80vh;
	top: 50%;
	transform: translateY(-50%);
	animation: modalZoom 0.3s ease-out;
}

@keyframes modalZoom {
	from {
		opacity: 0;
		transform: translateY(-50%) scale(0.7);
	}
	to {
		opacity: 1;
		transform: translateY(-50%) scale(1);
	}
}

#modalImage {
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close {
	position: absolute;
	top: -40px;
	right: 0;
	color: white;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.close:hover {
	color: #ccc;
}

/* 画像にホバー効果を追加 */
.game-image {
	cursor: pointer;
	transition: transform 0.2s ease;
}

.game-image:hover {
	transform: scale(1.05);
}

/* gridContainerの影響を無効化 */
.gridContainer {
	width: 100% !important;
	padding: 0 !important;
	margin: 0 auto !important;
}

/*
	Dreamweaver 可変グリッドプロパティ
	----------------------------------
	dw-num-cols-mobile:		5;
	dw-num-cols-tablet:		8;
	dw-num-cols-desktop:	10;
	dw-gutter-percentage:	25;
	
	以下からヒントを入手 : Ethan Marcotte 氏の「レスポンシブ Web デザイン」 
	http://www.alistapart.com/articles/responsive-web-design
	
	および Joni Korpi 氏の「Golden Grid System」
	http://goldengridsystem.com/ 
*/

/* モバイルレイアウト : 480 px およびそれ以下. */

.gridContainer {
	margin-left: auto;
	margin-right: auto;
	width: 87.36%;
	padding-left: 1.82%;
	padding-right: 1.82%;
}
#LayoutDiv1 {
	clear: both;
	float: left;
	margin-left: 0;
	width: 100%;
	display: block;
}

/* タブレットレイアウト : 481 px ～ 768 px。モバイルレイアウトからスタイルを継承。 */

@media only screen and (min-width: 481px) {
.gridContainer {
	width: 90.675%;
	padding-left: 1.1625%;
	padding-right: 1.1625%;
}
#LayoutDiv1 {
	clear: both;
	float: left;
	margin-left: 0;
	width: 100%;
	display: block;
}
}

/* デスクトップレイアウト : 769 px ～最大 1232 px。モバイルレイアウトとタブレットレイアウトからスタイルを継承。 */

@media only screen and (min-width: 769px) {
.gridContainer {
	width: 88.2%;
	max-width: 1232px;
	padding-left: 0.9%;
	padding-right: 0.9%;
	margin: auto;
}
#LayoutDiv1 {
	clear: both;
	float: left;
	margin-left: 0;
	width: 100%;
	display: block;
}
}