/* common
---------------------------------------------------------------------------- */
.m-child-mv::before {
  background-image: url(../../../assets/images/company/img_mv_pc.webp);
}

.m-child-mv-ttl-en {
  width: min(27.3494791667vw, 525.11px);
  aspect-ratio: 525.11/86;
}

@media screen and (max-width: 767px) {
  .m-child-mv::before {
    background-image: url(../../../assets/images/company/img_mv_sp.webp);
  }
  .m-child-mv-ttl-en {
    width: 67.776vw;
  }
}
/* p-message
---------------------------------------------------------------------------- */
.p-message {
  padding-block: 8rem 6rem;
}

.p-message-wrapper {
  padding-block: 4.1rem;
  position: relative;
}

.p-message-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 87.6rem;
  aspect-ratio: 876/400;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(../../../assets/images/company/bg_message_pc.webp);
  border-radius: 0.6rem;
}

.p-message-wrap {
  width: 65rem;
  padding-block: 5rem;
  padding-inline: 5rem;
  background-color: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 0 1rem rgba(24, 67, 151, 0.15);
}

.p-message-ttl {
  display: flex;
  flex-direction: column;
  color: #002C81;
}

.p-message-ttl-en {
  font-family: "Josefin Sans";
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 500;
  font-style: italic;
}

.p-message-ttl-jp {
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.2;
}

.p-message-txt {
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 400;
  margin-top: 2.7rem;
}
.p-message-txt em {
  display: inline-block;
  font-size: 2rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.p-message-btn-wrap {
  width: 23.1rem;
  margin-top: 2.5rem;
}

@media screen and (max-width: 767px) {
  .p-message {
    padding-block: 13.3333333333vw 10.6666666667vw;
  }
  .p-message-wrapper {
    padding-block: 40vw 0;
    padding-inline: 5.3333333333vw;
  }
  .p-message-wrapper::after {
    left: 0;
    bottom: initial;
    width: 100%;
    aspect-ratio: 335/200;
    background-image: url(../../../assets/images/company/bg_message_sp.webp);
    border-radius: 1.6vw;
  }
  .p-message-wrap {
    width: 100%;
    padding-block: 8vw;
    padding-inline: 5.3333333333vw;
    border-radius: 1.6vw;
    box-shadow: 0 0 2.6666666667vw rgba(24, 67, 151, 0.15);
  }
  .p-message-ttl-en {
    font-size: 5.3333333333vw;
    line-height: 1.2;
  }
  .p-message-ttl-jp {
    font-size: 6.4vw;
  }
  .p-message-txt {
    font-size: 3.7333333333vw;
    line-height: 1.4285714286;
    margin-top: 4.5333333333vw;
  }
  .p-message-txt em {
    font-size: 4.2666666667vw;
    line-height: 1.5;
  }
  .p-message-btn-wrap {
    width: 100%;
    margin-top: 4.8vw;
  }
}
/* p-block
---------------------------------------------------------------------------- */
.p-block-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 4rem;
}

.p-block-item-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (any-hover: hover) {
  .p-block-item-link:hover .p-block-item-img img {
    transform: scale(1.05);
  }
  .p-block-item-link:hover .p-block-item-arrow ._arrow::before {
    translate: 0 0;
    opacity: 1;
  }
  .p-block-item-link:hover .p-block-item-arrow ._arrow::after {
    translate: 100% 0;
    opacity: 0;
  }
}

.p-block-item-img {
  width: 100%;
  aspect-ratio: 373/150;
  border-radius: 0.6rem;
  overflow: hidden;
}
.p-block-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease 0s;
}

.p-block-item-box {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0 1rem;
}

.p-block-item-ttl {
  display: flex;
  flex-direction: column;
  color: #002C81;
}

.p-block-item-ttl-en {
  font-family: "Josefin Sans";
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  font-style: italic;
}

.p-block-item-ttl-jp {
  font-size: 2.4rem;
  line-height: 1.4583333333;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.p-block-item-arrow {
  display: block;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #002C81;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-block-item-arrow ._arrow {
  width: 1.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.p-block-item-arrow ._arrow::before,
.p-block-item-arrow ._arrow::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(./../../images/common/icn_arrow_right.svg);
  transition: translate 0.3s ease, opacity 0.3s ease;
}

.p-block-item-arrow ._arrow::before {
  translate: -102% 0;
  opacity: 0;
}

.p-block-item-arrow ._arrow::after {
  translate: 0 0;
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .p-block-items {
    grid-template-columns: 1fr;
    gap: 8vw;
  }
  .p-block-item-link {
    gap: 3.2vw;
  }
  .p-block-item-box {
    gap: 0 2.6666666667vw;
  }
  .p-block-item-ttl-en {
    font-size: 5.3333333333vw;
  }
  .p-block-item-ttl-jp {
    font-size: 6.4vw;
  }
  .p-block-item-arrow {
    width: 8vw;
  }
  .p-block-item-arrow ._arrow {
    width: 4vw;
  }
}
/* p-group
---------------------------------------------------------------------------- */
.p-group {
  margin-block: 10rem 12rem;
}

.p-group-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 5rem;
  padding-block: 6rem;
  padding-inline: 10rem;
  position: relative;
}

.p-group-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(../../../assets/images/company/bg_group_pc.webp);
}

.p-group-wrap {
  width: fit-content;
}

.p-group-ttl {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.p-group-ttl-en {
  font-family: "Josefin Sans";
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 500;
  font-style: italic;
}

.p-group-ttl-jp {
  font-size: 3.6rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.p-group-txt {
  font-size: 2.4rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-top: 3rem;
  color: #fff;
}

.p-group-btn-wrap {
  width: 23.1rem;
  margin-top: 4rem;
}

.p-group-images {
  width: 50rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.p-group-img {
  width: 100%;
  aspect-ratio: 500/200;
  position: relative;
}
.p-group-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-group-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 8, 93, 0.7);
  backdrop-filter: blur(3px) brightness(0.8);
  clip-path: polygon(100% 0, 100% calc(100% - 3rem), calc(100% - 3rem) 100%, 0 100%, 0 0);
}

@media screen and (max-width: 767px) {
  .p-group {
    margin-block: 21.3333333333vw 21.3333333333vw;
  }
  .p-group-wrapper {
    display: flex;
    flex-direction: column;
    align-items: initial;
    gap: initial;
    padding-block: 9.3333333333vw 14.6666666667vw;
    padding-inline: 5.3333333333vw;
  }
  .p-group-wrapper::after {
    background-image: url(../../../assets/images/company/bg_group_sp.webp);
  }
  .p-group-wrap {
    display: contents;
  }
  .p-group-ttl {
    order: 1;
  }
  .p-group-ttl-en {
    font-size: 5.3333333333vw;
    line-height: 1.2;
  }
  .p-group-ttl-jp {
    font-size: 7.4666666667vw;
    line-height: 1.4;
  }
  .p-group-txt {
    order: 2;
    font-size: 4.8vw;
    line-height: 1.5;
    margin-top: 5.3333333333vw;
  }
  .p-group-btn-wrap {
    order: 4;
    width: 68vw;
    margin-top: 8vw;
    margin-inline: auto;
  }
  .p-group-btn-wrap .m-btn-arrow {
    background-color: transparent;
  }
  .p-group-images {
    order: 3;
    width: 100%;
    gap: 4vw;
    margin-top: 8vw;
  }
  .p-group-img::after {
    clip-path: polygon(100% 0, 100% calc(100% - 5.3333333333vw), calc(100% - 5.3333333333vw) 100%, 0 100%, 0 0);
  }
}
