/* =========================================================
   下層ページ：英字＋日本語の見出し、白いカード
   ========================================================= */
.gh-page-head {
  max-width: var(--gh-container);
  margin: 0 auto;
  padding: 114px var(--gh-gutter) 0;
  color: var(--gh-white);
}

.gh-page-head__en {
  margin: 0;
  font-size: 70px;
  font-weight: 900;
  line-height: 72px;
  letter-spacing: 0.07em;
}

.gh-page-head__ja {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
}

.gh-breadcrumb {
  margin-top: 78px;
  padding-bottom: 34px;
}

.gh-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 40, 90, 0.45);
}

@media (max-width: 767px) {
  .gh-breadcrumb a {
    display: inline-block;
    padding: 8px 0;
  }
}

.gh-breadcrumb__item + .gh-breadcrumb__item::before {
  content: "»";
  margin: 0 6px;
}

.gh-breadcrumb a {
  text-decoration: none;
}

.gh-breadcrumb a:hover {
  text-decoration: underline;
}

.gh-content {
  max-width: var(--gh-container);
  margin: 0 auto;
  padding: 0 var(--gh-gutter) 80px;
}

.gh-card {
  display: block;
  padding: var(--gh-card-pad);
  background: var(--gh-white);
}

/* 本文（SWELL のブロック表示を活かす） */
.gh-entry {
  font-size: 15px;
  line-height: 2;
}

.gh-entry > *:first-child {
  margin-top: 0;
}

/* 採用ページは見出しまわりの色を変える */
.gh-recruit .gh-page-head {
  color: var(--gh-ink);
}

@media (max-width: 767px) {
  .gh-page-head {
    padding-top: 96px;
  }

  .gh-page-head__en {
    font-size: 40px;
    line-height: 1.1;
  }

  .gh-page-head__ja {
    font-size: 22px;
    line-height: 1.5;
  }

  .gh-breadcrumb {
    margin-top: 32px;
    padding-bottom: 16px;
  }

  .gh-content {
    padding-bottom: 48px;
  }
}

/* =========================================================
   記事ページ
   本文は記事ごとの装飾（旧サイトのインラインCSS・VK見出し）を
   活かすため、外枠と前後の要素だけデザインする。
   ========================================================= */
.gh-single .gh-article,
.gh-single .gh-post-nav,
.gh-single .gh-single__back,
.gh-single .gh-related {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

.gh-article__head {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gh-line);
}

.gh-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
  color: var(--gh-sub);
}

.gh-article__meta time {
  margin-right: 4px;
  letter-spacing: 0.05em;
}

.gh-article__cat,
.gh-article__subcat {
  display: inline-grid;
  place-items: center;
  min-width: 96px;
  height: 28px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.gh-article__cat {
  color: var(--gh-white);
  background: var(--label-color, var(--gh-blue));
}

.gh-article__cat:hover {
  opacity: 0.8;
}

.gh-article__subcat {
  color: var(--gh-blue);
  border: 1px solid var(--gh-blue);
}

.gh-article__subcat:hover {
  color: var(--gh-white);
  background: var(--gh-blue);
}

.gh-article__title {
  margin: 16px 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--gh-ink);
}

/* この記事の種雄牛（タグ） */
.gh-article__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 56px;
  padding: 20px 24px;
  background: var(--gh-pale);
  border-radius: 12px;
}

.gh-article__tags-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-blue);
}

.gh-article__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gh-article__tag-list a {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--gh-blue);
  background: var(--gh-white);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gh-article__tag-list a::before {
  content: "#";
  margin-right: 2px;
  color: var(--gh-cyan);
}

.gh-article__tag-list a:hover {
  color: var(--gh-white);
  background: var(--gh-blue);
}

.gh-article__tag-list a:hover::before {
  color: var(--gh-white);
}

/* 前後の記事 */
.gh-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.gh-post-nav a {
  position: relative;
  display: block;
  height: 100%;
  padding: 18px 24px 18px 48px;
  text-decoration: none;
  border: 1px solid var(--gh-line);
  border-radius: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gh-post-nav__item--next a {
  padding: 18px 48px 18px 24px;
  text-align: right;
}

.gh-post-nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--gh-cyan);
  border-left: 2px solid var(--gh-cyan);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.2s ease;
}

.gh-post-nav__item--next a::before {
  right: 20px;
  left: auto;
  transform: translateY(-50%) rotate(135deg);
}

.gh-post-nav a:hover {
  background: var(--gh-pale);
  border-color: var(--gh-cyan);
}

.gh-post-nav__item--prev a:hover::before {
  transform: translate(-3px, -50%) rotate(-45deg);
}

.gh-post-nav__item--next a:hover::before {
  transform: translate(3px, -50%) rotate(135deg);
}

.gh-post-nav__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gh-cyan);
}

.gh-post-nav__title {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gh-single__back {
  margin-top: 40px;
  text-align: center;
}

/* 関連記事 */
.gh-related {
  margin-top: 96px;
}

.gh-related__title {
  margin: 2px 0 28px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--gh-blue);
}

