/* Matching HUB Nagaoka 2026 — WordPress bundle */
/* Source CSS is already scoped under .mh — concatenate via build.py */

/* Matching HUB Nagaoka 2026 — reset, tokens, type
   `.mh` はプレビューでは body、WordPress ではラッパー div。両方で同じ CSS がそのまま効く。 */

:root {
  /* ブランドコア — 公式ロゴ（docs/資料/2026/）から実測した値 */
  --mh-blue: #0071bd;
  --mh-blue-deep: #005a96;
  --mh-blue-pale: #edf4fa;
  --mh-magenta: #e4007f;
  --mh-magenta-deep: #b80066;
  --mh-magenta-pale: #fcedf4;

  /* 産学官金 — フライヤーの区分色。白背景で 4.5:1 以上になるよう調整 */
  --mh-sangyo: #0071bd;
  --mh-gaku: #e4007f;
  --mh-kan: #3e7f41;
  --mh-kin: #9a6e10;

  /* ニュートラル — ブルーと馴染むよう青みを持たせる */
  --mh-ink: #1b2430;
  --mh-body: #3d4753;
  --mh-mute: #656f7c;  /* 4.5:1 を白・--mh-gray・--mh-blue-pale すべてで満たす */
  --mh-line: #d8dee5;
  --mh-gray: #f2f5f8;
  --mh-white: #ffffff;

  /* タイプスケール（1.25 比） */
  --mh-fs-xs: 12px;
  --mh-fs-sm: 14px;
  --mh-fs-base: 16px;
  --mh-fs-md: 18px;
  --mh-fs-lg: 20px;
  --mh-fs-xl: 24px;
  --mh-fs-2xl: 30px;
  --mh-fs-3xl: 38px;
  --mh-fs-4xl: 48px;
  --mh-fs-5xl: 60px;

  /* レイアウト */
  --mh-max: 1200px;
  --mh-gutter: 56px;
  --mh-section-y: 96px;
  --mh-nav-h: 72px;
  --mh-radius: 6px;
  --mh-radius-lg: 12px;

  --mh-font-display: "Poppins", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --mh-font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
}

.mh,
.mh *,
.mh *::before,
.mh *::after {
  box-sizing: border-box;
}

.mh {
  margin: 0;
  color: var(--mh-body);
  background: var(--mh-white);
  font-family: var(--mh-font-body);
  font-size: var(--mh-fs-base);
  line-height: 1.8;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

:where(.mh) :is(img, svg, video, canvas, iframe) {
  max-width: 100%;
  display: block;
}

:where(.mh) :is(h1, h2, h3, h4, h5, h6, p, figure) {
  margin: 0;
}

:where(.mh) :is(ul, ol) {
  margin: 0;
  padding: 0;
}

:where(.mh) a {
  color: var(--mh-blue);
  text-decoration: none;
}

:where(.mh) a:hover {
  color: var(--mh-blue-deep);
  text-decoration: underline;
}

:where(.mh) button {
  font: inherit;
}

/* フォーカスリングは面の色に追従する。色地のセクションが --mh-focus を上書きする。 */
:where(.mh) :is(a, button, .mh-btn):focus-visible {
  outline: 3px solid var(--mh-focus, var(--mh-blue));
  outline-offset: 3px;
}

.mh-container {
  width: 100%;
  max-width: var(--mh-max);
  margin-inline: auto;
  padding-inline: var(--mh-gutter);
}

.mh-section {
  padding: var(--mh-section-y) 0;
  position: relative;
  scroll-margin-top: var(--mh-nav-h);
}

.mh-section--alt {
  background: var(--mh-blue-pale);
}

.mh-section--dark {
  background: var(--mh-ink);
  color: rgba(255, 255, 255, 0.86);
  --mh-focus: var(--mh-white);
}

.mh-section--dark :is(.mh-title, .mh-kicker, .mh-eyebrow) {
  color: var(--mh-white);
}

/* セクション番号。控えめな指標にとどめ、見出しより前に出さない。 */
.mh-section__num {
  font-family: var(--mh-font-display);
  font-weight: 700;
  font-size: var(--mh-fs-sm);
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--mh-blue);
}

.mh-section--dark .mh-section__num {
  color: var(--mh-white);
  opacity: 0.7;
}

/* セクション上部の小見出し。日本語が入る前提なので uppercase もトラッキングも掛けない。 */
.mh-kicker {
  font-size: var(--mh-fs-sm);
  font-weight: 700;
  color: var(--mh-blue);
}

