@import url('main.css');
.banner{
  display: block;
  height: calc(100vh - 50px);
  width: 100%;
  background-image: url(../img/banner/index_banner_01_m.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  position: relative;
  bottom: 100px;
  margin-bottom: -100px;
}

.bg-gray{
  padding: 20px 0px;
}

.brick{
  width: 0px;
  height: 0px;
  background-color: #fff;
  transform: rotate(45deg);
  margin: auto;
  position: relative;
  top: 10px;
}

.card{
  min-height: 300px;
  text-align: center;
  background-color: var(--font-color-white);
  margin: 10px 0px;
  color: var(--dark-500);
  letter-spacing: 1px;
}

.card-img{
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.card h2{
  font-size: 1.4rem;
  color: var(--dark-900);
}

.card button{
  width: 100%;
  border: none;
  padding: 12px 0px;
  text-align: center;
  color: var(--font-color-white);
  vertical-align: middle;
  height: 42px;
  box-sizing: border-box;
}

.card > button > a{
  color: var(--dark-100);
  width: 100%;
  display: inline-block;
  position: relative;
  height: 42px;
  top: -12px;
  line-height: 2rem;
}

.card > button > a::after{
  content: '';
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  width: 10px;
  height: 10px;
  display: inline-block;
  transform: rotate(45deg);
  margin-left: 8px;
}

.bg-green{
  background-color: var(--color-green);
  text-align: center;
  padding: 12px;
  font-size: 1.4rem;
  color: var(--font-color-white);
}

.news-wrapper {
  display: grid;
  grid-template-columns: 1tr;
}

.news-img {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  aspect-ratio: 16/9;
}

.news-content{
  padding: 0px 20px;
  width: 100%;
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: 400;
  color: var(--dark-600);
  display: grid;
  vertical-align: middle;
  box-sizing: border-box;
}

.news-content h2{
  font-size: 1.4rem;
  margin-bottom: 0;
  line-height: 1.4rem;
  color: var(--dark-900);
}

.news-content button{
  box-sizing: border-box;
  width: 200px;
  height: 50px;
  text-align: center;
  color: var(--font-color-white);
  background-color: var(--brand-color-2);
  border: none;
  margin-bottom: 10px;
  position: relative;
}


.news-content button a{
  display: inline-block;
  width: 200px;
  height: 50px;
  line-height: 50px;
  color: var(--dark-100);
  position: absolute;
  left: 0;
  top: 0;
}

.news-content button a::after{
  content: '';
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  width: 10px;
  height: 10px;
  display: inline-block;
  transform: rotate(45deg);
  margin-left: 8px;
  position: relative;
  bottom: 2px;
}

@media screen and (min-width: 768px) {
  .banner{
    background-image: url(../img/banner/index_banner_01.jpg);
  }
  .brick{
    width: 60px;
    height: 60px;
    background-color: #fff;
    transform: rotate(45deg);
    margin: auto;
    position: relative;
    top: 20px;
  }
  
  .card{
    margin: 60px 0px;
  }

  .news-wrapper {
    display: grid;
    grid-template-columns: 40% 60%;
  }

  .news-content{
    padding: 0px 40px;
    max-width: 600px;
  }

  .news-content h2{
    margin-top: 30px;
  }

  .news-content button{
    margin-bottom: 60px;
    
  }

  .card button a:hover{
    background-color: var(--brand-color);
  }

  .news-content button:hover{
    background-color: var(--brand-color);
  }

  .news-content button a:hover{
    color: var(--dark-100);
  }
}

@media screen and (min-width: 1280px) {
  .news-wrapper {
    display: grid;
    grid-template-columns:40% 60%;
    border-bottom: 1px solid #ccc;
  }
}