/*=======全体指定=======*/
html, body {
	height: 100%;
}

/*スムーズスクロール*/
html {
    scroll-behavior: smooth;
}

/*テキストを明朝体に*/
body {
	font-family: serif;
}

/*画像は親要素の横幅まで広がり、高さは幅に応じた成り行きでアスペクト比が保たれる*/
img {
	max-width: 100%;
	height: auto;
}

/*右に生じた余白を消す*/
.wrap {
	overflow: hidden;
}

/*フォントサイズ*/
p {
	font-size: 16px;
	line-height: 1.7;
}

/*テキスト左寄せ*/
.text_left {
	text-align: left;
}


/*中央寄せコンテナ*/
.container {
	width: 60%;
    text-align: center;
    margin: auto;
 }







/*=======メインビジュアル=======*/
.header-bg {
  background-image: url("../images/mainvisual.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
}

/*メインビジュアル上の青いボックス*/
.box-blue {
	width: 40%;
	background-color: #171C61;
		position: absolute;
		top: 50%;
}

.box-blue p {
	color: #fff;
	padding-top: 10px;
	margin-right: 20px;
	font-size: 24px;
	text-align: right;
}




/*=======メニュー=======*/
.header-flexbox {
	display: flex;
	height: 60px;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	padding-bottom: 20px;
}

.header-menu {
	background-color: rgba(255,255,255,1);
}

/*メニューのロゴ*/
#logo_pc img {
	width: 100px;
	padding-top: 6px;
}

/*メニューのロゴ(スマホ版を削除)*/
#logo_sp img {
	display:none;
}

/*メニューボタン*/
.header-nav ul {
	display: flex;
	width: 400px;
	justify-content: space-between;
}

.header-nav ul li a {
	display: block;
	padding: 15px 24px;
	color: #171C61;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
	position: relative;
}


/*ホバーでメニューボタンに下線を引く*/
.header-nav ul li a::before,
.header-nav ul li a::after {
	border-bottom: solid 2px  #171C61;
	bottom: 0 ;
	content: "";
	display: block;
	position: absolute;
	transition: all .3s ease;
	width: 0;
}

.header-nav ul li a::before {
	left: 50%;
}
.header-nav ul li a::after {
	right: 50%;
}

.header-nav ul li a:hover::before,
.header-nav ul li a:hover::after {
	width: 50%;
}





/*=======見出し=======*/
/*左上*/
h1 {
	text-align: right;
	margin-right: 20px;
	padding-top: 10px;
	font-size: 14px;
	color: white;
}

/*コンテンツ大見出し*/
h2 {
	text-align: center;
	font-size: 34px;
	color: #171C61;
	margin: 32px 0;
	padding-top: 20px;
	/*上部の余白消去*/
	margin-top: 0;
}
.subtitle {
	font-size: 24px;
	color: #1B5EAB;
}

/*h2画像*/
.h2_p1, .h2_p2, .h2_p3 {
	padding: 80px 0;
	background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.h2_p1 {
	background-image: url(../images/pic_t1.png);
}
.h2_p2 {
	background-image: url(../images/pic_t2.png);
}
.h2_p3 {
	background-image: url(../images/pic_t3.png);
}


/*中見出し*/
h3 {
	text-align: center;
	font-size: 24px;
	color: #171C61;
	margin-bottom: 5px;
	margin-top: 80px;
}


/*小見出し（グループ会社名）*/
h4 {
	font-size: 22px;
	color: #464646;
	text-align: left;
}





/*=======ニュース=======*/
/*背景*/
#news {
	background-color: #FAFAFA;
	padding-top: 20px;
	padding-bottom: 80px;
}

/*ニューステーブル*/
.news-box {
	background-color: #fff;
	width: 600px;
	padding: 30px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
}
.news-box dt {
	width: 35%;
	padding: 5px 0;
}
.news-box dd {
	width: 65%;
	padding: 5px 0;
}


/*※※※線太くする※※※*/
.news-box dd::before {
	content: "… ";
	color: #1B5EAB;
}