/* サブページの欧文大見出し。 */
.mh-eyebrow {
  font-family: var(--mh-font-display);
  font-weight: 700;
  font-size: var(--mh-fs-xl);
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--mh-blue);
}

.mh-title {
  font-family: var(--mh-font-body);
  font-size: var(--mh-fs-2xl);
  font-weight: 900;
  line-height: 1.45;
  color: var(--mh-ink);
}

.mh-title--lg {
  font-size: clamp(1.9rem, 3.6vw, var(--mh-fs-3xl));
  line-height: 1.35;
}

.mh-lead {
  font-size: var(--mh-fs-md);
  line-height: 2;
  color: var(--mh-body);
  max-width: 40em;
}

.mh-muted {
  color: var(--mh-mute);
}

/* 見出しと本文のあいだに置く共通の間隔 */
.mh-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 40px;
}

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 26px;
  border-radius: var(--mh-radius);
  background: var(--mh-blue);
  color: var(--mh-white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--mh-fs-sm);
  line-height: 1.5;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mh-btn:hover {
  background: var(--mh-blue-deep);
  color: var(--mh-white);
  text-decoration: none;
}

.mh-btn--lg {
  padding: 18px 34px;
  font-size: var(--mh-fs-md);
  border-radius: var(--mh-radius);
}

.mh-btn--ghost {
  background: transparent;
  color: var(--mh-blue);
  box-shadow: inset 0 0 0 2px var(--mh-blue);
}

.mh-btn--ghost:hover {
  background: var(--mh-blue);
  color: var(--mh-white);
}

/* 色地・暗色地の上に置く主要 CTA */
.mh-btn--invert {
  background: var(--mh-white);
  color: var(--mh-blue);
}

.mh-btn--invert:hover {
  background: var(--mh-blue-pale);
  color: var(--mh-blue-deep);
}

/* 色地の上の副次ボタン */
.mh-btn--outline {
  background: transparent;
  color: var(--mh-white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.mh-btn--outline:hover {
  background: var(--mh-white);
  color: var(--mh-blue);
}

/* 早期割などの締切告知バー */
.mh-alert {
  background: var(--mh-magenta-deep);
  color: var(--mh-white);
  --mh-focus: var(--mh-white);
}

.mh-alert__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-block: 12px;
  text-align: center;
}

.mh-alert__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mh-white);
  color: var(--mh-magenta-deep);
  font-size: var(--mh-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mh-alert__text {
  font-size: var(--mh-fs-sm);
  font-weight: 700;
}

.mh-alert__link {
  font-size: var(--mh-fs-sm);
  font-weight: 700;
  color: var(--mh-white);
  text-decoration: underline;
}

.mh-alert__link:hover {
  color: var(--mh-white);
}

@media (max-width: 1024px) {
  :root {
    --mh-gutter: 40px;
    --mh-section-y: 72px;
  }
}

@media (max-width: 768px) {
  :root {
    --mh-gutter: 24px;
    --mh-section-y: 56px;
  }

  .mh-title {
    font-size: var(--mh-fs-xl);
  }

  .mh-section-head {
    margin-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-btn {
    transition: none;
  }
}


/* Matching HUB — nav / footer */

.mh-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--mh-nav-h);
  padding: 14px var(--mh-gutter);
  background: var(--mh-white);
  border-bottom: 1px solid var(--mh-line);
}

.mh-nav__logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--mh-ink);
  flex-shrink: 0;
}

.mh-nav__logo:hover {
  color: var(--mh-ink);
  text-decoration: none;
}

/* 公式ロゴ（背景透過 PNG / SVG）を受領したら、この img を差し込むだけで置き換わる。
   docs/画像仕様.md を参照。現状は暫定のテキストワードマーク。 */
.mh-nav__logo img {
  height: 32px;
  width: auto;
}

.mh-nav__logo-name {
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: var(--mh-fs-md);
  letter-spacing: 0.01em;
  color: var(--mh-ink);
}

.mh-nav__logo-year {
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: var(--mh-fs-md);
  color: var(--mh-blue);
}

/* デスクトップ・モバイルで同じ 1 つのメニューを使う（DOM を二重に持たない）。 */
.mh-nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.mh-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  font-size: var(--mh-fs-sm);
  font-weight: 700;
}

.mh-nav__links a {
  color: var(--mh-ink);
  padding-block: 4px;
}

