/*
Theme Name: AutoAd ユーザーマニュアル
Template: lightning
Description: manual.autoad.jp 用の Lightning 子テーマ（ページ内の目次・ページ末尾の導線・サイドバーのページ一覧の見た目）。設計＝docs/design/システム設計/2026-10-01_マニュアルサイト_WordPress_設計.md §9
Version: 1.0.0
Text Domain: autoad-manual
*/

/* 色は Lightning の「キーカラー」（設定 color_key＝#16264a・アプリと同じ紺）で決まる。ここで決めるのはそれ以外だけ。 */
:root {
	--autoad-navy: #16264a;
	--autoad-navy-050: #eef1f7;
	--autoad-orange: #f5a623;
	--autoad-line: #d9dee8;
}

/* ── ページ内の目次（functions.php の autoad_manual_toc）── */
.autoad-toc {
	margin: 0 0 2.5em;
	padding: 1em 1.4em 1.1em;
	background: var(--autoad-navy-050);
	border-radius: 6px;
	font-size: 0.92em;
}
.autoad-toc__title {
	margin: 0 0 0.4em;
	font-weight: 700;
	color: var(--autoad-navy);
	letter-spacing: 0.04em;
}
.autoad-toc ol {
	margin: 0;
	padding-left: 1.4em;
}
.autoad-toc li {
	margin: 0.2em 0;
}
.autoad-toc ol ol {
	padding-left: 1.2em;
	list-style: none;
}
.autoad-toc a {
	color: inherit;
	text-decoration: none;
}
.autoad-toc a:hover,
.autoad-toc a:focus-visible {
	text-decoration: underline;
}

/* 目次から飛んだとき、見出しが固定ヘッダーの下に隠れないように */
.entry-body h2[id],
.entry-body h3[id] {
	scroll-margin-top: 90px;
}

/* ── ページ末尾の導線（functions.php の autoad_manual_cta）── */
/* ★2026-10-18 坪谷さん：白いカードの中に白いボタンは良くない＝紺の地に白い文字。主ボタン（お問い合わせ）はオレンジ。
   もう1つも、カードと同じ紺の地（枠線だけ）では見分けにくい＝白い地に紺の文字にする（同日の2回目の指示）。 */
