/*html, body {
    font-family: 'Sawarabi Gothic', sans-serif;

}*/
body {
    background-image: url(../img/toho.png),url(../img/top.png);
    background-position: left -1% top -2%,right bottom;
    background-repeat: no-repeat,no-repeat;
    background-size: auto 250px , 1000px auto;/* 幅 高さ */
    background-attachment:scroll , fixed;
    display: flex;
    flex-direction: column;
    margin:0;
    padding:0;
    height:100%;
}
main {
    position: relative;
    margin-left:auto;
    margin-right:auto;
    text-align: center;
    width: 950px;
    min-height: 100%;
    flex: 1;
}

@media screen and (max-width: 1000px) {
body {
    background-image: url(../img/toho.png),url(../img/top.png);
    background-position: left 1% top,right bottom;
    background-repeat: no-repeat,no-repeat;
    background-size: 30% auto,90% auto;
}
main {
    margin-top:100px;
    margin-bottom:100px;
    position: relative;
    margin-left:auto;
    margin-right:auto;
    text-align: center;
    height:100%;
    width: 100%;
}
}

/* Nav
-----------------------------------------*/
.Nav {
  margin-top: 0px;
  /*border-top: solid 1px #F5F4F0;*/
  /*border-bottom: solid 1px #F5F4F0;*/
  text-align: center;
}
nav ul {
  list-style:none;
  padding:0;
}
@media screen and (max-width: 1000px) {
  .Nav {
    position: relative;
  border-top:none;
  }
}
.Nav .navbtn {
  display: none;
}
@media screen and (max-width: 1000px) {
  .Nav .navbtn {
    display: block;
    position: absolute;
    top: 0px;
    right: 10px;
    z-index: 100;
  }
}
@media screen and (max-width: 1000px) {
  .Nav .navbtn a,
  .Nav .navbtn a.close {
    display: block;
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #000;
  }
  .Nav .navbtn a::before,
  .Nav .navbtn a.close::before {
    position: absolute;
    top:10px;
    left:10px;
    content:"";
    width: 20px;
    height: 3px;
    background-color: #FFF;
   transition: .2s;
  }
  .Nav .navbtn a.open::before {
    top:19px;
    transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  }
  .Nav .navbtn a::after,
  .Nav .navbtn a.close::after {
    position: absolute;
    bottom:10px;
    left:10px;
    content:"";
    width: 20px;
    height: 3px;
    background-color: #FFF;
    transition: .2s;
  }
  .Nav .navbtn a.open::after {
    bottom:18px;
    transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  }
}
@media screen and (max-width: 1000px) {
  .Nav .navbtn a.open {
  }
}
 
@media screen and (max-width: 1000px) {
  .Nav .navbtn a span {
    display: block;
    overflow: hidden;
    width: 1px;
    height: 1px;
  }
  .Nav .navbtn a span::after,
  .Nav .navbtn a.close span::after {
    position: absolute;
    top:18px;
    left:10px;
    content:"";
    width: 20px;
    height: 3px;
    background-color: #FFF;
  }
  .Nav .navbtn a.open span::after {
    display: none;
  }
}
.Nav ul.close {
  display: none;
  border-top: solid 1px #F5F4F0;
}
.Nav > ul {
  margin: 0 auto;
  max-width: 1000px;
}
@media screen and (max-width: 1000px) {
  .Nav > ul {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    background-color: #FFF;
  }
}
.Nav > ul > li {
  position: relative;
  font-size: 15px;
  display: inline-block;
  width: 150px;
}
@media screen and (max-width: 1000px) {
  .Nav > ul > li {
    display: block;
    border-bottom: solid 1px #dddddd;
    width: 100%;
  }
}
.Nav > ul > li a {
  display: block;
  position: relative;
  text-decoration: none;
  padding: 19px 15px;
  font-size: 15px;
  color: #333;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 2;
}
.Nav > ul > li.parent > a {
  padding-right:25px;
}
.Nav > ul > li.parent > a::before {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 6px;
    height: 6px;
    margin: -6px 0 0 0;
    border-top: solid 2px #00a0e9;
    border-right: solid 2px #00a0e9;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}
@media screen and (max-width: 1000px) {
.Nav > ul > li.parent.open > a::before {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
}
@media screen and (max-width: 1000px) {
  .Nav > ul > li.parent.open {
    border-bottom: none;
  }
}
  .Nav > ul > li.parent.open > a{
    color: #FFF;
  }
  .Nav > ul > li.parent.open > a::after {
  background: #333;
  -webkit-transform: scale(1);
  transform: scale(1);
}
@media screen and (max-width: 1000px) {
  .Nav > ul > li.parent.open > a {
    color: #FFF;
  }
}
 
.Nav > ul > li a:hover {
  color: #fff;
}
.Nav > ul > li a::after {
  position: absolute;
  z-index: -1;
  display: block;
  content: '';
}
.Nav > ul > li a,
.Nav > ul > li a::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all .3s;
  transition: all .3s;
}
.Nav > ul > li a::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transform: scale(.5);
  transform: scale(.5);
}
.Nav > ul > li a:hover::after {
  background: #333;
  -webkit-transform: scale(1);
  transform: scale(1);
}
 
