/**
 * マッハ塗装 ブランドテーマ：塗装サービス（/service/ と配下）・塗装ガイド（/guide/ 配下）の見た目.
 *
 * 読んで判断するための長めのページ。結論 → 定義 → 判断基準 → 比較 → 注意点 → 施工事例 → FAQ → 関連ページ の順に読める部品を用意する。
 * - 結論（.mt-answer）・定義（.mt-definition）：青＝情報の整理。黄は注意（.mt-note）の細い線だけに使う。
 * - 比較表（.mt-compare）：スマホでは横スクロールにせず、1 行を縦のカードに組み替える（td の data-label を項目名にする）。
 * - このファイルは /service/・/guide/ 系のページでだけ読み込む（functions.php）。色・余白の変数は site-shell.css。
 */

/* ------------------------------------------------------------------
 * 本文（固定ページの本文）：見出し・段落・リンク
 * ------------------------------------------------------------------ */
.mt-longform .mt-page__inner,
.mt-service-hub .mt-page__inner {
	max-width: calc(960px + var(--mt-gutter) * 2);
}

.mt-longform .mt-page__content {
	padding: 24px 16px 28px;
	font-size: 1.0625rem;
	line-height: 1.95;
	/* 長い英数字（製品名・規格名・URL）で横にはみ出さない */
	overflow-wrap: anywhere;
}

.mt-longform .mt-page__content h2 {
	font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
	line-height: 1.4;
	word-break: auto-phrase;
}

.mt-longform .mt-page__content h3 {
	margin: 28px 0 8px;
	color: var(--mt-color-text);
	font-size: 1.1875rem;
	font-weight: 900;
	line-height: 1.5;
	word-break: auto-phrase;
}

.mt-longform .mt-page__content h4 {
	margin: 20px 0 6px;
	font-size: 1.0625rem;
	font-weight: 900;
}

.mt-longform .mt-page__content a,
.mt-service-hub__intro a {
	color: var(--mt-color-blue);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mt-longform .mt-page__content a:hover,
.mt-service-hub__intro a:hover {
	color: var(--mt-color-red);
}

.mt-longform .mt-page__content li + li {
	margin-top: 6px;
}

.mt-longform .mt-page__content strong {
	font-weight: 700;
}

/* 結論：ページの冒頭で質問に答える段落（薄いグレーの面＋小さなラベル。色付きの縦線は使わない） */
.mt-page__content .mt-answer {
	margin: 0 0 1.25em;
	padding: 16px 18px 18px;
	background: var(--mt-color-bg-soft);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.9;
}

.mt-page__content .mt-answer::before {
	content: "結論";
	display: block;
	margin-bottom: 4px;
	color: var(--mt-color-muted);
	font-size: 0.875rem;
	font-weight: 900;
	letter-spacing: 0.08em;
}

/* 定義：「〇〇とは」の段落 */
.mt-page__content .mt-definition {
	margin: 0 0 1.25em;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--mt-color-border);
}

/* 注意：薄いグレーの面と「注意」のラベル（色付きの縦線は使わない） */
.mt-page__content .mt-note {
	margin: 0 0 1.25em;
	padding: 12px 16px;
	background: var(--mt-color-bg-soft);
}

.mt-page__content .mt-note::before {
	content: "注意";
	display: inline-block;
	margin-right: 0.5em;
	font-weight: 900;
}

/* 質問と回答（回答ブロック） */
.mt-page__content .mt-qa {
	margin: 0 0 1.25em;
	padding: 0;
}

.mt-page__content .mt-qa dt {
	margin: 0;
	padding: 10px 14px;
	background: var(--mt-color-bg-soft);
	color: var(--mt-color-text);
	font-weight: 900;
	line-height: 1.6;
}

.mt-page__content .mt-qa dd {
	margin: 0 0 12px;
	padding: 12px 14px 14px;
	background: #fff;
	border: 1px solid var(--mt-color-border);
	border-top: 0;
}

.mt-page__content .mt-qa dd p {
	margin: 0 0 0.75em;
}

