/* モバイルファースト - スマホ縦画面最適化デザイン */

* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

html {
	-webkit-text-size-adjust: 100%;
	font-size: 16px;
}

body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
	background: #f8f9fa;
	color: #1e3a5f;
	line-height: 1.8;
	font-size: 1rem;
	overflow-x: hidden;
	font-weight: 500;
}

/* ヘッダー */
header {
	background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
	color: white;
	padding: 1.5rem 1rem;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	position: sticky;
	top: 0;
	z-index: 100;
}

.page-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.4;
	letter-spacing: 0.5px;
}

.page-description {
	display: none;
}

/* メインコンテンツ */
article {
	background: transparent;
}

.page-body {
	max-width: 100%;
	padding: 1rem;
	background: white;
	margin: 0;
}

/* 見出し */
h1 {
	font-size: 1.4rem;
	font-weight: 800;
	color: white;
	background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
	padding: 0.8rem 1rem;
	margin: 1.5rem -1rem 1rem -1rem;
	border-left: 5px solid #22b14c;
	letter-spacing: 0.5px;
}

h2 {
	font-size: 1.2rem;
	font-weight: 800;
	color: #1e3a5f;
	border-left: 4px solid #22b14c;
	padding-left: 0.8rem;
	margin: 1.5rem 0 0.8rem 0;
}

h3 {
	font-size: 1.1rem;
	font-weight: 800;
	color: #2c4a6e;
	margin: 1rem 0 0.5rem 0;
}

/* 段落 */
p {
	margin: 0.8rem 0;
	color: #1e3a5f;
	line-height: 1.8;
	font-size: 1rem;
	font-weight: 500;
}

/* リンク */
a {
	color: #0066cc;
	text-decoration: none;
	border-bottom: 1px solid #0066cc;
	transition: all 0.2s;
	word-break: break-all;
}

a:hover, a:active {
	color: #22b14c;
	border-bottom-color: #22b14c;
	background-color: rgba(34, 177, 76, 0.05);
}

/* 注意書きボックス */
.intro-note {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border-left: 4px solid #f59e0b;
	padding: 1rem;
	border-radius: 8px;
	margin: 1rem 0;
	font-size: 0.95rem;
	line-height: 1.7;
	font-weight: 500;
}

.intro-note ul {
	margin: 0.5rem 0;
	padding-left: 0;
}

.intro-note li {
	margin: 0.5rem 0;
	font-weight: 500;
}

.intro-note strong {
	font-weight: 800;
	color: #d97706;
	font-size: 1rem;
}

/* 箇条書きリスト */
ul {
	padding-left: 0;
	margin: 0.8rem 0;
}

.bulleted-list {
	list-style: none;
	padding-left: 0;
}

.bulleted-list > li {
	position: relative;
	padding-left: 1.8rem;
	margin: 0.6rem 0;
	line-height: 1.7;
	color: #1e3a5f;
	font-size: 0.95rem;
	font-weight: 500;
}

.bulleted-list > li::before {
	content: '✓';
	position: absolute;
	left: 0.2rem;
	top: 0;
	color: #22b14c;
	font-weight: bold;
	font-size: 1.2rem;
}

/* 番号付きリスト */
.numbered-list {
	list-style: none;
	padding-left: 0;
	margin: 1rem 0;
}

.numbered-list > li {
	position: relative;
	background: #f8f9fa;
	padding: 1rem;
	margin: 0.8rem 0;
	border-radius: 8px;
	border-left: 4px solid #22b14c;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #1e3a5f;
	font-weight: 500;
}

/* デフォルトの番号表示（通常のリスト用） */
.numbered-list:not([class*="section-"]) {
	counter-reset: item;
}

.numbered-list:not([class*="section-"]) > li {
	counter-increment: item;
}

.numbered-list:not([class*="section-"]) > li::before {
	content: counter(item) ". ";
	font-weight: 700;
	color: #1e3a5f;
	font-size: 1.1rem;
}

