/* フロントページ固有スタイル — page-front.php 用 */
/* 2026.04.11 Phase 0: インラインCSSから外出し */

.grid {
	margin: 16px auto;
}

article {
	text-align: left;
	background-color: #fff;
	width: 300px;
	margin: 8px;
	padding: 0 0 24px;
	min-height: 300px;
	position: relative;
	display: inline-table;
	border-radius: 8px;
	box-shadow: 0 0 5px 0 rgba(170, 170, 170, .5);
}

article a:hover {
}

article a {
	font-size: 20px;
	text-decoration: none;
	color: #44f;
}

article a::after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	pointer-events: auto;
	content: "";
	background-color: rgba(0, 0, 0, 0);
}

.main-wrapper {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	min-height: 100%;
	width: 100%;
}

.card-img img {
	border-radius: 8px 8px 0 0;
	width: 100%;
	object-fit: cover;
	max-height: 300px;
}

.card-content {
	padding: 0 12px;
	line-height: 1.5;
}

.card-topic {
	padding-top: 8px;
	color: #d23;
	font-weight: bold;
}

.card-body {
	display: block;
	line-break: anywhere;
}

.card-body svg {
	display: none;
}

.card-title {
	display: block;
}

.card-category {
	text-align: right;
	font-size: 14px;
	color: #444;
}

.card-category a {
	font-size: 14px;
}

.card-category a:hover {
	background-color: #bbccff;
}

/* フロントページ用タグスタイル（index.cssのものをオーバーライド） */
.tag-keywords {
	border-radius: 4px;
	padding: 2px 6px;
	margin-right: 4px;
	background-color: #ddd;
	color: #444;
	font-size: 12px;
	display: inline-block;
}

.tag-section {
	line-height: 1.5;
}

.admins-bar {
	background-color: #000;
	color: #fff;
	padding: 8px;
}

.admins-bar a {
	color: #fff;
}

/* フロントページ用 .published オーバーライド（カード内の絶対配置） */
.published {
	display: flex;
	align-items: center;
	position: absolute;
	font-size: 14px;
	color: #444;
	bottom: 6px;
	right: 8px;
}

@media only screen and (max-width: 640px) {
	article {
	}
}

/* ブックセクション */
.books-section {
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 0 16px;
}

.books-section-title {
	font-size: 20px;
	font-weight: bold;
	color: #333;
	margin-bottom: 16px;
	padding-left: 12px;
	border-left: 4px solid #48b983;
}

.books-section-title i {
	margin-right: 8px;
	color: #48b983;
}

.books-list {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}

.book-card {
	display: flex;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	overflow: hidden;
	text-decoration: none;
	color: #333;
	width: calc(50% - 8px);
	min-width: 280px;
	max-width: 400px;
	transition: box-shadow 0.2s, transform 0.2s;
}

.book-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	transform: translateY(-2px);
}

.book-card-cover {
	width: 100px;
	min-width: 100px;
	height: 100px;
	overflow: hidden;
	background: #f0f0f0;
}

.book-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.book-card-content {
	padding: 12px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.book-card-title {
	font-size: 16px;
	font-weight: bold;
	color: #2c3e50;
	margin-bottom: 4px;
	line-height: 1.3;
}

.book-card-desc {
	font-size: 13px;
	color: #666;
	line-height: 1.4;
}

@media only screen and (max-width: 640px) {
	.book-card {
		width: 100%;
		max-width: none;
	}
}
