@charset "UTF-8";

:root {
	--main-color: #8b4513;
	--accent-color: #a05c2b;
	--bg-color: #f8f5f0;
	--text-color: #333;
	--light-accent: rgba(139, 69, 19, 0.1);
}

body {
	font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
	margin: 0;
	padding: 0;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
}

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

/* ヘッダー */
.header-wrapper {
	background: url('../images/header-bg.jpg') no-repeat center center;
	background-size: cover;
	position: relative;
	padding: 16px 0 24px;
	min-height: 180px;
}

.header-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.38);
	z-index: 1;
	filter: brightness(1.15);
}

header {
	text-align: center;
	position: relative;
	z-index: 3;
	color: white;
}

.temple-mountain {
	font-size: 0.95em;
	color: #ffe9a9;
	letter-spacing: 0.18em;
	margin-bottom: 0;
	margin-top: 0;
	font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", serif;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 2px #fff;
	z-index: 3;
	position: relative;
	font-weight: 400;
	line-height: 1.1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.32);
	border-radius: 16px;
	padding: 2px 18px 2px 18px;
}

.temple-mountain .deco {
	color: #ffe9a9;
	font-size: 1.1em;
	margin: 0 0.3em;
	font-family: inherit;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 2px #fff;
}

.temple-title {
	font-size: 2.4em;
	margin-top: 0;
	margin-bottom: 2px;
	letter-spacing: 0.18em;
	font-weight: normal;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 2px #fff;
	z-index: 3;
	position: relative;
}

.temple-subtitle {
	font-size: 1.2em;
	margin-top: 0;
	margin-bottom: 10px;
	letter-spacing: 0.12em;
	font-weight: normal;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 2px #fff;
	z-index: 3;
	position: relative;
}

.temple-catch {
	font-size: 1.1em;
	margin-bottom: 18px;
	color: #fff;
	background: rgba(0, 51, 102, 0.6);
	padding: 8px 24px;
	border-radius: 20px;
	display: inline-block;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
	z-index: 3;
	position: relative;
}

.scroll-down {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 1.5em;
	animation: bounce 2s infinite;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
	z-index: 2;
}

@keyframes bounce {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0) translateX(-50%);
	}

	40% {
		transform: translateY(-20px) translateX(-50%);
	}

	60% {
		transform: translateY(-10px) translateX(-50%);
	}
}

/* メインコンテンツ */
.main-content {
	margin-top: -30px;
	position: relative;
	z-index: 3;
	background: var(--bg-color);
	border-radius: 15px 15px 0 0;
	padding-top: 40px;
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

/* 紹介セクション */
.intro-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 70px;
	padding: 0 20px;
}

@media (min-width: 768px) {
	.intro-section {
		flex-direction: row;
		align-items: center;
		padding: 0;
	}
}

.intro-image {
	width: 100%;
	max-width: 500px;
	height: 350px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
	position: relative;
	overflow: hidden;
}

.intro-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.intro-image:hover img {
	transform: scale(1.05);
}

@media (min-width: 768px) {
	.intro-image {
		width: 45%;
		margin-bottom: 0;
		margin-right: 40px;
	}
}

.intro-message {
	background-color: white;
	padding: 35px;
	border-left: 4px solid var(--main-color);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	flex: 1;
	position: relative;
	border-radius: 0 8px 8px 0;
}

.intro-message::before {
	content: '"';
	position: absolute;
	top: 10px;
	left: 15px;
	font-size: 3em;
	color: var(--main-color);
	opacity: 0.2;
	font-family: serif;
}

.intro-message p {
	margin-bottom: 20px;
	line-height: 2;
	font-size: 1.05em;
}

.intro-message p:last-child {
	margin-bottom: 0;
}

/* セクションタイトル */
.section-title {
	text-align: center;
	margin-bottom: 50px;
	color: var(--main-color);
	position: relative;
	font-weight: normal;
	letter-spacing: 0.1em;
	font-size: 2.2em;
	padding-bottom: 15px;
}

.section-title i {
	margin-right: 15px;
	color: var(--main-color);
	opacity: 0.8;
}

.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--main-color);
	margin: 15px auto 0;
	border-radius: 3px;
}

