/*
Theme component: Front page Hero
Scope: .mast-hero
*/

/* ==================================================
   Base
================================================== */

.mast-hero,
.mast-hero * {
	box-sizing: border-box;
}

.mast-hero {
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: #fff;
	color: #111;
}

.mast-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 42%) minmax(0, 58%);
	align-items: stretch;
	width: min(calc(100% - 48px), 1110px);
	height: 720px;
	margin: 0 auto;
	padding: 0;
	overflow: hidden;
}

/* ==================================================
   Content
================================================== */

.mast-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	min-width: 0;
	margin: 0;
	padding: 50px 56px 50px 0;
	background: linear-gradient(
		90deg,
		#fff 0%,
		#fff 72%,
		rgba(255, 255, 255, 0.96) 82%,
		rgba(255, 255, 255, 0.78) 91%,
		rgba(255, 255, 255, 0) 100%
	);
}

.mast-hero__logo {
	display: block;
	width: auto;
	max-width: 220px;
	height: auto;
	margin: 0 0 28px;
	padding: 0;
}

.mast-hero__title {
	width: 100%;
	margin: 0 0 40px;
	padding: 0;
	color: #666666;
	font-family: inherit;
	font-size: clamp(2.5rem, 4vw, 4rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.04em;
	overflow-wrap: anywhere;
	transform: none;
}

.mast-hero__title::first-line {
	color: #0068b7;
}

.mast-hero__description {
	width: 100%;
	max-width: 34rem;
	margin: 0;
	padding: 0;
	color: #3f4650;
	font-family: inherit;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.85;
}

.mast-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: auto 0 0;
	padding: 0;
	transform: none;
}

.mast-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 132px;
	min-height: 56px;
	margin: 0;
	padding: 14px 28px;
	border: 1px solid #0068b7;
	border-radius: 0;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	transition:
		transform 220ms ease,
		box-shadow 220ms ease;
}

.mast-hero__button--primary {
	background-color: #fff;
	color: #0068b7;
}

.mast-hero__button--secondary {
	background-color: #0068b7;
	color: #fff;
}

.mast-hero__button--primary:hover,
.mast-hero__button--primary:focus-visible {
	border-color: #0068b7;
	background-color: #fff;
	color: #0068b7;
}

.mast-hero__button--secondary:hover,
.mast-hero__button--secondary:focus-visible {
	border-color: #0068b7;
	background-color: #0068b7;
	color: #fff;
}

.mast-hero__button:hover,
.mast-hero__button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(17, 17, 17, 0.12);
	text-decoration: none;
}

.mast-hero__button:focus-visible {
	outline: 2px solid #0068b7;
	outline-offset: 3px;
}

/* ==================================================
   Visual
================================================== */

.mast-hero__visual {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: calc(42% - 88px);
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #f2f5f8;
}

.mast-hero__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 0;
	object-fit: cover;
	object-position: center;
}

/* ==================================================
   Tablet: 768px–1099px
================================================== */

@media screen and (max-width: 1099px) {
	.mast-hero__inner {
		position: relative;
		display: grid;
		width: min(calc(100% - 40px), 1110px);
		height: 640px;
		overflow: hidden;
	}

	.mast-hero__content {
		position: relative;
		z-index: 2;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		grid-column: 1 / -1;
		width: 100%;
		height: 100%;
		padding: 44px 36px;
		background: linear-gradient(
			90deg,
			#fff 0%,
			#fff 30%,
			rgba(255, 255, 255, 0.96) 34%,
			rgba(255, 255, 255, 0.78) 38%,
			rgba(255, 255, 255, 0) 42%
		);
	}

	.mast-hero__logo,
	.mast-hero__title,
	.mast-hero__description,
	.mast-hero__actions {
		width: 42%;
	}

	.mast-hero__logo {
		max-width: 190px;
		margin: 0 0 24px;
	}

	.mast-hero__title {
		margin: 0 0 40px;
		font-size: clamp(2.25rem, 4vw, 3.5rem);
		line-height: 1.1;
		transform: none;
	}

	.mast-hero__description {
		max-width: 34rem;
		margin: 0;
		font-size: 1.15rem;
		font-weight: 600;
		line-height: 1.85;
	}

	.mast-hero__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin: auto 0 0;
		transform: none;
	}

	.mast-hero__button {
		width: 100%;
		min-width: 0;
		min-height: 56px;
		padding-right: 18px;
		padding-left: 18px;
	}

	.mast-hero__visual {
		position: absolute;
		z-index: 1;
		inset: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		overflow: hidden;
	}

	.mast-hero__image {
		display: block;
		width: 100%;
		max-width: none;
		height: 100%;
		margin: 0;
		object-fit: cover;
		object-position: center;
	}
}

/* ==================================================
   Mobile: 767px以下
================================================== */

@media screen and (max-width: 767px) {
	.mast-hero__inner {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: none;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.mast-hero__content {
		position: relative;
		z-index: 2;
		order: 1;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		width: 100%;
		min-height: 0;
		padding: 44px 20px;
		background-color: #fff;
		background-image: none;
	}

	.mast-hero__logo {
		width: auto;
		max-width: 170px;
		margin: 0 0 24px;
	}

	.mast-hero__title {
		width: 100%;
		margin: 0 0 32px;
		font-size: clamp(2.25rem, 10vw, 3rem);
		line-height: 1.14;
		transform: none;
	}

	.mast-hero__description {
		width: 100%;
		max-width: none;
		margin: 0 0 40px;
		font-size: 1.15rem;
		font-weight: 600;
		line-height: 1.85;
	}

	.mast-hero__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
		gap: 12px;
		width: 100%;
		margin: 0;
		transform: none;
	}

	.mast-hero__button {
		width: 100%;
		min-width: 0;
		min-height: 56px;
		padding: 14px 16px;
	}	
	
	.mast-hero__visual {
		position: relative;
		z-index: 1;
		inset: auto;
		order: 2;
		width: 100%;
		height: auto;
		margin: 0;
		overflow: hidden;
		aspect-ratio: 4 / 3;
		align-self: auto;
		justify-self: auto;
	}

	.mast-hero__image {
		display: block;
		width: 100%;
		max-width: none;
		height: 100%;
		margin: 0;
		object-fit: cover;
		object-position: center;
		transform: none;
	}
}
