/*
 * Theme Name: kids-space
 *
 * Layout: Content-Sidebar
 *
 * Learn more: https://developer.wordpress.org/themes/basics/template-files/
*/

.site-branding .site-title {
	background: url("../images/header_logo.png") no-repeat;
	background-size: contain;
	width: 100%;
	padding-top: 14%;
	margin: 0.37em 0.37em 0;
}
.site-branding a.home-link .site-title {
	background: url("../images/header_logo.png") no-repeat;
	background-size: contain;
	width: 100%;
	padding-top: 74%;
	margin-bottom: 0;
}
.site-branding a.home-link {
	width: 185px;
	height: 100%;
	display: inline-block;
	margin: 0em 0.37em 0;
}

.bg-replace {
	width: 50%;
	text-indent: -9999px;
	display: block;
	line-height: 1;
}
.site-branding {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: end;
	   -ms-flex-align: end;
	      align-items: flex-end;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}
.content-area {
	width: 100%;
}
.site-main {
	display: inline-block;
	padding: 0 1rem;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 3.7em;
}
.site-content {
	width: 100%;
	background: #c3e5f9;
	background: -webkit-linear-gradient(top,  #c3e5f9 30%,#ffffff 100%);
	background: -moz-linear-gradient(top,  #c3e5f9 30%, #ffffff 100%);
	background: -ms-linear-gradient(top,  #c3e5f9 30%,#ffffff 100%);
	background: -o-linear-gradient(top,  #c3e5f9 30%,#ffffff 100%);
	background: linear-gradient(to bottom,  #c3e5f9 30%,#ffffff 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c3e5f9', endColorstr='#ffffff',GradientType=0 );
	z-index: 4;
}
.site-content .widget-area {
	display: none;
}
.site-footer {
	width: 100%;
}

.no-sidebar .content-area {
	float: none;
	margin-left: auto;
	margin-right: auto;
}
.no-sidebar .site-main {
	margin-right: 0;
}

#jumbotron {
	position: relative;
	width: 100%;
	padding-top: 86.2%;
	margin-top: 10px;
	margin-left: auto;
	margin-right: auto;
	background: url("../images/jumbotron.png") no-repeat;
	background-size: contain;
	background-position: top;
}

#ferris-wheel {
	position: absolute;
	padding-top: 54%;
	top: 35%;
	right: 5%;
	background: url("../images/ferris_wheel.png") no-repeat;
	background-size: contain;
	width: 50%;
}

/* スマホでは観覧車（jumbotron）を出さない。本文が画面の下に押し出されるため */
@media screen and (max-width: 767px) {
	#jumbotron {
		display: none;
	}
}

#footer-characters {
	position: absolute;
	top: -50%;
	left: 50%;
	transform: translateX(-50%);
	background: url("../images/footer-characters.png") no-repeat;
	background-size: contain;
	background-position: center;
	height: 100%;
	width: 90%;
}

#primary {
	width: 100%;
	background: url("../images/rainbow3.png") no-repeat;
	background-position: center top;
	background-size: contain;
}

#banner-articles .banner-group {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	  -ms-flex-pack: distribute;
	justify-content: space-around;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
   	   -ms-flex-direction: column;
	       flex-direction: column;
}

#banner-articles .banner-group article {
	margin: 0;
	position: relative;
}

.banner-thumbnail {
	width: 100%;
	height: 150px;
	max-width: 100%;
	max-height: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
	font-family: 'object-fit: cover';
}

.list-thumbnail {
	width: 100%;
	height: 150px;
	max-width: 100%;
	max-height: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
	font-family: 'object-fit: cover';
}

.frog {
	display: block;
	position: absolute;
	background: url("../images/frog.png") no-repeat;
	background-size: contain;
	width: 10%;
	padding-top: 10%;
	right: -3%;
	bottom: -14px;
}

.birds {
	display: block;
	position: absolute;
	background: url("../images/birds.png") no-repeat;
	background-size: contain;
	width: 25%;
	height: 5%;
	right: -3%;
	bottom: -2%;
}

