/* --------------------------------------
 * works.css
 * 施工事例ページ
 * archive-works.php / taxonomy-works_category.php / single-works.php
 * -------------------------------------- */


/* ==================================================
 * 共通
 * ================================================== */

.works-archive,
.works-single {
  position: relative;
  display: block;
  width: 100%;
  overflow: visible;
  background: #eee;
  color: #333;
  clear: both;
}

.works-archive .inner,
.works-single .inner,
.works-related .inner {
  max-width: 1024px;
  width: 90%;
  margin: 0 auto;
}

.works-archive a,
.works-single a,
.works-related a {
  transition: all 0.3s;
}

.works-archive img,
.works-single img,
.works-related img {
  display: block;
}

.works-archive::after,
.works-single::after,
.works-archive-content::after,
.works-archive-list::after,
.works-single-content::after,
.works-single-panel::after,
.works-single-body::after,
.works-related::after,
.works-related-panel::after,
.works-related-list::after {
  content: "";
  display: block;
  clear: both;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .works-archive .inner,
  .works-single .inner,
  .works-related .inner {
    width: 94%;
  }
}

@media screen and (max-width: 767px) {
  .works-archive .inner,
  .works-single .inner,
  .works-related .inner {
    width: 94%;
  }
}


/* ==================================================
 * 共通パンくず
 * ================================================== */

.works-breadcrumb-list {
  width: 90%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px 0 20px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #666;
  list-style: none;
}

.works-breadcrumb-list li {
  display: inline;
}

.works-breadcrumb-list a {
  color: #e60012;
}

.works-breadcrumb-list a:hover {
  color: rgba(230, 0, 18, 0.5);
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .works-breadcrumb-list {
    width: 94%;
    padding: 20px 0 18px;
  }
}

@media screen and (max-width: 767px) {
  .works-breadcrumb-list {
    width: 94%;
    padding: 14px 0 16px;
    font-size: 0.75rem;
  }
}


/* ==================================================
 * 共通カード
 * archive一覧 / single関連
 * ================================================== */

.works-card {
  display: block;
  background: #fff;
  overflow: hidden;
  float: none;
}

.works-card__link {
  display: block;
  height: 100%;
  color: #333;
}

.works-card__link:hover {
  color: #333;
  opacity: 0.8;
}

.works-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.works-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
}

.works-card__link:hover .works-card__img {
  transform: scale(1.05);
}

.works-card__body {
  padding: 22px;
  text-align: left;
}

.works-card__category {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.works-card__category span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  padding: 6px 8px;
  background: #e60012;
}

.works-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
  color: #333;
  margin-bottom: 14px;
}

.works-card__area {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e60012;
  line-height: 1.5;
  margin-bottom: 12px;
}

.works-card__area i {
  font-size: 0.85rem;
  line-height: 1;
}

.works-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.works-card__tags span {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  color: #595757;
  padding: 6px 8px;
  background: #eee;
}

@media screen and (max-width: 767px) {
  .works-card__body {
    padding: 12px;
  }

  .works-card__category {
    gap: 4px;
    margin-bottom: 8px;
  }

  .works-card__category span {
    font-size: 0.62rem;
    padding: 5px 6px;
  }

  .works-card__title {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .works-card__area {
    gap: 4px;
    font-size: 0.72rem;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .works-card__area i {
    font-size: 0.72rem;
  }

  .works-card__tags {
    gap: 4px;
  }

  .works-card__tags span {
    font-size: 0.65rem;
    padding: 5px 6px;
  }
}


/* ==================================================
 * archive-works.php / taxonomy-works_category.php
 * ================================================== */

.works-archive-lead {
  width: 100%;
  padding: 0 0 40px;
  background: #eee;
  text-align: center;
}

.works-archive-lead h2 {
  position: relative;
  display: inline-block;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.works-archive-lead h2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 72px;
  height: 3px;
  background: #e60012;
  transform: translateX(-50%);
}

.works-archive-lead p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  color: #333;
}


/* ==================================================
 * 施工内容から探す
 * ================================================== */

.works-category-panel {
  width: 100%;
  padding: 64px 0;
  background: #fff;
}

.works-category-panel__heading {
  margin-bottom: 34px;
}

.works-category-panel__heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
}

