@charset "utf-8";
/* ==================================================================
   Interface 2026 — サイト固有スタイル（唯一のシェル CSS）

   設計の前提（写真素材が p-text.jpg / model-image.jpg の2枚しかない）
     - 白い角丸カード＋影の語彙は使わない。box-shadow は1行も書かない。
     - 区切りは「セクション間の余白」「見出し下の 1px 罫線＋赤 3px ライン」
       「1px 罫線グリッド」の3手段だけ。
     - 赤（accent-1）は面で塗らない。線・小さな印・主CTAのピル1個に限定する。
     - 淡色パネルは片角だけ 200px の巨大 R を当て、写真の代わりの造形にする。
     - 和文見出しは 26px / weight 600 が上限。強さは行送り・字間・行長・余白で補う。

   色・フォント・余白の「基本値」は theme.json 側に定義があります。
   ここでは theme.json のプリセットを参照しつつ、必ずフォールバック値を持たせ、
   theme.json では表現できない構造・状態・モーションだけを記述します。

   目次
     01. トークン（ブリッジ変数）
     02. ベース／共通ユーティリティ
     03. ヘッダー（追従・縮小・格納）／ロゴ／グローバルナビ
     04. パンくず
     05. セクション骨格（if-section / tint / 巨大R / 反転）
     06. セクション見出し（if-sechd）
     07. レイアウト（if-split / if-media-sticky / if-panel-navy）
     08. 実績数値（if-facts）
     09. 罫線行（if-rows / if-row）
     10. 新着情報（if-news）
     11. ボタン・リンク・矢印
     12. 画像枠（if-frame）
     13. ヒーロー（if-hero）
     14. お問い合わせ帯（if-cta）
     15. フッター（if-footer）
     16. 関連サービス（if-cards / バナー）
     17. 本文（.entry-content ＝ 旧クラシック HTML 対応）／表／フォーム
     18. ページトップ／スクロール演出
     19. 旧クラス互換（最小限）
     20. 印刷
   ================================================================== */

/* ------------------------------------------------------------------
   01. トークン（ブリッジ変数）
   theme.json のプリセットを参照しつつ、必ずフォールバック値を持たせる。
   （エディター内やプリセット未生成の場面でも色が消えないようにするため）
   ------------------------------------------------------------------ */
