@charset "UTF-8";
/*!
Theme Name: 課題設定型営業メディア
Theme URI: https://hojyokin-portal.jp/
Description: 補助金ポータルの課題設定型営業メディア用オリジナルテーマ。配色・書体は補助金ポータル本体に準拠。
Author: 補助金ポータル
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: hojyokin-media
*/

/* ============================================================
   1. トークン（補助金ポータル本体のCSSから実測）
   ============================================================ */
:root {
  --navy:        #052b58;
  --navy-soft:   #1a4573;
  --navy-deep:   #04203f;
  --green:       #00836a;
  --green-dark:  #005041;
  --green-light: #00a184;
  --ink:         #13181d;
  --muted:       #696969;
  --muted-light: #a3a5ab;
  --line:        #e4e9ef;
  --line-strong: #d1d8e0;
  --bg:          #f6f8f8;
  --tint-blue:   #eff3f7;
  --tint-green:  #e8f4f0;
  --red:         #98040f;
  --yellow:      #f3c921;
  --white:       #fff;

  --sans: "Montserrat", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
          "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --num:  "Montserrat", "DIN Alternate", sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 760px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(5,43,88,.06), 0 6px 20px rgba(5,43,88,.05);
}

/* ============================================================
   2. ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { line-height: 1.55; margin: 0; font-weight: 700; }
p, ul, ol, dl, figure { margin: 0; }

.hm-skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff; padding: 10px 18px; z-index: 100;
}
.hm-skip:focus { left: 10px; top: 10px; color: #fff; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.hm-container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.hm-container--narrow { max-width: var(--wrap-narrow); }
.hm-main { display: block; }
.hm-br-sp { display: none; }

/* ============================================================
   3. ボタン
   ============================================================ */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: .02em;
  text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .12s;
}
.hm-btn--accent { background: var(--green); color: #fff; }
.hm-btn--accent:hover { background: var(--green-light); color: #fff; transform: translateY(-1px); }
.hm-btn--navy { background: var(--navy); color: #fff; }
.hm-btn--navy:hover { background: var(--navy-soft); color: #fff; }
.hm-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.hm-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hm-btn--lg { padding: 16px 40px; font-size: 16.5px; border-radius: 10px; }

/* ============================================================
   4. ヘッダー
   ============================================================ */
.hm-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.hm-header__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 28px;
}
.hm-logo { margin: 0; flex: none; }
.hm-logo a { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.hm-logo__mark {
  width: 6px; height: 24px; border-radius: 3px;
  background: linear-gradient(var(--green), var(--navy));
}
.hm-logo__text { font-size: 17px; font-weight: 700; letter-spacing: .02em; }

.hm-nav { margin-left: auto; }
.hm-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hm-nav__list a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: var(--navy); font-size: 14.5px; font-weight: 600;
}
.hm-nav__list a:hover { background: var(--tint-blue); color: var(--navy); }
.hm-nav__list .current-menu-item > a,
.hm-nav__list .current-cat > a { box-shadow: inset 0 -3px 0 var(--green); }

.hm-header__cta { flex: none; padding: 10px 20px; font-size: 14px; }

/* ============================================================
   5. ヒーロー
   ============================================================ */
.hm-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1000px 460px at 78% -10%, rgba(0,131,106,.32), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 96px 0 104px;
}
.hm-hero__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.hm-hero__eyebrow {
  display: inline-block;
  font-family: var(--num);
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  color: #7fd7c4; margin-bottom: 20px;
}
.hm-hero__title {
  /* 幅に応じて滑らかに縮める。固定値だと中間幅で不自然に折り返す */
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 700; line-height: 1.45;
  letter-spacing: .005em; margin-bottom: 26px;
  /* 日本語を文節単位で折り返す（対応ブラウザのみ。非対応でも従来どおり） */
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
.hm-hero__title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(0,161,132,.55) 62%);
  padding-inline: 2px;
}
.hm-hero__lead { font-size: 16.5px; line-height: 2; color: #c8d7e6; margin-bottom: 36px; }
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hm-hero__note { font-size: 13px; color: #90a8c0; }

/* ============================================================
   6. セクション共通
   ============================================================ */
.hm-section { padding: 84px 0; }
.hm-section--tint { background: var(--bg); }
.hm-eyebrow {
  font-family: var(--num);
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  color: var(--green); margin-bottom: 10px;
}
.hm-h2 {
  position: relative;
  font-size: 31px; color: var(--navy);
  line-height: 1.5; margin-bottom: 20px;
  word-break: auto-phrase;
}
.hm-section__lead { color: var(--muted); font-size: 16px; margin-bottom: 44px; max-width: 800px; }
.hm-section__close {
  /* 中央寄せの節なので、左ボーダーではなく上に短いラインを引く */
  position: relative;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 26px 28px 0;
  text-align: center;
  font-size: 16.5px; line-height: 1.9;
}
.hm-section__close::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  width: 48px; height: 3px; border-radius: 2px;
  background: var(--green);
  transform: translateX(-50%);
}
.hm-section__close strong { color: var(--navy); }
.hm-empty { color: var(--muted); text-align: center; padding: 56px 0; }

/* ---- 問題提起：商談前・中・後の3フェーズカード ---- */
.hm-section__head { text-align: center; margin-bottom: 44px; }
.hm-section__head .hm-h2 { margin-bottom: 14px; }
.hm-section__sub { color: var(--muted); font-size: 15.5px; }

.hm-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.hm-phase {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex; flex-direction: column;
}
.hm-phase__label {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 16px; font-weight: 700; letter-spacing: .08em;
  padding: 14px 16px;
}
.hm-phase__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }

.hm-phase__img {
  margin: 0 0 24px;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
}
.hm-phase__img img { width: 100%; height: 100%; object-fit: contain; }

.hm-phase__title {
  font-size: 17.5px; color: var(--navy); line-height: 1.6;
  margin-bottom: 16px; word-break: auto-phrase;
}
.hm-phase__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hm-phase__list li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px; line-height: 1.7; color: var(--ink);
}
/* チェックマークはCSSで描く（アイコン画像を増やさない） */
.hm-phase__list li::before {
  content: "";
  position: absolute; left: 0; top: .22em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--green);
}
.hm-phase__list li::after {
  content: "";
  position: absolute; left: 6px; top: .5em;
  width: 7px; height: 3.5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---- 3ポイント ---- */
.hm-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hm-point {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 32px;
  box-shadow: var(--shadow);
}
.hm-point__num {
  font-family: var(--num); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; color: var(--green); margin-bottom: 12px;
}
.hm-point__title { font-size: 18.5px; color: var(--navy); margin-bottom: 12px; }
.hm-point p { font-size: 14.5px; color: var(--muted); line-height: 1.95; }

/* ============================================================
   7. CTA（資料請求）
   ============================================================ */
.hm-cta { color: #fff; }
.hm-cta--band {
  background:
    radial-gradient(760px 300px at 88% 0%, rgba(0,131,106,.34), transparent 60%),
    var(--navy);
  padding: 72px 0;
}
.hm-cta--card { background: var(--bg); padding: 72px 0; }
.hm-cta--card .hm-cta__inner {
  background:
    radial-gradient(760px 320px at 88% 0%, rgba(0,131,106,.34), transparent 60%),
    var(--navy);
  border-radius: 18px; padding: 56px 44px;
}
.hm-cta__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: 24px; text-align: center;
}
.hm-cta--card .hm-cta__inner { max-width: calc(var(--wrap) - 48px); }
.hm-cta__label {
  display: inline-block; background: var(--green); color: #fff;
  font-family: var(--num); font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  border-radius: 4px; padding: 5px 14px; margin-bottom: 18px;
}
.hm-cta__title { font-size: 32px; margin-bottom: 16px; }
.hm-cta__lead { color: #c8d7e6; font-size: 16px; margin-bottom: 30px; }
.hm-cta__note { font-size: 13px; color: #90a8c0; margin-top: 16px; }

/* ============================================================
   8. 記事リスト・カード
   ============================================================ */
/* ---- カテゴリカード（章立ての提示。記事が増えても長さが変わらない） ---- */
.hm-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.hm-cat {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 24px 22px 20px;
  color: inherit; transition: border-color .2s, box-shadow .2s, transform .12s;
}
.hm-cat:hover {
  border-color: var(--green); box-shadow: var(--shadow);
  transform: translateY(-2px); color: inherit;
}
.hm-cat__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 4px;
  border-radius: 12px; background: var(--tint-blue);
  transition: background-color .2s;
}
.hm-cat:hover .hm-cat__icon { background: var(--tint-green); }
.hm-cat__icon img {
  width: 40px; height: 40px; object-fit: contain;
  mix-blend-mode: multiply;   /* 白背景の書き出しを地になじませる */
}
.hm-cat__name { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.hm-cat__desc { font-size: 13px; color: var(--muted); line-height: 1.8; }
/* リンクであることを明示する（カード全体がクリック可能） */
.hm-cat__link {
  margin-top: auto; padding-top: 14px;
  font-size: 13.5px; font-weight: 700; color: var(--green);
  display: inline-flex; align-items: center; gap: 5px;
}
.hm-cat__link::after {
  content: "→";
  transition: transform .2s;
}
.hm-cat:hover .hm-cat__link::after { transform: translateX(4px); }

/* ---- アーカイブのカテゴリ回遊 ---- */
.hm-catnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.hm-catnav__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white); color: var(--navy);
  font-size: 13.5px; font-weight: 600;
}
.hm-catnav__item span { font-family: var(--num); font-size: 11.5px; color: var(--muted-light); }
.hm-catnav__item:hover { border-color: var(--green); color: var(--green-dark); }
.hm-catnav__item.is-current {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.hm-catnav__item.is-current span { color: #93a8bd; }

/* ---- 小見出し＋もっと見る ---- */
.hm-subhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 12px; margin-bottom: 22px;
  border-bottom: 2px solid var(--line-strong);
}
.hm-h3 {
  position: relative; display: flex; align-items: center; gap: 12px;
  font-size: 19px; color: var(--navy);
}
.hm-h3::before {
  content: ""; width: 5px; height: 20px; border-radius: 3px;
  background: var(--green); flex: none;
}
.hm-more { font-size: 14px; font-weight: 700; white-space: nowrap; }
.hm-more::after { content: " →"; }

/* ---- 記事カードのメタ ---- */
.hm-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hm-card__cat {
  display: inline-block; background: var(--tint-green); color: var(--green-dark);
  font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 3px 10px;
}


/* ---- CASEボックス ---- */
.hm-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.hm-case {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px 26px 26px;
  box-shadow: var(--shadow);
}
.hm-case__client {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 4px;
  padding: 4px 12px; margin-bottom: 14px;
}
.hm-case__quote {
  position: relative;
  margin: 0 0 18px; padding: 0 0 0 18px;
  border-left: 3px solid var(--line-strong);
  font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.7;
}
.hm-case__flow { margin: 0; display: grid; gap: 12px; }
.hm-case__row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.hm-case__row dt {
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--muted-light); border-radius: 4px;
  padding: 3px 8px; text-align: center;
}
.hm-case__row dd { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink); }
.hm-case__row--miss dt { background: #b6772c; }
.hm-case__row--miss dd { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.hm-case__row--cause dt { background: var(--green); }
.hm-case__row--cause dd { font-weight: 700; color: var(--navy); }
.hm-case__more { text-align: center; margin-top: 36px; }

.hm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hm-list__item > a {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px 26px;
  color: inherit; transition: border-color .2s, box-shadow .2s, transform .12s;
}
.hm-list__item > a:hover {
  border-color: var(--green); box-shadow: var(--shadow);
  transform: translateY(-1px); color: inherit;
}
.hm-list__no {
  font-family: var(--num); font-size: 26px; font-weight: 700;
  color: var(--line-strong); line-height: 1.2; flex: none; min-width: 44px;
}
.hm-list__item > a:hover .hm-list__no { color: var(--green); }
.hm-list__body { display: block; }
.hm-list__title { display: block; font-size: 17.5px; font-weight: 700; color: var(--navy); line-height: 1.65; }
.hm-list__excerpt { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.85; }

.hm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hm-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-card > a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 30px;
  color: inherit; transition: border-color .2s, box-shadow .2s, transform .12s;
}
.hm-card > a:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.hm-card__badge {
  display: inline-block; background: var(--tint-green); color: var(--green-dark);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  border-radius: 4px; padding: 4px 12px; margin-bottom: 14px;
}
.hm-card__title { font-size: 20px; color: var(--navy); line-height: 1.6; margin-bottom: 12px; }
.hm-card__excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.9; }
.hm-cards--3 .hm-card__excerpt { flex: 1; }
.hm-card__more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 16px;
  font-size: 14px; font-weight: 700; color: var(--green);
}
.hm-card__more::after { content: "→"; transition: transform .2s; }
.hm-card > a:hover .hm-card__more::after { transform: translateX(4px); }
/* カード全体がリンクであることを、カーソルでも示す */
.hm-card > a, .hm-cat { cursor: pointer; }

