/* ============================================================
   step-up.co.jp — Layer 2 特注デザイン
   8 円ヒーロー（時計回り回転 + 上向きキープ）+ 共通シェル
   ============================================================ */

[data-template="custom-stepup"] {
  /* 8 円カラーパレット（ロゴ SVG から抽出） */
  --c-blue:   #1e95d4;
  --c-pink:   #db6c9d;
  --c-navy:   #14327a;
  --c-olive:  #8c7228;
  --c-green:  #169243;
  --c-gray:   #747373;
  --c-orange: #e99214;
  --c-purple: #83408b;

  /* グレースケール */
  --c-text:    #231815;
  --c-line:    #c9caca;
  --c-bg:      #ffffff;

  /* 固定モード（ホーム）— ビューポート全画面・スクロール禁止 */
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "Noto Sans JP", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* スクロールモード（サブページ）*/
[data-template="custom-stepup"][data-mode="scroll"] {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}
[data-template="custom-stepup"][data-mode="scroll"] .stepup-header,
[data-template="custom-stepup"][data-mode="scroll"] .stepup-footer-line,
[data-template="custom-stepup"][data-mode="scroll"] .chatbot-toggle { position: fixed; }
/* 注：.hamburger は header 内の flex 子要素として配置されるため、
   position: fixed を当てると header の justify-content: space-between が
   無効化されて MENU が左に寄ってしまう。base スタイルのまま flex 子に保つ。 */

/* =============================================================
   ヘッダー（左：ロゴ+社名 / 右：BP HP EP + メニュー）
   ============================================================= */
[data-template="custom-stepup"] .stepup-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  z-index: 50;
  pointer-events: none;
}
[data-template="custom-stepup"] .stepup-header > * { pointer-events: auto; }

[data-template="custom-stepup"] .stepup-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-text);
}
[data-template="custom-stepup"] .stepup-logo-mark {
  height: 36px;            /* mobile（〜767px）= 等倍 */
  width: auto;
  display: block;
}
/* タブレット（768px〜）: 1.3 倍 */
@media (min-width: 768px) {
  [data-template="custom-stepup"] .stepup-logo-mark { height: 47px; }
}
/* PC（1024px〜）: 1.7 倍 */
@media (min-width: 1024px) {
  [data-template="custom-stepup"] .stepup-logo-mark { height: 61px; }
}

/* =============================================================
   ハンバーガー（smart-hp.one 互換 UI / カラーは light gray 基調）
   ============================================================= */
[data-template="custom-stepup"] .hamburger {
  width: 64px;
  height: 64px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  padding: 0;
}
[data-template="custom-stepup"] .hamburger:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.18);
}

[data-template="custom-stepup"] .hamburger-bars {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
[data-template="custom-stepup"] .hamburger-bars span {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-gray);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}
[data-template="custom-stepup"] .hamburger.is-open .hamburger-bars span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
[data-template="custom-stepup"] .hamburger.is-open .hamburger-bars span:nth-child(2) {
  opacity: 0;
}
[data-template="custom-stepup"] .hamburger.is-open .hamburger-bars span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

[data-template="custom-stepup"] .hamburger-label {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--c-gray);
  line-height: 1;
}

@media (max-width: 480px) {
  [data-template="custom-stepup"] .hamburger {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    gap: 4px;
  }
  [data-template="custom-stepup"] .hamburger-bars { gap: 5px; }
  [data-template="custom-stepup"] .hamburger-bars span { width: 32px; }
  [data-template="custom-stepup"] .hamburger-label {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    margin-top: 3px;
  }
}

/* =============================================================
   フッター線（下部の薄灰）
   ============================================================= */
[data-template="custom-stepup"] .stepup-footer-line {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-line);
  z-index: 40;
}

/* =============================================================
   チャット FAB（smart-hp.one 互換 UI / アイコン + ラベル + パルス + オンライン）
   ============================================================= */
[data-template="custom-stepup"] .chatbot-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 30;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #c30d23;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  color: #fff;
  animation: stepup-chat-pulse 6s ease-in-out infinite;
}
[data-template="custom-stepup"] .chatbot-toggle:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

@keyframes stepup-chat-pulse {
  0%, 75%, 100% { transform: scale(1);    }
  85%           { transform: scale(1.08); }
  95%           { transform: scale(0.98); }
}