:root {
  /* --- 色 --- */
  --if-base:       var(--wp--preset--color--base, #ffffff);
  --if-ink:        var(--wp--preset--color--contrast, #151a21);
  --if-brand:      var(--wp--preset--color--accent-1, #d0102a);
  --if-brand-soft: var(--wp--preset--color--accent-2, #fdeeee);
  --if-navy:       var(--wp--preset--color--accent-3, #0b1a2e);
  --if-muted:      var(--wp--preset--color--accent-4, #5f6a78);
  --if-tint:       var(--wp--preset--color--accent-5, #eef2f7);  /* 淡色パネル地 */
  --if-surface:    var(--wp--preset--color--accent-6, #f6f8fb);  /* 極淡（行ホバー・表の縞） */
  --if-brand-dark: var(--wp--preset--color--brand-dark, #a00b20);
  --if-link:       var(--wp--preset--color--link, #1d4ed8);

  /* 罫線はサイト全体でこの2値だけ。1px solid var(--if-line) 以外を作らない */
  --if-line:       var(--wp--preset--color--line, #e2e5ea);
  --if-line-inv:   var(--wp--preset--color--line-inv, rgba(255, 255, 255, .16));

  /* 見出しの文字色。反転面ではこの1変数だけを差し替える
     （セレクタの詳細度の勝ち負けで白文字が消える事故を防ぐため）。 */
  --if-hd: var(--if-navy);

  /* --- 書体 --- */
  --if-font-jp: var(--wp--preset--font-family--sans, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, sans-serif);
  --if-font-en: "Lato", "Inter", "Helvetica Neue", Arial, var(--if-font-jp);

  /* --- 余白（theme.json の spacingSizes に追随。フォールバックは確定仕様値） --- */
  --if-sp-20: var(--wp--preset--spacing--20, 8px);
  --if-sp-30: var(--wp--preset--spacing--30, 16px);
  --if-sp-40: var(--wp--preset--spacing--40, 24px);
  --if-sp-50: var(--wp--preset--spacing--50, clamp(24px, 4vw, 32px));
  --if-sp-60: var(--wp--preset--spacing--60, clamp(32px, 5vw, 48px));
  --if-sp-70: var(--wp--preset--spacing--70, clamp(56px, 7vw, 96px));
  --if-sp-80: var(--wp--preset--spacing--80, clamp(72px, 10vw, 128px));

  /* --- 角丸は4値だけ（2 / 4 / 999 / 200）。影は none のまま --- */
  --if-r-tag:   2px;
  --if-r-img:   4px;
  --if-r-pill:  var(--wp--custom--radius--pill, 999px);
  --if-r-panel: 200px;

  /* --- ヘッダー高 ---
     --if-header-h  : レイアウト計算用の固定値（スクロールしても変えない）
     --if-header-hc : 実際の描画高（スクロールで 88 → 76px に縮む） */
  --if-header-h:  88px;
  --if-header-hc: var(--if-header-h);

  /* --- イージング（ease-out 系のみ） --- */
  --if-ease:       cubic-bezier(.33, 1, .68, 1);
  --if-ease-arrow: cubic-bezier(.65, .01, .3, .97);

  /* --- 矢印（mask で色を差し替えて使う。SVG 自体の色は無関係） --- */
  --if-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='square'%3E%3Cpath d='M3.5 12h16M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  :root {
    --if-header-h: 60px;
    --if-r-panel: 72px;
  }
}

/* 反転面（紺地）では罫線と補助文字だけを差し替える。
   これで if-rows / if-row などの共通部品がそのまま反転面で使える。 */
.if-section--inv,
.if-panel-navy,
.if-footer {
  --if-line: var(--if-line-inv);
  --if-muted: rgba(255, 255, 255, .62);
  --if-hd: #ffffff;
}

/* ------------------------------------------------------------------
   02. ベース／共通ユーティリティ
   ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

/* 本文既定：16px / 行送り 1.9 / 字間 .04em ＋ palt。
   小さい見出しを成立させるための4点セット（行送り・字間・行長・余白）の土台。 */
html body {
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.if-nav-open { overflow: hidden; }

/* wp:html ブロックの画像はフロントでラッパークラスを持たないため、
   ここで全画像に対して縦伸びを防ぐ担保を入れる（width/height 属性対策）。 */
img,
svg,
video,
iframe { max-width: 100%; }
img { height: auto; }

/* 見出しは 600 止まり（theme.json 側の 700 が残っていても上書きする）。
   700 以上は英数字（if-row__no / if-sechd__en）にだけ許可する。 */
:is(h1, h2, h3, h4, h5, h6) {
  font-weight: 600;
  letter-spacing: .02em;
}

[id] { scroll-margin-top: calc(var(--if-header-h) + 16px); }

:focus-visible {
  outline: 2px solid var(--if-link);
  outline-offset: 2px;
}

/* 区切り線の色（core/separator は currentColor を使う）
   ※セクション間に <hr> を置く設計はしない。本文中の名残への保険。 */
.wp-block-separator { color: var(--if-line); border: 0; border-top: 1px solid currentColor; opacity: 1; }

/* 汎用 */
.if-en { font-family: var(--if-font-en); }
.if-accent { color: var(--if-brand); }
.if-muted { color: var(--if-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------------------------------------------
   03. ヘッダー（追従＋縮小＋下スクロールで格納）

   状態クラスは assets/js/theme.js が body に付ける（is-scrolled /
   is-scrolled-down）。旧実装の .if-header.is-scrolled も併記して受ける。
   高さは min-height で持たせているので、2段組みヘッダーでも破綻しない。
   ------------------------------------------------------------------ */
.if-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--if-base);
  border-bottom: 1px solid transparent;
  transition:
    min-height .45s var(--if-ease),
    border-color .3s var(--if-ease),
    translate .6s var(--if-ease);
  min-height: var(--if-header-hc);
}

/* 内側の帯（ロゴ・電話・ナビを1行に収める） */
.if-header__bar,
.if-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--if-sp-40);
  min-height: var(--if-header-hc);
  transition: min-height .45s var(--if-ease);
}
/* 仕様の「内側左右 44px」。
   .if-header__bar（align:wide の中に置く旧マークアップ）は WordPress の
   レイアウト側で左右余白が付くため、こちらには padding を足さない。 */
.if-header__inner { padding-inline: clamp(16px, 3vw, 44px); }

/* 1段目の右側（電話 ＋ お問い合わせ）。縦位置を揃えて右端に寄せる。 */
.if-header__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--if-sp-40);
}

/* ヘッダーの CTA。
   トップの主 CTA（.if-btn／280×64px）ではなく core/button を使うので、
   88px の帯に収まる寸法へここで詰める。赤い塗りは theme.json の
   elements.button が持つため、ここでは触らない。 */
.if-header__cta { display: flex; }
.if-header__cta .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--if-r-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .if-header__side { gap: var(--if-sp-30); }
  .if-header__cta .wp-block-button__link { min-height: 40px; padding: 8px 18px; font-size: 13px; }
}

/* 縮小（88 → 76px）と罫線の出現 */
body.is-scrolled { --if-header-hc: 76px; }
body.is-scrolled .if-header,
.if-header.is-scrolled { border-bottom-color: var(--if-line); }
.if-header.is-scrolled { --if-header-hc: 76px; }

/* 下スクロールで格納。SP（<900px）では隠さない。 */
body.is-scrolled-down .if-header { translate: 0 -110%; }
@media (max-width: 899px) {
  body.is-scrolled-down .if-header { translate: none; }
  body.is-scrolled { --if-header-hc: var(--if-header-h); }
}

/* --- ロゴ（赤い縦棒 ＋ Interface のテキスト表現） --- */
.if-logo { line-height: 1.2; }
.if-logo p { margin: 0; }

.if-logo__brand a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--if-font-en);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--if-ink);
  text-decoration: none;
  transition: color .4s var(--if-ease);
}
.if-logo__brand a:hover { color: var(--if-muted); transition-duration: .4s; }
.if-logo__brand a:not(:hover) { transition-duration: 0s; }

/* ロゴマーク＝赤い縦棒。ヒーローの if-hero__bar と同型で、
   サイトのブランド記号を「1本の赤い縦棒」に集約する。 */
.if-logo__brand a::before {
  content: "";
  display: block;
  flex: none;
  width: 5px;
  height: 1.05em;
  background: var(--if-brand);
}

.if-logo__tagline,
.if-logo__name {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--if-muted);
  white-space: nowrap;
}
.if-logo__tagline {
  overflow: hidden;
  max-height: 1.6em;
  transition: max-height .45s var(--if-ease), opacity .3s var(--if-ease);
}
body.is-scrolled .if-logo__tagline,
.if-header.is-scrolled .if-logo__tagline { max-height: 0; opacity: 0; }

@media (max-width: 600px) {
  .if-logo__tagline { display: none; }
  .if-logo__brand a { font-size: 19px; }
}

/* --- ヘッダー右の電話 --- */
.if-header__tel-label {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--if-muted);
}
.if-header__tel-num {
  font-family: var(--if-font-en);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--if-navy);
  font-variant-numeric: tabular-nums;
}
.if-header__tel-num a { color: inherit; text-decoration: none; }
@media (max-width: 1080px) { .if-header__tel { display: none; } }

