body {
	font-family: Arial, sans-serif;
	background-color: #dee2e6;
	color: #333;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

@media screen and (max-width: 600px) {
	body {
		font-size: 0.9em;
	}
}

header,
footer {
	background-color: #ffffff;
	color: black;
	padding: 10px 20px;
	padding-left: calc((100% - 800px) / 2);
	padding-right: calc((100% - 800px) / 2);
	display: flex;
	align-items: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header img {
	height: 40px;
	margin-right: 10px;
}

footer {
	font-size: 0.7em;
	justify-content: space-between;
	box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

footer img {
	height: 18px;
	vertical-align: middle;
	margin-right: 10px;
}

.mtS {
	margin-top: 1em;
}
.mtM {
	margin-top: 2em;
}
.mtL {
	margin-top: 3em;
}

.pc-only {
	display: block;
}
.sp-only {
	display: none;
}

@media screen and (max-width: 768px) {
	.pc-only {
		display: none;
	}
	.sp-only {
		display: block;
	}
}

.container {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.content {
	max-width: 700px;
	padding: 40px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	text-align: center;
}

@media screen and (max-width: 768px) {
	.content {
		padding: 20px;
	}
}

h1 {
	color: #dc3545;
	font-size: 1.5em;
	text-decoration: underline;
	text-underline-offset: 5px;
}
@media (max-width: 768px) {
	h1 {
		font-size: 1.3em;
	}
}

h2 {
	font-size: 1.2em;
}

p {
	font-size: 1em;
	line-height: 1.5;
}

.backup-links {
	max-width: 100%;
}

.webmail-link {
	color: white;
	background-color: #007bff;
	border-radius: 50px;
	padding: 10px 25px;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.webmail-link:hover {
	background-color: #0056b3;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* カテゴリ別カラー */
.webmail-link.main {
	background-color: #007bff;
}
.webmail-link.main:hover {
	background-color: #0069d9;
}
.webmail-link.other {
	background-color: #6c757d;
}
.webmail-link.other:hover {
	background-color: #5a6268;
}

.secondary-links {
	text-align: center;
}

.secondary-link {
	margin: 12px 0px;
	display: block;
	font-size: 0.9em;
	color: #007bff;
	text-decoration: none;
}
.secondary-link:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.links {
		flex-direction: column;
		gap: 10px;
		align-items: center;
	}
	.backup-links {
		flex: 1;
	}
	.maintenance-link {
		order: 1;
		text-align: center;
		margin: 0 auto;
	}
}

.maintenance-link {
	color: #333;
	background-color: #e9ecef;
}
.maintenance-link:hover {
	background-color: #ced4da;
}

#foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 0 10px;
}
#footL {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}
#footR {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-left: auto;
}
#footL ul,
#footR ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
#footL li,
#footR li {
	margin: 0 5px;
}
#footL a,
#footR a {
	color: black;
	text-decoration: none;
}
#footR .footPolicy a {
	color: #007bff;
	text-decoration: underline;
}
#footR ul {
	display: block;
}
#footR li {
	margin-bottom: 5px;
}
#footR li:last-child {
	margin-bottom: 0;
}

.button-group {
	margin-top: 2em;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.button-group.block {
	display: block;
}
.button-group a {
	display: block;
	padding: 10px 20px;
	font-size: 1em;
	text-decoration: none;
	border-radius: 5px;
	max-width: 300px;
	margin-inline: auto;
}
@media (max-width: 786px) {
	.button-group a {
		font-size: 0.9em;
	}
}
.button-group span {
	font-size: larger;
	padding-left: 1em;
}

.links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-direction: column;
}
.links.block {
	display: block;
}

.content ul {
	list-style: none;
	padding-left: 0;
	margin: 10px 0;
}
.content ul li {
	display: inline-block;
	background-color: #f1f3f5;
	color: #333;
	padding: 6px 12px;
	border-radius: 5px;
	margin: 4px 4px 4px 0;
	font-size: 0.95em;
	font-weight: 500;
}

/* 下部ボタンのコンテナ */
.maintenance-detail-btn-container {
	margin-top: 30px;
	text-align: center;
}

/* 下部ボタン本体 */
.maintenance-detail-btn {
	display: inline-block;
	padding: 10px 25px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1em;
	color: #333;
	background-color: #e9ecef;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.maintenance-detail-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	background-color: #ced4da;
}

@media (max-width: 768px) {
	.maintenance-detail-btn-container {
		margin-top: 20px;
	}
}
