/* Homepage */
.page-home .section:nth-of-type(even) { background: transparent; }

/* Hero */
.home-hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 64px;
	min-height: 420px;
	background-color: #e8f4f8;
	background-image: var(--hh-hero-image);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center right;
}

.home-hero .container {
	text-align: left;
}

.home-hero-copy {
	width: min(68ch, 100%);
	max-width: 68ch;
}

.home-hero-title {
	margin: 0 0 14px;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.35;
	color: #0b2a5b;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-align: justify;
	text-justify: inter-character;
}

.home-hero-lead {
	margin: 0 0 26px;
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.75;
	color: rgba(15, 23, 42, 0.82);
	text-align: justify;
	text-justify: inter-character;
}

.home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: flex-start;
}

.home-hero-actions .hh-btn {
	border-radius: 0;
	padding: 14px 22px;
	font-size: 15px;
	font-weight: 700;
}

/* About + stats (HiTech-style 50/50) */
.home-about {
	padding: 0;
	background: #f4f6f8;
}

.home-about .container {
	padding-top: 52px;
	padding-bottom: 48px;
}

.home-about-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 36px;
	align-items: start;
}

.home-about-title {
	margin: 0 0 18px;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.25;
	color: #0b2a5b;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.home-about-text {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.75;
	color: rgba(15, 23, 42, 0.78);
}

.home-about-cta-wrap {
	margin-top: 22px;
}

.home-about-cta {
	border-radius: 0;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 700;
}

/* Stats panel — light navy gradient, 2×3 grid */
.home-about-stats-panel {
	padding: 22px 20px;
	background: linear-gradient(145deg, rgba(11, 42, 91, 0.08) 0%, rgba(11, 127, 178, 0.12) 55%, rgba(11, 42, 91, 0.06) 100%);
	border: 1px solid rgba(11, 42, 91, 0.1);
	box-shadow: 0 14px 32px rgba(11, 42, 91, 0.08);
}

.home-about .home-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.home-about .home-stat-card {
	padding: 20px 14px 18px;
	text-align: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
	min-width: 0;
	container-type: inline-size;
}

.home-about .home-stat-card.is-highlight {
	background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
	border-color: #f59e0b;
	box-shadow: 0 12px 28px rgba(245, 158, 11, 0.2);
	transform: translateY(-2px);
}

.home-about .home-stat-icon {
	width: 90px;
	height: 90px;
	margin: 0 auto 12px;
	color: #0b7fb2;
}

.home-about .home-stat-icon svg {
	width: 90px;
	height: 90px;
	display: block;
}

.home-about .home-stat-card.is-highlight .home-stat-icon {
	color: #d97706;
}

.home-about .home-stat-number {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	column-gap: 2px;
	max-width: 100%;
	margin: 0 0 8px;
	line-height: 1.1;
}

.home-about .home-stat-value {
	font-size: clamp(22px, 10.5cqi, 40px);
	font-weight: 900;
	color: #0b2a5b;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.home-about .home-stat-card.is-highlight .home-stat-value {
	color: #b45309;
}

.home-about .home-stat-unit {
	font-size: clamp(16px, 6.5cqi, 26px);
	font-weight: 800;
	color: #0b7fb2;
}

.home-about .home-stat-card.is-highlight .home-stat-unit {
	color: #d97706;
}

.home-about .home-stat-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(15, 23, 42, 0.72);
	font-weight: 600;
}

/* Navy CTA band within about section */
.home-about-navy-band {
	padding: 40px 0 44px;
	background: linear-gradient(180deg, #0b2a5b, #123d6e);
	color: #fff;
}

.home-about-navy-inner {
	max-width: 920px;
	margin: 0 auto;
	text-align: center;
}

.home-about-navy-inner p {
	margin: 0 0 12px;
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.95);
}

.home-about-navy-action {
	margin-top: 20px;
}

.home-about-navy-band .hh-btn-accent {
	border-radius: 0;
}

/* Services — 50/50 dual columns */
.home-services-dual {
	padding-top: 52px;
	padding-bottom: 52px;
}