/* --- グローバルナビ ---
   カレントは「下線」ではなく上辺 3px の赤バー。 */
.if-nav .wp-block-navigation__container { gap: clamp(12px, 1.8vw, 28px); }

.if-nav .wp-block-navigation-item,
.if-nav__item { position: relative; }

.if-nav .wp-block-navigation-item__content,
.if-nav__item > a {
  position: relative;
  display: block;
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--if-ink);
  white-space: nowrap;
  text-decoration: none;
  transition: color .4s var(--if-ease);
}
.if-nav .wp-block-navigation-item__content:not(:hover),
.if-nav__item > a:not(:hover) { transition-duration: 0s; }
.if-nav .wp-block-navigation-item__content:hover,
.if-nav__item > a:hover { color: var(--if-muted); }

.if-nav .current-menu-item::before,
.if-nav .current_page_item::before,
.if-nav .current-menu-ancestor::before,
.if-nav__current::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--if-brand);
}

/* モバイルのオーバーレイメニュー内では上辺バーを出さない */
.if-nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item::before { content: none; }

/* ------------------------------------------------------------------
   04. パンくず
   ------------------------------------------------------------------ */
.if-crumbs-bar { border: 0; }
.if-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--if-muted);
}
.if-crumbs li { display: inline-flex; align-items: center; }
.if-crumbs li + li::before { content: "／"; margin: 0 .5em; opacity: .5; }
.if-crumbs a { color: var(--if-muted); text-decoration: none; transition: color .4s var(--if-ease); }
.if-crumbs a:not(:hover) { transition-duration: 0s; }
.if-crumbs a:hover { color: var(--if-ink); }
.if-crumbs [aria-current="page"] { color: var(--if-ink); }

/* ------------------------------------------------------------------
   05. セクション骨格

   セクション間の余白は if-section の上下 padding 1箇所で管理する
   （margin は使わない＝上下対称 padding）。
   ------------------------------------------------------------------ */
.if-section {
  padding-block: var(--if-sp-70);
  position: relative;
}

/* 淡色パネル。1ページ2回まで／連続2枚は禁止。 */
.if-section--tint { background: var(--if-tint); }

/* 片角だけ巨大 R。ページを下るごとに tr → tl と交互に反転させる。
   写真の代わりの唯一の造形装置。 */
.if-section--r-tr { border-radius: 0 var(--if-r-panel) 0 0; }
.if-section--r-tl { border-radius: var(--if-r-panel) 0 0 0; }

/* 紺ベタ反転（セミナー1箇所のみ）。下を厚くする非対称パディング。 */
.if-section--inv {
  background: var(--if-navy);
  color: #fff;
  padding-block: var(--if-sp-70) var(--if-sp-80);
}
.if-section--inv :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.if-section--inv .if-sechd { border-bottom-color: var(--if-line-inv); }
.if-section--inv .if-sechd__en { color: rgba(255, 255, 255, .6); }
.if-section--inv .if-sechd__desc,
.if-section--inv .if-row__text { color: rgba(255, 255, 255, .72); }
.if-section--inv .if-row__no { color: rgba(255, 255, 255, .5); }
.if-section--inv .if-row:hover { background: rgba(255, 255, 255, .05); }
.if-section--inv .if-link { color: #fff; }
.if-section--inv .if-link__icon { border-color: var(--if-line-inv); }

/* ------------------------------------------------------------------
   06. セクション見出し（英字ラベルが上、和文見出しが下の2段構造）

   ※ 見出しの max-width は px で指定する。em だと文字サイズに対して容器が
     狭くなり、1文字だけ次行に落ちる。
   ------------------------------------------------------------------ */
.if-sechd {
  position: relative;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--if-line);
}
.if-sechd::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: var(--if-brand);
  transform-origin: left center;
  transition: transform .6s .1s var(--if-ease);
}

.if-sechd__en,
.if-eyebrow {
  margin: 0 0 8px;
  font-family: var(--if-font-en);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
  color: var(--if-muted);
}

.if-sechd h2,
.if-sechd .wp-block-heading {
  margin: 0;
  max-width: 560px;
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--if-hd);
}

.if-sechd__desc {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--if-muted);
}
.if-sechd + * { margin-top: var(--if-sp-60); }

@media (max-width: 900px) {
  .if-sechd { padding-bottom: 16px; }
  .if-sechd::after { width: 36px; }
  .if-sechd h2,
  .if-sechd .wp-block-heading { max-width: 100%; }
}

/* ------------------------------------------------------------------
   07. レイアウト部品
   ------------------------------------------------------------------ */

/* --- 見出し左固定・本文右の2カラム（26% : 74%） --- */
.if-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px 64px;
  align-items: start;
}
.if-split > * { margin-block: 0; }
.if-split__head { display: grid; gap: 28px; align-content: start; }
.if-split__body { min-width: 0; }

