/* =========================================================
   ブロック用パーツ（下層ページ本文・エディタ共通）
   SWELL の .post_content 指定より強くするため、
   ブロックのクラス＋スタイルのクラスを重ねて指定する。
   ========================================================= */
html:has(.gh-sub) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.gh-sub) {
    scroll-behavior: auto;
  }
}

/* ---------------------------------------------------------
   セクション（グループ：スタイル「セクション」）
   --------------------------------------------------------- */
.wp-block-group.is-style-gh-sec {
  margin-top: 120px;
  margin-bottom: 0;
  scroll-margin-top: 32px;
}

/* ページ先頭のセクションは上の余白なし */
.gh-entry > .wp-block-group.is-style-gh-sec:first-child {
  margin-top: 0;
}

/* クラシックテーマでは .wp-block-group__inner-container が挟まるので両方に当てる */
.wp-block-group.is-style-gh-sec > *,
.wp-block-group.is-style-gh-sec > .wp-block-group__inner-container > * {
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-group.is-style-gh-sec > * + *,
.wp-block-group.is-style-gh-sec > .wp-block-group__inner-container > * + * {
  margin-top: 40px;
}

/* 英字ラベル＋見出し */
p.gh-sec-en {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 17px;
  letter-spacing: 0.08em;
  color: var(--gh-cyan);
}

.wp-block-heading.gh-sec-title {
  margin: 2px 0 0;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 40px;
  color: var(--gh-blue);
  background: none;
  border: 0;
}

.wp-block-heading.gh-sec-title::before,
.wp-block-heading.gh-sec-title::after {
  content: none;
}

.wp-block-group.is-style-gh-sec p.gh-sec-en + .gh-sec-title {
  margin-top: 2px;
}

/* ---------------------------------------------------------
   ページ内目次（リスト：スタイル「ページ内目次」）
   --------------------------------------------------------- */
.wp-block-list.is-style-gh-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.wp-block-list.is-style-gh-toc > li {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.wp-block-list.is-style-gh-toc > li::before {
  content: none;
}

.wp-block-list.is-style-gh-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 20px;
  font-size: 15px;
  font-weight: 700;
  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.25s ease, color 0.25s ease;
}

.wp-block-list.is-style-gh-toc a::after {
  content: "↓";
  font-size: 14px;
  color: var(--gh-cyan);
  transition: transform 0.25s ease, color 0.25s ease;
}

.wp-block-list.is-style-gh-toc a:hover,
.wp-block-list.is-style-gh-toc a:focus-visible {
  color: var(--gh-white);
  background: var(--gh-blue);
}

.wp-block-list.is-style-gh-toc a:hover::after,
.wp-block-list.is-style-gh-toc a:focus-visible::after {
  color: var(--gh-white);
  transform: translateY(3px);
}

/* ---------------------------------------------------------
   番号つきボックス（リスト：スタイル「番号つきボックス」）
   --------------------------------------------------------- */
.wp-block-list.is-style-gh-num {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  counter-reset: gh-num;
}

.wp-block-list.is-style-gh-num > li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  margin: 0;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  background: var(--gh-pale);
  border-radius: 12px;
  counter-increment: gh-num;
}

.wp-block-list.is-style-gh-num > li::before {
  content: counter(gh-num, decimal-leading-zero);
  position: static;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 15px;
  font-weight: 900;
  color: var(--gh-white);
  background: var(--gh-blue);
  border-radius: 50%;
}

/* ---------------------------------------------------------
   見出し付きの表／沿革（テーブル：スタイル）
   1列目が見出し。沿革は1列目の太字が元号、改行後が西暦。
   --------------------------------------------------------- */
.wp-block-table.is-style-gh-table,
.wp-block-table.is-style-gh-history {
  /* SWELL は1列目の幅をこの変数で決めている */
  --swl-cell1-width: 212px;
  margin-bottom: 0;
  overflow: visible;
}

.wp-block-table.is-style-gh-table table,
.wp-block-table.is-style-gh-history table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--gh-line);
  table-layout: fixed;
}

.wp-block-table.is-style-gh-table td,
.wp-block-table.is-style-gh-table th,
.wp-block-table.is-style-gh-history td,
.wp-block-table.is-style-gh-history th {
  padding: 20px 0;
  font-size: 15px;
  line-height: 28px;
  text-align: left;
  vertical-align: top;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gh-line);
}

.wp-block-table.is-style-gh-table tr > :first-child,
.wp-block-table.is-style-gh-history tr > :first-child {
  width: 212px;
  padding-right: 32px;
  font-weight: 700;
  color: var(--gh-blue);
}

.wp-block-table.is-style-gh-history tr > :first-child {
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--gh-sub);
}

.wp-block-table.is-style-gh-history tr > :first-child strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--gh-blue);
}

.wp-block-table.is-style-gh-history tr > :first-child br {
  display: none;
}

/* ---------------------------------------------------------
   写真＋文章（カラム：クラス gh-message）
   --------------------------------------------------------- */
.gh-entry .wp-block-columns.gh-message,
.editor-styles-wrapper .wp-block-columns.gh-message {
  /* SWELL は gap: var(--wp-column-gap) !important なので変数で指定 */
  --wp-column-gap: 64px;
  align-items: flex-start;
  margin-bottom: 0;
}

