


/* ハンバーガーメニューアイコンの配置 */
.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 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);
}


/* ハンバーガーメニューを地図の右上に配置 */
#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: 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;
}


/* ハンバーガーメニューアイコン */
#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;
}
/* 全体の文字設定 */
body {
	font-family: Arial, "メイリオ", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 80px;
	padding: 0;
	color: #333;
	background-color: #f9f9f9;
}

h1 {
	text-align: center;
	font-size: 2em;
	margin-top: 20px;
}

/* お知らせアイテム */
.announcement-item {
	border: 1px solid #ddd;
	border-radius: 5px;
	margin-bottom: 15px;
	padding: 15px;
	background-color: #fff;
	cursor: pointer;
}

.announcement-item h2 {
	font-size: 1.5em;
	margin: 0 0 10px;
	color: #333;
}

.announcement-details {
	display: none; /* 初期状態では非表示 */
	padding-top: 10px;
}

.announcement-details img {
	max-width: 100%;
	height: auto;
	display: block;
	margin-top: 10px;
}

.announcement-item.active .announcement-details {
	display: block; /* 展開時に表示 */
}

/* ボタン共通スタイル */
.btn {
	display: inline-block;
	padding: 8px 12px;
	margin: 5px;
	font-size: 14px;
	font-weight: bold;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.btn-edit {
	background-color: #4CAF50;
}

.btn-edit:hover {
	background-color: #45a049;
}

.btn-delete {
	background-color: #f44336;
}

.btn-delete:hover {
	background-color: #d32f2f;
}


.announcement-category {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.container {
	max-width: 1200px; /* 最大幅を設定 */
	margin: 0 auto; /* 中央寄せ */
	padding: 0 20px; /* 余白を追加 */
}

@media (max-width: 768px) {
	.container {
			max-width: 95%; /* 小さい画面ではより柔軟に */
			padding: 0 10px;
	}
}
/* カテゴリフィルターと新規作成ボタンの配置 */
.filter-container {
	display: flex;
	justify-content: center; /* 中央配置 */
	align-items: center;
	gap: 15px; /* 間隔を調整 */
	margin-bottom: 20px; /* 下に余白 */
	text-align: center;
}

/* フィルター部分 */
.filter-container label {
	font-size: 1rem;
	font-weight: bold;
}

.filter-container select {
	font-size: 1rem;
	padding: 5px 10px;
	border-radius: 5px;
	border: 1px solid #ccc;
}

/* 新規作成ボタン */
.create-btn {
	background-color: #007bff;
	color: #fff;
	padding: 10px 15px;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: bold;
	display: flex;
	align-items: center;
	text-decoration: none;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
	transition: background 0.3s ease;
	height: 36px; /* セレクトボックスと高さを統一 */
}

.create-btn i {
	margin-right: 8px;
	font-size: 18px;
}

/* ホバーエフェクト */
.create-btn:hover {
	background-color: #0056b3;
}

/* レスポンシブ対応（スマホで縦並びに） */
@media (max-width: 768px) {
	.filter-container {
			flex-direction: column;
			gap: 10px;
	}
}

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

.modal-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
}

.modal-content img {
	width: 100%;
	height: auto;
	max-height: 80vh;
	border-radius: 10px;
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 30px;
	color: white;
	cursor: pointer;
}
