/* 全体レイアウト */
body {
	font-family: Arial, sans-serif;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ヘッダー */
header {
	width: 100%;
	background-color: #f8f9fa;
	padding: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
	margin: 0;
}

.role-button {
	background-color: #007bff;
	color: #fff;
	padding: 5px 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.role-button:hover {
	background-color: #0056b3;
}

/* 地図のスタイル */
#map-container {
	position: relative;
	height: 100vh;
	width: 100%;
}

#map {
	height: 100%;
	width: 100%;
}

/* ハンバーガーメニューアイコンの配置 */
.menu-icon {
	position: fixed;
	top: 20px; /* 上部の余白を調整 */
	left: 20px; /* 左側の余白を調整 */
	width: 30px;
	height: 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
	z-index: 2000; /* 地図の上に表示されるように設定 */
	background-color: rgba(255, 255, 255, 0.8); /* 背景を半透明にして地図が見えやすい */
	border-radius: 5px;
	padding: 5px; /* ハンバーガーメニュー周りの余白 */
}

/* ハンバーガーメニュー内のバー */
.menu-icon span {
	display: block;
	width: 30px;
	height: 4px;
	background-color: #333; /* メニューアイコンの色 */
	border-radius: 2px;
	transition: 0.3s;
}


/* サイドメニュー */
#side-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px; /* メニューの高さ */
	background-color: #333;
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-around; /* アイテムを均等に配置 */
	transform: translateY(-100%); /* 初期状態は非表示 */
	transition: transform 0.3s ease;
	z-index: 1000;
}

#side-menu.open {
	transform: translateY(0); /* 表示状態 */
}

/* サイドメニューの各項目 */
#side-menu a {
	text-decoration: none;
	color: white;
	display: flex;
	align-items: center; /* アイコンとラベルを縦方向中央揃え */
	gap: 8px; /* アイコンとテキストの間隔 */
	font-size: 14px; /* ラベルのフォントサイズ */
	padding: 5px;
}

#side-menu a:hover {
	color: #ddd; /* ホバー時の色 */
}

/* アイコンのスタイル */
#side-menu a i {
	font-size: 20px; /* アイコンサイズ */
}

/* サイドメニューリンク */
#side-menu a {
	color: white;
	text-decoration: none;
	display: block;
	margin: 10px 0;
	padding: 10px;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

#side-menu a:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

/* ハンバーガーメニューアイコンの変化 */
.menu-icon.open span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-icon.open span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}


/* ハンバーガーメニューのアニメーション */
.menu-icon.open span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-icon.open span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* ツールバー */
#toolbar {
	position: absolute;
	bottom: 20px;
	right: 20px;
	background: white;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	display: flex;
	gap: 10px;
	z-index: 1000;
}

#toolbar button {
	padding: 5px 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

#toolbar button:hover {
	background-color: #f0f0f0;
}

/* サイドバー */
#sidebar {
	position: absolute;
	top: 80px;
	right: 20px;
	background: white;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	width: 200px;
	z-index: 1000;
}

#sidebar h2 {
	margin-top: 0;
}

#sidebar label {
	display: block;
	margin-bottom: 10px;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
	#side-menu {
			width: 100%;
	}

	#map {
			height: calc(100vh - 60px);
	}
}
/* 検索バーのコンテナ */
#address-search-container {
	width: 100%;
	background-color: #f8f9fa;
	padding: 10px;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
	position: relative;
}

/* 検索バー自体のスタイル */
#address-search {
	max-width: 600px;
	margin: 0 auto;
	display: flex;
	gap: 10px;
}

#address-input {
	flex: 1;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

#address-search-btn {
	padding: 8px 16px;
	border: none;
	background-color: #007bff;
	color: white;
	border-radius: 5px;
	cursor: pointer;
}

#address-search-btn:hover {
	background-color: #0056b3;
}
/* ツールバー全体のスタイル */
#toolbar-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px; /* ボタン間の隙間 */
	z-index: 1000;
}

/* 各ボタンのスタイル */
.toolbar-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 1px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.toolbar-btn:hover {
	background-color: #f0f0f0;
	transform: scale(1.1);
}

.toolbar-btn i {
	font-size: 20px;
	color: #555;
}
/* 展開・収納ボタンのスタイル */
#toggle-toolbar-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 1px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
	margin-bottom: 10px; /* ツールバーとの間隔 */
}

#toggle-toolbar-btn:hover {
	background-color: #f0f0f0;
	transform: scale(1.1);
}

#toggle-toolbar-btn i {
	font-size: 20px;
	color: #555;
}
/* ツールチップ用スタイル */
.tooltip {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.tooltip .tooltip-text {
	visibility: hidden;
	background-color: #555;
	color: #fff;
	text-align: center;
	padding: 5px 10px;
	border-radius: 4px;
	position: absolute;
	z-index: 1;
	bottom: 125%; /* ボタンの上に表示 */
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	transition: opacity 0.3s;
	font-size: 12px;
	white-space: nowrap;
}

.tooltip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}
/* ハンバーガーメニューを地図の右上に配置 */
#menu-icon-container {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1000;
}

