/* 標高値のハイライト */
.elevation-highlight {
	color: #e74c3c;
	font-weight: bold;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic UI', 'Meiryo UI', Arial, sans-serif;
	background-color: #f5f5f5;
	color: #333;
	overflow: hidden;
}

#app {
	height: 100vh;
	height: 100dvh;
	/* 動的ビューポート高さ（モバイル対応） */
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

header {
	background: linear-gradient(135deg, #4a90e2, #5ba3f5);
	color: white;
	padding: 10px 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0;
}

.controls {
	display: flex;
	gap: 10px;
}

.btn {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-1px);
}

#mapContainer {
	flex: 1;
	position: relative;
	min-height: 0;
	/* flexboxの子要素が縮小できるようにする */
	overflow: hidden;
}

#map {
	width: 100%;
	height: 100%;
}

#crosshair {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 2rem;
	font-weight: bold;
	color: #e74c3c;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), -1px -1px 2px rgba(255, 255, 255, 0.8);
	z-index: 1000;
	pointer-events: none;
	user-select: none;
}

#elevationLabel {
	position: absolute;
	top: calc(50% + 25px);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.6);
	padding: 8px 16px;
	border-radius: 20px;
	border: 2px solid #4a90e2;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	pointer-events: none;
	font-weight: 600;
	color: #333;
	min-width: 120px;
	text-align: center;
	backdrop-filter: blur(5px);
}

#elevationText {
	display: block;
	font-size: 0.9rem;
}

#info {
	background: white;
	padding: 15px 20px;
	border-top: 1px solid #ddd;
	text-align: center;
}

#infoText {
	font-size: 0.9rem;
	color: #666;
	line-height: 1.5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	html {
		height: 100%;
		height: 100dvh;
	}

	body {
		height: 100%;
		height: 100dvh;
	}

	#app {
		height: 100%;
		height: 100dvh;
	}

	#title {
		font-size: 1.2rem;
	}

	header {
		padding: 10px 15px;
		flex-shrink: 0;
		/* ヘッダーが縮小されないようにする */
	}

	#crosshair {
		font-size: 1.5rem;
	}

	#elevationLabel {
		min-width: 150px;
		padding: 6px 12px;
		font-size: 0.8rem;
	}

	#info {
		padding: 10px 15px;
	}

	#infoText {
		font-size: 0.8rem;
	}
}

/* ローディング時のアニメーション */
.loading {
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0% {
		opacity: 0.6;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0.6;
	}
}

/* 標高値のハイライト */
.elevation-highlight {
	color: #333;
	font-weight: bold;
}

.radius-img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	margin-left: 15px;
	margin-right: 15px;
}
