@charset "UTF-8";

body{
	font-size: 1em;
	line-height: 1.6em;
	font-family: georgia,serif;
	color: #222;
}
*,
*:before,
*:after {
	box-sizing: border-box;
}
a, a:link{
	color: #222;
	text-decoration: none;
	transition: 0.3s ease-in-out;
}
a:hover{
	background-color: #fff100;
}
a:visited{
	color: #000;
}
img{
	max-width: 100%;
	height: auto;
}

/* __ Header __ */

header{
	padding: 1em;
	display: flex;
	flex-direction: column;
	align-items: center;
	/*font-family: 'Marck Script', cursive;*/
}
.logo{
	margin: 0.5em 0;
	width: 240px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	background-color: rgb(255, 0, 0);
	border-radius: 30px;
}
.logo a{
	color: #fff;
	text-align: center;
}
.logo a:hover{
	color: #fff100;
	background-color: transparent;
}
.gnav{
	display: flex;
}
.gnav a{
	display: block;
	padding: 10px;
	font-size: 22px;
}

.gnav2{
	display: flex;
}
.gnav2 a{
	display: block;
	padding: 10px;
	font-size: 40px;
	font-family: 'M PLUS 1p', sans-serif;
}

/* __ Contents __ */

.container p:not(:last-child){
	margin-bottom: 1.5em;
	font-size: 25px;
}
.sidebar, .main, footer{
	padding: 20px;
}
.sidebar{
	background-color: #ccc;
}
.main{
	background-color: #efefef;
}
.sidebar-nav li a{
	display: block;
	width: 300px;
	margin-bottom: 0.5em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #ddd;
}

/*__ Tiles __*/

.tiles{
	margin-bottom: 1em;
}
.tiles li{
	margin-bottom: 1em;
	padding: 20px;
	border-radius: 4px;
	background-color: #fff;
}

/* __ Footer __ */

footer{
	text-align: center;
	background-color: #222;
	color: #fff;
}


/* Media queries
-------------------------------------------------------*/

@media screen and (min-width : 768px) { /* デスクトップ用CSS */

	/* __ Header __ */

	header{
		flex-direction: row;
	}
	.logo{
		margin: 0 auto 0 0;
	}
	.gnav a{
		padding: 10px 22px;
		display: block;
		font-size: 24px;
		border-radius: 4px;
	}

	/* __ Contents __ */

	.container{
		display: flex;
	}
	.sidebar{
		width: 300px;
	}
	.main{
		flex: 1;
		order: 2;
		font-size: 25px;
	}

	/*__ Tiles __*/

	.tiles{
		display: flex;
		flex-wrap: wrap;
	}
	.tiles li {
		margin: 5px;
		width: calc( 33.3% - 10px);
	}
	.tiles li p{
		padding-left: 180px;
	}

	.tiles2{
		display: flex;
		justify-content: center;
		align-content: center;
	}
	.tiles2 li {
		margin: 5px;
		font-size: 20px;
	}
	.tiles2 li p{
		font-size: 20px;
		text-align: center;
	}

	.tiles3 li{
		margin: 5px;
		width: calc( 40% - 10px);
	}


	p.indentback{
		text-indent: 2em;
	  }
}