.autoad-cta {
	margin: 2.5em 0 0;
	padding: 1.5em 1.6em;
	border-radius: 10px;
	background: var(--autoad-navy);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1em 1.5em;
}
.autoad-cta p {
	margin: 0;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.6;
	color: #fff;
}
.autoad-cta__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7em;
	margin-left: auto;
}
.autoad-cta__links a,
.autoad-cta__links a:visited {
	display: inline-flex;
	align-items: center;
	padding: 0.7em 1.3em;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.95em;
	line-height: 1.4;
	text-decoration: none;
	border: 1px solid #fff;
	background: #fff;
	color: var(--autoad-navy);
}
.autoad-cta__links a:hover {
	background: var(--autoad-navy-050);
	text-decoration: none;
}
.autoad-cta__links a.is-primary,
.autoad-cta__links a.is-primary:visited {
	background: var(--autoad-orange);
	border-color: var(--autoad-orange);
	color: #1b1405;
}
.autoad-cta__links a.is-primary:hover {
	opacity: 0.9;
}
.autoad-cta__links a:focus-visible {
	outline: 3px solid var(--autoad-orange);
	outline-offset: 2px;
}
@media (max-width: 600px) {
	.autoad-cta__links {
		margin-left: 0;
		width: 100%;
	}
	.autoad-cta__links a {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* ── 解決しないときの案内（functions.php の autoad_manual_faq_hint）── */
.autoad-faq-hint {
	margin: 2em 0 0;
	padding: 1.1em 1.3em;
	border: 1px dashed var(--autoad-line);
	border-radius: 8px;
	background: #fafbfd;
}
.autoad-faq-hint__title {
	margin: 0 0 0.3em;
	font-weight: 700;
	color: var(--autoad-navy);
}
.autoad-faq-hint__text {
	margin: 0;
	line-height: 1.7;
}

/* ── マニュアルのページ一覧（functions.php の [autoad_manual_pages]）── */
.autoad-pages {
	font-size: 0.92em;
}
.autoad-pages__title {
	margin: 0 0 0.5em;
	font-weight: 700;
	color: var(--autoad-navy);
	letter-spacing: 0.04em;
}
.autoad-pages ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.autoad-pages ul ul {
	padding-left: 1em;
}
.autoad-pages a {
	display: block;
	padding: 0.45em 0.6em;
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
}
.autoad-pages a:hover,
.autoad-pages a:focus-visible {
	background: var(--autoad-navy-050);
}
/* 公開前のページ（ログイン中の編集者にだけ並ぶ） */
.autoad-pages .autoad-pages__unpublished > a::after {
	content: "下書き";
	margin-left: 0.5em;
	padding: 0 0.4em;
	border-radius: 3px;
	font-size: 0.78em;
	font-weight: 400;
	background: #fbf0dc;
	color: #7a4a00;
}
/* 今いるページ */
.autoad-pages .current_page_item > a {
	background: var(--autoad-navy-050);
	color: var(--autoad-navy);
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--autoad-orange);
}

/* ── サイドバーのページ一覧＝分類ごとのまとまり（2026-10-05 坪谷さん：カテゴリごとに構造が分かるように）──
   分類（親ページ）を見出しにして線で区切り、その下のページは縦のガイド線でつなぐ。今いる分類だけを開く（js/pages-toggle.js）。
   ★トップページのカード（layout="cards"）には効かない＝ .autoad-pages--side だけ。 */
.autoad-pages--side .autoad-pages__title {
	margin-bottom: 0.6em;
	font-size: 0.82em;
	color: #5b6475;
}
/* ★Lightning が一覧のすべての項目に上の余白（約0.8em）を付けている＝区切り線の上に隙間が出て、分類の中のページも離れて見える。
   余白は a の上下の余白だけで持つ（2026-10-05 坪谷さん：無駄な余白をなくして統一感を）。詳細度を上げて Lightning より優先する */
.autoad-pages.autoad-pages--side li {
	margin: 0;
}
.autoad-pages--side > ul > li {
	position: relative;
	border-top: 1px solid var(--autoad-line);
}
.autoad-pages--side > ul > li:last-child {
	border-bottom: 1px solid var(--autoad-line);
}
/* 分類の見出し */
.autoad-pages--side > ul > li > a {
	padding: 0.7em 3.1em 0.7em 0.5em;
	border-radius: 0;
	line-height: 1.7;
	font-weight: 700;
	color: var(--autoad-navy);
}
/* 今いる分類（その分類のページか、その下のページを見ているとき）＝見出しの左にオレンジの印 */
.autoad-pages--side > ul > li.current_page_item > a,
.autoad-pages--side > ul > li.current_page_ancestor > a {
	box-shadow: inset 3px 0 0 var(--autoad-orange);
}
/* 開閉のボタン（見出しの右端・押せる範囲は 44px 四方以上）。
   高さ＝見出し1行の高さ（上下の余白 0.7em×2＋行の高さ 1.7em）＝矢印が見出しの文字の中心にそろう（ui-design-reviewer の指摘） */
.autoad-pages__toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 3.1em;
	height: 3.1em;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	color: var(--autoad-navy);
	/* ★ボタンはブラウザ既定の文字の大きさ（13.3px）になる＝ em で決めた高さが見出しより低くなり、矢印が上にずれる。見出しと同じ大きさにそろえる */
	font: inherit;
	cursor: pointer;
}
.autoad-pages__toggle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.45em;
	height: 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform 0.15s;
}
.autoad-pages__toggle[aria-expanded="false"]::before {
	transform: translate(-70%, -50%) rotate(-45deg);
}
.autoad-pages__toggle:hover,
.autoad-pages__toggle:focus-visible {
	background: var(--autoad-navy-050);
}
/* JavaScript が動かない環境ではボタンを出さない（全部開いたまま） */
.autoad-pages--side:not(.is-enhanced) .autoad-pages__toggle {
	display: none;
}
.autoad-pages--side.is-enhanced > ul > li:not(.is-open) > ul {
	display: none;
}
/* 長いページ名を単語の途中で折り返さない（対応ブラウザでは文節で折り返す） */
.autoad-pages--side a {
	line-break: strict;
	word-break: auto-phrase;
}
/* 分類の下のページ＝縦のガイド線でつなぐ */
.autoad-pages--side ul ul {
	margin: 0 0 0.6em 0.9em;
	padding-left: 0;
	border-left: 2px solid var(--autoad-line);
}
.autoad-pages--side ul ul a {
	position: relative;
	margin-left: -2px;
	/* 押せる高さ＝約 44px（スマートフォンのメニューでも使う） */
	padding: 0.65em 0.6em 0.65em 0.9em;
	border-left: 2px solid transparent;
	border-radius: 0 4px 4px 0;
	color: #333a47;
	font-size: 0.95em;
	line-height: 1.5;
}
.autoad-pages--side ul ul a:hover,
.autoad-pages--side ul ul a:focus-visible {
	border-left-color: var(--autoad-navy);
}
/* 今いるページ＝ガイド線の上にオレンジの印（全体の「今いるページ」の左の影は使わない） */
.autoad-pages--side ul ul .current_page_item > a {
	border-left-color: var(--autoad-orange);
	box-shadow: none;
}

