/* ==================== finish.css ==================== */

.Finish .seikai .body .related {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
}

.Finish .seikai .body .related img {
	width: 23%;
	margin: 1%;
}

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

@media (min-width: 768px) {

	.Finish .seikai .body .related {
		width: 22.5em;
	}
}

/* for IE11 */
@media all and (-ms-high-contrast:none) {
	.Finish .seikai .body .related {
		height: 19em;
	}
}


/* ==================== play.css ==================== */

.Play {
	overflow: hidden;
}

.Play::before,
.Play::after {
	content: '';
	display: block;
	position: absolute;
	z-index: 1;
	left: 0;
	width: 100%;
	background: no-repeat;
	background-size:
		cover,
		100% 1px;
}

/* たてのはみ出し隠し */
.Play::before {
	top: 0;
	height: 5em;
	background-position: left top;
}
.Play::after {
	bottom: 0;
	height: 2em;
	background-position: left bottom;
}

.Play .body {
	position: relative;
	flex-direction: column;
}


@media (max-width: 767px) {
	.Play {
		height: 25em;
	}
	
	.Play::before,
	.Play::after {
		background-image:
			url(/products/brand/anpanman/assets_game/images/contents_base_juice_sp.svg),
			linear-gradient(0deg, #f3f1fa, #f3f1fa);
	}

	/* 横のはみ出し隠し */
	.Play .body::before,
	.Play .body::after {
		content: '';
		position: absolute;
		z-index: 1;
		top: 0;
		width: 0.25em;
		height: 100%;
		background: white;
	}
	.Play .body::before {
		left: 0;
	}
	.Play .body::after {
		right: 0;
	}

}

@media (min-width: 768px) {
	.Play {
		height: 34em;
	}
	
	.Play::before,
	.Play::after {
		background-image:
			url(/products/brand/anpanman/assets_game/images/contents_base_juice_pc.svg),
			linear-gradient(0deg, #f3f1fa, #f3f1fa);
	}
}


.Play .touch {
	position: absolute;
	left: 0;
	top: 1rem;
	width: 100%;
}

.Play .baloons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: url(../images/play_cloud.svg) no-repeat center top;
	background-size: contain;
}
	
.Play .baloon:nth-of-type(even){
	transform: translateY(4em);
}


.Play .baloon .baloon-image {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.Play .baloon-image > * {
	position: relative;
}
.Play .baloon-image .head {
	z-index: 2;
}

@media (max-width: 767px) {
	.Play .touch img {
		width: 80%;
	}
	.Play .baloons {
		padding: 6em 1em 0;
	}
	
	.Play .baloon-image .rope img {
		width: auto;
		height: 10em;
	}
	.Play .baloon-image .pkg {
		transform-origin: 50% 0;
		transform: scale(1.2);
	}
	.Play .baloon-image .pkg {
		margin-top: -12%;
	}
}


@media (min-width: 768px) {
	.Play .baloons {
		padding-top: 8em;
	}
	.Play .baloon {
		padding: 0 1em;
	}
	.Play .baloon-image .pkg {
		margin-top: -8%;
	}
}

/* for IE11 */
@media all and (-ms-high-contrast:none) {

	.Play .baloons {
		display: -ms-grid;
		-ms-grid-columns: repeat(4, 1fr);
	}
	.Play .baloons .baloon1 {
		 -ms-grid-column: 1;
	}
	.Play .baloons .baloon2 {
		 -ms-grid-column: 2;
	}
	.Play .baloons .baloon3 {
		 -ms-grid-column: 3;
	}
	.Play .baloons .baloon4 {
		 -ms-grid-column: 4;
	}

}


/* ==================== play_animation.css ==================== */

/* タイトル */

.Play.baloonSelected .gameTitle {
	transition: opacity 400ms ease;
	opacity: 0;
}


/* タッチしてね */

.Play .touch {
	animation-name: touch-blink;
	animation-duration: 2s;
	animation-fill-mode: both;
	animation-timing-function: steps(1);
	animation-iteration-count: infinite;
}

.Play.baloonSelected .touch {
	display: none;
}

@keyframes touch-blink {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}


/* 風船全体 */

.Play.baloonSelected .baloons {
	transition: transform 3s ease;
}


/* 風船のひも */
.Play .baloon-image .rope {
	margin-top: -0.5em;
	z-index: 1;
	animation-name: baloon-rope;
	animation-duration: 2s;
	animation-fillmode: both;
	animation-iteration-count: infinite;
	animation-timing-function: steps(1);
}

@keyframes baloon-rope {
	0% {
		transform: scaleX(-1);
	}
	50% {
		transform: scaleX(1);
	}
}


/* たてのゆらゆら */

.Play .baloon-anime1 {
	animation-name: baloon-float;
	animation-duration: 3s;
	animation-iteration-count: infinite;
	animation-fillmode: both;
	animation-direction: alternate;
	animation-timing-function: linear;
}
.Play .baloon1 .baloon-anime1,
.Play .baloon3 .baloon-anime1 {
	animation-direction: alternate-reverse;
}

@keyframes baloon-float {
	from {
		transform: translateY(-0.5em);
	}
	to {
		transform: translateY(0.5em);
	}
}


/* 選ばれた風船 */
.Play.baloonSelected .baloon.selected {
	z-index: 1;
	transition: transform 5s ease;
}

.Play.baloonSelected .baloon.selected .baloon-anime2 {
	transform-origin: 50% 5%;
	animation-name: baloon-flowup;
	animation-duration: 6s;
	animation-iteration-count: infinite;
	animation-direction: altername;
	animation-timing-function: linear;
}

@keyframes baloon-flowup {
	0% {
		transform: rotate(0);
	}
	25% {
		transform: rotate(-3deg);
	}
	75% {
		transform: rotate(3deg);
	}
}

@media (max-width: 767px) {
	.Play.baloonSelected .baloons {
		transform: translateY(13em);
	}
	.Play.baloonSelected .baloon.selected {
		transform: translateY(-33em);
	}
}

@media (min-width: 768px) {
	.Play.baloonSelected .baloons {
		transform: translateY(18em);
	}
	.Play.baloonSelected .baloon.selected {
		transform: translateY(-42em);
	}
}