/*=======企業理念=======*/
/*企業理念テキスト青*/
.blue-text {
	color: #171C61;
	font-size: 20px;
	margin-bottom: 5px;
	margin-top: 20px;
}

/*企業理念テキスト*/
.big-text {
	font-size: 28px;
	color: #464646;
	text-shadow: 1px 2px 4px #AAAAAA;
	text-align: center;
	margin-bottom: 20px;
}




/*沿革*/
.timeline {
	display: flex;
	flex-wrap: wrap;
/*	background-color: red;*/
/*			background-image: url(../images/arrow.png);
			background-repeat: no-repeat;
			background-position: right center;*/
	margin-top: 30px;
}

.timeline-time {
	width: 40%;
	padding-bottom: 20px;
	font-weight: bold;
	color: #1B5EAB;
}

.timeline-time:after {
	color: #1B5EAB;
	content: '　……';
}


.timeline-p {
	width: 60%;
	text-align: left;
		padding-bottom: 20px;
}




/*２カラム（画像+テキスト）*/
.main-flexbox {
	display: flex;
		justify-content: space-around;
		align-items: center;
		margin-bottom: 70px;	
}

.main-flexbox-img {
	width: 30%;
	height: auto;
}

.main-flexbox-text {
	padding: 20px;
}




/*ハコブグループ組織図*/
.chart img {
	width: 45%;
	height: auto;
	padding-top: 60px;
	padding-bottom: 60px;

}




/*沿革*/
/*.year {
	background-color: #999;
	display: inline-block;
		padding: 5px 10px;
		border-radius:30px;
		font-weight: bold;
}*/




/*=======会社概要=======*/
/*テーブル*/
.overview {
	border-collapse: collapse;
	display: inline-block;
}
.overview th,.overview td {
	border: solid 1px #999999;
}
.overview th {
	background-color: #F5F5F5;
	padding: 18px 26px;
}
.overview td {
	padding: 18px;
}

#company-overview p {
	margin-top: 20px;
}

#company-overview {
	margin-bottom: 80px;
}


/*グーグルマップ（レスポンシブ） */
.gmap {
	height: 0;
	overflow: hidden;
	padding-bottom: 56.25%;
	position: relative;

}
.gmap iframe {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
}




/*=======主要グループ企業=======*/
/*グループ　箱*/
.groups-flexbox {
	display: flex;
	border: 1px solid #999999;
	justify-content: space-between;
	align-items: center;
	padding: 30px;
	margin-bottom: 40px;
	width: 50%;
}

.groups-flexbox-left {
	width: 80%;
}

.groups-flexbox-right img {
	width: 100px;
}



/*リンクボタン*/
.linkbtn {
	appearance: none;
	border: 2px solid #1B5EAB;
	border-radius: 5px;
	background: #fff;
	color: #1B5EAB;
	padding: 4px 16px;
	font-size: 14px;
	margin-top: 10px;
	cursor: pointer;
}
.linkbtn:hover {
	background: #1B5EAB;
	color: #fff;
}



/*=======フッター=======*/
.footer-menu {
	background-color: #171C61;
}

.footer-flexbox {
	display: flex;
	height: 160px;
	justify-content: space-between;
	align-items: center;
}

.footer-menu img {
	width: 140px;
}
.footer-menu p {
	color: #fff;
	font-size: 18px;
}

/*コピーライト*/
.copyright {
	font-size: 12px;
	color: #171C61;
	text-align: center;
}








/*=======後で消す=======*/


