@charset "UTF-8";
/*
 * ご利用の流れ 図解
 *
 * デスクトップ … 5ステップを横に並べ、カードの間を矢印でつなぐ
 * スマホ       … 縦のタイムライン（左に番号、右に内容）
 *
 * 矢印は擬似要素で描くので画像は使わない。
 */

.s753-flow {
	margin: 0 0 48px;
}

.s753-flow__list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

/* 親テーマの `ul > li { list-style: disc }` `li { padding: 5px 0 }` を打ち消す */
.s753-flow__item {
	position: relative;
	margin: 0;
	padding: 0 10px;
	list-style: none;
}

/* カードの間をつなぐ矢印（最後の項目には出さない） */
.s753-flow__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 34px;
	right: -7px;
	width: 14px;
	height: 14px;
	border-top: 2px solid #f0b9b9;
	border-right: 2px solid #f0b9b9;
	transform: rotate(45deg);
}

.s753-flow__card {
	height: 100%;
	padding: 22px 14px 20px;
	border: 1px solid #ececec;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

/* 番号のまる */
.s753-flow__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: #ffcccc;
	color: #7a5a5a;
	font-size: .8rem;
	line-height: 1;
}

.s753-flow__figure {
	display: block;
	margin-bottom: 10px;
	color: #b98d8d;
}

.s753-flow__icon {
	display: inline-block;
	vertical-align: middle;
}

.s753-flow__label {
	margin: 0 0 .5em;
	padding: 0;
	border: none;
	height: auto;
	color: #333;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .04em;
	text-align: center;
}

.s753-flow__desc {
	margin: 0;
	color: #777;
	font-size: .78rem;
	line-height: 1.8;
	text-align: left;
}

/* ===== タブレット：3列＋2列に折り返す ===== */

@media (max-width: 900px) {
	.s753-flow__list {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px 0;
	}

	/* 3つめの右側は行末なので矢印を出さない */
	.s753-flow__item:nth-child(3)::after {
		display: none;
	}
}

/* ===== スマホ：縦のタイムライン ===== */

@media (max-width: 599px) {
	.s753-flow__list {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.s753-flow__item {
		padding: 0 0 0 44px;
	}

	/* 縦線でステップをつなぐ */
	.s753-flow__item:not(:last-child)::before {
		content: "";
		position: absolute;
		left: 13px;
		top: 30px;
		bottom: -14px;
		width: 2px;
		background: #f4dede;
	}

	/* 横並び用の矢印は下向きに描き直す */
	.s753-flow__item:not(:last-child)::after,
	.s753-flow__item:nth-child(3)::after {
		display: block;
		top: auto;
		bottom: -2px;
		left: 8px;
		right: auto;
		width: 12px;
		height: 12px;
		border-top: none;
		border-right: 2px solid #f0b9b9;
		border-bottom: 2px solid #f0b9b9;
	}

	.s753-flow__card {
		margin-bottom: 14px;
		padding: 16px 16px 14px;
		text-align: left;
	}

	/* 番号を左の線の上に重ねる */
	.s753-flow__step {
		position: absolute;
		left: 0;
		top: 16px;
		margin: 0;
	}

	.s753-flow__figure {
		display: inline-block;
		margin: 0 8px 0 0;
		vertical-align: -6px;
	}

	.s753-flow__label {
		display: inline;
		text-align: left;
	}

	.s753-flow__desc {
		margin-top: .6em;
	}
}
