* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif;
	line-height: 1.7;
	color: #2c3e50;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	min-height: 100vh;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
header {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	font-size: 2.5rem;
	font-weight: bold;
	background: linear-gradient(45deg, #8B4513, #DAA520);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-decoration: none;
	letter-spacing: 2px;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-links a {
	text-decoration: none;
	color: #2c3e50;
	font-weight: 500;
	transition: color 0.3s;
	cursor: pointer;
	padding: 0.5rem 1rem;
	border-radius: 25px;
	transition: all 0.3s ease;
}

.nav-links a:hover {
	background: rgba(139, 69, 19, 0.1);
	color: #8B4513;
}

/* Page Management */
.page {
	display: none;
	min-height: 100vh;
	padding-top: 80px;
}

.page.active {
	display: block;
}

/* Hero Section */
.hero {
	/* 既存の見た目はそのまま残す＝画像未指定時のフォールバック */
	background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(218, 165, 32, 0.9)),
		url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23fff" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="%23fff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23fff" opacity="0.15"/><circle cx="10" cy="60" r="1" fill="%23fff" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	color: white;
	padding: 120px 0 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	/* 擬似要素の重なりを安全に */
}

/* ★ 背景画像：CSS変数 --hero-image にURLを入れると表示される（未指定ならnoneで何も起きない） */
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--hero-image, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1.03);
	/* 端の隙間防止にほんの少しズーム */
	will-change: transform;
	z-index: -2;
	/* 本体背景の上、オーバーレイの下 */
}

/* ★ オーバーレイ：読みやすさ確保＋既存の“浮遊”表現をこちらへ移動 */
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		/* 暗幕（読みやすさ） */
		linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.55) 100%),
		/* 元の放射グラ（動き） */
		radial-gradient(circle at 30% 80%, rgba(218, 165, 32, 0.20) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.20) 0%, transparent 50%);
	animation: float 6s ease-in-out infinite;
	z-index: -1;
}

.hero-content {
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	animation: fadeInUp 1s ease-out;
	font-weight: 500;
	letter-spacing: 3px;
}

.hero p {
	font-size: 1.4rem;
	margin-bottom: 2rem;
	opacity: 0.95;
	animation: fadeInUp 1s ease-out 0.3s both;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* モーション弱めたい人向け */
@media (prefers-reduced-motion: reduce) {

	.hero::before,
	.hero::after {
		animation: none !important;
		transform: none !important;
	}
}


/* Content Sections */
.content-section {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	margin: 2rem 0;
	padding: 4rem 2rem;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
	font-size: 2.8rem;
	color: #8B4513;
	margin-bottom: 2rem;
	text-align: center;
	position: relative;
	font-weight: 300;
	letter-spacing: 2px;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: linear-gradient(45deg, #8B4513, #DAA520);
	border-radius: 2px;
}

/* Company Overview */
.company-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

.company-item {
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	padding: 2rem;
	border-radius: 15px;
	border-left: 5px solid #DAA520;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.company-item h3 {
	color: #8B4513;
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

/* Text Sections */
.text-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #34495e;
	max-width: 900px;
	margin: 0 auto;
	text-align: justify;
}

/* Gallery */
.gallery-container {
	margin-top: 3rem;
}

.gallery-tabs {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 3rem;
}

.gallery-tab {
	padding: 1rem 2rem;
	background: #f8f9fa;
	border: 2px solid #ddd;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
}

.gallery-tab.active {
	background: linear-gradient(45deg, #8B4513, #DAA520);
	color: white;
	border-color: #8B4513;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	animation: fadeInUp 0.6s ease-out 0.3s both;
}

.gallery-item {
	background: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.gallery-item:hover {
	transform: translateY(-10px) rotate(1deg);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gallery-image {
	width: 100%;
	height: 300px;
	background: #f9f9f9;
	/* デフォ背景（画像が小さいときの補助） */
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 3px solid #DAA520;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	/* 角丸（お好みで） */
}

.gallery-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 画像を枠いっぱいに表示（トリミングあり） */
	display: block;
	transition: transform 0.5s ease;
	/* hover時の拡大アニメ */
}

/* hoverエフェクト：光沢のスライド */
.gallery-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg,
			transparent,
			rgba(255, 255, 255, 0.35),
			transparent);
	transition: left 0.5s;
}

.gallery-item:hover .gallery-image::before {
	left: 100%;
}

/* hoverエフェクト：画像を少しズーム */
.gallery-item:hover .gallery-image img {
	transform: scale(1.05);
}


.gallery-info {
	padding: 1.5rem;
	text-align: center;
}

.gallery-info h3 {
	color: #8B4513;
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
}

.gallery-info p {
	color: #666;
	font-size: 0.9rem;
}

.modal-inner {
	text-align: center;
	padding: 2rem;
}

.modal-image-wrap {
	width: 100%;
	max-width: 520px;
	margin: 0 auto 1.5rem;
	border-radius: 15px;
	overflow: hidden;
	border: 3px solid #DAA520;
	background: #f9f9f9;
}

.modal-image {
	width: 100%;
	height: auto;
	display: block;
	max-height: 60vh;
	object-fit: cover;
}

.modal-image-fallback {
	width: 300px;
	height: 300px;
	background: linear-gradient(135deg, #f1f3f4, #e8eaf6);
	margin: 0 auto 1.5rem;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid #DAA520;
	color: #666;
}

.modal-desc {
	color: #666;
	line-height: 1.6;
	text-align: left;
}

.modal-note {
	margin-top: 2rem;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 10px;
	color: #8B4513;
}

@media (max-width: 768px) {
	.modal-image {
		max-height: 45vh;
	}
}


/* Contact Form */
.contact-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

.form-section {
	background: white;
	padding: 3rem;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
	margin-bottom: 2rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.8rem;
	font-weight: bold;
	color: #8B4513;
	font-size: 1rem;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 1rem;
	border: 2px solid #e9ecef;
	border-radius: 10px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #DAA520;
	box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.form-group textarea {
	height: 140px;
	resize: vertical;
}

.required {
	color: #e74c3c;
}

.submit-btn {
	background: linear-gradient(45deg, #8B4513, #DAA520);
	color: white;
	padding: 1rem 3rem;
	border: none;
	border-radius: 25px;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

.contact-info {
	background: linear-gradient(135deg, #8B4513, #DAA520);
	color: white;
	padding: 3rem;
	border-radius: 20px;
	height: fit-content;
}

.contact-item {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.contact-item h4 {
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
}

.contact-highlight {
	background: rgba(255, 255, 255, 0.1);
	padding: 1.5rem;
	border-radius: 10px;
	margin-top: 2rem;
	text-align: center;
}

/* Footer */
footer {
	background: linear-gradient(135deg, #2c3e50, #34495e);
	color: white;
	text-align: center;
	padding: 3rem 0;
	margin-top: 3rem;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0px) rotate(0deg);
	}

	50% {
		transform: translateY(-10px) rotate(1deg);
	}
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(100%);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.nav-links {
		gap: 1rem;
	}

	.nav-links a {
		padding: 0.3rem 0rem;
		font-size: 0.9rem;
	}
	
	.logo{
		font-size: 1.8rem;
	}

	.hero h1 {
		font-size: 1.6rem;
	}

	.hero p {
		font-size: 0.8rem;
	}
	
	.section-title{
		font-size: 2rem;
	}

	.content-section {
		padding: 3rem 1.5rem;
	}

	.contact-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}

	.gallery-tabs {
		flex-direction: column;
		align-items: center;
	}
}

/* Loading Animation */
.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}