@charset "utf-8";

.cmn__contents-head .inner.flex {
  align-items: flex-end;
  justify-content: space-between;
}

@media screen and (max-width: 767px) {
  .cmn__contents-head .inner.flex {
    align-items: flex-start;
    flex-direction: column;

    gap: 9px;
  }
}

/* リンクボタン */
.cmn__contents-head .link-btn a {
  position: relative;
  display: inline-block;
  width: 152px;
  padding: 15px 20px 14px;
  border-radius: 6px;
  background-color: #4a8c80;
  font-size: var(--fs15);
  color: #fff;
  transition: all 0.3s ease;
}
.cmn__contents-head .link-btn a:hover {
  background-color: #2d5b60;
  opacity: 1;
}
.cmn__contents-head .link-btn a::before {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 16px;
  height: 1px;
  background-color: #fff;
  content: "";
  transition: right 0.3s ease;
  transform: translateY(-50%);
}
.cmn__contents-head .link-btn a::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  content: "";
  transition: right 0.3s ease;
  transform: translateY(-50%) rotate(45deg);
}
.cmn__contents-head .link-btn a:hover::before {
  right: 15px;
}
.cmn__contents-head .link-btn a:hover::after {
  right: 15px;
}

@media screen and (max-width: 767px) {
  .cmn__contents-head .link-btn {
    margin-left: auto;
  }
  .cmn__contents-head .link-btn a {
    width: 126px;
    padding: 11px 15px 10px;
    font-size: var(--fs13);
  }
  .cmn__contents-head .link-btn a::before {
    right: 16px;
    width: 12px;
  }
  .cmn__contents-head .link-btn a::after {
    right: 16px;
    width: 5px;
    height: 5px;
  }
  .cmn__contents-head .link-btn a:hover::before {
    right: 13px;
  }
  .cmn__contents-head .link-btn a:hover::after {
    right: 13px;
  }
}

/* ============= コモン上書きする */
.wp-pagenavi {
  align-items: center;
  justify-content: center;
}
.wp-pagenavi .page {
  border: solid 1px #4a8c80 !important;
  color: #2d5b60;
}
.wp-pagenavi .page:hover {
  background-color: #2d5b60;
}
.wp-pagenavi .current {
  border: solid 1px #4a8c80 !important;
  background-color: #2d5b60;
  color: #fff;
}

/* ==================================================== */
/*  #作品紹介
/* ==================================================== */

/* カテゴリー */

.works_nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 75px;

  gap: 20px;
}
.works_nav li:not(.nav_label) a,
.works_nav li.active {
  display: inline-block;
  padding: 8px 17px 7px;
  border: 1px solid #4a8c80;
  border-radius: 20px;
  background-color: #fff;
  font-size: var(--fs15);
  font-weight: bold;
  line-height: 1;
  text-align: center;
  color: #2d5b60;
  transition: all 0.3s ease;
}
.works_nav li:not(.nav_label) a:hover {
  background-color: #4a8c80;
  color: #fff;
  opacity: 1;
}

.works_nav li.active {
  background-color: #4a8c80;
  pointer-events: none;
  color: #fff;
}

/* ラベルのスタイル */
.works_nav li.nav_label {
  font-size: var(--fs14);
  font-weight: bold;
  color: #2d5b60;
}

@media screen and (max-width: 767px) {
  .works_nav {
    padding-top: 40px;

    gap: 7px;
  }
  .works_nav li a {
    padding: 6px 10px;
    font-size: var(--fs12);
  }
  .works_nav li.nav_label {
    width: 100%;
    margin-bottom: 5px;
  }
}

/* グリッドエリア */
.works-list .works-list_grid {
  display: grid;
  padding-top: 60px;

  grid-template-columns: repeat(3, 1fr); /* 3列均等 */
  gap: 80px 2.9%;
}
.works-list .works-list_grid article figure {
  margin-bottom: 12px;
}
.works-list .works-list_grid article .cat_name {
  font-size: var(--fs13);
  color: #4a8c80;
}
.works-list .works-list_grid article .flex {
  justify-content: space-between;
}
.works-list .works-list_grid article .year {
  font-size: var(--fs15);
}
.works-list .works-list_grid article h3.works_title {
  font-size: var(--fs16);
  font-weight: bold;
}
.works-list .works-list_grid article .location {
  margin-top: 5px;
  font-size: var(--fs13);
}
@media screen and (max-width: 767px) {
  .works-list {
    margin-bottom: 100px;
  }
  .works-list .works-list_grid {
    padding-top: 30px;

    grid-template-columns: repeat(2, 1fr);
    gap: 25px 2.9%;
  }
  .works-list .works-list_grid article figure {
    margin-bottom: 6px;
  }
  .works-list .works-list_grid article .cat_name {
    font-size: var(--fs10);
  }
  .works-list .works-list_grid article .year {
    font-size: var(--fs10);
  }
  .works-list .works-list_grid article h3.works_title {
    font-size: var(--fs13);
  }
  .works-list .works-list_grid article .location {
    font-size: var(--fs12);
  }
}