.works-category-panel__heading h2 i {
  display: inline-block;
  font-size: 1.6rem;
  line-height: 1;
  color: #e60012;
}

.works-category-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 18px;
}

.works-category-panel__item {
  width: calc((100% - 90px) / 6);
}

.works-category-panel__link {
  display: block;
  color: #333;
}

.works-category-panel__link:hover {
  color: #e60012;
  opacity: 0.85;
}

.works-category-panel__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  overflow: hidden;
  background: #eee;
}

.works-category-panel__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1;
  transition: all 0.3s;
}

.works-category-panel__item.is-current .works-category-panel__image::before {
  background: rgba(0, 0, 0, 0.42);
}

.works-category-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.45s;
}

.works-category-panel__link:hover .works-category-panel__image img {
  transform: scale(1.06);
}

.works-category-panel__title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  color: #333;
}

.works-category-panel__item.is-current .works-category-panel__title {
  color: #e60012;
}

.works-category-panel__more {
  margin-top: 44px;
  text-align: center;
}

.works-category-panel__more a {
  display: inline-block;
  min-width: 280px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e60012;
  line-height: 1;
  padding: 17px 32px;
  background: #fff;
  border: 1px solid #e60012;
}

.works-category-panel__more a:hover {
  color: #fff;
  background: #e60012;
}


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

.works-archive-content {
  position: relative;
  display: block;
  width: 100%;
  padding: 64px 0;
  background: #eee;
  clear: both;
}

.works-archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.works-archive-list .works-card {
  width: calc((100% - 64px) / 3);
}

.works-archive-pagination {
  margin-top: 56px;
  text-align: center;
}

.works-archive-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.works-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e60012;
  background: #fff;
  border: 1px solid #e60012;
}

.works-archive-pagination .page-numbers.current,
.works-archive-pagination .page-numbers:hover {
  color: #fff;
  background: #e60012;
}

.works-archive-empty {
  padding: 48px;
  background: #fff;
  text-align: center;
}

.works-archive-empty p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}


/* ==================================================
 * archive tablet
 * ================================================== */

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .works-archive-lead {
    padding: 0 0 36px;
  }

  .works-archive-lead h2 {
    font-size: 1.6rem;
  }

  .works-category-panel {
    padding: 56px 0;
  }

  .works-category-panel__heading h2 {
    font-size: 1.55rem;
  }

  .works-category-panel__list {
    gap: 28px 18px;
  }

  .works-category-panel__item {
    width: calc((100% - 36px) / 3);
  }

  .works-archive-content {
    padding: 56px 0;
  }

  .works-archive-list {
    gap: 32px;
  }

  .works-archive-list .works-card {
    width: calc((100% - 32px) / 2);
  }
}


/* ==================================================
 * archive smartphone
 * ================================================== */

@media screen and (max-width: 767px) {
  .works-archive-lead {
    padding: 0 0 30px;
    text-align: left;
  }

  .works-archive-lead h2 {
    font-size: 1.25rem;
    padding-bottom: 16px;
    margin-bottom: 22px;
  }

  .works-archive-lead h2::before {
    left: 0;
    width: 48px;
    transform: none;
  }

  .works-archive-lead p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .works-category-panel {
    padding: 42px 0;
  }

  .works-category-panel__heading {
    margin-bottom: 24px;
  }

  .works-category-panel__heading h2 {
    gap: 10px;
    font-size: 1.25rem;
  }

  .works-category-panel__heading h2 i {
    font-size: 1.15rem;
  }

  .works-category-panel__list {
    gap: 18px 10px;
  }

  .works-category-panel__item {
    width: calc((100% - 20px) / 3);
  }

  .works-category-panel__image {
    margin-bottom: 8px;
  }

  .works-category-panel__title {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .works-category-panel__more {
    margin-top: 32px;
  }

  .works-category-panel__more a {
    width: 100%;
    min-width: 0;
    font-size: 0.88rem;
    padding: 16px 20px;
  }

  .works-archive-content {
    padding: 48px 0;
  }

  .works-archive-list {
    gap: 16px;
  }

  .works-archive-list .works-card {
    width: calc((100% - 16px) / 2);
  }

  .works-archive-pagination {
    margin-top: 40px;
  }

  .works-archive-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 0.78rem;
    padding: 0 10px;
  }

  .works-archive-empty {
    padding: 32px 20px;
  }

  .works-archive-empty p {
    font-size: 0.9rem;
  }
}


