@charset "UTF-8";
/* CSS Document */

/*cssリセット：どのブラウザでも適切なレイアウトで表示されるための初期設定*/
html,
html * {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", "sans-serif";
}

/*ホームページ全体のデザイン*/
body{
	margin-left: auto;
	margin-right: auto;
	min-width: 350px;
	background-color: #ececed;
}

header{
	padding: 32px;
	background-color: #cacdd4;
}

/*超重要*/
/*行と列の初期定義*/
.row:before, .row:after{
	content: "";
	display: table;
}

.row:after{
	clear: both;
}

/*colの設定*/
.col{
	width: 100%;
}

/*ロゴの定義*/
.style-logo{
	margin-left: auto;
	margin-right: auto;
	width: 50px;
	margin-bottom: 20px;
	display: block;
}

/*ロゴスタイル*/
.col-head{
	margin: auto;
	padding-top: 10px;
	width: 70px;
	height: 100px;
}
	
.style_nav ul li a{
	color: #5a5f70;
	font-size: 12px;
	text-decoration: none;
	text-align: center;
	display: block;
	padding: 10px 3px;
}

.style_nav ul li a:hover{
	color: #ffffff;
}
	
ul{
	list-style: none;
	display: flex;
	justify-content: space-between;
}

li{
	width: calc(100%/5);
	/*border-top: 3px solid #5a5f70;
	border-bottom: 3px solid #5a5f70;*/
}

.style_nav img{
	width: 30px;
}

.menu-box{
	border-left: 1px dashed #FFFFFF;
	font-size: 12px;
	text-decoration: none;
	color: #5a5f70;
	text-align: center;
	display: block;
	padding: 10px 3px;
	cursor: pointer;
	overflow: auto;
}

.menu-box:hover{
	color: #ffffff;
}

#btn-u:hover{
	background-color: #5a5f70;
	border-radius: 10px;
	color: #ffffff;
}

#open:hover{
	background-color: #5a5f70;
}

#overlay {
  /* viewpointを相対位置にし、全画面表示にする */
  width: 100%;
  height: 120%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);  /* 背景を半透明にする */
  display: none;  /* HTML要素を非表示にする */
  z-index: 1;  /* 「メインのHTML要素」よりもスタックレベルを高くする */
  overflow: auto;
 }


#modalWindow {
  	width: 350px;
  	height: 90%;
  	position: fixed; 
  	border: 3px solid #5a5f70;
	border-radius: 10px;
  	background-color: rgba(202,205,212,0.90);
  	display: none; 
  	color: #FFFFFF;
	overflow: scroll;
  	z-index: 2;
}

#modalWindow p{
	text-align: center;
	color: #5a5f70;
	font-size: 10px;
}

#modal-btn img {
  	width: 30px;
	margin: 0px 10px 0px 10px;
	vertical-align: middle;
}

/*モーダルウィンドウ内のボタン*/
#modal-btn{
	display: block;
	border: 1px rgba(90,95,112,0.70) solid;
	background-color: #CACDD4;
	width: 90%;
	padding: 10px 30px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
	border-radius: 10px;
	color: #5a5f70;
	vertical-align: middle;
	cursor: pointer;
}

#modal-btn:hover{
	background-color: #5a5f70;
	color: #ffffff;
}

.modal-a{
	font-size: 14px;
	text-decoration: none;
	color: #FFFFFF;
}

/*モーダルウィンドウ内のボタン*/
#close-btn{
	display: block;
	border: 1px rgba(255,255,255,0.1) solid;
	background-color: rgba(90,95,112,0.70);
	width: 90%;
	padding: 10px 50px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
	border-radius: 10px;
	color: #FFFFFF;
	vertical-align: middle;
	font-size: 14px;
	text-decoration: none;
}

#close-btn:hover{
	background-color: rgba(90,95,112,1.0);
}

.modal-head p{
	font-size: 10px;
}

.modal-head{
	margin-left: 30px;
}

.model-head span{
	text-align: center;
	color: #5a5f70;
}

.btn-close{
	border: 1px rgba(255,255,255,0.1) solid;
	background-color: rgba(227,227,227,0.1);
	padding: 2px 8px;
	margin: 5px 5px;
	text-align: center;
	border-radius: 15px;
	color: #FFFFFF;
	text-decoration: none;
	float: right;
}

.btn-close:hover{
	background-color: #5A5F70;
}

/*span*/
span{
	font-size: 6px;
}

