/** WORK index**************************************************/
/************************************************************************/
main {
  margin-top: 110px;
  opacity: 0;
  animation: main 2s ease forwards;
}


/**tab**/
.tab_wrp {
  max-width: 1200px;
  margin: 24px auto 0 auto;
  padding: 16px;
  background: #f5f5f5;
  border-bottom: 1px #ddd solid;
}

.tab_wrp li {
  display: inline-block;
  margin-right: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.tab_wrp li:hover {
  color: #4679BD;
}

.tab_wrp .active {
  color: #4679BD;
}

.cat_list_btn {
  display: none;
}


.work_wrp {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.work_wrp .grid {
  position: relative;
  width: calc(100% / 3);
  height: 225px;
  overflow: hidden;
  background: -moz-linear-gradient(top, #fff, 70%, #000);
  background: -webkit-linear-gradient(top, #fff, 70%, #000);
  background: linear-gradient(to bottom, #fff, 70%, #000);
}



.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}


.grid a:hover img {
  transform: scale(1.1, 1.1);
}

.grid_text_wrp {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0), 63%, rgba(0, 0, 0, 1));
  /*border-top: 1px #000 solid;
  border-bottom: 1px #000 solid;*/
  z-index: 2;
}

.grid_text_inn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
}

.grid_cat {
  margin-bottom: 8px;
  color: #5291E4;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.grid_ttl {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.grid_sub_ttl {
  color: #efefef;
  font-size: 13px;
  letter-spacing: 0.12em;
}



/****** tablet / 768 - 1024 *****/
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .work_wrp .grid {
    width: calc(100% / 2);
  }
}


/****** SP / 767 or less *****/
@media screen and (max-width: 767px) {
  main {
    margin-top: 84px;
  }


  .work_wrp {
    padding: 0;
  }

  .work_wrp .grid {
    width: 100%;
  }

  .tab_wrp {
    width: 93%;
    margin-bottom: 16px;
  }

  .cat_list_btn {
    display: block;
  }

  .cat_list {
    display: none;
  }

  .tab_wrp li {
    display: block;
    margin: 16px 0 8px 0;
    cursor: pointer;
    transition: 0.3s;
  }

}



/** WORK detail**************************************************/
/************************************************************************/

.detail_wrp {
  max-width: 1200px;
  margin: 32px auto 0 auto;
  padding: 0 16px;
}

.detail_header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 0 12px 0;
}

.cat {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #4679BD;
}

.ttl {
  font-size: 22px;
  font-weight: 600;
}

.sub_ttl {
  font-size: 12px;
  margin: 8px 0 0 0;
}

.date {
  margin-left: auto;
  font-size: 12px;
  color: #666;
}

.detail_contents {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px #999999 solid;
  border-bottom: 1px #999999 solid;
  line-height: 2;
  font-size: 15px;
}



.detail_contents a {
  position: relative;
  display: inline-block;
  padding-right: 18px;
  color: #4679BD;
  border-bottom: 1px #4679BD solid;
}

.detail_contents a::before {
  content: '';
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: -2px;
  margin-top: -8px;
  border: 1px #4679BD solid;
}

.detail_contents a::after {
  content: '';
  width: 6px;
  height: 6px;
  border: 0;
  border-top: solid 1px #4679BD;
  border-right: solid 1px #4679BD;
  position: absolute;
  top: 50%;
  right: 4px;
  margin-top: -3px;
  transform: rotate(45deg);
}

.detail_contents a:hover {
  opacity: 0.6;
}

.text_wrp {
  width: 56%;
  padding-right: 32px;
}

.text_wrp p {
  margin-bottom: 24px;
}

.image_wrp {
  width: 44%;
}

.image_wrp img {
  width: 100%;
}

.text_wrp a {
  color: #4679BD;
  border-bottom: 1px #4679BD solid;
  font-weight: 600;
}

.text_wrp a:hover {
  opacity: 0.5;
}



.text_wrp h2 {
  margin: 36px 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  border-left: 4px #333 solid;
  padding-left: 6px;
  line-height: 1.4;
}

.col_2_wrp {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px #999999 solid;
}


.col_2_wrp .grid img {
  width: 100%;
  height: auto;
}

.col_2_wrp .grid {
  width: 49%;
  margin-bottom: 24px;
}

.iframe-wrapper {
  position: relative;
  padding-bottom: 56.2%;
  height: 0;
  overflow: hidden;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.col_2_wrp .grid h3 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
  border-left: 4px #333 solid;
  padding-left: 6px;
  line-height: 1.4;
}


.caption {
  margin: 4px 0 0 0;
  font-size: 14px;
}


.sample img {
    width: 10%;    /* 横幅を割合で指定 */
    height: auto;  /* 高さは自動指定 */
}


/****** SP / 767 or less *****/
@media screen and (max-width: 767px) {
  .detail_header {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail_contents {
    flex-direction: column;
    padding: 16px 0;
  }

  .text_wrp {
    width: 100%;
    margin-top: 16px;
    padding-right: 0;
    order: 2;
  }

  .image_wrp {
    width: 100%;
  }

  .col_2_wrp .grid {
    width: 100%;
  }

  .iframe-wrapper {
    position: relative;
    padding-bottom: 56%;
  }

}


/****/
.pagination-container {
  margin-top: 64px;
  text-align: center;
}

.pagination li {
  display: inline-block;
  margin: 0 4px;
}



.pagination .page a {
  display: block;
  padding: 4px 8px;
  border: 1px #ccc solid;
  border-radius: 4px;
}

.page.active {
  background: #efefef;
}

.first,
.last {
  display: none !important;
}

.next,
.prev {
  margin: 0 6px;
  font-size: 20px;
  color: #999;
}
