@charset "UTF-8";

/* ページ全体のスタイル */
.body {
  margin-top: 30px;
  margin-bottom: 30px;
}

.work-area {
  margin-top: 100px;
  margin-bottom: 100px;
}

.work-title {
  width: auto;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  margin-bottom: 50px;
  font-size: 3.0rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: .4rem;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.5);
}

/* 画像のスタイル */
.hero-image {
  width: 80%;
  height: auto;
  object-fit: cover;
}

/* 施工実績の画像スタイル */
.image {
  margin-bottom: 20px;
}

/* ギャラリーのためのcss */
.card-list-container {
  width: 880px;
  columns: 3;
  padding: 0 15px;
  margin-right: auto;
  margin-left: auto;
}

.card-item-container {
  margin-bottom: 20px;
}

.card-item-img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

@media (max-width: 768px) {
  .body {
    margin-top: 0;
    margin-bottom: 0;
  }

  .card-list-container {
    width: 100%;
    columns: 1;
  }
  
  .card-item-container {
    display: block;
    margin-bottom: 20px;
  }

  .card-item-img {
    pointer-events: none;
  }
}

/* レイアウトのためのCSS */
.card-list-container {
  list-style: none;
}

.card-item-img-container {
  color: #333;
}

.card-item-img-container:hover,
.card-item-img-container:active {
  text-decoration: none;
}

/* 画像を出現させるアニメーションCSS */
.flipLeft {
  animation-name: flipLeft;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  perspective-origin: left center;
  opacity: 0;
}

@keyframes flipLeft {
  from {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
    opacity: 0;
  }

  to {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
    opacity: 1;
  }
}

.lb-caption {
  color: #ffffff;
}