@charset "utf-8";

/*==================================================
ギャラリーのためのcss
===================================*/
.gallery{
	columns: 3;/*段組みの数*/
	padding:0 15px;/*ギャラリー左右に余白をつける*/
}

.gallery li {
	margin-bottom: 20px;/*各画像下に余白をつける*/
}

/*ギャラリー内のイメージは横幅100%にする*/
.gallery img{
	width:100%;
	height:auto;
	vertical-align: bottom;/*画像の下にできる余白を削除*/
	box-shadow: 5px 5px 5px gray;
}

/*　横幅900px以下の段組み設定　
@media only screen and (max-width: 900px) {
	.gallery{
		columns:3;
	}
}
*/
@media only screen and (max-width: 768px) {
	.gallery{
		columns: 2;
	}
}


/*========= レイアウトのためのCSS ===============*/

ul{
	margin:0;
	padding: 0;
	list-style: none;
}



/*画像を出現させるアニメーションCSS*/

.flipLeft{
	animation-name: flipLeft;
	animation-duration:0.5s;
	animation-fill-mode:forwards;
	perspective-origin: left center;
	opacity: 1;
}

@keyframes flipLeft{
	from {
		transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
		opacity: 0;
	}

	to {
		transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
		opacity: 1;
	}
}

.diary{
	margin:50px auto;
	padding:20px 10px;
	width:90%;
	max-width:500px;
	background-color:rgba(240,240,240,0.5);
	text-align:left;
}
.diary_title{
	font-size:larger;
	color:purple;
}
.diary_date{
	text-align:left;
	font-size:smaller;
}
.diary_text{
	margin:10px 0;
}