/* ==================================================== */
/*  #作品紹介　詳細
/* ==================================================== */
.works-detail .works-contents article {
  margin-bottom: 150px;
}
.works-detail .works-contents .title-label.flex {
  align-items: center;
  padding-top: 30px;
  line-height: 1;

  gap: 11px;
}
.works-detail .works-contents .title-label h3 {
  font-size: var(--fs25);
  font-weight: bold;
  color: #2d5b60;
}
.works-detail .works-contents .title-label h2 {
  font-size: var(--fs14);
  font-weight: bold;
}
.works-detail .works-contents .title-area.flex {
  align-items: center;
  margin: 12px 0 30px;

  gap: 17px;
}
.works-detail .works-contents .title-area h1 {
  font-size: var(--fs30);
  font-weight: bold;
}
.works-detail .works-contents .title-area .cat_name {
  display: inline-block;
  flex-shrink: 0;
  margin-top: 5px;
  padding: 8px 15px 7px;
  border: 1px solid #4a8c80;
  border-radius: 20px;
  background-color: #fff;
  font-size: var(--fs13);
  font-weight: bold;
  line-height: 1;
  color: #2d5b60;
}
.works-detail .works-contents .thumbnail-img {
  overflow: hidden;
  width: 100%;
  height: calc(100vh - 216px); /* ここ後で見る */
  min-height: 500px;
}

.works-detail .works-contents .thumbnail-img img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}
.works-detail .works-contents .works-profile {
  padding-top: 70px;
  font-size: var(--fs16);
  line-height: 1.68;
}
.works-detail .works-contents .works-profile .flex {
  justify-content: space-between;

  gap: 20px;
}
.works-detail .works-contents .works-profile .detail_text {
  width: 51%;
}
.works-detail .works-contents .works-profile .detail_text p:not(:last-child) {
  margin-bottom: 20px;
}
.works-detail .works-contents .works-profile .detail_data {
  width: 37%;
}
.works-detail .works-contents .works-profile .detail_data .data_label {
  margin-bottom: 22px;
  font-weight: bold;
  color: #2d5b60;
}
.works-detail .works-contents .works-profile .detail_data .data_box {
  display: grid;

  grid-template-columns: 90px 1fr;
  gap: 10px;
}

.works-detail .works-contents .works-profile .detail_data .data_box:not(:last-child) {
  margin-bottom: 10px;
}

.works-detail .works-contents .photo-area {
  padding-top: 110px;
}

.works-detail .works-contents .photo-area figure {
  margin-bottom: 70px;
  text-align: center;
}
.works-detail .works-contents .photo-area figure:last-child {
  margin-bottom: 0;
}

.works-detail .works-contents .photo-area img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 787px;
  vertical-align: bottom;

  object-fit: contain;
}
.works-detail .works-contents .photo-area figcaption {
  margin-top: 8px;
  font-size: var(--fs14);
}

