@charset "utf-8";

.how_to_area {
	height: 100vh;
	position: relative;
	background: #eef0f6;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 600px;
  }
  .wrapper{
	width: 100%;
  }

  .how_to_area h2 {
	max-width: 400px;
	margin: 0 auto 20px;
	text-align: center;
  }

  .how_to_area .inner {
	max-width: 900px;
	margin: 0 auto;
	width: 100%;
  }

  .step-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	height: 500px; /* 高さ指定（画像の高さと揃える） */
  }

  .step-indicators {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
	position: relative;
	height: 500px;
	flex-shrink: 0;
	margin-top: 6.19vh;
	left: -40%;
  }

  .progress-line {
	position: absolute;
	top: 32px;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background: #c6d0e3;
	z-index: 0;
	height: 0;
	transition: height 0.3s ease;
  }

  .step-indicator {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 3px solid #829ecd;
	background: #eef0f6;
	color: #829ecd;
	font-weight: bold;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 1;
  }

  .step-indicator.active {
	background-color: #829ecd;
	color: #ffffff;
	opacity: 1;
	transform: scale(1.1);
  }

  .step-wrapper {
	flex: 1;
	position: relative;
	height: 500px;
  }

  .step-image-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	position: relative;
	z-index: 1;
  }

  .step-content {
	z-index: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	pointer-events: none;
	transform: rotateY(90deg) scale(0.9);
	transition: opacity 0.3s ease, transform 0.3s ease;
	will-change: opacity, transform, visibility;
	backface-visibility: hidden;
  }
  .step-content.active {
	z-index: 2; /* 表示中は明確に最前面へ */
	opacity: 1;
	transform: rotateY(0deg) scale(1);
	pointer-events: auto;
	visibility: visible;
  }

  .step-content:not(.active) {
	z-index: 0;
  }

  .step-content img {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
  }
  @media only screen and (max-width: 1280px) {
	.how_to_area  {
		padding: 10% 5%;
		min-height: 600px!important;
		
	  }
	  .how_to_area h2 {
		max-width: 350px;
		margin: 0 auto 20px;
		text-align: center;
	  }
	  .step-container {
		height: 400px;
	}
	.how_to_area .inner {
		max-width: 780px;
	  }
  }

  @media only screen and (max-width: 768px) {
	.how_to_spacer {
		height: 30px; /* ここが上下の余白 */
	  }
	.how_to_area {
		position: relative;
		background: #eef0f6;
		padding: 0 10%;
		box-sizing: border-box;
		min-height: auto;
	  }
	.how_to_area h2 {
	  width: 80%;
	  margin: 40px auto 40px;
	}

	.step-indicator {
	  width: 30px;
	  height: 30px;
	  border: 2px solid #829ecd;
	}
	.step-container {
		gap: 0px;
	}
	.step-indicators {
	  gap: 40px;
	  width: 15%;
	  margin-top: -23.81vh;
	  left: 15px;
	  position: absolute;
	  height: 450px;
	}

	.step-container,
	.step-content,
	.step-wrapper {
	  height: 450px;
	}

	.step-content {
	  align-items: flex-start;
	  margin-left: 2%;
	}

	.step-indicators-wrapper {
	  width:13%;
	}
  }