/* ============================================================
   index.css — index.html 専用スタイル
   依存: style.css（共通）を先に読み込むこと
   ============================================================ */

/* =============================================
   HERO
   ============================================= */

#top {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	max-width: 100%;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(192, 57, 43, 0.3) 0%, transparent 50%),
		linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%),
		url("../img/top-1.jpg") center / cover no-repeat;
	transform: scale(1.05);
	animation: heroZoom 20s ease infinite alternate;
}

@keyframes heroZoom {
	from {
		transform: scale(1.05);
	}
	to {
		transform: scale(1.15);
	}
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 30% 70%, rgba(192, 57, 43, 0.15) 0%, transparent 60%), radial-gradient(ellipse at 70% 30%, rgba(245, 197, 24, 0.1) 0%, transparent 60%);
}

.hero-grain {
	position: absolute;
	inset: 0;
	opacity: 0.4;
	background-image: url("../img/top-4.jpg");
}

.hero-frame {
	position: absolute;
	inset: 20px;
	border: 1px solid rgba(245, 197, 24, 0.2);
	pointer-events: none;
}

.hero-frame::before,
.hero-frame::after {
	content: "";
	position: absolute;
	width: 30px;
	height: 30px;
	border-color: var(--yellow);
	border-style: solid;
}

.hero-frame::before {
	top: -1px;
	left: -1px;
	border-width: 2px 0 0 2px;
}

.hero-frame::after {
	bottom: -1px;
	right: -1px;
	border-width: 0 2px 2px 0;
}

.hero-content {
	position: relative;
	text-align: center;
	z-index: 2;
}

.hero-tagline {
	font-family: var(--font-heading);
	font-size: clamp(0.65rem, 1.5vw, 0.9rem);
	letter-spacing: 0.6em;
	color: var(--yellow);
	margin-bottom: 20px;
	opacity: 0;
	animation: fadeInUp 1s forwards 3.5s;
}

.hero-sign {
	font-family: var(--font-script);
	font-size: clamp(3rem, 10vw, 7rem);
	color: var(--white);
	line-height: 1.1;
	text-shadow: 0 0 60px rgba(245, 197, 24, 0.3);
	overflow: hidden;
	white-space: nowrap;
}

.hero-sign .char {
	display: inline-block;
	opacity: 0;
	transform: translateY(30px) rotate(-5deg);
	animation: charAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes charAppear {
	to {
		opacity: 1;
		transform: translateY(0) rotate(0deg);
	}
}

.hero-divider {
	width: 80px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--yellow), var(--red), transparent);
	margin: 20px auto;
	opacity: 0;
	animation: fadeInUp 1s forwards 4.5s;
}

.hero-subtitle {
	font-family: var(--font-heading);
	font-size: clamp(0.7rem, 2vw, 1rem);
	letter-spacing: 0.5em;
	color: rgba(245, 240, 232, 0.6);
	opacity: 0;
	animation: fadeInUp 1s forwards 5s;
}

.hero-scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	opacity: 0;
	animation: fadeInUp 1s forwards 5.5s;
}

.hero-scroll span {
	font-family: var(--font-heading);
	font-size: 0.65rem;
	letter-spacing: 0.4em;
	color: var(--yellow);
}

.scroll-line {
	width: 1px;
	height: 50px;
	background: linear-gradient(to bottom, var(--yellow), transparent);
	animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
	0%,
	100% {
		opacity: 0.3;
		transform: scaleY(0.8);
	}
	50% {
		opacity: 1;
		transform: scaleY(1);
	}
}

/* =============================================
   ABOUT セクション（index内）
   ============================================= */

#about {
	background: var(--gray);
	max-width: 100%;
	padding: 100px 0;
}

#about .inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: start;
}

.about-text-ja {
	font-size: 0.95rem;
	line-height: 2;
	color: var(--white);
	margin-bottom: 24px;
}

.about-text-en {
	font-size: 0.78rem;
	line-height: 1.9;
	color: rgba(245, 240, 232, 0.45);
	font-style: italic;
	border-left: 2px solid var(--yellow);
	padding-left: 16px;
	margin-bottom: 40px;
}

.about-policy {
	background: rgba(245, 197, 24, 0.05);
	border: 1px solid rgba(245, 197, 24, 0.2);
	padding: 24px;
	margin-bottom: 40px;
}

.about-policy h3 {
	font-family: var(--font-heading);
	font-size: 0.75rem;
	letter-spacing: 0.4em;
	color: var(--yellow);
	margin-bottom: 12px;
}

