@charset "UTF-8";
.p-company-info {
  background: #EEF5FF;
  padding: 12rem 0;
}

.p-company-info-list {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4rem;
}
.p-company-info-list li {
  width: 34rem;
}

.p-company-info-list + .p-company-info-list {
  margin-top: 6rem;
}

/* アニメーションボタン
---------------------------------------------------------------------------- */
.p-company-info-button {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  text-decoration: none;
  width: auto;
  font-size: 2.8rem;
  line-height: 1.2857142857;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin: 0 auto;
  color: #303030;
  background: #fff;
  border-radius: 0.8rem;
  border: solid 0.2rem #fff;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease-in-out;
  box-shadow: 0px 0px 1.2rem rgba(0, 0, 0, 0.16);
}

.p-company-info-button-area {
  padding: 2.5rem 2rem;
  height: 12rem;
}

/* 背景アニメーション */
.p-company-info-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #005ED2;
  /* ホバー時の色 */
  transition: left 0.4s ease-in-out;
}

/* ホバー時の背景アニメーション */
.p-company-info-button:hover::before {
  left: 0;
}

/* テキストとアイコンを前面に */
.p-company-info-button-area,
.p-company-info-button-icn {
  position: relative;
  z-index: 2;
}

.p-company-info-button-txt {
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #005ED2;
  margin-bottom: 0.5rem;
}

.p-company-info-button-icn {
  background: #005ED2;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  width: 5rem;
  height: 12rem;
  border-radius: 0 0.6rem 0.6rem 0;
  position: relative;
  overflow: hidden;
}
.p-company-info-button-icn::before, .p-company-info-button-icn::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  background-size: contain;
  width: 1.7rem;
  height: 1.7rem;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.p-company-info-button-icn::before {
  background: url(../../images/common/icn_arrow_white.svg) no-repeat left top;
  left: 1.5rem;
  background-size: contain;
  width: 1.7rem;
  height: 1.7rem;
}
.p-company-info-button-icn::after {
  background: url(../../images/common/icn_arrow_blue.svg) no-repeat left top;
  background-size: contain;
  width: 1.7rem;
  height: 1.7rem;
  left: 0;
  opacity: 0;
}

.p-company-info-button:hover {
  border: solid 0.2rem #0F4283;
  color: #fff;
}
.p-company-info-button:hover .p-company-info-button-txt {
  color: #fff;
}
.p-company-info-button:hover .p-company-info-button-icn {
  background: #fff;
}
.p-company-info-button:hover .p-company-info-button-icn::before {
  transform: translate(1.5rem, -50%);
  opacity: 0;
}
.p-company-info-button:hover .p-company-info-button-icn::after {
  transform: translate(1.5rem, -50%);
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .p-company-info {
    padding: 21.3333333333vw 0 16vw;
  }
  .p-company-info-list {
    flex-direction: column;
    gap: 5.3333333333vw;
  }
  .p-company-info-list li {
    width: 100%;
  }
  .p-company-info-list + .p-company-info-list {
    margin-top: 5.3333333333vw;
  }
  .p-company-info-button {
    font-size: 4.5333333333vw;
    line-height: 1.7647058824;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-radius: 2.1333333333vw;
    border: solid 0.5333333333vw #fff;
  }
  .p-company-info-button-area {
    padding: 5.3333333333vw;
    height: 21.3333333333vw;
  }
  .p-company-info-button-txt {
    font-size: 3.4666666667vw;
    line-height: 1.1538461538;
    letter-spacing: 0.05em;
    font-weight: 700;
  }
  .p-company-info-button:hover {
    border: solid 0.5333333333vw #fff;
    color: #303030;
    /* ホバー時の枠線変更を無効化 */
  }
  .p-company-info-button:hover .p-company-info-button-txt {
    color: #005ED2;
  }
  .p-company-info-button:hover .p-company-info-button-icn {
    background: #005ED2;
  }
  .p-company-info-button:hover .p-company-info-button-icn::before {
    transform: translateY(-50%);
    opacity: 1 !important;
  }
  .p-company-info-button:hover .p-company-info-button-icn::after {
    transform: none !important;
    opacity: 0 !important;
  }
  .p-company-info-button::before {
    display: none;
    /* 背景アニメーションを無効化 */
  }
  .p-company-info-button-icn {
    width: 13.3333333333vw;
    height: 21.3333333333vw;
    border-radius: 0 1.6vw 1.6vw 0;
  }
  .p-company-info-button-icn::before, .p-company-info-button-icn::after {
    width: 4.5333333333vw;
    height: 4.5333333333vw;
  }
  .p-company-info-button-icn::before {
    background: url(../../images/common/icn_arrow_white.svg) no-repeat left top;
    left: 4vw;
    background-size: contain;
    width: 4.5333333333vw;
    height: 4.5333333333vw;
  }
  .p-company-info-button-icn::after {
    background: url(../../images/common/icn_arrow_white.svg) no-repeat left top;
    background-size: contain;
    width: 4.5333333333vw;
    height: 4.5333333333vw;
  }
}
