@charset "UTF-8";


.main_contents {
  padding-bottom: 150px;
}
.agf_text38:first-child {
  margin-bottom: 50px;
}
.agf_text38:last-child {
  margin-bottom: 40px;
}
.agf_text18 {
  line-height: 2;
}


.activity_box1 {
  max-width: 1060px;
  margin: 0 auto 40px;
  padding: 40px 40px;
  background-color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.activity_box1 > div:first-child {
  max-width: 100%;
  width: 100%;
}
.activity_box1 > div:last-child {
  max-width: 90%;
  width: 90%;
}
.activity_box1 > div img {
  border-radius: 10px;
}

.activity_box2 {
  max-width: 1060px;
  margin: 0 auto 80px;
  padding: 40px 40px;
  background-color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  box-sizing: border-box;
  flex-direction: row-reverse;
  /*align-items: center;*/
}
.activity_box2 > div:first-child {
  max-width: 100%;
  width: 100%;
}
.activity_box2 > div:last-child {
  max-width: 90%;
  width: 90%;
}
.activity_box2 > div img {
  border-radius: 10px;
}

.activity_box3 {
  max-width: 980px;
  margin: 40px auto 130px;
}
.activity_box3 > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;

}
.activity_box3 > div > div:first-child {
  max-width: 90%;
  width: 48%;
}
.activity_box3 > div > div:last-child {
  max-width: 90%;
  width: 48%;
}
.activity_box3 > div > div img {
  border-radius: 10px;
}

.activity_box4 {
  max-width: 1260px;
  margin: 70px auto 0px;
  padding: 70px 10px 100px;
  text-align: center;
  background-color: #fff;
  position: relative;
}
.activity_box4 ul {
  max-width: 1080px;
  margin: 40px auto 0px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  justify-content: space-between;
}
.activity_box4 ul li {
  width: 48%;
  max-width: 48%;
}

.activity_box4 ul li a{
  position: relative;
  display: block;

}
.activity_box4 ul li a span{
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background-color: #0000009c;
  opacity: 0;
  transition: .3s;
  font-size: 100%;
  font-weight: bold;
  text-align: center;
  line-height: 2;
}
.activity_box4 ul li a:hover span{
  opacity: 1;
  transition: .3s;
}


.activity_popup {
  position: relative;
  background: #FFF;
  width: auto;
  max-width: 770px;
  margin: 20px auto;
}
.activity_popup .box-inner {
  padding: 15px 10px;
}
.activity_popup .box-inner h3 {
  font-size: 137.5%;
  text-align: center;
  margin-bottom: 15px;
  color: #14993b;
}
.activity_popup .box-inner p {
  font-size: 100%;
  text-align: center;
  line-height: 1.5;
}

.PL_caption {
  padding-left: 1em;
  text-indent: -1em;
  max-width: 400px;
}


/*ライトボックスの上書き*/
.mfp-arrow {
  top: 45%;
  opacity: 1;
  margin-top: 0px;
}
.mfp-close-btn-in .mfp-close {
  color: #fff;
  top: -40px;
  opacity: 1;
  font-size: 200%;
}
.mfp-arrow-left:before {
  border-right: 27px solid #000;
}
.mfp-arrow-right:before {
  border-left: 27px solid #000;
}
.mfp-arrow:before ,
.mfp-arrow:after {
  opacity: 1;
  margin-top: 0px; 
  top: 50%;
  transform: translateY(-50%);
}
.mfp-arrow:active {
  margin-top: 0px;
}
.mfp-bg {
  z-index: 10420;
}
.mfp-wrap {
  z-index: 10430;
}
.mfp-content {
  z-index: 10450;
}
.mfp-preloader {
  z-index: 10440;
}
button.mfp-close, button.mfp-arrow {
  z-index: 10460;
}


@media screen and (max-width: 640px) {
  .activity_box1 {
    padding: 40px 20px;
  }
  .activity_box1 > div:last-child {
    margin-left: auto;
    margin-right: auto;
  }
  .activity_box2 {
    padding: 40px 20px;
  }
  .activity_box2 > div:last-child {
    margin-left: auto;
    margin-right: auto;
  }
  .activity_box3 > div > div {
    margin-left: auto;
    margin-right: auto;
  }
}


@media screen and (min-width: 641px) {
  .activity_box1 > div:first-child {
    max-width: 500px;
    width: 51.021%;
  }
  .activity_box1 > div:last-child {
    max-width: 420px;
    width: 42.858%;
  }
  .activity_box2 > div:first-child {
    max-width: 500px;
    width: 51.021%;
  }
  .activity_box2 > div:last-child {
    max-width: 420px;
    width: 42.858%;
  }
  .activity_box3 > div > div:first-child {
    max-width: 480px;
    width: 48.98%;
  }
  .activity_box3 > div > div:last-child {
    max-width: 480px;
    width: 48.98%;
  }
  .activity_box4 ul li {
    width: 23.62%;
    max-width: 255px;
  }
  .activity_box4 ul li a span {
    font-size: 112.5%;
  }
  .activity_popup .box-inner h3 {
    font-size: 162.5%;
  }
  .activity_popup .box-inner p {
    font-size: 112.5%;
  }

}

@media screen and (min-width: 641px) and (max-width: 860px) {
  .activity_box4 ul {
    justify-content: flex-start;
    column-gap: 2%;
  }
  .activity_box4 ul li {
    width: 32%;
    max-width: 32%;
  }
}

