@charset "utf-8";

#mainvisual {
	height: 200px;
	text-align: center;
	background-image: url(/public/img/flow/flow-bg.webp);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
}
#mainvisual .titleBg{
	position: absolute;
	width: 100%;
	height: 200px;
	background-color: rgba(0,0,0,0.6);
	z-index: 0;
	background-image: url(/public/img/bg-flower.svg);
	background-size: 100% auto;
	background-position: center 80%;
}
#mainvisual h1{
	color: #FFF;
	margin: 0 auto;
	z-index: 1;
	line-height: 1.4;
	padding-top: 40px;
	background-image: url(/public/img/icon/title02-btn-w.svg);
	background-repeat: no-repeat;
	background-size: 40px auto;
	background-position: center top;
}
#mainvisual h1 span{
	display: block;
	font-size: 14px;
	font-weight: normal;
}

/* =====================
   Flow Section
===================== */
#flow {
	padding: 60px 0 100px;
}
.flowWrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 30px;
}
.flowIntro {
	text-align: center;
	margin-bottom: 60px;
	color: #bd937f;
	line-height: 2;
}

/* =====================
   Step Item
===================== */
.flowStep {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	position: relative;
}

/* Continuous vertical line (absolute, from badge bottom to row bottom) */
.flowStep:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 39px; /* center of 80px stepNum col */
	top: 72px;  /* bottom of badge */
	bottom: 0;
	width: 2px;
	background-color: #c8b49a;
	z-index: 0;
}

/* Small circle dot at bottom of line, just before next step */
.flowStep:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 34px; /* 40px center - 6px (half of 12px dot) */
	bottom: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #87633d;
	z-index: 1;
}

/* =====================
   Step Badge (circle)
===================== */
.stepNum {
	width: 80px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.stepBadge {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background-color: #87633d;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}
.stepBadge .stepLabel {
	color: #fff;
	font-size: 10px;
	letter-spacing: 0.12em;
	line-height: 1;
	margin-bottom: 2px;
}
.stepBadge .stepNo {
	color: #fff;
	font-size: 28px;
	font-weight: bold;
	line-height: 1;
}

/* =====================
   Step Content (center)
===================== */
.stepContent {
	flex: 1;
	padding-top: 10px;
	padding-bottom: 56px;
}
.stepContent h2 {
	font-size: 22px;
	color: #87633d;
	margin-bottom: 0;
	line-height: 1.4;
}
.stepContent h2::after {
	content: '';
	display: block;
	width: 36px;
	height: 1px;
	background-color: #c8b49a;
	margin: 10px 0 14px;
}
.stepContent p {
	color: #bd937f;
	line-height: 2;
	font-size: 16px;
}

/* =====================
   Step Image (right)
===================== */
.stepImg {
	width: 260px;
	flex-shrink: 0;
	padding-top: 6px;
	padding-bottom: 56px;
}
.stepImg img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

/* =====================
   SP
===================== */
@media (max-width: 768px) {
	.stepImg {
		display: none;
	}
	.stepImg img {
		height: auto;
	}
}
@media (max-width: 480px) {
	#mainvisual{
		margin-top: 60px;
		height: 150px;
	}
	#mainvisual .titleBg{
		height: 150px;
	}
	#mainvisual h1{
		font-size: 24px;
	}
	#flow {
		padding: 40px 0 70px;
	}
	.flowWrap {
		padding: 0 16px;
	}
	.flowIntro {
		font-size: 15px;
		margin-bottom: 40px;
		text-align: left;
		line-height: 1.6;
	}
	.flowStep:not(:last-child)::before {
		left: 27px;
	}
	.flowStep:not(:last-child)::after {
		left: 22px;
	}
	.stepNum {
		width: 60px;
	}
	.stepBadge {
		width: 56px;
		height: 56px;
	}
	.stepBadge .stepNo {
		font-size: 22px;
	}
	.flowStep:not(:last-child)::before {
		top: 56px;
	}
	.flowStep {
		display: grid;
		grid-template-columns: 60px 1fr;
		grid-template-rows: auto auto;
		gap: 8px 16px;
	}
	.stepNum {
		grid-column: 1;
		grid-row: 1 / 3;
	}
	.stepImg {
		display: block;
		grid-column: 2;
		grid-row: 1;
		width: 100%;
		padding: 6px 0 0;
	}
	.stepImg img {
		height: auto;
		width: 100%;
	}
	.stepContent {
		grid-column: 2;
		grid-row: 2;
		padding-top: 0;
		padding-bottom: 40px;
	}
	.stepContent h2 {
		font-size: 18px;
	}
	.stepContent p {
		font-size: 15px;
		line-height: 1.6;
	}
}