.mh-nav__links a:hover {
  color: var(--mh-blue);
  text-decoration: none;
}

.mh-nav__links a[aria-current="page"] {
  color: var(--mh-blue);
  box-shadow: inset 0 -2px 0 var(--mh-blue);
}

.mh-nav__cta {
  flex-shrink: 0;
  padding: 11px 22px;
}

.mh-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: var(--mh-radius);
  background: transparent;
  cursor: pointer;
}

.mh-nav__toggle span {
  display: block;
  height: 2px;
  margin: 5px 9px;
  border-radius: 2px;
  background: var(--mh-ink);
}

.mh-footer {
  color: var(--mh-body);
}

.mh-footer__org {
  background: var(--mh-gray);
  padding: 64px 0;
  border-top: 1px solid var(--mh-line);
}

.mh-orgs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px 80px;
  align-items: start;
}

.mh-orgs__label {
  font-size: var(--mh-fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mh-blue);
  margin-bottom: 14px;
}

.mh-orgs__name,
.mh-orgs__cols li {
  font-size: var(--mh-fs-sm);
  line-height: 1.9;
  color: var(--mh-body);
}

.mh-orgs__name {
  font-weight: 700;
  color: var(--mh-ink);
}

.mh-orgs__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

.mh-orgs__cols ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.mh-footer__contact {
  background: var(--mh-white);
  padding: 44px 0;
  border-top: 1px solid var(--mh-line);
  text-align: left;
}

.mh-footer__contact-inner {
  display: grid;
  gap: 10px;
  max-width: 40em;
  font-size: var(--mh-fs-sm);
  text-align: left;
  justify-items: start;
}

.mh-footer__contact-title {
  font-size: var(--mh-fs-md);
  font-weight: 900;
  color: var(--mh-ink);
}

.mh-footer__contact-link {
  font-weight: 700;
}

.mh-footer__bar {
  background: var(--mh-blue);
  padding: 24px 0;
  color: var(--mh-white);
  --mh-focus: var(--mh-white);
}

.mh-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.mh-footer__copy {
  font-family: var(--mh-font-display);
  font-weight: 700;
  font-size: var(--mh-fs-sm);
  letter-spacing: 0.04em;
  color: var(--mh-white);
}

.mh-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: var(--mh-fs-sm);
  font-weight: 700;
}

.mh-footer__bar a {
  color: var(--mh-white);
}

.mh-footer__bar a:hover {
  color: var(--mh-white);
  text-decoration: underline;
}

/* ナビは 5 件（概要・プログラム・出展者・出展概要・アーカイブ）。1024px 以下ではハンバーガーにする。 */
@media (max-width: 1024px) {
  .mh-nav__toggle {
    display: block;
  }

  .mh-nav__menu {
    display: none;
  }

  .mh-nav.is-open .mh-nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 20px var(--mh-gutter) 26px;
    background: var(--mh-white);
    border-bottom: 1px solid var(--mh-line);
    box-shadow: 0 12px 24px rgba(27, 36, 48, 0.08);
  }

  .mh-nav.is-open .mh-nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: var(--mh-fs-base);
  }

  .mh-nav.is-open .mh-nav__cta {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .mh-orgs,
  .mh-orgs__cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mh-nav__logo-name {
    font-size: var(--mh-fs-base);
  }
}


/* Subpage shared layout */

.mh-page-hero {
  padding: 56px 0 44px;
  background: var(--mh-blue-pale);
  border-bottom: 1px solid var(--mh-line);
}

.mh-page-hero__inner {
  display: grid;
  gap: 10px;
}

.mh-page-hero .mh-title {
  font-size: clamp(1.7rem, 3.4vw, var(--mh-fs-2xl));
}

.mh-page-hero__meta {
  font-size: var(--mh-fs-sm);
  color: var(--mh-body);
}

.mh-prose {
  display: grid;
  gap: 16px;
  max-width: 42em;
}

.mh-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.mh-list li {
  padding-left: 1.2em;
  position: relative;
}

.mh-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--mh-blue);
}

.mh-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius);
  background: var(--mh-white);
}

.mh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--mh-fs-sm);
}

.mh-table th,
.mh-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--mh-line);
  vertical-align: top;
}

.mh-table tr:last-child :is(th, td) {
  border-bottom: 0;
}

.mh-table thead th {
  background: var(--mh-ink);
  color: var(--mh-white);
  font-weight: 700;
  white-space: nowrap;
}