@media (min-width: 1024px) {
  .if-split__head--sticky {
    position: sticky;
    top: calc(var(--if-header-h) + 32px);
  }
}
@media (max-width: 900px) {
  .if-split { grid-template-columns: 1fr; gap: 32px; }
}

/* --- 画像を左に貼り付けて右のテキストを流す（model-image.jpg 用） --- */
.if-media-sticky {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 64px;
  align-items: start;
}
.if-media-sticky > * { margin-block: 0; }
.if-media-sticky__body { min-width: 0; display: grid; gap: var(--if-sp-60); }

@media (min-width: 1024px) {
  .if-media-sticky__media {
    position: sticky;
    top: calc(var(--if-header-h) + 32px);
    max-height: calc(100vh - var(--if-header-h) - 64px);
  }
}
@media (max-width: 1023px) {
  .if-media-sticky { grid-template-columns: 1fr; gap: 32px; }
  .if-media-sticky__media { max-width: 520px; }
}

/* --- 紺パネル（レジュメ実物 p-text.jpg を「置く」） --- */
.if-panel-navy {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 96px 48px 128px;
  background: var(--if-navy);
  color: #fff;
}
.if-panel-navy > * { margin-block: 0; }
.if-panel-navy :is(h2, h3, h4) { color: #fff; }
.if-panel-navy__body { max-width: 30em; }
.if-panel-navy__body p { font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, .78); }
.if-panel-navy__body p strong { color: #fff; font-weight: 600; }

/* 紺パネルの見出し。反転面なので色は白で固定する。 */
.if-panel-navy__title {
  margin: 0 0 var(--if-sp-40);
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .01em;
}

/* 数値リスト（レジュメ40冊 / 593ページ / eラーニング40本）。
   ドットを消し、罫線1本＋左右振り分けで「表」に見せる。 */
.if-panel-navy__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.if-panel-navy__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--if-sp-30);
  padding: 12px 0;
  border-bottom: 1px solid var(--if-line-inv);
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.9;
}
.if-panel-navy__list li:first-child { border-top: 1px solid var(--if-line-inv); }
.if-panel-navy__list li > span { letter-spacing: .02em; }
.if-panel-navy__list li > b {
  flex: none;
  color: #fff;
  font-family: var(--if-font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}

.if-panel-navy__img,
.if-panel-navy > figure img {
  display: block;
  width: 380px;
  max-width: 46vw;
  height: auto;
  margin-right: -8px;   /* 版面外へわずかにはみ出させる（overflow:hidden で切る） */
  border-radius: var(--if-r-img);
}

@media (max-width: 900px) {
  .if-panel-navy {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 24px 64px;
  }
  .if-panel-navy__img,
  .if-panel-navy > figure img { width: 260px; max-width: 70%; margin-right: 0; }
}

/* ------------------------------------------------------------------
   08. 実績数値（罫線グリッド。背景・影・角丸なし）
   ------------------------------------------------------------------ */
.if-facts,
.if-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.if-facts > *,
.if-facts__grid > * { margin-block: 0; }

.if-fact {
  padding: 32px 24px;
  border-left: 1px solid var(--if-line);
}
.if-fact:first-child { border-left: 0; }

.if-fact__n {
  margin: 0;
  font-family: var(--if-font-en);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--if-hd);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.if-fact__u,
.if-fact__n small {
  margin-left: 2px;
  font-family: var(--if-font-jp);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: 1px;
  font-variant-numeric: normal;
}
.if-fact__t {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--if-muted);
}

/* 補助行（経営支援倶楽部10年 ／ レジュメ40冊 ／ eラーニング40本） */
.if-facts__note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--if-line);
  font-size: 13px;
  line-height: 1.8;
  color: var(--if-muted);
}

@media (max-width: 860px) {
  .if-facts,
  .if-facts__grid { grid-template-columns: repeat(2, 1fr); }
  .if-fact {
    padding: 24px 16px;
    border-top: 1px solid var(--if-line);
  }
  .if-fact:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ------------------------------------------------------------------
   09. 罫線行（5モデル／提供形態／一覧の共通土台）
   カードにせず、罫線と余白だけで区切る。
   ------------------------------------------------------------------ */
.if-rows {
  border-top: 1px solid var(--if-line);
}
.if-rows > * { margin-block: 0; }

.if-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--if-line);
  transition: background-color .3s var(--if-ease);
}
.if-row:hover { background: var(--if-surface); }

.if-row__no {
  flex: none;
  width: 56px;
  margin: 0;
  font-family: var(--if-font-en);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--if-brand);
  font-variant-numeric: tabular-nums;
}
.if-row__main { min-width: 0; }
.if-row__title {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--if-hd);
}
.if-row__text {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--if-muted);
}
.if-row__side {
  margin-left: auto;
  padding-left: 20px;
  flex: none;
}

/* 行全体がリンクの場合 */
a.if-row { color: inherit; text-decoration: none; }

@media (max-width: 600px) {
  .if-row { gap: 14px; padding: 20px 0; }
  .if-row__no { width: 42px; font-size: 26px; }
  .if-row__side { margin-left: 0; padding-left: 0; width: 100%; }
}

/* ------------------------------------------------------------------
   10. 新着情報（サムネイルは置かない）
   ------------------------------------------------------------------ */
.if-news .wp-block-post-template,
.if-news__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--if-line);
}
.if-news .wp-block-post-template > li { margin: 0; }

.if-news__row {
  display: grid;
  grid-template-columns: 6em 96px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--if-line);
  transition: background-color .3s var(--if-ease);
}
.if-news__row:hover { background: var(--if-surface); }

