/* ==========================================================================
   Service Section
   Figma: 1440×1072, bg rectangle left-aligned, watermark right-aligned
   hgroup left-aligned, flow diagram image, step cards row gap 8px
   ========================================================================== */

.service-section {
	background: #F8F8F8;
	padding: 100px 0;
	margin-top: 0 !important;
	position: relative;
	overflow: hidden;
}

/* Watermark - Figma: right-aligned, 120px, textAlign RIGHT, x:1006 */
.service-watermark {
	position: absolute;
	top: 0;
	right: 0;
	font-family: 'Marcellus', serif;
	font-size: 120px;
	font-weight: 400;
	color: #0E0E0E;
	opacity: 0.05;
	letter-spacing: -0.00083em;
	line-height: 1.25;
	pointer-events: none;
	white-space: nowrap;
	margin: 0;
	text-align: right;
}

.service-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 60px 60px;
	box-sizing: content-box;
	background: #FFFFFF;
	position: relative;
	z-index: 1;
}

/* hgroup - Figma: column, gap 16px, left-aligned */
.service-hgroup {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 48px;
}

/* Subtitle with ring dot - Figma: row, gap 8px */
.service-subtitle-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.service-label-dot {
	width: 16px;
	height: 16px;
	background: #E51F1F;
	border: 4px solid #E4DEDE;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
	box-sizing: border-box;
}

.service-subtitle {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 19px;
	font-weight: 700;
	color: #000;
	margin: 0;
	line-height: 1.2;
}

/* Heading - Figma: 33px bold, textAlign LEFT */
.service-heading {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 33px;
	font-weight: 700;
	color: #000;
	line-height: 1.2;
	margin: 0;
	text-align: left;
}

/* Flow diagram wrapper - Figma: 898×474, title(23px) + graph(437px) + badges overlay */
.service-flow-diagram {
	margin-bottom: 48px;
}

/* Graph title - Figma: Graph Title node, 19px/700, color #313131, center, y:0 */
.service-flow-title {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	color: #313131;
	text-align: center;
	margin: 0 0 14px;
}

/* Graph area with badges overlay - Figma: Graph Image 898×437 */
.service-flow-graph-wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
}

.service-flow-graph-img {
	width: 100%;
	height: auto;
	display: block;
}

/* Badges - Figma: red pill, padding 8px 16px 8px 12px, gap 4px, radius 64px, bg #E51F1F, shadow */
.service-flow-badge {
	position: absolute;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
	padding: 8px 16px 8px 12px;
	background: #E51F1F;
	border-radius: 64px;
	box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
	white-space: nowrap;
}

.service-flow-badge img {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.service-flow-badge span {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.362;
	letter-spacing: -0.00714em;
	color: #FFFFFF;
}

/* Badge positions - Figma (relative to Graph Image 898×437):
   Frame25(6S): x:37, y:243  → left:4.1%,  top:55.6%
   Frame31(DB): x:670, y:88  → left:74.6%, top:20.1%
   Frame32(ROI):x:666, y:300 → left:74.2%, top:68.6% */
.service-flow-badge--left {
	left: 4.1%;
	top: 55.6%;
	transform: translateY(-50%);
}

.service-flow-badge--right-top {
	left: 74.6%;
	top: 20.1%;
	transform: translateY(-50%);
}

.service-flow-badge--right-bottom {
	left: 74.2%;
	top: 68.6%;
	transform: translateY(-50%);
}

/* Step Cards - Figma: row, gap 8px, width 898 */
.service-cards {
	display: flex;
	gap: 8px;
}

/* Card - Figma: fill width, column, gap 8px, padding 16px, border 1px #E3E3E3, radius 16px */
.service-card {
	flex: 1;
	background: #fff;
	border: 1px solid #E3E3E3;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Step number - Figma: 16px bold, #E51F1F, left aligned */
.service-step-number {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #E51F1F;
	margin: 0;
	letter-spacing: -0.00625em;
	line-height: 1.45;
	text-align: left;
}

.service-step-title {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 19px;
	font-weight: 700;
	color: #000;
	margin: 0;
	line-height: 1.2;
}

.service-step-desc {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
	margin: 0;
}

/* Service CTA */
.service-cta {
	margin-top: 32px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
	.service-section {
		padding: 48px 0;
	}

	.service-container {
		padding: 40px 24px;
	}

	.service-watermark {
		font-size: 60px;
	}

	.service-heading {
		font-size: 24px;
	}

	.service-cards {
		flex-direction: column;
		gap: 16px;
	}

	.service-flow-title {
		font-size: 15px;
	}

	.service-flow-badge {
		padding: 4px 8px 4px 6px;
		gap: 2px;
	}

	.service-flow-badge span {
		font-size: 10px;
	}

	.service-flow-badge img {
		width: 14px;
		height: 14px;
	}

	.service-cta {
		margin-top: 24px;
	}
}
