/*
 * 使い方ガイド（single-guide.php・archive-guide.php。docs/spec/15）
 * - 手順は番号つきのステップカード（ol.amp-guide-steps > li）
 * - 手順の画像（.amp-guide-shot）は js/guide-shot.js が「全体を見せてから要所へ寄る」演出を付ける
 *   （トップのカルーセルの 'focus' と同じ考え方。枠の線の太さは倍率で割って、見た目を 2px に保つ）
 */

.amp-guide__container {
	max-width: 880px;
	margin: 0 auto;
	padding: 40px 20px 80px;
}

/* パンくず */
.amp-guide__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 28px;
	font-size: 13px;
	color: #6b7280;
}
.amp-guide__breadcrumb a {
	color: #2563eb;
	text-decoration: none;
}
.amp-guide__breadcrumb a:hover {
	text-decoration: underline;
}
/* 区切りの矢じり（文字を使わず線で描く） */
.amp-guide__sep {
	display: inline-block;
	width: 5px;
	height: 5px;
	margin: 0 2px;
	border-top: 1.5px solid #9ca3af;
	border-right: 1.5px solid #9ca3af;
	transform: rotate(45deg);
}

/* 見出しまわり */
.amp-guide__label {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #2563eb;
}
.amp-guide__label-stage::before {
	content: "／";
	margin: 0 6px;
	color: #93c5fd;
}
.amp-guide__title {
	margin: 8px 0 20px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.5;
	color: #111827;
}
.amp-guide__summary {
	margin: 0 0 20px;
	padding: 16px 20px;
	border-left: 5px solid #2563eb;
	border-radius: 4px;
	background: #eff6ff;
	font-size: 16px;
	line-height: 1.9;
	color: #1e3a8a;
}

/* 使えるプラン・かかる時間・前に済ませておくこと */
.amp-guide__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 0 0 36px;
	padding: 14px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fafafa;
	font-size: 14px;
	line-height: 1.7;
	color: #374151;
}
.amp-guide__fact {
	display: flex;
	gap: 10px;
	align-items: baseline;
}
.amp-guide__fact--wide {
	flex-basis: 100%;
}
.amp-guide__fact dt {
	flex: none;
	font-size: 12px;
	font-weight: 700;
	color: #6b7280;
}
.amp-guide__fact dd {
	margin: 0;
}
.amp-guide-plan {
	display: inline-block;
	padding: 1px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.8;
	white-space: nowrap;
}
.amp-guide-plan--free {
	border: 1px solid #bfdbfe;
	background: #eff6ff;
	color: #1e40af;
}
.amp-guide-plan--paid {
	border: 1px solid #fed7aa;
	background: #fff7ed;
	color: #c2410c;
}

/* 本文 */
.amp-guide__content {
	font-size: 16px;
	line-height: 1.9;
	color: #374151;
}
.amp-guide__content h2 {
	margin: 48px 0 20px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e7eb;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
	color: #111827;
}
.amp-guide__content h2:first-child {
	margin-top: 0;
}
.amp-guide__content p {
	margin: 0 0 16px;
}
.amp-guide__content a {
	color: #2563eb;
}
.amp-guide__content strong {
	color: #111827;
}
.amp-guide__content ul {
	margin: 0 0 20px;
	padding-left: 24px;
}
.amp-guide__content ul li {
	margin-bottom: 8px;
}
/* 画面のボタン名・項目名（「新規」など） */
.amp-guide__content .ui {
	font-weight: 700;
	color: #111827;
}

/* 手順（番号つき） */
.amp-guide-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: amp-guide-step;
}
.amp-guide-step {
	position: relative;
	margin: 0 0 40px;
	padding-left: 52px;
	counter-increment: amp-guide-step;
}
.amp-guide-step::before {
	content: counter(amp-guide-step);
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	font-size: 17px;
	font-weight: 800;
}
.amp-guide-step::after {
	content: "";
	position: absolute;
	top: 44px;
	bottom: -32px;
	left: 17px;
	width: 2px;
	background: #dbeafe;
}
.amp-guide-step:last-child::after {
	display: none;
}
.amp-guide-step h3 {
	margin: 3px 0 8px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.6;
	color: #111827;
}
.amp-guide-step p {
	margin: 0 0 12px;
}

/* 結果の確認方法・つまずきやすい点 */
.amp-guide-check {
	margin: 0 0 20px;
	padding: 16px 20px;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	background: #f0fdf4;
}
.amp-guide-check p:last-child {
	margin-bottom: 0;
}
.amp-guide-trouble {
	margin: 0;
	padding: 0;
	list-style: none;
}
.amp-guide-trouble > li {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}
.amp-guide-trouble h3 {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
	color: #111827;
}
.amp-guide-trouble p:last-child {
	margin-bottom: 0;
}
.amp-guide-next {
	margin: 0;
	padding-left: 24px;
}
.amp-guide-soon {
	margin-left: 6px;
	font-size: 12px;
	color: #9ca3af;
}

/* 本文の表（Excel の入力例など）。横に長い表は、枠の中で横にスクロールする */
.amp-guide-table {
	margin: 8px 0 12px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}
.amp-guide-table table {
	width: auto;
	min-width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.5;
}
.amp-guide-table th,
.amp-guide-table td {
	padding: 6px 10px;
	border: 1px solid #e5e7eb;
	white-space: nowrap;
	text-align: left;
	vertical-align: top;
}
.amp-guide-table thead th {
	background: #f3f4f6;
	font-weight: 700;
	color: #111827;
}

