header {
  border-bottom: 0;
}
header.bg {
  border-bottom: 1px solid rgba(0,0,0,.1);
}
header .navbar-brand img {
  transition: opacity .6s;
}
header.white .navbar-brand img.white {
  opacity: 1;
}
header.white .navbar-brand img:not(.white) {
  opacity: 0;
}
header .navbar-nav .nav-link { 
  transition: color .6s;
}
header.white .navbar-toggler-line {
  border-top-color: rgba(255,255,255,.75);
}
header.bg.white .navbar-brand img.white {
  opacity: 0;
}
header.bg.white .navbar-brand img:not(.white) {
  opacity: 1;
}
header.bg.white .navbar-nav .nav-link {
  color: #332c2b;
}
header.bg.white .navbar-toggler-line {
  border-top-color: #999;
}
.home-banner .carousel-item {
  height: 112.5vw;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

main {
  padding-top: 0;
} 

h2 {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  height: 5rem;
  font-weight: normal;
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
  color: #24a0b6;
  background: url(../img/home_h2_bg.png) no-repeat bottom center;
}
h2 span {
  display: block;
  margin-top: .5rem;
  font-size: .875rem;
  color: #999;
}


.btn-more {
  padding: .5rem 1.5rem;
  font-size: .875rem;
  color: #999;
  border: 1px solid #999;
  border-radius: 3px;
}
.btn-more:hover {
  color: #666;
  border-color: #666;
}

.home-about {
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
  background: url(../img/home_about_bg.jpg) no-repeat top center;
  background-size: 100% 100%;
}
.home-about h2 {
  color: #fff;
}
.home-about h2 span {
  color: rgba(255,255,255,.5);
}
.home-about p {
  margin-bottom: 0;
  padding-bottom: 1rem;
  font-weight: 300;
  text-align: justify;
  color: #fff;
}
.home-about img {
  width: 100%;
}
.home-about .btn-more {
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.5);
}
.home-about .btn-more:hover {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.7);
}

