/**
 * トップページ専用スタイル
 * プロトタイプと完全に同じデザイン
 */

/* アニメーション */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.front-page-main {
	padding-top: 0;
	padding-bottom: 0;
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */
.hero {
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: var(--spacing-16) 0 var(--spacing-12) 0;
	text-align: center;
	position: relative;
	overflow: visible;
	z-index: 0;
	min-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 画像がある場合のスタイル */
.hero.has-background {
	padding: 0;
}

/* 画像を.heroの高さいっぱいに表示 */
.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.hero-background::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.2) 0%,
		rgba(0, 0, 0, 0.1) 40%,
		rgba(0, 0, 0, 0.3) 70%,
		rgba(0, 0, 0, 0.5) 100%
	);
	z-index: 1;
	pointer-events: none;
}

.hero-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 768px) {
	.hero {
		min-height: 70vh;
		padding: var(--spacing-6) 0 var(--spacing-8) 0;
	}
	
	.hero.has-background {
		min-height: 70vh;
		padding: var(--spacing-6) 0 var(--spacing-8) 0;
	}
	
	.hero-content {
		padding: 0 var(--spacing-3);
		width: 100%;
	}
	
	.hero-logo {
		margin-bottom: var(--spacing-4);
		text-align: center;
	}
	
	.hero-logo-image {
		max-width: clamp(250px, 60vw, 400px);
		width: auto;
		height: auto;
		margin: 0 auto;
	}
	
	.hero-subtitle {
		font-size: clamp(var(--text-base), 4vw, var(--text-xl));
		margin-bottom: var(--spacing-6);
		line-height: 1.8;
		letter-spacing: 0.08em;
		padding: 0 var(--spacing-2);
		text-align: center;
	}
	
	.hero-cta {
		margin-top: var(--spacing-6);
		width: 100%;
		padding: 0 var(--spacing-2);
	}
	
	.hero-cta .btn {
		width: 100%;
		max-width: 100%;
		min-width: auto;
		font-size: var(--text-base);
		font-family: var(--font-sans), sans-serif;
		font-weight: 900;
		letter-spacing: 0.05em;
		padding: var(--spacing-3) var(--spacing-4);
		white-space: normal;
	}
	
	.hero-content::before,
	.hero-content::after {
		display: none;
	}
}

/* 画像がない場合の和紙風テクスチャオーバーレイ */
.hero:not(.has-background)::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.08) 1px, transparent 1px),
		radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 80px 80px, 100px 100px, 120px 120px;
	opacity: 0.5;
	z-index: -1;
}

.hero-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	filter: none;
	opacity: 1;
}

.hero-content {
	position: relative;
	z-index: 10;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 var(--spacing-4);
}

/* 装飾的な要素 */
.hero-content::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
	opacity: 0.6;
	animation: fadeIn 1s ease-out 0.6s both;
}

.hero-content::after {
	content: '';
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	opacity: 0.5;
	animation: fadeIn 1s ease-out 0.8s both;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ヒーローロゴ */
.hero-logo {
	margin-bottom: var(--spacing-6);
	animation: fadeInUp 1s ease-out;
	text-align: center;
}

.hero-logo-image {
	max-width: clamp(300px, 50vw, 700px);
	height: auto;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
	display: block;
	margin: 0 auto;
}

/* PC画面（768px以上）でさらに大きく */
@media (min-width: 769px) {
	.hero-logo-image {
		max-width: clamp(400px, 55vw, 800px);
	}
}


.hero-subtitle {
	font-size: clamp(var(--text-2xl), 5vw, 3.5rem);
	font-family: var(--font-serif);
	font-weight: 700;
	margin-bottom: var(--spacing-8);
	opacity: 0.95;
	text-shadow: 
		0 3px 6px rgba(0, 0, 0, 0.6),
		0 1px 3px rgba(0, 0, 0, 0.4),
		0 0 30px rgba(255, 255, 255, 0.15);
	line-height: var(--leading-relaxed);
	color: var(--color-white);
	letter-spacing: 0.12em;
	-webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.2);
	animation: fadeInUp 1.2s ease-out 0.2s both;
	text-align: center;
	white-space: normal;
}

.hero-subtitle br {
	display: block;
}

/* ヒーローCTAボタン */
.hero-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-4);
	margin-top: var(--spacing-8);
}

@media (min-width: 768px) {
	.hero-cta {
		flex-direction: row;
		justify-content: center;
		gap: var(--spacing-6);
	}
}

