/* ボディ全体の設定 */
body {
	font-family: Arial, "メイリオ", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 80px;
	padding: 0;
	color: #333;
	background-color: #f9f9f9;
	display: flex;
	justify-content: center; /* ページを中央寄せ */
	align-items: center; /* 縦も中央寄せ */
	min-height: 100vh; /* 最低でも画面全体の高さを確保 */
}

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

/* フォームの幅を制限し、中央寄せ */
form {
	width: 100%;
	max-width: 900px; /* 最大幅を設定 */
	margin: 0 20px; /* 余白を設定 */
	padding: 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 入力フィールドやテキストエリアの設定 */
form input[type="text"],
form textarea,
form input[type="file"],
form select {
	width: 100%;
	padding: 10px;
	margin-top: 5px;
	border: 1px solid #ccc;
	border-radius: 5px;
}



/* ボタン共通スタイル */
.btn {
	display: inline-block;
	padding: 8px 12px;
	margin: 5px;
	font-size: 14px;
	font-weight: bold;
	color: #ffffff;
	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;
}

/* フォーム */
form label {
	display: block;
	font-weight: bold;
	margin-top: 10px;
}

form input[type="text"],
form textarea,
form input[type="file"] {
	width: 96%;
	padding: 10px;
	margin-top: 5px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

form button {
	background: #4CAF50;
	color: rgb(255, 255, 255);
	padding: 10px 15px;
	border: none;
	border-radius: 5px;
	margin-top: 10px;
	cursor: pointer;
	transition: background 0.3s;
}

form button:hover {
	background: #45a049;
}

/* お知らせ一覧 */
.announcement-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.announcement-item {
	border: 1px solid #ccc;
	padding: 15px;
	border-radius: 5px;
	background: #f9f9f9;
	transition: box-shadow 0.3s;
}

.announcement-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.announcement-item img {
	max-width: 100%;
	height: auto;
	margin-top: 10px;
	border-radius: 5px;
}

.announcement-item a,
.announcement-item button {
	display: inline-block;
	margin-top: 10px;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 5px;
	font-size: 0.9rem;
	cursor: pointer;
}
.btn-editc {
	background-color: red;
	color: white; /* 文字色を白にする */
	border: none; /* 枠線をなくす */
	padding: 8px 16px; /* 余白を調整 */
	border-radius: 4px; /* 角を少し丸める */
	cursor: pointer; /* ホバー時のカーソルをポインターにする */
}

.btn-editc:hover {
	background-color: darkred; /* ホバー時に濃い赤に */
}
