/* 施工事例一覧 */
.post-type-archive-pastwork .breadcrumb,
.post-type-archive-pastwork .site-body,
:not(.single-pastwork).tax-industry .breadcrumb,
:not(.single-pastwork).tax-industry .site-body {
  background: #eee;
}
.pastwork-cat__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  border-bottom: 2px solid #000;
  margin: 0 0 20px;
  padding: 0 0 20px;
}
.pastwork-cat__list li {
  width: calc( (100% - 18px) / 4 );
  background: #fff;
  border: 2px solid #000;
  margin: 0;
}
.pastwork-cat__list li a {
  display: block;
  text-align: center;
  padding: 10px;
  text-decoration: none;
}
.pastwork-cat__list li.active a {
  background: #000;
  color: #fff;
}
@media screen and (max-width:768px) {
  .pastwork-cat__list li {
    width: 100%;
  }
}

.post-type-archive-pastwork .post-list,
.tax-industry .post-list {
  margin: 0;
  gap: 20px 10px;
}
.pastwork-post {
  background: #fff;
  width: calc( (100% - 20px) / 3 );
}
.pastwork-post__img img {
  vertical-align: middle;
}
.pastwork-post__title {
  font-size: 20px;
  margin: 0;
}
.pastwork-post__cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pastwork-post__cat-list .cat-name {
  background: green;
  color: #fff;
  padding: 2px 10px 3px;
  margin: 0;
}
.pastwork-post__btn {
  display: block;
  background: #000;
  color: #fff;
  border-radius: 100px;
  width: 90%;
  margin: auto auto 0;
  padding: 6px;
  text-align: center;
  transition: all .3s ease;
}
.pastwork-post__btn:hover {
  color: #fff;
  opacity: 0.8;
  transform: translateY(0.1875em);
}
.pastwork-post__btn i {
  margin-left: 6px;
}
.pastwork-post__info-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 6px 0;
}
.pastwork-post__info-list li {
  margin: 0;
  min-width: 50%;
}
.pastwork-post__info-list span {
  border: 1px solid;
  margin-right: 5px;
  padding: 0 10px;
  display: inline-block;
}
.pastwork-post__body {
  padding: 0 4px 10px;
  display: flex;
  flex-direction: column;
}
.pastwork-post__body > * + * {
  margin-top: 6px;
  margin-block-end:0!important;
}
@media screen and (max-width:992px) {
  .pastwork-post {
    width: calc( (100% - 10px) / 2 );
  }
}
@media screen and (max-width:768px) {
  .pastwork-post {
    width: 100%;
  }
}


/* 施工事例記事 */
.pastwork-entry__cat {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.pastwork-entry__cat-name {
  display: inline-block;
  background: green;
  color: #fff;
  padding: 4px 6px;
}

.pastwork-entry .wp-block-vk-blocks-grid-column .wp-block-image {
  margin-bottom: 0;
}
.pastwork-entry .wp-block-image.alignright {
  margin-left: 0;
}

.pastwork-entry h2 {
  padding-left: 1.5em;
  position: relative;
  border-bottom: 4px solid green;
  margin-top: 2em;
}
.pastwork-entry h2:before {
  content: "";
  width: 1em;
  height: 1em;
  background: green;
  position: absolute;
  top: 0.2em;
  left: 0;
  display: block;
}

.pastwork-entry .wp-block-embed-youtube {
  width: 80%;
  margin: 0 auto;
}
.pastwork-entry .wp-block-embed-youtube .wp-block-embed__wrapper {
  aspect-ratio: 16/9;
}
.pastwork-entry .pastwork-entry__table {
  table-layout: fixed;
  border: none;
}
.pastwork-entry .pastwork-entry__table th,
.pastwork-entry .pastwork-entry__table td {
  padding: 12px 10px;
  border: 2px solid #fff;
  font-size: 16px;
}
.pastwork-entry .pastwork-entry__table th {
  background: #000;
  color: #fff;
  width: 135px;
  font-weight: normal;
}
.slb_data_title {
  display: none !important;
}
@media screen and (max-width:768px) {
  .pastwork-entry .pastwork-entry__table th,
  .pastwork-entry .pastwork-entry__table td {
    display: block;
    width: 100%;
  }
  .pastwork-entry .wp-block-embed-youtube {
    width: 100%;
  }
}

.pastwork-entry .pastwork-entry__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.pastwork-entry .pastwork-entry__list li {
  width: calc( (100% - 40px) / 3 );
}
.pastwork-entry .pastwork-entry__list-img img {
  aspect-ratio: 2/1;
  object-fit: cover;
}
@media screen and (max-width:992px) {
  .pastwork-entry .pastwork-entry__list li {
    width: calc( (100% - 20px) / 2 );
  }
}
@media screen and (max-width:768px) {
  .pastwork-entry .pastwork-entry__list li {
    width: 100%;
  }
}

/* トップページ　施工事例 */
.pastwork-post__top-wrap {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 20px 10px;
}