/* ===== Top page redesigned blocks (index only) ===== */
.top .main {
	background: #fff;
}

.home_sec {
	--home-blue: #008de7;
	--home-navy: #1c3a56;
	--home-text: #2f2f2f;
	--home-muted: #6b7a86;
	--home-line: #d5dde4;
	padding: 70px 0;
	color: var(--home-text);
}

.home_sec + .home_sec {
	padding-top: 20px;
}

.home_head {
	text-align: center;
	margin-bottom: 40px;
}

.home_head_left {
	text-align: left;
}

.home_company_head {
	text-align: center;
}

.home_company_head .home_en {
	display: block;
	margin: 0 0 6px;
}

.home_company_head h3 {
	padding-bottom: 0;
	border-top: none !important;
	border-bottom: none !important;
}

.home_head .home_en {
	margin: 0 0 8px;
	font-size: 13px;
	letter-spacing: .18em;
	color: var(--home-blue);
	font-weight: 700;
}

.home_sec h3 {
	margin: 0;
	padding: 0;
	border-top: none !important;
	border-bottom: none !important;
	font-size: 30px;
	font-weight: 700;
	color: var(--home-navy);
	position: relative;
}

/* 見出し下の短い青線は全セクションで非表示 */
.home_sec .home_head h3::after {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	background: none !important;
}

.home_text_box {
	min-height: 72px;
	margin: 14px 0 18px;
	border: 1px dashed #c5d0d8;
	background: rgba(255, 255, 255, .55);
	border-radius: 6px;
}

.home_dx .home_text_box {
	border-color: transparent;
	font-size: 14px;
	line-height: 1.9;
	word-break: keep-all;
	overflow-wrap: normal;
	line-break: strict;
}

.home_dx .home_btn_wrap {
	text-align: right;
}

.home_btn_wrap {
	margin: 0;
}

.home_btn {
	display: inline-block;
	min-width: 180px;
	padding: 14px 28px;
	background: var(--home-blue);
	color: #fff !important;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	border-radius: 6px;
	border: 1px solid var(--home-blue);
	text-decoration: none;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
	box-sizing: border-box;
}

.home_btn:hover {
	background: #006aad;
	border-color: #006aad;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 106, 173, .22);
}

.home_btn_entry {
	background: #3eb4e0;
	border-color: #3eb4e0;
	color: #fff !important;
}

.home_btn_entry:hover {
	background: #2a9fc9;
	border-color: #2a9fc9;
	color: #fff !important;
}

.home_btn_ghost {
	background: #fff;
	color: var(--home-blue) !important;
	border: 1px solid var(--home-blue);
	cursor: pointer;
	text-decoration: none !important;
}

.home_btn_ghost:hover {
	background: #fff;
	color: var(--home-blue) !important;
	border-color: var(--home-blue);
	transform: none;
	box-shadow: none;
	text-decoration: none !important;
}

/* ---- COMPANY (animated cards) ---- */
.home_company_list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.home_company_item {
	opacity: 0;
	transform: translateY(28px);
	animation: homeRise 0.8s ease forwards;
	animation-delay: calc(var(--i) * 0.12s + 0.1s);
}

.home_company_card {
	display: block;
	height: 100%;
	background: #fff;
	border: 1px solid #d9e1e7;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 6px 16px rgba(28, 58, 86, .06);
	transition: transform .35s ease, box-shadow .35s ease;
}

.home_company_card:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 28px rgba(28, 58, 86, .14);
}

.home_company_media {
	display: block;
	height: 140px;
	overflow: hidden;
	position: relative;
}

.home_company_media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.02);
	animation: homeKenBurns 12s ease-in-out infinite alternate;
	transition: transform .5s ease;
}

.home_company_card:hover .home_company_media img {
	transform: scale(1.12);
	animation-play-state: paused;
}

.home_company_body {
	display: block;
	padding: 16px 14px 20px;
	text-align: center;
}

.home_company_title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--home-navy);
	margin-bottom: 14px;
	letter-spacing: .02em;
}

.home_company_more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 112px;
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--home-blue);
	border-radius: 999px;
	background: #fff;
	color: var(--home-blue) !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1;
	box-sizing: border-box;
	text-decoration: none !important;
	transition: background .25s ease, color .25s ease, transform .25s ease;
}

a.home_company_more:hover,
.home_company_card:hover .home_company_more {
	background: var(--home-blue);
	color: #fff !important;
	transform: translateY(-1px);
	text-decoration: none !important;
}

.home_company_more_fill {
	background: var(--home-blue);
	color: #fff !important;
}

a.home_company_more_fill:hover,
.home_company_card:hover .home_company_more_fill {
	background: #006aad;
	border-color: #006aad;
	color: #fff !important;
}