.about-policy p {
	font-size: 0.82rem;
	line-height: 1.9;
	color: rgba(245, 240, 232, 0.7);
}

/* スライダー */
.about-right {
	position: relative;
	height: 600px;
}

.about-slider {
	position: relative;
	height: 100%;
	overflow: hidden;
}

.about-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.about-slide.active {
	opacity: 1;
	animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.about-slide.exit {
	animation: slideOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
	from {
		opacity: 0;
		clip-path: inset(0 100% 0 0);
	}
	to {
		opacity: 1;
		clip-path: inset(0 0% 0 0);
	}
}

@keyframes slideOut {
	from {
		opacity: 1;
		clip-path: inset(0 0% 0 0);
	}
	to {
		opacity: 0;
		clip-path: inset(0 0 0 100%);
	}
}

.about-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(20%) contrast(1.1);
}

.about-slide-frame {
	position: absolute;
	inset: 15px;
	border: 1px solid rgba(245, 197, 24, 0.3);
	pointer-events: none;
}

.about-slide-num {
	position: absolute;
	bottom: 25px;
	right: 25px;
	font-family: var(--font-display);
	font-size: 3rem;
	color: rgba(245, 197, 24, 0.2);
	line-height: 1;
}

.about-slider-dots {
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}

.slider-dot {
	width: 20px;
	height: 2px;
	background: rgba(245, 240, 232, 0.2);
	cursor: pointer;
	transition: all 0.3s;
}

.slider-dot.active {
	width: 40px;
	background: var(--yellow);
}

/* =============================================
   GALLERY セクション（index内 プレビュー4枚）
   ============================================= */

#gallery {
	padding: 100px 40px;
	max-width: 1400px;
	margin: 0 auto;
}

.gallery-desc {
	font-size: 0.85rem;
	color: rgba(245, 240, 232, 0.5);
	letter-spacing: 0.1em;
	margin-bottom: 50px;
	max-width: 600px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 50px;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	cursor: pointer;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	filter: grayscale(30%) contrast(1.1);
}

.gallery-item:hover img {
	transform: scale(1.08);
}

.gallery-item-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.4s;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
}

.gallery-item:hover .gallery-item-overlay {
	opacity: 1;
}

.gallery-item-title {
	font-family: var(--font-heading);
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	color: var(--white);
}

.gallery-item-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 50px;
	height: 50px;
	background: rgba(245, 197, 24, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-item-icon {
	transform: translate(-50%, -50%) scale(1);
}

.gallery-item-icon i {
	color: var(--black);
	font-size: 1.2rem;
}

.gallery-footer {
	text-align: center;
}

/* =============================================
   CONTACT セクション（index内）
   ============================================= */

#contact {
	background: var(--gray);
	max-width: 100%;
	padding: 100px 0;
}

#contact .inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
}

.contact-info-item {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.contact-info-item i {
	color: var(--yellow);
	font-size: 1.2rem;
	width: 24px;
	text-align: center;
}

.contact-info-item span {
	font-size: 0.85rem;
	color: rgba(245, 240, 232, 0.7);
	letter-spacing: 0.05em;
}

.contact-social {
	display: flex;
	gap: 16px;
	margin-top: 40px;
	margin-bottom: 40px;
}

.social-btn {
	width: 48px;
	height: 48px;
	border: 1px solid rgba(245, 240, 232, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--white);
	font-size: 1.1rem;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.social-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--yellow);
	transform: scale(0);
	transition: transform 0.3s;
}

.social-btn:hover::before {
	transform: scale(1);
}
.social-btn:hover {
	color: var(--black);
	border-color: var(--yellow);
}
.social-btn i {
	position: relative;
	z-index: 1;
}

.contact-right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
}

.contact-cta-text {
	font-family: var(--font-heading);
	font-size: clamp(1rem, 2.5vw, 1.4rem);
	letter-spacing: 0.1em;
	line-height: 1.6;
	color: var(--white);
}

.contact-cta-text span {
	color: var(--yellow);
}

.contact-cta-sub {
	font-size: 0.82rem;
	color: rgba(245, 240, 232, 0.5);
	line-height: 1.8;
}

/* =============================================
   レスポンシブ
   ============================================= */

@media (max-width: 900px) {
	.about-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.about-right {
		height: 400px;
	}
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 50px;
	}
	.hero-sign {
		font-size: clamp(2.5rem, 12vw, 5rem);
	}
	#about .inner,
	#contact .inner {
		padding: 0 20px;
	}
	#gallery {
		padding: 80px 20px;
	}
}

@media (max-width: 480px) {
	.gallery-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
}
