/* ヒーローヘッダーのバリエーション集 */

/* 
	以下のコードは、ヒーローヘッダーのさまざまなスタイルバリエーションを提供します。
	main.css または custom.css に追加して使用できます。
	必要に応じてHTMLの構造も調整してください。
*/

/* ====== バリエーション1: 傾斜（スラント）デザイン ====== */
.hero-slant {
	position: relative;
	height: 85vh;
	min-height: 500px;
	overflow: hidden;
	clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-slant::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 15%;
	background: linear-gradient(to top left, white 49%, transparent 51%);
}

/* ====== バリエーション2: 分割デザイン ====== */
.hero-split {
	position: relative;
	min-height: 600px;
	background-color: var(--primary-color);
	overflow: hidden;
}

.hero-split .hero-image {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

.hero-split .hero-content {
	width: 50%;
	padding: 5rem 2rem;
	color: white;
}

@media (max-width: 767.98px) {
	.hero-split {
		display: flex;
		flex-direction: column;
	}
	
	.hero-split .hero-image {
		position: relative;
		width: 100%;
		height: 300px;
	}
	
	.hero-split .hero-content {
		width: 100%;
		padding: 3rem 1rem;
	}
}

/* ====== バリエーション3: 全画面背景動画 ====== */
.hero-video {
	position: relative;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-video video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translateX(-50%) translateY(-50%);
	z-index: -1;
}

.hero-video::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 0;
}

.hero-video .hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	color: white;
	max-width: 800px;
	padding: 2rem;
}

/* ====== バリエーション4: 3D効果のあるカード ====== */
.hero-card {
	position: relative;
	min-height: 600px;
	background-color: #f5f5f5;
	padding: 5rem 0;
	overflow: hidden;
}

.hero-card .container {
	position: relative;
}

.hero-card .hero-card-content {
	background-color: white;
	border-radius: 15px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
	padding: 3rem;
	position: relative;
	z-index: 2;
	transform: perspective(1000px) rotateY(5deg);
	transition: transform 0.5s;
}

.hero-card .hero-card-content:hover {
	transform: perspective(1000px) rotateY(0);
}

.hero-card .hero-card-image {
	position: absolute;
	top: 50%;
	right: -100px;
	transform: translateY(-50%);
	width: 500px;
	height: 500px;
	background-size: cover;
	background-position: center;
	border-radius: 15px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

@media (max-width: 991.98px) {
	.hero-card .hero-card-image {
		display: none;
	}
	
	.hero-card .hero-card-content {
		transform: none;
	}
}

/* ====== バリエーション5: 波形デザイン ====== */
.hero-wave {
	position: relative;
	min-height: 600px;
	background-color: var(--primary-color);
	display: flex;
	align-items: center;
}

.hero-wave::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 150px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23ffffff' opacity='.25'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' fill='%23ffffff' opacity='.5'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
	background-size: cover;
	background-position: center;
}

.hero-wave .hero-content {
	color: white;
	padding: 0 2rem;
	max-width: 700px;
}

/* ====== HTML構造の例 ====== */

/*
	<!-- 傾斜デザインの例 -->
	<section class="hero-slant" style="background-image: url('path/to/image.jpg');">
		<div class="container">
			<div class="hero-content">
				<!-- コンテンツ -->
			</div>
		</div>
	</section>

	<!-- 分割デザインの例 -->
	<section class="hero-split">
		<div class="hero-image" style="background-image: url('path/to/image.jpg');"></div>
		<div class="hero-content">
			<!-- コンテンツ -->
		</div>
	</section>

	<!-- 背景動画の例 -->
	<section class="hero-video">
		<video autoplay muted loop>
			<source src="path/to/video.mp4" type="video/mp4">
		</video>
		<div class="hero-content">
			<!-- コンテンツ -->
		</div>
	</section>

	<!-- 3Dカードの例 -->
	<section class="hero-card">
		<div class="container">
			<div class="row">
				<div class="col-lg-6">
					<div class="hero-card-content">
						<!-- コンテンツ -->
					</div>
				</div>
			</div>
			<div class="hero-card-image" style="background-image: url('path/to/image.jpg');"></div>
		</div>
	</section>

	<!-- 波形デザインの例 -->
	<section class="hero-wave">
		<div class="container">
			<div class="hero-content">
				<!-- コンテンツ -->
			</div>
		</div>
	</section>
*/

/* ====== 追加のカスタマイズオプション ====== */

/* 背景にグラデーションオーバーレイを追加 */
.hero-gradient-overlay::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, rgba(var(--primary-rgb), 0.8), rgba(var(--secondary-rgb), 0.8));
	z-index: 1;
}

/* 背景にパターンオーバーレイを追加 */
.hero-pattern-overlay::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
	z-index: 1;
}

/* テキストにグラデーション効果を追加 */
.hero-gradient-text {
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}