/*チャート*/
/*.chart-container {
    width:580px; 
    font-size:11px;
    text-align:center;
    margin:40px auto;
 }  

#no1 {
    width:190px;
    line-height:60px;
    border: none;
    margin:auto;
 }
.line-height {
    font-size:0;
    width:1px;
    height:20px;
    color:#fff;
    background-color:#999999;
    margin:auto;
 } 
.line-weight {
    font-size:0;
    width:424px;
    height:1px;
    color:#fff;
    background-color:#999999;    
    margin:auto;
 } 

.line-height1 {
    font-size:0;
    display:inline;
    width:1px;
    height:20px;
    color:#fff;
    background-color: #999999;
    margin-left:78px;
    float:left;
}

.line-height2,.line-height3 {
    font-size:0;
    display:inline;
    width:1px;
    height:20px;
    color:#fff;
    background-color: #999999;
    margin-left:211px;
    float:left;
}

.line-height3 {
    font-size:0;
    display:inline;
    width:1px;
    height:20px;
    color:#fff;
    background-color: #999999;
    margin-left:210px;
    float:left;
}

.box-icon-left {
    display:inline;
    border: none;
    clear:both;
    	margin-left:35px;
        margin-top:10px;
    float:left;
}
.box-icon-left img,
.box-icon-center img,
.box-icon-right img
 {
	width: 100px;
	height: 120px;
}

.box-icon-center {
    display:inline;
    border: none;
    margin-left: 110px;
        margin-top:10px;

    float:left;
 }

.box-icon-right {
    display:inline;  
    border: none;
    margin-left: 100px;
        margin-top: 10px;
    float:left;
 }*/

/*チャートのフロート解除*/
/* .clearfix::after {
  content: "";
  display: block;
  clear: both;
}       
*/



/*タイムラインテスト*/
/*.timeline {
  list-style: none;
}
.timeline > li {
  margin-bottom: 60px;
}

@media ( min-width : 640px ) {
 
.timeline > li {
  overflow: hidden;
  margin: 0;
  position: relative;
}
.timeline-date {
  width: 110px;
  float: left;
  margin-top: 20px;
	background-color: #999;
		border-radius:15px;
		font-weight: bold;
}
.timeline-content {
  width: 75%;
  float: left;
  border-left: 3px #e5e5d1 solid;
  padding-left: 30px;
}

.timeline-content:before {
  content: '';
  width: 12px;
  height: 12px;
  background: #6fc173;
  position: absolute;
  left: 106px;
  top: 24px;
  border-radius: 100%;
}
 
}
*

/*=======ここまで=======*/



/*=======ページトップに戻るボタン=======*/
#pagetop-button {
	width: 80px;
	height: 80px;
	position: fixed;
	right: 20px;
	bottom: 20px;
	background: #1B5EAB;
	opacity: 0.6;
}
#pagetop-button a{
	position: relative;
	display: block;
	width: 80px;
	height: 80px;
	text-decoration: none;
}

#pagetop-button a::after{
	content: 'TOPへ';
	font-size: 14px;
	font-weight: bold;
	color: #fff;
	position: absolute;
	top: 34px;
	bottom: 0;
	right: 0;
	left: 0;
	margin: auto;
	text-align: center;
}




/*=======ハンバーガーメニュー用のチェックボックスを隠す=======*/
#menu-btn-check {
    display: none;
}









/*============================*/
/*============================*/

