/*
Theme Name: landflora
Description: landflora - オリジナルテーマ
Author: 管理人
Version: 1.0
*/

/* Works templates: kept under Works-specific ancestors to avoid affecting other pages. */
.works_card_noimage {
  display: block;
  width: 100%;
  height: 100%;
  background: #f5f1e8;
}

.works_page .works_card_image {
  aspect-ratio: 148 / 95;
}

.works_detail_page .works_related_grid .works_card_image {
  aspect-ratio: 148 / 95;
}

.works_pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
}

.works_pagination {
  margin-bottom: 150px;
}

.works_pagination a,
.works_pagination span {
  color: #4b4242;
  text-decoration: none;
}

.works_pagination .current {
  color: #075b53;
  font-weight: 700;
}

.works_empty {
  padding: 60px 0 120px;
  text-align: center;
}

.works_page .works_archive:has(.works_grid):not(:has(.works_pagination)) {
  margin-bottom: 150px;
}

.news_pagination > .page-numbers {
  color: #221815;
  text-decoration: none;
  font-family: lato, sans-serif;
  font-size: 16px;
  padding: 4px 20px;
}

.news_page .news_item time {
  font-family: lato, sans-serif;
}

.news_pagination > span.current {
  position: relative;
}

.news_pagination > span.current::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  width: 42px;
  height: 2px;
  margin: 0 auto;
  background: #a19490;
}

.news_pagination > .prev,
.news_pagination > .next {
  display: flex;
  align-items: center;
}

.news_empty {
  padding: 40px 0 180px;
  text-align: center;
}

.news_page .news_archive:has(.news_list):not(:has(.news_pagination)) {
  margin-bottom: 180px;
}

.news_detail_eyecatch {
  margin: 0 0 36px;
}

.news_detail_eyecatch img {
  display: block;
  width: 100%;
  height: auto;
}

.works_related_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

@media screen and (max-width: 1024px) {
  .news_pagination > .page-numbers {
    padding: 4px 15px;
    font-size: 15px;
  }

  .news_pagination > span.current::after {
    bottom: -8px;
    width: 38px;
  }

  .news_empty {
    padding-bottom: 62px;
  }

  .news_page .news_archive:has(.news_list):not(:has(.news_pagination)) {
    margin-bottom: 0;
  }

  .news_detail_eyecatch {
    margin-bottom: 24px;
  }

  .works_pagination .page-numbers {
    gap: 15px;
    margin-top: 58px;
  }

  .works_pagination {
    margin-bottom: 0;
  }

  .works_page .works_archive:has(.works_grid):not(:has(.works_pagination)) {
    margin-bottom: 0;
  }

  .works_related_grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-right: 25px;
  }
}

/* 404 page */
.not_found_page {
  padding-top: 40px;
}

.not_found_content {
  width: calc(100% - 80px);
  max-width: 1126px;
  margin: 120px auto 180px;
  text-align: center;
}

.not_found_content h1 {
  margin: 0 0 36px;
  color: #075b53;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.not_found_content p {
  margin: 0;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.06em;
}

.not_found_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 67px;
  margin: 60px auto 0;
  border: 1px solid #075b53;
  border-radius: 5px;
  background: #075b53;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.not_found_button:hover {
  background: #fff;
  color: #075b53;
}

@media screen and (max-width: 1024px) {
  .not_found_page {
    padding-top: 20px;
  }

  .not_found_content {
    width: calc(100% - 50px);
    margin: 75px auto 100px;
  }

  .not_found_content h1 {
    margin-bottom: 28px;
    font-size: 22px;
    line-height: 1.7;
  }

  .not_found_content p {
    font-size: 14px;
    line-height: 2;
  }

  .not_found_content p br {
    display: none;
  }

  .not_found_button {
    width: 229px;
    margin-top: 45px;
  }
}
