/* =========================================================
   お知らせ：カテゴリタブ＋一覧の行（トップ・一覧ページ共通）
   ========================================================= */
.gh-news__tabs {
  display: flex;
}

.gh-news__tab {
  flex: 0 0 184px;
  height: 53px;
  padding: 0;
  font-family: inherit;
  font-size: 17.5px;
  letter-spacing: 0.2em;
  color: var(--gh-white);
  background: var(--tab-color);
  border: 0;
  cursor: pointer;
  transition: filter 0.2s ease;
}

/* 一覧ページではタブがリンク（a）になる */
a.gh-news__tab {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.gh-news__tab:hover {
  filter: brightness(1.08);
}

.gh-news__tab[aria-selected="true"],
.gh-news__tab[aria-current="page"] {
  color: var(--tab-color);
  background: var(--gh-white);
}

.gh-news__body {
  padding: 57px 53px 23px;
  background: var(--gh-white);
  border-radius: 0 40px 20px 40px;
}

.gh-news__list {
  border-top: 3px solid var(--gh-cyan);
}

.gh-news__item {
  border-bottom: 1px solid #8fd0e3;
}

.gh-news__item a {
  display: grid;
  grid-template-columns: 132px 1fr 105px 40px;
  align-items: center;
  min-height: 57px;
  padding: 8px 0;
  text-decoration: none;
  color: #3f3f3f;
}

.gh-news__item time {
  padding-left: 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.gh-news__title {
  overflow: hidden;
  padding-right: 24px;
  font-size: 16px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-news__label {
  display: grid;
  place-items: center;
  height: 30px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gh-white);
  background: var(--label-color);
  border-radius: 999px;
}

.gh-news__arrow {
  justify-self: end;
  width: 10px;
  height: 16px;
  margin-right: 6px;
  color: #3f3f3f;
}

.gh-news__empty {
  margin: 0;
  padding: 80px 0;
  font-size: 15px;
  text-align: center;
  border-top: 3px solid var(--gh-cyan);
}

@media (max-width: 1100px) {
  .gh-news__tab {
      flex: 1 1 0;
      font-size: 15px;
      letter-spacing: 0.1em;
    }
}

@media (max-width: 767px) {
  .gh-news__tabs {
      margin-right: calc(var(--gh-gutter) * -1);
      overflow-x: auto;
      scrollbar-width: none;
    }

  .gh-news__tabs::-webkit-scrollbar {
      display: none;
    }

  .gh-news__tab {
      flex: 0 0 104px;
      height: 44px;
      font-size: 14px;
      letter-spacing: 0.1em;
    }

  .gh-news__tab:last-child {
      margin-right: var(--gh-gutter);
    }

  .gh-news__body {
      padding: 24px 18px 20px;
      border-radius: 0 24px 12px 24px;
    }

  .gh-news__item a {
      grid-template-columns: auto 1fr 16px;
      gap: 6px 12px;
      padding: 14px 0;
    }

  .gh-news__item time {
      padding-left: 0;
    }

  .gh-news__label {
      justify-self: start;
      height: 22px;
      padding: 0 14px;
      font-size: 10px;
    }

  .gh-news__title {
      grid-column: 1 / 3;
      grid-row: 2;
      padding-right: 0;
      font-size: 14px;
      white-space: normal;
    }

  .gh-news__arrow {
      grid-column: 3;
      grid-row: 1 / 3;
      margin-right: 0;
    }
}

@media (hover: hover) {
  /* ホバー：タブが下に沈む。下端は動かさず上側を削るので、下の白い枠にははみ出さない */
  .gh-news__tab {
    clip-path: inset(0 0 0 0);
    transition: filter 0.2s ease, clip-path 0.2s ease, padding-top 0.2s ease;
  }

  .gh-news__tab[aria-selected="false"]:hover,
  a.gh-news__tab:not([aria-current]):hover {
    padding-top: 8px;
    filter: brightness(1.12);
    clip-path: inset(6px 0 0 0);
  }

  .gh-news__item a {
      transition: background-color 0.2s ease;
    }

  .gh-news__item a:hover {
      background: var(--gh-pale);
    }

  .gh-news__arrow {
      transition: transform 0.2s ease, color 0.2s ease;
    }

  .gh-news__item a:hover .gh-news__arrow {
      color: var(--gh-cyan);
      transform: translateX(4px);
    }

  .gh-news__item a:hover .gh-news__title {
      color: var(--gh-blue);
    }
}

/* =========================================================
   一覧の上：キーワード検索と「種雄牛から探す」
   ========================================================= */
.gh-archive__tools {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}

.gh-archive__search {
  display: flex;
  gap: 8px;
}

.gh-archive__search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--gh-line);
  border-radius: 999px;
}

.gh-archive__search button {
  flex-shrink: 0;
  height: 44px;
  padding: 0 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--gh-blue);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.gh-archive__bulls {
  background: var(--gh-field);
  border-radius: 12px;
}

.gh-archive__bulls summary {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gh-blue);
  cursor: pointer;
  list-style: none;
}

.gh-archive__bulls summary::-webkit-details-marker {
  display: none;
}

.gh-archive__bulls summary::before {
  content: "＋";
  margin-right: 8px;
}

.gh-archive__bulls[open] summary::before {
  content: "－";
}

.gh-archive__bulls summary span {
  margin-left: 4px;
  font-weight: 400;
  color: var(--gh-sub);
}

.gh-archive__bulls-body {
  padding: 0 18px 18px;
}

.gh-archive__bull-filter {
  width: 100%;
  max-width: 420px;
  height: 40px;
  margin-bottom: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--gh-line);
  border-radius: 8px;
}

.gh-archive__bull-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 260px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.gh-archive__bull-list li::before {
  content: none !important;
}

.gh-archive__bull-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--gh-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--gh-line);
  border-radius: 999px;
}

.gh-archive__bull-list a:hover,
.gh-archive__bull-list a[aria-current="page"] {
  color: #fff;
  background: var(--gh-blue);
  border-color: var(--gh-blue);
}

.gh-archive__bull-list a span {
  font-size: 11px;
  opacity: 0.7;
}

.gh-archive__bull-none {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--gh-sub);
}

@media (max-width: 767px) {
  .gh-archive__search input[type="search"] { font-size: 16px; }
  .gh-archive__search button { padding: 0 16px; }
  .gh-archive__bull-filter { font-size: 16px; }
}
