/* =========================== */
/* 施工事例 共通 */
/* =========================== */
.worksTag {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  padding: .3em .6em;
  margin-right: .3em;
  margin-bottom: .3em;
  color: #fff;
  border-radius: 3px;
  vertical-align: baseline;
}
.worksTag--solar {
  color: #0b63aa;
  border: 1px solid #0b63aa;
  background-color: #fff;
}
.worksTag--battery {
  background-color: #0b63aa;
}
.worksTag--powcon {
  background-color: #0b63aa;
}
.worksTag--zero {
  background-color: #db632e;
}
.worksTag--buy {
  background-color: #db632e;
}
.worksTag--biz {
  background-color: #db632e;
}

/* =========================== */
/* 施工事例 一覧 */
/* =========================== */

/* ページヘッダー */
.works .pageHeader {
  margin-bottom: 0;
  padding-bottom: 1.5em;
}
.works .pageTitle--def {
  padding-bottom: .5em;
}
.works .pageHeader__desc {
  margin-top: .5em;
}

/* フィルター */
.worksFilter {
  background-color: #f7f8f9;
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}
.worksFilter__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.2rem;
}
.worksFilter__row:last-child {
  margin-bottom: 0;
}
.worksFilter__label {
  font-size: 1.3rem;
  font-weight: bold;
  margin-right: .5em;
  margin-bottom: .5em;
  white-space: nowrap;
}
.worksFilter__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  width: 100%;
}
.worksFilter__checkboxes label {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: .4em;
  cursor: pointer;
  white-space: nowrap;
  padding: .4em .8em;
  background: #fff;
  border: 1px solid #d2d3d4;
  border-radius: 4px;
}
.worksFilter__checkboxes input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #d2d3d4;
  border-radius: 3px;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}
.worksFilter__checkboxes input[type="checkbox"]:checked {
  background: #db632e;
  border-color: #db632e;
}
.worksFilter__checkboxes input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}
.worksFilter__checkboxes label:has(input:checked) {
  background: #fff1e4;
  border-color: #db632e;
}
.worksFilter__actions {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}
.worksFilter__btnSearch {
  font-size: 1.4rem;
  padding: .7em 3em;
  color: #fff;
  background-color: #db632e;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity .3s;
}
.worksFilter__btnSearch:hover {
  opacity: .8;
}
.worksFilter__btnReset {
  font-size: 1.4rem;
  padding: .7em 2.5em;
  color: #333;
  background-color: #fff;
  border: 1px solid #d2d3d4;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity .3s;
}
.worksFilter__btnReset:hover {
  opacity: .8;
}
.worksFilter__result {
  font-size: 1.3rem;
  color: #333;
  margin: 1rem 0 2rem;
}
.worksFilter__result strong {
  color: #db632e;
}

/* カード一覧 */
.worksIndex {
  padding-bottom: 3rem;
}
.worksIndex__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.worksIndex__item {
  width: 100%;
  padding: 0 0 2rem;
}
.worksIndex__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: #333;
  background: #fff;
  box-shadow: 0px 0px 10px 1px rgba(51, 51, 51, 0.1);
  transition: all .3s ease-in-out;
}
.worksIndex__link:hover {
  opacity: .7;
}
.worksIndex__pic {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #f0f1f2;
}
.worksIndex__pic img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.worksIndex__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.worksIndex__tags {
  margin-bottom: .5em;
}
.worksIndex__title {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 .3em;
  color: #333;
}
.worksIndex__branch {
  font-size: 1.2rem;
  color: #999;
  margin: 0 0 .3em;
}
.worksIndex__date {
  font-size: 1.2rem;
  color: #999;
  margin: 0;
  margin-top: auto;
  text-align: right;
}

/* CTA */
.worksCta {
  background-color: #fff1e4;
  color: #333;
  text-align: center;
  padding: 3rem 1.5rem;
}
.worksCta__text {
  font-size: 1.4rem;
  margin-bottom: 1.5em;
}
.worksCta__btn {
  display: inline-block;
  font-size: 1.4rem;
  padding: .8em 2.5em;
  color: #fff;
  background: #db632e;
  border: 2px solid #db632e;
  border-radius: 2em;
  text-decoration: none;
  font-weight: bold;
  transition: all .3s;
}
.worksCta__btn:hover {
  background: #c95320;
  border-color: #c95320;
  color: #fff;
}
.worksCta__tel {
  margin-top: 1.5em;
  font-size: 1.2rem;
  color: #333;
}
.worksCta__tel__number {
  font-size: 2.4rem;
  font-weight: bold;
  display: block;
  margin-top: .3em;
  color: #db632e;
}
.worksCta__tel__note {
  font-size: 1.1rem;
  display: block;
  margin-top: .3em;
  color: #666;
}