.mt-page__content .mt-qa dd p:last-child {
	margin-bottom: 0;
}

/* 用語・項目の説明（dt＝項目名、dd＝説明） */
.mt-page__content .mt-terms {
	margin: 0 0 1.25em;
}

.mt-page__content .mt-terms div {
	padding: 12px 0;
	border-top: 1px solid var(--mt-color-border);
}

.mt-page__content .mt-terms div:last-child {
	border-bottom: 1px solid var(--mt-color-border);
}

.mt-page__content .mt-terms dt {
	margin: 0 0 4px;
	color: var(--mt-color-blue);
	font-weight: 900;
}

.mt-page__content .mt-terms dd {
	margin: 0;
}

/* 確認リスト（□ の目印。内容は文字で伝える） */
.mt-page__content .mt-checklist {
	margin: 0 0 1.25em;
	padding: 0;
	list-style: none;
}

.mt-page__content .mt-checklist li {
	position: relative;
	margin: 0;
	padding: 8px 0 8px 36px;
	border-top: 1px solid var(--mt-color-border);
}

.mt-page__content .mt-checklist li:last-child {
	border-bottom: 1px solid var(--mt-color-border);
}

.mt-page__content .mt-checklist li::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 2px;
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	border: 2px solid var(--mt-color-text);
	background: #fff;
}

/* 工程などの手順（番号は小さく青。工程名は文字で示す） */
.mt-page__content .mt-steps {
	margin: 0 0 1.25em;
	padding: 0;
	list-style: none;
	counter-reset: mt-step;
}

.mt-page__content .mt-steps li {
	position: relative;
	margin: 0 0 6px;
	padding: 8px 12px 8px 44px;
	background: var(--mt-color-bg-soft);
	counter-increment: mt-step;
}

.mt-page__content .mt-steps li::before {
	content: counter(mt-step);
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: var(--mt-color-blue);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 900;
	line-height: 1;
}

/* 手順の順番そのものを見せたいとき（.mt-steps--flow）：赤い番号を縦の線でつなぐ（/flow/ の工程と同じ見せ方）（2026-10-17） */
.mt-page__content .mt-steps--flow li {
	margin: 0;
	padding: 4px 0 16px 40px;
	background: none;
}

.mt-page__content .mt-steps--flow li:last-child {
	padding-bottom: 4px;
}

.mt-page__content .mt-steps--flow li::before {
	top: 5px;
	left: 0;
	background: var(--mt-color-red);
}

.mt-page__content .mt-steps--flow li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 31px;
	bottom: 2px;
	left: 11px;
	border-left: 2px solid #c4c4c4;
}

/* 言われたこと → 確認すること など、左右で対になる用語リスト（.mt-terms--pair）：768px 以上は 2 列 */
@media (min-width: 768px) {
	.mt-page__content .mt-terms--pair div {
		display: grid;
		grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
		gap: 0 24px;
	}

	.mt-page__content .mt-terms--pair dt {
		margin: 0;
	}
}

/* 状況 → 読むページ（一覧ページの入口）：短いテキストリンクの行。768px 以上は 2 列（.mt-route--cols） */
.mt-page__content .mt-route {
	margin: 0 0 1.25em;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--mt-color-border);
}

.mt-page__content .mt-route li {
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid var(--mt-color-border);
	line-height: 1.6;
}

.mt-page__content .mt-route li + li {
	margin-top: 0;
}

.mt-page__content .mt-route__when {
	display: block;
	color: var(--mt-color-muted);
	font-size: 0.875rem;
}

.mt-page__content .mt-route a {
	color: var(--mt-color-blue);
	font-weight: 900;
}

.mt-page__content .mt-route a::before {
	content: "→ ";
	color: var(--mt-color-red);
}

.mt-page__content .mt-route__title {
	margin: 0 0 6px;
	font-size: 0.9375rem;
	font-weight: 900;
}

@media (min-width: 768px) {
	.mt-page__content .mt-route--cols {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
	}
}