.mh-table tbody th {
  background: var(--mh-gray);
  color: var(--mh-ink);
  width: 8em;
  font-weight: 700;
}

/* 出展料金表の産学官金。フライヤーの区分色に揃える。 */
.mh-table tbody th.mh-cat {
  color: var(--mh-white);
  width: 4em;
  text-align: center;
  font-size: var(--mh-fs-md);
  font-weight: 900;
}

/* `.mh-table tbody th` の詳細度(0,1,2)に負けないよう、区分色も同じ深さで書く。 */
.mh-table tbody th.mh-cat--sangyo { background: var(--mh-sangyo); }
.mh-table tbody th.mh-cat--gaku { background: var(--mh-gaku); }
.mh-table tbody th.mh-cat--kan { background: var(--mh-kan); }
.mh-table tbody th.mh-cat--kin { background: var(--mh-kin); }

.mh-table .mh-price {
  font-family: var(--mh-font-display);
  font-weight: 700;
  font-size: var(--mh-fs-md);
  color: var(--mh-ink);
  white-space: nowrap;
}

.mh-table .mh-price--early {
  color: var(--mh-magenta-deep);
}

.mh-note {
  padding: 16px 18px;
  background: var(--mh-blue-pale);
  border-left: 4px solid var(--mh-blue);
  border-radius: 0 var(--mh-radius) var(--mh-radius) 0;
  font-size: var(--mh-fs-sm);
}

.mh-note--accent {
  background: var(--mh-magenta-pale);
  border-left-color: var(--mh-magenta);
}

.mh-note strong {
  color: var(--mh-ink);
}

.mh-dl {
  display: grid;
  gap: 0;
}

.mh-dl > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mh-line);
}

.mh-dl > div:first-child {
  border-top: 1px solid var(--mh-line);
}

.mh-dl dt {
  font-size: var(--mh-fs-sm);
  font-weight: 700;
  color: var(--mh-blue);
}

.mh-dl dd {
  margin: 0;
  font-size: var(--mh-fs-sm);
}

.mh-flow {
  display: grid;
  gap: 22px;
  text-align: left;
}

@media (max-width: 768px) {
  .mh-dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* 写真プレースホルダー。
   2026 の写真素材が未受領のため、どこに何の写真が入るかを明示した枠を置いている。
   受領後は .mh-figure__ph を <img> に差し替えるだけで入れ替わる。
   何をどこに入れるかは docs/画像仕様.md が正本。 */

.mh-figure {
  margin: 0;
  border-radius: var(--mh-radius-lg);
  overflow: hidden;
  background: var(--mh-blue-pale);
}

.mh-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mh-figure--16x9 { aspect-ratio: 16 / 9; }
.mh-figure--4x3 { aspect-ratio: 4 / 3; }
.mh-figure--3x2 { aspect-ratio: 3 / 2; }

/* 主張しすぎない静かな枠にする。写真が入るまでの仮置きであることが分かれば十分。 */
.mh-figure__ph {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  background: var(--mh-blue-pale);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 189, 0.22);
}

.mh-figure__ph::before {
  content: "";
  width: 40px;
  height: 34px;
  margin-bottom: 4px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='34' viewBox='0 0 40 34' fill='none' stroke='%230071bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'%3E%3Crect x='1.5' y='1.5' width='37' height='31' rx='4'/%3E%3Ccircle cx='12' cy='11' r='3.5'/%3E%3Cpath d='M4 27l9-9 6.5 6.5 5-4L36 29'/%3E%3C/svg%3E");
}

.mh-figure__label {
  font-size: var(--mh-fs-sm);
  font-weight: 700;
  color: var(--mh-blue-deep);
}

.mh-figure__spec {
  font-size: var(--mh-fs-xs);
  color: var(--mh-mute);
}

/* 公開直前に .mh へ .mh-ph-labels-off を足すと、
   ラベルだけ消えて静かな枠が残る。 */
.mh-ph-labels-off .mh-figure__label,
.mh-ph-labels-off .mh-figure__spec {
  display: none;
}

/* 暗い面の上に置く場合 */
.mh-section--dark .mh-figure,
.mh-section--dark .mh-figure__ph {
  background: #26303d;
}

