@charset "utf-8";

.pagemain-image{
  background: url("../img/pagemain_image.jpg") no-repeat center center;
}
.companylist{
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}
.companylist ul li{
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
  padding: 20px 10px;
}
.companylist ul li.organization_line{
  border-bottom: none;
  margin-bottom: -3%;
  flex-wrap: wrap;
}
.companylist ul li.organization_line02{
  flex-wrap: wrap;
}
.companylist ul li .organization_title{
  border-bottom: none;
  margin-bottom: -3%;
}
.companylist ul li:last-child{
  border-bottom: none;
}
.companylist ul.cllist li{
  padding: 0;
  border-bottom: none;
}
.companylist ul.cllist li::before{
  content: "●";
  color: #006CB8;
}
.companylist ul li div:first-child{
  color: #000;
  text-align: center;
  width: 20%;
  max-width: 200px;
}
.companylist ul li div:last-child{
  width: 80%;
}
.companylist .stext{
  font-size: 14px;
  margin-left: 16px;
}
.companydata{
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.companydata .companyimage,.companydata .companyinfo{
  width: 48%;
  position: relative;
  font-size:15px;
}
.gmap{
  width: 100%;
  height: 300px;
  background: #CCC;
  margin-top: 30px;
  position: absolute;
  bottom: 0;
  right: 0;
}
.gmap iframe{
  width: 100%;
  height: 300px;
}
table{
  width: auto;
}
table th,table td{
  padding-right:30px;
}

@media screen and (min-width: 769px){
/* 組織図 */
#organization,#organization02{
  height: 17em;
  width: 100%;
  margin: 0 auto;
}
.genealogy {
  display: table;
  position: relative;
  margin: 0px auto;
  font-size: 14px;
}

.genealogy > dl {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 5em 0px 0px;
  margin: 0px;
}
.genealogy > dl::after {
  position: absolute;
  top: 3.9em;
  left: 4.2em;
  right: 4.2em;
  height: 1.5em;
  background:
    linear-gradient(to right, #000 0%, #000 100%) top center / 1px 100% no-repeat,
    linear-gradient(to right, #000 0%, #000 100%) bottom  left / 100% 1px no-repeat;
  content: "";
}

.genealogy > dl > dt,
.genealogy > dl > dd {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em;
  width: 7.6em;
  height: 3.5em;
  border: 1px solid currentColor;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.4;
}

.genealogy > dl > dt.two {
  border: unset;
}

.genealogy > dl > dt {
  position: absolute;
  top: 0.5em;
  left: 50%;
  transform: translateX(-50%);
}

.genealogy > dl > dd {
  position: relative;
  padding: 0px;
  margin: 2em 0.3em 0px;
  line-height: 1.4;
}
.genealogy > dl > dd::before {
  position: absolute;
  top: -1.7em;
  left: 0px;
  width: 100%;
  height: 1.7em;
  background:
    linear-gradient(to right, #000 0%, #000 100%) top center / 1px 100% no-repeat;
  overflow: hidden;
  content: "";
}
.genealogy > dl > dd span{
  transform: scale(0.6, 1);
  transform-origin: top center;
  width: 166.666%;
  text-wrap: nowrap;
}

.genealogy .genealogy {
  position: absolute;
  top: -0.5em;
  left: 50%;
  transform: translateX(-50%);
  margin: 0px;
}

.color_top{background: #e7edf5;}
.color_second{background: #faf9f7;}

}
@media screen and (max-width: 768px){
  .pagemain-image{
    background: url("../img/pagemain_image_sp.jpg") no-repeat center center;
  }
  .companylist ul li {
    display: block;
    align-items: center;
    border-bottom: 1px solid #333;
    padding:10px;
    font-size: 13px;
  }
  .companylist ul li div:first-child {
    color: #406DA5;
    text-align: left;
    width: 100%;
    max-width: 100%;
  }
  .companylist ul li div:last-child {
    width: 100%;
  }
  .companylist ul.cllist li{
    text-indent: -1em;
    padding-left: 1em;
  }
  .companydata {
    position: relative;
    flex-wrap: wrap;
  }
  .companydata .companyimage,.companydata .companyinfo{
    font-size:13px;
  }
  .gmap {
    width: 100%;
    height: 200px;
    background: #CCC;
    margin-top: 20px;
    position: relative;
  }
  .gmap iframe{
    width: 100%;
    height: 200px;
  }

  /* 組織図 */
  #organization{
    width: 100%;
    height: 290px;
  }
  #organization02{
    width: 100%;
    height: 180px;
  }
  
}
