.separate-top {
    position: relative;
    width: 100%;
    height: 300px;
}
.separate-top h2 {
    position: absolute;/*重ねたい子要素にabsolute*/
    top:70%;
    left: 50%;
   -ms-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
    -webkit-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
    transform: translate(-50%,-50%);/*センター寄せの修正*/
    color: #ffffff;
    font-size: 5rem;
    margin: 0!important;/*文字がずれている場合や*/
    padding: 0!important;/*文字が折り返される場合*/
}
.contact-item02 {
    margin: 0 4px; /* マージンを一律に */
    background: rgb(0, 0, 0);
    color: #000;
    width: 75px;
    height: 30px;
    border: #fff solid 4px;
    border-radius: 0 0 20px 0;
    text-align: center;
  }
  .contact-item02 a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    font-size: 0.8rem; /* フォントサイズを調整 */
    text-align: center;
    color: #fff;
    line-height: 30px;
  }
  .contact-item02:hover {
    background: rgb(218, 114, 114);
  }
  
main {
    color: #000;
    padding: 100px 0;
}
/* カード */
.event {
    display: flex;
}
h3 {
    text-align: center;
    font-size: 3rem;
}
.eventcard {
    background: #ffffff;
    width: 300px;
    height: 600px;
    margin: 100px auto;
    border: 3px solid;
}    
.event-image {
    width: 350px;
    height: 300px;
    justify-content: center;
    align-items: center;
}
.event-text {
    font-size: 0.8rem;
}
.event-text h2 {
    color: #fff;
    font-size: 1rem;
    background: #000;
    margin: 20px 20px;
    text-align: center;
}
.event-text p {
    color: #7676D0;
    margin: 0 20px;
    line-height: 20px;
}
.event-image img {
    width: 300px; 
    height: 300px; 
}
@media screen and (max-width: 1024px) {
    .event {
        width: 100%;
        display: block;
    }
    .eventcard {
        width: 100%;
        height: 80%;
        margin: 40px auto;
    }        
    .event-image {
        width: 100%;
    }    
    .event-image img {
        width: 100%;
    }    
    .main-inner h3 {
        font-size: 1.2rem;
    }
    .separate-top h2 {
        font-size: 2rem;
        top: 40%;
        color: #fff;
      }
      .recruit p {
        font-size: 0.7rem;
        text-align: left;
      }  
    
}