.if-news__date,
.if-news .wp-block-post-date {
  font-family: var(--if-font-en);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--if-muted);
  font-variant-numeric: tabular-nums;
  width: 6em;
}

.if-news__cat {
  min-width: 96px;
  padding: 4px 0;
  border-radius: var(--if-r-tag);
  background: var(--if-surface);
  color: var(--if-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
}
.if-news__cat--seminar {
  background: var(--if-brand-soft);
  color: var(--if-brand);
}

.if-news__title,
.if-news .wp-block-post-title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--if-ink);
  text-decoration: none;
  transition: color .4s var(--if-ease);
}
.if-news__title:not(:hover),
.if-news .wp-block-post-title a:not(:hover) { transition-duration: 0s; }
.if-news__title:hover,
.if-news .wp-block-post-title a:hover { color: var(--if-muted); }
.if-news .wp-block-post-title a { color: inherit; text-decoration: none; }

.if-news .wp-block-query-no-results {
  padding: 24px 0;
  border-bottom: 1px solid var(--if-line);
  color: var(--if-muted);
  font-size: 15px;
}

@media (max-width: 700px) {
  .if-news__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 0;
  }
  .if-news__meta { display: flex; align-items: center; gap: 12px; }
}

/* ------------------------------------------------------------------
   11. ボタン・リンク・矢印
   赤い塗りは if-btn（1画面に1個）だけ。副導線は塗らない if-link。
   ------------------------------------------------------------------ */
.if-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 280px;
  min-height: 64px;
  padding: 12px 24px 12px 32px;
  border: 0;
  border-radius: var(--if-r-pill);
  background: var(--if-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--if-ease);
}
.if-btn:hover,
.if-btn:focus-visible { background: var(--if-brand-dark); color: #fff; }

.if-arrow {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  overflow: hidden;
}
.if-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: var(--if-arrow) center / 72% 72% no-repeat;
  mask: var(--if-arrow) center / 72% 72% no-repeat;
}

/* 塗らない遷移リンク（セクション末尾・一覧リンクはすべてこれ） */
.if-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.5;
  color: var(--if-ink);
  text-decoration: none;
  transition: color .4s var(--if-ease);
}
.if-link:not(:hover) { transition-duration: 0s; }
.if-link:hover { color: var(--if-muted); }

.if-link__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--if-line);
  border-radius: 42%;
  background: transparent;
}
.if-link__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--if-brand);
  -webkit-mask: var(--if-arrow) center / 60% 60% no-repeat;
  mask: var(--if-arrow) center / 60% 60% no-repeat;
}

/* 矢印の抜け戻り（.45s）。if-btn / if-link で共通のキーフレームを使う。 */
@keyframes ifArrow {
  0%   { transform: translateX(0); opacity: 1; }
  44%  { transform: translateX(130%); opacity: 0; }
  56%  { transform: translateX(-130%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.if-btn:hover .if-arrow::before,
.if-btn:focus-visible .if-arrow::before,
.if-link:hover .if-link__icon::before,
.if-link:focus-visible .if-link__icon::before {
  animation: ifArrow .45s var(--if-ease-arrow);
}

/* 本文中のインラインリンク（逆ホバー：既定で下線、ホバーで消す） */
.if-inline {
  color: var(--if-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.if-inline:hover { text-decoration: none; }

/* core/button を使ってしまった場合の保険（角丸ピル・赤・影なし） */
.wp-block-button__link { border-radius: var(--if-r-pill); box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid var(--if-line);
  background: transparent;
  color: var(--if-ink);
}

/* ------------------------------------------------------------------
   12. 画像枠（写真は「枠」を先に確定し、中身を後から差し替える）
   比率は 50/29 と 3/2 の2種類だけ。
   ------------------------------------------------------------------ */
.if-frame {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  --if-frame-ar: 50 / 29;
}
.if-frame--3x2 { --if-frame-ar: 3 / 2; }
@media (max-width: 700px) {
  .if-frame { --if-frame-ar: 3 / 2; }
}

/* 枠そのもの（背景・罫線・角丸）。写真の有無にかかわらず寸法が変わらない。 */
.if-frame::before {
  content: "";
  grid-area: 1 / 1;
  aspect-ratio: var(--if-frame-ar);
  background: var(--if-tint);
  border: 1px solid var(--if-line);
  border-radius: var(--if-r-img);
}

.if-frame__img,
.if-frame > img,
.if-frame > .wp-block-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--if-frame-ar);
  object-fit: cover;
  border-radius: var(--if-r-img);
}
.if-frame > .wp-block-image { margin: 0; }
.if-frame > .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--if-r-img);
}

/* 図版（model-image.jpg など）は切り抜かず全体を見せる */
.if-frame--contain .if-frame__img,
.if-frame--contain > img,
.if-frame--contain > .wp-block-image img {
  object-fit: contain;
  background: #fff;
}

/* 写真が無い間のプレースホルダ。写真が届いたらこの1要素を消すだけでよい。 */
.if-frame__ph {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  aspect-ratio: var(--if-frame-ar);
  border-radius: var(--if-r-img);
  background: linear-gradient(var(--if-tint), #fff);
  font-family: var(--if-font-en);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--if-brand);
  opacity: .8;
}

.if-frame__cap,
.if-frame > figcaption {
  grid-area: 2 / 1;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--if-muted);
}

/* ------------------------------------------------------------------
   13. ヒーロー（写真ゼロでも1画面ぶんの存在感を持たせる）
   ------------------------------------------------------------------ */