[data-template="custom-stepup"] .chatbot-icon {
  width: 48px;
  height: 48px;
  display: block;
}

[data-template="custom-stepup"] .chatbot-label {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

[data-template="custom-stepup"] .chatbot-online {
  position: absolute;
  top: 6%;
  right: 6%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
[data-template="custom-stepup"] .chatbot-online > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

@media (min-width: 640px) {
  [data-template="custom-stepup"] .chatbot-toggle { width: 116px; height: 116px; }
  [data-template="custom-stepup"] .chatbot-icon   { width: 60px;  height: 60px; }
  [data-template="custom-stepup"] .chatbot-label  { font-size: 0.85rem; }
}

/* =============================================================
   チャットパネル（共有 ChatUI 埋め込み）
   ============================================================= */
[data-template="custom-stepup"] .stepup-chat-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 70;
  width: 80vw;
  height: 75vh;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(35, 24, 21, 0.20);
  color: var(--c-text);
}
[data-template="custom-stepup"] .stepup-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #c30d23;
  color: #fff;
  flex-shrink: 0;
}
[data-template="custom-stepup"] .stepup-chat-head__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 1.2rem;
}
[data-template="custom-stepup"] .stepup-chat-head__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
[data-template="custom-stepup"] .stepup-chat-head__text {
  flex: 1;
  min-width: 0;
}
[data-template="custom-stepup"] .stepup-chat-head__name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
[data-template="custom-stepup"] .stepup-chat-head__desc {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-template="custom-stepup"] .stepup-chat-head__close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 150ms;
}
[data-template="custom-stepup"] .stepup-chat-head__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
[data-template="custom-stepup"] .stepup-chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
[data-template="custom-stepup"] .stepup-chat-body > * {
  flex: 1;
  min-height: 0;
}
[data-template="custom-stepup"] .stepup-chat-loading {
  padding: 1rem;
  font-size: 14px;
  color: var(--c-gray);
}

/* =============================================================
   8 円ヒーロー（時計回り 120 秒回転 + 上向きキープ）
   ============================================================= */
[data-template="custom-stepup"] .stepup-hero {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10;
}
[data-template="custom-stepup"] .stepup-hero-ring {
  position: relative;
  width: min(72vmin, 600px);
  height: min(72vmin, 600px);
  animation: stepup-rotate-cw 69s linear infinite;
  will-change: transform;
}
[data-template="custom-stepup"] .stepup-hero-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(var(--angle)) translateY(-42%);
  /* スロットは inset:0 で全面に広がり 8 枚が重なる。透明部分が
     下のスロットのクリックを奪わないよう pointer-events を無効化し、
     実リンク（.stepup-hero-content）だけで受け取る。 */
  pointer-events: none;
}
[data-template="custom-stepup"] .stepup-hero-content {
  /* リング全体の時計回り回転を逆回転で打ち消し、
     さらにスロット自体の var(--angle) を逆回転で打ち消す。
     結果として円・キャラ・写真は常に画面に対して上向きキープ。 */
  position: relative;
  display: grid;
  place-items: center;
  width: min(14vmin, 110px);
  height: min(14vmin, 110px);
  animation: stepup-rotate-ccw 69s linear infinite;
  cursor: pointer;
  /* スロットで無効化した pointer-events を実リンクだけ再有効化 */
  pointer-events: auto;
}
[data-template="custom-stepup"] .stepup-hero-circle {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
[data-template="custom-stepup"] .stepup-hero-content:hover .stepup-hero-circle,
[data-template="custom-stepup"] .stepup-hero-content:focus-visible .stepup-hero-circle {
  transform: scale(1.14);
  box-shadow: 0 6px 20px rgba(35, 24, 21, 0.25);
}
[data-template="custom-stepup"] .stepup-hero-content-inner {
  /* スロット角度を打ち消す静的逆回転 */
  transform: rotate(calc(-1 * var(--angle)));
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
[data-template="custom-stepup"] .stepup-hero-circle {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
/* マウスオーバーで表示するメニュー名（白文字） */
[data-template="custom-stepup"] .stepup-hero-label {
  opacity: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: opacity 200ms ease;
  pointer-events: none;
  user-select: none;
}
[data-template="custom-stepup"] .stepup-hero-content:hover .stepup-hero-label,
[data-template="custom-stepup"] .stepup-hero-content:focus-visible .stepup-hero-label {
  opacity: 1;
}

/* Phase クロスフェード（キャラ・写真追加時） */
[data-template="custom-stepup"] .stepup-hero-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 800ms ease;
}
[data-template="custom-stepup"] .stepup-hero-layer[data-active="true"] { opacity: 1; }

@keyframes stepup-rotate-cw {
  to { transform: rotate(360deg); }
}
@keyframes stepup-rotate-ccw {
  to { transform: rotate(-360deg); }
}

/* 円のパルス（ズームイン → ズームアウト → 元に戻る） */
@keyframes stepup-pulse {
  0%   { transform: scale(1);    }
  35%  { transform: scale(1.13); }
  68%  { transform: scale(0.94); }
  100% { transform: scale(1);    }
}

/* 2 周目：全円が同時にさりげなくパルス（1 回） */
[data-template="custom-stepup"] .stepup-hero-ring[data-effect="zoom-all"] .stepup-hero-circle {
  animation: stepup-pulse 7s ease-in-out;
}

/* 3 周目：円が順番にパルス（--seq-delay で 1.2 秒ずつずらす） */
[data-template="custom-stepup"] .stepup-hero-ring[data-effect="zoom-seq"] .stepup-hero-circle {
  animation: stepup-pulse 2.6s ease-in-out;
  animation-delay: var(--seq-delay, 0s);
}

/* =============================================================
   メニューオーバーレイ（真っ白背景 + グレー文字）
   ============================================================= */
[data-template="custom-stepup"] .menu-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
[data-template="custom-stepup"] .menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
[data-template="custom-stepup"] .menu-overlay-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--c-gray);
  padding: 8px;
  line-height: 1;
  font-family: inherit;
  transition: color 200ms;
}
[data-template="custom-stepup"] .menu-overlay-close:hover { color: var(--c-text); }