/* ==================================================
 * single-works.php
 * ================================================== */

.works-single-hero {
  position: relative;
  width: 100%;
  padding: 0 0 32px;
  background: #eee;
  overflow: hidden;
}

.works-single-hero .inner {
  position: relative;
  z-index: 1;
  text-align: left;
}

.works-single-hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
}

.works-single-hero-category {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  list-style: none;
  margin-top: 24px;
}

.works-single-hero-category li {
  line-height: 1;
}

.works-single-hero-category a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  padding: 8px 14px;
  background: #e60012;
}

.works-single-hero-category a:hover {
  color: #fff;
  background: #595757;
}

.works-single-content {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 56px;
  background: #eee;
  clear: both;
}

.works-single-panel {
  position: relative;
  display: block;
  width: 100%;
  padding: 48px;
  background: #fff;
  text-align: left;
  clear: both;
}

.works-slider {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 48px;
  clear: both;
}

.works-slider-main {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 16px;
  background: #eee;
  clear: both;
}

.works-slider-main__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
  float: none;
}

.works-slider-main__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-slider-thumb {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  clear: both;
}

.works-slider-thumb__item {
  display: block;
  flex: 0 0 calc((100% - 72px) / 10);
  width: calc((100% - 72px) / 10);
  padding: 0;
  cursor: pointer;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  float: none;
}

.works-slider-thumb__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid transparent;
  opacity: 0.5;
  transition: all 0.3s;
}

.works-slider-thumb__item:hover .works-slider-thumb__image,
.works-slider-thumb__item.is-current .works-slider-thumb__image {
  border-color: #e60012;
  opacity: 1;
}

.works-slider .slick-arrow {
  z-index: 5;
  width: 48px;
  height: 48px;
}

.works-slider .slick-prev {
  left: 16px;
}

.works-slider .slick-next {
  right: 16px;
}

.works-slider .slick-prev::before,
.works-slider .slick-next::before {
  font-size: 48px;
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.works-single-summary {
  display: block;
  width: 100%;
  margin-bottom: 48px;
  padding: 26px 32px;
  background: #f7f7f7;
  clear: both;
}

.works-single-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.works-single-meta__item {
  position: relative;
  display: flex;
  align-items: center;
  width: 33.333%;
  padding: 0 24px;
  background: transparent;
}

.works-single-meta__item:first-child {
  padding-left: 0;
}

.works-single-meta__item:last-child {
  padding-right: 0;
}

.works-single-meta__item + .works-single-meta__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 32px;
  background: #ddd;
  transform: translateY(-50%);
}

.works-single-meta__item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  margin: 0 16px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: #e60012;
  white-space: nowrap;
}

.works-single-meta__item dt i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  min-width: 1.25em;
  font-size: 1.05rem;
  line-height: 1;
  color: #e60012;
}

.works-single-meta__item dd {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: #333;
}

.works-single-body {
  display: block;
  width: 100%;
  clear: both;
}

.works-single-lead {
  position: relative;
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.9;
  text-align: left;
  padding: 0;
  margin-bottom: 32px;
  color: #333;
  clear: both;
}

.works-single-body__text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  color: #333;
  text-align: left;
}


/* ==================================================
 * 関連する施工事例
 * ================================================== */

.works-related {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 64px;
  background: #eee;
  clear: both;
}

.works-related-panel {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
}

