/* --- 1. 基本設定・レイアウト --- */
body {
	font-family: "Meiryo", sans-serif;
	background-color: #f0f7ff;
	margin: 0;
	padding: 0; /* bodyのパディングが原因でstickyが狂うのを防ぐため0に */
}
.container {
	max-width: 1200px;
	background: #ffffff;
	margin: 30px auto; /* 外部に余効を持たせる */
	display: flex;
	box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12);
	min-height: 85vh;
	border-radius: 16px;
	/* overflow: hidden;  ←★stickyを効かせるためにこの行を削除またはコメントアウト */
	border: 1px solid #bae6fd;
}
.content {
	padding: 40px;
	flex: 1;
	line-height: 1.8;
	color: #334155;
}
.text-center {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 40px;
}
.card {
	border: 1px solid #e0f2fe;
	padding: 20px;
	background: #f8fbff;
	margin-bottom: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(14, 165, 233, 0.04);
}
.description {
	flex: 1;
}

/* --- 2. Flexboxレイアウト（画像並列） --- */
.flex-container {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	align-items: flex-start;
}

/* --- 3. 画像の一括設定（ホバー拡大対応） --- */
.card img, .content img {
	max-width: 100%;
	height: auto;
	display: block;
	cursor: pointer;
	transition: transform 0.2s ease-in-out;
	border-radius: 4px;
}
.card img:hover, .content img:hover {
	transform: scale(1.6);
	z-index: 999;
	position: relative;
}

/* --- 4. コンポーネント・その他 --- */
table {
	border-collapse: collapse;
	width: 100%;
	margin: 15px 0;
	font-size: 0.9em;
}
table th, table td {
	border: 1px solid #cce3de;
	padding: 10px;
	text-align: center;
}
table th {
	background-color: #e0f2fe;
	color: #0369a1;
	font-weight: bold;
}
.card ul {
	margin: 5px 0;
	padding-left: 20px;
}
.card li {
	margin-bottom: 8px;
}
code {
	background: #e0f2fe;
	color: #0369a1;
	padding: 2px 5px;
	border-radius: 3px;
	font-family: monospace;
}
h1 {
	color: #0f172a;
	border-left: 5px solid #0ea5e9;
	padding-left: 15px;
	margin-bottom: 30px;
	font-size: 1.7em;
}

/* --- 5. サイドバー・見出し（青空テーマ・スクロール追従） --- */
/* --- 5. サイドバー・見出し（青空テーマ・コンパクト追従） --- */
.sidebar1 {
	width: 260px;
	background-color: #1e3a8a;
	color: #fff;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	
	/* 画面いっぱいではなく、中身の高さに合わせて短くする */
	height: fit-content; 
	
	/* スクロール追従（画面の上端から20pxほど余白を空けてピタッと止める） */
	position: sticky;
	top: 20px; 
	
	/* 角丸デザインを少しつけてカードっぽくする場合（お好みで） */
	border-radius: 12px;
	margin: 20px 0 20px 20px; /* コンテナの端から少し浮かせる場合 */
}
.sidebar-menu {
	flex: 1;
}
.sidebar-title {
	color: #38bdf8;
	font-weight: bold;
	padding: 22px 18px 6px 18px;
	font-size: 0.9em;
	letter-spacing: 0.05em;
}
ul.nav {
	list-style: none;
	padding: 0;
	margin: 0;
}
ul.nav li a {
	display: block;
	padding: 10px 18px;
	color: #e2e8f0;
	text-decoration: none;
	font-size: 0.95em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: background 0.2s, padding-left 0.2s;
}
ul.nav li a:hover {
	background: #0284c7;
	color: #fff;
	padding-left: 22px;
}

/* サイドバー下部のフッター情報 */
.sidebar-footer {
	padding: 20px 18px;
	font-size: 0.8em;
	color: #94a3b8;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.15);
	text-align: center;
}
.sidebar-footer a {
	color: #38bdf8;
	text-decoration: none;
}
.sidebar-footer a:hover {
	text-decoration: underline;
}

/* --- 6. レスポンシブ --- */
@media (max-width: 768px) {
	.container {
		flex-direction: column;
	}
	.flex-container {
		flex-direction: column;
	}
	.sidebar1 {
		position: static;
		height: auto;
		width: 100%;
		border-radius: 0;
	}
}