.if-hero {
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--if-header-h));
  min-height: calc(100svh - var(--if-header-h));
  padding-block: var(--if-sp-70);
  background: var(--if-base);
  position: relative;
  overflow: hidden;
}

.if-hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}
.if-hero__grid > * { margin-block: 0; }
.if-hero__body { min-width: 0; display: grid; gap: 28px; align-content: start; justify-items: start; }

/* 見出しブロック（左の赤い縦棒はここに立てる） */
.if-hero__head,
.if-hero__inner {
  position: relative;
  padding-left: 32px;
}
.if-hero__head > *, .if-hero__inner > * { margin-block: 0; }

.if-hero__bar,
.if-hero__inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--if-brand);
  transform-origin: top center;
  animation: ifBarIn .8s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes ifBarIn {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.if-hero__kick {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--if-muted);
}

.if-hero h1,
.if-hero__title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--if-hd);
}

.if-hero__lead {
  margin: 24px 0 0;
  max-width: 30em;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--if-muted);
}

.if-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

/* 写真が無い間の右カラム＝実績3値の縦罫線ミニグリッド（空箱は置かない） */
.if-hero__facts { display: grid; gap: 28px; }
.if-hero__facts .if-fact {
  padding: 0 0 0 24px;
  border-left: 1px solid var(--if-line);
  border-top: 0;
}

/* 写真が入手できた場合の右カラム */
.if-hero__media {
  position: relative;
  border-radius: var(--if-r-img);
  overflow: hidden;
}
.if-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 50 / 29;
  object-fit: cover;
  border-radius: var(--if-r-img);
}

/* 縦書きのスクロール誘導（点滅ループは付けない） */
.if-hero__scroll {
  position: absolute;
  right: 24px;
  bottom: 64px;
  writing-mode: vertical-rl;
  font-family: var(--if-font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--if-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.if-hero__scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: var(--if-line);
}

@media (max-width: 1023px) {
  .if-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .if-hero__facts { display: none; }   /* SP では front-facts に統合する */
  .if-hero__scroll { display: none; }
}
@media (max-width: 700px) {
  .if-hero {
    min-height: 0;
    padding-block: var(--if-sp-70);
  }
  .if-hero__head,
  .if-hero__inner { padding-left: 20px; }
  .if-hero__bar,
  .if-hero__inner::before { width: 4px; }
}

/* ------------------------------------------------------------------
   14. お問い合わせ帯（赤の淡色を面で使う唯一の場所）
   ------------------------------------------------------------------ */
.if-cta {
  padding-block: 72px;
  background: var(--if-brand-soft);
  text-align: center;
}
.if-cta .if-sechd__en,
.if-cta .if-eyebrow { color: var(--if-muted); }
.if-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--if-hd);
}
.if-cta__lead {
  margin: 0 auto 32px;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--if-muted);
}
.if-cta .if-btn { text-align: left; }
.if-cta__tel {
  margin: 24px 0 0;
  font-family: var(--if-font-en);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--if-navy);
  font-variant-numeric: tabular-nums;
}
.if-cta__tel a { color: inherit; text-decoration: none; }
.if-cta__note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--if-muted);
}
@media (max-width: 700px) { .if-cta { padding-block: 48px; } }

/* ------------------------------------------------------------------
   15. フッター（紺ベタ全面）
   ------------------------------------------------------------------ */
.if-footer {
  background: var(--if-navy);
  color: rgba(255, 255, 255, .82);
  padding-block: 96px 40px;
}
.if-footer :is(h2, h3, h4, p, li, address) { color: inherit; }
.if-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .4s var(--if-ease); }
.if-footer a:not(:hover) { transition-duration: 0s; }
.if-footer a:hover { color: #fff; }

.if-footer__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-areas:
    "logo menu"
    "info legal";
  gap: 72px 48px;
  align-items: start;
}
.if-footer__grid > * { margin-block: 0; }
.if-footer__logo  { grid-area: logo; }
.if-footer__menu  { grid-area: menu; }
.if-footer__info  { grid-area: info; }
.if-footer__legal { grid-area: legal; }

.if-footer__menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.if-footer__group-title {
  margin: 0 0 12px;
  font-family: var(--if-font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .5);
}
.if-footer .wp-block-list,
.if-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 2;
}

.if-footer__address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .7);
}
.if-footer__copyright {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--if-line-inv);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

/* 規程リンク群：ボックスで囲わず1本の縦罫でグルーピングする */
.if-footer__legal {
  margin: 0;
  padding-left: 14px;
  list-style: none;
  border-left: 2px solid var(--if-line-inv);
  font-size: 12px;
  line-height: 2;
}
.if-footer__legal a { color: rgba(255, 255, 255, .5); }
.if-footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* フッター内の反転ロゴ */
.if-logo--light .if-logo__brand a { color: #fff; }
.if-logo--light .if-logo__brand a:hover { color: rgba(255, 255, 255, .7); }
.if-logo--light .if-logo__name,
.if-logo--light .if-logo__tagline { color: rgba(255, 255, 255, .6); }

.if-footer .wp-block-separator { color: var(--if-line-inv); }

@media (max-width: 900px) {
  .if-footer {
    padding-block: 56px 24px;
  }
  .if-footer__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "menu" "info" "legal";
    gap: 32px;
  }
  .if-footer__menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .if-footer__legal { border-left: 0; padding-left: 0; }
}

/* ------------------------------------------------------------------
   16. 関連サービス／バナー（カード枠・影・背景は付けない）
   ------------------------------------------------------------------ */
