@charset "UTF-8";

* {
	padding:0px;
	margin:0px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}
.memory .chest {
	padding: 40px 0 100px;
}
.inner2 {
	width: 840px;
	margin: 20px auto 0;
	font-weight: 500;
	font-family:
		"Noto Sans JP",
		"游ゴシック Medium", "Yu Gothic Medium",
		"游ゴシック体", "YuGothic",
		"ヒラギノ角ゴシック", "Hiragino Sans",
		"ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN",
		"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
		"メイリオ", "Meiryo",
		sans-serif;
}
.inner2 h1 {
	margin: 0 0 10px;
	font-size: 20px;
	color: #1d7200;
}
.inner2 p {
	margin: 0 0 12px;
}
#modeText {
	font-size: 16px;
}
.forSP {
	display: none;
}

/* Game */
#cards {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 5px;
}
.card {
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	flex: 0 0 200px;
	width: 100%;
	height: auto;
	margin: 0 0 10px;
	border: solid 1px #ccc;
	border-radius: 5px;
	box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.1);
	line-height: 0;
}
.card div {
	position: relative;
	width: 200px;
	height: 200px;
}
.card img {
	transition: 0.3s;
	position: absolute;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto;
	top: 0;
	left: 0;
}
.card .dog {
	opacity: 0;
}
.card .dog.on {
	opacity: 1;
}
.card .ura.off {
	opacity: 0;
}
.indicator {
	margin: 0;
	text-align: center;
}
#trial {
	font-weight: 700;
}
#times {
	font-weight: 700;
}
#kekka {
	font-weight: 700;
	text-align: center;
}
.ok {
	color: #ed1e79;
}
.not_ok {
	color: #0071bd;
}
#introduction {
	margin: 0 0 6px;
}

#gameArea {
	overflow: hidden;
	position: relative;
}
#messageArea {
	z-index: 10;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	justify-content: center;
	align-items: center;
}
#messageArea.showed {
	display: flex;
}
#messageBox {
	max-width: 600px;
	padding: 10px 7px 10px 10px;
	border: solid 1px #000;
	background-color: rgba(255, 255, 255, 0.8);
	line-height: 1.7;
	letter-spacing: 1px;
	text-align: center;
	font-weight: 700;
	font-size: 20px;
}
.desc {
	text-align: left;
	font-weight: 500;
	font-size: 16px;
	color: #000;
}
#present,
#reload,
#advanced,
#normal,
#close {
	cursor: pointer;
	display: block;
	width: 215px;
	margin: auto;
	padding: 5px 0 5px;
	margin: 0 auto 5px;
	border: solid 1px #fff;
	border-radius: 7px;
	background-color: #2c8c0b;
	text-align: center;
	font-size: 15px;
	color: #fff;
}
#present {
	margin: 8px auto 5px;
}
#close {
	margin: 7px auto 3px;
}
#close span:before {
	display: inline-block;
	content: "×";
	margin: 0 6px 0 0;
	vertical-align: -1px;
	font-weight: 700;
	font-size: 20px;
}

/* sakura */
/*
.sakura {
	position: fixed;
	top: -50px;
	z-index: 9999;
	pointer-events: none;
	width: 20px;
	height: 20px;
	background-image: url('../img/sakura.png');
	background-size: cover;
	opacity: 0.9;
	animation-name: fall;
	animation-timing-function: linear;
}
@keyframes fall {
	to {
		transform: translateY(100vh) rotate(360deg);
		opacity: 0;
	}
}
*/
.sakura {
	position: fixed;
	top: -50px;
	z-index: 9999;
	pointer-events: none;
	background-image: url('../img/page/memory-game/sakura.png');
	background-size: cover;
	opacity: 0.8;
	animation-name: fall;
	animation-timing-function: linear;
}
@keyframes fall {
	to {
		transform: translateY(100vh) rotate(360deg);
		opacity: 0;
	}
}


/* ---------------------------------
 width <= 880px
--------------------------------- */
@media screen and (min-width:1px) and (max-width:880px) {
	.inner2 {
		width: 100%;
		margin: 20px auto 0;
		padding: 0 15px;
	}
	#cards {
		width: 100%;
	}
	.card {
		flex: 0 0 calc( 25% - 8px );
	}
	.card div {
		aspect-ratio: 1 / 1;
		width: 100%;
		height: auto;
	}
/* under 880 */
}

/* ---------------------------------
 width <= 767px
--------------------------------- */
@media screen and (min-width:1px) and (max-width:767px) {
	.forSP {
		display: block;
	}
	.inner2 {
		padding: 0 30px;
	}
	.card {
		flex: 0 0 calc( 33.333% - 7px );
	}
	#messageBox {
		max-width: 540px;
		padding: 10px;
	}
/* under 767 */
}

/* ---------------------------------
 width <= 539px
--------------------------------- */
@media screen and (min-width:1px) and (max-width:539px) {
	.inner2 {
		padding: 0 5px;
	}
	.inner2 h1 {
		margin: 0 0 10px;
		font-size: 17px;
	}
	#modeText {
		display: block;
		font-size: 15px;
	}
	#messageBox {
		max-width: calc( 100% - 40px );
		padding: 10px;
		font-size: 19px;
	}
	.card {
		flex: 0 0 calc( 33.333% - 4px );
		margin: 0 0 5px;
	}
/* under 539 */
}

/* ---------------------------------
 width <= 430px
--------------------------------- */
@media screen and (min-width:1px) and (max-width:430px) {
	#messageBox {
		font-size: 18px;
	}
/* under 430 */
}
/* end of files */