/* ==========================================
   自炊の森 スキャン解像度検証レポート CSS
   (common.css の変数を使用 / equipment.css と同じ雰囲気)
   ========================================== */
.report-content {
	padding: 20px;
	max-width: 960px;
	margin: 0 auto;
}

.report-card {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	line-height: 1.8;
	font-size: 1.0rem;
}

/* ===== 目次 ===== */
.report-toc {
	background: var(--theme-bg);
	border-radius: 8px;
	padding: 16px 24px;
	margin-bottom: 30px;
}

.report-toc-title {
	margin: 0 0 6px;
	font-weight: bold;
	color: var(--text-main);
}

.report-toc ol {
	margin: 0;
	padding-left: 1.4rem;
}

.report-toc li {
	margin: 3px 0;
}

.report-toc a {
	color: var(--theme-color);
}

.report-toc a:hover {
	text-decoration: underline;
}

/* ===== 本文 ===== */
.report-section {
	margin-bottom: 40px;
	scroll-margin-top: 130px;	/* sticky ヘッダーに隠れないように */
}

.report-section:last-child {
	margin-bottom: 0;
}

.report-section h2 {
	font-size: 1.25rem;
	border-left: 4px solid var(--theme-color);
	padding-left: 15px;
	margin: 0 0 20px;
	color: var(--text-main);
}

.report-section h3 {
	font-size: 1.1rem;
	margin: 1.8em 0 0.5em;
	color: var(--text-main);
}

.report-section p {
	margin: 0.75em 0;
}

.report-section ul,
.report-section ol {
	padding-left: 1.5rem;
}

.report-section li {
	margin: 0.4em 0;
}

.report-lead {
	font-size: 1.05rem;
}

.report-small {
	color: var(--text-sub);
	font-size: 0.9rem;
}

/* 強調ボックス */
.report-callout {
	margin: 22px 0;
	padding: 16px 20px;
	background: var(--theme-bg);
	border-left: 4px solid var(--theme-color);
	border-radius: 0 8px 8px 0;
}

/* サマリーカード */
.report-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 22px 0 0;
}

.report-summary-card {
	padding: 16px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.report-summary-card strong {
	display: block;
	margin-bottom: 5px;
	color: var(--theme-color);
}

.report-summary-card p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--text-sub);
}

/* ===== 比較画像 ===== */
.report-figure {
	margin: 24px 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.report-figure-head {
	padding: 16px 20px 12px;
}

.report-figure-head h3 {
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.report-figure-head p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-sub);
}

.report-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--bg-light);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	font-size: 0.92rem;
}

.report-toolbar button {
	padding: 6px 14px;
	font: inherit;
	font-size: 0.9rem;
	color: var(--text-main);
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.report-toolbar button:hover {
	border-color: var(--theme-color);
	color: var(--theme-color);
}

.report-toolbar button[aria-pressed="true"] {
	background: var(--theme-color);
	border-color: var(--theme-color);
	color: #fff;
}

.report-toolbar button:focus-visible {
	outline: 3px solid var(--accent-blue-light);
	outline-offset: 2px;
}

.report-hint {
	margin-left: auto;
	font-size: 0.85rem;
	color: var(--text-sub);
}

.report-compare-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: 18px;
	align-items: start;
}

/* 片方だけ表示するときは1列にする */
.report-compare-grid.is-single {
	grid-template-columns: 1fr;
}

.report-compare-panel {
	min-width: 0;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.report-compare-panel[hidden] {
	display: none;
}

.report-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	border-bottom: 1px solid var(--border-color);
}

.report-panel-head h4 {
	margin: 0;
	font-size: 1.05rem;
}

.report-tag {
	padding: 2px 10px;
	font-size: 0.78rem;
	color: var(--text-sub);
	background: var(--bg-light);
	border-radius: 999px;
	white-space: nowrap;
}

.report-image-wrap {
	padding: 12px;
	overflow: auto;
}

.report-image-wrap img {
	display: block;
	width: 100%;
	height: auto;
}

.report-image-caption {
	margin: 0 !important;
	padding: 0 15px 12px;
	font-size: 0.9rem;
	color: var(--text-sub);
}

.report-note {
	margin: 0 18px 18px !important;
	padding: 12px 16px;
	font-size: 0.9rem;
	background: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: 8px;
}

/* ===== 表 (equipment.css の比較表に合わせる) ===== */
.report-table-wrap {
	overflow-x: auto;
	margin: 16px 0;
}

.report-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.report-table th,
.report-table td {
	padding: 10px 12px;
	border: 1px solid #ddd;
	text-align: left;
	vertical-align: top;
}

.report-table thead th {
	background: var(--bg-light);
	color: var(--text-sub);
	font-weight: 600;
	white-space: nowrap;
}

/* 先頭列(解像度・資料の種類)は折り返さない */
.report-table td:first-child {
	white-space: nowrap;
	font-weight: 600;
	color: var(--text-sub);
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
	.report-content {
		padding: 10px;
	}
	.report-card {
		padding: 14px;
	}
	.report-section h2 {
		font-size: 1.1rem;
	}
	.report-section {
		scroll-margin-top: 170px;
	}
	.report-summary-grid {
		grid-template-columns: 1fr;
	}
	.report-compare-grid {
		grid-template-columns: 1fr;
		padding: 12px;
	}
	.report-hint {
		width: 100%;
		margin-left: 0;
	}
	.report-table th,
	.report-table td {
		padding: 8px;
		font-size: 0.85rem;
	}
}

/* ===== 印刷 ===== */
@media print {
	.report-toolbar {
		display: none;
	}
	.report-compare-panel[hidden] {
		display: block !important;
	}
	.report-compare-grid,
	.report-compare-grid.is-single {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