/* ── フッター ──
   Lightning はフッターに content-visibility:auto（描画前の仮の高さ 370px）を付けている。
   中身は著作権の1行だけで省略しても得が無く、仮の高さのせいでページの下に大きな余白が出る（2026-10-02 実測）＝外す。 */
.site-footer {
	content-visibility: visible;
	contain-intrinsic-size: none;
}

/* ── トップページ（inc/front-page.php）── */
.autoad-front {
	display: grid;
	gap: 3em;
	padding-block: 1em 2em;
}
.autoad-front__hero {
	text-align: center;
	padding: 2.2em 1em 2.4em;
	background: var(--autoad-navy-050);
	border-radius: 8px;
}
.autoad-front__title {
	margin: 0 0 0.3em;
	font-size: 1.8em;
	color: var(--autoad-navy);
}
.autoad-front__lead {
	margin: 0 0 1.2em;
}
.autoad-front__search {
	display: flex;
	gap: 0.5em;
	max-width: 640px;
	margin: 0 auto;
}
.autoad-front__search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0.7em 0.9em;
	font-size: 1rem;
	border: 1px solid var(--autoad-line);
	border-radius: 4px;
	background: #fff;
}
.autoad-front__search button {
	padding: 0.7em 1.4em;
	border: 0;
	border-radius: 4px;
	background: var(--autoad-navy);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.autoad-front__entries,
.autoad-front__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1em;
}
.autoad-front__card {
	display: grid;
	gap: 0.3em;
	padding: 1.1em 1.2em;
	border: 1px solid var(--autoad-line);
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	background: #fff;
}
.autoad-front__card:hover,
.autoad-front__card:focus-visible {
	border-color: var(--autoad-navy);
}
.autoad-front__entries .autoad-front__card {
	border-top: 4px solid var(--autoad-navy);
}
.autoad-front__entries .autoad-front__card.is-help {
	border-top-color: var(--autoad-orange);
}
.autoad-front__card-title {
	font-weight: 700;
	color: var(--autoad-navy);
	font-size: 1.05em;
}
.autoad-front__card-desc {
	font-size: 0.88em;
	color: #555;
}
.autoad-front h2 {
	margin: 0 0 0.8em;
	font-size: 1.25em;
}
.autoad-front__tasks .autoad-pages__title {
	display: none;
}
/* 分類（親ページ）ごとにカードにする（2026-10-04 坪谷さん：一覧が続いて見づらい）。PHP は変えず、トップの中だけ見た目を変える */
.autoad-front__tasks .autoad-pages > ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1em;
	/* 同じ行のカードは、その行でいちばん高いカードの高さにそろえる（2026-10-04 坪谷さん） */
	align-items: stretch;
}
.autoad-front__tasks .autoad-pages > ul > li {
	padding: 0.9em 1em 0.7em;
	border: 1px solid var(--autoad-line);
	border-top: 3px solid var(--autoad-navy);
	border-radius: 8px;
	background: #fff;
}
/* カードの見出し＝分類のページ */
.autoad-front__tasks .autoad-pages > ul > li > a {
	padding: 0 0 0.55em;
	margin-bottom: 0.4em;
	border-bottom: 1px solid var(--autoad-line);
	border-radius: 0;
	font-size: 1.05em;
	font-weight: 700;
	color: var(--autoad-navy);
}
.autoad-front__tasks .autoad-pages > ul > li > a:hover,
.autoad-front__tasks .autoad-pages > ul > li > a:focus-visible {
	background: none;
	text-decoration: underline;
}
/* カードの中の作業 */
.autoad-front__tasks .autoad-pages ul ul {
	padding-left: 0;
}
.autoad-front__tasks .autoad-pages ul ul a {
	padding: 0.4em 0.5em 0.4em 1.1em;
	position: relative;
	line-height: 1.5;
}
.autoad-front__tasks .autoad-pages ul ul a::before {
	content: "›";
	position: absolute;
	left: 0.35em;
	color: var(--autoad-navy);
	opacity: 0.6;
}
.autoad-front__news {
	margin: 0;
	text-align: center;
}
.autoad-front__new {
	margin: 0;
	text-align: center;
	font-size: 0.9em;
}

