/* 基本設定：大人っぽくシンプルなデザイン */
body {
	font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
	background-color: #f7f9fc;
	color: #333;
	line-height:1.6;
	margin: 0;
	padding: 0;
}
.container {
	max-width: 700px;
	margin:0 auto;
	background: #fff;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
h1, h2, h3 {
	color: #2c3e50;
}

/* レベル・タグ表示 */
.tag {
	display: inline-block;
	background: #3498db;
	color: #fff;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: bold;
	margin-bottom: 10px;
}

/* 漢字基本情報エリア */
.kanji-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid #ecf0f1;
	padding-bottom: 20px;
	margin-bottom: 20px;
}
.kanji-info {
	flex: 1;
}
.kanji-info table {
	width: 100%;
	font-size: 0.95rem;
}
.kanji-info th {
	text-align: left;
	color: #7f8c8d;
	width: 30%;
	padding: 5px 0;
}

/* KanjiVG 筆順アニメーション用エリア */
.kanji-svg-container {
	width: 120px;
	height: 120px;
	border: 1px dashed #bdc3c7;
	border-radius: 8px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><line x1="50%" y1="0" x2="50%" y2="100%" stroke="%23ecf0f1" stroke-width="1"/><line x1="0" y1="50%" x2="100%" y2="50%" stroke="%23ecf0f1" stroke-width="1"/></svg>');
}
.kanji-svg-container svg {
	width: 100%;
	height: 100%;
}

.kanji-svg-container path {
	fill: none;
	stroke: #2c3e50;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* 画数の数字は非表示 */
.kanji-svg-container g[id^="kvg:StrokeNumbers"] {
	display: none;
}

@keyframes drawStroke {
	to {
		stroke-dashoffset: 0;
	}
}

/* アニメーション再生ボタン */
.replay-btn {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 5px;
	font-size: 0.8rem;
	color: #3498db;
	cursor: pointer;
	background: none;
	border: none;
}

/* 広告プレースホルダー */
.ad-space {
	background: #e0e6ed;
	color: #7f8c8d;
	text-align: center;
	padding: 30px 10px;
	margin: 20px 0;
	border-radius: 4px;
	font-size: 0.9rem;
	border: 1px solid #d1d8e0;
}

/* 熟語・意味リスト */
.word-list {
	margin-bottom: 30px;
}
.word-item {
	border-left: 4px solid #3498db;
	padding-left: 10px;
	margin-bottom: 15px;
}
.word-title {
	font-size: 1.1rem;
	font-weight: bold;
	margin: 0;
}
.word-yomi {
	font-size: 0.8rem;
	color: #7f8c8d;
	margin-left: 10px;
}
.word-desc {
	font-size: 0.9rem;
	margin: 5px 0 0 0;
	color: #555;
}

/* 回遊用パズル誘導ボタン */
.puzzle-action {
	text-align: center;
	margin: 40px 0 20px 0;
	padding: 20px;
	background: #ebf5fb;
	border-radius: 8px;
}
.btn-primary {
	display: inline-block;
	background: #e74c3c;
	color: #fff;
	text-decoration: none;
	padding: 15px 30px;
	border-radius: 30px;
	font-size: 1.1rem;
	font-weight: bold;
	box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
	transition: transform 0.2s;
}
.btn-primary:active {
	transform: translateY(2px);
}

/* ページ固有のナビゲーションスタイル */
.breadcrumb {
	font-size: 0.85rem;
	color: #7f8c8d;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f0;
}
.breadcrumb a {
	color: #3498db;
	text-decoration: none;
}
.breadcrumb a:hover {
	text-decoration: underline;
}

.page-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 40px;
	padding: 20px 0;
	border-top: 2px dashed #ecf0f1;
	font-weight: bold;
}
.page-navigation a {
	text-decoration: none;
	padding: 10px 15px;
	border-radius: 5px;
	transition: background-color 0.2s, color 0.2s;
}
.nav-prev, .nav-next {
	color: #3498db;
	background-color: #f0f8ff;
	width: 32%;
	text-align: center;
	box-sizing: border-box;
}
.nav-prev:hover, .nav-next:hover {
	background-color: #3498db;
	color: #fff;
}
.nav-list {
	color: #7f8c8d;
	background-color: #f8f9fa;
	width: 30%;
	text-align: center;
	box-sizing: border-box;
	border: 1px solid #ddd;
}
.nav-list:hover {
	background-color: #e9ecef;
}

/* スマホ表示時の調整 */
@media (max-width: 500px) {
	.page-navigation {
		flex-direction: column;
		gap: 15px;
	}
	.page-navigation a {
		width: 100%;
	}
}