.works-detail .works-contents .link-btn {
  display: flex;
  justify-content: center;
}
@media screen and (max-width: 767px) {
  .works-detail .works-contents .title-label h3 {
    font-size: var(--fs22);
  }
  .works-detail .works-contents .title-label h2 {
    font-size: var(--fs12);
  }
  .works-detail .works-contents .title-area.flex {
    align-items: flex-start;
    flex-direction: column;
    margin: 15px 0 17px;

    gap: 5px;
  }
  .works-detail .works-contents .title-area h1 {
    font-size: var(--fs20);
  }
  .works-detail .works-contents .title-area .cat_name {
    padding: 4px 10px;
    font-size: var(--fs12);
  }
  .works-detail .works-contents .thumbnail-img {
    height: 26vh;
    min-height: 210px;
  }
  .works-detail .works-contents .works-profile {
    padding-top: 40px;
  }
  .works-detail .works-contents .works-profile .flex {
    flex-direction: column;

    gap: 60px;
  }
  .works-detail .works-contents .works-profile .detail_text,
  .works-detail .works-contents .works-profile .detail_data {
    width: 100%;
    font-size: var(--fs14);
  }
  .works-detail .works-contents .works-profile .detail_data .data_label {
    margin-bottom: 15px;
    font-size: var(--fs15);
  }
  .works-detail .works-contents .works-profile .detail_data .data_box:not(:last-child) {
    margin-bottom: 7px;
  }

  .works-detail .works-contents .photo-area {
    padding-top: 70px;
  }
  .works-detail .works-contents .photo-area .inner-m {
    padding: 0;
  }
  .works-detail .works-contents .photo-area figcaption {
    padding: 0 5.3%;
    font-size: var(--fs12);
    text-align: left;
  }
}

/* ==================================================== */
/*  #実績一覧
/* ==================================================== */
.work-list .table-area {
  padding-top: 80px;
}
.work-list .work-table-wrapper {
  overflow-x: auto;
  width: 100%;
}
.work-list .work-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: var(--fs16);
}

.work-list .work-table th {
  padding: 0 5px 16px 5px;
  font-weight: normal;
  text-align: left;
}
.work-list .th-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  border-radius: 5px;
  background-color: #f7f7f7;
}
.work-list .th-label {
  flex-shrink: 0;
  font-weight: bold;
}

.work-list .sort-controls {
  display: flex;
  overflow: hidden;
  flex-direction: row;
  width: 58px;
  height: 29px;
  margin-left: 8px;
  border-radius: 4px;

  gap: 0;
}
.work-list .sort-btn {
  position: relative;
  width: 50%;
  height: 100%;
  padding: 0;
  border-width: 0;
  border-style: none;
  border-color: transparent;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #e5e5e5;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  opacity: 1;
}
.work-list .sort-btn::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  content: "";
  transform: translate(-50%, -50%);
}
.work-list .sort-asc::before {
  border-width: 0 4px 5px 4px;
  border-color: transparent transparent #444 transparent;
}
.work-list .sort-desc::before {
  border-width: 5px 4px 0 4px;
  border-color: #444 transparent transparent transparent;
}
.work-list .sort-btn.is-active {
  box-shadow: none;
  background-color: #fff;
}
.work-list .sort-btn:hover:not(.is-active) {
  background-color: #ebebeb;
}
.work-list .work-table tbody tr {
  border-bottom: 1px solid #ddd;
}
.work-list .work-table td {
  padding: 14px 8px;
  vertical-align: middle;
}
.work-list .work-table td.col-project,
.work-list .work-table td.col-usage,
.work-list .work-table td.col-location,
.work-list .work-table td.col-scale {
  padding-left: 23px;
}
.work-list .work-table td span {
  display: none;
}
.work-list .col-project a {
  border-bottom: 1px solid #aaa;
  text-decoration: none;
}
.work-list .work-table th:nth-child(1) {
  width: 12%;
  min-width: 150px;
  padding-left: 0;
}
.work-list .work-table th:nth-child(2) {
  width: 35%;
}
.work-list .work-table th:nth-child(3) {
  width: 13%;
  min-width: 130px;
}
.work-list .work-table th:nth-child(4) {
  width: 20%;
  min-width: 150px;
}
.work-list .work-table th:nth-child(5) {
  width: 20%;
  min-width: 130px;
  padding-right: 0;
}
.work-list .col-year {
  text-align: center;
}

@media screen and (max-width: 767px) {
  .work-list .work-table {
    font-size: var(--fs14);
  }
  .work-list .th-inner {
    padding: 6px 8px 6px 13px;
  }
  .work-list .sort-controls {
    width: 46px;
    height: 23px;
  }

  .work-list .work-table td.col-project,
  .work-list .work-table td.col-usage,
  .work-list .work-table td.col-location,
  .work-list .work-table td.col-scale {
    padding-left: 15px;
  }
  .work-list .work-table th:nth-child(1) {
    min-width: 130px;
  }
  .work-list .work-table th:nth-child(3) {
    min-width: 110px;
  }
  .work-list .work-table th:nth-child(4) {
    min-width: 130px;
  }
  .work-list .work-table th:nth-child(5) {
    min-width: 110px;
  }
}
