/* p-company-link
---------------------------------------------------------------------------- */
.p-company-link {
  padding-block: 8rem 9.2rem;
}

.p-company-link-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem 4rem;
}
.p-company-link-layout > :nth-child(1) {
  grid-column: 1/2;
  grid-row: 1/2;
}
.p-company-link-layout > :nth-child(2) {
  grid-column: 2/3;
  grid-row: 1/2;
}
.p-company-link-layout > :nth-child(3) {
  grid-column: 1/2;
  grid-row: 2/3;
}
.p-company-link-layout > :nth-child(4) {
  grid-column: 2/3;
  grid-row: 2/3;
}

.p-company-link-item-img {
  width: 58rem;
  aspect-ratio: 580/240;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}
.p-company-link-item-img > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.p-company-link-item-link {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: 1.5rem;
  font-size: 2rem;
  line-height: 1.5;
  font-weight: 700;
  color: #073190;
  width: max-content;
}

@media screen and (max-width: 767px) {
  .p-company-link {
    padding-block: 13.3333333333vw 18.6666666667vw;
  }
  .p-company-link-layout {
    grid-template-columns: repeat(1, 1fr);
    gap: 7.7333333333vw 0;
  }
  .p-company-link-layout > :nth-child(1) {
    grid-column: 1/2;
    grid-row: 1/2;
  }
  .p-company-link-layout > :nth-child(2) {
    grid-column: 1/2;
    grid-row: 2/3;
  }
  .p-company-link-layout > :nth-child(3) {
    grid-column: 1/2;
    grid-row: 3/4;
  }
  .p-company-link-layout > :nth-child(4) {
    grid-column: 1/2;
    grid-row: 4/5;
  }
  .p-company-link-layout > :nth-child(5) {
    grid-column: 1/2;
    grid-row: 5/6;
  }
  .p-company-link-layout > :nth-child(6) {
    grid-column: 1/2;
    grid-row: 6/7;
  }
  .p-company-link-layout > :nth-child(7) {
    grid-column: 1/2;
    grid-row: 7/8;
  }
  .p-company-link-layout > :nth-child(8) {
    grid-column: 1/2;
    grid-row: 8/9;
  }
  .p-company-link-layout > :nth-child(1) .p-company-link-item-img,
  .p-company-link-layout > :nth-child(2) .p-company-link-item-img {
    width: 89.3333333333vw;
    aspect-ratio: 335/139;
  }
  .p-company-link-item-img {
    width: 89.3333333333vw;
    aspect-ratio: 335/139;
    border-radius: 1.3333333333vw;
    margin-bottom: 2.9333333333vw;
  }
  .p-company-link-item-link {
    column-gap: 3.7333333333vw;
    font-size: 4.8vw;
    line-height: 1.7777777778;
  }
}
/* p-company-cat
---------------------------------------------------------------------------- */
/* p-company-agreement
---------------------------------------------------------------------------- */
/* common
---------------------------------------------------------------------------- */
/*------------- .m-company-list -------------*/
.m-company-list {
  font-size: 1.8rem;
  line-height: 1.6111111111;
  font-weight: 400;
}

.m-company-list-inner {
  display: grid;
  grid-template-columns: 35rem 1fr;
  gap: 0 4rem;
}
.m-company-list-inner:not(:last-of-type) {
  margin-bottom: 2.4rem;
}

.m-company-list-term {
  color: #073190;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid;
  font-weight: 700;
}

.m-company-list-desc-wrap {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-content: center;
  -ms-flex-line-pack: center;
  align-content: center;
}
.m-company-list-desc-wrap > :is(:nth-child(2n+3), :nth-child(2n+4)) {
  margin-top: 2.4rem;
}
.m-company-list-desc-wrap > :nth-child(odd) {
  width: 40rem;
}
.m-company-list-desc-wrap > :nth-child(even) {
  padding-left: 1rem;
  width: 41rem;
}

.m-company-list-desc {
  padding-bottom: 2.2rem;
  border-bottom: 1px solid #BEBEBE;
}

@media screen and (max-width: 767px) {
  .m-company-list {
    font-size: 4.2666666667vw;
    line-height: 1.8125;
  }
  .m-company-list-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 0;
  }
  .m-company-list-inner:not(:last-of-type) {
    margin-bottom: 4.2666666667vw;
  }
  .m-company-list-term {
    padding-bottom: 0;
    border-bottom: none;
  }
  .m-company-list-desc-wrap {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    border-bottom: 1px solid #BEBEBE;
  }
  .m-company-list-desc-wrap > :is(:nth-child(2n+3), :nth-child(2n+4)) {
    margin-top: 0;
  }
  .m-company-list-desc-wrap > :nth-child(odd) {
    width: auto;
    min-width: 44.8vw;
  }
  .m-company-list-desc-wrap > :nth-child(even) {
    padding-left: 0;
    width: auto;
  }
  .m-company-list-desc-wrap > .m-company-list-desc {
    padding-bottom: 2vw;
    border-bottom: none;
  }
  .m-company-list-desc {
    margin-top: 1.0666666667vw;
    padding-bottom: 2.6666666667vw;
  }
}