.mh-section--dark .mh-figure__ph {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mh-section--dark .mh-figure__ph::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='34' viewBox='0 0 40 34' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'%3E%3Crect x='1.5' y='1.5' width='37' height='31' rx='4'/%3E%3Ccircle cx='12' cy='11' r='3.5'/%3E%3Cpath d='M4 27l9-9 6.5 6.5 5-4L36 29'/%3E%3C/svg%3E");
}

.mh-section--dark .mh-figure__label {
  color: var(--mh-white);
}

.mh-section--dark .mh-figure__spec {
  color: rgba(255, 255, 255, 0.6);
}


.mh-hero {
  position: relative;
  background: var(--mh-white);
  padding: 72px 0 80px;
  overflow: hidden;
}

.mh-hero__circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mh-hero__circle {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.mh-hero__circle--blue {
  width: 520px;
  height: 520px;
  background: var(--mh-blue);
  right: -120px;
  top: -60px;
}

.mh-hero__circle--magenta {
  width: 430px;
  height: 430px;
  background: var(--mh-magenta);
  right: 120px;
  top: 180px;
}

.mh-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--mh-max);
  margin-inline: auto;
  padding-inline: var(--mh-gutter);
}

.mh-hero__copy {
  max-width: 40em;
}

.mh-hero__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.mh-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--mh-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mh-hero__tag--brand {
  background: var(--mh-ink);
  color: var(--mh-white);
}

.mh-hero__tag--accent {
  background: var(--mh-magenta-pale);
  color: var(--mh-magenta-deep);
}

.mh-hero__headline {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 5.4vw, var(--mh-fs-5xl));
  line-height: 1.24;
  font-weight: 900;
  color: var(--mh-ink);
  letter-spacing: -0.01em;
}

.mh-hero__lead {
  margin: 0 0 36px;
  font-size: var(--mh-fs-md);
  line-height: 1.9;
  color: var(--mh-body);
  max-width: 30em;
  font-weight: 500;
}

.mh-hero__when {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--mh-line);
  border-bottom: 1px solid var(--mh-line);
  margin-bottom: 28px;
}

.mh-hero__date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, var(--mh-fs-5xl));
  line-height: 0.9;
  color: var(--mh-blue);
  letter-spacing: -0.01em;
}

.mh-hero__dow {
  font-size: var(--mh-fs-md);
  font-weight: 700;
  color: var(--mh-magenta);
  letter-spacing: 0.06em;
}

.mh-hero__where {
  display: grid;
  gap: 2px;
  padding-left: 20px;
  border-left: 1px solid var(--mh-line);
}

.mh-hero__year {
  font-family: var(--mh-font-display);
  font-weight: 700;
  font-size: var(--mh-fs-lg);
  line-height: 1.2;
  color: var(--mh-ink);
}

.mh-hero__venue {
  font-size: var(--mh-fs-sm);
  font-weight: 700;
  line-height: 1.7;
  color: var(--mh-body);
}

.mh-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .mh-hero {
    padding: 48px 0 56px;
  }

  .mh-hero__circle--blue {
    width: 320px;
    height: 320px;
    right: -80px;
  }

  .mh-hero__circle--magenta {
    width: 260px;
    height: 260px;
    right: 40px;
    top: 120px;
  }
}