/*main*/
main{
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

/*mainphoto*/
.main-photo{
	width: 100%;
	padding: 100px;
}

/*小林研とは*/
.main-theme{
	color: #5a5f70;
	padding: 60px 50px;
	margin-left: auto;
	margin-right: auto;
	max-width: 400px;
}

.main-theme-text{
	padding-top: 20px;
	font-size: 15px;
}

/*news*/
.news{
	padding: 20px;
	color: #5a5f70;
	font-size: 12px;
}

.news img{
	width: 11px;
	height: 11px;
	float: left;
	border-style: none;
	margin: 3px;
}

.col-md-news{
	padding-top: 10px;
}

.col-news-text{
	height: 70px;
	padding-left: 120px;
}

.news_detail{
	color: #5a5f70;
	text-decoration: none;
}

h2{
	text-align: center;
	color: #5a5f70;
	font-size: 20px;
}

h4{
	text-align: center;
	margin-bottom: 10px;
	color: #5a5f70;
	font-size: 14px;
}

.date{
	color: #5a5f70;
}

/*ボタン設定*/
.button-text{
	margin-top: 30px;
	text-align: center;
}

.button{
	background-color: #ececed;
	color: #5a5f70;
	padding: 12px 25px;
	border-radius: 30px;
	border: solid 1px #5a5f70;
	text-decoration: none;
	font-size: 12px;
}

.button:hover{
	background-color: #5a5f70;
	color: #ffffff;
}

h3{
	text-align: center;
	font-weight: 300;
}

/*下線の設定*/
hr{
	border-color: #5a5f70;
}

/*sectionの設定*/
section{
	margin-top: 30px;
	margin-bottom: 30px;
}

/*project*/
.project{
	padding: 20px;
	color: #5a5f70;
	font-size: 10px;
}

.project img{
	width: 96px;
	height: 96px;
	float: left;
	border-radius: 10px;
	border: 3px #5a5f70 solid;
}

.col-md-project{
	padding-top: 10px;
}

.col-project-text{
	height: 96px;
	padding-left: 120px;
	padding-top: 10px;
	font-size: 14px;
}

.title{
	font-size: 16px;
}

#database button{
	margin-top: 10px;
	margin-bottom: 10px;
	width: 100%;
	height: 250px;
	background-color: #ececed;
	color: #5a5f70;
	border-radius: 5px;
	border: solid 1px #5a5f70;
	text-decoration: none;
}

#database button:hover{
	background-color: rgba(90,95,112,0.10);
	cursor: pointer;
}

button img{
		width: 10px;
		border-style: none;
	}

button p{
	text-align: left;
	margin-left: 10px;
}

/*フッター*/
footer{
	background-color: #cacdd4;
	margin-top: 10px;
}

.footertext{
	padding: 10px;
	color: #5a5f70;
	text-align: center;
	font-size: 12px;
}

/*タブレット用*/
@media (min-width: 768px){
	
	main{
		max-width: 900px;
	}
	
	.style-logo{
		width: 50px;
	}
	
	.style-nav ul li{
		display: inline-block;
	}
	
	.style-nav ul{
		text-align: center;
	}
	
	.style_nav{
		width: 450px;
		margin-right: 20px;
		float: right;
	}
	
	.col-head{
		float: left;
		margin: 10px 50px;
	}
	
	li{
		border-top: none;
		border-bottom: none;
		margin-top: 20px;
		margin-bottom: 20px;
	}
	
	.menu-box{
		border-left: none;
	}
	
	.modal-head{
		float: left;
		margin-bottom: 25px;
	}
	
	/*2段組にする設定*/
	.col-md-half{
		width: 50%;
	}
	
	.col{
		float: left;
	}
	
	/*ニュース*/
	.col-md-news{
		width: 33%;
		padding: 30px;
	}
	
	.col-md-news img{
		width: 100%;
		height: 100%;
		margin-bottom: 10px;
	}
	
	.col-news-text{
		height: auto;
		padding-left: 0px;
		font-size: 16px;
	}
	
	/*研究内容*/
	.col-md-project{
		width: 33%;
		padding: 30px;
	}
	
	.col-md-project img{
		width: 100%;
		height: 100%;
		margin-bottom: 10px;
	}
	
	.col-project-text{
		height: auto;
		padding-left: 0px;
		font-size: 16px;
	}
	
	#database button{
		height: 150px;
	}
	
}

/*デスクトップ用*/
@media (min-width: 1024px){
	
	main{
		max-width: 1200px;
	}
	
	.style-logo{
		float: left;
		width: 50px;
	}
	
	.style-nav{
		float: right;
	}
	
	.main-theme{
		margin-top: 30px;
	}
	
	.main-photo{
		max-width: 600px;
		margin-left: 60px;
		padding: 140px;
	}
	
	.main-theme{
		padding: 150px 50px;
	}
	
	#database button{
		height: 100px;
	}
}