[data-template="custom-stepup"] .menu-list {
  list-style: none;
  margin: 0 auto;
  padding: 96px 32px 48px;
  max-width: 720px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
[data-template="custom-stepup"] .menu-list > li > a,
[data-template="custom-stepup"] .menu-list > li > .menu-section-label {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: var(--c-gray);
  text-decoration: none;
  padding: 8px 0;
  letter-spacing: 0.06em;
  transition: color 200ms;
}
[data-template="custom-stepup"] .menu-list > li > a:hover { color: var(--c-text); }

/* メニュー項目ラベル左隣の ●（項目ごとに指定色） */
[data-template="custom-stepup"] .menu-dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  margin-right: 0.6em;
  vertical-align: middle;
  transition: transform 200ms ease;
}
/* メニュー項目ホバーでその項目の ● が拡大 */
[data-template="custom-stepup"] .menu-list > li > a:hover .menu-dot {
  transform: scale(1.7);
}

[data-template="custom-stepup"] .menu-sublist {
  list-style: none;
  margin: 4px 0 4px 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-template="custom-stepup"] .menu-sublist a {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--c-line);
  text-decoration: none;
  padding: 8px 0;
  letter-spacing: 0.03em;
  transition: color 200ms;
}
[data-template="custom-stepup"] .menu-sublist a:hover { color: var(--c-gray); }

/* =============================================================
   サブページ（薄ラッパー時の「準備中」表示）
   ============================================================= */
[data-template="custom-stepup"] .stepup-subpage {
  position: relative;
  z-index: 5;
  padding: 100px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
  min-height: calc(100vh - 4px);
}
[data-template="custom-stepup"] .stepup-subpage h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px;
  color: var(--c-text);
  letter-spacing: 0.04em;
}
/* サブページタイトル左隣の ●（メニューと同色・ゆっくり脈動） */
[data-template="custom-stepup"] .stepup-title-dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
  animation: stepup-title-dot-pulse 3s ease-in-out infinite;
}
@keyframes stepup-title-dot-pulse {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.4);  }
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-stepup"] .stepup-title-dot { animation: none; }
}
[data-template="custom-stepup"] .stepup-subpage-stub {
  font-size: 14px;
  color: var(--c-gray);
  line-height: 1.8;
}