/* =========================== */
/* 施工事例 詳細 */
/* =========================== */

/* 詳細ヘッダー */
.worksDetail__header {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
.worksDetail__tags {
  margin-bottom: .5em;
}
.worksDetail__title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 .3em;
}
.worksDetail__branch {
  font-size: 1.3rem;
  color: #999;
  margin: 0;
}

/* メインビジュアル + 施工情報 */
.worksDetail__main {
  margin-bottom: 3rem;
}
.worksDetail__gallery {
  margin-bottom: 2rem;
}
.worksDetail__mainImg {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #f0f1f2;
  margin-bottom: 1rem;
}
.worksDetail__mainImg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.worksDetail__thumbs {
  display: flex;
  gap: 2%;
  list-style: none;
  padding: 0;
  margin: 0;
}
.worksDetail__thumbs li {
  width: 23.5%;
  aspect-ratio: 1;
  height: auto;
  border: 2px solid #d2d3d4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color .3s;
}
.worksDetail__thumbs li.is-active {
  border-color: #db632e;
}
.worksDetail__thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 施工情報テーブル */
.worksDetail__info {
  margin-bottom: 2rem;
}
.worksDetail__info__title {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0 1em;
  padding-bottom: .5em;
  border-bottom: 2px solid #db632e;
}
.worksDetail__info table {
  width: 100%;
  font-size: 1.4rem;
  border-collapse: collapse;
}
.worksDetail__info th,
.worksDetail__info td {
  padding: .8em 1em;
  border-bottom: 1px solid #d2d3d4;
  text-align: left;
  vertical-align: top;
}
.worksDetail__info th {
  width: 30%;
  font-weight: normal;
  color: #666;
  white-space: nowrap;
}
.worksDetail__info td {
  color: #333;
}
.worksDetail__info__note {
  font-size: 1.2rem;
  color: #999;
  margin-top: .5em;
}

/* お客様の声 */
.worksDetail__voice {
  background: #fff;
  box-shadow: 0px 0px 10px 1px rgba(51, 51, 51, 0.1);
  padding: 2rem;
  margin-bottom: 3rem;
}
.worksDetail__voice__title {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 1.5em;
  padding-bottom: .5em;
  border-bottom: 2px solid #db632e;
}
.worksDetail__voice__title::before {
  font-family: 'FontAwesome';
  content: "\f007";
  margin-right: .4em;
  color: #db632e;
}
.worksDetail__voice__inner {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}
.worksDetail__voice__photo {
  width: 80px;
  height: 80px;
  background: #f0f1f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #999;
}
.worksDetail__voice__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.worksDetail__voice__body {
  flex: 1;
}
.worksDetail__voice__name {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 0 .5em;
}
.worksDetail__voice__name span {
  font-weight: normal;
  color: #999;
  margin-left: .5em;
}
.worksDetail__voice__text {
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 0;
}

/* 担当者コメント */
.worksDetail__comment {
  background: #f7f8f9;
  padding: 2rem;
  margin-bottom: 3rem;
}
.worksDetail__comment__title {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 1em;
  padding-bottom: .5em;
  border-bottom: 2px solid #db632e;
}
.worksDetail__comment__title::before {
  font-family: 'FontAwesome';
  content: "\f075";
  margin-right: .4em;
  color: #db632e;
}
.worksDetail__comment__text {
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 0;
}

/* 関連施工事例 */
.worksRelated {
  padding: 3rem 0;
}
.worksRelated__title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 1.5em;
}
.worksRelated__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.worksRelated__item {
  width: 100%;
  padding: 0 0 1.5rem;
}
.worksRelated__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #333;
  transition: opacity .3s;
}
.worksRelated__link:hover {
  opacity: .7;
}
.worksRelated__pic {
  position: relative;
  width: 120px;
  min-width: 120px;
  padding-top: 90px;
  overflow: hidden;
  background: #f0f1f2;
}
.worksRelated__pic img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.worksRelated__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3em;
  margin-bottom: .3em;
}
.worksRelated__tags .worksTag {
  flex-shrink: 0;
  font-size: 1.0rem;
}
.worksRelated__body {
  flex: 1;
  min-width: 0;
}
.worksRelated__name {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.4;
}

/* 戻るリンク */
.worksBack {
  text-align: center;
  padding: 2rem 0 4rem;
}
.worksBack a {
  font-size: 1.4rem;
  color: #0b63aa;
  text-decoration: none;
}
.worksBack a:hover {
  text-decoration: underline;
}

