.bgAM__box *{
  margin: 0;
  padding: 0;
}


.bgAM__box{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
  justify-content: center;
  grid-auto-rows: 1fr;
}

.bgAM{
  position: relative;
  width: 100%;
  height: 250px;
  border: solid 2px #cccccc;
  transition: all 0.3s;
}

.bgAM:hover{
  border: 0px;
}

.bgAM__url, .bgAM__url:hover{
  text-decoration: none;
  color: #000;
}

.bgAM__content{
  position: absolute;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center; 
  flex-direction: column;
  transition: all 0.3s;
}

/* .bgAM__content:after{
content: "";
width: 1rem;
height: 3px;
background: #000;
position: absolute;
top: 50%;
right: 10%;
transform: translate(-50%, 100%) rotate(-45deg);
transition: all 0.3s;
}

.bgAM__content:before{
content: "";
width: 1rem;
height: 3px;
background: #000;
position: absolute;
top: 50%;
right: 10%;
transform: translate(-50%, -300%) rotate(45deg);
transition: all 0.3s;
}

.bgAM:hover .bgAM__content:before,
.bgAM:hover .bgAM__content:after{
right: 20%;
} */

.bgAM__content .ja{
  font-size: 0.7rem;
}

.bgAM__content .en{
  font-size: 2rem;
  font-weight: bold;
}


.bgAM__content .p{
  margin-top: 1rem;
  font-size: 1rem;
}

.bgAM__content_cta{
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.bgAM__bg{
  width: 100%;
  height: 100%;
  position: absolute; 
  display: flex;
  justify-content: center;
  align-items: center; 
}

.bgAM__whiteWrap {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 1);
  width: 100%;
  height: 100%;
  transition: all 0.3s;
}

.bgAM:hover .bgAM__whiteWrap{
  background: rgba(255, 255, 255, 0.7);
  height: calc(100% - 30px);
  width: calc(100% - 30px);
  border-radius: 3rem;
}

.bgAM:hover .btn-01{color: #fff;
  background-color: #000;
}

.bgAM:hover .btn-01:after{
  height: 0;
  opacity: 1;
  background-color: #fff;
  border: 0px solid #fff;
}

.bgAM__blackWrap{
  position: absolute;
  z-index: 0;
  top: 0;
  background: rgba(0,0,0,0.7);
  width: 100%;
  height: 100%;
}

.bgAM__img{
  position: absolute;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width:799px){
  .bgAM__box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-content: center;
    grid-auto-rows: 1fr;
  }

  .service .bgAM{
    position: relative;
    width: 100%;
    height: 150px;
    border: solid 2px #cccccc;
    transition: all 0.3s;
  }
  
  {# tablet #}
  .bgAM__whiteWrap {
    background: rgba(255, 255, 255, 0.8);
  }

  .bgAM__content .ja{
    font-size: 0.6rem;
  }

  .bgAM__content .en{
    font-size: 1.5rem;
    font-weight: bold;
  }


  .bgAM__content .p{
    margin-top: 1rem;
    font-size: 0.8rem;
  }

  .bgAM__content_cta{
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }

  .bgAM:hover .bgAM__whiteWrap{
    background: rgba(255, 255, 255, 0.7);
    height: calc(100% - 20px);
    width: calc(100% - 20px);
    border-radius: 1.5rem;
  }
}

.p{
    padding-right: 10px;
    padding-left: 10px;
}