/* WIKI 用語詳細ページ */
[data-template="custom-stepup"] .stepup-wiki-crumb {
  font-size: 12px;
  color: var(--c-gray);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
[data-template="custom-stepup"] .stepup-wiki-crumb a {
  color: var(--c-blue);
  text-decoration: none;
}
[data-template="custom-stepup"] .stepup-wiki-crumb a:hover { opacity: 0.6; }
[data-template="custom-stepup"] .stepup-wiki-term {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 8px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
[data-template="custom-stepup"] .stepup-wiki-reading {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-wiki-aliases {
  font-size: 12px;
  color: var(--c-gray);
  margin: 0 0 24px;
}
[data-template="custom-stepup"] .stepup-wiki-body {
  font-size: 15px;
  line-height: 1.95;
  color: var(--c-text);
  margin: 24px 0 0;
  border-top: 1px solid var(--c-line);
  padding-top: 24px;
}
[data-template="custom-stepup"] .stepup-wiki-body p { margin: 0 0 1em; }
[data-template="custom-stepup"] .stepup-wiki-body a { color: var(--c-blue); }
[data-template="custom-stepup"] .stepup-wiki-links {
  margin-top: 32px;
}
[data-template="custom-stepup"] .stepup-wiki-links h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 10px;
}
[data-template="custom-stepup"] .stepup-wiki-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[data-template="custom-stepup"] .stepup-wiki-links a {
  font-size: 14px;
  color: var(--c-blue);
  text-decoration: none;
}
[data-template="custom-stepup"] .stepup-wiki-links a:hover { opacity: 0.6; }
[data-template="custom-stepup"] .stepup-wiki-back {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-wiki-back a {
  font-size: 14px;
  color: var(--c-gray);
  text-decoration: none;
}
[data-template="custom-stepup"] .stepup-wiki-back a:hover { color: var(--c-text); }

/* FAQ ページ：カテゴリ別グループ */
[data-template="custom-stepup"] .stepup-faq-group {
  margin-top: 48px;
  /* 固定ヘッダーに隠れないようアンカージャンプ時のオフセット */
  scroll-margin-top: 88px;
}
[data-template="custom-stepup"] .stepup-faq-group:first-of-type {
  margin-top: 8px;
}
[data-template="custom-stepup"] .stepup-faq-category {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid #1d2088;
}

/* FAQ カテゴリ目次（アンカーカード） */
[data-template="custom-stepup"] .stepup-faq-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 40px;
}
[data-template="custom-stepup"] .stepup-faq-toc-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-left: 4px solid #1d2088;
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
[data-template="custom-stepup"] .stepup-faq-toc-card:hover {
  border-color: #1d2088;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(29, 32, 136, 0.10);
}
[data-template="custom-stepup"] .stepup-faq-toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
[data-template="custom-stepup"] .stepup-faq-toc-count {
  font-size: 11px;
  color: var(--c-gray);
}
@media (max-width: 560px) {
  [data-template="custom-stepup"] .stepup-faq-toc {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  [data-template="custom-stepup"] .stepup-faq-toc-card { padding: 10px 12px; }
  [data-template="custom-stepup"] .stepup-faq-toc-title { font-size: 12px; }
}

/* Contact ページ */
[data-template="custom-stepup"] .stepup-contact-lead {
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-gray);
  margin: 0 0 28px;
}
[data-template="custom-stepup"] .stepup-contact-form {
  max-width: 560px;
}

/* スクロール登場アニメーション（見出し等） */
[data-template="custom-stepup"] .stepup-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-template="custom-stepup"] .stepup-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-stepup"] .stepup-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================
   Service ページ
   ============================================================= */
[data-template="custom-stepup"] .stepup-service-section {
  margin-top: 64px;
}
[data-template="custom-stepup"] .stepup-service-section:first-of-type {
  margin-top: 68px;
}
[data-template="custom-stepup"] .stepup-service-head {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--c-text);
  margin: 0 0 32px;
}
[data-template="custom-stepup"] .stepup-service-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-template="custom-stepup"] .stepup-service-title-en {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
[data-template="custom-stepup"] .stepup-service-title-ja {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-gray);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
[data-template="custom-stepup"] .stepup-service-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: #1d2088;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 0;
}
[data-template="custom-stepup"] .stepup-service-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
[data-template="custom-stepup"] .stepup-service-item {
  padding-left: 16px;
  border-left: 3px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-service-item-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
  line-height: 1.7;
}
[data-template="custom-stepup"] .stepup-service-item-detail {
  font-size: 13px;
  color: var(--c-gray);
  margin: 4px 0 0;
  line-height: 1.8;
}
[data-template="custom-stepup"] .stepup-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
[data-template="custom-stepup"] .stepup-service-tag {
  font-size: 12px;
  font-weight: 600;
  color: #1d2088;
  background: #eef0fb;
  border-radius: 999px;
  padding: 4px 12px;
}

