@charset "utf-8";
/* ==================================================
   代表メッセージページ
   基本設定 → 画面幅別の調整 → パーツ別の追加調整の順。
   同じ指定が複数ある場合は、後にある条件・指定も確認する。
   読み込み順と編集先の一覧：README.md「CSSの修正方法」
================================================== */
/* Message: shared hero/footer, original ribbon geometry and one-time drawing. */
.pageMessage {
	--accent: #ea5550;
	--message-red: #ea5550;
}

.messageHero .heroPhoto {
	background: #c8c9ca;
}

.messageHero .heroPhoto img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.messageHero .companyTitle > span:last-child {
	letter-spacing: .1em;
}

/* --- 本文と背景の赤い帯 --- */
.messageContents {
	position: relative;
	min-height: 1190px;
	padding: 200px 0 70px;
}

.messageRibbon {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--message-red);
	pointer-events: none;
}

/* --- 代表者の写真・役職・氏名 --- */
.messageProfile {
	position: relative;
	display: grid;
	grid-template-columns: 45% minmax(0,1fr);
	align-items: end;
	gap: 7%;
	width: 82%;
	max-width: 1150px;
	margin-left: 13%;
}

.messagePortrait {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border: 18px solid var(--message-red);
	border-radius: 50%;
	background: #c8c9ca;
}

.messagePortrait > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.12);
	transform-origin: 50% 42%;
}

.messageProfileText {
	min-width: 0;
}

.messageProfileText h2 {
	margin: 0;
	font-family: "M PLUS 1p",var(--font-jp);
	font-size: clamp(1.125rem,1.85vw,1.5rem);
	font-weight: 700;
	line-height: 2.05;
}

.messageProfileText h2 > .mplusCondensed {
	width: calc(100% / .92);
}

.messageRole {
	margin-top: 48px;
	font-family: "Noto Sans JP",var(--font-jp);
	font-size: .875rem;
	line-height: 1.6;
}

.messageName {
	margin-top: 18px;
	font-family: "M PLUS 1p",var(--font-jp);
	font-size: 2.7rem;
	font-weight: 700;
	line-height: 1.5;
}

.messageName > .mplusCondensed {
	letter-spacing: .18em;
}

/* --- メッセージ本文 --- */
.messageBody {
	position: relative;
	width: min(86%,1118px);
	margin: 70px auto 0;
	font-family: "Noto Sans JP",var(--font-jp);
	font-size: 1.0625rem;
	line-height: 2.4;
	text-align: center;
	overflow-wrap: anywhere;
}

.messageBody p + p {
	margin-top: 48px;
}

.messageRelated {
	padding-bottom: 90px;
}

/* Visible without JavaScript; hide the stroke only when its observer is ready. */
.messageContents.messageMotionReady .messageRibbonPath {
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
}

.messageContents.messageMotionReady.isDrawn .messageRibbonPath {
	animation: messageRibbonDraw 1.2s linear both;
}

@keyframes messageRibbonDraw {
	to {
		stroke-dashoffset: 0;
	}

}

/* 画面幅・操作環境の条件：(min-width:1500px) */
@media (min-width:1500px) {
	.messageContents {
		padding-top: 230px;
	}

	.messageProfile {
		margin-inline: auto;
	}

}

/* 画面幅・操作環境の条件：(max-width:1199px) and (min-width:897px) */
@media (max-width:1199px) and (min-width:897px) {
	.messageContents {
		min-height: 1030px;
		padding-top: 150px;
	}

	.messageRole {
		margin-top: 30px;
	}

	.messageName {
		font-size: 2.25rem;
	}

	.messageBody {
		font-size: 1rem;
		margin-top: 65px;
	}

	.messageBody br {
		display: none;
	}

}

/* 画面幅・操作環境の条件：(max-width:896px) */
@media (max-width:896px) {
	.messageContents {
		min-height: 1000px;
		padding-top: 120px;
	}

	.messageProfile {
		width: 88%;
		margin-left: 6%;
		gap: 5%;
	}

	.messageProfileText h2 {
		font-size: 1.125rem;
		line-height: 1.9;
	}

	.messageProfileText h2 br {
		display: none;
	}

	.messageRole {
		margin-top: 25px;
		font-size: .8125rem;
	}

	.messageName {
		margin-top: 12px;
		font-size: 2rem;
	}

	.messageBody {
		font-size: 1rem;
		line-height: 2.1;
		margin-top: 60px;
		text-align: left;
	}

	.messageBody br {
		display: none;
	}

	.messageBody p + p {
		margin-top: 32px;
	}

	.messageRelated {
		padding-bottom: 70px;
	}

}

/* 画面幅・操作環境の条件：(max-width:599px) */
@media (max-width:599px) {
	.messageContents {
		min-height: 0;
		padding: 85px 0 100px;
	}

	.messageRibbon {
		left: -40%;
		width: 180%;
	}

	.messageProfile {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
		width: 86%;
		margin-inline: auto;
	}

	.messagePortrait {
		width: 86%;
		max-width: 320px;
		align-self: center;
	}

	.messageProfileText {
		padding-left: 4%;
	}

	.messageProfileText h2 {
		font-size: 1.125rem;
		line-height: 1.65;
	}

	.messageRole {
		margin-top: 30px;
	}

	.messageName {
		font-size: 2.1rem;
	}

	.messageBody {
		margin-top: 55px;
		font-size: 1rem;
		line-height: 2.1;
	}

}

/* 画面幅・操作環境の条件：(prefers-reduced-motion:reduce) */
@media (prefers-reduced-motion:reduce) {
	.messageContents.messageMotionReady .messageRibbonPath,
	.messageContents.messageMotionReady.isDrawn .messageRibbonPath {
		animation: none;
		stroke-dashoffset: 0;
	}

}

/* 画面幅・操作環境の条件：(max-width:599px) */
@media (max-width:599px) {
	.messageProfileText h2 br.messageLeadBreak {
		display: initial;
	}

}
