#seo-card-container {

}
#geo-card-container {

}

.card-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1.5rem;
	padding: 2rem;
	padding: 1em;
	margin-bottom: 2em;
}
.seo_article .card-container {
	display: block;
}

.card-link {
	text-decoration: none;
	color: inherit;
	margin-bottom: 1em;
	height: auto;
}
.seo_article .card-link {
	margin-bottom: 1em;
}


.card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	padding: 1.2rem;
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	position: relative !important;
}
.seo_article .card {
	padding: 0 1.2rem;
	padding-bottom: 1em;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 20px rgba(0,0,0,0.12);
	background-color:#ddf7fa;
}
.card h2 {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
	line-height: 1.4;
	font-weight:bold;
}
.card .viewdate {
	text-align:right;
}

.card .excerpt {
	font-size: 0.95rem;
	color: #444;
	flex-grow: 1;
	margin-block-end: 0;
	margin-bottom: 0.5em;
}
.card .meta {
	font-size: 0.85rem;
	color: #666;
	margin-top: 1rem;
}
.card .source {
	font-size: 0.85rem;
	color: #999;
	margin: 0.5em 0 1em;
	text-align:right;
}
.seo_article #pagination {
	text-align: center;
	padding: 1rem;
}
.seo_article #pagination button {
	margin: 0 5px;
	padding: 6px 12px;
	border: none;
	background-color: #eee;
	color: #333;
	border-radius: 6px;
	cursor: pointer;
}
.seo_article #pagination button.active {
	background-color: #1e90ff;
	color: white;
}
.source-link {
	color: #1e90ff;
	text-decoration: underline;
	cursor: pointer;
}

.learning-assistant {
	margin: 40px 0;
	padding: 30px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 16px;
	border-left: 6px solid #007bff;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.learning-header {
	margin-bottom: 25px;
}

.learning-title {
	color: #007bff;
	margin: 0 0 15px 0;
	font-size: 24px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 12px;
}

