/*
 * home.css — トップページ固有。すべて .ws-page--home 配下に書く。
 *
 * 画像の枠（__media / __photo）は CSS で縦横比を決めている。
 * 画像を差し替えても、画像が無くても、枠の大きさとセクションの高さは変わらない。
 * 画像の指定は inc/home.php の対応表にまとめてある。
 */

/* ------------------------------------------------------------
 * セクション共通
 * ------------------------------------------------------------ */
.ws-page--home .ws-home-inner {
	width: 100%;
	max-width: calc(1200px + var(--ws-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ws-gutter);
}

.ws-page--home .ws-home-section {
	padding: clamp(56px, 7.5vw, 112px) 0;
}

/* 英字の小見出し */
.ws-page--home .ws-home-eyebrow {
	margin: 0 0 18px;
	color: var(--ws-color-rose-deep);
	font-family: var(--ws-font-en);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.24em;
}

.ws-page--home .ws-home-heading {
	margin: 0;
	color: var(--ws-color-navy);
	font-size: clamp(1.375rem, 1.1rem + 1.5vw, 2rem);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.08em;
}

.ws-page--home .ws-home-text {
	margin: 0;
	color: #333b4d;
	font-size: 0.9375rem;
	line-height: 2.1;
	letter-spacing: 0.04em;
	text-wrap: pretty;
	word-break: auto-phrase;
}

.ws-page--home .ws-home-text + .ws-home-text {
	margin-top: 1.4em;
}

/* 画像の枠（写真は枠いっぱいに表示し、はみ出す部分は切り取る） */
.ws-page--home .ws-home-hero__media,
.ws-page--home .ws-home-business__media,
.ws-page--home .ws-home-value__media,
.ws-page--home .ws-home-recruit__photo,
.ws-page--home .ws-home-company__media {
	overflow: hidden;
}

.ws-page--home .ws-home-hero__media img,
.ws-page--home .ws-home-business__media img,
.ws-page--home .ws-home-value__media img,
.ws-page--home .ws-home-recruit__photo img,
.ws-page--home .ws-home-company__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--ws-media-position-sp, 50% 50%);
}

@media (min-width: 1024px) {
	.ws-page--home .ws-home-hero__media img,
	.ws-page--home .ws-home-business__media img,
	.ws-page--home .ws-home-value__media img,
	.ws-page--home .ws-home-recruit__photo img,
	.ws-page--home .ws-home-company__media img {
		object-position: var(--ws-media-position, 50% 50%);
	}
}

/* 矢印付きのテキストリンク */
.ws-page--home .ws-home-more {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: var(--ws-tap);
	color: var(--ws-color-rose-deep);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: color 0.2s;
}

.ws-page--home .ws-home-more::after {
	flex: 0 0 auto;
	content: "\2192";
	transition: transform 0.2s;
}

.ws-page--home a.ws-home-more:hover {
	color: var(--ws-color-rose-deeper);
}

.ws-page--home a.ws-home-more:hover::after {
	transform: translateX(4px);
}

/* ------------------------------------------------------------
 * FV
 * 1024px 未満: 写真の下に文字を置く（写真と文字を重ねない。人物が切れにくい比率で見せる）。
 * 1024px 以上: 写真を横長に大きく使い、左側をネイビーで覆って文字を載せる。右側の人物は覆わない。
 * ------------------------------------------------------------ */
.ws-page--home .ws-home-hero {
	position: relative;
	background-color: var(--ws-color-navy);
	color: var(--ws-color-white);
}

.ws-page--home .ws-home-hero__media {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #2a3d66 0%, var(--ws-color-navy) 100%);
}

.ws-page--home .ws-home-hero__body {
	padding: 36px 0 52px;
}

.ws-page--home .ws-home-hero__en {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.88);
	font-family: var(--ws-font-en);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.26em;
}

.ws-page--home .ws-home-hero__title {
	margin: 0;
	font-size: clamp(2rem, 1.25rem + 3.2vw, 3.5rem);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.08em;
}

.ws-page--home .ws-home-hero__title-accent {
	color: var(--ws-color-coral);
}