/* 出典・参考（本文より小さく） */
.mt-page__content .mt-sources {
	margin: 24px 0 0;
	padding: 12px 16px;
	background: var(--mt-color-bg-soft);
	font-size: 0.875rem;
	line-height: 1.7;
}

.mt-page__content .mt-sources p {
	margin: 0 0 4px;
	font-weight: 700;
}

.mt-page__content .mt-sources ul {
	margin: 0;
	padding-left: 1.25em;
}

.mt-page__content .mt-sources li + li {
	margin-top: 2px;
}

/* 出典の URL は長い英数字のため、スマホで折り返せるようにする（横スクロールを作らない） */
.mt-page__content .mt-sources a {
	word-break: break-all;
	overflow-wrap: anywhere;
}

/* 写真（本文の図・付帯部の写真など） */
.mt-page__content figure {
	margin: 0 0 1.25em;
}

.mt-page__content figure img {
	display: block;
	width: 100%;
	height: auto;
}

.mt-page__content figcaption {
	margin-top: 6px;
	color: var(--mt-color-muted);
	font-size: 0.875rem;
	line-height: 1.6;
}

.mt-page__content .mt-photo-grid {
	display: grid;
	gap: 12px;
	margin: 0 0 1.25em;
	padding: 0;
	list-style: none;
}

.mt-page__content .mt-photo-grid li {
	margin: 0;
}

/* 本文の箇条書きの「li + li」の余白を写真並びには付けない（2 枚目以降が下にずれるため） */
.mt-page__content .mt-photo-grid li + li {
	margin-top: 0;
}

.mt-page__content .mt-photo-grid figure {
	margin: 0;
}

.mt-page__content .mt-photo-grid img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* [mt_banner]：PC 用・スマホ用で別デザインのバナー（価格ページなど）。本文の幅に収め、角丸・影は付けない（2026-10-04） */
.mt-page__content .mt-banner {
	margin: 4px 0 1.5em;
}

.mt-page__content .mt-banner img {
	display: block;
	width: 100%;
	height: auto;
}

/* [mt_photos] の 3 枚（下塗り・中塗り・上塗りなど）：スマホでも 3 列の小さな写真で並べる（縦に長くしない） */
.mt-page__content .mt-photo-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

/* [mt_photos] の 1 枚：横幅いっぱいにせず、本文の幅の中で読みやすい大きさに（2026-10-04） */
.mt-page__content .mt-photo-grid--1 {
	max-width: 520px;
}

.mt-page__content .mt-photo-grid figcaption {
	margin-top: 6px;
	color: var(--mt-color-muted);
	font-size: 0.875rem;
	line-height: 1.6;
}

/* ページ内の目次（長いガイドの冒頭。見出しへのリンクだけ）（2026-10-17） */
.mt-page__content .mt-toc {
	margin: 0 0 1.5em;
	padding: 14px 18px 12px;
	background: var(--mt-color-bg-soft);
}

.mt-page__content .mt-toc__title {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	font-weight: 900;
}

.mt-page__content .mt-toc ol {
	margin: 0;
	padding-left: 1.4em;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.mt-page__content .mt-toc li + li {
	margin-top: 2px;
}

.mt-page__content .mt-toc a {
	display: inline-block;
	padding: 3px 0;
}

/* 目次から移動したとき、見出しの上に少し余白を残す */
.mt-page__content h2[id] {
	scroll-margin-top: 16px;
}

/* ------------------------------------------------------------------
 * 要点を拾いやすくする部品（2026-10-17）
 * 赤は「読み落としてほしくない語」だけ（1 セクション 1〜2 か所）。カード・影・アイコンは使わず、線・番号・余白で示す。
 * ------------------------------------------------------------------ */

/* 赤の強調語：本文中の短い語句だけに使う（文全体を赤にしない） */
.mt-page__content .mt-em {
	color: var(--mt-color-red);
	font-weight: 900;
}

/* 導入｜写真：ガイドの冒頭。スマホは 導入 → 要点 → 写真 の順、768px 以上は写真を右に小さく置く */
.mt-page__content .mt-intro-split > .mt-photo-grid,
.mt-page__content .mt-intro-split > .mt-photos {
	margin: 4px 0 0;
}

.mt-page__content .mt-intro-split .mt-photo-grid--1 {
	max-width: none;
}

.mt-page__content .mt-intro-split .mt-photo-grid img {
	aspect-ratio: 16 / 9;
}

/* このページで分かること：番号付きの短い行（3 点程度） */
.mt-page__content .mt-points {
	margin: 0 0 1.25em;
	border-top: 2px solid var(--mt-color-text);
}

.mt-page__content .mt-points__title {
	margin: 0;
	padding: 10px 0 2px;
	font-size: 0.9375rem;
	font-weight: 900;
}

.mt-page__content .mt-points ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: mt-point;
}