.works .goback {
  padding-top: 0;
  padding-bottom: 4em;
}

/* =========================== */
/* PC (768px+) */
/* =========================== */
@media screen and (min-width: 768px) {

  .works .pageHeader {
    margin-bottom: 0;
    padding-bottom: 2em;
  }

  /* フィルター */
  .worksFilter {
    padding: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem 1.5rem;
  }
  .worksFilter__row {
    margin-bottom: 0;
  }
  .worksFilter__row:last-child {
    width: 100%;
  }
  .worksFilter__label {
    font-size: 1.4rem;
    margin-bottom: 0;
  }
  .worksFilter__checkboxes {
    width: auto;
  }
  .worksFilter__checkboxes label {
    font-size: 1.4rem;
  }
  .worksFilter__btnSearch,
  .worksFilter__btnReset {
    font-size: 1.4rem;
  }
  .worksFilter__result {
    font-size: 1.4rem;
  }

  /* カード一覧 */
  .worksIndex {
    padding-bottom: 5rem;
  }
  .worksIndex__list {
    gap: 0;
  }
  .worksIndex__item {
    width: 33.333%;
    padding: 0 1rem 2.5rem;
  }
  .worksIndex__pic {
  }
  .worksIndex__body {
    padding: 1.2rem 1.5rem;
  }
  .worksIndex__title {
    font-size: 1.6rem;
  }
  .worksIndex__branch,
  .worksIndex__date {
    font-size: 1.3rem;
  }

  /* CTA */
  .worksCta {
    padding: 4rem 1.5rem;
  }
  .worksCta__text {
    font-size: 1.6rem;
  }
  .worksCta__btn {
    font-size: 1.6rem;
  }
  .worksCta__tel__number {
    font-size: 3rem;
  }

  /* 詳細 */
  .worksDetail__header {
    margin-top: 6rem;
    margin-bottom: 2rem;
  }
  .worksDetail__title {
    font-size: 2.8rem;
  }

  .worksDetail__main {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
  }
  .worksDetail__gallery {
    flex: 0 1 50%;
    margin-bottom: 0;
  }
  .worksDetail__mainImg {
  }
  .worksDetail__info {
    flex: 1;
    margin-bottom: 0;
  }

  .worksDetail__voice {
    padding: 3rem;
    margin-bottom: 4rem;
  }
  .worksDetail__voice__inner {
    flex-direction: row;
    gap: 2rem;
  }
  .worksDetail__voice__photo {
    width: 150px;
    height: 150px;
  }
  .worksDetail__voice__name {
    font-size: 1.6rem;
  }
  .worksDetail__voice__text {
    font-size: 1.6rem;
  }

  .worksDetail__comment {
    padding: 3rem;
    margin-bottom: 4rem;
  }
  .worksDetail__comment__text {
    font-size: 1.6rem;
  }

  /* 関連施工事例 */
  .worksRelated {
    padding: 4rem 0;
  }
  .worksRelated__item {
    width: 25%;
    padding: 0 .8rem 2rem;
  }
  .worksRelated__link {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .worksRelated__pic {
    width: 100%;
    padding-top: 75%;
    margin-bottom: .5em;
  }
  .worksRelated__name {
    font-size: 1.3rem;
  }

  .worksBack {
    padding: 2rem 0 5rem;
  }
  .worksBack a {
    font-size: 1.6rem;
  }
}

/* =========================== */
/* pageNavi (meme-vue pagination) */
/* =========================== */
.worksIndex .pageNavi {
  clear: both;
  padding-top: 3rem;
}
.worksIndex .pageNavi .navilist {
  text-align: center;
  margin: 0;
  padding: 0;
}
.worksIndex .pageNavi .navilist li {
  display: inline-block;
  margin-right: 3px;
}
.worksIndex .pageNavi .navilist li a,
.worksIndex .pageNavi .navilist li span {
  display: block;
  padding: 12px 15px;
  background-color: #f1f1f1;
  border-radius: 40px;
  color: #323232;
  font-size: 1.4rem;
  line-height: 1.0em;
  text-decoration: none;
}
.worksIndex .pageNavi .navilist li a:hover,
.worksIndex .pageNavi .navilist li span {
  text-decoration: none;
  background-color: #db632e;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .worksIndex .pageNavi {
    padding-top: 5rem;
  }
  .worksIndex .pageNavi .navilist li a,
  .worksIndex .pageNavi .navilist li span {
    font-size: 1.6rem;
  }
}