.hero-cta .btn {
	box-shadow: 
		0 4px 12px rgba(0, 0, 0, 0.3),
		0 2px 4px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	border-width: 3px;
	margin: 0;
	display: inline-flex;
	width: auto;
	min-width: 200px;
	justify-content: center;
	text-align: center;
	line-height: var(--leading-relaxed);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateY(0);
	animation: fadeInUp 1.4s ease-out 0.4s both;
	position: relative;
	overflow: hidden;
	font-family: var(--font-sans), sans-serif;
	font-weight: 900;
	font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
	letter-spacing: 0.05em;
	text-shadow: 
		2px 2px 4px rgba(0, 0, 0, 0.4),
		1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.hero-cta .btn:hover::before {
	left: 100%;
}

.hero-cta .btn span {
	display: block;
	position: relative;
	z-index: 1;
	font-family: var(--font-sans), sans-serif;
	font-weight: 900;
	letter-spacing: 0.05em;
}

.hero-cta .btn:hover {
	transform: translateY(-2px);
	box-shadow: 
		0 6px 20px rgba(0, 0, 0, 0.4),
		0 4px 8px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	transform: translateY(-3px);
	box-shadow: var(--shadow-xl);
}

@media (max-width: 767px) {
	.hero-cta .btn {
		width: 100%;
		max-width: 320px;
	}
}

/* ==========================================================================
   セクション共通
   ========================================================================== */
.section {
	position: relative;
}

/* ページ導線カードセクションのpadding-topとmargin-topを少しだけ設定 */
.section:first-of-type,
.section:nth-of-type(2),
.section:nth-of-type(3) {
	padding-top: var(--spacing-4);
}

/* 最初のセクション内のcontainerのpadding-topも少しだけ設定 */
.section:first-of-type .container,
.section:nth-of-type(2) .container,
.section:nth-of-type(3) .container {
	padding-top: 0;
}


/* ヒーロー後のセクションの見出しのpadding-topを少しだけ設定 */
.hero + .section .section-title,
.section:nth-of-type(2) .section-title,
.section:nth-of-type(3) .section-title {
	padding-top: 0;
	margin-top: var(--spacing-2);
}

/* PCサイズ（768px以上）での余白調整 */
@media screen and (min-width: 769px) {
	.section:first-of-type,
	.section:nth-of-type(2),
	.section:nth-of-type(3) {
		padding-top: var(--spacing-6);
	}
	
	.hero + .section .section-title,
	.section:nth-of-type(2) .section-title,
	.section:nth-of-type(3) .section-title {
		margin-top: var(--spacing-4);
	}
	
	.section-title {
		margin-bottom: var(--spacing-16);
	}
}

.section-title {
	text-align: center;
	margin-bottom: var(--spacing-16);
	margin-top: 0;
	position: relative;
	font-family: var(--font-serif);
	font-weight: 700;
	color: var(--color-primary);
	text-shadow: 0 2px 4px rgba(27, 67, 50, 0.1);
	font-size: var(--text-5xl);
}

/* セクション内の最初のsection-titleのmargin-topを0に */
.section .section-title:first-child {
	margin-top: 0;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -var(--spacing-4);
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background-color: var(--color-accent);
	border-radius: var(--radius-sm);
}

/* ==========================================================================
   季節のおすすめセクション
   ========================================================================== */
.section .card img {
	width: 100%;
	height: auto;
	max-height: 500px;
	object-fit: cover;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	cursor: pointer;
	transition: opacity var(--transition-fast);
	display: block;
}

.section .card img:hover {
	opacity: 0.9;
}

.section .card .card-content {
	text-align: center;
}


/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media screen and (max-width: 768px) {
	.hero {
		padding: var(--spacing-6) 0 var(--spacing-8) 0;
		min-height: 70vh;
	}

	.hero.has-background {
		padding: var(--spacing-6) 0 var(--spacing-8) 0;
		min-height: 70vh;
	}

	.section {
		padding: var(--spacing-2xl) 0;
	}

	.section-title {
		font-size: var(--text-3xl);
		margin-bottom: var(--spacing-8);
	}

	.grid.grid-1.grid-2.grid-3 {
		gap: var(--spacing-4);
	}
	
	/* カードコンテンツを左揃えに */
	.section .card .card-content {
		text-align: left;
	}
	
	/* カードタイトルは中央揃えのまま */
	.section .card .card-title {
		text-align: center;
	}
}

@media screen and (max-width: 480px) {
	.hero {
		padding: var(--spacing-4) 0 var(--spacing-6) 0;
		min-height: 60vh;
	}

	.hero.has-background {
		padding: var(--spacing-4) 0 var(--spacing-6) 0;
		min-height: 60vh;
	}

	.hero-content {
		padding: 0 var(--spacing-2);
	}

	.hero-logo {
		margin-bottom: var(--spacing-3);
	}

	.hero-logo-image {
		max-width: clamp(220px, 55vw, 350px);
	}

	.hero-subtitle {
		font-size: clamp(var(--text-sm), 3.5vw, var(--text-lg));
		margin-bottom: var(--spacing-5);
		line-height: 1.7;
		letter-spacing: 0.05em;
		padding: 0 var(--spacing-1);
	}

	.hero-cta {
		margin-top: var(--spacing-5);
		padding: 0 var(--spacing-1);
	}

	.hero-cta .btn {
		font-size: var(--text-sm);
		font-family: var(--font-sans), sans-serif;
		font-weight: 900;
		letter-spacing: 0.05em;
		padding: var(--spacing-2) var(--spacing-3);
	}

	.section {
		padding: var(--spacing-xl) 0;
	}

	.section-title {
		font-size: var(--text-2xl);
		margin-bottom: var(--spacing-6);
	}
}