/* section-1 の第二階層を 1-1, 1-2, 1-3... 形式に */
.section-1[start="1"] > li::before {
	content: "1-1. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

.section-1[start="2"] > li::before {
	content: "1-2. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

.section-1[start="3"] > li::before {
	content: "1-3. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

.section-1[start="4"] > li::before {
	content: "1-4. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

.section-1[start="5"] > li::before {
	content: "1-5. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

.section-1[start="6"] > li::before {
	content: "1-6. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

.section-1[start="7"] > li::before {
	content: "1-7. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

/* section-2 の第二階層を 2-1 形式に */
.section-2[start="1"] > li::before {
	content: "2-1. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

/* section-3 の第二階層を 3-1, 3-2, 3-3... 形式に */
.section-3[start="1"] > li::before {
	content: "3-1. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

.section-3[start="2"] > li::before {
	content: "3-2. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

.section-3[start="3"] > li::before {
	content: "3-3. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

.section-3[start="4"] > li::before {
	content: "3-4. ";
	font-weight: 800;
	color: #1e3a5f;
	font-size: 1.1rem;
}

/* ネストしたリスト - 第三階層を箇条書きに */
.numbered-list ol {
	list-style: none;
	padding-left: 0;
	margin: 0.8rem 0;
}

.numbered-list ol > li {
	background: white;
	padding: 0.8rem 0 0.8rem 1.5rem;
	margin: 0.5rem 0;
	border-radius: 6px;
	border-left: 3px solid #6c757d;
	font-size: 0.9rem;
	position: relative;
	font-weight: 500;
	color: #1e3a5f;
}

.numbered-list ol[type="a"] > li::before {
	content: '・';
	position: absolute;
	left: 0.3rem;
	color: #22b14c;
	font-weight: bold;
	font-size: 1rem;
}

/* 第三階層以降 - シンプルな箇条書き */
.numbered-list ol[type="i"] {
	list-style: none !important;
	padding-left: 0;
	margin: 0.5rem 0;
}

.numbered-list ol[type="i"] > li {
	background: transparent;
	border-left: none;
	padding: 0.4rem 0 0.4rem 1.5rem;
	margin: 0.3rem 0;
	font-size: 0.85rem;
	position: relative;
	font-weight: 500;
	color: #1e3a5f;
}

.numbered-list ol[type="i"] > li::before {
	content: '・' !important;
	position: absolute;
	left: 0.3rem;
	color: #22b14c;
	font-weight: bold;
	font-size: 1rem;
}

.numbered-list ul {
	list-style: none;
	padding-left: 0;
	margin: 0.5rem 0;
}

.numbered-list ul > li {
	background: transparent;
	border: none;
	padding: 0.3rem 0 0.3rem 1.5rem;
	margin: 0.3rem 0;
	font-size: 0.9rem;
	position: relative;
	color: #1e3a5f;
}

.numbered-list ul > li::before {
	content: '・';
	position: absolute;
	left: 0.3rem;
	color: #22b14c;
	font-weight: bold;
}

/* 画像 */
figure {
	margin: 1rem 0;
	padding: 0;
	background: transparent;
	text-align: center;
	border-radius: 0;
	box-shadow: none;
}

figure img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #dee2e6;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

figcaption {
	font-size: 0.85rem;
	color: #6c757d;
	margin-top: 0.5rem;
}

/* 完了メッセージ */
.completion-message {
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	padding: 1.5rem 1rem;
	border-radius: 8px;
	margin: 1.5rem 0;
	border-left: 4px solid #22b14c;
	text-align: center;
}

.completion-message h2 {
	color: #065f46;
	font-size: 1.3rem;
	margin: 0 0 0.8rem 0;
	border: none;
	padding: 0;
	font-weight: 700;
}

.completion-message p {
	color: #047857;
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0;
}

/* 強調 */
strong {
	font-weight: 800;
	color: #d97706;
}

/* スクロールバー（モバイルでは通常非表示） */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
	background: #adb5bd;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #6c757d;
}

/* タブレット以上 */
@media (min-width: 768px) {
	html {
		font-size: 18px;
	}
	
	.page-body {
		max-width: 768px;
		margin: 0 auto;
		padding: 2rem;
		border-radius: 0;
	}
	
	.page-title {
		font-size: 1.8rem;
	}
	
	h1 {
		font-size: 1.6rem;
		margin: 2rem 0 1.5rem 0;
	}
	
	.numbered-list > li {
		padding: 1.2rem;
	}
	
	figure {
		margin: 1.5rem 0;
	}
}

/* PC以上 */
@media (min-width: 1024px) {
	html {
		font-size: 20px;
	}
	
	.page-body {
		max-width: 900px;
		padding: 3rem;
		box-shadow: 0 0 20px rgba(0,0,0,0.1);
	}
	
	header {
		position: static;
		padding: 2rem;
	}
	
	.page-title {
		font-size: 2rem;
	}
	
	h1 {
		font-size: 1.8rem;
		margin: 2.5rem 0 2rem 0;
	}
}

/* タッチ操作の改善 */
@media (hover: none) {
	a:active {
		background-color: rgba(34, 177, 76, 0.1);
	}
	
	.numbered-list > li:active {
		background: #e9ecef;
	}
}

/* プリント時 */
@media print {
	body {
		background: white;
	}
	
	header {
		position: static;
		background: white;
		color: black;
		border-bottom: 2px solid #000;
	}
	
	.page-body {
		box-shadow: none;
	}
	
	a {
		color: #000;
		text-decoration: underline;
	}
	
	figure {
		page-break-inside: avoid;
	}
}