#menu-toggle-btn {
	background-color: #fff;
	border: none;
	border-radius: 5px;
	padding: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	font-size: 18px;
}

#menu-toggle-btn i {
	color: #333;
}

/* サイドメニューの全体スタイル */
#side-menu {
	position: fixed;
	top: 0;
	left: -250px; /* 初期状態では画面外に隠す */
	width: 250px; /* メニューの幅を調整 */
	height: 100%;
	background-color: #333;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
	transition: left 0.3s ease-in-out; /* スムーズなアニメーション */
	z-index: 1001;
	display: flex;
	flex-direction: column; /* 縦並び */
	align-items: center; /* メニュー項目を中央揃え */
	padding-top: 20px; /* メニューの上部に余白を追加 */
}

#side-menu.open {
	left: 0; /* メニューが画面内にスライド */
}

/* メニュー項目のスタイル */
#side-menu a {
	display: block;
	width: 90%; /* 横幅を調整して中央に配置 */
	margin: 10px 0; /* 各項目の上下間隔を調整 */
	padding: 10px;
	color: white;
	text-decoration: none;
	text-align: center;
	font-size: 16px; /* フォントサイズをやや大きく */
	background-color: #444; /* ボタンの背景色 */
	border-radius: 5px; /* ボタンの角を丸める */
	transition: background-color 0.3s ease;
}

#side-menu a:hover {
	background-color: #555; /* ホバー時の色 */
}

/* ハンバーガーメニューアイコン */
#menu-toggle-btn {
	position: fixed;
	top: 20px;
	left: 20px;
	background-color: #fff;
	border: none;
	border-radius: 5px;
	padding: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	font-size: 18px;
	z-index: 1002; /* メニューより前面に配置 */
}

/* ハンバーガーメニューアイコンのアイコン */
#menu-toggle-btn i {
	color: #333;
}
/* 学科選択ボタンのスタイル */
#toggle-department-list {
  position: absolute;
  top: 110px; /* 地図の上部に配置 */
  right: 20px; /* 地図の右端に配置 */
  width: 70px; /* ボタンのサイズを小さく */
  height: 40px;
  background-color: #007bff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1001;
  color: white;
  font-size: 14px;
  border: none;
}

/* 学科選択メニューのスタイル */
#department-list {
  position: absolute;
  top: 130px; /* ボタンの下に表示 */
  right: 20px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  z-index: 1001;
	line-height: 60px;
  display: none; /* 初期状態は非表示 */
}

/* 学科選択メニュー表示時 */
#department-list.open {
  display: block; /* 表示時に有効 */
}
/* 目的地設定ボタンのスタイル */
#destination-setting {
  position: absolute;
  top: 140px; /* 学科選択の下に配置 */
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
}

#destination-setting button {
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#destination-setting button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#logout-button {
	background: none;
	border: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
}

#logout-button i {
	margin-right: 5px;
}
body {
	font-family: Arial, sans-serif;
	text-align: center;
	margin: 0;
	padding: 20px;
	background-color: #f4f4f9;
}

button {
	padding: 10px 20px;
	font-size: 16px;
	color: #fff;
	background-color: #333;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

button:hover {
	background-color: rgba(184, 184, 184, 0.5);
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal.active {
	display: flex;
}

.modal-content {
	background: white;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	width: 80%;
	max-width: 400px;
	position: relative;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 20px;
	font-weight: bold;
	cursor: pointer;
}

.close:hover {
	color: red;
}

.weather-icon {
	width: 100px;
	height: 100px;
	margin: 20px auto;
}

p {
	margin: 10px 0;
	font-size: 16px;
}
/* サイドメニューのスタイル */
#side-menu {
	position: fixed;
	top: 0;
	left: -250px;
	width: 250px;
	height: auto; /* 高さを自動調整 */
	background-color: #333;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
	transition: left 0.3s ease-in-out;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 20px;
	padding-bottom: 20px; /* 下側にも余白 */
}

/* メニューが開いたとき */
#side-menu.open {
	left: 0;
}

/* メニュー項目のスタイル（デフォルト） */
#side-menu a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 90%;
	margin: 5px 0;
	padding: 10px;
	color: white;
	text-decoration: none;
	text-align: center;
	font-size: 16px;
	background-color: #444;
	border-radius: 5px;
	transition: background-color 0.3s ease, font-size 0.3s ease, padding 0.3s ease;
}

/* メニュー項目が少ない場合に自動拡大 */
#side-menu[data-count="3"] a {
	font-size: 18px;
	padding: 15px;
}

#side-menu[data-count="2"] a {
	font-size: 20px;
	padding: 20px;
}

#side-menu[data-count="1"] a {
	font-size: 24px;
	padding: 25px;
}

/* ホバー時 */
#side-menu a:hover {
	background-color: #555;
}
