/* カテゴリラベル */
.gh-label {
  display: inline-block;
  min-width: 104px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  color: var(--gh-white) !important;
  background: var(--gh-blue);
  border-radius: 999px;
}

/* 丸ボタン（右に矢印の丸） */
.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 196px;
  min-height: 37px;
  padding: 4px 5px 4px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  color: var(--gh-white);
  background: var(--gh-ink);
  border-radius: 999px;
}

.gh-btn::after {
  content: "";
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  background: var(--gh-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M7 13.5h12M14 8.5l5 5-5 5' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

/* ホバー：白黒が反転し、矢印の丸が右へ動く */
.gh-btn {
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 0 0 1.5px var(--gh-ink);
}

.gh-btn:hover,
.gh-btn:focus-visible {
  color: var(--gh-ink);
  background: var(--gh-white);
}

.gh-btn:hover::after,
.gh-btn:focus-visible::after {
  background-color: var(--gh-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M7 13.5h12M14 8.5l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  transform: translateX(4px);
}

.gh-btn--white {
  color: var(--gh-ink);
  background: var(--gh-white);
  box-shadow: inset 0 0 0 1.5px var(--gh-white);
}

.gh-btn--white:hover,
.gh-btn--white:focus-visible {
  color: var(--gh-white);
  background: var(--gh-ink);
  box-shadow: inset 0 0 0 1.5px var(--gh-white);
}

.gh-btn--white:hover::after,
.gh-btn--white:focus-visible::after {
  background-color: var(--gh-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M7 13.5h12M14 8.5l5 5-5 5' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E");
}

.gh-btn--white::after {
  background-color: var(--gh-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M7 13.5h12M14 8.5l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.gh-btn--navy {
  background: var(--gh-navy);
  box-shadow: inset 0 0 0 1.5px var(--gh-navy);
}

.gh-btn--navy::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M7 13.5h12M14 8.5l5 5-5 5' fill='none' stroke='%232e3a54' stroke-width='2'/%3E%3C/svg%3E");
}

.gh-btn--navy:hover,
.gh-btn--navy:focus-visible {
  color: var(--gh-navy);
  background: var(--gh-white);
}

.gh-btn--navy:hover::after,
.gh-btn--navy:focus-visible::after {
  background-color: var(--gh-navy);
}

/* 読み上げ専用 */
.gh-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 記事一覧 */
.gh-news-list__item {
  border-bottom: 1px solid var(--gh-line);
}

.gh-news-list__item a {
  display: grid;
  grid-template-columns: 96px auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 8px;
  text-decoration: none;
}

.gh-news-list__item time {
  font-size: 14px;
  color: var(--gh-sub);
}

.gh-news-list__title {
  font-size: 15px;
}

.gh-news-list__item a:hover .gh-news-list__title {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .gh-news-list__item a {
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    padding: 16px 0;
  }

  .gh-news-list__title {
    grid-column: 1 / -1;
  }
}

/* ページ送り */
.gh-pagination {
  margin-top: 40px;
  text-align: center;
}

.gh-pagination .nav-links {
  display: inline-flex;
  gap: 8px;
}

.gh-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--gh-line);
  border-radius: 999px;
}

.gh-pagination .page-numbers.current {
  color: var(--gh-white);
  background: var(--gh-blue);
  border-color: var(--gh-blue);
}

.gh-empty {
  margin: 0;
  text-align: center;
}

/* 新着の印（NEW）※公開から7日以内の記事に自動で付く（inc/helpers.php gh_new_badge） */
.gh-new-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  font-family: var(--gh-font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #fff;
  vertical-align: 0.1em;
  background: #e8500a;
  border-radius: 3px;
}