.works-related-heading {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

.works-related-heading__en {
  font-family: "Lato", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: #e60012;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.works-related-heading__title {
  position: relative;
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.works-related-heading__title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 64px;
  height: 3px;
  background: #e60012;
  transform: translateX(-50%);
}

.works-related-heading__lead {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
}

.works-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.works-related-list .works-card {
  width: calc((100% - 96px) / 4);
}

.works-related-more {
  text-align: center;
  margin-top: 48px;
}

.works-related-more a {
  display: inline-block;
  min-width: 260px;
  font-size: 1rem;
  font-weight: 700;
  color: #e60012;
  line-height: 1;
  padding: 18px 32px;
  background: #fff;
  border: 1px solid #e60012;
}

.works-related-more a:hover {
  color: #fff;
  background: #595757;
  border-color: #595757;
}


/* ==================================================
 * single tablet
 * ================================================== */

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .works-single-hero {
    padding-bottom: 28px;
  }

  .works-single-hero__title {
    font-size: 1.8rem;
  }

  .works-single-hero-category {
    margin-top: 20px;
  }

  .works-single-content {
    padding-bottom: 48px;
  }

  .works-single-panel {
    padding: 40px;
  }

  .works-slider {
    margin-bottom: 40px;
  }

  .works-single-summary {
    margin-bottom: 40px;
    padding: 24px 28px;
  }

  .works-single-meta {
    display: block;
  }

  .works-single-meta__item {
    width: 100%;
    padding: 0;
    margin-bottom: 14px;
  }

  .works-single-meta__item:last-child {
    margin-bottom: 0;
  }

  .works-single-meta__item + .works-single-meta__item::before {
    display: none;
  }

  .works-single-meta__item dt {
    min-width: 112px;
    font-size: 0.85rem;
  }

  .works-single-meta__item dd {
    font-size: 0.95rem;
  }

  .works-single-lead {
    font-size: 1.2rem;
    margin-bottom: 28px;
  }

  .works-related {
    padding-bottom: 56px;
  }

  .works-related-heading__title {
    font-size: 1.55rem;
  }

  .works-related-list .works-card {
    width: calc((100% - 32px) / 2);
  }
}


/* ==================================================
 * single smartphone
 * ================================================== */

@media screen and (max-width: 767px) {
  .works-single-hero {
    padding-bottom: 24px;
  }

  .works-single-hero__title {
    font-size: 1.35rem;
    line-height: 1.6;
  }

  .works-single-hero-category {
    gap: 6px;
    margin-top: 16px;
  }

  .works-single-hero-category a {
    font-size: 0.75rem;
    padding: 7px 10px;
  }

  .works-single-content {
    padding-bottom: 40px;
  }

  .works-single-panel {
    padding: 20px;
  }

  .works-slider {
    margin-bottom: 32px;
  }

  .works-slider-main__item {
    aspect-ratio: 4 / 3;
  }

  .works-slider-thumb {
    gap: 6px;
  }

  .works-slider-thumb__item {
    flex: 0 0 calc((100% - 24px) / 5);
    width: calc((100% - 24px) / 5);
  }

  .works-slider-thumb__image {
    border-width: 2px;
  }

  .works-slider .slick-arrow {
    width: 32px;
    height: 32px;
  }

  .works-slider .slick-prev {
    left: 8px;
  }

  .works-slider .slick-next {
    right: 8px;
  }

  .works-slider .slick-prev::before,
  .works-slider .slick-next::before {
    font-size: 32px;
  }

  .works-single-summary {
    margin-bottom: 32px;
    padding: 18px 20px;
  }

  .works-single-meta {
    display: block;
  }

  .works-single-meta__item {
    width: 100%;
    padding: 0 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
  }

  .works-single-meta__item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  .works-single-meta__item + .works-single-meta__item::before {
    display: none;
  }

  .works-single-meta__item dt {
    min-width: 96px;
    margin-right: 12px;
    gap: 6px;
    font-size: 0.8rem;
  }

  .works-single-meta__item dt i {
    font-size: 0.95rem;
  }

  .works-single-meta__item dd {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .works-single-lead {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
  }

  .works-single-body__text {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .works-related {
    padding-bottom: 48px;
  }

  .works-related-heading {
    margin-bottom: 32px;
  }

  .works-related-heading__en {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .works-related-heading__title {
    font-size: 1.2rem;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }

  .works-related-heading__title::before {
    width: 48px;
  }

  .works-related-heading__lead {
    text-align: left;
    font-size: 0.85rem;
  }

  .works-related-list {
    gap: 16px;
  }

  .works-related-list .works-card {
    width: calc((100% - 16px) / 2);
  }

  .works-related-more {
    margin-top: 32px;
  }

  .works-related-more a {
    width: 100%;
    min-width: 0;
    font-size: 0.9rem;
    padding: 16px 24px;
  }
}