@charset "utf-8";
/*------------------------------------------------------------
	index
------------------------------------------------------------*/
.headLine03 {
	margin-bottom: 8rem;
}
#main p {
	margin-right: -2rem;
	margin-bottom: 3.2rem;
	line-height: 2.083;
}
#main .text {
	margin-bottom: 12.3rem;
}
#main p:last-child {
	margin-bottom: 0;
}
#main .ttl {
	margin-bottom: 6.4rem;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1.923;
}
#main .bigPhoto {
	position: relative;
	margin: 0 -25.5rem 5.2rem 0;
}
#main .bigPhoto .txtSpan {
	display: block;
	font-size: 1.6rem;
	color: #666666;
	line-height: 1.75;
	text-align: right;
	position: absolute;
	bottom: 6rem;
	right: 64.5rem;
	letter-spacing: 0.1em;
}
#main .bigPhoto img {
	width: 100%;
}
#main .flowList {
	margin-bottom: 13.5rem;
	padding: 0.5rem 0 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2.2rem;
}
#main .flowList li {
	min-height: 57.2rem;
	padding: 4.3rem 2rem 2rem;
	margin: 0;
	width: calc((100% - (2.2rem * 7 + 0.1rem)) / 8);
}
#main .flowList dl {
	display: block;
}
#main .flowList dt {
	width: auto;
	display: block;
	border: none;
	padding: 0;
	text-align: center;
}
#main .flowList dt .num {
	margin: 0;
}
#main .flowList dd {
	padding: 3rem 0 0;
	font-size: 2.8rem;
	display: block;
	font-weight: 700;
	letter-spacing: 0.2em;
	-webkit-writing-mode : tb-rl;
	-webkit-writing-mode: vertical-rl;
	writing-mode: tb-rl;
	width: 3.8rem;
	margin: 0 auto;
	writing-mode: vertical-rl;
}
#main article {
	position: relative;
}
#main article .comLink {
	position: absolute;
	top: 0.7rem;
	right: 0;
}
#main .works {
	padding-bottom: 18.2rem;
}
#main .comBigPhoto {
	top: min(7.3vw,14rem);
}

/* ▼ ワンストップ支援の流れ＋得意分野（PC） */
#main .wrapNagare {
  position: relative;
  padding-bottom: 35rem;   /* 画像ぶんのスペース＋少し余裕 */
  margin-bottom: 12rem;    /* 次の「実績」ブロックとの間隔 */
}

/* flowList は wrapNagare の中で管理するので、ここでは下マージンを消す */
#main .wrapNagare .flowList {
  margin-bottom: 0;
}

/* 角丸ボックスの高さをしっかり確保（文字よりだいぶ高く） */
#main .wrapNagare .flowList li {
  min-height: 57.2rem;     /* 既存値。足りなければ 60rem くらいまで上げてもOK */
	padding-bottom: 10rem;
}

/* ▼ 得意分野の画像：フローの「下の方」にかぶせる */
#main .nagareImg01 {
  position: absolute;
  left: 0;
  bottom: 0;               /* wrapNagare の一番下に固定 */
  width: 100%;
}

#main .nagareImg01 img {
  display: block;
  width: 100%;
  height: auto;
}


@media all and (max-width: 896px) {
	.headLine02 {
		margin-bottom: 1.4rem;
	}
	.headLine03 {
		margin-bottom: 1.3rem;
	}
	#main p {
		margin: 0 0 2rem 0; 
		line-height: 1.67;
	}
	#main .ttl {
		margin-bottom: 3rem;
		font-size: 1.6rem;
		line-height: 1.75;
	}
	#main .comBigPhoto {
		top: -7.5rem;
	}
	#main .bigPhoto {
		margin: 0 0 4.5rem;
	}
	#main .bigPhoto .txtSpan {
		position: static;
		font-size: 1.2rem;
		letter-spacing: 0.1em;
		line-height: 1.75;
		margin-top: 1.4rem;
		display: block;
	}
	#main .text {
		margin-bottom: 4rem;
	}
	#main .flowList {
		margin-bottom: 5.2rem;
		padding-right: 0;
		flex-direction: column;
		gap: 1.0rem 0;
	}
	#main .flowList li {
		padding: 1.35rem 1.8rem;
		min-height: inherit;
		border-color: #CCCCCC;
		width: 100%;
	}
	#main .flowList dl {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}
	#main .flowList dt {
		width: 3.5rem;
		text-align: center;
		margin: 0 1.7rem 0 0;
	}
	#main .flowList dd {
		padding: 0;
		letter-spacing: 0.05em;
		flex: 1;
		-webkit-writing-mode: horizontal-tb;
		writing-mode: horizontal-tb;
		-moz-writing-mode: horizontal-tb;
		-ms-writing-mode: horizontal-tb;
		-o-writing-mode: horizontal-tb;
		font-size: 1.5rem;
		line-height: 1.75;
	}
	#main .flowList li:nth-child(2n) dt .num {
		color: #49783B;
	}
	#main article .comLink {
		position: static;
	}
	#main .works {
		padding-bottom: 5rem;
	}
	
	/* 下用の余白は不要なのでリセット。wrapNagareは基準箱のまま */
	  #main .wrapNagare {
		padding-bottom: 0;          /* PCの35remを打ち消す */
		margin-bottom: 16rem;       /* 下との余白はお好みで 12〜16rem くらい */
	  }

	  #main .wrapNagare .flowList {
		margin-bottom: 0;
	  }

	  /* li 高さはPCのmin-heightを解除して、SP標準に戻す */
	  #main .wrapNagare .flowList li {
		min-height: auto;
		padding: 1.35rem 1.8rem;
	  }

	  /* ▼ 得意分野画像（SP）：右側・上基準で重ねる */
	  #main .nagareImg01 {
		position: absolute;   /* PCと同じく「重ねる」前提を継承 */
		top: 1rem;            /* ← 矢印の頭がちょうどいい位置に来るよう微調整用 */
		right: 0;
		left: 0;              /* 画像自体に余白が入っているので、全幅でOK */
		bottom: auto;         /* PCの bottom:0 を打ち消す */
		width: 100%;
		pointer-events: none; /* 画像上での誤タップ防止（必要なければ外してOK） */
	  }

	  #main .nagareImg01 img {
		display: block;
		width: 100%;
		height: auto;
	  }
	
	
}