@charset "utf-8";
/* CSS Document */

/********************/
/*____ 共通基礎 ____*/
body {
	margin: 0;
	font-size: 16px;
}
#my_middle {
	line-height: 1.5;
}
a {
	text-decoration: none;
}

/****************************/
/*____ カードレイアウト ____*/


/* フレックスボックスの設定 */
.card-wrapper {
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-pack: justify;
	-webkit-box-pack: justify;
	margin: 2em auto;
	max-width: 320px; /* ※画面幅767px以下の場合 */
	width: 100%;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	justify-content: space-between;
}

/* カード内画像 */
.card-wrapper .archive_note img {
	display: block;
	max-width: 100%;
	height: 155px;
	margin: 0 auto;
	transition: img 0.3s;
}

/* カードホバー時に表示する画像マスク */
.card-wrapper .archive_note .caption {
	font-family: 'Prata', serif;
	font-size: 20px;
	color: #fff;
	padding-top: 70px;
	padding-left: 0px;
	transition: all 0.5s ease;
}
.card-wrapper .archive_note .mask {
	position: absolute;
	max-width: calc(100% - 2em);
	width: 100%;
	height: 155px;
	margin-top: -155px;
	opacity: 0;
	background-color: rgb(0,0,0,0.4);
	-webkit-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

/* カードタイトル */
.card-wrapper .archive_note .note_title {
	margin: 0.5em 0;
	color: rgb(50, 50, 70);
	text-align: center;
	font-size: 1em;
	font-weight: 700;
}

/* カード説明文 */
.card-wrapper .archive_note p {
	margin: 0;
	padding: 0.2em 1em;
	color: #404558;
	font-size: 12px;
}
/* スマホ画面のRead more */
.card-wrapper .archive_note p span {
	margin: 30px 0 10px 0;
	color: #2560c0;
	display: block;
	text-align: center;
	font-family: 'Prata', serif;
	font-size: 15px;
	font-weight: 500;
}

/* カードレイアウトを1カラムで配置 */
.card-wrapper .archive_note {
	margin: 2.5em auto;
	padding: 0;
	width: 90%;
	transition: box-shadow 0.3s;
}

/* カードのホバーアクション */
.archive_note:hover {
	box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
.archive_note:hover .mask {
	opacity: 1;
}
.archive_note:hover .caption {
	padding-left: calc(90% / 3);
}

/* 画面幅768px以上・・・2カラム */
@media all and (min-width: 768px) {
	.card-wrapper {
		max-width: 660px;
	}
	.card-wrapper .archive_note {
		margin: 2.5em 0;
		width: calc(90% / 2);
	}
	.card-wrapper .archive_note .mask {
		width: calc(90% / 2);
	}
}

/* 画面幅992px以上・・・3カラム */
@media all and (min-width: 992px) {
	.card-wrapper {
		max-width: 960px;
	}
	.card-wrapper .archive_note {
		width: calc(90% / 3);
	}
	.card-wrapper .archive_note .mask {
		width: calc(90% / 3);
	}
	.card-wrapper .archive_note p span {
		display: none;
	}

	/* 最後の行が3列より少ない場合左寄せにレイアウトさせる */
	.card-wrapper::after {
		content: "";
		display: block;
		width: calc(90% / 3);
	}
}


/************************/
/*____ 他スタイル ____*/

/* ページタイトル */
h2.title {
	font-family: 'Prata', serif;
	font-size: 2rem;
	position: relative;
	padding: 1.5rem;
	text-align: center;
}

h2.title span {
	font-family: serif;
	font-size: 1.2rem;
	display: block;
}

h2.title:before {
	position: absolute;
	bottom: -10px;
	left: calc(50% - 30px);
	width: 60px;
	height: 5px;
	content: '';
	border-radius: 3px;
	background: #273F65;
}

/* トップへ戻る */
#totop {
	display: none;
	width: 60px;
	height: 60px;
	background: #000;
	border-radius: 3px;
	position: fixed;
	border: 1px solid #000;
	bottom: 75px;
	right: 20px;
	z-index: 100;
}
#totop a {
	display: block;
	width: 100%;
	height: 100%;
	text-align: center;
	line-height: 0;
}
#totop a i {
	font-size: 20px;
	color: #fff;
}
#totop a span {
	display: block;
	font-size: 11px;
	font-weight: bold;
	line-height: 14px;
	color: #fff;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 0;
	right: 0;
	margin: 0 auto;
}