/* EP：AI研修 / HI研修 ブロック */
[data-template="custom-stepup"] .stepup-training {
  margin-top: 24px;
}
[data-template="custom-stepup"] .stepup-training-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
[data-template="custom-stepup"] .stepup-training-title::before {
  content: "▼";
  color: #1d2088;
  font-size: 0.72em;
  margin-right: 0.45em;
  vertical-align: 0.1em;
}
[data-template="custom-stepup"] .stepup-training-lead {
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-gray);
  margin: 0 0 18px;
}
[data-template="custom-stepup"] .stepup-training-programs {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-template="custom-stepup"] .stepup-training-program {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-training-program:last-child {
  border-bottom: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-training-program-no {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1d2088;
  width: 1.6em;
  text-align: center;
}
[data-template="custom-stepup"] .stepup-training-program-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
  line-height: 1.6;
}
[data-template="custom-stepup"] .stepup-training-program-catch {
  font-size: 12px;
  color: var(--c-gray);
  margin: 3px 0 0;
  line-height: 1.8;
}
[data-template="custom-stepup"] .stepup-training-pdfs {
  margin-top: 20px;
}
/* サービス項目（BP/HP）の直後に来るリンク／PDF リストは 1 行分あける */
[data-template="custom-stepup"] .stepup-service-items + .stepup-links {
  margin-top: 44px;
}
/* PDF／リンク項目の左に赤い ▶ を添える */
[data-template="custom-stepup"] .stepup-training-pdfs li a::before {
  content: "▶";
  color: #c30d23;
  font-size: 10px;
  flex-shrink: 0;
}

/* PC（1024px〜）：Service ページの文字を全体的に +2px */
@media (min-width: 1024px) {
  [data-template="custom-stepup"] .stepup-subpage--service h1                      { font-size: 30px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-service-code     { font-size: 26px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-service-title-en { font-size: 26px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-service-title-ja { font-size: 15px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-service-item-main   { font-size: 17px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-service-item-detail { font-size: 15px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-service-tag     { font-size: 14px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-training-title  { font-size: 26px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-training-lead   { font-size: 15px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-training-program-no    { font-size: 24px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-training-program-name  { font-size: 16px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-training-program-catch { font-size: 14px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-links-name      { font-size: 16px; }
  [data-template="custom-stepup"] .stepup-subpage--service .stepup-links-arrow     { font-size: 15px; }
}

/* =============================================================
   Company ページ：会社概要テーブル
   ============================================================= */
[data-template="custom-stepup"] .stepup-company {
  margin: 0;
  display: flex;
  flex-direction: column;
}
[data-template="custom-stepup"] .stepup-company-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-company-row:last-child {
  border-bottom: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-company-row dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.04em;
}
[data-template="custom-stepup"] .stepup-company-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-text);
}
[data-template="custom-stepup"] .stepup-company-sub {
  font-size: 12px;
  color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-company-links {
  margin-left: 12px;
  font-size: 12px;
  color: var(--c-gray);
  white-space: nowrap;
}
[data-template="custom-stepup"] .stepup-company-links a {
  color: var(--c-blue);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0 4px;
  transition: opacity 200ms;
}
[data-template="custom-stepup"] .stepup-company-links a:hover { opacity: 0.6; }
[data-template="custom-stepup"] .stepup-company-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
[data-template="custom-stepup"] .stepup-company-mail img {
  height: 1.05em;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
[data-template="custom-stepup"] .stepup-company-mail a {
  color: var(--c-blue);
  text-decoration: none;
}
[data-template="custom-stepup"] .stepup-company-mail a:hover { opacity: 0.6; }
[data-template="custom-stepup"] .stepup-company-lead {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-gray);
  margin: 14px 0 6px;
  letter-spacing: 0.06em;
}
[data-template="custom-stepup"] .stepup-company-lead:first-child {
  margin-top: 0;
}
[data-template="custom-stepup"] .stepup-company-list,
[data-template="custom-stepup"] .stepup-company-credo {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-template="custom-stepup"] .stepup-company-list { list-style: disc; }
[data-template="custom-stepup"] .stepup-company-credo { list-style: decimal; }

@media (max-width: 560px) {
  [data-template="custom-stepup"] .stepup-company-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Company ページ：沿革 / 方針 / 定款 行の補足文 */
[data-template="custom-stepup"] .stepup-company-note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-gray);
  margin: 0 0 20px;
}

/* 沿革タイムライン */
[data-template="custom-stepup"] .stepup-history {
  margin: 0;
  display: flex;
  flex-direction: column;
}
[data-template="custom-stepup"] .stepup-history-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-history-row:last-child {
  border-bottom: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-history-row dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
}
[data-template="custom-stepup"] .stepup-history-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text);
}

/* 営業方針 */
[data-template="custom-stepup"] .stepup-policy {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-template="custom-stepup"] .stepup-policy li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
}
[data-template="custom-stepup"] .stepup-policy-tag {
  flex-shrink: 0;
  display: inline-block;
  min-width: 5em;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5a5a5a;
  background: #f3f3f3;
  border-radius: 4px;
  padding: 3px 8px;
}
[data-template="custom-stepup"] .stepup-policy-text {
  color: var(--c-text);
}

@media (max-width: 560px) {
  [data-template="custom-stepup"] .stepup-history-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  [data-template="custom-stepup"] .stepup-policy li {
    flex-direction: column;
    gap: 4px;
  }
}

/* Links */
[data-template="custom-stepup"] .stepup-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
[data-template="custom-stepup"] .stepup-links li {
  border-top: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-links li:last-child {
  border-bottom: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-links a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 4px;
  text-decoration: none;
  transition: background 200ms;
}
[data-template="custom-stepup"] .stepup-links a:hover {
  background: #f7f7f7;
}
[data-template="custom-stepup"] .stepup-links-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
}
[data-template="custom-stepup"] .stepup-links-sub {
  font-size: 12px;
  color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-links-arrow {
  margin-left: auto;
  font-size: 13px;
  color: var(--c-gray);
}
/* リンク名右の〈人気〉バッジ（赤・軽くパルス） */
[data-template="custom-stepup"] .stepup-links-badge {
  margin-left: -4px;
  color: #c30d23;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  animation: stepup-badge-pulse 1.6s ease-in-out infinite;
}
@keyframes stepup-badge-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.55; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-stepup"] .stepup-links-badge { animation: none; }
}

/* =============================================================
   Works / News / Column（記事一覧 + 詳細）
   ============================================================= */
/* カテゴリタブ（ALL / BP / HP / EP） */
[data-template="custom-stepup"] .stepup-works-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}
[data-template="custom-stepup"] .stepup-works-tab {
  appearance: none;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-gray);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
[data-template="custom-stepup"] .stepup-works-tab:hover {
  color: var(--c-text);
  border-color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-works-tab.is-active {
  color: #fff;
  background: var(--c-blue);
  border-color: var(--c-blue);
}

/* カードグリッド */
[data-template="custom-stepup"] .stepup-works-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}
@media (max-width: 600px) {
  [data-template="custom-stepup"] .stepup-works-grid {
    grid-template-columns: 1fr;
  }
}
[data-template="custom-stepup"] .stepup-works-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
[data-template="custom-stepup"] .stepup-works-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-works-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
[data-template="custom-stepup"] .stepup-works-card:hover .stepup-works-card-thumb img {
  transform: scale(1.05);
}
[data-template="custom-stepup"] .stepup-works-card-noimg {
  position: absolute;
  inset: 0;
  background: #ffffff;
}
/* ノーイメージ: 白地の中央にロゴを明るいグレー一色でさりげなく配置（mask で単色化） */
[data-template="custom-stepup"] .stepup-works-card-noimg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  aspect-ratio: 1502.1 / 308.22;
  transform: translate(-50%, -50%);
  background-color: #dcdcdc;
  -webkit-mask: url("/stepup/Images/logo/logo-master.svg") no-repeat center / contain;
  mask: url("/stepup/Images/logo/logo-master.svg") no-repeat center / contain;
}
[data-template="custom-stepup"] .stepup-works-card-body {
  display: block;
  padding: 12px 2px 0;
}
[data-template="custom-stepup"] .stepup-works-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
[data-template="custom-stepup"] .stepup-works-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--c-blue);
  padding: 2px 8px;
  border-radius: 3px;
}
[data-template="custom-stepup"] .stepup-works-card-date {
  font-size: 12px;
  color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-works-card-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-text);
}
[data-template="custom-stepup"] .stepup-works-card:hover .stepup-works-card-title {
  color: var(--c-blue);
}

/* 記事詳細 */
[data-template="custom-stepup"] .stepup-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
[data-template="custom-stepup"] .stepup-article-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--c-blue);
  padding: 3px 10px;
  border-radius: 3px;
}
[data-template="custom-stepup"] .stepup-article-date {
  font-size: 13px;
  color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-article-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-text);
  margin: 0 0 24px;
  letter-spacing: 0.03em;
}
[data-template="custom-stepup"] .stepup-article-hero {
  margin: 0 0 28px;
  border: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-article-hero img {
  width: 100%;
  height: auto;
  display: block;
}
[data-template="custom-stepup"] .stepup-article-points {
  background: #f4f9fc;
  border-left: 3px solid var(--c-blue);
  padding: 16px 20px;
  margin: 0 0 28px;
}
[data-template="custom-stepup"] .stepup-article-points-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-blue);
  margin: 0 0 6px;
}
[data-template="custom-stepup"] .stepup-article-points-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text);
  margin: 0;
  white-space: pre-wrap;
}
[data-template="custom-stepup"] .stepup-article-body {
  font-size: 15px;
  line-height: 1.95;
  color: var(--c-text);
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}
[data-template="custom-stepup"] .stepup-article-body p { margin: 0 0 1.4em; }
[data-template="custom-stepup"] .stepup-article-body a { color: var(--c-blue); }
[data-template="custom-stepup"] .stepup-article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 2em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
}
[data-template="custom-stepup"] .stepup-article-body ul,
[data-template="custom-stepup"] .stepup-article-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
[data-template="custom-stepup"] .stepup-article-body li { margin: 0.3em 0; }
[data-template="custom-stepup"] .stepup-article-body img {
  max-width: 100%;
  height: auto;
}
[data-template="custom-stepup"] .stepup-article-body blockquote {
  margin: 0 0 1.4em;
  padding: 0.6em 1.2em;
  border-left: 3px solid var(--c-line);
  color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-article-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  margin: 0 0 1.4em;
}
[data-template="custom-stepup"] .stepup-article-body th,
[data-template="custom-stepup"] .stepup-article-body td {
  border: 1px solid var(--c-line);
  padding: 8px 12px;
  text-align: left;
}
[data-template="custom-stepup"] .stepup-article-body th {
  background: #f6f6f6;
  font-weight: 700;
}

