@charset "UTF-8";

main {
	margin: 20px;
}
.container {
	max-width: 960px;
	margin: auto;
}
.map-box {
	background-color: rgb(253, 250, 244);
	border: 2px solid rgb(239, 201, 143);
	padding: 15px 15px;
	border-radius: 8px;
	margin-bottom: 15px;
	width: 100%;
	display: flex;
	align-items: center;
	height: 80px;
}
h1 {
	font-size: 3.8em;
}

.map-container {
	margin: 0 auto;
	text-align: center;
}

.map-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	border: 1px solid #ccc;
	cursor: zoom-in;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.85);
	display: none;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	z-index: 999;
}

.overlay img {
	max-width: none;
	max-height: none;
	width: 90%;
	height: auto;
	transform-origin: center center;
	transition: transform 0.15s ease;
	touch-action: none;
}

/* 拡大縮小ボタン */
.zoom-controls {
	position: fixed;
	bottom: 30px;
	left: 10px;
	display: flex;
	gap: 15px;
	z-index: 1001;
}

.zoom-btn {
	width: 55px;
	height: 55px;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
	border: none;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

/* 閉じるボタン（右下） */
.close-btn {
	position: fixed;
	bottom: 30px;
	right: 10px;
	width: 55px;
	height: 55px;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
	border: none;
	font-size: 30px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1002;
	box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.intro {
	text-align: left;
	margin-top: 20px;
	font-size: 2em;
}

/* PC（897px以上）→ 4列 */
.button-grid {
	margin-top: 1.5em;
	display: grid;
	grid-template-columns: repeat(4, minmax(230px, 1fr));
	gap: 0.8em;
	padding: 0.5em;
}

/* ボタン（共通） */
.zone-button {
	padding: 0.8em 1em;
	background-color: #F5EEDC;
	color: #5A4A3A;
	border: none;
	border-radius: 6px;
	font-size: 1.9em;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.3s;
}
.zone-button:hover {
	background-color: #E8DFC8;
	color: #3E3328;
}

.area1 {
	background-color: #F9D3A5;
	color: #6A3E1E;
}

.area1:hover {
	background-color: #F2C28A;
	color: #4E2C15;
}

.area2 {
	background-color: #C7E6C3;
	color: #2F4A2F;
}

.area2:hover {
	background-color: #B4D9AE;
	color: #1F331F;
}

.area3 {
	background-color: #8CCBFF;
	color: #0F3A5A;
}

.area3:hover {
	background-color: #78B9F0;
	color: #0A2A42;
}

/* スマホ（896px以下）→ 2列 */
@media (max-width: 896px) {
	.button-grid {
		grid-template-columns: repeat(2, minmax(45%, 1fr));
		gap: 0.6em;
	}
	.zone-button {
		font-size: 1.6em;
		padding: 0.7em 0.5em;
	}
}