/* ── 専門用語の説明（inc/glossary.php）── */
.autoad-term {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-decoration: underline dotted var(--autoad-navy);
	text-underline-offset: 0.2em;
	cursor: help;
}
.autoad-term:focus-visible {
	outline: 2px solid var(--autoad-orange);
	outline-offset: 2px;
}
.autoad-term__pop {
	max-width: min(420px, calc(100vw - 32px));
	padding: 1em 1.2em;
	border: 1px solid var(--autoad-line);
	border-radius: 8px;
	background: #fff;
	color: #222;
	box-shadow: 0 8px 28px rgba(22, 38, 74, 0.18);
}
.autoad-term__pop::backdrop {
	background: rgba(22, 38, 74, 0.12);
}
.autoad-term__name {
	margin: 0 0 0.3em;
	font-weight: 700;
	color: var(--autoad-navy);
}
.autoad-term__desc {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.7;
}
.autoad-term__more {
	margin: 0.6em 0 0;
	font-size: 0.88em;
}
/* popover に対応しない古いブラウザ：吹き出しを本文の後ろに並べず、ボタンも普通の文字に見せる */
@supports not selector(:popover-open) {
	.autoad-term__pop {
		display: none;
	}
	.autoad-term {
		text-decoration: none;
		cursor: text;
	}
}

/* ── 本文の表（表ブロック）── */
/* ★WordPress の表ブロックは既定で「列の幅を均等に固定」（has-fixed-layout）＝数字だけの列まで同じ幅になり、
     文章の列が細かく折り返す。中身の量に合わせて幅を配る（2026-10-03 坪谷さん）。 */
.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.wp-block-table table,
.wp-block-table table.has-fixed-layout {
	table-layout: auto;
	width: 100%;
	border-collapse: collapse;
}
.wp-block-table th,
.wp-block-table td {
	vertical-align: top;
	line-height: 1.6;
	padding: 0.6em 0.8em;
	border: 1px solid var(--autoad-line);
}
.wp-block-table th {
	background: var(--autoad-navy-050);
	font-weight: 700;
}
/* スマートフォン：3列以上の表は細くしすぎず、横にスクロールして読む */
@media (max-width: 600px) {
	.wp-block-table table:has(tr > :nth-child(3)) {
		min-width: 36em;
	}
}

/* ── 次にやること（inc/next-step.php）── */
.autoad-next {
	margin: 2.5em 0 0;
	padding: 1.3em 1.5em;
	background: var(--autoad-navy-050);
	border-left: 4px solid var(--autoad-navy);
	border-radius: 6px;
}
.autoad-next__label {
	margin: 0 0 0.4em;
	font-weight: 700;
	color: var(--autoad-navy);
}
.autoad-next__text p {
	margin: 0 0 0.4em;
}
.autoad-next__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end; /* ★2026-10-18 坪谷さん：左下は「戻る」感じがする＝右下へ寄せて「先へ進む」感じに */
	gap: 0.6em;
	margin-top: 0.9em;
}
.autoad-next a.autoad-next__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.75em 1.3em;
	border-radius: 6px;
	border: 1px solid var(--autoad-navy);
	background: #fff;
	color: var(--autoad-navy);
	font-weight: 700;
	text-decoration: none;
	line-height: 1.4;
}
.autoad-next a.autoad-next__btn::after {
	content: "→";
}
.autoad-next a.autoad-next__btn.is-primary {
	background: var(--autoad-navy);
	color: #fff;
}
.autoad-next a.autoad-next__btn:hover,
.autoad-next a.autoad-next__btn:visited {
	text-decoration: none;
}
.autoad-next a.autoad-next__btn:hover {
	opacity: 0.85;
}
.autoad-next a.autoad-next__btn:visited {
	color: var(--autoad-navy);
}
.autoad-next a.autoad-next__btn.is-primary:visited {
	color: #fff;
}
.autoad-next a.autoad-next__btn:focus-visible {
	outline: 3px solid var(--autoad-orange);
	outline-offset: 2px;
}
/* 子ページの無い分類（よくある質問など）は、見出しの下の線を出さない */
.autoad-front__tasks .autoad-pages > ul > li:not(.page_item_has_children) > a {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}
/* 「その他」のカード（inc/page-groups.php）＝子ページの無い分類（よくある質問・更新のお知らせ）を1枚にまとめたもの。
   見出しはページではないのでリンクにしない＝見た目だけ、ほかのカードの見出し（> li > a）にそろえる（2026-10-18 坪谷さん） */
.autoad-front__tasks .autoad-pages > ul > li > .autoad-pages__group-title {
	display: block;
	padding: 0 0 0.55em;
	margin-bottom: 0.4em;
	border-bottom: 1px solid var(--autoad-line);
	font-size: 1.05em;
	font-weight: 700;
	color: var(--autoad-navy);
}
/* 「下書き」の札を途中で折り返さない */
.autoad-pages .autoad-pages__unpublished > a::after {
	display: inline-block;
	white-space: nowrap;
}

/* ── 本文の強調（2026-10-18 坪谷さん：文章が並ぶだけで、読むべき所が分からない）──
   使い方（ブロックの追加 CSS クラス）＝tools/wp-pages.mjs の point()・note()・h4()・b()。
   ・ポイント（紺）＝覚えておいてほしい1〜2文。注意（オレンジ）＝画面に出る注意・やってはいけないこと。
   ・小見出し（見出し4）＝1つの節の中で、内容が変わる所に置く。 */