/* 2階層 */
.Nav > ul > li > ul {
  display: none;
  position: absolute;
  top: 61px;
  left: 0;
  min-width: 150px;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9;
}
 
@media screen and (max-width: 1000px) {
  .Nav > ul > li > ul {
    background-color: #fbfbfb;
    position: static;
  }
}
 
.Nav > ul > li > ul li {
  white-space: nowrap;
}
 
.Nav > ul > li > ul li a {
  position: relative;
  padding: 12px 27px 12px 27px; /* 上 | 右 | 下 | 左 */
}
@media screen and (max-width: 1000px) {
  .Nav > ul > li > ul li a {
    border-bottom: solid 1px #dddddd;
    background-color: #EEE;
  }
}
.Nav > ul > li > ul li a::before {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    width: 6px;
    height: 6px;
    margin: -6px 0 0 0;
    border-top: solid 2px #00a0e9;
    border-right: solid 2px #00a0e9;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.Nav > ul > li > ul li a:hover {
  text-decoration: underline;
}
 
@media screen and (max-width: 1000px) {
  .Nav > ul > li > ul li a:hover {
    background-color: #FFF;
  }
}
 
.Nav > ul > li > ul li ul li a {
  padding-left: 42px;
}
.Nav > ul > li > ul li ul li a::before {
    left: 20px;
}




#clear {
    text-decoration: none; /* リンクの下線を出さない */
}
#clear:link {
    color: initial; /* 色の指定をリセット */
}
#clear:visited {
    color: initial; /* 色の指定をリセット */
}
#clear:hover {
    color: initial; /* 色の指定をリセット */
}

footer{
    width: 100%;
    height: 68px;
    background-color: #585858;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    left:0;
    margin:0;
    z-index:50;
}

.container {
    padding-bottom: 0.1em;
    box-sizing: border-box;
    padding-top:0.1em;
}

.link {
    padding-top:0.1em;
    padding-bottom:0.1em;
}

hr.style {
    margin: 3px auto 3px auto;/* 上 | 右 | 下 | 左 */
    width: 300px;
    text-align: center;
}

.container p {
    margin: 0;/* 上 | 右 | 下 | 左 */
}

a:link {
    color:#fff; /*未訪問リンクの色*/
    text-decoration: none; /*下線*/
}
a:visited {
    color:#fff; /*訪問済みリンクの色*/
    text-decoration: none; /*下線*/
}
a:hover {
    color:#D8D8D8; /*マウスを乗せた時（ホバー）した時のリンクの色*/
    text-decoration: none; /*マウスを乗せた時（ホバー）した時の下線*/
}
a:active {
    color:#fff; /*クリックした時のリンクの色*/
    text-decoration: none; /*クリックした時の下線*/
}




.top_box {
    width: 100%;
    position: absolute;
    padding: 2.5em 1.5em 100px 1.5em; /* 上 | 右 | 下 | 左 */
    text-align: left;
    -webkit-box-sizing: border-box;  /*webkit系*/
    -moz-box-sizing: border-box;  /*Firefox*/
    box-sizing: border-box;
}
.top_box p {
    width:100%;
    margin-top: 10%; 
    padding: 0;
    font-size:30px;
        text-shadow:1px 1px 0 #FFF, -1px -1px 0 #FFF,
              -1px 1px 0 #FFF, 1px -1px 0 #FFF,
              0px 1px 0 #FFF,  0-1px 0 #FFF,
              -1px 0 0 #FFF, 1px 0 0 #FFF;
}

.title {
    font-weight:bold;
    font-size:45px;
}

.top_title2{
    margin: 5px auto 0 auto; /* 上 | 右 | 下 | 左 */
    font-size:20px;
    text-align: center;
    color: #000;/*文字色*/
    padding: 5px 0;/*上下の余白*/
    border-top: solid 1px #000;/*上線*/
    border-bottom: solid 1px #000;/*下線*/
    width:750px;
    background-color: rgba(255, 255, 255, 1);
}
@media screen and (max-width: 1000px) {
.top_box {
    margin: 10% 0 20% 0; /* 上 | 右 | 下 | 左 */
    position: absolute;
    padding: 0 0 10% 0;
    width:90%;
    height:auto;
    margin-left:10%;
    margin-top:15%;
}
.top_box p {
    margin: 10% 0 20% 0; /* 上 | 右 | 下 | 左 */
    padding: 0;
    font-size:20px;
        text-shadow:1px 1px 0 #FFF, -1px -1px 0 #FFF,
              -1px 1px 0 #FFF, 1px -1px 0 #FFF,
              0px 1px 0 #FFF,  0-1px 0 #FFF,
              -1px 0 0 #FFF, 1px 0 0 #FFF;
}

.title {
    font-weight:bold;
    font-size:30px;
}

footer{
    width: 100%;
    height: auto;
    background-color: #585858;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    left:0;
    margin:0;
    z-index:50;
}

.container {
    padding-bottom: 0.1em;
    box-sizing: border-box;
    padding-top:0.1em;
}

.link {
    padding-top:0.1em;
    padding-bottom:0.1em;
    font-size:10px;
}

hr.style {
    margin: 3px auto 3px auto;/* 上 | 右 | 下 | 左 */
    width: 60%;
    text-align: center;
}

.container p {
    margin: 0;/* 上 | 右 | 下 | 左 */
    font-size:12px;
}
.top_title2{
    display: none;
}

}