.learning-badges {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.badge {
	padding: 6px 14px;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 600;
	color: white;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.badge-category.badge-seo { background: #007bff; }
.badge-category.badge-技術 { background: #28a745; }
.badge-category.badge-マーケティング { background: #ffc107; color: #333; }
.badge-category.badge-ai { background: #6f42c1; }
.badge-category.badge-アクセシビリティ { background: #fd7e14; }

.badge-difficulty.badge-初級 { background: #28a745; }
.badge-difficulty.badge-中級 { background: #ffc107; color: #333; }
.badge-difficulty.badge-上級 { background: #dc3545; }

.summary-card, .keywords-section, .learning-points {
	background: white;
	padding: 25px;
	border-radius: 12px;
	margin-bottom: 25px;
	border: 1px solid #e9ecef;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.summary-title, .keywords-title, .points-title {
	margin: 0 0 15px 0;
	color: #495057;
	font-size: 18px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}

.summary-text {
	margin: 0;
	color: #6c757d;
	line-height: 1.7;
	font-size: 15px;
}

.keywords-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}

.keyword-card {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 10px;
	border: 1px solid #e9ecef;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.keyword-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #007bff, #0056b3);
}

.keyword-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0,123,255,0.15);
	background: white;
}

.keyword-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	margin-bottom: 0;
}
.keyword-header h5 {
	font-size: 1.5em;
	line-height: 1.3;
}

.keyword-header i {
	color: #007bff;
	font-size: 20px;
}

.keyword-name {
	margin: 0;
	color: #007bff;
	font-size: 16px;
	font-weight: 700;
}

.keyword-description {
	margin: 0 0 18px 0;
	font-size: 14px;
	color: #6c757d;
	line-height: 1.6;
}

.keyword-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #007bff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 16px;
	border: 2px solid #007bff;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.keyword-link:hover {
	background: #007bff;
	color: white;
	text-decoration: none;
	transform: translateY(-1px);
}

.points-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.point-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 15px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f3f4;
}

.point-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.point-number {
	background: #007bff;
	color: white;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.point-text {
	color: #495057;
	font-size: 1.5em;
	line-height: 1.6;
	flex: 1;
}

.analysis-info {
	text-align: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e9ecef;
}

.analysis-date {
	color: #6c757d;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.learning-assistant {
		padding: 20px;
		margin: 30px 0;
	}
	
	.keywords-grid {
		grid-template-columns: 1fr;
	}
	
	.learning-title {
		font-size: 20px;
	}
	
	.learning-badges {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.summary-card, .keywords-section, .learning-points {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.learning-assistant {
		padding: 15px;
		margin: 20px 0;
	}
	
	.point-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.point-number {
		align-self: flex-start;
	}
}


.learning-assistant {
	margin: 30px 0;
	padding: 25px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 12px;
	border-left: 5px solid #007bff;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.learning-title {
	color: #007bff;
	margin: 0 0 15px 0;
	font-size: 22px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.learning-badges {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.badge {
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	color: white;
}

.badge-category { background: #007bff; }
.badge-difficulty { background: #28a745; }

.summary-card, .keywords-section, .learning-points, .practical-tips, .source-reference {
	background: white;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.summary-card p {
	font-size: 1.5em;
	line-height: 1.5;
}

.keywords-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 15px;
}

.keyword-card {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #e9ecef;
	transition: transform 0.2s ease;
}

.keyword-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0,123,255,0.15);
}


.keyword-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #007bff;
	text-decoration: none;
	font-size: 13px;
	padding: 6px 12px;
	border: 1px solid #007bff;
	border-radius: 4px;
	transition: all 0.2s ease;
	width: calc(100% - 24px);
		line-height: 1.3;
}

.keyword-link:hover {
	background: #007bff;
	color: white;
	text-decoration: none;
}

.external-indicator {
	font-size: 10px;
	background: #28a745;
	color: white;
	padding: 2px 4px;
	border-radius: 8px;
	margin-left: 6px;
	white-space: nowrap;
}

.dynamic-badge {
	font-size: 10px;
	background: #6f42c1;
	color: white;
	padding: 2px 6px;
	border-radius: 8px;
	margin-left: 6px;
}

.points-list {
	list-style: none;
	padding: 0;
}

.point-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 15px;
}

.point-number {
	background: #007bff;
	color: white;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	flex-shrink: 0;
}

.point-content {
	flex: 1;
}

.point-reference {
	margin-top: 8px;
}

.reference-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #17a2b8;
	text-decoration: none;
	font-size: 12px;
	padding: 4px 8px;
	background: #f8f9fa;
	border-radius: 4px;
	border: 1px solid #dee2e6;
}

.reference-link:hover {
	background: #17a2b8;
	color: white;
	text-decoration: none;
}

.source-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 6px;
/*	border-left: 4px solid #007bff; */
}

.source-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #007bff;
	text-decoration: none;
	font-weight: 600;
	padding: 4px 16px;
	border: 2px solid #007bff;
	border-radius: 6px;
}

.source-link:hover {
	background: #007bff;
	color: white;
	text-decoration: none;
}
@media (max-width: 1206px) {
	.source-card a {
	width: 109px;
	}
}
@media (max-width: 1116px) {
	.keyword-header h5 {
		margin: 0;
	}
}

@media (max-width: 1060px) {
	.source-card a {
	width: 149px;
	}
}

@media (max-width: 768px) {
	.keywords-grid {
		grid-template-columns: 1fr;
	}
	.source-card {
		flex-direction: column;
		gap: 15px;
	}
	.source-card a {
	width: auto;
	}
}
.ai-badge {
	background: #6f42c1;
	color: white;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 8px;
	margin-left: 8px;
	font-weight: 500;
}

.manual-badge {
	background: #28a745;
	color: white;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 8px;
	margin-left: 8px;
	font-weight: 500;
}

.search-badge {
	background: #6c757d;
	color: white;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 8px;
	margin-left: 8px;
	font-weight: 500;
}

.unified-badge {
	background: #17a2b8;
	color: white;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 8px;
	margin-left: 8px;
	font-weight: 500;
}

.config-info {
	text-align: center;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e9ecef;
}

.config-info small {
	color: #6c757d;
	font-size: 11px;
}

.config-info i {
	color: #17a2b8;
}


/* 既読機能のスタイル */
.read-checkbox-container {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 10;
}

.read-checkbox {
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-radius: 50%;
	background: #fff;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	pointer-events: none; /* クリックを無効化 */
}

.read-checkbox:hover {
	border-color: #007bff;
	/* transform: scale(1.1); ホバー効果を削除 */
}

.read-checkbox.checked {
	background: linear-gradient(135deg, #007bff, #0056b3);
	border-color: #007bff;
	color: white;
}

.read-checkbox.checked::after {
	content: '✓';
	font-size: 12px;
	font-weight: bold;
}

/* 既読状態のカードスタイル */
.card.read {
	opacity: 0.7;
	border-color: #e3f2fd;
	background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
}

.card.read h2 {
	color: #666;
}
main.seo_article .card h2 {
	text-indent: 1em;
}

.card.read .excerpt {
	color: #888;
}

/* 既読統計表示 */
.read-stats {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 10px 15px;
	margin-bottom: 20px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.read-stats-title {
	font-weight: bold;
	color: #333;
	margin: 0;
}

.read-stats-count {
	color: #007bff;
	font-size: 18px;
	font-weight: bold;
	margin: 0;
}

.clear-all-btn {
	background: #dc3545;
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	white-space: nowrap;
}

.clear-all-btn:hover {
	background: #c82333;
}

/* スマホ対応 */
@media (max-width: 768px) {
	.read-stats {
		padding: 8px 12px;
		margin-bottom: 15px;
		gap: 8px;
	}
	
	.read-stats-title {
		font-size: 14px;
	}
	
	.read-stats-count {
		font-size: 16px;
	}
	
	.clear-all-btn {
		padding: 4px 8px;
		font-size: 11px;
	}
}


@media screen and (max-width: 682px) {
	.card-container {
		padding: 1em 0;
		margin-bottom: 0;
	}
	.card {
		padding: 1.2rem 0;
	}
	.pagination {
		margin-bottom: 1em;
		height: 24px;
	}
	.learning-badges {
		display: block;
	}
	.badge {
		margin: 0 0.2em;
	}
	.learning-assistant {
		margin-top: 0;
	}
	.learning-header {
		margin-bottom: 0.5em;
	}
	.learning-assistant h3 {
		margin-bottom: 0.5em;
	}
	.learning-assistant h4 {
		margin: 0 auto;
	}
	.learning-badges {
		display: block;
		margin-bottom: 1em;
	}
	.badge {
		display: inline-block;
		margin: 0 0.2em;
	}
	.summary-card, .keywords-section, .learning-points, .source-reference {
		padding: 0.5em 1em;
		margin-bottom: 0.5em;
	}
	.summary-card p {
		margin: 0.5em auto;
	}
	.learning-assistant {
		padding: 1em;
	}
	.point-item {
		display: block;
		vertical-align: top;
		position: relative;
	}
	.point-number {
		display: inline-block;
		text-align: center;
		padding-top: 0.2em;
		position: absolute;
	}
	.point-content {
		display: inline-block;
		width: calc(100% - 24px - 4px);
		margin-left: 34px;
	}
	.point-text {
	}
	.source-card {
		border-left: none;
		padding-top: 0;
	}

}
