@charset "UTF-8";
/* 2026/05/28 */
/* 日本の伝統色  和名カラー辞典 702色 */

	.container {
		font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
		background-color: #f7f6f3;
		color: #333;
		max-width: 1200px;
		margin: 20px 0;
		padding: 0 20px 10px 20px;
		border: #E6E6E6 3px solid;
		border-radius: 8px;
	}

	.subpage-header{
		text-align: center;
		margin-bottom: 40px;
	}

	.subpage-header h1 {
		font-size: 1.8rem;
		color: #2c3e50;
		margin-bottom: 10px;
	}

	.search-box {
		margin-bottom: 30px;
		text-align: center;
	}

	.search-box input {
		width: 100%;
		max-width: 500px;
		padding: 12px 20px;
		font-size: 16px;
		border: 2px solid #ccc;
		border-radius: 25px;
		outline: none;
		transition: border-color 0.3s;
	}

	.search-box input:focus {
		border-color: #8e44ad;
	}

	/* グリッドレイアウト（レスポンシブ） */
	.color-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 20px;
	}

	/* 色カードのスタイル */
	.color-card {
		background: #fff;
		border-radius: 8px;
		overflow: hidden;
		box-shadow: 0 4px 6px rgba(0,0,0,0.05);
		cursor: pointer;
		transition: transform 0.2s, box-shadow 0.2s;
		display: flex;
		flex-direction: column;
	}

	.color-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 8px 15px rgba(0,0,0,0.1);
	}

	.color-panel {
		height: 120px;
		width: 100%;
	}

	.color-info {
		padding: 15px;
		flex-grow: 1;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.color-name {
		font-size: 1.2rem;
		font-weight: bold;
		margin: 0 0 5px 0;
	}

	.color-kana {
		font-size: 0.85rem;
		color: #7f8c8d;
		margin: 0 0 10px 0;
	}

	.color-code {
		font-family: monospace;
		font-size: 0.9rem;
		background: #f0f0f0;
		padding: 4px 8px;
		border-radius: 4px;
		text-align: center;
	}

	.search-container {
		position: relative;
		max-width: 500px;
		margin: 0 auto;
	}
	.search-box input {
		width: 100%;
		padding: 12px 45px 12px 20px; /* 右側にクリアボタンのスペースを確保 */
		box-sizing: border-box;
	}
	.clear-btn {
		position: absolute;
		right: 15px;
		top: 50%;
		transform: translateY(-50%);
		background: #ccc;
		color: #fff;
		border: none;
		border-radius: 50%;
		width: 24px;
		height: 24px;
		cursor: pointer;
		font-size: 14px;
		line-height: 24px;
		padding: 0;
		display: none; /* 文字入力時のみJSで表示 */
		align-items: center;
		justify-content: center;
	}
	.clear-btn:hover { background: #999; }
	.search-hint {
		font-size: 0.8rem;
		color: #7f8c8d;
		margin-top: 8px;
		text-align: center;
	}
	/* ① 追加：あ行〜わ行ボタンのスタイル */
	.row-buttons {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
		margin: 15px auto 0;
		max-width: 600px;
	}
	.row-btn {
		padding: 6px 12px;
		font-size: 0.9rem;
		background-color: #f5f5f5;
		border: 1px solid #ccc;
		border-radius: 4px;
		cursor: pointer;
		transition: background-color 0.2s;
	}
	.row-btn:hover {
		background-color: #e0e0e0;
	}
	/* ① 追加：画面上に表示する「〇〇行」ラベル（見出し）のスタイル */
	.row-heading {
		grid-column: 1 / -1; /* グリッドを横いっぱいにぶち抜く */
		font-size: 1.4rem;
		color: #2c3e50;
		margin: 30px 0 15px 0;
		padding-bottom: 5px;
		border-bottom: 2px solid #e0dcd5;
	}
	.color-kana-block {
		font-size: 0.85rem;
		color: #7f8c8d;
		margin: 0 0 10px 0;
		line-height: 1.4;
	}
	.color-hiragana {
		display: block;
		color: #2c3e50;
		font-weight: 500;
	}
	.color-romaji {
		display: block;
		font-size: 0.75rem;
		color: #95a5a6;
	}

	/* フッター（注意事項用） */
	.subpage-footer {
		margin-top: 25px;
		padding-top: 10px;
		border-top: 1px solid #e0dcd5;
		color: #555;
		font-size: 0.9rem;
		line-height: 1.6;
	}
	.subpage-footer h2 { font-size: 1.1rem; color: #2c3e50; margin-bottom: 10px; }
	.subpage-footer ul { padding-left: 20px; margin: 10px 0; }
	.disclaimer-box {
		background: #f0ede7;
		padding: 15px;
		border-radius: 6px;
		margin-top: 15px;
		font-size: 0.85rem;
		color: #666;
	}
	.info_48{
		background: #f0ede7;
		padding: 5px 10px;
		border-radius: 6px;
		margin-top: 5px;
		font-size: 0.95rem;
		text-align: left;
		color: #666;
	}
		