.home-services-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.home-service-column {
	padding: 28px 26px 24px;
	border: 1px solid #d9d9d9;
	background: #fff;
	box-shadow: 0 12px 28px rgba(2, 6, 23, 0.06);
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.home-service-column--bim {
	border-top: 4px solid #0b2a5b;
}

.home-service-column--dx {
	border-top: 4px solid #0b7fb2;
}

.home-service-column-title {
	margin: 0 0 10px;
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.25;
	color: #0b2a5b;
	font-weight: 800;
}

.home-service-column-sub {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(15, 23, 42, 0.72);
}

.home-service-links {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	flex: 1;
}

.home-service-links li {
	margin: 0 0 10px;
	padding: 0 0 10px;
	border-bottom: 1px solid #eceff3;
}

.home-service-links li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.home-service-links a {
	display: block;
	padding: 4px 0;
	color: #007abd;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
}

.home-service-links a:hover {
	text-decoration: underline;
	color: #0b2a5b;
}

.home-service-column-cta {
	margin: 0;
}

.home-service-column-cta .hh-btn {
	border-radius: 0;
}

/* Why Workstation — 2×2 reason cards */
.home-why {
	padding-top: 56px;
	padding-bottom: 56px;
	background: #fff;
}

.home-why-title {
	margin: 0 0 18px;
	text-align: center;
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.25;
	color: #0b2a5b;
	font-weight: 800;
}

.home-why-title::after {
	content: '';
	display: block;
	width: 56px;
	height: 3px;
	margin: 14px auto 0;
	background: #d4a017;
	border-radius: 2px;
}

.home-why-subtitle {
	margin: 0 auto 40px;
	max-width: 920px;
	text-align: center;
	font-size: 16px;
	line-height: 1.75;
	color: rgba(15, 23, 42, 0.72);
}

.home-why-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 24px;
	padding-top: 12px;
}

.home-why-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	min-width: 0;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	overflow: visible;
}

.home-why-card.is-featured {
	border-color: #d4a017;
	box-shadow: none;
}

.home-why-card.is-featured .home-why-card-main {
	padding-top: 36px;
}

.home-why-num {
	position: absolute;
	top: -18px;
	left: 18px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 0;
	font-size: 20px;
	font-weight: 500;
	color: #0b2a5b;
	line-height: 1;
	background: #fff;
	border: 1px solid #e0e0e0;
	box-shadow: none;
}

.home-why-badge {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 4;
	padding: 7px 14px;
	background: #d4a017;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: none;
	border-radius: 0;
}

.home-why-card-main {
	display: flex;
	align-items: center;
	gap: 14px 16px;
	flex: 1;
	min-width: 0;
	padding: 28px 20px 16px;
}

.home-why-illustration {
	flex: 0 0 38%;
	max-width: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.home-why-img {
	width: 100%;
	max-width: 180px;
	height: auto;
	display: block;
	object-fit: contain;
}

.home-why-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-top: 2px;
}

.home-why-card-title {
	margin: 0 0 10px;
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.35;
	font-weight: 800;
}