/*スマートフォン向けCSS*/
@media (max-width: 767px){
	/*====全体設定====*/
	/*横幅を広げる*/
	.container {
		width: 100%;
	}

	p {
		font-size: 14px;
		line-height: 1.7;
	}

	/*見出し*/
	h1 {
		font-size: 12px;
	}

	h2 {
		font-size: 28px;
	}
	.subtitle {
		font-size: 18px;
	}
	.h2_p1, .h2_p2, .h2_p3 {
		padding: 30px 0;
	}

	h3 {
		font-size: 20px;
	}

	h4 {
		font-size: 18px;
		text-align: center;
		margin-top: 24px;
	}



	/*====ヘッダー====*/
	/*上部固定ヘッダー */
	.header-menu {
		background-color: #fff;
		height: 60px;
		width: 100%;
		text-align: center;
		position: fixed;
		    z-index: 20;
	}

	/*ヘッダー 固定分位置修正*/
	section {
		margin-top: -61px;
		padding-top: 61px;
	}

	/*メニューのロゴ(PC版を削除・スマホ版表示)*/
	#logo_pc img {
		display:none;
	}
	#logo_sp img {
		display:inline;
		width: 100px;
		padding-top: 4px;
	}

	/*ハンバーガーボタン*/
	.menu-btn {
    	position: fixed;
    	top: 3px;
    	right: 10px;
    	display: flex;
    	height: 60px;
    	width: 60px;
    	justify-content: center;
    	align-items: center;
    	z-index: 90;
    	background-color: rgba(0,0,0,0);
	}
	.menu-btn span,
	.menu-btn span:before,
	.menu-btn span:after {
    	content: '';
    	display: block;
    	height: 3px;
    	width: 25px;
    	border-radius: 3px;
    	background-color: #171C61;
    	position: absolute;
	}

	.menu-btn span:before {
	    bottom: 8px;
	}
	.menu-btn span:after {
    	top: 8px;
	}

	#menu-btn-check:checked ~ .menu-btn span {
    	background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
	}
	#menu-btn-check:checked ~ .menu-btn span::before {
    	bottom: 0;
    	transform: rotate(45deg);
	}
	#menu-btn-check:checked ~ .menu-btn span::after {
    	top: 0;
    	transform: rotate(-45deg);
	}



	/*ハンバーガーボタンを押すと現れるメニュー*/
	.header-flexbox {
	    width: 100%;
	    height: 100%;
	    padding-top: 20px;
	    position: fixed;
	    left: 100%;/*leftの値を変更してメニューを画面外へ*/
	    top: 60px;
	    z-index: 80;
	    background-color: #ffffff;
	    flex-direction: column;
	    justify-content: start;
	    transition: all 0.5s;/*アニメーション設定*/
	}
	/*メニューを画面内へ*/
	#menu-btn-check:checked ~ .header-flexbox {
	    left: 0;
	}
	/*メニューを縦並びに*/
	.header-nav ul {
		flex-direction: column;
	}







	/*====メインビジュアル====*/
	.header-bg {
  		background-image: url("../images/mainvisual.png");
  		background-size: cover;
  		height: 70vh;
	}

	/*メインビジュアル上の青いボックス*/
	.box-blue {
		width: 60%;
		background-color: #171C61;
		position: absolute;
		top: 30%;
	}
	.box-blue p {
		padding-top: 10px;
		margin-right: 20px;
		font-size: 18px;
		text-align: right;
	}
	.box-blue span {
		font-size: 14px;
		padding-bottom: 20px;
	}




	/*====ニュース====*/
	.news-box {
    	flex-direction: column;
    	width: 80%;
	}

	.news-box dd {
		margin-left: auto;
	}




	/*====企業理念====*/
	/*青テキスト*/
	.blue-text {
		font-size: 16px;
	}

	.chart img {
		width: 60%;
	}

	/*沿革*/
	.timeline {
		flex-direction: column;
	}
	.timeline-p {
		margin: 0 auto;
		width: 80%;
		text-align: right;
		padding-top: 0px;
		line-height: 1.7;
		font-size: 14px;
	}
	.timeline-time {
		width: 60%;
		padding-bottom: 10px;
	}
	.timeline-time:after {
		color: #1B5EAB;
		content: '　…………';
	}



	/*２カラム→縦並びに*/
	.main-flexbox {
    	flex-direction: column;
    	width: 90%;
 	}
 	.main-flexbox-img {
 		padding-top: 20px;
    	width: 80%;
	}





	/*====会社概要====*/
	/*テーブル縦並び*/
	.overview {
		width: 85%;
		text-align: center;

	}
	.overview th,
	.overview td {
		display: block;
		margin: 0 auto;
	}



	/*====企業グループ企業====*/
	.groups-flexbox {
		flex-direction: column-reverse;
		width: 70%;
	}
	.groups-flexbox-left {
		width: 100%;
		text-align: center;
	}
	.groups-flexbox-left p{
		text-align: center;
	}

	/*リンクボタン中央寄せ*/
	.btn {
		margin: 10px;
		text-align: center;
	}





	/*====フッター====*/
	.footer-flexbox {
		display: block;
		padding: 10px 0;
		height: 100%;
	}
	.footer-menu img {
		width: 80px;
	}
	.footer-flexbox p{
		display:none;
	}


}

