/**
 * お役立ち情報（WordPress /info/）専用スタイル
 *
 * 使い方: info/wp-content/themes/crecari/ の index.php / single.php で読み込む
 */

/* 記事カードグリッド（info.php トップ & single.php 関連記事） */
.info_post_grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 899px) {
	.info_post_grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

@media (max-width: 599px) {
	.info_post_grid { grid-template-columns: 1fr; gap: 1rem; }
}

.info_post_card {
	display: flex;
	flex-direction: column;
	background: var(--color-bg-card, #fff);
	border: 1px solid var(--color-border, #e5e7eb);
	border-radius: var(--radius-md, 8px);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s ease, transform .2s ease;
}

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

.info_post_thumb {
	margin: 0;
	aspect-ratio: 16 / 10;
	background: var(--color-bg-muted, #f3f4f6);
	overflow: hidden;
}

.info_post_thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.info_post_title {
	padding: 1.2rem 1.4rem 1.6rem;
	font-size: 1.5rem;
	line-height: 1.6;
	font-weight: 700;
	color: var(--color-text-main, #1f2937);
	margin: 0;
}

/* 記事本文（single.php 内 .post_area） */
.post_area h2 {
	font-size: 2rem;
	font-weight: 700;
	margin: 2.4rem 0 1.2rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--color-primary, #3b82f6);
}

.post_area h3 {
	font-size: 1.7rem;
	font-weight: 700;
	margin: 2rem 0 1rem;
}

.post_area p { margin: 0 0 1.2rem; }
.post_area ul,
.post_area ol { margin: 0 0 1.2rem 2rem; }
.post_area li { margin-bottom: 0.4rem; }

.post_area a {
	color: var(--color-primary, #3b82f6);
	text-decoration: underline;
}

.post_area img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md, 8px);
	margin: 1rem 0;
}

.post_area blockquote {
	margin: 1.2rem 0;
	padding: 1.2rem 1.6rem;
	background: var(--color-bg-muted, #f3f4f6);
	border-left: 4px solid var(--color-primary, #3b82f6);
	border-radius: var(--radius-sm, 4px);
}

.sp_only { display: none; }
@media (max-width: 599px) {
	.sp_only { display: inline; }
}
