/**
 * Hero セクション（.hero）
 * BEM: .hero, .hero__element, .hero__element--modifier
 * 背景ビジュアル（.hero__background）の上にコンテンツ（.hero__content）を重ねる構造。
 * モバイルファースト: 768px以下は縦積み、769px以上は右寄せ背景＋左テキスト。
 */

.hero {
	position: relative;
	overflow: hidden;
	min-height: 56vh;
	display: flex;
	background-color: var(--color-bg);
}

/*
 * 背景・オーバーレイは「フルブリード」テクニックで画面幅100%に固定する。
 * 親要素（.hero__inner 等）の padding や max-width の影響を受けないようにするため、
 * inset:0 ではなく viewport 基準（100vw + left:50%/margin-left:-50vw）で幅を決定する。
 */
.hero__background,
.hero__overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
}

.hero__background {
	z-index: 0;
}

.hero__background-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 本番写真は職人が画面右寄りに写っているため、中央よりやや右に寄せてクロップする */
	object-position: 75% center;
}

.hero__overlay {
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgb(255 255 255 / 92%) 0%,
		rgb(255 255 255 / 78%) 45%,
		rgb(255 255 255 / 92%) 100%
	);
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: 48px var(--container-padding);
	display: flex;
	align-items: center;
}

.hero__content {
	max-width: 560px;
}

.hero__title {
	margin: 0 0 20px;
	font-family: "游明朝", YuMincho, "Hiragino Mincho ProN", "HG明朝E", serif;
	font-size: 2rem;
	font-weight: 900;
	line-height: 1.4;
	color: var(--color-text);
}

.hero__title-highlight {
	position: relative;
	font-size: 1.15em;
	color: var(--color-navy);
}

.hero__title-highlight::after {
	content: "";
	position: absolute;
	inset: auto 0 2px 0;
	height: 0.4em;
	background-color: var(--color-gold);
	opacity: 0.4;
	z-index: -1;
}

.hero__description {
	margin: 0 0 32px;
	font-size: 1rem;
	line-height: 1.9;
}

.hero__actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hero__tel,
.hero__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 20px;
	border-radius: 4px;
	text-decoration: none;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.hero__tel:hover,
.hero__cta:hover {
	filter: brightness(0.92);
	transform: translateY(-2px);
}

.hero__tel {
	background-color: var(--color-navy);
	color: #ffffff;
}

.hero__tel-icon,
.hero__cta-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.hero__tel-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	text-align: left;
}

.hero__tel-number {
	font-size: 1.3rem;
	font-weight: 700;
}

.hero__tel-hours {
	font-size: 0.75rem;
	opacity: 0.85;
}

.hero__cta {
	background-color: var(--color-gold);
	/* 白文字だとコントラスト比が不足するため、ネイビー文字にして視認性を確保する */
	color: var(--color-navy);
}

.hero__cta-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	text-align: left;
}

.hero__cta-label {
	font-size: 1.05rem;
	font-weight: 700;
}

.hero__cta-note {
	font-size: 0.75rem;
	opacity: 0.9;
}

/* デスクトップ（769px以上）: 背景を右寄せ表示し、左側のテキストの可読性を左→右グラデーションで確保 */
@media (min-width: 769px) {
	.hero {
		min-height: 82vh;
	}

	.hero__background-image {
		/* 「right」（100%）だと職人の腕・ローラー部分が縁でクロップされるため、少し内側に戻す */
		object-position: 85% center;
	}

	.hero__overlay {
		background: linear-gradient(
			90deg,
			rgb(255 255 255 / 95%) 0%,
			rgb(255 255 255 / 85%) 38%,
			rgb(255 255 255 / 0%) 68%
		);
	}

	.hero__inner {
		padding-block: var(--section-spacing-pc);
	}

	.hero__title {
		font-size: 2.75rem;
	}

	.hero__actions {
		flex-direction: row;
	}

	.hero__tel,
	.hero__cta {
		justify-content: flex-start;
	}
}
