@charset "UTF-8";

/*---------------------
  news一覧ページ用
---------------------*/
.news-card {
  padding: 28px 40px 0 40px;
}
  .news-card__title {
    margin-bottom: 65px;
  }
  .news-card__meta {
    display: flex;
    gap: 12px;
    margin: 30px 0 0 0;
    align-items: center;
  }
    .news-card__date {
      display: inline-block;
      font-family: var(--font-family-en);
      color: #99D2E2;
      font-size: 20px;
      line-height: 1.0em;
      margin-top: 4px;
      letter-spacing: 0.08em;
    }
    .news-card__category {
      display: inline-block;
      background-color:var(--color-primary);
      color: #fff;
      padding: 0.30em 1.0em 0.40em 1.0em;
      font-size: 14px;
      line-height: 1.0em;
      margin-left: 16px;
    }
    .news-card__text {
      padding: 15px 80px 25px 0;
      border-bottom: solid 1px #D7DDE4;
      position: relative;
    }
      .news-card__text::before {
        content: '';
        width: 0.90em;
        height: 1.5px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 10px;
        background: var(--color-primary);
      }
      .news-card__text::after {
        content: '';
        width: 0.40em;
        height: 0.40em;
        border: 1.5px solid var(--color-primary);
        border-left: 0;
        border-bottom: 0;
        transform: rotate(45deg);
        transform-origin: top right;
        position: absolute;
        top: 50%;
        right: 10px;
      }
      .news-card__text a{
        color: var(--color-font);
        display: -webkit-box !important; /* 強制適用 */
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;

        line-height: 1.5em;  /* 行間を固定 */
        max-height: 3em;     /* line-height x 2行 */
        white-space: normal;  /* nowrapを解除 */
      }
  .news-card__btn {
    margin-top: 60px;
    text-align: right;
  }

@media screen and (max-width: 768px) {
  .news-card {
    padding: 30px 20px 0 20px;
  }
    .news-card__title {
      margin-bottom: 40px;
    }
    .news-card__meta {
      gap: 12px;
      margin: 25px 0 0 0;
    }
      .news-card__date {
        font-size: 16px;
        margin-top: 4px;
      }
      .news-card__category {
        padding: 0.30em 1.0em 0.40em 1.0em;
        font-size: 12px;
      }
      .news-card__text {
        padding: 10px 25px 15px 0;
      }
        .news-card__text::before {
          width: 0.80em;
          height: 1.5px;
          top: 50%;
          transform: translateY(-50%);
          right: 0;
        }
        .news-card__text::after {
          width: 0.34em;
          height: 0.34em;
          top: 50%;
          right: 0;
        }
    .news-card__btn {
      margin-top: 35px;
      text-align: right;
    }
}


/*---------------------
  news個別ページ用
---------------------*/
.news-head {
  padding: 0 0 20px 0;
}
  .news-head__title {
    margin-bottom: 65px;
  }
  .news-head__meta {
    display: flex;
    gap: 12px;
    margin: 30px 0 0 0;
    align-items: center;
  }
    .news-head__date {
      display: inline-block;
      font-family: var(--font-family-en);
      color: #99D2E2;
      font-size: 20px;
      line-height: 1.0em;
      margin-top: 4px;
      letter-spacing: 0.08em;
    }
    .news-head__category {
      display: inline-block;
      background-color:var(--color-primary);
      color: #fff;
      padding: 0.30em 1.0em 0.40em 1.0em;
      font-size: 14px;
      line-height: 1.0em;
      margin-left: 16px;
    }
    .news-head__text {
      padding: 15px 80px 25px 0;
      border-bottom: solid 1px #D7DDE4;
      position: relative;
    }
      .news-head__text::before {
        content: '';
        width: 0.90em;
        height: 1.5px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 10px;
        background: var(--color-primary);
      }
      .news-head__text::after {
        content: '';
        width: 0.40em;
        height: 0.40em;
        border: 1.5px solid var(--color-primary);
        border-left: 0;
        border-bottom: 0;
        transform: rotate(45deg);
        transform-origin: top right;
        position: absolute;
        top: 50%;
        right: 10px;
      }
      .news-head__text a{
        color: var(--color-font);
        display: -webkit-box !important; /* 強制適用 */
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;

        line-height: 1.5em;  /* 行間を固定 */
        max-height: 3em;     /* line-height x 2行 */
        white-space: normal;  /* nowrapを解除 */
      }
  .news-head__btn {
    margin-top: 60px;
    text-align: right;
  }

.news__btn-wrap {
  text-align: center;
  margin-top: 60px;
}


@media screen and (max-width: 768px) {
  .news-head {
    padding: 0 0 30px 0;
  }
    .news-head__title {
      margin-bottom: 40px;
    }
    .news-head__meta {
      gap: 12px;
      margin: 25px 0 0 0;
    }
      .news-head__date {
        font-size: 16px;
        margin-top: 4px;
      }
      .news-head__category {
        padding: 0.30em 1.0em 0.40em 1.0em;
        font-size: 12px;
      }
      .news-head__text {
        padding: 10px 25px 15px 0;
      }
        .news-head__text::before {
          width: 0.80em;
          height: 1.5px;
          top: 50%;
          transform: translateY(-50%);
          right: 0;
        }
        .news-head__text::after {
          width: 0.34em;
          height: 0.34em;
          top: 50%;
          right: 0;
        }
    .news-head__btn {
      margin-top: 35px;
      text-align: right;
    }
    .news__btn-wrap {
      margin-top: 40px;
    }
}

/* ページネーション全体 */
.pagination {
  text-align: center;
  margin: 40px 0;
}

@media screen and (min-width: 768px) {
  .pagination {
  margin: 80px 0;
}
}

.pagination__list {
  display: inline-flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

/* ----- 数字部分 ----- */
/* 数字：枠なし、背景なし、色だけ */
.page-numbers--number {
  display: inline-block;
  padding: 4px 6px;
  color: #919EAE;
  text-align: center;
  font-family: var(--font-family-en);
  font-size: 24px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: 2.4px;
  text-decoration: none;
}

/* 現在ページは太字 */
.page-numbers--current {
  color: #074684;
  text-align: center;
  font-family: var(--font-family-en);
  font-size: 24px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: 2.4px;
}

/* ----- 矢印（prev / next）丸囲み ----- */
.page-numbers--prev,
.page-numbers--next {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: #004397;
  color: transparent !important; /* 元のテキストを非表示 */
  border-radius: 50%;
  text-decoration: none;
  font-size: 0;
  font-weight: bold;
  position: relative;
}

.page-numbers--prev::before,
.page-numbers--next::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.page-numbers--prev::before {
  background-image: url('https://www.yamasandenki.co.jp/staging/wp-content/uploads/2025/12/si_arrow-left-line.png');
}

.page-numbers--next::before {
  background-image: url('https://www.yamasandenki.co.jp/staging/wp-content/uploads/2025/12/si_arrow-right-line.png');
}

.page-numbers--prev:hover,
.page-numbers--next:hover {
  opacity: 0.8;
}

