@keyframes modalopen {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.on {
  display: block !important;
}

.hidden {
  overflow: hidden;
}

.profile {
  cursor: pointer;
}

.close {
  position: absolute;
  top: -130px;
  right: 0;
  z-index: 1;
  cursor: pointer;
  width: 73px;
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: center;

}

.close::after {
  content: "";
  position: absolute;
  background: #fff;
  width: 100px;
  height: 3px;
  transform: rotateZ(45deg);
}

.close::before {
  content: "";
  position: absolute;
  background: #fff;
  width: 100px;
  height: 3px;
  transform: rotateZ(-45deg);
}

/* モーダル中身 */


.modal_box {
  display: none;
  background-color: rgba(51, 51, 51, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* touch-action: none; */
  z-index: 20;
  padding-top: 16vw;
}

.modal_bg {
  background-color: #fff;
  width: 90%;
  max-width: 1440px;
  margin: 0 auto 200px;
  padding: 160px 80px;
  animation-name: modalopen;
  animation-duration: 1s;
}


.modal_img {
  width: 100%;
  height: auto;
}

.modal_img img {
  width: 100%;
  height: auto;
}

.modal_profile_box {
  position: absolute;
  left: 0;
  bottom: -15px;
  background: #fff;
  padding: 50px 75px 0 80px;
  font-weight: 500;
}

.modal_profile_dep {
  display: inline-block;
  background-color: #2e9568;
  padding: 0 10px 2px;
  color: #ffffff;
  font-size: 24px;
  text-align: center;
  line-height: 1.5em;
  letter-spacing: 0.08em;
}

.modal_profile_name {
  font-size: 40px;
  letter-spacing: 0.12em;
  line-height: 1.4em;
}

.modal_profile_rec {
  font-size: 17px;
  letter-spacing: 0.06em;
}

.font48 {
  font-size: 48px;
  letter-spacing: 0.04em;
  font-weight: 500;
  line-height: 1.4;
}

.font30 {
  font-size: 30px;
  color: #2e9568;
  line-height: 1.6;
  margin-bottom: 30px;
  letter-spacing: 0.08em;
}

.modal_flex {
  display: flex;
  justify-content: space-between;
}

.modal_flex_left {
  width: 42%;
}

.modal_flex_left img {
  width: 100%;
  height: auto;
}

.modal_flex_right {
  width: 51%;
}

.fw500 {
  font-weight: 500;
}

.modal_txt {
  line-height: 2em;
  letter-spacing: 0.06em;
}

.modal_banner {
  width: 100%;
  max-width: 1280px;
  max-width: 0 auto;
}

.modal_banner_container {
  display: flex;
  justify-content: space-between;
}

.modal_banner_box {
  width: 47.75%;
}

.modal_banner_box a {
  display: flex;
}

.modal_banner_left {
  width: 47.75%;
}

.modal_banner_left img {
  width: 100%;
  height: auto;
}

.modal_banner_right {
  width: 52%;
  background-color: #2e9568;
  padding: 60px;
  font-weight: 500;
}

.modal_banner_dep {
  display: inline-block;
  background-color: #fff;
  padding: 0 8px;
  color: #2e9568;
  font-size: 20px;
  text-align: center;
  line-height: 1.4em;
}

.modal_banner_name {
  font-size: 30px;
  letter-spacing: 0.12em;
  color: #fff;
}

.modal_banner_rec {
  font-size: 17px;
  color: #fff;
}

.modal_banner_btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 20px;
  bottom: 20px;
}

.modal_banner_btn img {
  width: 11px;
  height: auto;
}

.modal_close_btn {
  border: 1px solid #333333;
  width: 100%;
  max-width: 260px;
  padding: 23px 75px 23px 90px;
  text-align: center;
  transition: 0.5s ease;
  border-radius: 35px;
  margin: 0 auto;
  cursor: pointer;
}

.modal_close_btn span {
  font-size: 18px;
  line-height: 0;
}

.modal_close_btn span::before {
  content: "";
  background: url(../images/close_b.png) left 0/100% 100% no-repeat;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -30px;
  transition: 0.5s ease;
}

.modal_close_btn:hover {
  background: #333333;
  border: 1px solid #333333;
}

.modal_close_btn:hover span {
  color: #fff;
}

.modal_close_btn:hover span::before {
  content: "";
  background: url(../images/close_w.png) left 0/100% 100% no-repeat;
}

.modal_img_pc {
  display: block;
}

.modal_img_sp {
  display: none;
}

@media only screen and (max-width: 1400px) {
  .font30 {
    font-size: 27px;
  }

}


@media only screen and (max-width: 1280px) {
  .font30 {
    font-size: 21px;
  }
}

@media only screen and (max-width: 1024px) {

  .modal_box {
    padding-top: 30vw;
  }

  .modal_bg {
    padding: 100px 60px;
  }

  .modal_profile_box {
    padding: 30px 45px 0 50px;
  }

  .modal_profile_dep {
    font-size: 20px;
  }

  .modal_profile_name {
    font-size: 32px;
  }

  .font48 {
    font-size: 38px;
  }

  .modal_flex {
    display: block;
  }

  .modal_flex_left {
    width: 80%;
    margin: 0 auto;
    max-width: 500px;
  }

  .modal_flex_right {
    width: 100%;
  }

  .font30 {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .close {
    top: -110px;
  }

  .modal_img_pc {
    display: none;
  }

  .modal_img_sp {
    display: block;
  }

}

@media only screen and (max-width: 740px) {

  .modal_bg {
    padding: 60px 20px;
    margin: 0 auto 160px;
  }

  .modal_box {
    padding-top: 34vw
  }

  .modal_profile_box {
    bottom: -40px;
    padding: 30px 35px 0 40px;
  }

  .modal_profile_dep {
    font-size: 17px;
  }

  .modal_profile_name {
    font-size: 20px;
  }

  .modal_profile_rec {
    font-size: 15px;
  }

  .font48 {
    font-size: 30px;
  }

  .font30 {
    font-size: 22px;
  }

  .modal_flex_left {
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
  }

  .close {
    top: -70px;
    right: 0;
    width: 45px;
    height: 45px;
  }

  .close::before {
    content: "";
    position: absolute;
    background: #fff;
    width: 60px;
    height: 3px;
    transform: rotateZ(-45deg);
  }

  .close::after {
    content: "";
    position: absolute;
    background: #fff;
    width: 60px;
    height: 3px;
    transform: rotateZ(45deg);
  }

}

@media only screen and (max-width: 480px) {

  .modal_box {
    padding-top: 45vw;
  }

  .modal_profile_box {
    bottom: -65px;
    padding: 20px 25px 0 30px;
  }

  .font48 {
    font-size: 22px;
  }

  .font30 {
    font-size: 17px;
  }

  .modal_flex_left {
    width: 100%;
  }

}