@media (max-width: 768px) {
  .mh-hero__circle--blue {
    width: 220px;
    height: 220px;
    right: -90px;
    top: -50px;
  }

  .mh-hero__circle--magenta {
    width: 180px;
    height: 180px;
    right: -40px;
    top: 90px;
  }

  .mh-hero__when {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .mh-hero__where {
    padding-left: 0;
    border-left: 0;
  }

  .mh-hero__actions .mh-btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-hero__circle {
    mix-blend-mode: normal;
  }
}


/* ヒーロー直下の実績サマリ。数値の正本は §05 実績。ここは要約にとどめる。 */
.mh-stats {
  background: var(--mh-blue);
  color: var(--mh-white);
  --mh-focus: var(--mh-white);
}

.mh-stats__inner {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 18px;
}

.mh-stats__num {
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: var(--mh-fs-lg);
  letter-spacing: 0.01em;
}

.mh-stats__note {
  font-size: var(--mh-fs-sm);
  font-weight: 700;
}

.mh-stats__year {
  margin-left: auto;
  font-size: var(--mh-fs-xs);
  color: var(--mh-white);
}

@media (max-width: 768px) {
  .mh-stats__year {
    margin-left: 0;
  }
}


.mh-about {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.mh-about__copy {
  display: grid;
  gap: 22px;
}

.mh-about__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mh-about__card {
  padding: 26px 24px;
  border-radius: var(--mh-radius-lg);
  background: var(--mh-white);
  border: 1px solid var(--mh-line);
  border-top: 4px solid var(--mh-blue);
}

.mh-about__card--blue { border-top-color: var(--mh-blue); }
.mh-about__card--magenta { border-top-color: var(--mh-magenta); }
.mh-about__card--green { border-top-color: var(--mh-kan); }

.mh-about__card .mh-kicker {
  font-size: var(--mh-fs-xs);
  letter-spacing: 0.02em;
}

.mh-about__card--magenta .mh-kicker { color: var(--mh-magenta-deep); }
.mh-about__card--green .mh-kicker { color: var(--mh-kan); }

.mh-about__card h3 {
  margin-top: 8px;
  font-size: var(--mh-fs-md);
  font-weight: 900;
  color: var(--mh-ink);
}

.mh-about__card p {
  margin-top: 10px;
  font-size: var(--mh-fs-sm);
  line-height: 1.85;
  color: var(--mh-body);
}

@media (max-width: 1024px) {
  .mh-about {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mh-about__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mh-about__cards {
    grid-template-columns: 1fr;
  }
}


.mh-overview {
  background: var(--mh-gray);
}

.mh-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.mh-overview__facts dt {
  color: var(--mh-blue);
}

.mh-overview__cta {
  margin-top: 28px;
}

/* 地図。枠を地図の実サイズに合わせ、余白を作らない。 */
.mh-overview__map-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--mh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--mh-line);
  background: var(--mh-blue-pale);
}

.mh-overview__map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .mh-overview__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mh-overview__map-wrap {
    aspect-ratio: 16 / 9;
  }
}


.mh-exhibitors__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.mh-exhibitors__head .mh-section-head {
  margin-bottom: 0;
}

.mh-exhibitors__lead {
  font-size: var(--mh-fs-sm);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
  max-width: 44em;
}

/* 暗色地では区分色をそのまま置くと沈むので、明度を上げた対を使う。 */
.mh-section--dark {
  --mh-sangyo-on: #4fa3dc;
  --mh-gaku-on: #ff5ba8;
  --mh-kan-on: #7bc17e;
  --mh-kin-on: #e0b040;
}

/* 上段 — 合計と最重要指標。内訳より一段大きく置く。 */
.mh-headline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

/* 行の高さは一番背の高いカード（アンケート）に揃うので、
   数字だけのカードは中身を上下中央に置いて余白を均す。 */
.mh-headline-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 28px;
  border-radius: var(--mh-radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mh-headline-stat--accent {
  background: var(--mh-magenta-deep);
  border-color: transparent;
}

.mh-headline-stat__num {
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: var(--mh-fs-4xl);
  line-height: 1;
  color: var(--mh-white);
}

.mh-headline-stat__num span {
  font-size: var(--mh-fs-lg);
  margin-left: 2px;
}

.mh-headline-stat__label {
  margin-top: 10px;
  font-size: var(--mh-fs-sm);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

/* 出展者アンケートの内訳バー */
.mh-survey {
  margin-top: 16px;
}

.mh-survey__bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}

.mh-survey__seg--yes { background: var(--mh-white); }
.mh-survey__seg--either { background: rgba(255, 255, 255, 0.45); }
.mh-survey__seg--no { background: rgba(255, 255, 255, 0.2); }

.mh-survey__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  list-style: none;
  font-size: var(--mh-fs-xs);
  color: rgba(255, 255, 255, 0.85);
}

/* 下段 — 産学官金の内訳 */
.mh-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mh-field {
  padding: 22px 24px;
  border-radius: var(--mh-radius);
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--mh-sangyo-on);
}

.mh-field--sangyo { border-left-color: var(--mh-sangyo-on); }
.mh-field--gaku { border-left-color: var(--mh-gaku-on); }
.mh-field--kan { border-left-color: var(--mh-kan-on); }
.mh-field--kin { border-left-color: var(--mh-kin-on); }

.mh-field__num {
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: var(--mh-fs-xl);
  line-height: 1.1;
  color: var(--mh-white);
}