.if-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.if-cards > * { margin-block: 0; }
.if-card { display: grid; gap: 12px; align-content: start; }
.if-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--if-hd);
}
.if-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--if-muted);
}
@media (max-width: 900px) {
  .if-cards { grid-template-columns: 1fr; gap: 40px; }
}

/* 既存バナー画像（枠は画像自身の矩形のみ） */
.if-banner a { display: block; }
.if-banner img,
.if-aidx__img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--if-r-img);
  transition: opacity .3s var(--if-ease);
}
.if-banner a:hover img,
.if-aidx__img a:hover img { opacity: .82; }

/* 外部リンクの小さなアイコン */
.if-link--ext .if-link__txt::after,
.if-card__title a[target="_blank"]::after {
  content: "↗";
  display: inline-block;
  margin-left: .35em;
  font-size: .75em;
  opacity: .7;
}

/* ------------------------------------------------------------------
   17. 本文（.entry-content）
   旧テーマ時代のクラシック HTML を、罫線と余白の語彙で読ませる。
   core/post-content は .entry-content クラスも出力するため、
   旧テーマと同じセレクタで指定できる。
   ------------------------------------------------------------------ */
.entry-content {
  line-height: 2;
  color: var(--if-ink);
}
.entry-content > * + * { margin-top: 1.4em; }

.entry-content :is(h2, h3, h4) { color: var(--if-hd); }

.entry-content h2 {
  position: relative;
  margin: 3em 0 1.2em;
  padding-bottom: 16px;
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.6;
  border-bottom: 1px solid var(--if-line);
}
.entry-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: var(--if-brand);
}
.entry-content h3 {
  margin: 2.4em 0 1em;
  padding-left: 14px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.6;
  border-left: 3px solid var(--if-brand);
}
.entry-content h4 {
  margin: 2em 0 .8em;
  font-size: 17px;
  font-weight: 600;
}

.entry-content :is(ul, ol) { padding-left: 1.5em; }
.entry-content li + li { margin-top: .5em; }
.entry-content ul > li::marker { color: var(--if-brand); }
.entry-content ol > li::marker { color: var(--if-muted); }

.entry-content a { color: var(--if-link); text-underline-offset: 2px; }
.entry-content a[target="_blank"]::after {
  content: "↗";
  display: inline-block;
  margin-left: .25em;
  font-size: .8em;
  opacity: .7;
  text-decoration: none;
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border: 0;
  border-left: 3px solid var(--if-line);
  background: var(--if-surface);
  border-radius: 0;
}

.entry-content img { border-radius: var(--if-r-img); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--if-muted);
}

/* 旧ページの固定幅テーブルを横スクロールさせる */
.if-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.8em;
}

/* id 付きテーブル（#total / #kouza など）は legacy-content.css の指定を尊重 */
.entry-content table:not([id]) {
  width: 100%;
  margin: 0 0 1.8em;
  border-collapse: collapse;
  background: var(--if-base);
  font-size: 15px;
  line-height: 1.8;
}
.entry-content table:not([id]) :is(th, td) {
  padding: 14px 16px;
  border: 1px solid var(--if-line);
  text-align: left;
  vertical-align: top;
}
.entry-content table:not([id]) th {
  background: var(--if-surface);
  color: var(--if-navy);
  font-weight: 600;
  white-space: nowrap;
}
.entry-content table:not([id]) tbody tr:nth-child(even) td { background: var(--if-surface); }

/* 旧テーマの回り込みクラス */
.entry-content .alignleft { float: left; margin: .4em 1.6em 1.2em 0; }
.entry-content .alignright { float: right; margin: .4em 0 1.2em 1.6em; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
@media (max-width: 600px) {
  .entry-content .alignleft,
  .entry-content .alignright { float: none; display: block; margin: 1.5em auto; }
}

/* --- フォーム（Contact Form 7 など）。影は使わず outline で示す --- */
.entry-content :is(
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="url"], input[type="number"], input[type="date"],
  select, textarea) {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--if-line);
  border-radius: 0;
  background: var(--if-base);
  color: var(--if-ink);
  font: inherit;
  line-height: 1.7;
}
.entry-content textarea { min-height: 10em; }
.entry-content :is(input, select, textarea):focus {
  border-color: var(--if-navy);
  outline: 2px solid var(--if-link);
  outline-offset: 1px;
}
.entry-content :is(input[type="submit"], button[type="submit"]),
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 280px;
  min-height: 64px;
  padding: 12px 32px;
  border: 0;
  border-radius: var(--if-r-pill);
  background: var(--if-brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .3s var(--if-ease);
}
.entry-content :is(input[type="submit"], button[type="submit"]):hover,
.wpcf7 input[type="submit"]:hover { background: var(--if-brand-dark); }

.entry-content fieldset {
  margin: 0 0 16px;
  padding: 20px 24px;
  border: 1px solid var(--if-line);
  border-radius: 0;
  background: var(--if-surface);
}
.entry-content legend { padding-inline: .5em; font-weight: 600; color: var(--if-navy); }
.entry-content label { display: inline-block; }

@media (max-width: 600px) {
  .entry-content :is(input[type="submit"], button[type="submit"]),
  .wpcf7 input[type="submit"] { min-width: 0; width: 100%; }
}

/* ------------------------------------------------------------------
   18. ページトップ／スクロール演出
   ------------------------------------------------------------------ */
