@charset "UTF-8";

/* すべてのWebページに適用される */
html {
	font-family: sans-serif;
}
html * {
	box-sizing: border-box;
}
body {
	margin: 0 0 0 0;
	background-color: #FFFFFF;
}
.wrapper {
	margin: 0 auto 0 auto;
	max-width: 960px;
}
h2 {
	color: #494949;
	font-size: 22px;
	border-bottom: 3px dotted #7db4e6;
	margin-top: 20px;
	margin-right: 0px;
	margin-bottom: 20px;
	margin-left: 0px;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
	padding: 0.25em 0.5em;
    border-left: solid 5px #7db4e6;
}
p {
	line-height: 1.6;
}
a:link {
	color: #d25833;
}
a:visited {
	color: #d25833;
}
a:hover {
	color: #e3937a;
}
a:active {
	color: #ff6a3b;
}
img {
	max-width: 100%;
	height: auto;
}

/* すべてのページに適用 - ヘッダー - */
.logo {
	margin: 20px 0 20px 0;
	line-height: 0;
	text-align: center;
}
.nav li {
	display: inline;
	list-style-type: none;
	padding-right: 50px;
}
.nav ul {
	margin: 0 0 0 0;
	padding: 20px 10px 15px 20px;
	background-image: url(../img/menu-bg.png);
	background-repeat: repeat-x;
}
.nav a:link {
	color: #494949;
	text-decoration: none;
}
.nav a:visited {
	color: #494949;
	text-decoration: none;
}
.nav a:hover {
	color: #7b8dac;
	text-decoration: none;
	border-bottom: solid 3px #87CEFA;
}
.nav a:active {
	color: #5a9bc0;
	text-decoration: none;
}

/* すべてのページに適用 - フッター - */
.footer {
	background-image: url(../img/footer-bg.jpg);
	background-repeat: no-repeat;
	margin-top: 20px;
	padding: 30px 15px 20px 15px;	
	font-size: 12px;
	color: #666;
	text-align: center;
}

/* 個別のスタイル */
/* index.html */
.keyvisual {
	margin: 15px 0 0 0;
}
.news-item {
	margin: 0;
}

/* company.html */
.company-photo {
	float: left;
	padding: 0 1em 1em 0;
}
.clear {
	clear: both;
}
/* テーブル */
.info {
	border-collapse: collapse;
	margin-left: auto;
    margin-right: auto;
}
.info th, .info td {
	padding: 8px;
	border: 1px solid #bec2c7;
	text-align: left;
}
.info th {
	background-color: #dde2ea;
	width: 100px;
	color: #666;
	vertical-align: top;
}

/* テーブル2 */
.info2 {
	border-collapse: collapse;
	margin-left: auto;
    margin-right: auto;
}
.info2 th, .info2 td {
	padding: 8px;
	border: 1px solid #bec2c7;
	text-align: left;
}
.info2 th {
	background-color: #dde2ea;
	width: 100px;
	color: #666;
	vertical-align: top;
}


/*business.html */
.menu-item {
	display: flex;
	border-bottom: 1px dashed #bec2c7;
	padding: 20px 8px;
}
.menu-photo {
	margin-right: 16px;
	flex: 1 1 auto;
}
.menu-text {
	flex: 0 0 650px;
}


/* contact.html */
form div {
	padding:12px;
	border-bottom: 1px dashed #bec2c7;
}
select {
	width: 30em;
}
input[name="subject"] {
	width:30em;
}
textarea {
	width: 30em;
	height: 6em;
}
input[type="submit"] {
	margin: 20px 0;
	width: 30em;
}

.inline-block {
display: inline-block;      /* インラインブロック要素にする */
background-color:  #fff;    /* 背景色指定 */
padding:  30px;             /* 余白指定 */
height: auto;
margin-bottom: 30px;
vertical-align: top              /* 高さ指定 */
}


/* スマートフォン向けCSS */
@media (max-width: 767px) {
	/* 全体 - ナビゲーション */
	.wrapper {
		margin: 0 8px;
	}
	.logo {
		margin: 30px 0;
	}
	.logo img {
		width: 200px;
	}
	.nav {	
		background-color: #ccddda;
	}
	.nav li {
		display: block;
	}

	/* menu.html - 横並び解除 */
	.menu-item {
		display: block;
	}
	.menu-photo {
		margin-right: 0;
		width: 100%;
	}
	.menu-text {
		width: 100%;
	}

	/* contact.html - フォーム */
	select {
		width: 100%;
	}
	input[name="subject"] {
		width: 100%;
	}
	textarea {
		width: 100%;
	}
	input[type="submit"] {
		margin: 20px 0;
		width: 100%;
	}	
}