/* =============================================
   Step Process Manager — フロントエンドスタイル
   SWELLテーマのCSSを上書きするため高詳細度セレクタを使用
   ============================================= */

.spm-wrap {
	margin: 2em 0;
	font-family: inherit;
}

.spm-flow {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0;
}

/* ---- 各ステップ ---- */
.spm-wrap .spm-step {
	flex: 1 1 0;
	min-width: 0;
	max-width: 220px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.spm-wrap .spm-step__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8e8e8;
}

.spm-wrap .spm-step__image {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.spm-wrap .spm-step__image-placeholder {
	width: 100%;
	height: 100%;
	background: #ddd;
}

/* ---- ステップ番号 ---- */
.spm-wrap .spm-step__number {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #1a1a1a;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1;
	letter-spacing: 0;
	z-index: 2;
}

/* ---- 見出し ---- */
.spm-wrap .spm-step__title {
	margin: 12px 0 6px !important;
	padding: 0 !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: #1a1a1a !important;
	line-height: 1.4 !important;
	background: none !important;
	border: none !important;
	text-align: left !important;
}

/* ---- 説明文 ---- */
.spm-wrap .spm-step__desc {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.8rem !important;
	font-weight: 400 !important;
	color: #333 !important;
	line-height: 1.7 !important;
	text-align: left !important;
	background: none !important;
	border: none !important;
}

/* ---- 矢印（デスクトップ：右向き） ---- */
.spm-wrap .spm-arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	width: 28px;
	height: calc(220px * 3 / 4);
	color: #999;
}

.spm-wrap .spm-arrow__icon {
	width: 20px;
	height: 20px;
}

.spm-wrap .spm-arrow__icon--down {
	display: none;
}

.spm-wrap .spm-arrow__icon--right {
	display: block;
}

/* =============================================
   タブレット（5ステップが窮屈な場合）
   ============================================= */
@media (max-width: 1024px) {
	.spm-wrap .spm-step {
		max-width: 180px;
	}

	.spm-wrap .spm-step__title {
		font-size: 0.85rem !important;
	}

	.spm-wrap .spm-step__desc {
		font-size: 0.75rem !important;
	}

	.spm-wrap .spm-arrow {
		width: 20px;
		height: calc(180px * 3 / 4);
	}

	.spm-wrap .spm-arrow__icon {
		width: 16px;
		height: 16px;
	}
}

/* =============================================
   スマホ（縦並び）
   ============================================= */
@media (max-width: 767px) {
	.spm-flow {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.spm-wrap .spm-step {
		max-width: 100%;
		width: 100%;
	}

	.spm-wrap .spm-step__image-wrap {
		aspect-ratio: 16 / 9;
		max-height: 240px;
	}

	.spm-wrap .spm-step__number {
		width: 40px;
		height: 40px;
		font-size: 15px;
	}

	.spm-wrap .spm-step__title {
		font-size: 1rem !important;
		margin-top: 14px !important;
	}

	.spm-wrap .spm-step__desc {
		font-size: 0.85rem !important;
		margin-bottom: 4px !important;
	}

	.spm-wrap .spm-arrow {
		width: 100%;
		height: 32px;
		align-self: center;
	}

	.spm-wrap .spm-arrow__icon--right {
		display: none;
	}

	.spm-wrap .spm-arrow__icon--down {
		display: block;
	}
}
