@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
/* Common */
body, section, h1, h2, ul, li, p {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  text-overflow: ellipsis;
}
/* Layout */
h1 {
  margin-bottom: 20px;
}
.container {
  display: flex;
  width: 800px;
  height: 500px;
  column-gap: 4px;
  background-color: #333;
}
li h2 { 
  padding-top: 380px;
}
/* content details */
li {
  overflow: hidden;
  width: 160px;
  transition: all .3s ease 0s;
  filter: grayscale(100%);
}
li a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: all .5s ease 0s;
}
li h2, li p {
  opacity: 0;
  padding-left: 30px;
  transition: all .5s ease 0s;
}
li:hover {
  width: 600px;
  filter: none;
}
li:hover a {
  background: rgba(0, 0, 0, 0.3);
}
li:hover h2, li:hover p {
  opacity: 1;
}

/* background */
.bg-01 {
  background: url(images/spcar_01.jpg) no-repeat 0 0;
  background-size: cover;
}
.bg-02 {
  background: url(images/spcar_02.jpg) no-repeat 0 0;
  background-size: cover;
}
.bg-03 {
  background: url(images/spcar_03.jpg) no-repeat 0 0;
  background-size: cover;
}
.bg-04 {
  background: url(images/spcar_04.jpg) no-repeat 0 0;
  background-size: cover;
}
.bg-05 {
  background: url(images/spcar_05.jpg) no-repeat 0 0;
  background-size: cover;
}