.mt-page__content .mt-points li {
	position: relative;
	margin: 0;
	padding: 8px 0 8px 2.1em;
	border-bottom: 1px solid var(--mt-color-border);
	font-weight: 700;
	line-height: 1.6;
	counter-increment: mt-point;
}

.mt-page__content .mt-points li + li {
	margin-top: 0;
}

.mt-page__content .mt-points li::before {
	content: counter(mt-point);
	position: absolute;
	top: 8px;
	left: 0;
	color: var(--mt-color-red);
	font-weight: 900;
	font-size: 1.125rem;
	line-height: 1.45;
}

.mt-page__content .mt-points a {
	color: var(--mt-color-text);
	text-decoration: none;
}

.mt-page__content .mt-points a:hover {
	color: var(--mt-color-red);
	text-decoration: underline;
}

/* 3 つの視点（塗料の選び方など）：番号｜問い｜補足を横に 3 列、スマホは縦 */
.mt-page__content .mt-triad {
	margin: 0 0 1.5em;
}

.mt-page__content .mt-triad__title {
	margin: 0 0 8px;
	font-size: 1.125rem;
	font-weight: 900;
}

.mt-page__content .mt-triad ol {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: mt-triad;
	border-top: 1px solid var(--mt-color-border);
}

.mt-page__content .mt-triad li {
	margin: 0;
	padding: 12px 0 12px 2.4em;
	position: relative;
	border-bottom: 1px solid var(--mt-color-border);
	counter-increment: mt-triad;
}

.mt-page__content .mt-triad li + li {
	margin-top: 0;
}

.mt-page__content .mt-triad li::before {
	content: counter(mt-triad);
	position: absolute;
	top: 10px;
	left: 0;
	color: var(--mt-color-red);
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 1.2;
}

.mt-page__content .mt-triad__q {
	display: block;
	font-weight: 900;
	line-height: 1.5;
}