.section-title .small {
	display: block;
	font-size: 0.45em;
	margin-top: 8px;
	color: #666;
	letter-spacing: 0.05em;
}

/* カード */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 70px;
}

.card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
	overflow: hidden;
	position: relative;
	border-radius: 5px 5px 0 0;
	height: 200px;
	/* 固定高さを設定 */
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 画像のアスペクト比を保ちながら領域を埋める */
	transition: transform 0.3s ease;
}

.card:hover .card-image img {
	transform: scale(1.05);
}

.card-content {
	padding: 30px;
}

/* カードタイトル */
.card-title {
	margin-bottom: 15px;
	color: var(--main-color);
	font-size: 1.5em;
	font-weight: normal;
	letter-spacing: 0.05em;
	position: relative;
	padding-bottom: 10px;
	display: flex;
	align-items: center;
}

.card-title i {
	margin-right: 12px;
	color: var(--accent-color);
	font-size: 0.9em;
}

.card-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--main-color);
	opacity: 0.5;
}

.card-text {
	margin-bottom: 25px;
	line-height: 1.8;
	color: #555;
	font-size: 1.1em;
}

.btn {
	display: inline-block;
	padding: 12px 30px;
	background: var(--main-color);
	color: white;
	border-radius: 50px;
	transition: all 0.3s ease;
	text-decoration: none;
	font-size: 0.95em;
	letter-spacing: 0.05em;
	box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.btn:hover {
	background: var(--accent-color);
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.btn i {
	margin-left: 8px;
	transition: transform 0.3s ease;
}

.btn:hover i {
	transform: translateX(5px);
}

/* セクション区切り */
.section-divider {
	height: 2px;
	background: linear-gradient(to right, transparent, rgba(139, 69, 19, 0.2), transparent);
	margin: 0 auto 30px;
	width: 80%;
}

section {
	padding: 40px 0;
}

/* メニューボタン */
.menu-button {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	background: white;
	border-radius: 50%;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-button:hover {
	transform: translateY(-5px) rotate(5deg);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.menu-icon {
	width: 30px;
	height: 20px;
	position: relative;
}

.menu-icon span {
	display: block;
	position: absolute;
	height: 3px;
	width: 100%;
	background: var(--main-color);
	border-radius: 3px;
	transition: all 0.3s ease;
}

.menu-icon span:nth-child(1) {
	top: 0;
}

.menu-icon span:nth-child(2) {
	bottom: 0;
}

.menu-button:hover .menu-icon span:nth-child(1) {
	width: 80%;
	transform: translateY(2px);
}

.menu-button:hover .menu-icon span:nth-child(2) {
	width: 60%;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
	.temple-title {
		font-size: 1.8em;
	}

	.temple-subtitle {
		font-size: 0.9em;
	}

	.section-title {
		font-size: 1.8em;
	}

	section {
		padding: 50px 0;
	}

	.intro-message {
		padding: 25px;
	}

	.header-wrapper {
		padding: 15px 0 30px;
		/* モバイル表示ではさらに小さく */
	}

	.card-image {
		height: 180px;
		/* モバイル表示時は少し小さく */
	}
}

/* サンプル和柄オーバーレイCSS */
.wagara-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
	background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 200 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 40 Q 10 20 20 40 T 40 40 T 60 40 T 80 40 T 100 40 T 120 40 T 140 40 T 160 40 T 180 40 T 200 40" stroke="%23ffffff" stroke-width="2" fill="none" opacity="0.15"/></svg>');
}

/* モーダルウィンドウのスタイル */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7);
	animation: fadeIn 0.3s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.modal-content {
	background-color: #f8f5f0;
	margin: 5% auto;
	padding: 30px;
	border-radius: 12px;
	width: 80%;
	max-width: 800px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: slideIn 0.4s;
}

@keyframes slideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}

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

.close-modal {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	color: var(--main-color);
	cursor: pointer;
	transition: all 0.3s;
}

.close-modal:hover {
	color: var(--accent-color);
	transform: rotate(90deg);
}

.modal-title {
	color: var(--main-color);
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(139, 69, 19, 0.2);
	font-weight: normal;
	font-size: 1.8em;
}

.modal-body {
	margin-bottom: 20px;
}

.map-container {
	width: 100%;
	height: 400px;
	margin-top: 20px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}