/* ============================================================
   9. 記事ページ
   ============================================================ */
.hm-pagehead { background: var(--bg); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.hm-pagehead__title { font-size: 30px; color: var(--navy); }
.hm-pagehead__lead { margin-top: 12px; color: var(--muted); font-size: 15px; }

.hm-breadcrumb { font-size: 12.5px; color: var(--muted-light); margin-bottom: 16px; }
.hm-breadcrumb a { color: var(--muted); }
.hm-breadcrumb span { margin-inline: 8px; }
.hm-breadcrumb--onDark { color: #90a8c0; }
.hm-breadcrumb--onDark a { color: #c8d7e6; }

.hm-article__head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.hm-series {
  display: inline-flex; align-items: baseline; gap: 10px;
  background: var(--tint-green); color: var(--green-dark);
  border-radius: 999px; padding: 5px 18px;
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.hm-series .num { font-family: var(--num); font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.hm-article__title {
  font-size: 34px; color: var(--navy); line-height: 1.5;
  word-break: auto-phrase;
}
.hm-article__lead { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.95; }
.hm-article__meta {
  margin-top: 18px; font-family: var(--num);
  font-size: 12.5px; color: var(--muted-light); letter-spacing: .04em;
}
.hm-article__updated { margin-left: 14px; }
.hm-article__thumb { margin: 40px 0 0; border-radius: var(--radius); overflow: hidden; }

/* ---- 本文タイポグラフィ ---- */
.hm-content { padding: 52px 0 8px; font-size: 16.5px; line-height: 2.05; }
.hm-content > * + * { margin-top: 1.7em; }
.hm-content h2 {
  position: relative;
  font-size: 25px; color: var(--navy); line-height: 1.55;
  border-bottom: 2px solid var(--line-strong);
  padding: 0 0 13px 17px;
  margin-top: 2.8em;
}
.hm-content h2::before {
  content: ""; position: absolute;
  left: 0; top: .16em; bottom: 15px;
  width: 5px; border-radius: 3px; background: var(--green);
}
.hm-content h3 {
  font-size: 20px; color: var(--navy);
  border-left: 3px solid var(--green);
  padding-left: 13px; margin-top: 2.3em;
}
.hm-content h4 { font-size: 17.5px; color: var(--ink); margin-top: 2em; }
.hm-content strong { color: var(--navy); font-weight: 700; }
.hm-content a { text-decoration: underline; text-underline-offset: 3px; }
.hm-content ul, .hm-content ol { padding-left: 1.5em; }
.hm-content li { margin-bottom: .55em; }
.hm-content ul > li::marker { color: var(--green); }
.hm-content ol > li::marker { color: var(--green); font-weight: 700; }
.hm-content blockquote {
  background: var(--tint-blue); border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0; padding: 20px 24px; color: var(--ink);
}
.hm-content blockquote > * + * { margin-top: 1em; }
.hm-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hm-content th, .hm-content td { border: 1px solid var(--line-strong); padding: 10px 14px; text-align: left; }
.hm-content th { background: var(--tint-blue); color: var(--navy); font-weight: 600; }
.hm-content code {
  background: var(--tint-blue); border-radius: 4px;
  padding: 2px 6px; font-size: .92em;
}
.hm-content figure img { border-radius: 8px; }
.hm-content hr { border: none; border-top: 1px solid var(--line); margin: 3em 0; }

.hm-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 36px 0 0; padding: 0; }
.hm-tags a {
  display: inline-block; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 14px; font-size: 13px; color: var(--muted);
}
.hm-tags a:hover { border-color: var(--green); color: var(--green); }

/* ---- 前後の記事 ---- */
.hm-pagenav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 48px; }
.hm-pagenav__item {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 22px; color: inherit; transition: border-color .2s;
}
.hm-pagenav__item:hover { border-color: var(--green); color: inherit; }
.hm-pagenav__item--next { text-align: right; grid-column: 2; }
.hm-pagenav__label { display: block; font-size: 12px; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.hm-pagenav__title { display: block; font-size: 15px; color: var(--navy); font-weight: 700; line-height: 1.6; }

/* ---- ページネーション ---- */
.hm-pagination { margin-top: 44px; }
.hm-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hm-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding-inline: 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--navy); font-family: var(--num); font-weight: 600;
}
.hm-pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.hm-pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ============================================================
   10. ホワイトペーパー
   ============================================================ */
.hm-wp__head {
  background:
    radial-gradient(820px 340px at 82% -20%, rgba(0,131,106,.32), transparent 62%),
    linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #fff; padding: 40px 0 64px;
}
.hm-wp__label {
  display: inline-block; background: var(--green); color: #fff;
  font-family: var(--num); font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  border-radius: 4px; padding: 5px 14px; margin-bottom: 18px;
}
.hm-wp__title { font-size: 36px; line-height: 1.45; }
.hm-wp__lead { margin-top: 18px; color: #c8d7e6; font-size: 16px; max-width: 720px; }

.hm-wp__body {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  gap: 44px; align-items: start; padding-block: 56px;
}
.hm-wp__main .hm-content { padding-top: 0; }
.hm-wp__cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 32px; }
.hm-wp__form {
  position: sticky; top: 88px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.hm-wp__formTitle {
  font-size: 19px; color: var(--navy);
  padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 2px solid var(--green);
}
.hm-wp__prep { color: var(--muted); font-size: 14.5px; }

/* プラグイン側フォームの枠を、この面に合わせて外す */
.hm-wp__form .hsm-form-wrap { margin: 0; }
.hm-wp__form .hsm-form { border: none; padding: 0; border-radius: 0; }
.hm-wp__form .hsm-grid { grid-template-columns: 1fr; }

/* ---- 事例メタ ---- */
.hm-caseMeta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; margin-top: 36px;
}
.hm-caseMeta > div { background: var(--white); padding: 16px 20px; }
.hm-caseMeta dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.hm-caseMeta dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); }