.mt-page__content .mt-triad__a {
	display: block;
	margin-top: 2px;
	color: var(--mt-color-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* グレードの並びと「耐候性・価格の目安」の向き（本文の順序だけを図にする。数値は表で示す） */
.mt-page__content .mt-scale {
	margin: 0 0 1.5em;
	padding: 16px 16px 14px;
	border: 1px solid var(--mt-color-border);
}

.mt-page__content .mt-scale__title {
	margin: 0 0 10px;
	font-size: 0.9375rem;
	font-weight: 900;
}

.mt-page__content .mt-scale__grades {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 0;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.mt-page__content .mt-scale__grades li {
	margin: 0;
	font-weight: 900;
	line-height: 1.5;
	white-space: nowrap;
}

.mt-page__content .mt-scale__grades li + li {
	margin-top: 0;
}

/* 矢印は前の項目の後ろに付ける（折り返したときに行頭が矢印にならない） */
.mt-page__content .mt-scale__grades li:not(:last-child)::after {
	content: "→";
	margin: 0 8px;
	color: var(--mt-color-muted);
	font-weight: 400;
}

.mt-page__content .mt-scale__axis {
	display: grid;
	grid-template-columns: 7.5em minmax(0, 1fr);
	align-items: center;
	gap: 4px 10px;
	margin: 0;
	font-size: 0.875rem;
}

.mt-page__content .mt-scale__axis dt {
	font-weight: 700;
}

.mt-page__content .mt-scale__axis dd {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--mt-color-muted);
}

.mt-page__content .mt-scale__bar {
	flex: 1;
	height: 6px;
	background: linear-gradient(90deg, #e6e6e6, var(--mt-color-red));
}

.mt-page__content .mt-scale__note {
	margin: 10px 0 0;
	color: var(--mt-color-muted);
	font-size: 0.8125rem;
	line-height: 1.6;
}

/* 結論の一文：赤い左線＋大きめの太字（強調語だけ赤） */
.mt-page__content .mt-keypoint {
	margin: 0 0 1.25em;
	padding: 4px 0 4px 16px;
	border-left: 4px solid var(--mt-color-red);
	font-size: 1.1875rem;
	font-weight: 900;
	line-height: 1.6;
}

/* 長いガイドの見出し間の呼吸（セクション間 約 80px）（2026-10-17） */
.mt-guide-page .mt-page__content * + h2 {
	margin-top: 48px;
	padding-top: 32px;
}

@media (min-width: 768px) {
	.mt-page__content .mt-intro-split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
		column-gap: 32px;
		align-items: start;
	}

	.mt-page__content .mt-intro-split > * {
		grid-column: 1;
	}

	.mt-page__content .mt-intro-split > .mt-photo-grid,
	.mt-page__content .mt-intro-split > .mt-photos {
		grid-column: 2;
		grid-row: 1 / span 6;
		margin-top: 6px;
	}

	.mt-page__content .mt-intro-split .mt-photo-grid img {
		aspect-ratio: 4 / 3;
	}

	.mt-page__content .mt-triad ol {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		border-bottom: 1px solid var(--mt-color-border);
	}

	.mt-page__content .mt-triad li {
		padding: 14px 16px 14px 2.6em;
		border-bottom: 0;
	}

	.mt-page__content .mt-triad li + li {
		border-left: 1px solid var(--mt-color-border);
	}

	.mt-page__content .mt-triad li + li::before {
		left: 16px;
	}

	.mt-page__content .mt-triad li + li {
		padding-left: calc(2.6em + 16px);
	}

	.mt-page__content .mt-scale__grades {
		flex-wrap: nowrap;
		justify-content: space-between;
	}

	.mt-page__content .mt-scale__grades li:not(:last-child)::after {
		margin: 0 0 0 10px;
	}
}

/* [mt_photos layout / note]：説明用の写真（2026-10-17）。wide＝本文幅の横長 1 枚、side＝PC で本文の右（スマホは本文の上） */
.mt-page__content .mt-photos {
	margin: 4px 0 1.5em;
}

.mt-page__content .mt-photos .mt-photo-grid {
	margin-bottom: 0;
}

.mt-page__content .mt-photos__note {
	margin: 6px 0 0;
	color: var(--mt-color-muted);
	font-size: 0.75rem;
	line-height: 1.6;
}

.mt-page__content .mt-photos--wide .mt-photo-grid--1 {
	max-width: none;
}

.mt-page__content .mt-photos--wide .mt-photo-grid img {
	aspect-ratio: 16 / 9;
	/* 人物の頭が切れないよう、上寄りで切り抜く */
	object-position: center 15%;
}

/* position="top"：頭部が写真の上の方にある人物写真は、上端を切らない */
.mt-page__content .mt-photos--top .mt-photo-grid img {
	object-position: center top;
}

.mt-page__content .mt-photos--side .mt-photo-grid--1 {
	max-width: none;
}

.mt-page__content .mt-photos--side .mt-photo-grid img {
	aspect-ratio: 3 / 2;
}

/* 5 枚（症状の一覧など）：スマホは 2 列で最後の 1 枚を横長に、768px 以上は 3 枚＋2 枚 */
.mt-page__content .mt-photo-grid--5 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.mt-page__content .mt-photo-grid--5 li:last-child {
	grid-column: 1 / -1;
}

.mt-page__content .mt-photo-grid--5 li:last-child img {
	aspect-ratio: 2 / 1;
}

/* サービス詳細の主写真（アイキャッチ画像。本文に同じ写真が無いときだけ出す）。縦長の写真は本文の右に小さく置く */
.mt-page__content .mt-service-page__photo {
	margin: 0 0 20px;
}

.mt-page__content .mt-service-page__photo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 260px;
	object-fit: cover;
	object-position: center 30%;
}

/* ------------------------------------------------------------------
 * 比較表：PC は表、スマホ（767px 以下）は 1 行ずつ縦に並べる
 * ------------------------------------------------------------------ */
.mt-page__content .mt-compare {
	width: 100%;
	margin: 0 0 1.25em;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.mt-page__content .mt-compare caption {
	padding: 0 0 8px;
	font-weight: 700;
	text-align: left;
}

.mt-page__content .mt-compare th,
.mt-page__content .mt-compare td {
	padding: 10px 12px;
	border: 1px solid var(--mt-color-border);
	vertical-align: top;
	text-align: left;
}

.mt-page__content .mt-compare thead th {
	background: var(--mt-color-bg-soft);
	color: var(--mt-color-text);
	font-weight: 900;
}

.mt-page__content .mt-compare tbody th {
	background: var(--mt-color-bg-soft);
	font-weight: 900;
}

/* 768〜1024px で行見出し（部位・分類など）や短い列（価格の傾向など）が 1〜2 文字ずつ折り返さないよう、最小幅を確保する */
@media (min-width: 768px) {
	.mt-page__content .mt-compare tbody th {
		min-width: 5.5em;
	}

	.mt-page__content .mt-compare td {
		min-width: 4.5em;
	}
}

@media (max-width: 767px) {
	.mt-page__content .mt-compare thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.mt-page__content .mt-compare,
	.mt-page__content .mt-compare tbody,
	.mt-page__content .mt-compare tr,
	.mt-page__content .mt-compare th,
	.mt-page__content .mt-compare td {
		display: block;
		box-sizing: border-box;
		width: 100%;
	}

	/* 表の見出し（caption）は幅いっぱいの 1 行にする（table-caption のままだと 1 文字ずつ縦に並ぶ） */
	.mt-page__content .mt-compare caption {
		display: block;
		width: 100%;
	}

	.mt-page__content .mt-compare tr {
		margin: 0 0 12px;
		border: 1px solid var(--mt-color-border);
	}

	.mt-page__content .mt-compare th,
	.mt-page__content .mt-compare td {
		border: 0;
	}

	.mt-page__content .mt-compare tbody th {
		background: var(--mt-color-bg-soft);
		color: var(--mt-color-text);
	}

	.mt-page__content .mt-compare td {
		border-top: 1px solid var(--mt-color-border);
	}

	.mt-page__content .mt-compare td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		color: var(--mt-color-blue);
		font-size: 0.8125rem;
		font-weight: 900;
	}
}

/* ------------------------------------------------------------------
 * 本文の後：関連する施工事例・ページ内のよくある質問
 * ------------------------------------------------------------------ */
.mt-related-works,
.mt-page-faq {
	margin-top: 28px;
}

.mt-related-works__title,
.mt-page-faq__title,
.mt-service-hub__title {
	margin: 0 0 12px;
	font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
	font-weight: 900;
	line-height: 1.4;
	word-break: auto-phrase;
}

.mt-related-works__lead {
	margin: 0 0 16px;
	line-height: 1.8;
}

.mt-related-works__more {
	margin: 20px 0 0;
	text-align: center;
}

.mt-page-faq .mt-faq-list {
	margin: 0;
}

/* 質問文が長い句で折り返せず、FAQ の枠が本文の幅より数 px はみ出すのを防ぐ（2026-10-17。375px で確認） */
.mt-page-faq .mt-faq-list > *,
.mt-page-faq .mt-faq__q-text {
	min-width: 0;
}

/* ------------------------------------------------------------------
 * 塗装サービス（/service/）：相談できる工事の入口
 * ------------------------------------------------------------------ */
.mt-service-hub__services {
	margin-top: 28px;
}

.mt-service-hub__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-service-hub__item {
	display: grid;
	background: #fff;
}

.mt-service-hub__item:not(.mt-service-hub__item--text) {
	grid-template-columns: 120px minmax(0, 1fr);
}

.mt-service-hub__media {
	position: relative;
	min-height: 100%;
	background: var(--mt-color-border);
}

.mt-service-hub__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mt-service-hub__body {
	padding: 14px 16px 16px;
}

.mt-service-hub__item-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1.45;
	word-break: auto-phrase;
}

