/* 全体 */

*{
 	margin: 0px;
	padding: 0px;
}
hr{
	height: 2px;
	border: none;
	background-color: darkred;
	color: darkred;
}
a{
	color: darkred;
	text-decoration: none;
}
a:hover{
	color: pink;
}

@media only screen and (min-width: 1000px){
	body{
	width: 1000px;
 	margin: 0px auto;
	}
}

@media only screen and (max-width: 999px){
	body{
	width: device-width;
	}
}

/* ヘッダー */
header{
	margin: 10px 10px 0px 10px;
	height: 60px;
	display: flex;
	position: relative;
}
header h1{
	font-size: 24px;
	color: darkred;
	font-weight: bold;
}
header h2{
	font-size: 14px;
	color: black;
	font-weight: bold;
}
header img{
	width: 90px;
}
header span{
	margin: 0px 0px 0px 10px;
}

/* メニュー */

nav {
	overflow-x: auto;
}
nav ul {
	display: flex;
	justify-content: flex-start;
	margin: 10px 0px 0px 10px;
}
nav ul li {
	list-style: none;
}
nav ul li a{
	margin: 0px 3px 0px 0px;
	width: 120px;
        height: 40px;
	padding: 2px 5px;
	display: inline-block;
	background-color: darkred;
	color: white;
	text-align: center;
	text-decoration: none;
}
nav ul li a:hover {
	color: pink;
}
nav ul li a strong{
	font-size: 14px;
	display: block;
}
nav ul li a span {
	font-size:12px;
}

/* メイン画像 */
#mainimage{
	margin: 10px 10px 0px 10px;
}
#mainimage img{
	width: 100%;
}

#serviceimage{
	margin: 10px;
	text-align: center;
}
#serviceimage img{
	height: 200px;
}

/* 表 */
table{
	border-spacing: 1px 1px;
	margin: 10 0px;
}
th{
	background-color: darkred;
	color: white;
	font-size: 12px;
	padding: 2px 10px;
}
td{
	background-color: lavenderblush;
	font-size: 12px;
	padding: 2px 10px;
}

/* トピックス */
section{
	display: flex;
	flex-wrap: wrap;
	margin: 10px 10px 0px 10px;
	justify-content: center;
}
section #topic{
	margin: 0px 0px 10px 0px;
	width: 320px;
	display: block;
}
section #topiccont{
	margin: 0px 0px 10px 10px;
	width: 320px;
	display: block;
}
section img{
	width: 320px;
}
section h1{
	margin: 0px 0px 10px 0px;
	font-weight: bold;
	font-size: 14px;
	padding: 0 10px;
	line-height: 30px;
	color: white;
	background: darkred;
}
section p{
	padding: 0 5px;
	color: black;
	font-size: 12px;
}
section a{
	padding: 0 5px;
	font-size: 14px;
}


/* 記事 */
article {
	margin: 10px 10px 0px 10px;
}
article h1{
	display: block;
	text-align: center;
	font-size: 20px;
	color: darkred;
	font-weight: bold;
}
article h2{
	color: black;
	text-align: center;
	font-size: 16px;
	font-weight: bold;
	margin: 10 0px;
}
article h3{
	margin: 5px 0px;
	padding: 0px 10px;
	color: white;
	font-size: 16px;
	font-weight: bold;
	text-align: left;
	display: inline-block;
	background-color: darkred;
	border-radius: 5px;
}
article h4{
	color: black;
	font-weight: bold;
	font-size: 14px;
}

article p{
	margin: 0px 10px 0px 10px;
	text-align: left;
	font-size: 12px;
}
article #icon1{
	padding: 2px 5px;
	display: inline-block;
	color: white;
	font-size: 10px;
	background-color: chocolate;
	border-radius: 3px;
}
article #icon2{
	padding: 2px 5px;
	display: inline-block;
	color: white;
	font-size: 10px;
	background-color: darkblue;
	border-radius: 3px;
}
article #icon3{
	padding: 2px 5px;
	display: inline-block;
	color: white;
	font-size: 10px;
	background-color: seagreen;
	border-radius: 3px;
}

/* フッター */
footer {
	margin: 10px 10px 10px 10px;
}
footer ul{
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}
footer ul li{
	padding:0px 10px;
	font-size:11px;	
	border-right:1px solid darkred;
	list-style: none;
}