.if-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(24px, 3vw, 32px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--if-line);
  border-radius: 50%;
  background: var(--if-base);
  color: transparent;      /* テキストは隠し、矢印は mask で描く */
  font-size: 0;
  text-decoration: none;
  overflow: hidden;
  transition: opacity .4s var(--if-ease), visibility .4s var(--if-ease), background-color .3s var(--if-ease);
}
.if-to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--if-brand);
  -webkit-mask: var(--if-arrow) center / 42% 42% no-repeat;
  mask: var(--if-arrow) center / 42% 42% no-repeat;
  transform: rotate(-90deg);
}
.if-to-top:hover { background: var(--if-surface); }

/* JS がある時だけ「スクロール後に出現」させる */
.js .if-to-top { opacity: 0; visibility: hidden; }
.js .if-to-top.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 700px) {
  .if-to-top { width: 40px; height: 40px; bottom: 24px; }
}

/* スクロール出現（移動量 24px・一度だけ） */
.js .if-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--if-ease), transform .6s var(--if-ease);
}
.js .if-reveal.is-in { opacity: 1; transform: none; }

/* 見出し下の赤 3px ラインは、見出しの出現に合わせて左から伸ばす */
.js .if-reveal:not(.is-in) .if-sechd::after { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  .js .if-reveal { opacity: 1; transform: none; }
  .js .if-reveal:not(.is-in) .if-sechd::after { transform: none; }
  .if-hero__bar,
  .if-hero__inner::before { animation: none; }
}

/* ------------------------------------------------------------------
   19. 旧クラス互換（最小限）
   パターン差し替えの過渡期に、無指定で崩れないようにするための保険。
   新規マークアップでは使わない。
   ------------------------------------------------------------------ */
.if-hd { max-width: 640px; margin-bottom: var(--if-sp-60); }
.if-hd h2 {
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .02em;
}
.if-hd p { color: var(--if-muted); }

.if-steps { display: grid; border-top: 1px solid var(--if-line); }
.if-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--if-line);
  align-items: baseline;
}
.if-step__en {
  font-family: var(--if-font-en);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--if-brand);
}
.if-step b { display: block; font-size: 17px; font-weight: 600; line-height: 1.6; }
.if-step span { font-size: 15px; color: var(--if-muted); }
@media (max-width: 700px) { .if-step { grid-template-columns: 1fr; gap: 6px; } }

.if-tel,
.if-promo__tel {
  font-family: var(--if-font-en);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--if-navy);
  font-variant-numeric: tabular-nums;
}
.if-btn-light .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--if-line-inv);
  color: #fff;
}

/* ------------------------------------------------------------------
   20. 印刷
   ------------------------------------------------------------------ */
@media print {
  .if-header,
  .if-footer,
  .if-to-top,
  .if-crumbs-bar,
  .if-hero__scroll { display: none !important; }

  body { background: #fff; color: #000; }
  .if-section { padding-block: 16px; }
  .if-section--tint,
  .if-section--inv,
  .if-panel-navy,
  .if-cta { background: #fff !important; color: #000 !important; border-radius: 0 !important; }
  .if-section--inv :is(h1, h2, h3, h4, p) { color: #000 !important; }
  .js .if-reveal { opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: underline; }
}

/* ==================================================================
   99. 補完：パターンで使用されているが未定義だったクラス

   ワークフローでの分担実装時に、CSS 担当とパターン担当の間で
   取りこぼしたクラス。無スタイルで表示される不具合になるため補う。
   命名・値は上のデザイントークンと設計原則（影なし・角丸最小・
   赤は印としてのみ）に従う。
   ================================================================== */

/* --- ヒーロー右側の実績ミニグリッド --- */
.if-hero__aside {
  display: grid;
  gap: 0;
}
.if-hero__fact {
  padding: 1.1rem 0 1.1rem 1.4rem;
  border-left: 1px solid var(--if-line);
}
.if-hero__fact + .if-hero__fact { border-top: 1px solid var(--if-line); }
@media (max-width: 860px) {
  /* SP ではヒーローから実績を外す（front-facts と重複するため） */
  .if-hero__aside { display: none; }
}

/* --- グローバルナビのリスト --- */
.if-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 clamp(.9rem, 1.8vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- 5モデル図（既存資料の引用として置く） --- */
.if-diagram {
  margin: 0;
  border: 1px solid var(--if-line);
  border-radius: 4px;
  overflow: hidden;
}
.if-diagram img { display: block; width: 100%; height: auto; }
.if-diagram figcaption {
  padding: .7rem 1rem;
  border-top: 1px solid var(--if-line);
  font-size: .78rem;
  color: var(--if-muted);
}

/* --- ＭＡＳ事業化セミナー（紺の反転パネル） --- */
.if-seminar { align-items: stretch; }
.if-seminar > .wp-block-column { min-width: 0; }

/* --- AI/DX講座 --- */
.if-aidx { align-items: center; }
.if-aidx > .wp-block-column { min-width: 0; }

/* --- 関連サービス --- */
.if-banners { align-items: stretch; }
.if-banners > .wp-block-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.if-banner__name {
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--if-ink);
}
.if-banner__note {
  font-size: .8rem;
  line-height: 1.85;
  color: var(--if-muted);
}

/* --- フッター --- */
.if-footer__tagline {
  font-size: .84rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, .66);
}
.if-footer__rule {
  border: 0;
  border-top: 1px solid var(--if-line-inv, rgba(255, 255, 255, .16));
  margin-block: clamp(24px, 3vw, 36px);
  opacity: 1;
}

/* --- ページトップの矢印 --- */
.if-to-top__i {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .3s var(--if-ease, ease);
}
.if-to-top:hover .if-to-top__i { transform: rotate(-45deg) translate(2px, -2px); }