/* 添付資料（PDF ダウンロードリンク） */
[data-template="custom-stepup"] .stepup-article-attachments {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-article-attachments ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-template="custom-stepup"] .stepup-article-attachments a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
[data-template="custom-stepup"] .stepup-article-attachments a:hover {
  border-color: var(--c-blue);
  background: #f4f9fc;
}
[data-template="custom-stepup"] .stepup-attach-icon { font-size: 20px; flex: 0 0 auto; }
[data-template="custom-stepup"] .stepup-attach-meta { flex: 1 1 auto; min-width: 0; }
[data-template="custom-stepup"] .stepup-attach-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-template="custom-stepup"] .stepup-attach-sub {
  display: block;
  font-size: 12px;
  color: var(--c-gray);
  margin-top: 2px;
}
[data-template="custom-stepup"] .stepup-attach-dl {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-blue);
}

/* =============================================================
   ホーム左下：最新 News 1 行表示
   ============================================================= */
[data-template="custom-stepup"] .stepup-home-news {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(560px, calc(100vw - 200px));
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s;
  animation: stepup-home-news-in 0.5s ease;
}
@keyframes stepup-home-news-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}
@media (prefers-reduced-motion: reduce) {
  [data-template="custom-stepup"] .stepup-home-news { animation: none; }
}
[data-template="custom-stepup"] .stepup-home-news:hover {
  border-color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-home-news-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: #c30d23;
  padding: 3px 9px;
  border-radius: 999px;
}
[data-template="custom-stepup"] .stepup-home-news-date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-home-news-title {
  font-size: 13px;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  [data-template="custom-stepup"] .stepup-home-news {
    left: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 150px);
    gap: 8px;
    padding: 6px 10px;
  }
  [data-template="custom-stepup"] .stepup-home-news-date { display: none; }
}

