/**
 * BlogMap Clone フロントスタイル。
 * すべて .bmc-wrap でスコープ化し、SWELLのグローバルCSSと干渉させない。
 * 見出しは h2/h3 を使わず .bmc-single-h1 等の div で代替(SWELLの
 * .post_content h2/h3 装飾との干渉回避)。
 */

.bmc-wrap,
.bmc-wrap *,
.bmc-wrap *::before,
.bmc-wrap *::after {
	box-sizing: border-box;
}

.bmc-wrap {
	margin: 0 0 2em;
	font-size: 15px;
	line-height: 1.7;
}

.bmc-empty {
	color: #777;
	padding: 1.5em 0;
	text-align: center;
}

/* ---- ボタン ---- */
.bmc-wrap .bmc-btn {
	display: inline-block;
	padding: 0.55em 1.2em;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease;
}
.bmc-wrap .bmc-btn:hover {
	background: #f5f5f5;
}
.bmc-wrap .bmc-btn-primary {
	background: #2c3e50;
	border-color: #2c3e50;
	color: #fff;
}
.bmc-wrap .bmc-btn-primary:hover {
	background: #3d5166;
}
.bmc-wrap .bmc-react-btn.bmc-active {
	background: #fdeaea;
	border-color: #e74c3c;
	color: #c0392b;
}
.bmc-wrap .bmc-react-count {
	font-weight: 700;
	margin-left: 0.3em;
}

/* ---- 新着フィード ---- */
.bmc-feed-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bmc-feed-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	align-items: flex-start;
}
.bmc-feed-thumb {
	flex: 0 0 96px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f0;
	display: block;
}
.bmc-feed-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bmc-feed-body {
	min-width: 0;
}
.bmc-feed-title {
	display: block;
	font-weight: 600;
	color: #222;
	text-decoration: none;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.bmc-feed-title:hover {
	text-decoration: underline;
}
.bmc-feed-meta {
	font-size: 12.5px;
	color: #888;
	margin-top: 4px;
}
.bmc-feed-meta a {
	color: #666;
	text-decoration: none;
}
.bmc-feed-time {
	margin-left: 0.8em;
}

/* ---- ブログカード ---- */
.bmc-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.bmc-card {
	display: block;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: box-shadow 0.15s ease;
}
.bmc-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.bmc-card-img {
	display: block;
	aspect-ratio: 16 / 9;
	background: #f0f0f0;
	overflow: hidden;
}
.bmc-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bmc-card-img-none {
	background: linear-gradient(135deg, #eef2f5, #dde5ec);
}
.bmc-card-body {
	display: block;
	padding: 10px 12px 12px;
}
.bmc-card-title {
	display: block;
	font-weight: 700;
	font-size: 14.5px;
	color: #222;
	line-height: 1.4;
}
.bmc-card-cats {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 4px;
}
.bmc-card-stats {
	display: block;
	font-size: 12.5px;
	color: #c0392b;
	margin-top: 6px;
}
.bmc-card-sep {
	color: #ccc;
	margin: 0 4px;
}

/* ---- ランキング ---- */
.bmc-ranking {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}
.bmc-ranking-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}
.bmc-rank-num {
	flex: 0 0 32px;
	height: 32px;
	border-radius: 50%;
	background: #2c3e50;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}
.bmc-ranking-item:nth-child(1) .bmc-rank-num { background: #d4a017; }
.bmc-ranking-item:nth-child(2) .bmc-rank-num { background: #8e9aa6; }
.bmc-ranking-item:nth-child(3) .bmc-rank-num { background: #a9764b; }
.bmc-rank-link {
	flex: 1;
	min-width: 0;
	color: #222;
	text-decoration: none;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bmc-rank-count {
	font-size: 12.5px;
	color: #888;
	flex-shrink: 0;
}

/* ---- 検索フォーム ---- */
.bmc-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 1.5em;
}
.bmc-wrap .bmc-input,
.bmc-wrap .bmc-select,
.bmc-wrap .bmc-textarea {
	padding: 0.5em 0.8em;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	color: #333;
}
.bmc-search-form .bmc-input {
	flex: 1 1 200px;
}

/* ---- ページネーション ---- */
.bmc-pagination {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 1.5em;
}
.bmc-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	border: 1px solid #ddd;
	border-radius: 6px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
}
.bmc-page-link.bmc-page-current {
	background: #2c3e50;
	border-color: #2c3e50;
	color: #fff;
	pointer-events: none;
}

/* ---- 詳細ページ ---- */
.bmc-single-header img {
	width: 100%;
	border-radius: 10px;
	display: block;
}
.bmc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 1em 0;
}
.bmc-sns {
	display: flex;
	gap: 8px;
	margin-bottom: 1em;
}
.bmc-sns-link {
	font-size: 13px;
	color: #555;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 0.25em 0.9em;
	text-decoration: none;
}
.bmc-single-h1 {
	font-size: 17px;
	font-weight: 700;
	margin: 1.8em 0 0.6em;
	padding-left: 0.6em;
	border-left: 4px solid #2c3e50;
	line-height: 1.4;
}
.bmc-rec-list {
	margin: 0;
	padding-left: 1.2em;
}
.bmc-rec-list li {
	margin-bottom: 0.4em;
}

/* ---- マイページ ---- */
.bmc-mypage {
	max-width: 640px;
}
.bmc-field {
	margin-bottom: 1.3em;
}
.bmc-label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 0.4em;
}
.bmc-req {
	font-size: 11px;
	color: #fff;
	background: #e74c3c;
	border-radius: 4px;
	padding: 1px 6px;
	margin-left: 6px;
	font-weight: 400;
}
.bmc-hint {
	font-size: 12.5px;
	color: #888;
	margin: 0.3em 0 0;
}
.bmc-mypage .bmc-input,
.bmc-mypage .bmc-textarea {
	width: 100%;
	margin-bottom: 6px;
}
.bmc-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}
.bmc-check {
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.bmc-rec-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 6px;
}
.bmc-form-message {
	margin-top: 0.8em;
	font-size: 14px;
	color: #2c7a3f;
}
.bmc-form-message.bmc-error {
	color: #c0392b;
}
.bmc-status {
	font-size: 12.5px;
	border-radius: 4px;
	padding: 2px 8px;
}
.bmc-status-ok {
	background: #e6f5ea;
	color: #2c7a3f;
}
.bmc-status-pending {
	background: #fdf3e0;
	color: #b07a1e;
}

@media (max-width: 480px) {
	.bmc-rec-row {
		grid-template-columns: 1fr;
	}
	.bmc-feed-thumb {
		flex-basis: 80px;
		height: 50px;
	}
}