.mh-field__label {
  margin-top: 6px;
  font-size: var(--mh-fs-xs);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* 出展者の広がり（県内・県外） */
.mh-reach {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mh-reach dt {
  font-size: var(--mh-fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mh-white);
  margin-bottom: 6px;
}

.mh-reach dd {
  margin: 0;
  font-size: var(--mh-fs-sm);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}

/* --- /exhibitor/ ページ --- */
.mh-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mh-count {
  padding: 22px 16px;
  border-radius: var(--mh-radius);
  background: var(--mh-white);
  border: 1px solid var(--mh-line);
  border-top: 4px solid var(--mh-blue);
  text-align: center;
}

.mh-count--sangyo { border-top-color: var(--mh-sangyo); }
.mh-count--gaku { border-top-color: var(--mh-gaku); }
.mh-count--kan { border-top-color: var(--mh-kan); }
.mh-count--kin { border-top-color: var(--mh-kin); }

.mh-count__label {
  font-size: var(--mh-fs-sm);
  font-weight: 700;
  color: var(--mh-ink);
}

.mh-count__num {
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: var(--mh-fs-3xl);
  line-height: 1.2;
  color: var(--mh-ink);
}

.mh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.mh-card {
  padding: 22px;
  border-radius: var(--mh-radius);
  background: var(--mh-white);
  border: 1px solid var(--mh-line);
}

.mh-card__kind {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mh-blue-pale);
  font-size: var(--mh-fs-xs);
  font-weight: 700;
  color: var(--mh-blue-deep);
}

.mh-card h3 {
  margin-top: 10px;
  font-size: var(--mh-fs-base);
  font-weight: 900;
  color: var(--mh-ink);
}

@media (max-width: 1024px) {
  .mh-headline-stats,
  .mh-fields,
  .mh-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mh-exhibitors__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mh-headline-stats,
  .mh-fields,
  .mh-counts,
  .mh-reach {
    grid-template-columns: 1fr;
  }
}


.mh-program__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.mh-program__head .mh-section-head {
  margin-bottom: 0;
}

.mh-program__more {
  font-size: var(--mh-fs-sm);
  font-weight: 700;
  color: var(--mh-blue);
  flex-shrink: 0;
}

/* 確定している内容だけをカードで示す。詳細タイムテーブルは注記で扱う。 */
.mh-program__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.mh-program__card {
  display: grid;
  gap: 8px;
  padding: 26px 24px;
  border-radius: var(--mh-radius-lg);
  background: var(--mh-white);
  border: 1px solid var(--mh-line);
}

.mh-program__card--accent {
  background: var(--mh-magenta-pale);
  border-color: transparent;
}

.mh-program__time {
  font-family: var(--mh-font-display);
  font-weight: 700;
  font-size: var(--mh-fs-lg);
  line-height: 1.2;
  color: var(--mh-blue);
}

.mh-program__card--accent .mh-program__time {
  color: var(--mh-magenta-deep);
}

.mh-program__badge {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mh-magenta);
  color: var(--mh-white);
  font-size: var(--mh-fs-xs);
  font-weight: 700;
}

.mh-program__card h3 {
  font-size: var(--mh-fs-md);
  font-weight: 900;
  color: var(--mh-ink);
}

.mh-program__card p {
  font-size: var(--mh-fs-sm);
  line-height: 1.85;
  color: var(--mh-body);
}

@media (max-width: 768px) {
  .mh-program__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mh-program__grid {
    grid-template-columns: 1fr;
  }
}


.mh-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.mh-archive-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 26px 24px;
  border-radius: var(--mh-radius-lg);
  background: var(--mh-white);
  border: 1px solid var(--mh-line);
  text-decoration: none;
  color: inherit;
}

a.mh-archive-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.mh-archive-card:hover {
  border-color: var(--mh-blue);
  box-shadow: 0 6px 18px rgba(27, 36, 48, 0.08);
  color: inherit;
  text-decoration: none;
}

.mh-archive-card__year {
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: var(--mh-fs-xl);
  line-height: 1;
  color: var(--mh-ink);
}

.mh-archive-card p {
  font-size: var(--mh-fs-sm);
  line-height: 1.85;
  color: var(--mh-body);
}

/* リンクのあるカードだけに「見る」の手がかりを出す。 */
.mh-archive-card__more {
  margin-top: 4px;
  font-size: var(--mh-fs-sm);
  font-weight: 700;
  color: var(--mh-blue);
}

@media (max-width: 768px) {
  .mh-archive-grid {
    grid-template-columns: 1fr;
  }
}


.mh-apply {
  background: var(--mh-blue);
  color: var(--mh-white);
  --mh-focus: var(--mh-white);
}

