/* IMPORT CSS */
@import url("grid.css");

img {
	max-width:100%;
	height: auto;/*高さ自動*/
	text-align:center;
	margin: 0 auto;
	border:solid 1px #ccc;
	padding:4px;
}


a {
    display:block;
    color: #666;
	text-decoration-line: none;
}
a.footer:link{
	color: #fff;
}

a:hover {
    color: #57bff0;
}
a.footer:hover {
    color: #fff;
}
a img:hover {
	opacity: 0.8;
}
.blueback {
	background-color: #57bff0;
	color: #fff;
	padding: 1rem;
}
.underline {
	border-bottom: 3px solid #57bff0;
	padding-bottom: 0.5rem;
}
/*ヘッダー
-------------------------------------*/
.head {
	display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
}

.head h1 {
    padding: 1rem 0;
}
.telbox {
	margin-left: auto;
	font-size: 20px;
	padding: 1rem 0 0 0;
	color: #57bff0;			/*文字色*/
	white-space: nowrap;      /*折り返さない*/
}
.telbox span {
	display: block;
	font-size: 11px;	/*文字サイズを小さく*/
	letter-spacing: 0.1rem;	/*文字間隔*/
	color: #666;			/*文字色*/
	white-space: nowrap; /*折り返さない*/
}
.menu {
	background-color: #fff;
	COLOR: #57bff0;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
		font-weight: bold;	/*太字に*/
		border-left: 1px solid #dcdcdc;	/*メニューの線の幅、線種、色*/
		border-right: 1px solid #dcdcdc;	/*メニューの線の幅、線種、色*/
	margin-bottom: 0;
}
nav li {
  flex: 1 0 auto;
	margin-bottom: 0;
	width: 16.66%;	/*メニュー幅（100÷6個=16.66%）　もし４個にするなら100÷4=25%になる。*/
}
nav li a {
  text-decoration: none;
  text-align: center;
	color: #57bff0;
	border-right: 1px solid #dcdcdc;	/*メニューの右側の線の幅、線種、色*/
}
nav li a span {
	text-shadow: none;display: block;
	font-size: 12px;			/*文字サイズ*/
	font-weight: normal;	/*文字を太字でなく標準に戻す設定*/
	letter-spacing: 0.2em;	/*文字間隔を少しあける設定*/
	color: #dcdcdc;	/*文字色*/
}
nav a:hover {
	background: #57bff0;	/*背景色*/
	color: #fff;
}
nav a {
    padding: 2rem 1rem;
	display: block;
}
.right {
	text-align:right;
}
.right p {
	display:inline-block;
	text-align: left;
}
.main_center{
	font-size:20px;
	text-align:center; 
}
.main_left{
	font-size:20px;
	text-align:left; 
	float: left;
}
/*1文字字下げ */
.main_indent{
	padding-left:1rem;
}
/*2行目以降1文字字下げ */
.main_indent2{
	padding-left:1rem;
	text-indent:-1;
}
.center_a {
	font-size:30px;
	text-align:center; 
}
.center p {
	display:inline-block;
	text-align: left;
}
@media screen and (min-width: 768px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.head {
	flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}
.telbox {
	margin-left: 0;
	text-align: center;
	white-space: nowrap;
}
.head #open,#close  {
    position: absolute;
    top: 20px;
    right: 12px;
    }
nav ul {
	flex-direction: column;
}

nav li {
	padding-top: 0;
	border-bottom: 1px solid #ccc;
	margin-bottom: 0;
}

/* スマホ時はMENUボタンを表示 */
#open,#close  {
    display: none !important;
/*ボタン展開がバグるので非表示にしておく
    display: block;
    width: 50px;
    border: none;
    position: absolute;
    top: 20px;
	right: 12px;
*/
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}

/*メイン画像
-------------------------------------*/
.mainimg img {
	max-width: 100%;
	height:auto;
	text-align: center;
	display:block;
}
/*会社名画像
-------------------------------------*/
.comimg img {
	max-width: 100%;
	height:auto;
	text-align: center;
	display:block;
	border-style :none;
}
/*部品画像
-------------------------------------*/
.buhinimg img {
	max-width: 100%;
	height:auto;
	border-style :none;
}
/*事業内容画像
-------------------------------------*/
.busiimg img{
	max-width: 100%;
	height:auto;
	text-align:left;
	display:block;
	margin: 0 auto;
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 2rem  2rem;
}

/*タイトル
-------------------------------------*/
.title h3 {
	background: linear-gradient(#fff, #57bff0 50%);		/*グラデーション*/
	font-size: 19px;
	font-weight:normal;
    border: 1px solid #ccc;
	color: #fff;
	padding: 1rem;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.23)
}
/*新着情報
-------------------------------------*/
.news h2 {
	background: linear-gradient(#fff, #57bff0 50%);		/*グラデーション*/
	font-size: 19px;
	font-weight:normal;
    border: 1px solid #ccc;
	color: #fff;
	padding: 1rem;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.23)
}
.news li {
  list-style-type: none;
	border-bottom: 1px solid #ccc ;
	padding: 0.5rem 0;
}

/*フッター
-------------------------------------*/
footer {
    background-color: #57bff0;
    padding: 5rem 0;
	color: #666;
	white-space: nowrap;
}
footer h5 {
    border-bottom: 2px solid #fff;
}
footer menu {
	background-color:#57bff0;
	text-align: center;
    display:block;
	text-decoration-line: none;
	white-space: nowrap;

}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #fff;
}
.copyright a {
    color: #000;
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background: #0099ffbd;
    color: #fff;
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background: #3366FF;
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: #959fa5;
}