/* =============================================================
   SEO：TOP の視覚非表示 h1
   ============================================================= */
[data-template="custom-stepup"] .stepup-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Service 一覧：各事業の詳細ランディングへのリンク */
[data-template="custom-stepup"] .stepup-service-more {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 700;
}
[data-template="custom-stepup"] .stepup-service-more a {
  color: #1d2088;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
[data-template="custom-stepup"] .stepup-service-more a:hover { color: var(--c-blue); }

/* =============================================================
   事業ランディング（/service/hp /service/bp /service/ep）
   ============================================================= */
[data-template="custom-stepup"] .stepup-lp .stepup-wiki-crumb { margin-bottom: 20px; }
[data-template="custom-stepup"] .stepup-lp-head { margin: 0 0 24px; }
[data-template="custom-stepup"] .stepup-lp-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-gray);
  text-transform: uppercase;
}
[data-template="custom-stepup"] .stepup-service-code--sm {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
[data-template="custom-stepup"] .stepup-subpage .stepup-lp-h1 {
  font-size: 30px;
  line-height: 1.35;
  margin: 0;
}
[data-template="custom-stepup"] .stepup-lp-lead {
  font-size: 14px;
  line-height: 2;
  color: var(--c-text);
  margin: 0 0 14px;
}
[data-template="custom-stepup"] .stepup-lp-section { margin-top: 56px; }
[data-template="custom-stepup"] .stepup-lp-h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 18px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
[data-template="custom-stepup"] .stepup-lp-h2::before {
  content: "▼";
  color: #1d2088;
  font-size: 0.7em;
  margin-right: 0.45em;
  vertical-align: 0.1em;
}
[data-template="custom-stepup"] .stepup-lp-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-template="custom-stepup"] .stepup-lp-checks li {
  position: relative;
  padding-left: 1.7em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text);
}
[data-template="custom-stepup"] .stepup-lp-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: #169243;
}
[data-template="custom-stepup"] .stepup-lp-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
[data-template="custom-stepup"] .stepup-lp-feature {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--c-line);
}
[data-template="custom-stepup"] .stepup-lp-feature:last-child { border-bottom: 1px solid var(--c-line); }
[data-template="custom-stepup"] .stepup-lp-feature-no {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1d2088;
  line-height: 1.2;
  width: 2em;
}
[data-template="custom-stepup"] .stepup-lp-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 4px;
  line-height: 1.6;
}
[data-template="custom-stepup"] .stepup-lp-feature-text {
  font-size: 13px;
  color: var(--c-gray);
  margin: 0;
  line-height: 1.85;
}
[data-template="custom-stepup"] .stepup-lp-more {
  margin: 16px 0 0;
  font-size: 13px;
  text-align: right;
}
[data-template="custom-stepup"] .stepup-lp-more a { color: #1d2088; text-decoration: none; }
[data-template="custom-stepup"] .stepup-lp-more a:hover { text-decoration: underline; }

/* ランディング内の関連コラムリンク（Next Link は <a> になる） */
[data-template="custom-stepup"] .stepup-lp .stepup-links a { color: var(--c-text); }

/* CTA */
[data-template="custom-stepup"] .stepup-lp-cta {
  margin-top: 64px;
  padding: 32px 24px;
  border: 2px solid var(--c-text);
  text-align: center;
}
[data-template="custom-stepup"] .stepup-lp-cta-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--c-text);
  line-height: 1.5;
}
[data-template="custom-stepup"] .stepup-lp-cta-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-gray);
  margin: 0 0 20px;
}
[data-template="custom-stepup"] .stepup-lp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
[data-template="custom-stepup"] .stepup-lp-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: #c30d23;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #c30d23;
  transition: opacity 0.2s ease;
}
[data-template="custom-stepup"] .stepup-lp-btn:hover { opacity: 0.85; }
[data-template="custom-stepup"] .stepup-lp-btn--ghost {
  background: #fff;
  color: var(--c-text);
  border-color: var(--c-text);
}
[data-template="custom-stepup"] .stepup-lp-cta-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--c-gray);
}
[data-template="custom-stepup"] .stepup-title-dot--inline {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 0;
  animation: none;
}
@media (max-width: 560px) {
  [data-template="custom-stepup"] .stepup-subpage .stepup-lp-h1 { font-size: 24px; }
  [data-template="custom-stepup"] .stepup-lp-cta { padding: 24px 16px; }
}