.wp-block-columns.gh-message > .wp-block-column > * {
  margin-top: 0;
  margin-bottom: 0;
}

.gh-message .wp-block-image img {
  width: 100%;
  aspect-ratio: 340 / 409;
  object-fit: cover;
  border-radius: 16px;
}

.wp-block-heading.gh-message__catch {
  margin: 0;
  padding: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  background: none;
  border: 0;
}

.wp-block-heading.gh-message__catch::before,
.wp-block-heading.gh-message__catch::after {
  content: none;
}

p.gh-message__lead {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--gh-blue);
}

.gh-message .wp-block-column > p {
  font-size: 15px;
  line-height: 30px;
}

.gh-message .wp-block-column > * + * {
  margin-top: 24px;
}

.gh-message .wp-block-column > p + p:not(.gh-message__sign) {
  margin-top: 15px;
}

p.gh-message__sign {
  font-size: 14px;
  line-height: 22px;
  text-align: right;
  color: var(--gh-sub);
}

p.gh-message__sign strong {
  display: inline-block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 30px;
  color: var(--gh-ink);
}

/* ---------------------------------------------------------
   拠点カード（グループ：クラス gh-places / gh-place）
   --------------------------------------------------------- */
.wp-block-group.gh-places:not(:has(> .wp-block-group__inner-container)),
.wp-block-group.gh-places > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.wp-block-group.gh-place {
  margin: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--gh-line);
  border-radius: 8px;
}

.wp-block-group.gh-place:not(:has(> .wp-block-group__inner-container)),
.wp-block-group.gh-place > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gh-place > *,
.gh-place > .wp-block-group__inner-container > * {
  margin-top: 0;
  margin-bottom: 0;
}

.gh-place .wp-block-heading {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  color: var(--gh-blue);
  background: none;
  border: 0;
}

.gh-place .wp-block-heading::before,
.gh-place .wp-block-heading::after {
  content: none;
}

.gh-place p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 19px;
}

.gh-place p.gh-place__tel {
  font-size: 11px;
  line-height: 17px;
  color: var(--gh-sub);
}

.gh-place p.gh-place__map {
  margin-top: auto;
  padding-top: 12px;
}

.gh-place__map a {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--gh-blue);
}

.gh-place__map a::after {
  content: "↗";
  display: inline-block;
  margin-left: 4px;
  color: var(--gh-cyan);
  transition: transform 0.2s ease;
}

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

.gh-place__map a:hover::after {
  transform: translate(2px, -2px);
}

/* ---------------------------------------------------------
   組織図など大きな図（画像：クラス gh-org-image）
   画像は2倍サイズで用意し、PCでは原寸の半分で表示。
   スマホは文字が潰れないよう横スクロール＋タップで拡大。
   --------------------------------------------------------- */
.wp-block-image.gh-org-image {
  margin: 0;
  text-align: center;
}

.wp-block-image.gh-org-image img {
  width: 840px;
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------
   丸ボタン（ボタン：スタイル「丸ボタン（紺）／（白）」）
   ボタンの並び（クラス gh-btn-row）は右寄せ
   --------------------------------------------------------- */
.wp-block-buttons.gh-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.wp-block-button.is-style-gh-pill .wp-block-button__link,
.wp-block-button.is-style-gh-pill-white .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 8px 8px 8px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  color: var(--gh-white);
  background: var(--gh-navy);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--gh-navy);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.wp-block-button.is-style-gh-pill .wp-block-button__link::after,
.wp-block-button.is-style-gh-pill-white .wp-block-button__link::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  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='%232e3a54' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.wp-block-button.is-style-gh-pill .wp-block-button__link:hover {
  color: var(--gh-navy);
  background: var(--gh-white);
}

.wp-block-button.is-style-gh-pill .wp-block-button__link:hover::after {
  background-color: var(--gh-navy);
  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");
}

.wp-block-button.is-style-gh-pill-white .wp-block-button__link {
  color: var(--gh-navy);
  background: var(--gh-white);
  box-shadow: inset 0 0 0 1.5px var(--gh-white);
}

.wp-block-button.is-style-gh-pill-white .wp-block-button__link::after {
  background-color: var(--gh-navy);
  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");
}

.wp-block-button.is-style-gh-pill-white .wp-block-button__link:hover {
  color: var(--gh-white);
  background: var(--gh-navy);
}

.wp-block-button.is-style-gh-pill-white .wp-block-button__link:hover::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='%232e3a54' stroke-width='2'/%3E%3C/svg%3E");
}

.wp-block-button.is-style-gh-pill .wp-block-button__link:hover::after,
.wp-block-button.is-style-gh-pill-white .wp-block-button__link:hover::after {
  transform: translateX(4px);
}

/* グループの中身をまとめて扱う（クラシックテーマの inner-container 対策） */
.gh-link-cards > .wp-block-group__inner-container,
.gh-link-cards:not(:has(> .wp-block-group__inner-container)),
.gh-covers > .wp-block-group__inner-container,
.gh-covers:not(:has(> .wp-block-group__inner-container)),
.gh-banner-cards > .wp-block-group__inner-container,
.gh-banner-cards:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gh-link-cards :where(.wp-block-group__inner-container) > *,
.gh-covers :where(.wp-block-group__inner-container) > *,
.gh-banner-cards :where(.wp-block-group__inner-container) > * {
  margin: 0;
}

