/* components/mv.css — メインビジュアル（写真背景＋波形＋クレヨンの子どもイラスト）
   下層ページ共通のリッチMV。事業詳細（児発/放デイ）・採用ページで使用。
   タイトル中央・白抜き。下端の波形と座るイラストは各ページの画像で差し替え。
   オーバーレイ色は --color-accent-tint（body.is-* で切替／既定は緑系）。
   ※シンプルなタイトル帯は components/hero.css の .c-hero を使用。 */

/* ===== 児童発達支援 MV (hero) ===== */
.c-mv {
	position: relative;
	width: 100%;
	/* Figma frame 1440x560 -> 560/1440 */
	aspect-ratio: 1440 / 560;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	isolation: isolate;
	margin: 0;
}

/* --- background photo (full-bleed band, no distortion) --- */
.c-mv__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.c-mv__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	display: block;
}

/* テクスチャ付きのグリーン系ティント (mix-blend multiply) */
.c-mv__tint {
	position: absolute;
	inset: 0;
	background-color: var(--color-accent-tint);
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* 全体を少し沈める黒オーバーレイ */
.c-mv__shade {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.1);
	pointer-events: none;
}

/* --- title --- */
.c-mv__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--space-24);
	display: flex;
	flex-direction: column;
	align-items: center;
	/* ウェーブ帯の分だけ上方向に光学中央寄せ */
	padding-block: var(--space-80) var(--space-48);
}

.c-mv__title {
	margin: 0;
	/* flex(align-items:center) 下で幅が max-content になり長いタイトルが
	   折り返さず溢れるのを防ぐ。幅を inner に固定して折り返させる
	   （text-align:center で中央寄せは維持）。 */
	width: 100%;
	color: var(--color-white);
	font-size: var(--font-size-h1);   /* 42.67px から約2段階小さく（25.6px）*/
	font-weight: var(--font-weight-black);
	line-height: 1.6;
	letter-spacing: 0.05em;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* --- bottom green wave --- */
.c-mv__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	line-height: 0;
	pointer-events: none;
}

.c-mv__wave-img {
	display: block;
	width: 100%;
	height: auto;
}

/* --- crayon children sitting on the wave (right side) --- */
.c-mv__figures {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 0;
}

.c-mv__figure {
	position: absolute;
	bottom: 100%;
	width: clamp(56px, 6.7vw, 96px);
	height: auto;
	margin-bottom: -0.6vw;
}

/* 単体クレヨンを3体並べる版（houkago 等、未統合ページ） */
.c-mv__figure--1 {
	right: 22.6%;
}

.c-mv__figure--2 {
	right: 14.1%;
	bottom: calc(100% + 0.2vw);
}

.c-mv__figure--3 {
	right: 6.4%;
}

/* 3体が1枚に合体した素材（jihatsu／Figma「Group 396」322×132）。
   MV幅1440に対する比率で配置（幅22.4%・右端6.4%）。 */
.c-mv__figure--combined {
	right: 6.4%;
	width: clamp(188px, 22.4vw, 322px);
}

/* クレヨンを持つ子ども1体（houkago／Figma 265×270）。波形右側に1人だけ立たせる。 */
.c-mv__figure--solo {
	right: 12%;
	width: clamp(80px, 7.8vw, 112px);
}

/* --- 左右の子どもイラスト（下層ページ共通：左=2人組グループ／右=1人）-----
   コラム一覧・詳細、お知らせ一覧 等で共用。MV写真の地面（波形）に乗る配置。 */
.c-mv__fig {
	position: absolute;
	bottom: 0;
	height: auto;
	z-index: 3;
	pointer-events: none;
}
.c-mv__fig--left  { left: 8.3%;  width: min(18.3%, 264px); bottom: 6%; }
.c-mv__fig--right { right: 11.6%; width: clamp(56px, 6.7%, 96px); bottom: 5%; }

@media (max-width: 768px) {
	.c-mv {
		min-height: 0;   /* SPは aspect-ratio で高さを決める（PCの320px下限は無効）*/
	}

	.c-mv__inner {
		padding-block: var(--space-40);
	}

	.c-mv__title {
		font-size: var(--font-size-h3-lg);   /* 32px から約2段階小さく（21.33px）*/
	}

	/* SP では波形に乗るクレヨン子どもイラストは非表示 */
	.c-mv__figure { display: none; }

	/* SP では左右の子どもイラストは非表示 */
	.c-mv__fig { display: none; }
}