.mt-service-hub__item-title a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--mt-color-blue);
	text-decoration: none;
}

.mt-service-hub__item-title a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.mt-service-hub__item-text {
	margin: 4px 0 0;
	font-size: 0.9375rem;
	line-height: 1.8;
}

/* 工事の進め方と費用の考え方：白い面（色の帯は使わない）。リンクは薄いグレーの帯 */
.mt-service-hub__approach {
	margin: 28px calc(var(--mt-gutter) * -1) 0;
	padding: 28px var(--mt-gutter) 32px;
	background: #fff;
}

.mt-service-hub__approach-lead {
	margin: 0 0 16px;
	line-height: 1.85;
}

.mt-service-hub__approach-links {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-service-hub__approach-links li {
	padding: 10px 14px 12px;
	background: var(--mt-color-bg-soft);
	color: var(--mt-color-text);
}

.mt-service-hub__approach-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--mt-color-blue);
	font-size: 1.0625rem;
	font-weight: 900;
}

.mt-service-hub__approach-links p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.mt-service-hub .mt-related-works {
	margin-top: 28px;
}

/* ------------------------------------------------------------------
 * 768px 以上
 * ------------------------------------------------------------------ */
@media (min-width: 768px) {
	.mt-longform .mt-page__content {
		padding: 32px 32px 36px;
	}

	.mt-page__content .mt-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mt-page__content .mt-photo-grid--1 {
		grid-template-columns: minmax(0, 1fr);
	}

	.mt-page__content .mt-photo-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mt-page__content .mt-service-page__photo {
		float: right;
		width: 220px;
		margin: 0 0 16px 24px;
	}

	.mt-page__content .mt-photos--wide .mt-photo-grid img {
		aspect-ratio: 2 / 1;
	}

	.mt-page__content .mt-photos--side {
		float: right;
		width: 42%;
		max-width: 350px;
		margin: 6px 0 16px 28px;
	}

	/* 右の写真の横では、枠や罫線のある部品は写真に重ねず、写真の左の幅に収める。次の見出し・表などは写真の下から始める */
	.mt-page__content .mt-photos--side ~ :is(ul, ol, dl) {
		display: flow-root;
	}

	.mt-page__content .mt-photos--side ~ :is(h2, table, figure, div, .mt-answer, .mt-definition, .mt-note) {
		clear: both;
	}

	.mt-page__content .mt-photo-grid--5 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 10px;
	}

	.mt-page__content .mt-photo-grid--5 li {
		grid-column: span 2;
	}

	.mt-page__content .mt-photo-grid--5 li:nth-child(n + 4) {
		grid-column: span 3;
	}

	.mt-page__content .mt-photo-grid--5 li:nth-child(n + 4) img {
		aspect-ratio: 2 / 1;
	}

	.mt-page__content .mt-service-page__photo img {
		max-height: none;
	}

	.mt-service-hub__item:not(.mt-service-hub__item--text) {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.mt-service-hub__body {
		padding: 18px 22px 20px;
	}

	.mt-service-hub__approach {
		margin-left: 0;
		margin-right: 0;
		padding: 32px 32px 36px;
	}

	.mt-service-hub__approach-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------
 * PC（960px 以上）
 * ------------------------------------------------------------------ */
@media (min-width: 960px) {
	.mt-page__content .mt-photo-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.mt-service-hub__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mt-service-hub__item:not(.mt-service-hub__item--text) {
		grid-template-columns: 160px minmax(0, 1fr);
	}
}

@media (min-width: 1100px) {
	.mt-longform .mt-work-list,
	.mt-service-hub .mt-work-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
