@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --back-color: #f7f7f7;
    --border-color: #ccc;
    --white-color: #fff;
}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:inline-block;
    color: #005894;
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}
a img {
    margin-bottom: 1rem;
}
a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 3px solid var(--base-color);
	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: 3.0rem;
	padding: 1rem 0 0 0;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin-bottom: 1rem;
    font-size: 14px;

}
nav li {
    display: block;
    flex: 1 0 auto;
}
nav li a {
    text-decoration: none;
    text-align: center;
}
nav a:hover {
    border-bottom: 2px solid #00B2DB;
    padding-bottom: 10px;
}
nav a {
    padding: 1em;
}

@media screen and (min-width: 769px){
/* 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;
}
.head #open,#close  {
    position: absolute;
    top: 28px;
    right: 12px;
    }
nav ul {
	flex-direction: column;
}

nav li {
	padding-top: 0;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 0;
}
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}

/*メイン画像
-------------------------------------*/
.mainimg img {
	width: 100vw;
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 5rem 0;
}

/*ご挨拶
-------------------------------------*/
.greeting h2 {
    border-bottom: 3px solid var(--base-color);
	padding-bottom: 0.5rem;
}
.greeting p {
    list-style-type: none;
	padding: 0 2rem;
}

/*業務内容
-------------------------------------*/
.business h3 {
    border-bottom: 1px solid var(--border-color);
}
.business li {
    list-style-type: none;
	padding: 0 0 0 0.5rem;
    font-size: 12px;
}

/*経歴
-------------------------------------*/
.table_career {
  border-collapse: collapse;
  width: 100%;
}

.table_career tr {
  background-color: #e6f1f6;
  font-size: 14px; 
}

.table_career tr:nth-child(odd) {
  background-color: #fff;
}

.table_career th, .table_career td {
  padding: 2em 0.8em;
  border: 1px solid #ddd; 
}

.table_career th {
  font-size: 12px;
  text-align: center;
  width: 28%;
  min-width: 4em;
}

/* 当社について
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.table_about {
  border-collapse: collapse;
  table-layout: fixed;
  width: 90%;
  margin: 0 auto;
  text-align: left;
}
.table_about th, .table_about td {
  border: 1px solid #ddd;
  padding: 1em;
}
.table_about thead th {
  background-color: #e6f1f6;
  border: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  color: #4d9bc1;
}
.table_about thead th:last-of-type {
  border-right: 1px solid #ddd;
}
.table_about tbody th {
  color: #4d9bc1;
  font-weight: bold;
  text-align: left;
}
@media screen and (max-width: 787px) {
  .table_about {
    text-align: left;
  }
  .table_about thead {
    display:none;
  }
  .table_about th, .table_about td {
    display: block;
    border: 0;
    border-bottom: 2px solid #e6f1f6;
  }
  .table_about tbody th{
    background: #e6f1f6;
    color:#fff;
  }
  .table_about td::before{
    content: attr(data-label);
    color: #4d9bc1;
    font-weight: bold;
    font-weight: bold;
    display: inline-block;
    width: 25%;
    min-width: 4em;
  }
}

/*著書
-------------------------------------*/
.publication h3 {
    border-bottom: 1px solid var(--border-color);
}
.publication li {
    list-style-type: none;
	padding: 0 0 0 0.5rem;
    font-size: 12px;
}

/*フッター
-------------------------------------*/
footer {
    background-color: var(--back-color);
    padding: 5rem 0;
}
footer h5 {
    border-bottom: 3px solid var(--border-color);
}
footer li {
    list-style-type: none;
	padding: 0 0 0 0.5rem;
    font-size: 12px;
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    background-color: var(--white-color);
}
.copyright a {
    color: var(--base-color);
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background-color: var(--base-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background-color: var(--link-color);
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}

/* スマホの時だけ改行させるクラス
-----------------------------------*/
.sp {
    display: none;
}

@media (max-width: 600px) {
    .sp {
        display: block;
    }
}