/* 手順の画像 */
.amp-guide-shot {
	margin: 8px 0 0;
}
.amp-guide-shot__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #f3f4f6;
	box-shadow: 0 6px 20px rgba(15, 40, 90, 0.1);
}
.amp-guide-shot__frame img {
	display: block;
	width: 100%;
	height: auto;
}
.amp-guide-shot__stage {
	position: absolute;
	inset: 0;
	transform-origin: 0 0;
	transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: zoom-in;
}
.amp-guide-shot.is-focused .amp-guide-shot__stage {
	cursor: zoom-out;
}
.amp-guide-shot__stage img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.amp-guide-shot__ring {
	position: absolute;
	border: calc(2px / var(--amp-guide-s, 1)) solid #2563eb;
	border-radius: calc(4px / var(--amp-guide-s, 1));
	box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.28);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}
.amp-guide-shot__label {
	position: absolute;
	z-index: 2;
	top: 8px;
	left: 8px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #0b1f4d;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(15, 40, 90, 0.3);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}
/* 寄り終わるころ（1.2秒）に枠と説明を出す */
.amp-guide-shot.is-focused .amp-guide-shot__ring {
	opacity: 1;
	transition-delay: 0.9s;
}
.amp-guide-shot.is-focused .amp-guide-shot__label {
	opacity: 1;
	transition-delay: 1.1s;
}
.amp-guide-shot__toggle {
	position: absolute;
	z-index: 3;
	right: 8px;
	bottom: 8px;
	padding: 3px 12px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
	cursor: pointer;
}
.amp-guide-shot__toggle:hover,
.amp-guide-shot__toggle:focus-visible {
	background: rgba(15, 23, 42, 0.9);
}
.amp-guide-shot__open {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
}
.amp-guide-shot.no-anim .amp-guide-shot__stage,
.amp-guide-shot.no-anim .amp-guide-shot__ring,
.amp-guide-shot.no-anim .amp-guide-shot__label {
	transition: none;
}
@media (prefers-reduced-motion: reduce) {
	.amp-guide-shot__stage,
	.amp-guide-shot__ring,
	.amp-guide-shot__label,
	.amp-guide-shot.is-focused .amp-guide-shot__ring,
	.amp-guide-shot.is-focused .amp-guide-shot__label {
		transition: none;
	}
}

/* 最終更新・前後のガイド */
.amp-guide__updated {
	margin: 40px 0 0;
	font-size: 13px;
	color: #6b7280;
}
.amp-guide__updated-note {
	margin-left: 8px;
}
.amp-guide__pager {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 40px;
}
.amp-guide__pager-link {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 2px;
	padding: 14px 18px;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
}
.amp-guide__pager-link:hover {
	background: #eff6ff;
}
.amp-guide__pager-link--next {
	text-align: right;
}
.amp-guide__pager-dir {
	font-size: 12px;
	color: #6b7280;
}
.amp-guide__pager-title {
	font-size: 15px;
	font-weight: 700;
	color: #1e40af;
}
.amp-guide__pager-index {
	flex-basis: 100%;
	font-size: 14px;
	color: #2563eb;
}

/* 無料登録の案内（用語集と同じ見た目） */
.amp-guide__cta {
	margin-top: 48px;
	padding: 32px;
	border: 2px solid #bfdbfe;
	border-radius: 12px;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	text-align: center;
}
.amp-guide__cta-title {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 700;
	color: #1e40af;
	text-wrap: balance;
}
.amp-guide__cta-text {
	max-width: 32em;
	margin: 0 auto 20px;
	font-size: 15px;
	color: #1e40af;
	text-wrap: balance;
	word-break: auto-phrase;
}
.amp-guide__cta-btn,
a.amp-guide__cta-btn:hover,
a.amp-guide__cta-btn:focus {
	color: #fff;
}
.amp-guide__cta-btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 8px;
	background: #ea580c;
	box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s;
}
.amp-guide__cta-btn:hover {
	background: #c2410c;
	transform: translateY(-2px);
}

/* 一覧（/guide/） */
.amp-guide-index__stage {
	margin-top: 40px;
}
.amp-guide-index__stage-title {
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e7eb;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
}
.amp-guide-index__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.amp-guide-index__item {
	margin: 0 0 10px;
}
.amp-guide-index__link {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
}
.amp-guide-index__link:hover {
	border-color: #93c5fd;
	background: #f8fbff;
}
.amp-guide-index__no {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}
.amp-guide-index__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.amp-guide-index__title {
	font-size: 17px;
	font-weight: 700;
	color: #1e40af;
}
.amp-guide-index__excerpt {
	font-size: 14px;
	line-height: 1.7;
	color: #4b5563;
}
.amp-guide-index__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: #6b7280;
}
.amp-guide-index__manual {
	margin-top: 48px;
	padding: 20px 24px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafafa;
	font-size: 15px;
	line-height: 1.8;
	color: #374151;
}
.amp-guide-index__manual-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: #111827;
}
.amp-guide-index__manual p {
	margin: 0 0 8px;
}
.amp-guide-index__manual a {
	color: #2563eb;
	font-weight: 700;
}

@media (max-width: 768px) {
	.amp-guide__container {
		padding: 28px 16px 64px;
	}
	.amp-guide__title {
		font-size: 24px;
	}
	.amp-guide-step {
		padding-left: 42px;
	}
	.amp-guide-step::before {
		width: 30px;
		height: 30px;
		font-size: 15px;
	}
	.amp-guide-step::after {
		top: 38px;
		left: 14px;
	}
	/* スマホでは画像を本文の幅いっぱい（番号の分も使う）に出す */
	.amp-guide-step .amp-guide-shot {
		margin-left: -42px;
	}
	.amp-guide__cta {
		padding: 28px 20px;
	}
}