.ws-page--home .ws-home-hero__lead {
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
	line-height: 2.1;
	letter-spacing: 0.05em;
	text-wrap: pretty;
	word-break: auto-phrase;
}

.ws-page--home .ws-home-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.ws-page--home .ws-home-hero__cta .ws-button {
	flex: 1 1 200px;
	min-height: 52px;
	padding: 10px 28px;
	font-size: 0.9375rem;
}

@media (min-width: 600px) {
	.ws-page--home .ws-home-hero__media {
		aspect-ratio: 16 / 9;
	}

	.ws-page--home .ws-home-hero__cta .ws-button {
		flex: 0 0 auto;
		min-width: 208px;
	}
}

@media (min-width: 1024px) {
	.ws-page--home .ws-home-hero {
		display: flex;
		align-items: center;
		min-height: clamp(480px, 42vw, 680px);
		overflow: hidden;
	}

	.ws-page--home .ws-home-hero__media {
		position: absolute;
		inset: 0;
		aspect-ratio: auto;
	}

	.ws-page--home .ws-home-hero__media::after {
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(13, 26, 54, 0.96) 0%, rgba(13, 26, 54, 0.9) 26%, rgba(13, 26, 54, 0.62) 42%, rgba(13, 26, 54, 0.2) 54%, rgba(13, 26, 54, 0) 64%);
		content: "";
	}

	.ws-page--home .ws-home-hero__body {
		position: relative;
		z-index: 1;
		width: 100%;
		padding: 72px 0;
	}

	.ws-page--home .ws-home-hero__content {
		max-width: 44%;
	}
}

/* ------------------------------------------------------------
 * ABOUT（白背景。左に見出し、右に文章）
 * ------------------------------------------------------------ */
.ws-page--home .ws-home-about__grid {
	display: grid;
	gap: 28px;
}

@media (min-width: 1024px) {
	.ws-page--home .ws-home-about__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 72px;
	}
}

/* ------------------------------------------------------------
 * BUSINESS
 * 1200px 以上: 左に見出し、右にカード2枚。
 * ------------------------------------------------------------ */
.ws-page--home .ws-home-business {
	background-color: var(--ws-color-bg-soft);
}

.ws-page--home .ws-home-business__layout {
	display: grid;
	gap: clamp(28px, 4vw, 48px);
}

.ws-page--home .ws-home-business__list {
	display: grid;
	gap: clamp(20px, 2.6vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.ws-page--home .ws-home-business__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.ws-page--home .ws-home-business__layout {
		grid-template-columns: 330px minmax(0, 1fr);
		gap: 56px;
	}

	.ws-page--home .ws-home-business__head {
		padding-top: 28px;
	}

	.ws-page--home .ws-home-business__head .ws-home-heading {
		font-size: 1.5rem;
	}
}

.ws-page--home .ws-home-business__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background-color: var(--ws-color-white);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(18, 33, 63, 0.04), 0 14px 36px rgba(18, 33, 63, 0.07);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* カード上段の写真 */
.ws-page--home .ws-home-business__media {
	position: relative;
	aspect-ratio: 16 / 10;
}

/* 写真の下端をうっすらネイビーにして、カードになじませる */
.ws-page--home .ws-home-business__media::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(18, 33, 63, 0) 56%, rgba(18, 33, 63, 0.24) 100%);
	content: "";
	pointer-events: none;
}

.ws-page--home .ws-home-business__media.is-empty::before {
	display: none;
}

.ws-page--home .ws-home-business__media img {
	transition: transform 0.6s ease, filter 0.6s ease;
}

/* カーソルを合わせたとき: カードを少し浮かせ、写真を少し明るくする（マウス操作のときだけ） */
@media (hover: hover) {
	.ws-page--home .ws-home-business__card:hover {
		box-shadow: 0 2px 4px rgba(18, 33, 63, 0.05), 0 22px 48px rgba(18, 33, 63, 0.12);
		transform: translateY(-4px);
	}

	.ws-page--home .ws-home-business__card:hover .ws-home-business__media img {
		filter: brightness(1.05);
		transform: scale(1.03);
	}
}