.mh-apply .mh-section__num {
  color: var(--mh-white);
}

.mh-apply .mh-title {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3.4vw, var(--mh-fs-3xl));
  line-height: 1.4;
  color: var(--mh-white);
}

.mh-apply__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px;
  align-items: center;
}

.mh-apply__lead {
  font-size: var(--mh-fs-base);
  line-height: 1.95;
  color: var(--mh-white);
  max-width: 34em;
}

.mh-apply__deadlines {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.mh-apply__deadline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-size: var(--mh-fs-sm);
  color: var(--mh-white);
}

.mh-apply__deadline dt {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mh-blue-deep);
  font-size: var(--mh-fs-xs);
  font-weight: 700;
  color: var(--mh-white);
}

.mh-apply__deadline--early dt {
  background: var(--mh-white);
  color: var(--mh-blue-deep);
}

.mh-apply__deadline dd {
  margin: 0;
  font-weight: 700;
}

.mh-apply__stack {
  display: grid;
  gap: 12px;
}

.mh-stack-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-radius: var(--mh-radius);
  font-weight: 700;
  font-size: var(--mh-fs-base);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mh-stack-btn span {
  font-family: var(--mh-font-display);
  font-weight: 700;
}

.mh-stack-btn--primary {
  background: var(--mh-white);
  color: var(--mh-blue-deep);
  font-weight: 900;
}

.mh-stack-btn--primary:hover {
  background: var(--mh-blue-pale);
  color: var(--mh-blue-deep);
  text-decoration: none;
}

.mh-stack-btn--secondary {
  background: var(--mh-blue-deep);
  color: var(--mh-white);
}

.mh-stack-btn--ghost {
  background: transparent;
  color: var(--mh-white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.mh-stack-btn--secondary:hover,
.mh-stack-btn--ghost:hover {
  background: var(--mh-white);
  color: var(--mh-blue-deep);
  box-shadow: none;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .mh-apply__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-stack-btn {
    transition: none;
  }
}


.mh-exhibit-overview__sub {
  font-size: var(--mh-fs-xl);
  font-weight: 900;
  line-height: 1.45;
  color: var(--mh-ink);
}

.mh-exhibit-overview__cta {
  margin-top: 8px;
  text-align: left;
}


.mh-access__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

/* パネルは magenta-deep。白文字で 6.5:1 を確保する（--mh-magenta では 4.5 を割る）。 */
.mh-access__panel {
  padding: 40px;
  border-radius: var(--mh-radius-lg);
  background: var(--mh-magenta-deep);
  color: var(--mh-white);
  --mh-focus: var(--mh-white);
}

.mh-access__panel .mh-section__num {
  color: rgba(255, 255, 255, 0.75);
}

.mh-access__panel .mh-title {
  margin: 8px 0 20px;
  color: var(--mh-white);
}

.mh-access__panel p,
.mh-access__panel address {
  font-style: normal;
  font-size: var(--mh-fs-sm);
  line-height: 1.95;
  color: var(--mh-white);
}

.mh-access__panel .mh-btn {
  margin-top: 24px;
}

.mh-access__facts {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- /access/ ページ --- */
.mh-access-card {
  display: grid;
  gap: 8px;
  padding: 28px;
  border-radius: var(--mh-radius-lg);
  background: var(--mh-blue-pale);
}

.mh-access-card address {
  font-style: normal;
  font-size: var(--mh-fs-lg);
  font-weight: 700;
  color: var(--mh-ink);
}

@media (max-width: 1024px) {
  .mh-access__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .mh-access__panel {
    padding: 28px 24px;
  }
}


.mh-contact-org {
  display: grid;
  gap: 8px;
  padding: 28px;
  border-radius: var(--mh-radius-lg);
  background: var(--mh-blue-pale);
  margin-bottom: 24px;
}

.mh-contact-org__name {
  font-size: var(--mh-fs-md);
  font-weight: 900;
  color: var(--mh-ink);
}

.mh-contact-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.mh-contact-list li {
  padding: 20px 22px;
  border-radius: var(--mh-radius);
  background: var(--mh-white);
  border: 1px solid var(--mh-line);
  border-left: 4px solid var(--mh-blue);
  font-size: var(--mh-fs-sm);
  line-height: 1.9;
}

.mh-contact-list__name {
  font-size: var(--mh-fs-base);
  font-weight: 900;
  color: var(--mh-ink);
}

.mh-contact-list a {
  font-weight: 700;
}