.gh-related__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gh-related__item a {
  display: block;
  text-decoration: none;
}

.gh-related__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--gh-field);
  border-radius: 10px;
}

.gh-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gh-related__thumb img.is-placeholder {
  padding: 18% 22%;
  object-fit: contain;
  opacity: 0.35;
}

.gh-related__item a:hover .gh-related__thumb img {
  transform: scale(1.05);
}

.gh-related__item time {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gh-sub);
}

.gh-related__name {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.gh-related__item a:hover .gh-related__name {
  color: var(--gh-blue);
}

@media (max-width: 767px) {
  .gh-article__head {
    margin-bottom: 32px;
    padding-bottom: 20px;
  }

  .gh-article__title {
    font-size: 20px;
  }

  .gh-article__cat,
  .gh-article__subcat {
    min-width: 0;
    height: 24px;
    font-size: 11px;
  }

  .gh-article__tags {
    margin-top: 40px;
    padding: 16px;
  }

  .gh-post-nav {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .gh-related {
    margin-top: 64px;
  }

  .gh-related__title {
    font-size: 20px;
  }

  .gh-related__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gh-related__item a {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 4px 14px;
    align-items: start;
  }

  .gh-related__thumb {
    grid-row: 1 / 3;
  }

  .gh-related__item time {
    margin-top: 0;
  }
}

/* =========================================================
   記事一覧（タブ・行のデザインは news.css をトップと共用）
   ========================================================= */
.gh-archive__body.is-no-tabs {
  border-radius: 40px 20px 40px 20px;
}

.gh-archive__body {
  padding-top: 48px;
  padding-bottom: 56px;
}

/* 子カテゴリで絞り込み */
.gh-archive__sub {
  margin-bottom: 32px;
}

.gh-archive__sub ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gh-archive__sub a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--gh-blue);
  background: var(--gh-white);
  border: 1.5px solid var(--gh-blue);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gh-archive__count {
  font-size: 11px;
  font-weight: 500;
  color: var(--gh-sub);
  transition: color 0.2s ease;
}

.gh-archive__sub a:hover,
.gh-archive__sub a[aria-current="page"] {
  color: var(--gh-white);
  background: var(--gh-blue);
}

.gh-archive__sub a:hover .gh-archive__count,
.gh-archive__sub a[aria-current="page"] .gh-archive__count {
  color: rgba(255, 255, 255, 0.8);
}

/* 種雄牛（タグ）・検索の見出し */
.gh-archive__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
  padding: 18px 24px;
  background: var(--gh-pale);
  border-radius: 12px;
}

.gh-archive__tag p {
  margin: 0;
  font-size: 15px;
}

.gh-archive__tag strong {
  color: var(--gh-blue);
}

.gh-archive__tag span {
  font-size: 13px;
  color: var(--gh-sub);
}

.gh-archive__tag a {
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-blue);
}

/* ページ送り */
.gh-archive .gh-pagination {
  margin-top: 48px;
}

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

.gh-archive .gh-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--gh-blue);
  border: 1.5px solid var(--gh-line);
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gh-archive .gh-pagination a.page-numbers:hover {
  border-color: var(--gh-blue);
}

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

.gh-archive .gh-pagination .page-numbers.dots {
  min-width: 0;
  border: 0;
}

.gh-archive .gh-pagination .prev::before,
.gh-archive .gh-pagination .next::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateX(2px) rotate(-45deg);
}

.gh-archive .gh-pagination .next::before {
  transform: translateX(-2px) rotate(135deg);
}

@media (max-width: 767px) {
  .gh-archive {
    margin: 0 calc(var(--gh-gutter) * -1);
  }

  .gh-archive .gh-news__tabs {
    margin-right: 0;
    padding-left: var(--gh-gutter);
  }

  .gh-archive__body {
    margin: 0 var(--gh-gutter);
    padding: 24px 18px 32px;
  }

  .gh-archive__sub {
    margin: 0 -18px 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .gh-archive__sub ul {
    flex-wrap: nowrap;
    padding: 0 18px;
  }

  .gh-archive__sub li {
    flex-shrink: 0;
  }

  .gh-archive__sub a {
    padding: 7px 14px;
    font-size: 13px;
  }

  .gh-archive__tag {
    padding: 14px 16px;
  }

  .gh-archive .gh-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
  }
}

/* ---------- 404 ---------- */
.gh-notfound p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.9;
}

p.gh-notfound__lead {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gh-blue);
}

ul.gh-notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}

ul.gh-notfound__links li {
  margin: 0;
}

ul.gh-notfound__links li::before {
  content: none;
}

.gh-notfound__search label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.gh-notfound__search div {
  display: flex;
  gap: 8px;
  max-width: 480px;
}

.gh-notfound__search input {
  flex: 1;
  min-height: 46px;
  padding: 8px 14px;
  font-size: 16px;
  border: 1px solid var(--gh-line);
  border-radius: 6px;
}

.gh-notfound__search button {
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--gh-blue);
  border: 0;
  border-radius: 6px;
}
