/* ==========================================
   自炊の森 JPG一括PDF化ツール紹介記事 CSS
   (common.css の変数を使用 / equipment.css と同じ雰囲気)
   ========================================== */
/* ===== 自炊ラボのテーマ色(オレンジ) =====
   common.css の --accent-orange 系を使い、サイト共通の --theme-* (青・裁断モードで緑)を
   このページ内だけ上書きする。ヘッダー・フッターは対象外 */
.lab-page {
	--theme-color: var(--accent-orange);
	--theme-hover: var(--accent-orange-dark);
	--theme-bg:    var(--accent-orange-light);
}

/* ページ見出しの下線もオレンジ */
.lab-page .page-header h1::after {
	background-color: var(--accent-orange);
}

/* 「自炊ラボ」ラベル(トップの .info-tag.orange と同じ配色) */
.report-lab-tag {
	margin: 0 0 6px;
}

.report-lab-tag span {
	display: inline-block;
	padding: 2px 12px;
	font-size: 0.8rem;
	font-weight: bold;
	letter-spacing: 0.05em;
	line-height: 1.6;
	color: var(--accent-orange-dark);
	background-color: var(--accent-orange-light);
	border: 1px solid var(--accent-orange);
	border-radius: 4px;
}

.report-content {
	padding: 20px;
	max-width: 960px;
	margin: 0 auto;
}

.report-card {
	overflow-wrap: anywhere;
	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(--accent-orange-dark);
}

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

/* 他のCSS(responsive.css など)の nav / ol / li / a への指定で崩れないよう、
   目次まわりは幅・表示形式をここで明示しておく */
.report-toc {
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
}

.report-toc ol {
	display: block;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	list-style: none;	/* 本文の見出し番号と食い違うので、目次は番号なし */
	padding-left: 0;
}

.report-toc li {
	display: list-item;
	float: none;
	flex: none;
	width: auto;
	min-width: 0;
}

.report-toc a {
	display: inline;
	white-space: normal;
}

/* ===== 本文 ===== */
.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 h4 {
	font-size: 1rem;
	margin: 1.4em 0 0.4em;
	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(--accent-orange-dark);
}

.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(--accent-orange-dark);
	border-color: var(--accent-orange-dark);
	color: #fff;
	font-weight: 600;
}

.report-toolbar button:focus-visible {
	outline: 3px solid var(--accent-orange-mid);
	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));
	}
}

/* ==========================================
   ここから: ツール紹介記事用の追加スタイル
   ========================================== */

/* ===== 手順(番号付きステップ) ===== */
.report-section .report-steps {
	list-style: none;
	counter-reset: step;
	padding-left: 0;
	margin: 18px 0;
}

.report-section .report-steps > li {
	counter-increment: step;
	position: relative;
	margin: 12px 0;
	padding: 14px 16px 14px 62px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.report-section .report-steps > li::before {
	content: counter(step);
	position: absolute;
	left: 16px;
	top: 14px;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	font-weight: bold;
	color: #fff;
	background: var(--accent-orange-dark);
	border-radius: 50%;
}

.report-step-title {
	display: block;
	margin-bottom: 4px;
	font-weight: bold;
	color: var(--text-main);
}

.report-steps p {
	margin: 0;
}

/* ===== スクリーンショット =====
   画像自体に角丸・影を付けて書き出してあるので、枠や背景は付けず中央に置くだけ */
.report-shot {
	margin: 20px 0;
	padding: 0;
	text-align: center;
}

.report-shot img {
	display: block;
	width: auto;
	max-width: min(100%, 560px);
	height: auto;
	margin: 0 auto;
}

.report-shot figcaption {
	margin-top: 2px;
	padding: 0 16px;
	font-size: 0.9rem;
	color: var(--text-sub);
}

/* 画像が未準備のときの仮表示(画像を入れたら $shots の ready を true に) */
.report-shot-placeholder {
	margin: 12px auto;
	max-width: 560px;
	padding: 36px 16px;
	text-align: center;
	font-size: 0.9rem;
	color: var(--text-sub);
	background: var(--bg-light);
	border: 2px dashed #ccc;
	border-radius: 6px;
}

/* ===== ダウンロードボタン ===== */
.report-download {
	text-align: center;
	margin: 22px 0;
}

.report-download-btn {
	display: inline-block;
	padding: 12px 32px;
	font-weight: bold;
	color: #fff !important;
	background: var(--accent-orange-dark);
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.report-download-btn:hover {
	opacity: 0.85;
}

/* 補足(軽く触れる項目)の枠 */
.report-aside {
	margin: 22px 0;
	padding: 14px 18px;
	background: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: 8px;
}

.report-aside h3 {
	margin-top: 0;
}

@media (max-width: 768px) {
	.report-section .report-steps > li {
		padding: 12px 12px 12px 54px;
	}
	.report-section .report-steps > li::before {
		left: 12px;
		top: 12px;
	}
}