.main_contents{
    background-color: rgba(255, 255, 255, 0.8);
    width: 750px;
    height: auto;
    text-align: center;
    display: block;
    margin-left:auto;
    margin-right:auto;
}




/*----------------以下ページ毎内容-----------------*/

.greetings p {
    margin: 0; 
    padding: 0;
    line-height: 2.2em;
    text-align: left;
}

.box{
    width:750px;
    margin-top:10px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom:10px;
    color:#000;
    border-bottom:2px solid #D8D8D8;
    background-color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

@media screen and (max-width: 1000px) {
.box{
    width:90%;
    margin-top:10px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom:10px;
    color:#000;
    border-bottom:2px solid #D8D8D8;
    background-color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

}


h2.greetings_header{
  background-size: 15px 15px;
  text-align: center;
  border-bottom: 1px solid; 
  height:100%;
  width:90%;
  margin: 0 auto;
}
.box .greetings{
  padding: .5em;
  margin-top:1em;
}

/*会社概要*/
table.company {
  width: 500px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0px 15px;
}

table.company th,
table.company td {
  padding: 10px;
}

table.company th {
  background: #A8C7E8;
  vertical-align: middle;
  text-align: left;
  width: 100px;
  overflow: visible;
  position: relative;
  color: #000;
  font-weight: normal;
}

table.company th:after {
  left: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(136, 183, 213, 0);
  border-left-color: #A8C7E8;
  border-width: 10px;
  margin-top: -10px;
}

@media screen and (max-width: 1000px) {
table.company {
  width: 90%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0px 15px;
}
table.company th {
  background: #A8C7E8;
  vertical-align: middle;
  text-align: left;
  overflow: visible;
  position: relative;
  color: #000;
  font-weight: normal;
}
}
/* firefox */
@-moz-document url-prefix() {
table.company th::after {
  float: right;
  padding: 0;
  left: 30px;
  top: 10px;
  content: " ";
  height: 0;
  width: 0;
  position: relative;
  pointer-events: none;
  border: 10px solid transparent;
  border-left: #A8C7E8 10px solid;
  margin-top: -10px;
}
}

table.company td {
  background: #EFF8FB;
  width: 360px;
  padding-left: 20px;
}

/*沿革*/

.timeline {
  list-style: none;
}
.timeline > li {
  margin-bottom: 60px;
}

/* for Desktop */

 .timeline > li {
   overflow: hidden;
   margin: 0;
   position: relative;
   text-align: left;
 }
 .timeline-date {
   width: 110px;
   float: left;
   margin-top: 20px;
 }
 .timeline-content {
   width: 75%;
   float: left;
   border-left: 3px #A8C7E8 solid;
   padding-left: 30px;
 }
 .timeline-content:before {
   content: '';
   width: 12px;
   height: 12px;
   background: #6B81D5;
   position: absolute;
   left: 106px;
   top: 24px;
   border-radius: 100%;
 }


h3 {
    font-size:100%;
    margin-top: 20px;
}

p{}
/*モバイル版--------沿革--------*/
@media screen and (max-width: 735px) {
.timeline {
  list-style: none;
  font-size:15px;
  text-align: left;
}
.timeline > li {
  margin-bottom: 60px;
}

 .timeline > li {
   overflow: hidden;
   margin: 0;
   position: relative;
 }
 .timeline-date {
   width: 85%;
   float: left;
   margin-top: 20px;
   margin: 10px auto 10px auto;
   border: 2px solid #A8C7E8;
   padding: 5px;
   background: #A8C7E8;
 }
 .timeline-content:before {
   display: none;
 }
 
 .timeline-content {
   width: 75%;
   float: left;
   border-left: 3px #A8C7E8 solid;
   padding-left: 10px;
 }

h3 {
    font-size:100%;
    margin-top: 20px;
}

p{}

}

/*事業所*/
table.hub {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    }
table.hub tr {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}
table.hub tr th,
table.hub tr td {
    padding: 20px 20px;
    text-align: left;
    vertical-align: top;
    width: 95%;
}

table.hub tr th {
    width: 20%;
    font-weight: bold;
    background: #EFF8FB;
}
table.hub tr td {
    width: 80%;
    background: #FFF;
}

@media screen and (max-width: 1000px) {
table.hub tr th,
table.hub tr td {
    display: block;
    width: 100%;
}
table.hub tr th {
    width: 100%;
    font-weight: bold;
    background: #EFF8FB;
    -webkit-box-sizing: border-box;  /*webkit系*/
    -moz-box-sizing: border-box;  /*Firefox*/
    box-sizing: border-box;
}
table.hub tr td {
    width: 100%;
    background: #FFF;
    box-sizing: border-box;
}
}