.entry-body h4.wp-block-heading {
	margin: 1.8em 0 0.6em;
	padding: 0.1em 0 0.1em 0.7em;
	border-left: 4px solid var(--autoad-orange);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--autoad-navy);
	background: none;
	border-bottom: none;
}
.entry-body p.autoad-point,
.entry-body p.autoad-note {
	margin: 1em 0;
	padding: 0.9em 1.1em;
	border-radius: 6px;
	line-height: 1.75;
}
.entry-body p.autoad-point {
	background: var(--autoad-navy-050);
	border-left: 4px solid var(--autoad-navy);
}
.entry-body p.autoad-note {
	background: #fff6e5;
	border-left: 4px solid var(--autoad-orange);
}
.entry-body p.autoad-point::before,
.entry-body p.autoad-note::before {
	display: block;
	margin-bottom: 0.3em;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.05em;
}
.entry-body p.autoad-point::before {
	content: "ポイント";
	color: var(--autoad-navy);
}
.entry-body p.autoad-note::before {
	content: "注意";
	color: #a35f00;
}
.entry-body strong {
	font-weight: 700;
	color: var(--autoad-navy);
}

/* ── よくある質問（開閉ブロック）──
   ★2026-10-18 坪谷さん：質問が詰まって見える・見出しの線との間に余白が無い。困っていることを探して開くので、
   1問ずつ枠で区切り、質問を大きく・太く、開いている質問が分かるようにする。 */
.entry-body .wp-block-details {
	margin: 0.8em 0;
	border: 1px solid var(--autoad-line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.entry-body h2 + .wp-block-details,
.entry-body h3 + .wp-block-details,
.entry-body p + .wp-block-details {
	margin-top: 1.4em;
}
.entry-body .wp-block-details > summary {
	display: flex;
	align-items: flex-start;
	gap: 0.7em;
	padding: 1em 1.1em;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.6;
	color: var(--autoad-navy);
	cursor: pointer;
	list-style: none;
}
.entry-body .wp-block-details > summary::-webkit-details-marker {
	display: none;
}
.entry-body .wp-block-details > summary::before {
	content: "Q";
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: var(--autoad-navy);
	color: #fff;
	font-size: 0.85em;
	line-height: 1;
	margin-top: 0.15em;
}
.entry-body .wp-block-details > summary::after {
	content: "＋";
	margin-left: auto;
	flex: none;
	color: var(--autoad-navy);
	font-weight: 700;
}
.entry-body .wp-block-details[open] > summary::after {
	content: "−";
}
.entry-body .wp-block-details > summary:hover {
	background: var(--autoad-navy-050);
}
.entry-body .wp-block-details > summary:focus-visible {
	outline: 3px solid var(--autoad-orange);
	outline-offset: -3px;
}
.entry-body .wp-block-details[open] > summary {
	background: var(--autoad-navy-050);
	border-bottom: 1px solid var(--autoad-line);
}
.entry-body .wp-block-details > :not(summary) {
	margin-left: 1.1em;
	margin-right: 1.1em;
}
.entry-body .wp-block-details > summary + * {
	margin-top: 0.9em;
}
.entry-body .wp-block-details > :last-child:not(summary) {
	margin-bottom: 1em;
}

/* ── 本文のリンク（2026-10-18 坪谷さん：普通の文字とリンクの見分けがつかない）──
   本文・表の中のリンクは、一般的なリンクと同じ青い文字＋下線にする。
   ★ボタン型のリンク（次にやること・ステップのカード）・ページの目次（.autoad-toc）・ページ末尾の案内（.autoad-cta）・用語の説明（button.autoad-term）は対象外＝それぞれの見た目のまま。 */
.entry-body a:not([class]):not(:is(.autoad-toc, .autoad-cta) a),
.entry-body a.autoad-steps__link {
	color: #1a5fd0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.entry-body a:not([class]):not(:is(.autoad-toc, .autoad-cta) a):visited {
	color: #1a5fd0;
}
.entry-body a:not([class]):not(:is(.autoad-toc, .autoad-cta) a):hover,
.entry-body a.autoad-steps__link:hover {
	color: #0f3f94;
	text-decoration-thickness: 2px;
}
.entry-body a:not([class]):not(:is(.autoad-toc, .autoad-cta) a):focus-visible,
.entry-body a.autoad-steps__link:focus-visible {
	outline: 3px solid var(--autoad-orange);
	outline-offset: 2px;
	border-radius: 2px;
}
/* 枠（ポイント・注意）や表の見出しの中でも同じ青にする */
.entry-body .autoad-point a:not([class]),
.entry-body .autoad-note a:not([class]) {
	color: #1a5fd0;
}

/* ── 順番に進めるステップ（スタートガイド・2026-10-18 坪谷さん：はじめての人に順番が分かる見た目に）──
   使い方＝tools/wp-pages.mjs の steps()。番号の丸・やること・「終わったら」の目安・行き先のリンクを1枚ずつのカードにし、
   縦の線でつないで上から順に読めるようにする。 */
.entry-body ol.autoad-steps {
	list-style: none;
	margin: 1em 0 1.6em;
	padding: 0;
}
.entry-body ol.autoad-steps > li {
	position: relative;
	margin: 0 0 0.9em;
	padding: 1em 1.1em 1em 4.2em;
	border: 1px solid var(--autoad-line);
	border-radius: 10px;
	background: #fff;
	line-height: 1.6;
}
/* カードどうしをつなぐ縦の線（最後のカードの下には出さない） */
.entry-body ol.autoad-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 2.05em;
	bottom: -0.95em;
	width: 2px;
	height: 0.95em;
	background: var(--autoad-line);
}
.entry-body .autoad-steps__num {
	position: absolute;
	left: 1em;
	top: 1em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2em;
	height: 2.2em;
	border-radius: 50%;
	background: var(--autoad-navy);
	color: #fff;
	font-weight: 700;
	font-size: 0.95em;
	line-height: 1;
}
.entry-body .autoad-steps__title {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--autoad-navy);
}
.entry-body .autoad-steps__done {
	display: block;
	margin-top: 0.35em;
	font-size: 0.92em;
	color: #4a5568;
}
.entry-body .autoad-steps__done::before {
	content: "終わったら：";
	font-weight: 700;
	color: #2f7d4f;
}
.entry-body .autoad-steps__extra {
	display: block;
	margin-top: 0.35em;
	font-size: 0.92em;
	color: #4a5568;
}
.entry-body .autoad-steps__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 1.2em;
	margin-top: 0.55em;
}
.entry-body a.autoad-steps__link {
	font-weight: 700;
}
.entry-body a.autoad-steps__link::after {
	content: " →";
}
@media (max-width: 600px) {
	.entry-body ol.autoad-steps > li {
		padding-left: 3.6em;
	}
	.entry-body .autoad-steps__num {
		left: 0.8em;
	}
	.entry-body ol.autoad-steps > li:not(:last-child)::after {
		left: 1.85em;
	}
}

