/* =============================================================
   特典2記事「10年で1000万」への5ステップ 専用スタイル（固定ページ 1000man-steps）
   設計書（正）: mitsuki_happy/openchat/steps-page-design.md（v2・2026-07-16 FB反映）

   - money.css（.is-money 基礎・money-header/footer/fixcta 共通クロム）の上に重ねて読み込む
     （functions.php で ['oc_money_style'] に依存させて後読みさせている）
   - このページだけの「オプチャ限定の特典講義」トンマナ（深緑 #114A3F ×アンバー）。
   - v2方針: 本文タイポグラフィ（p/li/h2/h3/figure の margin・line-height・font-size）は
     SWELLデフォルトに任せ、このCSSでは上書きしない。カスタムするのは
     カード外枠・チップナビ・プログレスバー・ヒーロー・フローティング再開ボタン・
     テンプレート出力のアイキャッチのみ。
   - スマホ優先。デスクトップは可読幅とカードpaddingのみ広げる。
   ============================================================= */

/* .steps-resume（再開ボタン）はテンプレート上 .steps-page の外（body直下側）にあるため、
   変数はここにも当てる（当てないと var() が解決されず背景透明＝文字が見えなくなる） */
.steps-page,
.steps-resume {
	--steps-green: #114A3F;
	--steps-green-dark: #0C342C;
	--steps-amber: #F5B841;
	--steps-ink: #1F2937;
	--steps-sub: rgba(255, 255, 255, .82);
	--steps-maxw: 720px;
}

/* ---------- 読了プログレスバー（ページ最上部・固定・sticky header より前面） ---------- */
.steps-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: rgba(255, 255, 255, .18);
	z-index: 200;
	pointer-events: none;
}
.steps-progress__bar {
	height: 100%;
	width: 0%;
	background: var(--steps-amber);
	transition: width .12s linear;
}

/* ---------- ヒーロー（バッジ＋タイトル＋リードのみのコンパクトな帯） ---------- */
.steps-hero {
	background: linear-gradient(180deg, #114A3F 0%, #0C342C 100%);
	padding: 22px 0 26px;
}
.steps-hero__inner {
	max-width: var(--steps-maxw);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.steps-hero__badge {
	display: inline-block;
	background: var(--steps-amber);
	color: var(--steps-green-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.steps-hero__title {
	color: #fff;
	font-size: clamp(20px, 5.5vw, 28px);
	font-weight: 900;
	line-height: 1.5;
	margin: 0 0 10px;
}
.steps-hero__lead {
	color: var(--steps-sub);
	font-size: 14px;
	line-height: 1.9;
	margin: 0;
}

/* ---------- STEPチップナビ（sticky・横スクロール。中身はJSが動的生成） ---------- */
.steps-nav {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--steps-green-dark);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.steps-nav__inner {
	max-width: var(--steps-maxw);
	margin: 0 auto;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 10px 16px;
}
.steps-nav__inner::-webkit-scrollbar { display: none; }

.steps-chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	cursor: pointer;
	background: rgba(255, 255, 255, .08);
	color: var(--steps-sub);
	font-size: 12.5px;
	font-weight: 700;
	padding: 7px 13px;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: background .15s, color .15s, border-color .15s;
}
.steps-chip:hover,
.steps-chip:focus-visible {
	background: rgba(255, 255, 255, .16);
}
.steps-chip:focus-visible { outline: 2px solid var(--steps-amber); outline-offset: 1px; }
.steps-chip.is-current {
	background: var(--steps-amber);
	color: var(--steps-green-dark);
	border-color: var(--steps-amber);
}
.steps-chip__check {
	font-weight: 900;
	color: var(--steps-amber);
}
.steps-chip.is-current .steps-chip__check { color: var(--steps-green-dark); }

/* ---------- 本文エリア（タイポグラフィはSWELLデフォルトに任せる） ---------- */
.steps-body {
	max-width: var(--steps-maxw);
	margin: 0 auto;
	/* 最下部の余白過大対策（v2）: bottom padding は持たない。
	   固定CTAバー分のクリアランスは money.css の .money-main padding-bottom:96px が担う */
	padding: 24px 16px 0;
}

/* テンプレートが本文エリア先頭に出力するアイキャッチ（v2でヒーローから移動） */
.steps-eyecatch {
	margin: 0 0 24px;
}
.steps-eyecatch img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 3px 16px rgba(0, 0, 0, .12);
}

/* H2セクションのカード（1000man-steps-page.js が h2〜次のh2手前をこのクラスで包む）
   — カードの「外枠」だけをカスタムし、内側のタイポグラフィには触れない */
.steps-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 3px 16px rgba(0, 0, 0, .08);
	padding: 20px;
	scroll-margin-top: 96px; /* sticky nav + progress bar 分の余白 */
}

/* SWELLの本文ブロック余白は「.post_content > *」の直下限定（margin-bottom: var(--swl-block-margin, 2em)）。
   JSがカードで包むと中の要素が直下でなくなり余白が全滅（つぶれ）するため、同じルールをカード内に再現する */
.steps-card > * {
	clear: both;
	margin-bottom: var(--swl-block-margin, 2em);
}
.steps-card > *:last-child { margin-bottom: 0; }

/* SWELLの「.post_content h2 { margin: 4em 0 2em }」は子孫で効くため、
   カード先頭のH2ではカードpaddingと二重になる → 上余白のみ相殺 */
.steps-card > h2:first-child { margin-top: 0; }

/* カード自体は .post_content 直下＝SWELLの2emとの二重掛けを避けて単一の値に明示 */
.post_content > .steps-card { margin-bottom: 40px; }
.post_content > .steps-card:last-child { margin-bottom: 0; }

/* しおりボタン（JSが各カードのH2直後に挿入・常に1箇所だけマーク） */
.steps-card > .steps-bookmark {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #F4F8F6;
	color: var(--steps-green);
	border: 1px dashed rgba(17, 74, 63, .4);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	cursor: pointer;
	margin-bottom: 1.4em; /* owl再現(2em)より少し詰める */
	transition: background .15s, border-color .15s, color .15s;
}
.steps-card > .steps-bookmark:hover { background: #E8F1ED; }
.steps-card > .steps-bookmark.is-marked {
	background: #FFF6E0;
	border-color: var(--steps-amber);
	border-style: solid;
	color: #8A6100;
}

/* JSが h2 の先頭に差し込むSTEP番号バッジ（h2自体のタイポグラフィは変更しない） */
.steps-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--steps-green);
	color: var(--steps-amber);
	font-size: 18px;
	font-weight: 900;
	margin-right: 12px;
	vertical-align: middle;
}

/* ---------- 再開導線フローティングボタン ---------- */
.steps-resume {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 108px; /* money-fixcta（固定CTAバー）より上 */
	z-index: 150;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: calc(var(--steps-maxw) - 32px);
	margin: 0 auto;
}
.steps-resume[hidden] { display: none; }
.steps-resume__btn {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--steps-green);
	color: #fff;
	border: 1px solid var(--steps-amber);
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
	cursor: pointer;
}
.steps-resume__icon { flex: none; font-size: 18px; }
.steps-resume__text { flex: 1 1 auto; }
.steps-resume__close {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	border: 0;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

@media (min-width: 601px) {
	.steps-hero__inner,
	.steps-nav__inner,
	.steps-body {
		max-width: 760px;
	}
	.steps-card { padding: 36px; }
}
