@charset "utf-8";
/* CSS Document */

/*--- コンテンツ ---*/
#com_main .contents_box {
	background: transparent;
}
#com_main .image_box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 95%;
  margin: 0 auto;
  padding: 120px 0 20px;
}
#com_main .image_box a {
  display: inline-block;
  color: #fff;
}
#com_main .image_box a:nth-child(n+5) {
  margin-top: 50px;
}
#com_main .image_box p {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 200px;
}

/*--- 画像ロールオーバー ---*/
#com_main .image_box div {
  width: 200px;
  height: 200px;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background .4s ease-out;
}
#com_main .box_01 {
  background-image: url("../img/company/img_01_mono.jpg");
}
#com_main a:hover .box_01 {
  background-image: url("../img/company/img_01.jpg");
}
#com_main .box_02 {
  background-image: url("../img/company/img_02_mono.jpg");
}
#com_main a:hover .box_02 {
  background-image: url("../img/company/img_02.jpg");
}
#com_main .box_03 {
  background-image: url("../img/company/img_03_mono.jpg");
}
#com_main a:hover .box_03 {
  background-image: url("../img/company/img_03.jpg");
}
#com_main .box_04 {
  background-image: url("../img/company/img_04_mono.jpg");
}
#com_main a:hover .box_04 {
  background-image: url("../img/company/img_04.jpg");
}
#com_main .box_05 {
  background-image: url("../img/company/img_05_mono.jpg");
}
#com_main a:hover .box_05 {
  background-image: url("../img/company/img_05.jpg");
}
#com_main .box_06 {
  background-image: url("../img/company/img_06_mono.jpg");
}
#com_main a:hover .box_06 {
  background-image: url("../img/company/img_06.jpg");
}
#com_main .box_07 {
  background-image: url("../img/company/img_07_mono.jpg");
}
#com_main a:hover .box_07 {
  background-image: url("../img/company/img_07.jpg");
}

@media screen and (max-width: 1020px) {
  #com_main .image_box a:nth-child(n+5) {
    margin-top: 4vw;
  }
  #com_main .image_box div {
    width: 19vw;
    height: 19vw;
    line-height: 19vw;
  }
  #com_main .image_box p {
    line-height: 19vw;
  }
  
}


@media screen and (max-width: 768px) {
  /*--- コンテンツ ---*/
  #com_main .image_box {
    width: 90%;
    justify-content: space-between;
    padding-top: 14.4vw;
    padding-bottom: 2.4vw;
  }
  #com_main .image_box a:nth-child(n+4) {
    margin-top: 2.8vw;
  }
  #com_main .image_box div {
    width: 25vw;
    height: 25vw;
    line-height: 25vw;
  }
  #com_main .image_box p {
    line-height: 25vw;
  }
   
}


@media screen and (max-width: 450px) {
  #com_main .image_box p {
    font-size: 13px;
  }
}


@media screen and (max-width: 420px) {
  #com_main .image_box a:nth-child(n+3) {
    margin-top: 4vw;
  }
  #com_main .image_box div {
    position: relative;
    width: 38.5vw;
    height: 38.5vw;
    line-height: 38.5vw;
  }
  #com_main .image_box p {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
    font-size: 14px;
    line-height: 1.5em;
  }
  #com_main .box_03 p {
    white-space: nowrap;
  }

}