/* ── トップページの色（2026-10-18 坪谷さん：地もカードも白で色が無い）──
   ★色の割り当てはアプリのホーム「使い方の流れ」（home-parts.tsx の STEP_COLOR）と同じ色合い＝マニュアルとアプリで分類の色がそろう。
   ★このかたまりはトップ（body.home）だけに効く。ほかのページの見た目は変えない。 */
body.home {
	background: #f3f5f9;
}
body.home .site-body,
body.home .site-body-container,
body.home .main-section {
	background: transparent;
}
/* 1. 検索＝紺の地に白い文字・検索ボタンはオレンジ */
body.home .autoad-front__hero {
	background: linear-gradient(135deg, #16264a 0%, #26407a 100%);
	border-radius: 14px;
	padding: 2.6em 1.2em 2.8em;
	box-shadow: 0 6px 20px rgba(22, 38, 74, 0.18);
}
body.home .autoad-front__title {
	color: #fff;
}
body.home .autoad-front__lead {
	color: rgba(255, 255, 255, 0.88);
}
body.home .autoad-front__search input[type="search"] {
	border: 0;
	border-radius: 8px;
	padding: 0.85em 1em;
}
body.home .autoad-front__search button {
	border-radius: 8px;
	background: var(--autoad-orange);
	color: #1b1405;
	padding: 0.85em 1.6em;
}
body.home .autoad-front__search button:hover {
	opacity: 0.9;
}
/* 見出し（よく見られている作業・やりたいことから探す）の左に色の印 */
body.home .autoad-front h2 {
	display: flex;
	align-items: center;
	gap: 0.5em;
	border: 0;
	padding: 0;
	color: var(--autoad-navy);
}
body.home .autoad-front h2::before {
	content: "";
	width: 6px;
	height: 1.1em;
	border-radius: 3px;
	background: var(--autoad-orange);
}
/* カード共通：白いカードを浮かせる */
body.home .autoad-front__card {
	border: 0;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(22, 38, 74, 0.08), 0 4px 14px rgba(22, 38, 74, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.home .autoad-front__card:hover,
body.home .autoad-front__card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 2px 6px rgba(22, 38, 74, 0.12), 0 10px 24px rgba(22, 38, 74, 0.1);
}
body.home .autoad-front__card:focus-visible {
	outline: 3px solid var(--autoad-orange);
	outline-offset: 2px;
}
/* 2. 3つの入口＝青・紫・オレンジの淡い地と、色の付いた印 */
body.home .autoad-front__entries .autoad-front__card {
	position: relative;
	padding: 1.3em 1.3em 1.3em 4.4em;
	border-top: 0;
	min-height: 6.2em;
	align-content: center;
}
body.home .autoad-front__entries .autoad-front__card::before {
	position: absolute;
	left: 1.1em;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4em;
	height: 2.4em;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1.05em;
	color: #fff;
}
body.home .autoad-front__entries .autoad-front__card.is-start {
	background: #eaf1fe;
}
body.home .autoad-front__entries .autoad-front__card.is-start::before {
	content: "1";
	background: #1d4ed8;
}
body.home .autoad-front__entries .autoad-front__card.is-tasks {
	background: #f3edfe;
}
body.home .autoad-front__entries .autoad-front__card.is-tasks::before {
	content: "≡";
	background: #6d28d9;
}
body.home .autoad-front__entries .autoad-front__card.is-help {
	background: #fff4e2;
	border-top: 0;
}
body.home .autoad-front__entries .autoad-front__card.is-help::before {
	content: "?";
	background: #e08a00;
}
body.home .autoad-front__entries .autoad-front__card-title {
	font-size: 1.1em;
}
/* 3. よく見られている作業＝左に色の線・右に → */
body.home .autoad-front__grid .autoad-front__card {
	position: relative;
	padding-right: 2.6em;
	border-left: 5px solid var(--card-accent, var(--autoad-navy));
}
body.home .autoad-front__grid .autoad-front__card::after {
	content: "→";
	position: absolute;
	right: 1em;
	top: 50%;
	transform: translateY(-50%);
	color: var(--card-accent, var(--autoad-navy));
	font-weight: 700;
}
/* 色＝そのページが入っている分類の色（下の分類のカードと同じ・front-page.php が is-cat-<分類のスラッグ> を付ける） */
body.home .autoad-front__grid .autoad-front__card.is-cat-start { --card-accent: #16264a; }
body.home .autoad-front__grid .autoad-front__card.is-cat-account { --card-accent: #475569; }
body.home .autoad-front__grid .autoad-front__card.is-cat-basics { --card-accent: #0f766e; }
body.home .autoad-front__grid .autoad-front__card.is-cat-business { --card-accent: #1d4ed8; }
body.home .autoad-front__grid .autoad-front__card.is-cat-lp { --card-accent: #6d28d9; }
body.home .autoad-front__grid .autoad-front__card.is-cat-creative { --card-accent: #be185d; }
body.home .autoad-front__grid .autoad-front__card.is-cat-media { --card-accent: #c2410c; }
body.home .autoad-front__grid .autoad-front__card.is-cat-report { --card-accent: #15803d; }
body.home .autoad-front__grid .autoad-front__card.is-cat-plan { --card-accent: #475569; }
body.home .autoad-front__grid .autoad-front__card.is-cat-help { --card-accent: #b45309; }
/* 4. 分類のカード＝分類ごとの色（上の線と見出しの地）。★page-item-<ID> は WordPress のページ ID（ページを作り直したら合わせて直す） */
body.home .autoad-front__tasks .autoad-pages > ul > li {
	--cat: #475569;
	--cat-bg: #f1f5f9;
	border: 0;
	border-top: 5px solid var(--cat);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(22, 38, 74, 0.08), 0 4px 14px rgba(22, 38, 74, 0.06);
	padding: 0 0 0.7em;
	overflow: hidden;
}
body.home .autoad-front__tasks .autoad-pages > ul > li > a,
body.home .autoad-front__tasks .autoad-pages > ul > li > .autoad-pages__group-title {
	margin: 0 0 0.4em;
	padding: 0.75em 1em;
	border-bottom: 0;
	background: var(--cat-bg);
	color: var(--cat);
}
body.home .autoad-front__tasks .autoad-pages ul ul {
	padding: 0 0.6em;
}
body.home .autoad-front__tasks .autoad-pages ul ul a::before {
	color: var(--cat);
	opacity: 1;
}
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-15 { --cat: #16264a; --cat-bg: #eef1f7; }  /* はじめに */
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-27 { --cat: #475569; --cat-bg: #f1f5f9; }  /* アカウント */
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-31 { --cat: #0f766e; --cat-bg: #ecfdf8; }  /* 基本操作 */
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-58 { --cat: #1d4ed8; --cat-bg: #eaf1fe; }  /* 事業情報 */
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-61 { --cat: #6d28d9; --cat-bg: #f3edfe; }  /* LP */
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-98 { --cat: #be185d; --cat-bg: #fdecf4; }  /* クリエイティブ */
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-92 { --cat: #c2410c; --cat-bg: #fff1e6; }  /* 広告の準備と配信 */
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-101 { --cat: #15803d; --cat-bg: #eafaf0; } /* 成果を見る */
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-34 { --cat: #475569; --cat-bg: #f1f5f9; }  /* プラン・設定 */
body.home .autoad-front__tasks .autoad-pages > ul > li.page-item-37 { --cat: #b45309; --cat-bg: #fff7e6; }  /* 困ったとき・よくある質問 */
body.home .autoad-front__news a,
body.home .autoad-front__new a {
	color: #1a5fd0;
}

/* ── 分類の見出しがリンクだと分かるように（2026-10-18 坪谷さん）──
   ★トップのカードの見出し（分類のページへのリンク）は、そのままでは押せると気づけない＝右に丸い「→」、マウスで下線。
   ★見出しは1行に収める（2026-10-18 坪谷さん：「困ったとき・よくある質問」が「一覧 →」の札に押されて折り返していた）
     ＝札を「→」だけの丸にし、見出しの文字と左右の余白を少し詰める。カードの最小幅（250px）でも1行に収まる。
   ★「よくある質問を見る」（inc/page-groups.php）はサイドバーだけに出し、ほかの項目と同じ見た目にする（特別に強調しない）。 */
/* 「その他」の見出し（リンクではない）も、ほかの見出しと同じ大きさ・余白にそろえる */
body.home .autoad-front__tasks .autoad-pages > ul > li > .autoad-pages__group-title {
	padding-left: 0.85em;
	padding-right: 0.85em;
	font-size: 1em;
	line-height: 1.4em;
}
body.home .autoad-front__tasks .autoad-pages > ul > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5em;
	padding-left: 0.85em;
	padding-right: 0.85em;
	font-size: 1em;
	white-space: nowrap;
}
body.home .autoad-front__tasks .autoad-pages > ul > li > a::after {
	content: "→";
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	font-size: 0.85em;
	font-weight: 700;
	border-radius: 999px;
	background: #fff;
	color: var(--cat);
	border: 1px solid currentColor;
}
body.home .autoad-front__tasks .autoad-pages > ul > li > a:hover {
	text-decoration: underline;
}

/* ── コース別の見せ分け（mu-plugins/autoad-manual-course.php）── */
.autoad-course-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 16px;
	padding: 8px 16px;
	background: var(--autoad-navy-050);
	color: var(--autoad-navy);
	font-size: 13px;
	font-weight: 600;
}
/* スマホ：左上のメニューのボタン（Lightning・固定）と重ならないように */
@media (max-width: 991px) {
	.autoad-course-bar {
		padding-left: 64px;
		justify-content: flex-start;
	}
}
.autoad-course-bar.is-editor {
	background: #fff4e0;
}
.autoad-course-bar__switch {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--autoad-navy);
	text-decoration: underline;
}
.autoad-course-screen {
	padding: 40px 0 64px;
}
.autoad-course-screen__title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 700;
	color: var(--autoad-navy);
}
.autoad-course-screen__lead {
	margin: 0 0 24px;
	font-size: 15px;
	color: #475569;
}
.autoad-course-screen__warn {
	margin: 0 0 24px;
	padding: 12px 16px;
	border-radius: 8px;
	background: #fff4e0;
	color: #8a4b00;
	font-size: 15px;
}
.autoad-course-screen__cards {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.autoad-course-screen__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.autoad-course-screen__cards li,
.autoad-course-screen__cards form {
	height: 100%;
	margin: 0;
}
.autoad-course-screen button.autoad-course-card {
	/* ★テーマのボタン（青の地・白の文字）を打ち消す */
	margin: 0;
	font: inherit;
	line-height: 1.5;
	background-color: #fff;
	color: inherit;
	transition: border-color 0.15s;
}
.autoad-course-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 20px;
	border: 1px solid var(--autoad-line);
	border-radius: 14px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.autoad-course-card:hover,
.autoad-course-card:focus-visible {
	border-color: var(--autoad-navy);
}
.autoad-course-card.is-current {
	border: 2px solid var(--autoad-navy);
}
.autoad-course-card__name {
	font-size: 18px;
	font-weight: 700;
	color: var(--autoad-navy);
}
.autoad-course-card__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--autoad-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}
.autoad-course-card__desc {
	font-size: 15px;
	color: #475569;
	line-height: 1.7;
}
.autoad-course-screen__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.autoad-course-screen__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 8px;
	background: var(--autoad-navy-050);
	color: var(--autoad-navy);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.autoad-course-screen__btn.is-primary {
	background: var(--autoad-navy);
	color: #fff;
}
