:root {
  --color-brightest: #fff;
  --color-contrast: rgba(34, 165, 224, 0.7);
  --color-contrast02: #c9e2ed;
  --color-contrast03: rgba(34, 165, 224, 0.6);
  --color-accent: #22a5e0;
  --color-accent02: #fff82f;
  --color-black: #3e4145;
  --color-black02: #666;
  --color-link: #00f;
  --color-gray: #f4f4f4;
  --color-gray02: #989898;
  --transition: all 0.5s ease;
  --transition-duration: 0.5s;
  --box-shadow: 3px 3px 5px #00000029;
  --font-en: roboto, sans-serif;
  --notosans-top-offset: 0.07em;
  --z-index-on: 2;
}

/* =======================================================
  FLOW
======================================================= */

.flow {
	position: relative;
	padding: 90px 0 100px;
	overflow: hidden;
	font-family: "Zen Kaku Gothic New", sans-serif;
	color: #333;
}
.flow__inner {
	position: relative;
	z-index: 1;
	width: 900px;
	margin: 0 auto;
}


/* =======================================================
  STEP
======================================================= */

.flow__step-list {
	margin: 0;
	counter-reset: flow-step;
}

.flow__step {
	--flow-point-height: 73px;
	position: relative;
	margin-top: -24px;
	padding: 90px 65px 82px;
	background: #ffe9d9;
	counter-increment: flow-step;
	clip-path: polygon(
		0 0,
		50% var(--flow-point-height),
		100% 0,
		100% calc(100% - var(--flow-point-height)),
		50% 100%,
		0 calc(100% - var(--flow-point-height))
	);
}

.flow__step--first {
	padding-top: 36px;

	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - var(--flow-point-height)),
		50% 100%,
		0 calc(100% - var(--flow-point-height))
	);
}

.flow__step--last {
	padding-bottom: 72px;

	clip-path: polygon(
		0 0,
		50% var(--flow-point-height),
		100% 0,
		100% 100%,
		0 100%
	);
}

.flow__step-content {
	display: grid;
	grid-template-columns: 350px 420px;
	gap: 20px;
	align-items: center;
}

.flow__step-image-wrapper {
	display: block;
	width: 350px;
	height: 205px;
	overflow: hidden;
	line-height: 0;
}

.flow__step-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.flow__step-body {
	min-width: 0;
}

.flow__step-heading {
	display: flex;
	gap: 9px;
	align-items: center;
	margin-bottom: 20px;
}
.flow__step-label {
	position: relative;
	z-index: 0;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 98px;
	height: 36px;
	padding-right: 6px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	letter-spacing: 0;
	background: none;
	clip-path: none;
}

.flow__step-label::before {
	position: absolute;
	inset: 0 6px 0 0;
	z-index: -1;
	content: "";
	background: #ff6a00;
}

.flow__step-label::after {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: -1;
	width: 15px;
	height: 15px;
	content: "";
	background: #ff6a00;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transform: translateY(-50%);
}
.flow__step-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	color: #333;
	letter-spacing: 0;
}

.flow__step-text {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: #333;
	letter-spacing: 0;
}


/* =======================================================
  詳細フロー
======================================================= */

.flow__detail {
	margin-top: 48px;
	padding: 34px 40px 42px;
}

.flow__detail-title {
	position: relative;
	width: fit-content;
	padding-bottom: 10px;
	margin: 0 auto 30px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: #333;
	text-align: center;
	letter-spacing: 0;
}

.flow__detail-title::after {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 278px;
	height: 1px;
	content: "";
	background: linear-gradient(
		90deg,
		rgba(255, 106, 0, 0) 0%,
		rgba(255, 106, 0, 0.6) 50%,
		rgba(255, 106, 0, 0) 100%
	);
	transform: translateX(-50%);
}

.flow__detail-scroll {
	width: 100%;
}

.flow__detail-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin: 0;
}

.flow__detail-list--treatment {
	grid-template-columns: repeat(5, 1fr);
	gap: 17px;
}

.flow__detail-item {
	position: relative;
	min-width: 0;
}

.flow__detail-item:not(:last-child)::after {
	position: absolute;
	top: 57px;
	right: -21px;
	width: 0;
	height: 0;
	content: "";
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 12px solid #ff6a00;
}

.flow__detail-list--treatment
.flow__detail-item:not(:last-child)::after {
	top: 48px;
	right: -13px;
}

.flow__detail-image-wrapper {
	display: block;
	width: 100%;
	margin-bottom: 11px;
	line-height: 0;
}

.flow__detail-image {
	display: block;
	width: 100%;
	height: 126px;
	object-fit: contain;
}

.flow__detail-list--treatment .flow__detail-image {
	height: 106px;
}

.flow__detail-item-title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: #333;
	text-align: center;
	letter-spacing: 0;
}

.flow__detail-text {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	color: #333;
	letter-spacing: 0;
}

.flow__detail-scroll-wrapper {
	position: relative;
	width: 100%;
}

.flow__detail-scroll {
	width: 100%;
	overflow: visible;
}

.flow__scroll-guide {
	display: none;
}

/* =======================================================
  医療提携
======================================================= */

.flow__medical {
	position: relative;
	padding: 110px 40px 88px;
	text-align: center;
}

.flow__medical::before {
	position: absolute;
	top: 26px;
	left: 50%;
	z-index: -1;
	width: 390px;
	height: 390px;
	content: "";
	background: radial-gradient(
		circle,
		rgba(255, 132, 0, 0.35) 0%,
		rgba(255, 132, 0, 0) 70%
	);
	transform: translateX(-50%);
	pointer-events: none;
}