/* ---- DX ---- */
.home_dx_panel {
	display: flex;
	align-items: center;
	gap: 40px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 36px 32px;
	box-sizing: border-box;
}

.home_dx_media {
	flex: 0 0 46%;
	text-align: center;
}

.home_dx_media img {
	max-width: 100%;
	height: auto;
	display: inline-block;
	animation: homeFloat 4.5s ease-in-out infinite;
}

.home_dx_body {
	flex: 1;
}

.home_dx_lead {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--home-navy);
	line-height: 1.7;
}

/* ---- RECRUIT ---- */
.home_recruit_hero {
	display: flex;
	align-items: stretch;
	gap: 28px;
	margin-bottom: 28px;
	background: rgba(255, 255, 255, .75);
	border: 1px solid #d9e1e7;
	border-radius: 12px;
	overflow: hidden;
}

.home_recruit_hero_media {
	flex: 0 0 48%;
	min-height: 260px;
	overflow: hidden;
}

.home_recruit_hero_media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	animation: homeKenBurns 14s ease-in-out infinite alternate;
}

.home_recruit_hero_body {
	flex: 1;
	padding: 36px 28px 32px 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.home_recruit_catch {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
	color: var(--home-navy);
	letter-spacing: .04em;
	line-height: 1.5;
}

.home_recruit_hero .home_text_box {
	font-size: 13px;
	line-height: 1.8;
	border-color: transparent;
}

.home_recruit_hero .home_btn_wrap {
	text-align: right;
}

.home_recruit_list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	align-items: stretch;
}

.home_recruit_item {
	display: flex;
	height: 100%;
}

.home_recruit_card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: #fff;
	border: 1px solid #d9e1e7;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(28, 58, 86, .05);
	transition: transform .3s ease, box-shadow .3s ease;
}

.home_recruit_card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 24px rgba(28, 58, 86, .12);
}

.home_recruit_media {
	height: 150px;
	overflow: hidden;
}

.home_recruit_media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .45s ease;
}

.home_recruit_card:hover .home_recruit_media img {
	transform: scale(1.08);
}

.home_recruit_body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 16px 20px;
	box-sizing: border-box;
}

.home_recruit_body h4 {
	width: auto;
	margin: 0 0 10px;
	padding: 0;
	background: none;
	color: var(--home-navy);
	font-size: 18px;
	font-weight: 700;
	text-align: left;
}

.home_recruit_item:nth-child(1) .home_text_box,
.home_recruit_item:nth-child(3) .home_text_box {
	font-size: 13px;
	line-height: 1.8;
}

.home_recruit_body .home_text_box {
	margin-bottom: 16px;
	border-color: transparent;
}

.home_recruit_body .home_btn_wrap {
	margin-top: auto;
	text-align: right;
}

/* ---- CONTACT ---- */
.home_contact_panel {
	display: flex;
	align-items: center;
	gap: 36px;
	background: rgba(255, 255, 255, .75);
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 36px 32px;
	box-sizing: border-box;
}

.home_contact_media {
	flex: 0 0 180px;
	text-align: center;
}

.home_contact_media img {
	width: 120px;
	height: auto;
	display: inline-block;
	animation: homeFloat 3.8s ease-in-out infinite;
}

.home_contact_body {
	flex: 1;
}

.home_contact_lead {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.9;
	color: var(--home-navy);
	font-weight: 700;
}

.home_contact .home_btn_wrap {
	text-align: right;
	margin-top: 3.8em; /* リード文の約2行分下げる */
}

/* ---- motion ---- */
@keyframes homeRise {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes homeKenBurns {
	from { transform: scale(1.02) translate3d(0, 0, 0); }
	to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes homeFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@media screen and (max-width: 980px) {
	.home_company_list {
		grid-template-columns: repeat(3, 1fr);
	}

	.home_dx_panel,
	.home_recruit_hero,
	.home_contact_panel {
		flex-direction: column;
		padding: 28px 20px;
	}

	.home_dx_media,
	.home_recruit_hero_media,
	.home_contact_media {
		flex-basis: auto;
		width: 100%;
	}

	.home_recruit_hero_media {
		min-height: 200px;
	}

	.home_recruit_hero_body {
		padding: 8px 8px 8px;
	}

	.home_recruit_list {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 640px) {
	.home_sec {
		padding: 48px 0;
	}

	.home_sec h3 {
		font-size: 24px;
	}

	.home_company_list {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.home_company_media {
		height: 110px;
	}

	.home_recruit_catch {
		font-size: 20px;
	}

	.home_btn {
		min-width: 160px;
		padding: 12px 20px;
		font-size: 14px;
	}
}
