@charset "UTF-8";

@media screen and (min-width: 770px) {
	
	/* ヘッドライン　*/
	#headline{
		width: 100%;
		background-color: #1F5C7B;
		text-align: center;
		background-image: url("../image/company/headline.jpg");
		background-position: center;
		background-size: cover;
		z-index: 15;
		position: relative;
	}
	#headline div{
		margin: auto;
		padding: 100px 0;
		width: 20%;
	}
	#headline h2{
		padding: 40px 0;
		font-size: 25px;
		font-weight: 900;
		color: #fff;
		background: rgba(31,92,123,0.7);
	}
	
/* メニューバー　*/
#menu{
	width: 100%;
	height: 200px;
	background-color: #1F5C7B;
	transform:skew(0deg, -5deg);
	-webkit-transform: skew(0deg, -5deg);
    -moz-transform: skew(0deg, -5deg);
}
.menu_child{
	width: 100%;
	background-color: #fff;
	transform:skew(0deg, 5deg);
	-webkit-transform: skew(0deg, 5deg);
    -moz-transform: skew(0deg, 5deg);
}
.dropdwn{
    display: flex;
	width: 80%;
	margin: 0 auto;
}
.dropdwn li{
	width: 20%;
	text-align: center;
	position: relative;
	border-left: 2px solid #ddd;
}
	.dropdwn a{
		display: block;
	}
	.dropdwn img{
		padding: 20px 0;
	}
.dropdwn li:first-child{
	border: none;
}
.dropdwn a:hover{
	opacity: 0.5;
}
.dropdwn_menu{
    width: 100%;
    display: none;
    position: absolute;
    padding: 0;
    background: #fff;
}
.dropdwn_menu li{
    width: 100%;
	padding: 0;
	border: none;
}
.dropdwn_menu li a{
    padding: 10px 0;
    display: block;
    color: #000;
	font-size: 13px;
}
.dropdwn_menu li a:hover{
	background-color: #1F5C7B;
	color: #fff;
}

/* 現在のページのメニューの背景色を変更　*/
#thispage{
	background-color: #399F4A;
}
#thispage img{ 
	filter: invert(100%);
}
	
	/* 社長挨拶　*/
	#message{
		margin-top: 100px;
		width: 100%;
	}
	#message h3{
		font-size: 20px;
		font-weight: 900;
		color: #1F5C7B;
		text-align: center;
	}
	.message_child{
		width: 80%;
		margin: 50px auto;
		display: flex;
		align-items: flex-start;
	}
	.message_child .text{
		margin: 0 auto;
		line-height: 2;
	}
	.text p{
		margin: 20px 0;
	}
	.text p:last-child{
		margin-top: 50px;
		text-align: right;
	}
	.message_child img{
		width: 45%;
		margin: auto 0;
	}
	
	/* 会社概要　*/
	#company{
		width: 100%;
		background-image: url("../image/company/background1.png");
		background-repeat: no-repeat;
		background-size: cover;
		padding-bottom: 30px;
	}
	#company h3{
		padding-top: 200px;
		font-size: 20px;
		font-weight: 900;
		color: #fff;
		text-align: center;
	}
	table {
		width: 60%;
		border-collapse : collapse;
		margin: 50px auto;
	}
	table th,table td {
	border: 2px solid #fff;
	padding: 20px;
	background-color: #F2F2F2; 
	line-height: 25px;
	}
	table td{
		text-align: left;
	}

	table th {
	font-weight: bold;
	background-color: #ABCCD4; 
	}
	
	/* 会社沿革　*/
	#history{
		width: 100%;
		background-image: url("../image/company/background2.jpg");
		background-repeat: no-repeat;
		background-size: cover;
		background-position: center;
		padding-bottom: 100px;
	}
	#history h3{
		padding: 100px 0 50px;
		font-size: 20px;
		font-weight: 900;
		color: #1F5C7B;
		text-align: center;
	}
	#history p{
		text-align: center;
		width: 40%;
		margin: auto;
		font-size: 18px;
		border-bottom: 1px solid #1F5C7B;
		line-height: 100px;
	}
	#map{
		margin: 80px auto 100px;
	}
}

@media screen and (max-width: 769px) {
	
	/* ヘッドライン　*/
	#headline{
		width: 100%;
		background-color: #1F5C7B;
		text-align: center;
		background-image: url("../image/company/headline.jpg");
		background-position: center;
		background-size: cover;
		z-index: 15;
		position: relative;
	}
	#headline div{
		margin: auto;
		padding: 80px 0 100px;
		width: 40%;
	}
	#headline h2{
		padding: 20px 0;
		font-size: 25px;
		font-weight: 900;
		color: #fff;
		background: rgba(31,92,123,0.7);
	}
	
/* メニューバー　*/
#menu{
	width: 100%;
	height: 80px;
	margin-top: -5%;
	background-color: #1F5C7B;
	position: relative;
	z-index: 15;
	transform:skew(0deg, -5deg);
}
.menu_child{
	display: none;
}
	
	/* 社長挨拶　*/
	#message{
		margin-top: 100px;
		width: 100%;
	}
	#message h3{
		font-size: 20px;
		font-weight: 900;
		color: #1F5C7B;
		text-align: center;
	}
	.message_child{
		width: 95%;
		margin: 50px auto;
	}
	.message_child img{
		width: 90%;
		margin: 0 auto 30px;
	}
	.message_child .text{
		width: 90%;
		margin: auto;
		line-height: 20px;
	}
	.text p{
		margin: 20px 0;
		line-height: 25px;
	}
	.text p:last-child{
		margin-top: 50px;
		text-align: right;
	}
	
	/* 会社概要　*/
	#company{
		margin-top: -20px;
		width: 100%;
		background-image: url("../image/company/background1.png");
		background-repeat: no-repeat;
		background-size: cover;
		padding-bottom: 30px;
	}
	#company h3{
		padding-top: 200px;
		font-size: 20px;
		font-weight: 900;
		color: #fff;
		text-align: center;
	}
	table {
		width: 95%;
		border-collapse : collapse;
		margin: 50px auto;
	}
	table th,table td {
	border: 2px solid #fff;
	padding: 20px;
	background-color: #F2F2F2; 
	line-height: 25px;
	}
	table td{
		text-align: left;
	}

	table th {
	font-weight: bold;
	background-color: #ABCCD4; 
	}
	
	/* 会社沿革　*/
	#history{
		width: 100%;
		background-image: url("../image/company/background2.jpg");
		background-repeat: no-repeat;
		background-size: cover;
		background-position: center;
		padding-bottom: 100px;
	}
	#history h3{
		padding: 100px 0 50px;
		font-size: 20px;
		font-weight: 900;
		color: #1F5C7B;
		text-align: center;
	}
	#history p{
		text-align: center;
		width: 95%;
		margin: auto;
		font-size: 18px;
		border-bottom: 1px solid #1F5C7B;
		line-height: 100px;
	}
	#map{
		margin: 80px auto 100px;
	}
}