@charset "utf-8";

/*　すべてのWebページに適用される　*/
html {
	font-family: sans-serif;
}
html * {
	box-sizing: border-box;
}
body {
	margin: 0;
	background-color: #ffffff;
}
.wrapper {
	margin: 0 auto 0 auto;
	max-width: 960px;
}
h2 {
	color: #3f5170;
	font-size: 22px; 
	border-bottom: 3px dotted #3f5170;
	margin-top: 20px;
	margin-right: 0px;
	margin-bottom: 20px;
	margin-left: 0px;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
	/*	width: 500px;*/
}
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: 50px 0 40px 0;
	line-height: 0;
	text-align: center;
}
.nav li {
	display: inline;
	list-style-type: none;
	padding-right: 30px;
}
.nav ul {
	margin: 0;
	padding: 20px 10px 15px 20px;
	background-image: url(../images/back5.png);
	background-repeat: repeat-x;
}
.nav a:link {
	color:  #3c454d;
	text-decoration: none;
}
.nav a:visited {
	color: #3c454d;
	text-decoration: none;
}
.nav a:hover {
	color: #7d8dac;
	text-decoration: none;
}
.nav a:active {
	color: #5a9bc0;
	text-decoration: none;
}
/*　すべてのページに適用　－　フッター　－　*/
.footer {
	background-image: url(../images/footer-bg.png);
	background-repeat: no-repeat;
	margin-top: 30px;
	padding: 80px 15px 20px 15px;
	font-size: 12px;
	color: #3f5170;
}
/*　個別のスタイル　*/
/*　index.html   */
.keyvisual {
	margin: 15px 0 0 0;
}
.news-item {
	margin: 0;
}
/*　business.html   */
.business-item {
	display: flex;
	border-bottom: 1px dashed #bec2c7;
	padding: 20px 8px;
}
.business-photo {
	margin-left: 16px;
	flex: 1 1 auto;
}
.business-text {
	margin-right: 32px;
	flex: 0 0 400px;
}
/* company.html */
/*　プロフィール*/
.profile-item {
	display: flex;
/*	padding: 20px 8px;*/
}
.clear {
	clear: both;
}
.profile-photo {
/*	margin-right: 16px;*/
	flex: 0 0  250px;
}
.profile-text {
/*	margin-left: 16px;*/
	flex: 1 1 auto;
}
.gyozume {
	line-height: 0.5;
}
/*　テーブル　*/
.info {
	border-collapse: collapse;
}
.info th, .info td {
	padding: 8px;
	border: 1px solid #bec2c7;
	text-align: left;
}
.info th {
	background-color: #dde2ea;
	width: 120px;
	color: #3f5170;
	vertical-align: top;
}

/*　access.html*/
.map {
	text-align: center;
}
/*　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;
}
/*　スマートフォン向けCSS　*/
@media (max-width: 767px) {
	/*	全体　－　ナビゲーション　*/
	.wrapper {
		margin: 0 8px;
	}

	.logo {
		margin: 30px 0;
	}

	.logo img {
		width: 400px;
	}
	.nav {
		background-color: #dfddda;
	}
	.nav li {
		display: block;
	}
/*	business.thml -　横並び解除　*/
	.business-item {
		display: block;
	}
	.business-photo {
		margin-right: 0;
		width: 100%;
	}
	.business-text {
		width: 100%;
	}
/*	company.html - 画像のパディングを調整　*/
	.profile-item {
		display: block;
	}
	.profile-photo {
		padding-right: 0;
		width: 100%;
	}
/*	contact.html - フォーム　*/
	select {
		width: 100%;
	}
	input[name="subject"] {
		width: 100%;
	}
	textarea {
		width: 100%;
	}
	input[type="submit"] {
		width: 100%;
	}
}