.flow__medical-title {
	margin: 0 0 34px;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.45;
	color: #333;
	letter-spacing: 0;
}

.flow__medical-text {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 2;
	color: #333;
	letter-spacing: 0;
}


/* =======================================================
  ホームへ戻る配置
======================================================= */

.flow__home {
	display: flex;
	justify-content: center;
}


/* =======================================================
  Hover
======================================================= */

@media (any-hover: hover) {

	.flow__step-image {
		transition: transform 0.4s ease;
	}

}


/* =======================================================
  FLOW SP
======================================================= */

@media screen and (max-width: 750px) {

	.flow {
		padding: 58px 0 70px;
	}

	.flow::before {
		top: -80px;
		right: -150px;
		width: 343px;
		height: 343px;
	}

	.flow__inner {
		width: 100%;
	}

	.flow__step-list {
		width: calc(100% - 50px);
		max-width: 325px;
		margin: 0 auto;
	}


	/* =====================================================
	  STEP
	===================================================== */

	.flow__step {
		--flow-point-height: 26px;
		padding: 57px 25px 50px;
		margin-top: 0;
		clip-path: polygon(
			0 0,
			50% var(--flow-point-height),
			100% 0,
			100% calc(100% - var(--flow-point-height)),
			50% 100%,
			0 calc(100% - var(--flow-point-height))
		);
	}

	.flow__step--first {
		padding-top: 31px;

		clip-path: polygon(
			0 0,
			100% 0,
			100% calc(100% - var(--flow-point-height)),
			50% 100%,
			0 calc(100% - var(--flow-point-height))
		);
	}

	.flow__step--last {
		padding-bottom: 50px;

		clip-path: polygon(
			0 0,
			50% var(--flow-point-height),
			100% 0,
			100% 100%,
			0 100%
		);
	}

	.flow__step-content {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.flow__step-image-wrapper {
		width: 275px;
		height: 161px;
		aspect-ratio: auto;
	}

	.flow__step-image {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.flow__step-heading {
		gap: 8px;
		margin-bottom: 14px;
	}

	.flow__step-label {
		width: 79px;
		height: 29px;
		padding-right: 5px;
		font-size: 14px;
	}

	.flow__step-label::before {
		right: 5px;
	}

	.flow__step-label::after {
		width: 12.55px;
		height: 12.55px;
	}
	
	.flow__step-title {
		font-size: 20px;
		line-height: 1.35;
	}

	.flow__step-text {
		font-size: 14px;
		line-height: 1.6;
	}

	/* =====================================================
	  詳細フロー
	===================================================== */

	.flow__detail {
		width: calc(100% + 50px);
		padding: 27px 0 30px;
		margin: 34px 0 0 -25px;
		overflow: hidden;
	}

	.flow__detail-title {
		padding-bottom: 9px;
		margin-bottom: 16px;
		font-size: 18px;
	}

	.flow__detail-title::after {
		width: 250px;
	}

	.flow__detail-scroll-wrapper {
		position: relative;
		width: 275px;
		margin: 0 auto;
	}

	.flow__detail-scroll {
		width: 275px;
		padding: 0 0 12px;
		margin: 0 auto;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		scrollbar-color: #ff6a00 #ccc;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.flow__detail-scroll::-webkit-scrollbar {
		height: 3px;
	}

	.flow__detail-scroll::-webkit-scrollbar-track {
		background: #ccc;
	}

	.flow__detail-scroll::-webkit-scrollbar-thumb {
		background: #ff6a00;
		border-radius: 0;
	}

	.flow__detail-list,
	.flow__detail-list--treatment {
		display: flex;
		gap: 25px;
		width: max-content;
		margin: 0;
	}

	.flow__detail-item {
		flex: 0 0 132px;
		width: 132px;
	}

	.flow__detail-item:not(:last-child)::after,
	.flow__detail-list--treatment
	.flow__detail-item:not(:last-child)::after {
		top: 52px;
		right: -17px;
	}

	.flow__detail-image-wrapper {
		margin-bottom: 10px;
	}

	.flow__detail-image,
	.flow__detail-list--treatment .flow__detail-image {
		width: 132px;
		object-fit: contain;
	}

	.flow__detail-item-title {
		margin-bottom: 7px;
		font-size: 13px;
	}

	.flow__detail-text {
		font-size: 12px;
		line-height: 1.58;
	}

	.flow__scroll-guide {
		position: absolute;
		top: 50%;
		left: 50%;
		z-index: 3;
		display: block;
		width: 99px;
		height: 99px;
		margin: 0;
		pointer-events: none;
		transform: translate(-50%, -50%);
		transition:
			opacity 0.3s ease,
			visibility 0.3s ease;
	}

	.flow__scroll-guide img {
		display: block;
		width: 99px;
		height: 99px;
	}

	.flow__scroll-guide.is-hidden {
		visibility: hidden;
		opacity: 0;
	}
	
	/* =====================================================
	  医療提携
	===================================================== */

	.flow__medical {
		padding: 86px 25px 64px;
	}

	.flow__medical::before {
		top: 35px;
		width: 300px;
		height: 300px;
	}

	.flow__medical-title {
		margin-bottom: 30px;
		font-size: 28px;
		line-height: 1.5;
	}

	.flow__medical-text {
		font-size: 16px;
		line-height: 2;
	}

	.flow__medical-text br.pc {
		display: none;
	}

}