/* 3列にしたいとき：グループに gh-cols-3 を追加 */
.gh-cols-3 > .wp-block-group__inner-container,
.gh-cols-3:not(:has(> .wp-block-group__inner-container)) {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 960px) {
  .gh-cols-3 > .wp-block-group__inner-container,
  .gh-cols-3:not(:has(> .wp-block-group__inner-container)) {
    grid-template-columns: 1fr !important;
  }
}

/* ---------------------------------------------------------
   リンクカード（写真＋紺の帯）：グループ gh-link-cards > gh-link-card
   --------------------------------------------------------- */
.wp-block-group.gh-link-card {
  margin: 0;
  overflow: hidden;
  color: var(--gh-white);
  background: var(--gh-navy);
  border-radius: 16px;
}

.gh-link-card > *,
.gh-link-card > .wp-block-group__inner-container > * {
  margin: 0;
}

.gh-link-card .wp-block-image img {
  display: block;
  width: 100%;
  aspect-ratio: 491 / 240;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gh-link-card .wp-block-image {
  overflow: hidden;
}

.gh-link-card:hover .wp-block-image img {
  transform: scale(1.04);
}

.wp-block-group.gh-link-card__body {
  padding: 24px 28px 28px;
}

.gh-link-card__body > * + *,
.gh-link-card__body > .wp-block-group__inner-container > * + * {
  margin-top: 12px;
}

.gh-link-card .wp-block-heading {
  margin: 0;
  padding: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  color: var(--gh-white);
  background: none;
  border: 0;
}

.gh-link-card .wp-block-heading::before,
.gh-link-card .wp-block-heading::after {
  content: none;
}

.gh-link-card p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: #d9e0eb;
}

/* 説明文の長さが違ってもボタンの位置をそろえる */
.wp-block-group.gh-link-card,
.gh-link-card > .wp-block-group__inner-container,
.wp-block-group.gh-link-card__body,
.gh-link-card__body > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
}

.gh-link-card > .wp-block-group__inner-container,
.gh-link-card__body > .wp-block-group__inner-container {
  flex: 1;
}

.wp-block-group.gh-link-card__body,
.gh-link-card > .wp-block-group__inner-container > .gh-link-card__body {
  flex: 1;
}

.gh-link-card .wp-block-buttons {
  margin-top: auto !important;
  padding-top: 16px;
}

/* ---------------------------------------------------------
   表紙の並び（PDF）：グループ gh-covers > gh-cover（先頭に「最新号」）
   --------------------------------------------------------- */
.gh-covers > .wp-block-group__inner-container,
.gh-covers:not(:has(> .wp-block-group__inner-container)) {
  grid-template-columns: repeat(4, 1fr);
}

.wp-block-group.gh-cover {
  margin: 0;
}

.gh-cover > *,
.gh-cover > .wp-block-group__inner-container > * {
  margin: 0;
}

.gh-cover .wp-block-image a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--gh-line);
}

.gh-cover .wp-block-image img {
  display: block;
  width: 100%;
  aspect-ratio: 233 / 330;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gh-cover .wp-block-image a:hover img {
  transform: scale(1.04);
}

.gh-cover p {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.gh-covers:not(.gh-covers--nobadge) .gh-cover:first-child p::before {
  content: "最新号";
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  font-size: 11px;
  line-height: 15px;
  color: var(--gh-white);
  vertical-align: 1px;
  background: #e62117;
  border-radius: 4px;
}

.gh-cover__noimage {
  display: grid;
  place-items: center;
  aspect-ratio: 233 / 330;
  padding: 16px;
  font-size: 13px;
  text-align: center;
  background: var(--gh-field);
}

.gh-covers__empty {
  margin: 0;
  color: var(--gh-sub);
}

/* ---------------------------------------------------------
   バナーカード（写真に文字）：グループ gh-banner-cards > gh-banner-card
   最後の段落のリンクがカード全体のリンクになる
   --------------------------------------------------------- */
.wp-block-group.gh-banner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  margin: 0;
  padding: 28px;
  overflow: hidden;
  color: var(--gh-white);
  border-radius: 16px;
  isolation: isolate;
}

/* inner-container 自体は配置の基準にしない（写真をカード全体に敷くため） */
.gh-banner-card > .wp-block-group__inner-container {
  position: static;
}

.gh-banner-card > :not(.wp-block-group__inner-container),
.gh-banner-card > .wp-block-group__inner-container > * {
  position: relative;
  z-index: 1;
  margin: 0;
}

.gh-banner-card .wp-block-image {
  position: absolute !important;
  inset: 0;
  z-index: -1;
}

.gh-banner-card .wp-block-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important; /* SWELL は figure::after を clearfix（高さ0・非表示）に使っているため上書き */
  visibility: visible;
  z-index: 1;
  background: linear-gradient(90deg, rgba(30, 38, 58, 0.92), rgba(30, 38, 58, 0.45));
  transition: opacity 0.3s ease;
}