.home-product {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.home-product ul {
  margin-left: -7.5px;
  margin-right: -7.5px;
  padding: 0;
  list-style: none;
}
.home-product ul li {
  margin-bottom: 15px;
  padding-left: 7.5px;
  padding-right: 7.5px;
}
.home-product ul li a {
  position: relative;
  display: block;
  overflow: hidden;
}
.home-product ul li a .image {
  display: block;
  padding-top: 160%;
  height: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: transform .3s ease-in-out;
}
.home-product ul li a:hover .image {
  transform: scale(1.05);
}
.home-product ul li a .text-wrapper {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5rem;
  text-align: center;
  background-image: -webkit-linear-gradient(top,rgba(0,0,0,.8) 0,rgba(0,0,0,.0001) 100%);
  background-image: -moz-linear-gradient(top,rgba(0,0,0,.8) 0%,rgba(0,0,0,.0001) 100%);
  background-image: -o-linear-gradient(top,rgba(0,0,0,.8) 0,rgba(0,0,0,.0001) 100%);
  background-image: linear-gradient(to top,rgba(0,0,0,.8) 0,rgba(0,0,0,.0001) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=0);
}
.home-product ul li a .text-wrapper .text { 
  position: absolute;
  left: 0;
  bottom: 1rem;
  width: 100%;
  font-size: .875rem;
  color: #fff;
}
.home-product ul li a .text-wrapper .btn {
  display: none;
}

.home-case {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  background-color: #f6f6f6;
}
.home-case .row {
  margin-left: -7.5px;
  margin-right: -7.5px;
}
.home-case .row > div {
  margin-bottom: 15px;
  padding-left: 7.5px;
  padding-right: 7.5px;
}
.home-case .case-item {
  position: relative;
  display: block;
  padding-top: 150%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}
.home-case .case-item .text {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2rem;
  font-size: .875rem;
  text-align: center;
  color: #fff;
  background-image: -webkit-linear-gradient(top,rgba(0,0,0,.8) 0,rgba(0,0,0,.0001) 100%);
  background-image: -moz-linear-gradient(top,rgba(0,0,0,.8) 0%,rgba(0,0,0,.0001) 100%);
  background-image: -o-linear-gradient(top,rgba(0,0,0,.8) 0,rgba(0,0,0,.0001) 100%);
  background-image: linear-gradient(to top,rgba(0,0,0,.8) 0,rgba(0,0,0,.0001) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=0);
}

.home-news ul {
  padding: 0;
  list-style: none;
}
.home-news ul li {
  margin-bottom: 30px;
}
.home-news .row a {
  display: block;
  padding: 5%;
  text-decoration: none;
  border: 1px solid #cdcdcd;
}
.home-news .row a:hover {
  border-color: #24a0b6;
}
.home-news .row a .text {
  color: #252525;
}
.home-news .row a .text .date {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .75rem;
  line-height: 1.2;
  text-align: center;
}
.home-news .row a:hover .text .date {
  color: #24a0b6;
}
.home-news .row a .text .date span {
  font-size: 2.5rem;
}
.home-news .row a .text h4 {
  margin-bottom: .5rem;
  font-size: 1.125rem;
  white-space: nowrap;  
  text-overflow: ellipsis;
  overflow: hidden;
}
.home-news .row a .text p {
  font-size: .875rem;
  color: #999;
}
.home-news .row a .image span {
  display: block;
  width: 100%;
  height: 0;
  padding-top: 60%;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100%;
}

@media (min-width: 768px) {   
  header.white .navbar-nav > .nav-item > .nav-link {
    color: #fff;
  }   
  header.bg.white .navbar-nav > .nav-item > .nav-link {
    color: #332c2b;
  } 
  .home-banner .carousel-item {
      height: 640px;
  }
  .home-banner .go-down {
    display: none;
  }
  h2 {
    margin-bottom: 2rem;
    padding-top: 1rem;
    padding-left: 61px;
    font-size: 2rem;
    text-align: left;
    background-position: bottom left;
    background-size: initial;
  }
  h2 span {
    padding-left: 80px;
  }
  .home-about {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .home-about p {
    font-weight: 400;
    line-height: 2;    
  }

  .home-product {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .home-product ul li a .text-wrapper {
    height: 8rem;
  } 
  .home-product ul li a .text-wrapper .text {
    bottom: 2rem;
    font-size: 1.25rem;
    transition: bottom .3s ease-in-out;
  }
  .home-product ul li a:hover .text-wrapper .text {
    bottom: 3rem;
  }
  .home-product ul li a .text-wrapper .btn {
    display: none;
    margin-top: 4rem;
    padding: .5rem 1.5rem;
    font-size: .875rem;
    background-color: rgba(255,255,255.8);
    border-radius: 1px;
    opacity: 0;
    transition: opacity .3s ease-in-out;
  }
  .home-product ul li a:hover .text-wrapper .btn {
    opacity: 1;
    vertical-align: middle;
  }
  .home-product ul li a .text-wrapper .btn img {
    margin-top: -3px;
    margin-left: .5rem;
    vertical-align: middle;
  }
  
  .home-case {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 5rem;
    flex-wrap: nowrap;
  }  
  .home-case .case-item .text {
    bottom: -5rem;
    height: 5rem;
    font-size: 1rem;
    line-height: 5rem;
    opacity: 0;
    transition: all .3s ease-in-out;
  }
  .home-case .case-item:hover .text {  
    bottom: 0; 
    opacity: 1;
  }
  
  .home-news .row .row {
    height: 100%;
  }
  .home-news .row a {
    padding: 3%;
    height: 100%;
  }
  .home-news .row a .text .date {
    margin-bottom: 2rem;
  }  
  .home-news .row a .text h4 {
    margin-bottom: 1rem;
  }
  .home-news .row a .image span {
    height: 100%;
    padding-top: 0;
  }
  .home-news .row a .text p {
    margin-bottom: 0;
  }
}
@media (min-width: 992px) {  
  .home-product ul li a .text-wrapper .text {
    font-size: 1.125rem;
  }

  .home-news .row a .text h4 {
    white-space: normal;  
  }
  .home-news .row a .text p {
    display: none;
  }
}
@media (min-width: 1200px) {
  .home-product ul li a .text-wrapper .text {
    font-size: 1.25rem;
  }

  .home-news .row a .text p {
    display: block;
  }
}
@media (min-width: 1530px) {
  .home-news .row a .text .date {
    margin-bottom: 2rem;
  }  
  .home-news .row a .text h4 {
    margin-bottom: 1rem;
  }
}
@media (min-width: 1560px) {
  .home-product ul {    
    margin-left: -15px;
    margin-right: -15px;
  }
  .home-product ul li {
    padding-left: 15px;
    padding-right: 15px;
  } 
  
  .home-case .row {    
    margin-left: -15px;
    margin-right: -15px;
  }
  .home-case .row > div {
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  } 
  
  .home-news ul {    
    margin-left: -15px;
    margin-right: -15px;
  }
  .home-news ul li {
    padding-left: 15px;
    padding-right: 15px;
  } 
}