@charset "UTF-8";

.txtbox{
  margin: 2rem 0 8rem;
  text-align: center;
}
.courselist {
  margin-top: 4rem;
  gap: 6rem;
}
.courselist li{
  background: url(../../images/page/employment-and-qualifications/emp_and_qua1.webp) no-repeat center / cover;
  border-radius: 6px;
  box-shadow: 10px 10px 10px rgba(146, 136, 124,.3);
  overflow: hidden;
  width: calc(50% - 3rem);
}
.courselist li:nth-of-type(2){
  background: url(../../images/page/employment-and-qualifications/emp_and_qua2.webp) no-repeat center / cover;
}
.courselist li:nth-of-type(3){
  background: url(../../images/page/employment-and-qualifications/emp_and_qua3.webp) no-repeat center / cover;
}
.courselist li a{
  aspect-ratio: 4/3;
  display: block;
  opacity: 1;
  position: relative;
}
.courselist li a::before{
  content: "";
  background: #7EB0E3;
  opacity: .56;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transition: .5s;
}
.courselist li a:hover::before{
  opacity: 0;
}
.courselist li a > div{
  background: #7EB0E3;
  color: #fff;
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1.6;
  padding: 1rem 0;
  position: absolute;
  top: 50%;
  left: 0;
  text-align: center;
  transform: translateY(-50%);
  width: 100%;
}
.courselist li:nth-of-type(2) a::before,
.courselist li:nth-of-type(2) a > div{
  background: #E37EB7;
}
.courselist li:nth-of-type(3) a::before,
.courselist li:nth-of-type(3) a > div{
  background: #9B86CE;
}
.courselist li a > div span{
  display: block;
  font-size: 2rem;
  font-weight: 500;
}
@media only screen and (max-width: 1180px) {
  
}
@media only screen and (max-width: 1024px) {
  
}
@media only screen and (max-width: 820px) {
  .courselist {
    gap: 3rem;
  }
  .courselist li{
    width: calc(50% - 1.5rem);
  }
  .courselist li a > div{
    font-size: 2.2rem;
  }
  .courselist li a > div span{
    font-size: 1.8rem;
  }
}
@media only screen and (max-width: 768px) {
  
}
@media only screen and (max-width: 767px) {
  .txtbox {
    margin: 2rem 0 4rem;
    text-align: left;
  }
  .courselist li{
    width: 100%;
  }
  .courselist li a {
    aspect-ratio: 3 / 2;
  }
  .courselist li a > div{
    font-size: 2rem;
    padding: .5rem 0;
  }
  .courselist li a > div span{
    font-size: 1.6rem;
  }
}