.gh-banner-card .wp-block-image img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gh-banner-card:hover .wp-block-image img {
  transform: scale(1.05);
}

.gh-banner-card:hover .wp-block-image::after {
  opacity: 0.85;
}

p.gh-banner-card__label {
  font-size: 12px;
  font-weight: 500;
  color: #d9e0eb;
}

.gh-banner-card .wp-block-heading {
  margin: 6px 0 0;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--gh-white);
  background: none;
  border: 0;
}

.gh-banner-card .wp-block-heading::before,
.gh-banner-card .wp-block-heading::after {
  content: none;
}

p.gh-banner-card__more {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.gh-banner-card__more a {
  position: static;
  text-decoration: none;
  color: var(--gh-white);
}

.gh-banner-card__more a::after {
  content: " →";
}

/* カード全体をクリックできるように */
.gh-banner-card__more a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.gh-banner-card:has(.gh-banner-card__more a:focus-visible) {
  outline: 3px solid var(--gh-cyan);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   カテゴリ別お知らせタブ（[gh_news_tabs]）
   --------------------------------------------------------- */
.gh-subnews__tabs {
  display: flex;
  border-bottom: 2px solid var(--gh-navy);
}

.gh-subnews__tab {
  flex: 1 1 0;
  height: 47px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gh-navy);
  background: #f4f6f9;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gh-subnews__tab:hover {
  background: #e4e9f0;
}

.gh-subnews__tab[aria-selected="true"] {
  color: var(--gh-white);
  background: var(--gh-navy);
}

/* SWELL の .post_content ul より強くするため ul を付ける */
ul.gh-subnews__list {
  margin: 0;
  padding: 8px 24px 0;
  list-style: none;
}

ul.gh-subnews__list > li {
  margin: 0;
  border-bottom: 1px solid var(--gh-line);
}

.gh-subnews__list a {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 32px 20px 0;
  text-decoration: none;
  color: var(--gh-ink);
  transition: background-color 0.2s ease;
}

.gh-subnews__list a::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--gh-navy);
  transform: translateY(-55%);
  transition: transform 0.2s ease;
}

.gh-subnews__list a:hover {
  background: #f7f9fb;
}

.gh-subnews__list a:hover::after {
  transform: translate(4px, -55%);
}

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

.gh-subnews__label {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 20px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gh-white);
  background: var(--gh-navy);
  border-radius: 999px;
}

.gh-subnews__title {
  font-size: 15px;
  line-height: 24px;
}

.gh-subnews__list a:hover .gh-subnews__title {
  color: var(--gh-blue);
}

.gh-subnews__empty {
  margin: 0;
  padding: 48px 0;
  text-align: center;
}

.gh-subnews__more {
  margin-top: 32px;
  text-align: right;
}

.gh-subnews .gh-btn {
  min-width: 0;
  min-height: 44px;
  font-size: 14px;
}

/* ---------------------------------------------------------
   最新の動画（[gh_movies]）
   --------------------------------------------------------- */
ul.gh-movies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.gh-movies > li.gh-movie {
  margin: 0;
}

.gh-movie__player,
.gh-movie__iframe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #000;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

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

.gh-movie__player:hover img {
  opacity: 0.85;
  transform: scale(1.04);
}

.gh-movie__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  background: #f00;
  border-radius: 12px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.gh-movie__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid #fff;
  transform: translate(-50%, -50%);
}

.gh-movie__player:hover .gh-movie__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.gh-movie__title {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  color: var(--gh-ink);
}

.gh-movie__title:hover {
  color: var(--gh-blue);
  text-decoration: underline;
}