.home-why-card--blue .home-why-card-title { color: #1a3b70; }
.home-why-card--green .home-why-card-title { color: #2d5a27; }
.home-why-card--orange .home-why-card-title { color: #8b5e1b; }
.home-why-card--gold .home-why-card-title { color: #b8860b; }

.home-why-card-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: rgba(15, 23, 42, 0.78);
}

.home-why-highlight {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding: 12px 16px;
	border-radius: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	text-align: center;
	min-width: 0;
}

.home-why-highlight-icon {
	flex: 0 0 auto;
	display: inline-flex;
	width: 22px;
	height: 22px;
}

.home-why-highlight-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.home-why-highlight-text {
	min-width: 0;
	font-size: clamp(12px, 1.1vw, 14px);
	line-height: 1.45;
}

.home-why-card--blue .home-why-highlight {
	background: #eff6ff;
	color: #1a3b70;
}
.home-why-card--blue .home-why-highlight-icon { color: #1a3b70; }

.home-why-card--green .home-why-highlight {
	background: #f0fdf4;
	color: #2d5a27;
}
.home-why-card--green .home-why-highlight-icon { color: #2d5a27; }

.home-why-card--orange .home-why-highlight {
	background: #faf5ef;
	color: #8b5e1b;
}
.home-why-card--orange .home-why-highlight-icon { color: #8b5e1b; }

.home-why-card--gold .home-why-highlight {
	background: #fffbeb;
	color: #b8860b;
}
.home-why-card--gold .home-why-highlight-icon { color: #d4a017; }

.home-why-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 32px 0 0;
	text-align: center;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(15, 23, 42, 0.72);
	font-weight: 600;
}

.home-why-footer-icon {
	display: inline-flex;
	color: #0b7fb2;
}

/* Closing CTA after Why Us */
.home-why-closing-cta {
	padding: 48px 0;
	background: linear-gradient(180deg, #0b2a5b, #123d6e);
	color: #fff;
	text-align: center;
}

.home-why-closing-cta-inner {
	max-width: 920px;
	margin: 0 auto;
}

.home-why-closing-cta-inner p {
	margin: 0 0 12px;
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.95);
}

.home-why-closing-cta-action {
	margin-top: 18px;
}

.home-why-closing-cta .hh-btn-accent {
	border-radius: 0;
}

/* Homepage blog — 最新情報・技術コラム */
.home-blog {
	padding-top: 56px;
	padding-bottom: 60px;
	background: #f3f5f8;
}

.home-blog-title {
	margin: 0 0 32px;
	text-align: center;
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.25;
	font-weight: 400;
	color: #334155;
}

.home-blog-title-lead {
	font-weight: 400;
}

.home-blog-title-accent {
	font-weight: 800;
	color: #0b2a5b;
}

.home-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.home-blog-card {
	background: #fff;
	border: 1px solid #d9d9d9;
	box-shadow: 0 10px 24px rgba(2, 6, 23, 0.05);
	overflow: hidden;
}

.home-blog-card-media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	background-size: cover;
	background-position: center;
	text-decoration: none;
}

.home-blog-card-body {
	padding: 18px 18px 20px;
}

.home-blog-card-title {
	margin: 0 0 10px;
	font-size: 17px;
	line-height: 1.4;
	font-weight: 800;
}

.home-blog-card-title a {
	color: #0b2a5b;
	text-decoration: none;
}

.home-blog-card-title a:hover {
	color: #007abd;
	text-decoration: underline;
}

.home-blog-card-date {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(15, 23, 42, 0.55);
}

/* Pain point CTA band */
.home-pain-cta {
	padding: 48px 0;
	background: linear-gradient(180deg, #0b7fb2, #0a6b96);
	color: #fff;
	text-align: center;
}

.home-pain-cta-inner p {
	margin: 0 0 12px;
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.95);
}

.home-pain-cta-action {
	margin-top: 18px;
}

.home-pain-cta .hh-btn-accent {
	border-radius: 0;
}

/* Case studies 2×2 */
.home-cases {
	padding-top: 48px;
	padding-bottom: 52px;
	background: #f8fafc;
}

.home-cases-title {
	margin: 0 0 24px;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.3;
	color: #0b2a5b;
	font-weight: 800;
	text-align: center;
}

.home-case-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.home-case-card {
	display: block;
	text-decoration: none;
	background: #fff;
	border: 1px solid #d9d9d9;
	box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-case-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(2, 6, 23, 0.1);
}

.home-case-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: rgba(2, 6, 23, 0.04);
}

.home-case-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.home-case-body {
	padding: 16px 18px 18px;
}

.home-case-tag {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.home-case-tag.tag-navy { background: #0b2a5b; }
.home-case-tag.tag-green { background: #15803d; }
.home-case-tag.tag-red { background: #dc2626; }
.home-case-tag.tag-bronze { background: #b45309; }

.home-case-title {
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 1.45;
	font-weight: 800;
	color: #0b2a5b;
}

.home-case-card .hh-link {
	font-size: 14px;
	font-weight: 700;
}

.home-section-cta {
	margin-top: 28px;
	text-align: center;
}

.home-section-cta .hh-btn {
	border-radius: 0;
}

@media (max-width: 1024px) {
	.home-about-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.home-about .home-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.home-hero {
		padding: 48px 0 40px;
		min-height: 360px;
		background-image: var(--hh-hero-image);
		background-position: center;
	}

	.home-hero-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.home-hero-actions .hh-btn {
		width: auto;
	}

	.home-about .home-stats-grid {
		grid-template-columns: 1fr;
	}

	.home-services-columns {
		grid-template-columns: 1fr;
	}

	.home-why-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.home-why-card {
		overflow: visible;
	}

	.home-why-num {
		top: -16px;
		left: 14px;
		width: 46px;
		height: 46px;
		font-size: 18px;
	}

	.home-why-badge {
		padding: 6px 12px 6px 18px;
		font-size: 10px;
	}

	.home-why-card-main {
		flex-direction: column;
		padding: 24px 16px 12px;
	}

	.home-why-illustration {
		flex: 0 0 auto;
		max-width: 160px;
		margin: 0 auto;
	}

	.home-why-card-content {
		padding-top: 0;
		text-align: center;
	}

	.home-why-highlight {
		padding: 10px 12px;
	}

	.home-case-grid {
		grid-template-columns: 1fr;
	}

	.home-blog-grid {
		grid-template-columns: 1fr;
	}
}