/* 画像が無いときの枠: 淡い色面に英字を置く */
.ws-page--home .ws-home-business__media.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #eef1f8 0%, #d9e0ee 100%);
}

.ws-page--home .ws-home-business__media.is-empty::after {
	padding: 0 16px;
	color: rgba(18, 33, 63, 0.5);
	font-family: var(--ws-font-en);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-align: center;
	content: attr(data-label);
}

.ws-page--home .ws-home-business__item--rose .ws-home-business__media.is-empty {
	background: linear-gradient(135deg, #fdf3f2 0%, #f6dadd 100%);
}

.ws-page--home .ws-home-business__item--rose .ws-home-business__media.is-empty::after {
	color: rgba(176, 61, 88, 0.6);
}

.ws-page--home .ws-home-business__body {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: clamp(22px, 2.6vw, 32px);
}

/* 写真と本文の境目に入れる、ローズの短い線 */
.ws-page--home .ws-home-business__body::before {
	position: absolute;
	top: 0;
	left: clamp(22px, 2.6vw, 32px);
	z-index: 2;
	width: 44px;
	height: 2px;
	background: linear-gradient(90deg, var(--ws-color-coral) 0%, var(--ws-color-rose) 100%);
	content: "";
}

.ws-page--home .ws-home-business__label {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 8px;
	color: var(--ws-color-rose-deep);
	font-family: var(--ws-font-en);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.22em;
}

.ws-page--home .ws-home-business__number {
	font-size: 1.375rem;
	font-weight: 400;
	letter-spacing: 0.06em;
}

.ws-page--home .ws-home-business__title {
	margin: 0 0 16px;
	text-wrap: balance;
	word-break: auto-phrase;
	color: var(--ws-color-navy);
	font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.06em;
}

.ws-page--home .ws-home-business__text p {
	margin: 0 0 0.9em;
	color: #333b4d;
	font-size: 0.875rem;
	line-height: 2;
	letter-spacing: 0.03em;
	text-wrap: pretty;
	word-break: auto-phrase;
}

.ws-page--home .ws-home-business__cta {
	margin: auto 0 0;
	padding-top: 4px;
}

/*
 * リンクが2つあるカード（概要ページと、詳細ページ）。
 * 上にメインのリンク、細い線をはさんで、下に控えめな2つ目のリンクを置く。
 * 2つ目もブランドのローズにする（色はメインと同じ。少し小さく・細くして、2番目の導線だと分かるようにする）。
 */
.ws-page--home .ws-home-business__cta--pair {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ws-page--home .ws-home-more--sub {
	width: 100%;
	border-top: 1px solid var(--ws-color-line);
	color: var(--ws-color-rose-deep);
	font-size: 0.8125rem;
	font-weight: 500;
}

/* ------------------------------------------------------------
 * VALUE（濃いネイビーの帯）
 * 1200px 以上: 左に見出しと写真、右に3項目を横並び。
 * ------------------------------------------------------------ */
.ws-page--home .ws-home-value {
	padding: clamp(56px, 6vw, 88px) 0;
	background-color: var(--ws-color-navy);
	color: var(--ws-color-white);
}

.ws-page--home .ws-home-value .ws-home-eyebrow {
	color: var(--ws-color-coral);
}

.ws-page--home .ws-home-value .ws-home-heading {
	color: var(--ws-color-white);
}

.ws-page--home .ws-home-value__layout {
	display: grid;
	gap: clamp(32px, 5vw, 56px);
}

.ws-page--home .ws-home-value__lead {
	display: grid;
	gap: 28px;
}

.ws-page--home .ws-home-value__media {
	aspect-ratio: 16 / 9;
	background-color: #24365c;
	border-radius: 8px;
}

.ws-page--home .ws-home-value__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ws-page--home .ws-home-value__item {
	padding: 24px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ws-page--home .ws-home-value__label {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 10px;
	color: var(--ws-color-coral);
	font-family: var(--ws-font-en);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.22em;
}

.ws-page--home .ws-home-value__number {
	font-size: 1.375rem;
	font-weight: 400;
	letter-spacing: 0.06em;
}

.ws-page--home .ws-home-value__title {
	margin: 0 0 10px;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.05em;
	text-wrap: balance;
	word-break: auto-phrase;
}

.ws-page--home .ws-home-value__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 0.875rem;
	line-height: 2;
	letter-spacing: 0.03em;
	text-wrap: pretty;
	word-break: auto-phrase;
}

@media (min-width: 768px) {
	.ws-page--home .ws-home-value__lead {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
		gap: 40px;
	}

	.ws-page--home .ws-home-value__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* 3項目の間に縦の区切り線を入れる */
	.ws-page--home .ws-home-value__item {
		padding: 4px 24px;
		border-top: 0;
		border-left: 1px solid rgba(255, 255, 255, 0.22);
	}
}

@media (min-width: 1200px) {
	.ws-page--home .ws-home-value__layout {
		grid-template-columns: 380px minmax(0, 1fr);
		align-items: center;
		gap: 56px;
	}

	.ws-page--home .ws-home-value__lead {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.ws-page--home .ws-home-value__lead .ws-home-heading {
		font-size: 1.625rem;
	}

	.ws-page--home .ws-home-value__item {
		padding: 8px 22px;
	}
}

/* ------------------------------------------------------------
 * RECRUIT（白〜淡いローズ。もっとも華やかに見せるセクション）
 * 1280px 以上: 左に見出しとCTA、中央に文章、右に写真（画面の右端まで・帯の高さいっぱい）。
 * 1024〜1279px: 左に文字、右に写真。
 * それ未満: 縦に並べる。
 * ------------------------------------------------------------ */
.ws-page--home .ws-home-recruit {
	background: linear-gradient(120deg, #fff 0%, #fdf1f1 38%, #fae4e7 100%);
	overflow: hidden;
}

.ws-page--home .ws-home-recruit__grid {
	display: grid;
	grid-template-areas:
		"head"
		"text"
		"cta"
		"media";
	gap: 28px;
	padding-inline: var(--ws-gutter);
}

.ws-page--home .ws-home-recruit__head {
	grid-area: head;
}

.ws-page--home .ws-home-recruit__text {
	grid-area: text;
}

.ws-page--home .ws-home-recruit__cta {
	grid-area: cta;
	margin: 0;
}

.ws-page--home .ws-home-recruit__media {
	grid-area: media;
	margin-top: 8px;
}

.ws-page--home .ws-home-recruit__head .ws-home-eyebrow {
	margin-bottom: 6px;
}

.ws-page--home .ws-home-recruit__sub {
	margin: 0 0 18px;
	color: var(--ws-color-rose);
	font-family: var(--ws-font-en);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.24em;
}

.ws-page--home .ws-home-recruit__cta .ws-button {
	min-width: min(100%, 240px);
	min-height: 52px;
	padding: 10px 32px;
	font-size: 0.9375rem;
}

.ws-page--home .ws-home-recruit__photo {
	aspect-ratio: 4 / 3;
	border-radius: 10px;
}

/* 画像が無いときの枠: コーラル〜ローズの淡い色面 */
.ws-page--home .ws-home-recruit__photo.is-empty {
	background: linear-gradient(135deg, #f9dcdb 0%, #f1bcc4 100%);
}

@media (min-width: 1024px) {
	.ws-page--home .ws-home-recruit__grid {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		grid-template-areas:
			"head media"
			"text media"
			"cta media";
		align-items: start;
		gap: 24px 64px;
		padding-left: max(var(--ws-gutter), calc((100% - 1200px) / 2));
	}

	.ws-page--home .ws-home-recruit__media {
		align-self: center;
		margin-top: 0;
	}
}

@media (min-width: 1280px) {
	.ws-page--home .ws-home-recruit {
		padding: 0;
	}

	.ws-page--home .ws-home-recruit__grid {
		grid-template-columns: minmax(0, 4.6fr) minmax(0, 3.4fr) minmax(0, 4fr);
		grid-template-areas:
			"head text media"
			"cta text media";
		grid-template-rows: auto 1fr;
		gap: 0 48px;
		padding-right: 0;
	}

	.ws-page--home .ws-home-recruit__head {
		align-self: end;
		padding-top: 88px;
	}

	.ws-page--home .ws-home-recruit__head .ws-home-heading {
		font-size: 1.625rem;
	}

	.ws-page--home .ws-home-recruit__cta {
		align-self: start;
		padding: 28px 0 88px;
	}

	.ws-page--home .ws-home-recruit__text {
		align-self: center;
		padding: 88px 0;
	}

	/* 写真は帯の高さいっぱいに広げ、左端を背景になじませる */
	.ws-page--home .ws-home-recruit__media {
		align-self: stretch;
		min-height: 440px;
	}

	.ws-page--home .ws-home-recruit__photo {
		height: 100%;
		aspect-ratio: auto;
		border-radius: 0;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
	}
}

/* ------------------------------------------------------------
 * COMPANY（白背景。左に文章、右に実オフィスの写真を大きく）
 * ------------------------------------------------------------ */
.ws-page--home .ws-home-company__grid {
	display: grid;
	gap: 32px;
}

.ws-page--home .ws-home-company__media {
	aspect-ratio: 16 / 9;
	background-color: #e6e9f0;
	border-radius: 10px;
}

.ws-page--home .ws-home-company__text {
	margin-top: 22px;
}

.ws-page--home .ws-home-company__cta {
	margin: 30px 0 0;
}

.ws-page--home .ws-home-company__cta .ws-button {
	min-width: min(100%, 240px);
	min-height: 52px;
	padding: 10px 32px;
	font-size: 0.9375rem;
}

@media (min-width: 1024px) {
	.ws-page--home .ws-home-company__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: center;
		gap: 64px;
	}
}

/* ------------------------------------------------------------
 * CONTACT
 * フォームの項目は Contact Form 7 の設定のまま。ここでは見た目だけを整える。
 * ------------------------------------------------------------ */
.ws-page--home .ws-home-contact {
	background-color: var(--ws-color-bg-soft);
}

.ws-page--home .ws-home-contact__grid {
	display: grid;
	gap: 32px;
}

.ws-page--home .ws-home-contact__head .ws-home-text {
	margin-top: 22px;
}

@media (min-width: 1024px) {
	.ws-page--home .ws-home-contact__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		gap: 64px;
	}
}

.ws-page--home .ws-home-contact__form .wpcf7-form {
	display: grid;
	gap: 16px 20px;
}

.ws-page--home .ws-home-contact__form .hidden-fields-container {
	display: none;
}

.ws-page--home .ws-home-contact__form .wpcf7-form > p {
	margin: 0;
}

.ws-page--home .ws-home-contact__form label {
	color: var(--ws-color-navy);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.06em;
}

/* ラベル直後の改行は、入力欄をブロック表示にしているため不要。 */
.ws-page--home .ws-home-contact__form label br {
	display: none;
}

.ws-page--home .ws-home-contact__form input[type="text"],
.ws-page--home .ws-home-contact__form input[type="email"],
.ws-page--home .ws-home-contact__form input[type="tel"],
.ws-page--home .ws-home-contact__form textarea {
	margin-top: 6px;
	padding: 9px 12px;
	background-color: var(--ws-color-white);
	border-color: #d5d9e3;
	font-weight: 400;
	letter-spacing: 0.02em;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ws-page--home .ws-home-contact__form input[type="text"]:focus,
.ws-page--home .ws-home-contact__form input[type="email"]:focus,
.ws-page--home .ws-home-contact__form input[type="tel"]:focus,
.ws-page--home .ws-home-contact__form textarea:focus {
	border-color: var(--ws-color-navy);
	box-shadow: 0 0 0 3px rgba(18, 33, 63, 0.1);
	outline: 0;
}

.ws-page--home .ws-home-contact__form textarea {
	height: 112px;
	min-height: 96px;
}

.ws-page--home .ws-home-contact__form .wpcf7-submit {
	width: 100%;
	min-height: 52px;
}

.ws-page--home .ws-home-contact__form .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 0.8125rem;
	font-weight: 400;
}

.ws-page--home .ws-home-contact__form .wpcf7-response-output {
	margin: 0;
	padding: 12px 16px;
	border-width: 1px;
	border-radius: var(--ws-radius);
	font-size: 0.875rem;
	line-height: 1.7;
}

@media (min-width: 600px) {
	.ws-page--home .ws-home-contact__form .wpcf7-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* メッセージ欄・送信ボタン・送信結果は横幅いっぱいに使う。 */
	.ws-page--home .ws-home-contact__form .wpcf7-form > p:has(textarea),
	.ws-page--home .ws-home-contact__form .wpcf7-form > p:has(.wpcf7-submit),
	.ws-page--home .ws-home-contact__form .wpcf7-response-output {
		grid-column: 1 / -1;
	}

	/* 送信ボタンは右寄せ */
	.ws-page--home .ws-home-contact__form .wpcf7-form > p:has(.wpcf7-submit) {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	.ws-page--home .ws-home-contact__form .wpcf7-submit {
		width: auto;
		min-width: 200px;
	}

	.ws-page--home .ws-home-contact__form .wpcf7-spinner {
		order: -1;
	}
}

/* ------------------------------------------------------------
 * 動きを減らす設定のとき
 * ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.ws-page--home .ws-home-business__card,
	.ws-page--home .ws-home-business__media img,
	.ws-page--home .ws-home-more::after {
		transition: none;
	}

	.ws-page--home .ws-home-business__card:hover,
	.ws-page--home .ws-home-business__card:hover .ws-home-business__media img,
	.ws-page--home a.ws-home-more:hover::after {
		transform: none;
	}
}

/* ============================================================
 * スマホ（767px 以下）専用
 * PCの並びを縦に積むのではなく、スマホ用の構図にする。
 *   FV      … 写真を縦長に見せ、下端をネイビーに溶かして、コピーを写真に食い込ませる。
 *   BUSINESS … カードを低くする（説明は1段落目だけ。続きは各サービスページで読める）。
 *   VALUE / COMPANY … 写真を画面の端から端まで見せる。
 *   RECRUIT … 見出し → 写真 → 文章 → CTA の順（写真が無い間は写真の枠を出さない）。
 * ============================================================ */
@media (max-width: 767px) {
	/* ---------- セクション共通 ---------- */
	.ws-page--home .ws-home-section {
		padding: 72px 0;
	}

	.ws-page--home .ws-home-eyebrow {
		margin-bottom: 14px;
		font-size: 0.75rem;
		letter-spacing: 0.22em;
	}

	.ws-page--home .ws-home-heading {
		font-size: clamp(1.375rem, 6.7vw, 1.875rem);
		line-height: 1.5;
		letter-spacing: 0.06em;
	}

	.ws-page--home .ws-home-text {
		max-width: 34em;
		line-height: 1.85;
		letter-spacing: 0.03em;
	}

	.ws-page--home .ws-home-text + .ws-home-text {
		margin-top: 1em;
	}

	/* ---------- FV ---------- */
	.ws-page--home .ws-home-hero__media {
		position: relative;
	}

	/* 写真の下端をネイビーに溶かす */
	.ws-page--home .ws-home-hero__media::after {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 46%;
		background: linear-gradient(180deg, rgba(18, 33, 63, 0) 0%, rgba(18, 33, 63, 0.55) 45%, rgba(18, 33, 63, 0.92) 74%, var(--ws-color-navy) 100%);
		content: "";
	}

	/* コピーを写真に食い込ませる */
	.ws-page--home .ws-home-hero__body {
		position: relative;
		z-index: 1;
		margin-top: -68px;
		padding: 0 0 56px;
	}

	.ws-page--home .ws-home-hero__en {
		margin-bottom: 14px;
		font-size: 0.6875rem;
	}

	.ws-page--home .ws-home-hero__title {
		font-size: clamp(1.875rem, 9.2vw, 2.375rem);
		line-height: 1.4;
		letter-spacing: 0.06em;
	}

	.ws-page--home .ws-home-hero__lead {
		margin-top: 18px;
		font-size: 0.9375rem;
		line-height: 1.85;
	}

	.ws-page--home .ws-home-hero__cta {
		margin-top: 26px;
	}

	/* ---------- ABOUT ---------- */
	.ws-page--home .ws-home-about {
		padding: 68px 0 72px;
	}

	.ws-page--home .ws-home-about__grid {
		gap: 24px;
	}

	/* 見出しと文章の間に短い線を入れる */
	.ws-page--home .ws-home-about__body {
		padding-top: 24px;
		background: linear-gradient(90deg, var(--ws-color-coral) 0%, var(--ws-color-rose) 100%) left top / 40px 1px no-repeat;
	}

	/* ---------- BUSINESS ---------- */
	.ws-page--home .ws-home-business {
		padding: 68px 0 76px;
	}

	.ws-page--home .ws-home-business__layout {
		gap: 26px;
	}

	.ws-page--home .ws-home-business__list {
		gap: 16px;
	}

	.ws-page--home .ws-home-business__card {
		border-radius: 14px;
	}

	/* 写真は横長にして、カードが縦に長くなりすぎないようにする */
	.ws-page--home .ws-home-business__media {
		aspect-ratio: 16 / 8;
	}

	.ws-page--home .ws-home-business__body::before {
		left: 20px;
	}

	/* 画像が無い間は、細い色の帯にする */
	.ws-page--home .ws-home-business__media.is-empty {
		height: 60px;
		aspect-ratio: auto;
	}

	.ws-page--home .ws-home-business__media.is-empty::after {
		font-size: 0.6875rem;
	}

	.ws-page--home .ws-home-business__body {
		padding: 20px 20px 12px;
	}

	.ws-page--home .ws-home-business__label {
		margin-bottom: 4px;
		font-size: 0.6875rem;
	}

	.ws-page--home .ws-home-business__number {
		font-size: 1.25rem;
	}

	.ws-page--home .ws-home-business__title {
		margin-bottom: 10px;
		font-size: 1.25rem;
	}

	.ws-page--home .ws-home-business__text p {
		margin-bottom: 0;
		line-height: 1.8;
	}

	/* 説明は1段落目だけを見せる（2段落目以降は各サービスページにある） */
	.ws-page--home .ws-home-business__text p + p {
		display: none;
	}

	.ws-page--home .ws-home-business__cta {
		padding-top: 6px;
	}

	/* ---------- VALUE ---------- */
	.ws-page--home .ws-home-value {
		padding: 68px 0 56px;
	}

	.ws-page--home .ws-home-value__layout {
		gap: 20px;
	}

	.ws-page--home .ws-home-value__lead {
		gap: 26px;
	}

	.ws-page--home .ws-home-value__media {
		margin-inline: calc(-1 * var(--ws-gutter));
		aspect-ratio: 16 / 10;
		border-radius: 0;
	}

	.ws-page--home .ws-home-value__item {
		padding: 20px 0;
	}

	.ws-page--home .ws-home-value__label {
		margin-bottom: 8px;
		font-size: 0.6875rem;
	}

	.ws-page--home .ws-home-value__number {
		font-size: 1.5rem;
		font-weight: 300;
	}

	.ws-page--home .ws-home-value__title {
		margin-bottom: 6px;
	}

	.ws-page--home .ws-home-value__text {
		line-height: 1.85;
	}

	/* ---------- RECRUIT ---------- */
	.ws-page--home .ws-home-recruit {
		padding: 72px 0 76px;
	}

	.ws-page--home .ws-home-recruit__grid {
		gap: 26px;
	}

	/* 写真があるときは、見出しのすぐ下に写真を置く */
	.ws-page--home .ws-home-recruit__grid:has(.ws-home-recruit__photo img) {
		grid-template-areas:
			"head"
			"media"
			"text"
			"cta";
	}

	.ws-page--home .ws-home-recruit__head .ws-home-heading {
		font-size: clamp(1.5rem, 7.2vw, 2rem);
	}

	.ws-page--home .ws-home-recruit__sub {
		margin-bottom: 16px;
		font-size: 0.75rem;
	}

	/* 写真は画面の端から端まで大きく見せる */
	.ws-page--home .ws-home-recruit__media {
		margin: 2px calc(-1 * var(--ws-gutter)) 0;
	}

	.ws-page--home .ws-home-recruit__photo {
		aspect-ratio: 5 / 4;
		border-radius: 0;
	}

	/* 写真が無い間は、色だけの大きな枠を出さない（枠ごと消し、並びの行も作らない） */
	.ws-page--home .ws-home-recruit__photo.is-empty {
		display: none;
	}

	.ws-page--home .ws-home-recruit__grid:has(.ws-home-recruit__photo.is-empty) {
		grid-template-areas:
			"head"
			"text"
			"cta";
	}

	.ws-page--home .ws-home-recruit__grid:has(.ws-home-recruit__photo.is-empty) .ws-home-recruit__media {
		display: none;
	}

	.ws-page--home .ws-home-recruit__cta .ws-button {
		width: 100%;
		min-height: 54px;
	}

	/* ---------- COMPANY ---------- */
	.ws-page--home .ws-home-company {
		padding: 0 0 72px;
	}

	.ws-page--home .ws-home-company__grid {
		gap: 40px;
	}

	/* 写真を先に、画面の端から端まで見せる */
	.ws-page--home .ws-home-company__photo {
		order: -1;
		margin-inline: calc(-1 * var(--ws-gutter));
	}

	.ws-page--home .ws-home-company__media {
		aspect-ratio: 16 / 10;
		border-radius: 0;
	}

	.ws-page--home .ws-home-company__text {
		margin-top: 16px;
	}

	.ws-page--home .ws-home-company__cta {
		margin-top: 24px;
	}

	.ws-page--home .ws-home-company__cta .ws-button {
		width: 100%;
		min-height: 54px;
	}

	/* ---------- CONTACT ---------- */
	.ws-page--home .ws-home-contact {
		padding: 68px 0 80px;
	}

	.ws-page--home .ws-home-contact__grid {
		gap: 26px;
	}

	.ws-page--home .ws-home-contact__head .ws-home-text {
		margin-top: 16px;
	}

	.ws-page--home .ws-home-contact__form .wpcf7-form {
		gap: 14px 16px;
	}

	.ws-page--home .ws-home-contact__form label {
		line-height: 1.5;
	}

	.ws-page--home .ws-home-contact__form input[type="text"],
	.ws-page--home .ws-home-contact__form input[type="email"],
	.ws-page--home .ws-home-contact__form input[type="tel"] {
		min-height: 50px;
		margin-top: 5px;
	}

	.ws-page--home .ws-home-contact__form textarea {
		height: 136px;
		min-height: 120px;
		margin-top: 5px;
	}

	.ws-page--home .ws-home-contact__form .wpcf7-form > p:has(.wpcf7-submit) {
		margin-top: 6px;
	}

	.ws-page--home .ws-home-contact__form .wpcf7-submit {
		width: 100%;
		min-height: 54px;
	}
}

/* 幅の狭いスマホ（599px 以下）: 写真を縦長に見せる（画面の高さの56%まで） */
@media (max-width: 599px) {
	.ws-page--home .ws-home-hero__media {
		width: 100%;
		min-height: 280px;
		max-height: 56vh;
		max-height: 56svh;
		aspect-ratio: 1 / 1.08;
	}
}

/* 360px 以上: FVのボタン2つを横に並べる */
@media (min-width: 360px) and (max-width: 599px) {
	.ws-page--home .ws-home-hero__cta {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ws-page--home .ws-home-hero__cta .ws-button {
		min-height: 52px;
		padding: 8px 6px;
		font-size: 0.875rem;
		letter-spacing: 0.02em;
	}

	.ws-page--home .ws-home-hero__cta .ws-button::after {
		margin-left: 6px;
	}
}