/* ---------------------------------------------------------
   タブレット・スマホ
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .wp-block-group.gh-places:not(:has(> .wp-block-group__inner-container)),
  .wp-block-group.gh-places > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .gh-entry .wp-block-columns.gh-message {
    --wp-column-gap: 40px;
  }
}

@media (max-width: 781px) {
  .wp-block-columns.gh-message > .wp-block-column {
    flex-basis: 100% !important;
  }
}

@media (max-width: 767px) {
  .wp-block-group.is-style-gh-sec {
    margin-top: 72px;
  }

  .wp-block-group.is-style-gh-sec > * + *,
  .wp-block-group.is-style-gh-sec > .wp-block-group__inner-container > * + * {
    margin-top: 24px;
  }

  .wp-block-heading.gh-sec-title {
    font-size: 22px;
    line-height: 1.5;
  }

  .wp-block-list.is-style-gh-toc {
    gap: 8px;
  }

  .wp-block-list.is-style-gh-toc a {
    padding: 9px 12px 9px 14px;
    font-size: 13px;
  }

  .wp-block-list.is-style-gh-num {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wp-block-list.is-style-gh-num > li {
    min-height: 0;
    padding: 14px 16px;
    font-size: 14px;
  }

  .wp-block-table.is-style-gh-table tr,
  .wp-block-table.is-style-gh-history tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--gh-line);
  }

  .wp-block-table.is-style-gh-table td,
  .wp-block-table.is-style-gh-history td {
    display: block;
    width: auto !important;
    padding: 0 !important;
    font-size: 14px;
    line-height: 1.8;
    border: 0;
  }

  .wp-block-table.is-style-gh-history tr > :first-child {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .wp-block-table.is-style-gh-history tr > :first-child strong {
    font-size: 16px;
  }

  .gh-entry .wp-block-columns.gh-message {
    --wp-column-gap: 24px;
  }

  .wp-block-columns.gh-message .wp-block-image {
    width: min(70%, 260px);
  }

  .wp-block-heading.gh-message__catch {
    font-size: 22px;
    line-height: 1.5;
  }

  .gh-message .wp-block-column > p {
    font-size: 14px;
    line-height: 2;
  }

  p.gh-message__sign strong {
    font-size: 18px;
  }

  .wp-block-group.gh-places:not(:has(> .wp-block-group__inner-container)),
  .wp-block-group.gh-places > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wp-block-image.gh-org-image {
    overflow-x: auto;
    text-align: left;
  }

  .wp-block-image.gh-org-image::before {
    content: "横にスクロール、タップで拡大できます";
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--gh-sub);
  }

  .wp-block-image.gh-org-image img {
    width: 640px;
    max-width: none;
  }
}

@media (max-width: 1100px) {
  .gh-covers > .wp-block-group__inner-container,
  .gh-covers:not(:has(> .wp-block-group__inner-container)) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .gh-link-cards > .wp-block-group__inner-container,
  .gh-link-cards:not(:has(> .wp-block-group__inner-container)),
  .gh-banner-cards > .wp-block-group__inner-container,
  .gh-banner-cards:not(:has(> .wp-block-group__inner-container)),
  ul.gh-movies {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gh-covers > .wp-block-group__inner-container,
  .gh-covers:not(:has(> .wp-block-group__inner-container)) {
    gap: 20px 14px;
  }

  .wp-block-group.gh-link-card__body {
    padding: 20px;
  }

  .gh-link-card .wp-block-heading {
    font-size: 19px;
    line-height: 1.5;
  }

  .wp-block-group.gh-banner-card {
    min-height: 150px;
    padding: 22px;
  }

  .gh-banner-card .wp-block-heading {
    font-size: 17px;
    line-height: 1.5;
  }

  .wp-block-buttons.gh-btn-row {
    justify-content: center;
  }

  .gh-subnews__tab {
    height: 42px;
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  ul.gh-subnews__list {
    padding: 4px 0 0;
  }

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

  .gh-subnews__label {
    justify-self: start;
  }

  .gh-subnews__title {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  .gh-subnews__more {
    text-align: center;
  }
}

/* ==========================================================
   個人情報保護方針など（条文）
   ========================================================== */
p.gh-policy-lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 2;
}

ol.is-style-gh-policy {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
  counter-reset: gh-policy;
}

ol.is-style-gh-policy > li {
  position: relative;
  margin: 0;
  padding: 18px 24px 18px 68px;
  font-size: 15px;
  line-height: 1.9;
  background: var(--gh-field);
  border-radius: 14px 4px 14px 4px;
  counter-increment: gh-policy;
}

ol.is-style-gh-policy > li::before {
  content: counter(gh-policy);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--gh-white);
  background: var(--gh-blue);
  border-radius: 50%;
}

ol.is-style-gh-policy > li em {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 13px;
  font-style: normal;
  color: var(--gh-sub);
  border-top: 1px dashed var(--gh-line);
}

h3.wp-block-heading.gh-policy-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 16px;
  padding: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--gh-blue);
  background: none;
  border: 0;
}

h3.wp-block-heading.gh-policy-sub::before {
  content: "";
  position: static;
  width: 6px;
  height: 22px;
  background: var(--gh-cyan);
  border-radius: 3px;
  transform: none;
}

h3.wp-block-heading.gh-policy-sub::after {
  content: none;
}

.is-style-gh-sec h3.wp-block-heading.gh-policy-sub {
  margin-top: 48px !important;
}

.is-style-gh-sec .gh-sec-title + h3.wp-block-heading.gh-policy-sub {
  margin-top: 32px !important;
}

.is-style-gh-sec h3.gh-policy-sub + * {
  margin-top: 16px !important;
}

.is-style-gh-sec h3.gh-policy-sub + p {
  font-size: 15px;
  line-height: 2;
}

p.gh-policy-note-p {
  margin: 20px 0 0;
  font-size: 14px;
}

.wp-block-group.gh-policy-sign {
  margin: 32px 0 0;
  text-align: right;
}

.gh-policy-sign p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

.wp-block-group.gh-policy-contact {
  margin: 64px 0 0;
  padding: 32px 40px;
  text-align: center;
  background: var(--gh-pale);
  border-radius: 32px 8px 32px 8px;
  scroll-margin-top: 100px;
}

.gh-policy-contact p {
  margin: 0;
}

p.gh-policy-contact__title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gh-blue);
}

p.gh-policy-contact__name {
  font-size: 16px;
  font-weight: 700;
}

p.gh-policy-contact__tel {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gh-blue);
}

