@font-face {
  font-family: "Helvetica";
  src: url("../font/Helvetica.ttf") format("truetype");
}
#company .company__main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19rem;
}
@media screen and (max-width: 767px) {
  #company .company__main {
    grid-template-columns: repeat(2, 1fr);
    gap: 12rem 11rem;
  }
}
#company .company__item a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0;
  padding-block: 20rem 25rem;
  text-align: center;
  border: max(1px, 1rem) solid #AFA7A7;
  border-radius: max(5px, 5rem);
  position: relative;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (max-width: 767px) {
  #company .company__item a {
    aspect-ratio: 1/1;
    padding-block: unset;
  }
}
#company .company__item a::after {
  content: "";
  width: 5rem;
  height: 10rem;
  background-color: #AFA7A7;
  -webkit-mask: url(../img/company_arrow.svg) no-repeat center/contain;
  mask: url(../img/company_arrow.svg) no-repeat center/contain;
  position: absolute;
  bottom: 10rem;
  right: 10rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (max-width: 767px) {
  #company .company__item a::after {
    bottom: 7rem;
    right: 7rem;
  }
}
@media (any-hover: hover) {
  #company .company__item a:hover {
    background: #DE0A0A;
    border-color: #DE0A0A;
  }
  #company .company__item a:hover::after {
    background: #fff;
  }
  #company .company__item a:hover .company_item-title,
  #company .company__item a:hover .company_item-en-title {
    color: #fff;
  }
  #company .company__item a:hover .company_item-img {
    background-color: #fff;
  }
}
#company .company_item-img {
  width: max(32px, 32rem);
  aspect-ratio: 32/34;
  background-color: #DE0A0A;
  margin-inline: auto;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
#company .company_item-img.--1 {
  -webkit-mask: url(../img/company-icon1.svg) no-repeat center/max(26px, 26rem) max(24px, 24rem);
  mask: url(../img/company-icon1.svg) no-repeat center/max(26px, 26rem) max(24px, 24rem);
}
#company .company_item-img.--2 {
  -webkit-mask: url(../img/company-icon2.svg) no-repeat center/max(21px, 21rem) max(25px, 25rem);
  mask: url(../img/company-icon2.svg) no-repeat center/max(21px, 21rem) max(25px, 25rem);
}
#company .company_item-img.--3 {
  -webkit-mask: url(../img/company-icon3.svg) no-repeat center/max(22px, 22rem) max(31px, 31rem);
  mask: url(../img/company-icon3.svg) no-repeat center/max(22px, 22rem) max(31px, 31rem);
}
#company .company_item-img.--4 {
  -webkit-mask: url(../img/company-icon4.svg) no-repeat center/max(31px, 31rem) max(21px, 21rem);
  mask: url(../img/company-icon4.svg) no-repeat center/max(31px, 31rem) max(21px, 21rem);
}
#company .company_item-img.--5 {
  -webkit-mask: url(../img/company-icon5.svg) no-repeat center/max(25px, 25rem) max(35px, 35rem);
  mask: url(../img/company-icon5.svg) no-repeat center/max(25px, 25rem) max(35px, 35rem);
}
#company .company_item-img.--6 {
  -webkit-mask: url(../img/company-icon6.svg) no-repeat center/max(24px, 24rem) max(32px, 32rem);
  mask: url(../img/company-icon6.svg) no-repeat center/max(24px, 24rem) max(32px, 32rem);
}
#company .company_item-title {
  font-size: max(18px, 20rem);
  font-weight: 500;
  line-height: 1.45;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 5rem;
}
@media screen and (max-width: 767px) {
  #company .company_item-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 47rem;
    font-size: 17rem;
    line-height: 1.2941176471;
  }
}
#company .company_item-en-title {
  color: #DE0A0A;
  font-family: "Outfit", sans-serif;
  font-size: max(13px, 13rem);
  font-weight: 700;
  line-height: 1.2307692308;
  text-transform: uppercase;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 7rem;
}
@media screen and (max-width: 767px) {
  #company .company_item-en-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 30rem;
  }
}