@charset "utf-8";
/*トップページCSS*/

.main_img {
  position: relative;
  display: block;
  margin: auto;
  height: 100vh;
  width: 100%;
  min-height: 800px;
  background-image: url(../img/top/img_main.jpg);
  background-position:center;
  background-size: cover;
  background-repeat: no-repeat;
}
/*メインテキスト*/
.main_img .title01 {
  position: absolute;
  top: 60%;
  left: 15%;
}
@media (max-width:1500px) {
  .main_img .title01 {
    left: 5%;
    
  }
}
@media (max-width:1279px) {
  .main_img .title01 {
    left: 1%;
    font-size: 24px;
  }
}
@media (max-width:1024px) {
  .main_img .title01 {
    left: 40%;
  }
}
@media (max-width:860px) {
  .item_wrap .item {
    width: 22%;
  }
}
@media (max-width: 768px) {
  .main_img .title01 {
    left: 10%;
  }
}
@media screen and (max-width: 480px) {
  .main_img .title01 {
    left: 10%;
  }
}
/*メインテキスト-end-*/

.sec_main .div_schedule {
  position: relative;
}
.sec_main .div_schedule::before,
.sec_main .div_schedule::after {
  content: '';
  width: 110px;
  height: 100px;
  position: absolute;
  background: url(../img/common/dec_leaf_b.svg) no-repeat;
  background-size: contain;
}
.sec_main .div_schedule::before {
  left: 0;
  top: 0;
  transform: rotate(180deg);
}
.sec_main .div_schedule::after {
  right: 0;
  bottom: 0;
}
.sec_news {
  max-width: 900px;
  width: 85%;
}
.item_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.item_wrap .item {
  width: 22.5%;
  margin: 10px;
  background-color: #fff;
  box-shadow: 0px 4px 15px rgba(31, 74, 24, 0.25);
  aspect-ratio: 1 / 1;
  transition: all 0.3s;
}
.item_wrap .item:hover {
  cursor: pointer;
  box-shadow: 0px 0px 5px rgba(31, 74, 24, 0.25);
  transition: all 0.3s;
  opacity: .8;
}
.item_wrap .item a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px;
}
.item_wrap .item a::after {
  content: '';
  width: calc( 100% - 20px );
  height: calc( 100% - 20px );
  border: 1px solid;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  border-color: var(--green);
}
.item_wrap .item .item_top {
  display: table;
  height: 50%;
  width: 100%;
  text-align: center;
  background-image: url(../img/common/dec_log_g.png);
  background-position:center;
  background-size: auto;
  background-repeat: no-repeat;
}
.item_wrap .item .item_top .title {
  display: table-cell;
  vertical-align: middle;
  line-height: 1.2;
  font-weight: bold;
  color: var(--green);
}
.item_wrap .item .text {
  font-size: 14px;
  line-height: 1.65;
}

@media (min-width:1025px) {
  .sec_main .div_schedule {
    position: absolute;
    right: 30px;
    bottom: 30px;
    padding: 15px 50px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 4px 15px 0px rgba(25, 101, 143, 0.30);
  }
}
@media (min-width: 1367px) {
  .sec_main .div_schedule {
    right: 6%;
  }
}
@media (max-width:1279px) {
  .sec_main .div_schedule {
    padding: 15px 20px 20px;
  }
}

@media (max-width:1024px) {
  .sec_main .div_schedule {
    display: block;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 15% 0;
  }
  .main_img .title01 {
    left: 40%;
  }
}

@media (max-width:860px) {
  .item_wrap .item {
    width: 22%;
  }
}

@media (min-width: 769px) {
  .sec_news .title_con {
    margin-bottom: 30px;
  }
  /*色分け*/
  .item_wrap .item:nth-of-type(2) a::after, 
  .item_wrap .item:nth-of-type(4) a::after, 
  .item_wrap .item:nth-of-type(5) a::after, 
  .item_wrap .item:nth-of-type(7) a::after {
    border-color:  var(--primary);
  }
  .item_wrap .item:nth-of-type(2) .item_top, 
  .item_wrap .item:nth-of-type(4) .item_top, 
  .item_wrap .item:nth-of-type(5) .item_top, 
  .item_wrap .item:nth-of-type(7) .item_top {
    background-image: url(../img/common/dec_log_b.png);
  }
  .item_wrap .item:nth-of-type(2) .title, 
  .item_wrap .item:nth-of-type(4) .title, 
  .item_wrap .item:nth-of-type(5) .title, 
  .item_wrap .item:nth-of-type(7) .title {
    color:  var(--primary);
  }
  /*色分け-end-*/
}

@media (max-width: 768px) {
  .main_img {
    min-height: 650px;
    background-position: 30%;
  }
  .main_img .title01 {
    left: 10%;
  }
  .sec_main .div_schedule {
    margin-top: 60px;
    padding: 0 10% 0;
  }
  .sec_news .title_con {
    margin-bottom: 10px;
  }
  .item_wrap {
    justify-content: space-between;
    width: 95%;
    max-width: 500px;
  }
  .item_wrap .item {
    flex: 0 0 48%;
    width: auto;
    margin: 0 0 15px;
  }
  
  /*色分け*/
  .item_wrap .item:nth-of-type(2) a::after, 
  .item_wrap .item:nth-of-type(3) a::after, 
  .item_wrap .item:nth-of-type(6) a::after, 
  .item_wrap .item:nth-of-type(7) a::after {
    border-color:  var(--primary);
  }
  .item_wrap .item:nth-of-type(2) .item_top, 
  .item_wrap .item:nth-of-type(3) .item_top, 
  .item_wrap .item:nth-of-type(6) .item_top, 
  .item_wrap .item:nth-of-type(7) .item_top {
    background-image: url(../img/common/dec_log_b.png);
  }
  .item_wrap .item:nth-of-type(2) .title, 
  .item_wrap .item:nth-of-type(3) .title, 
  .item_wrap .item:nth-of-type(6) .title, 
  .item_wrap .item:nth-of-type(7) .title {
    color:  var(--primary);
  }
  /*色分け-end-*/
  
  .sec_bn img {
    width: 85%;
    margin: auto;
    /* padding: 0 2em; */
    max-width: 480px;
  }
}

@media screen and (max-width: 480px) {
  .main_img {
    height: 100vh;
    min-height: 550px;
    max-height: 600px;
  }
  .main_img .title01 {
    left: 10%;
  }
  .sec_main .div_schedule {
    margin-top: 40px;
    padding: 20px 5% 0;
  }
}