p.gh-policy-contact__tel a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 767px) {
  ol.is-style-gh-policy > li {
    padding: 16px 16px 16px 54px;
    font-size: 14px;
  }

  ol.is-style-gh-policy > li::before {
    top: 16px;
    left: 14px;
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  h3.wp-block-heading.gh-policy-sub {
    font-size: 17px;
  }

  .wp-block-group.gh-policy-contact {
    padding: 28px 20px;
  }
}

/* 仮原稿の注意書き（公開前に削除する枠） */
.wp-block-group.gh-draft-note {
  margin: 0 0 32px;
  padding: 14px 20px;
  background: #fff6d6;
  border: 1px dashed #e0b400;
  border-radius: 8px;
}

.gh-draft-note p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #7a5c00;
}

/* PDFへのリンク（段落 gh-link-pdf） */
p.gh-link-pdf a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--gh-blue);
  text-decoration: none;
}

p.gh-link-pdf a::before {
  content: "PDF";
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--gh-white);
  background: var(--gh-red);
  border-radius: 3px;
}

p.gh-link-pdf a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* GenFIT：地図・比較表 */
.wp-block-image.gh-genfit-map {
  max-width: 420px;
  margin-right: auto;
  margin-left: auto;
}

.wp-block-table.gh-compare td {
  text-align: center;
}

.wp-block-table.gh-compare tr:first-child td {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--gh-blue);
  background: var(--gh-pale);
}

.wp-block-table.gh-compare tr:not(:first-child) td:nth-child(2) {
  font-weight: 700;
  color: var(--gh-blue);
}

/* 1行目を見出しにした表（表ブロックの追加CSSクラス gh-table-head） */
.wp-block-table.gh-table-head tr:first-child td {
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-blue);
  background: var(--gh-pale);
}

.wp-block-table.gh-table-head tr:not(:first-child) td:first-child {
  white-space: nowrap;
}

.wp-block-table.gh-table-head td a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gh-blue);
  text-decoration: none;
}

.wp-block-table.gh-table-head td a[href$=".pdf"]::before {
  content: "PDF";
  padding: 1px 6px;
  font-size: 10px;
  color: var(--gh-white);
  background: var(--gh-red);
  border-radius: 3px;
}

.wp-block-table.gh-table-head td a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .wp-block-table.gh-table-head tr:first-child {
    display: none;
  }
}

/* ==========================================================
   マニュアル系（凍結精液取扱マニュアルなど）
   ========================================================== */

/* 黒丸のリスト（リストブロックの追加CSSクラス gh-dots） */
ul.gh-dots {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

ul.gh-dots > li {
  position: relative;
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.9;
}

ul.gh-dots > li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 4px;
  width: 8px;
  height: 8px;
  background: var(--gh-blue);
  border-radius: 50%;
}

ul.gh-dots > li em {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-style: normal;
  color: var(--gh-sub);
}

/* 注意の枠（グループ gh-caution） */
.wp-block-group.gh-caution {
  margin: 20px 0;
  padding: 18px 22px 18px 58px;
  position: relative;
  background: #fff4f2;
  border: 1px solid #f3c4bd;
  border-radius: 10px;
}

.wp-block-group.gh-caution::before {
  content: "!";
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 14px;
  font-weight: 900;
  color: var(--gh-white);
  background: var(--gh-red);
  border-radius: 50%;
}

.gh-caution p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  color: #8a2a1e;
}

h4.wp-block-heading.gh-manual-h4 {
  margin: 32px 0 10px;
  padding: 0 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gh-ink);
  background: none;
  border: 0;
  border-left: 3px solid var(--gh-blue);
}

h4.wp-block-heading.gh-manual-h4::before,
h4.wp-block-heading.gh-manual-h4::after {
  content: none;
}

/* 図とキャプション */
.is-style-gh-sec .wp-block-image figcaption,
.gh-figs .wp-block-image figcaption {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gh-sub);
  text-align: left;
}

.is-style-gh-sec .wp-block-image img {
  height: auto;
}

.wp-block-image.gh-fig-md {
  max-width: 640px;
}

.wp-block-image.gh-fig-sm {
  max-width: 400px;
}

.wp-block-columns.gh-figs {
  --wp-column-gap: 32px;
  margin: 24px 0;
}

.gh-figs .wp-block-image {
  margin: 0;
}

.wp-block-columns.gh-license {
  --wp-column-gap: 20px;
  align-items: center;
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--gh-field);
  border-radius: 10px;
}

.gh-license .wp-block-image {
  max-width: 90px;
  margin: 0;
}

.gh-license p {
  margin: 0;
  font-size: 14px;
}

p.gh-copyright {
  margin: 48px 0 0;
  font-size: 11px;
  color: var(--gh-sub);
}

/* ==========================================================
   ダウンロード（グループ gh-dl-grid > gh-dl-card）
   ========================================================== */
.gh-dl-grid > .wp-block-group__inner-container,
.gh-dl-grid:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gh-dl-grid--pc > .wp-block-group__inner-container,
.gh-dl-grid--pc:not(:has(> .wp-block-group__inner-container)) {
  grid-template-columns: repeat(2, 1fr);
}

.wp-block-group.gh-dl-grid {
  margin: 0;
}

.wp-block-group.gh-dl-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 14px 14px 18px;
  background: var(--gh-white);
  border: 1px solid var(--gh-line);
  border-radius: 16px 4px 16px 4px;
}