@media screen and (min-width: 768px) {
	.site-branding {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: end;
		   -ms-flex-align: end;
		      align-items: flex-end;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
	.site-content .widget-area {
		display: block;
		float: right;
		overflow: hidden;
		width: 240px;
	}

	.frog {
		display: block;
		position: absolute;
		background: url("../images/frog.png") no-repeat;
		background-size: 44px 45px;
		width: 44px;
		height: 45px;
		padding-top: 0;
		right: -10px;
		bottom: -14px;
	}
	
	.birds {
		display: block;
		position: absolute;
		background: url("../images/birds.png") no-repeat;
		background-size: 150px 60px;
		width: 150px;
		height: 60px;
		right: -13px;
		bottom: -14px;
	}

	#banner-articles .banner-group {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		  -ms-flex-pack: distribute;
		justify-content: space-around;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
   		   -ms-flex-direction: row;
		       flex-direction: row;
		-webkit-box-align: center;
		   -ms-flex-align: center;
		      align-items: center;
	}

	#banner-articles .banner-group article {
		margin: 10px;
	}

	.banner-thumbnail {
		width: 160px;
		height: 160px;
	}

	.list-thumbnail {
		width: 150px;
		height: 150px;
	}
}

@media screen and (min-width: 1000px) {
	.site-branding .site-title {
		background: url("../images/header_logo.png") no-repeat;
	        background-size: contain;
		width: 185px;
		height: 137px;
		padding-top: 0;
		margin: 0.67em 0.67em 0;
	}

	.site-branding a.home-link .site-title {
		background: url("../images/header_logo.png") no-repeat;
	        background-size: contain;
		width: 100%;
		height: 137px;
		padding-top: 0;
		margin-left: 0;
		margin-bottom: 0;
	}
	.site-branding {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: end;
		   -ms-flex-align: end;
		      align-items: flex-end;
		width: 1000px;
		margin-left: auto;
		margin-right: auto;
	}
	.site-branding a.home-link {
		width: 185px;
		height: 100%;
		margin: 0 1.37em 0;
	}
	.content-area {
		float: left;
		margin: 0 -25% 0 0;
		width: 100%;
		text-align: center;
	}
	.site-main {
		width: 1000px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 6.7em;
	}
	.site-content {
		width: 100%;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		background: #c3e5f9;
		background: -webkit-linear-gradient(top,  #c3e5f9 30%,#ffffff 100%);
		background: -moz-linear-gradient(top,  #c3e5f9 30%, #ffffff 100%);
		background: -ms-linear-gradient(top,  #c3e5f9 30%,#ffffff 100%);
		background: -o-linear-gradient(top,  #c3e5f9 30%,#ffffff 100%);
		background: linear-gradient(to bottom,  #c3e5f9 30%,#ffffff 100%);
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c3e5f9', endColorstr='#ffffff',GradientType=0 );
		z-index: 4;
	}
	.site-content .widget-area {
		float: right;
		overflow: hidden;
		width: 25%;
		text-align: left;
	}
	.site-footer {
		clear: both;
		width: 100%;
	}
	
	.no-sidebar .content-area {
		float: none;
		margin-left: auto;
		margin-right: auto;
	}
	.no-sidebar .site-main {
		margin-right: 0;
	}

	#jumbotron {
		position: relative;
		width: 1000px;
		height: 900px;
		padding-top: 0;
		margin-left: auto;
		margin-right: auto;
		background: url("../images/jumbotron.png") no-repeat;
		background-size: 1000px 862px;
		background-position: top;
		margin-top: 10px;
	}

	#ferris-wheel {
		position: absolute;
		padding-top: 0;
		top: 250px;
		right: 0;
		background: url("../images/ferris_wheel.png") no-repeat;
		background-size: 550px 629px;
		width: 550px;
		height: 629px;
	}

	#footer-characters {
		position: absolute;
		top: -70px;
		left: 50%;
		transform: translateX(-50%);
		background: url("../images/footer-characters.png") no-repeat;
		background-size: 800px 100px;
		background-position: center;
		height: 138px;
		width: 890px;
	}

	#primary {
		width: 100%;
		background: url("../images/rainbow3.png") no-repeat;
		background-position: center top;
		background-size: 1000px 1487px;
		text-align: center;
	}

	#banner-articles .banner-group article {
		margin: 20px;
	}

	.banner-thumbnail {
		width: 200px;
		height: 200px;
	}

	.list-thumbnail {
		width: 100%;
	}
}