/* ============================================================
   11. フッター
   ============================================================ */
.hm-footer { background: var(--navy); color: #c8d7e6; margin-top: 0; }
.hm-footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 56px 24px 40px;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.hm-footer__name { font-size: 18px; font-weight: 700; color: #fff; }
.hm-footer__desc { margin-top: 8px; font-size: 14px; color: #90a8c0; }
.hm-footer__by { margin-top: 14px; font-size: 13.5px; }
.hm-footer__by a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hm-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.hm-footer__list a { color: #c8d7e6; font-size: 14px; }
.hm-footer__list a:hover { color: #fff; }
.hm-footer__note { margin-top: 14px; font-size: 12px; color: #7c93ab; max-width: 380px; line-height: 1.8; }
.hm-copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 24px; text-align: center;
  font-family: var(--num); font-size: 12px; color: #7c93ab; letter-spacing: .04em;
}

/* ============================================================
   12. 404
   ============================================================ */
.hm-404 { text-align: center; }
.hm-404__code { font-family: var(--num); font-size: 76px; font-weight: 700; color: var(--line-strong); line-height: 1; }
.hm-404 p { margin-top: 18px; }

/* ============================================================
   13. レスポンシブ
   ============================================================ */
@media (max-width: 1023px) {
  .hm-hero { padding: 72px 0 80px; }
  .hm-hero__title { font-size: 36px; }
  .hm-points { grid-template-columns: 1fr; }
  .hm-wp__body { grid-template-columns: 1fr; }
  .hm-wp__form { position: static; }
  .hm-section { padding: 64px 0; }
  .hm-h2 { font-size: 27px; }
}

@media (max-width: 820px) {
  .hm-header__inner { flex-wrap: wrap; gap: 12px 16px; }
  .hm-nav { order: 3; width: 100%; margin-left: 0; }
  .hm-nav__list { overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .hm-nav__list a { white-space: nowrap; padding: 6px 12px; }
  .hm-header__cta { margin-left: auto; }
  .hm-cards { grid-template-columns: 1fr; }
  .hm-pagenav { grid-template-columns: 1fr; }
  .hm-pagenav__item--next { grid-column: 1; text-align: left; }
}

@media (max-width: 1023px) {
  .hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hm-cats { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; margin-bottom: 44px; }
  .hm-cases { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hm-cards--3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hm-phases { grid-template-columns: 1fr; gap: 18px; max-width: 560px; margin-inline: auto; }
  .hm-phase__img { aspect-ratio: 16 / 9; margin-bottom: 18px; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .hm-section__head { margin-bottom: 30px; }
  .hm-section__sub { font-size: 14.5px; text-align: left; }
  .hm-phase__body { padding: 20px 20px 24px; }
  .hm-section__close { text-align: left; }
  .hm-subhead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hm-case { padding: 20px 20px 22px; }
  .hm-case__row { grid-template-columns: 1fr; gap: 4px; }
  .hm-case__row dt { justify-self: start; padding: 3px 10px; }
  .hm-container { padding-inline: 18px; }
  .hm-br-pc { display: none; }
  .hm-br-sp { display: inline; }

  .hm-hero { padding: 56px 0 64px; }
  .hm-hero__inner { padding-inline: 18px; }
  .hm-hero__title { font-size: 27px; line-height: 1.5; }
  .hm-hero__lead { font-size: 15px; }
  .hm-hero__actions { flex-direction: column; align-items: stretch; }
  .hm-btn--lg { padding: 15px 24px; font-size: 15.5px; }

  .hm-section { padding: 48px 0; }
  .hm-h2 { font-size: 22px; }
  .hm-section__lead { font-size: 15px; margin-bottom: 30px; }


  .hm-cta--band, .hm-cta--card { padding: 52px 0; }
  .hm-cta--card .hm-cta__inner { padding: 36px 22px; border-radius: 14px; }
  .hm-cta__title { font-size: 23px; }
  .hm-cta__lead { font-size: 15px; }

  .hm-list__item > a { padding: 18px; gap: 14px; }
  .hm-list__no { font-size: 21px; min-width: 34px; }
  .hm-list__title { font-size: 16px; }

  .hm-article__title { font-size: 25px; }
  .hm-content { padding-top: 36px; font-size: 15.5px; line-height: 1.95; }
  .hm-content h2 { font-size: 20px; padding-left: 14px; }
  .hm-content h3 { font-size: 17.5px; }

  .hm-wp__title { font-size: 26px; }
  .hm-wp__form { padding: 22px 18px; }
  .hm-footer__inner { flex-direction: column; gap: 28px; padding: 40px 18px 32px; }
}

/* ============================================================
   14. 画像
   ============================================================ */
/* ヒーロー：左テキスト／右ビジュアルの2カラム */
.hm-hero__inner {
  /* キービジュアルが背面に入るので、テキストは前面の1カラムに戻す */
  position: relative;
  z-index: 1;
}
.hm-hero__text { min-width: 0; max-width: 720px; }

/* 本文中・セクション内の図版 */
.hm-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.hm-figure img { width: 100%; height: auto; display: block; }
.hm-figure--wide { margin-top: 40px; }

/* テキスト＋画像の横並び */
.hm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 44px;
}
.hm-split__text { margin-bottom: 0; max-width: none; }

/* 記事のアイキャッチ */
.hm-article__thumb {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hm-article__thumb img { width: 100%; height: auto; display: block; }

/* 一覧カードのサムネイル */
.hm-card__thumb {
  /* テンプレート側が <span> なので、明示しないと inline のまま比率が効かない */
  display: block;
  margin: -28px -26px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}
.hm-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1023px) {
  .hm-split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .hm-hero__visual { border-radius: 12px; }
  .hm-figure--wide { margin-top: 28px; }
  .hm-card__thumb { margin: -28px -18px 16px; }
}

/* ============================================================
   キービジュアル（等角アニメーション）
   ============================================================ */
.hm-kv {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hm-kv svg { width: 100%; height: 100%; display: block; }

/* 狭い画面ではSVGが中央でトリミングされ、街がテキストに重なる。
   スクリムを重ねて背景テクスチャの位置まで後退させる。 */
.hm-kv::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 43, 88, .30) 0%, rgba(5, 43, 88, .78) 60%);
  opacity: 0;
  transition: opacity .2s;
}
@media (max-width: 900px) {
  .hm-kv::after { opacity: 1; }
}

/* 全体をごくゆっくり漂わせる（カメラの微動） */
.hm-kv .kv-city {
  animation: kv-drift 26s ease-in-out infinite alternate;
  transform-origin: 50% 40%;
}
@keyframes kv-drift {
  from { transform: translate3d(-8px, 4px, 0) scale(1.006); }
  to   { transform: translate3d(8px, -4px, 0) scale(1); }
}

/* ブロックごとに位相をずらして上下に揺らす */
.hm-kv .kv-b { animation: kv-bob 9s ease-in-out infinite; }
.hm-kv .kv-b0 { animation-delay: 0s;    animation-duration: 9s;  }
.hm-kv .kv-b1 { animation-delay: -1.4s; animation-duration: 11s; }
.hm-kv .kv-b2 { animation-delay: -2.9s; animation-duration: 8s;  }
.hm-kv .kv-b3 { animation-delay: -4.2s; animation-duration: 12s; }
.hm-kv .kv-b4 { animation-delay: -5.6s; animation-duration: 10s; }
.hm-kv .kv-b5 { animation-delay: -7.1s; animation-duration: 13s; }
@keyframes kv-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* 経路の破線を流す */
.hm-kv .kv-route { animation: kv-flow 2.2s linear infinite; }
@keyframes kv-flow { to { stroke-dashoffset: -14; } }

/* 立ち上る粒子 */
.hm-kv .kv-spark {
  animation: kv-rise var(--t, 9s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: 0;
}
@keyframes kv-rise {
  0%        { transform: translateY(0);     opacity: 0; }
  12%       {                               opacity: .85; }
  70%       {                               opacity: .5; }
  100%      { transform: translateY(-140px); opacity: 0; }
}

/* 動きを減らす設定の環境では、静止画として見せる */
@media (prefers-reduced-motion: reduce) {
  .hm-kv .kv-city,
  .hm-kv .kv-b,
  .hm-kv .kv-route,
  .hm-kv .kv-spark { animation: none; }
  .hm-kv .kv-spark { opacity: .55; }
  .hm-kv .kv-marker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