.gh-dl-card > .wp-block-group__inner-container {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.gh-dl-card .wp-block-image {
  margin: 0;
  overflow: hidden;
  background: var(--gh-field);
  border-radius: 8px;
}

.gh-dl-card .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.gh-dl-card .wp-block-image a:hover img {
  transform: scale(1.04);
}

p.gh-dl-card__title {
  flex: 1;
  margin: 12px 0 12px !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.wp-block-buttons.gh-dl-card__btn {
  justify-content: stretch;
  margin: 0 !important;
}

.gh-dl-card__btn .wp-block-button {
  width: 100%;
}

.gh-dl-card__btn .wp-block-button__link {
  width: 100%;
}

.wp-block-group.gh-note-box {
  margin: 28px 0 0;
  padding: 18px 22px;
  background: var(--gh-field);
  border-radius: 10px;
}

.gh-note-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--gh-sub);
}

@media (max-width: 900px) {
  .gh-dl-grid > .wp-block-group__inner-container,
  .gh-dl-grid:not(:has(> .wp-block-group__inner-container)) {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .gh-dl-grid--pc > .wp-block-group__inner-container,
  .gh-dl-grid--pc:not(:has(> .wp-block-group__inner-container)) {
    grid-template-columns: 1fr;
  }

  .wp-block-group.gh-dl-card {
    padding: 10px 10px 14px;
  }
}

.gh-dl-card__btn .wp-block-button.is-style-gh-pill .wp-block-button__link {
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.gh-dl-card__btn .wp-block-button.is-style-gh-pill .wp-block-button__link::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v9M4 7l4 4 4-4M2 14h12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v9M4 7l4 4 4-4M2 14h12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gh-dl-card__btn .wp-block-button.is-style-gh-pill .wp-block-button__link::after {
  display: none;
}

/* ==========================================================
   ギャラリー（作者紹介・絵の一覧・拡大表示）
   ========================================================== */
.wp-block-columns.gh-artist {
  --wp-column-gap: 48px;
  align-items: center;
}

.gh-artist .wp-block-image.gh-artist__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 40px 10px 40px 10px;
}

.gh-artist .wp-block-image.gh-artist__photo img {
  display: block;
  width: 100%;
  height: auto;
}

p.gh-artist__role {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-cyan);
}

.gh-artist h3.wp-block-heading.gh-artist__name {
  margin: 4px 0 16px;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--gh-blue);
  background: none;
  border: 0;
}

.gh-artist h3.gh-artist__name::before,
.gh-artist h3.gh-artist__name::after {
  content: none;
}

.gh-artist p {
  font-size: 15px;
  line-height: 1.9;
}

ul.gh-artist__history {
  margin: 16px 0 24px;
  padding: 16px 20px !important;
  list-style: none;
  background: var(--gh-field);
  border-radius: 10px;
}

ul.gh-artist__history > li {
  margin: 0;
  font-size: 14px;
  line-height: 2;
}

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

.wp-block-buttons.gh-btn-row--left {
  justify-content: flex-start;
}

/* 絵の一覧 */
.gh-art-grid,
.gh-art-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.gh-art-grid:has(> .wp-block-group__inner-container) {
  display: block;
}

.gh-art-grid .gh-art,
.gh-art-grid .wp-block-image {
  margin: 0;
}

.gh-art-grid a {
  display: block;
  overflow: hidden;
  background: var(--gh-field);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.gh-art-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gh-art-grid a:hover img {
  transform: scale(1.05);
}

.gh-art-grid figcaption,
.gh-art-grid .wp-element-caption {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--gh-ink);
  text-align: left;
}

/* 拡大表示 */
dialog.gh-lightbox {
  position: fixed;
  inset: 0;
  width: min(92vw, 960px);
  max-height: 92vh;
  height: fit-content;
  margin: auto !important;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

dialog.gh-lightbox::backdrop {
  background: rgba(20, 28, 40, 0.86);
}

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

.gh-lightbox img {
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 4px;
}

.gh-lightbox figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.gh-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.gh-lightbox__close::before,
.gh-lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  background: #fff;
}

.gh-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.gh-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 900px) {
  .gh-art-grid,
  .gh-art-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .gh-art-grid,
  .gh-art-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .gh-artist h3.wp-block-heading.gh-artist__name {
    font-size: 24px;
  }
}

/* リンク集（リストブロックの追加CSSクラス gh-links） */
ul.gh-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

ul.gh-links > li {
  margin: 0;
}

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

ul.gh-links > li > a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 60px;
  padding: 12px 48px 12px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gh-ink);
  text-decoration: none;
  background: var(--gh-white);
  border: 1px solid var(--gh-line);
  border-radius: 14px 4px 14px 4px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

ul.gh-links > li > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 14px;
  height: 14px;
  background: var(--gh-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2h5v5M14 2 7 9M12 10v4H2V4h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2h5v5M14 2 7 9M12 10v4H2V4h4'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-50%);
}

ul.gh-links > li > a:hover {
  background: var(--gh-pale);
  border-color: var(--gh-blue);
}

@media (max-width: 767px) {
  ul.gh-links {
    grid-template-columns: 1fr;
  }
}

/* サイトマップ（自動） */
.gh-sitemap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  align-items: start;
}

.gh-sitemap__group {
  padding-top: 14px;
  border-top: 2px solid var(--gh-blue);
}

