/* Reset CSS */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, ul, li, a {
	margin: 0;
	padding: 0;
	border: 0;
}
a:focus {
	outline: none;
}

/* 基本スタイル */
body {
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	color: #333;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	margin: 0;
	padding: 16px;
	background-color: #f8f9fa;
}

/* メインタイトル */
h1 {
	margin: 0 0 24px 0;
	font-size: 32px;
	font-weight: bold;
	color: #fff;
	background-color: #1a73e8;
	padding: 16px 20px;
	border-radius: 4px;
}

/* カテゴリセクション */
.categories {
	max-width: 1200px;
	margin: 0 auto;
}

.category-section {
	margin-bottom: 24px;
}

/* カテゴリ見出し（カラフルバー） */
h2 {
	margin: 0;
	padding: 12px 16px;
	font-size: 18px;
	font-weight: bold;
	color: #fff;
	background-color: #1a73e8;
	border-radius: 4px 4px 0 0;
}

/* カテゴリごとの色分け（nth-child で順番に色を割り当て） */
.category-section:nth-child(1) h2 { background-color: #1a73e8; }
.category-section:nth-child(2) h2 { background-color: #34a853; }
.category-section:nth-child(3) h2 { background-color: #ea8d4b; }
.category-section:nth-child(4) h2 { background-color: #e37200; }
.category-section:nth-child(5) h2 { background-color: #c5221f; }
.category-section:nth-child(6) h2 { background-color: #8e44ad; }
.category-section:nth-child(7) h2 { background-color: #00897b; }
.category-section:nth-child(8) h2 { background-color: #d32f2f; }

/* リンクグリッド */
.links-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	padding: 12px;
	background-color: #fff;
	border-radius: 0 0 4px 4px;
	border: 1px solid #e0e0e0;
	border-top: none;
}

/* リンクカード */
.link-card {
	display: block;
	padding: 16px;
	background-color: #f9f9f9;
	color: #1a73e8;
	text-decoration: none;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	transition: all 0.2s;
	font-size: 14px;
	font-weight: 500;
}

.link-card:hover {
	background-color: #f0f7ff;
	border-color: #1a73e8;
	box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
	transform: translateY(-1px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.links-grid {
		grid-template-columns: 1fr;
	}

	h1 {
		font-size: 24px;
	}

	h2 {
		font-size: 16px;
	}
}