p.gh-sitemap__head {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.gh-sitemap a {
  color: var(--gh-ink);
  text-decoration: none;
}

.gh-sitemap__head a {
  color: var(--gh-blue);
}

.gh-sitemap a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul.gh-sitemap__sub {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

ul.gh-sitemap__sub li {
  position: relative;
  margin: 0;
  padding: 4px 0 4px 16px;
  font-size: 14px;
  line-height: 1.6;
}

ul.gh-sitemap__sub li::before {
  content: "";
  position: absolute;
  top: 0.95em;
  left: 2px;
  width: 6px;
  height: 1px;
  background: var(--gh-sub);
}

ul.gh-sitemap__sub ul.gh-sitemap__sub {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .gh-sitemap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .gh-sitemap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 固定ページ内のお知らせ一覧（[gh_news_list]） */
.gh-news-panel ul.gh-news__list {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.gh-news-panel ul.gh-news__list > li::before {
  content: none;
  display: none;
}

.wp-block-buttons.gh-btn-row--center {
  justify-content: center;
}

.wp-block-buttons.gh-btn-row--right {
  justify-content: flex-end;
}

/* 記事本文のボタン（旧サイトから移したボタン） */
.post_content .wp-block-buttons.gh-btn-row {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/* 横に長い表の案内（main.js で表示） */
p.gh-scroll-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px !important;
  font-size: 12px;
  font-weight: 700;
  color: var(--gh-blue);
}

p.gh-scroll-hint::before {
  content: "←→";
  font-size: 14px;
}

/* =========================================================
   外部サイトへのリンクの印（↗）※本文の中の外部リンクに自動で付く（inc/helpers.php）
   ========================================================= */
.gh-ext-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.3em;
  vertical-align: -0.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 本文の文章中のリンクは、青い文字＋下線でリンクと分かるように（ボタン・カードなど部品のリンクは各部品の見た目のまま） */
:where(.gh-entry) :where(p, li, td, th, dd, figcaption) > a:where(:not([class])),
:where(.gh-entry) :where(p, li, td, th, dd, figcaption) > a.gh-ext-link:where(:not(.wp-block-button__link)) {
  color: var(--gh-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:where(.gh-entry) :where(p, li, td, th, dd, figcaption) > a:where(:not([class])):hover,
:where(.gh-entry) :where(p, li, td, th, dd, figcaption) > a.gh-ext-link:where(:not(.wp-block-button__link)):hover {
  text-decoration: none;
}

/* セクションを薄いグレーの枠で囲む（グループの追加CSSクラス gh-sec-box）
   例：AI・ET講習会の「AI講習会」「ET講習会」 */
.wp-block-group.gh-sec-box {
  padding: 40px 48px !important;
  background: var(--gh-field);
  border-radius: 16px;
}

.wp-block-group.gh-sec-box + .wp-block-group.gh-sec-box {
  margin-top: 40px !important;
}

.wp-block-group.gh-sec-box table td,
.wp-block-group.gh-sec-box table th {
  background-color: #fff;
}

@media (max-width: 767px) {
  .wp-block-group.gh-sec-box {
    padding: 24px 16px !important;
    border-radius: 12px;
  }
}

/* 外部リンクの印を出さない部品（もともと印や説明があるもの） */
ul.gh-links .gh-ext-icon,
.wp-block-button.is-style-gh-entry .gh-ext-icon {
  display: none;
}

/* サイトマップ：ディレクトリ形式（トップ → 各ページ → その下のページ） */
.gh-sitemap.gh-sitemap--tree {
  display: block;
}

.gh-sitemap--tree ul {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.gh-sitemap--tree li {
  margin: 0;
}

.gh-sitemap--tree li::marker {
  content: none;
}

/* トップページ */
.gh-sitemap__root > li > a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  background: var(--gh-blue);
  border-radius: 999px;
}

/* 第1階層：2列に並べる */
ul.gh-sitemap__lv1 {
  margin-top: 24px;
  column-count: 2;
  column-gap: 56px;
}

.gh-sitemap__lv1 > li {
  break-inside: avoid;
  margin-bottom: 18px;
  padding: 10px 0 0 14px;
  border-left: 3px solid var(--gh-blue);
}

.gh-sitemap__lv1 > li > a {
  font-size: 16px;
  font-weight: 700;
  color: var(--gh-blue) !important;
}

/* 第2階層より下：枝の線でつなぐ */
.gh-sitemap__lv1 li ul {
  margin: 6px 0 0 4px;
}

.gh-sitemap__lv1 li li {
  position: relative;
  padding: 3px 0 3px 22px;
  font-size: 14px;
  line-height: 1.6;
}

.gh-sitemap__lv1 li li::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: #b8c4cf;
}

.gh-sitemap__lv1 li li:last-child::before {
  bottom: auto;
  height: 1.1em;
}

.gh-sitemap__lv1 li li::after {
  content: "";
  position: absolute;
  top: 1.1em;
  left: 4px;
  width: 12px;
  height: 1px;
  background: #b8c4cf;
}

.gh-sitemap--tree li li a {
  color: var(--gh-ink);
}

@media (max-width: 767px) {
  ul.gh-sitemap__lv1 {
    column-count: 1;
  }
}
