/* フッターウィジェットの中身を右寄せにする */
#footer-widgets {
    text-align: right;
}

/* もしメニューの「・（黒丸）」が左に残る場合は以下も追加 */
#footer-widgets ul,
#footer-widgets li {
    text-align: right;
    justify-content: flex-end;
}

/* =========================================
   NovelReader マニュアル用スタイルシート
   ========================================= */

/* Modernized to the site design system (main.css tokens: --navy --blue --cyan --ink --muted --line). */

/* 全体のコンテナ */
.nr-showcase {
    color: var(--ink);
    line-height: 1.85;
    margin: 0 auto;
    background: transparent;
}

/* メインタイトル */
.entry-content .nr-main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.03em;
    padding-bottom: 18px;
    margin: 0 0 24px;
    line-height: 1.15;
    position: relative;
}

.nr-main-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 84px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.nr-main-title .nr-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--muted);
    font-weight: 600;
    display: block;
    margin-top: 12px;
    letter-spacing: 0;
}

/* キャッチフレーズ */
.entry-content .nr-catchphrase {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 800;
    text-align: center;
    color: var(--navy);
    line-height: 1.6;
    background: #eef2fb;
    padding: 26px 28px;
    border-radius: var(--radius);
    margin: 0 0 34px;
    border-left: 6px solid var(--blue);
}

/* 概要文 */
.nr-description {
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 46px;
}

/* セクションタイトル共通 */
.entry-content .nr-section-title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: var(--ink) !important;
    background: transparent;
    letter-spacing: -.02em;
    padding: 0 0 12px 20px;
    margin: 56px 0 24px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.nr-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 14px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue), var(--cyan));
}

/* 機能リスト */
.nr-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.nr-features-list > li {
    margin: 0;
    padding: 26px 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(9, 26, 51, .05);
    transition: transform .2s, box-shadow .2s;
}

.nr-features-list > li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* 機能の見出し */
.nr-feature-head {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    position: relative;
    padding-left: 34px;
}

.nr-feature-head::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: -1px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #e9eefb;
    color: var(--blue);
    font-size: .8rem;
}

/* 機能の説明文 */
.entry-content .nr-feature-body {
    font-size: 1rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.entry-content .nr-feature-body + .nr-feature-body { margin-top: .8em; }

/* サブリスト（細かい機能） */
.nr-sub-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 18px 20px 18px 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.nr-sub-list li {
    margin-bottom: 8px;
    font-size: .95rem;
    color: var(--ink);
    padding-left: 18px;
    position: relative;
}

.nr-sub-list li:last-child { margin-bottom: 0; }

.nr-sub-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
}

.nr-sub-list li b { color: var(--navy); }

/* スペック表 */
.entry-content .nr-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 22px;
    font-size: .98rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.entry-content .nr-specs-table th, .entry-content .nr-specs-table td {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 18px;
    text-align: left;
    vertical-align: top;
}

.entry-content .nr-specs-table tr:last-child th,
.entry-content .nr-specs-table tr:last-child td { border-bottom: 0; }

.entry-content .nr-specs-table th {
    background: #eef2fb;
    width: 32%;
    color: var(--navy);
    font-weight: 800;
    border-right: 1px solid var(--line);
}

/* 権限注釈 */
.nr-permission-note {
    font-size: .95rem;
    color: var(--muted);
    background: #fff7ed;
    padding: 18px 20px;
    border: 1px solid #fcd9b6;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
}

.nr-permission-note strong { color: #b45309; }

/* スマホ向け調整 */
@media (max-width: 600px) {
    .nr-features-list > li { padding: 22px 20px; }
    .nr-catchphrase { padding: 20px; }
    .nr-specs-table th { width: 40%; }
}

/* =========================================
   以下、画像サムネイル・拡大用スタイル（追記分）
   ========================================= */

/* 画像コンテナ */
.nr-img-container {
    display: inline-block;
    position: relative;
    margin: 10px 0;
    transition: all 0.3s ease;
    z-index: 1;
}

/* 通常時（サムネイル表示） */
.nr-thumbnail {
    width: 25% !important; /* 幅を1/4に縮小 */
    min-width: 150px;      /* 最小サイズの確保 */
    cursor: zoom-in;       /* カーソルをズームアイコンに */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease; /* 滑らかに変化 */
    vertical-align: top;
}

/* マウスオーバー時（拡大表示） */
.nr-thumbnail:hover {
    width: 100% !important; /* 親要素いっぱいに拡大 */
    max-width: 600px;       /* 巨大になりすぎないよう制限 */
    position: relative;
    z-index: 100;           /* 他の要素より手前に表示 */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3); /* 影を強調 */
    cursor: zoom-out;
}

/* 並列表示（Flexbox）内の画像用ラッパー */
.nr-flex-img-wrapper {
    position: relative; /* 子要素の絶対配置の基準 */
    transition: all 0.3s ease;
}

/* Flexbox内のサムネイル（ラッパーに対して100% = 分割幅） */
.nr-flex-img-wrapper .nr-thumbnail {
    width: 100% !important;
    min-width: auto;
}

/* Flexbox内でホバーした時の挙動 */
.nr-flex-img-wrapper:hover .nr-thumbnail {
    position: absolute; /* フローから外して上に被せる */
    width: 300% !important; /* 元の枠の約3倍に拡大（適宜調整） */
    max-width: 600px;
    left: 0;
    top: 0;
    z-index: 1000;
}

/* =========================================
   最下部：戻るボタンの配置修正
   ========================================= */

.nr-footer-navigation {
    display: block !important;
    width: 100% !important;
    text-align: center !important; /* 子要素を中央に寄せる */
    margin-top: 60px !important;
    padding-top: 30px !important;
    border-top: 1px solid #eee !important;
    clear: both !important;        /* 回り込みを解除 */
}

.nr-back-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    width: auto !important;
    min-width: 160px !important;
    height: 48px !important;
    padding: 0 28px !important;
    background: var(--white) !important;
    color: var(--ink) !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    border: 1px solid var(--line) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s !important;
}

/* アイコンと文字の間に少し隙間を作る */
.nr-back-link span {
    margin-right: 8px !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* ホバー時の挙動も上書き */
.nr-back-link:hover {
    background: var(--navy) !important;
    color: #ffffff !important;
    border-color: var(--navy) !important;
    box-shadow: var(--shadow) !important;
    transform: translateY(-2px) !important;
}

/* =========================================
   メインページ用：マニュアルリンクボタン
   ========================================= */

.nr-manual-link-container {
    text-align: center !important;
    margin: 40px 0 !important;
    width: 100% !important;
}

.nr-manual-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(145deg, #173c97, #2357d9) !important;
    color: #ffffff !important;
    padding: 16px 34px !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    box-shadow: 0 12px 30px rgba(35, 87, 217, .28) !important;
    transition: transform .2s, box-shadow .2s, filter .2s !important;
    line-height: 1 !important;
}

.nr-manual-button .nr-icon {
    margin-right: 10px !important;
    font-size: 1.25rem !important;
}

/* ホバー時の動き：少し浮き上がり、明るくなる */
.nr-manual-button:hover {
    filter: brightness(1.06) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 38px rgba(35, 87, 217, .38) !important;
    color: #ffffff !important;
}

/* スマホ向け調整 */
@media (max-width: 600px) {
    .nr-manual-button {
        font-size: 16px !important;
        padding: 12px 25px !important;
        width: 90% !important; /* スマホでは横幅いっぱいに近く */
    }
}
/*
  NovelAI Tag Manager 紹介ページ / 使い方ガイドページ 共通 追加CSS
  貼り付け先: 外観 > カスタマイズ > 追加CSS
             （または子テーマの style.css / Code Snippets等のカスタムCSSプラグイン）
  page-content.html（紹介ページ）と guide-content.html（使い方ガイドページ）の
  どちらにもこの1ファイルだけで対応します。

  すべて .natm-page 配下に閉じたセレクタにしてあるため、
  Vantageテーマの他ページ・他要素のスタイルには影響しません。

  文字サイズについて:
  テーマ側で html のルートフォントサイズが小さく設定されていると、
  rem単位の文字サイズが想定より小さく表示されます。
  そのため本ファイルでは em単位を使い、.natm-page 自身に
  font-size: 16px を明示することで、テーマ側の設定に関わらず
  一定の大きさで表示されるようにしています。
*/

.natm-page {
  /* Re-skinned to the site design system (see main.css tokens). */
  --natm-bg: #f7f8fa;
  --natm-surface: #ffffff;
  --natm-border: #dfe4ea;
  --natm-text: #111827;
  --natm-text-muted: #5f6b7a;
  --natm-primary: #2357d9;
  --natm-primary-dark: #173c97;
  --natm-accent: #ef4e55;
  --natm-radius: 12px;

  font-size: 16px;
  color: var(--natm-text);
  line-height: 1.7;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}

.natm-page img {
  max-width: 100%;
}

.natm-page a {
  color: var(--natm-primary);
}

.natm-page h2,
.natm-page h3,
.natm-page h4 {
  color: var(--natm-text);
}

.natm-section {
  padding: 56px 0;
}

.natm-section h2 {
  font-size: 1.7em;
  margin: 0 0 8px;
}

.natm-section-lead {
  font-size: 1.05em;
  color: var(--natm-text-muted);
  margin: 0 0 32px;
  max-width: 720px;
  white-space: pre-line;
}

/* ----- Buttons ----- */

.natm-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--natm-radius);
  font-weight: 700;
  font-size: 1em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.natm-page .natm-btn-primary {
  background: var(--natm-primary);
  color: #fff;
}

.natm-page .natm-btn-primary:hover {
  background: var(--natm-primary-dark);
  color: #fff;
  text-decoration: none;
}

.natm-page .natm-btn-secondary {
  background: var(--natm-surface);
  color: var(--natm-text);
  border-color: var(--natm-border);
}

.natm-page .natm-btn-secondary:hover {
  border-color: var(--natm-primary);
  color: var(--natm-primary);
  text-decoration: none;
}

/* ----- Badges / requirement notice ----- */

.natm-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.natm-badge {
  display: inline-block;
  background: #eef4fd;
  color: var(--natm-primary-dark);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.9em;
  font-weight: 700;
}

.natm-badge-warning {
  background: #fdecea;
  color: var(--natm-accent);
}

.natm-badge-external {
  background: #eafaf1;
  color: #1d8a4a;
}

.natm-requirement-note {
  background: #fdecea;
  border: 1px solid var(--natm-accent);
  border-radius: var(--natm-radius);
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 1em;
  text-align: left;
  color: var(--natm-text);
  white-space: pre-line;
}

.natm-cta-banner .natm-requirement-note {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.natm-cta-banner .natm-requirement-note a {
  color: #fff;
  text-decoration: underline;
}

.natm-download-note {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--natm-radius);
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 1em;
  text-align: left;
  color: #fff;
}

/* ----- AI notice ----- */

.natm-ai-notice {
  background: #fff8e6;
  border: 1px solid #f0c36d;
  border-radius: var(--natm-radius);
  padding: 16px 20px;
  margin: 24px 0 0;
  text-align: center;
}

.natm-ai-notice p {
  margin: 0;
  font-size: 0.98em;
  color: var(--natm-text);
  white-space: pre-line;
}

/* ----- Hero ----- */

.natm-hero {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.natm-hero-copy,
.natm-hero-visual {
  min-width: 0;
}

@media (max-width: 860px) {
  .natm-hero {
    grid-template-columns: 1fr;
  }
}

.natm-hero-copy h2 {
  font-size: 2.2em;
  line-height: 1.4;
  margin: 0 0 14px;
}

.natm-hero-copy p {
  font-size: 1.05em;
  color: var(--natm-text-muted);
  margin: 0 0 22px;
  max-width: 560px;
  white-space: pre-line;
}

.natm-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.natm-hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95em;
  color: var(--natm-text-muted);
}

/* ----- Feature cards ----- */

.natm-card {
  background: var(--natm-surface);
  border: 1px solid var(--natm-border);
  border-radius: var(--natm-radius);
  padding: 20px;
}

.natm-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .natm-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .natm-feature-grid {
    grid-template-columns: 1fr;
  }
}

.natm-feature-card .natm-feature-icon {
  font-size: 1.7em;
  margin-bottom: 10px;
}

.natm-feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.15em;
}

.natm-feature-card p {
  margin: 0;
  color: var(--natm-text-muted);
  font-size: 1em;
  white-space: pre-line;
}

/* ----- Tab strip preview ----- */

.natm-tab-strip-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.natm-tab-chip {
  background: var(--natm-surface);
  border: 1px solid var(--natm-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.95em;
  color: var(--natm-text-muted);
}

/* ----- Workflow steps ----- */

.natm-workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 860px) {
  .natm-workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .natm-workflow-steps {
    grid-template-columns: 1fr;
  }
}

.natm-workflow-step .natm-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--natm-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.natm-workflow-step h3 {
  margin: 0 0 6px;
  font-size: 1.05em;
}

.natm-workflow-step p {
  margin: 0;
  color: var(--natm-text-muted);
  font-size: 1em;
}

/* ----- CTA banner ----- */

.natm-cta-banner {
  background: linear-gradient(135deg, var(--natm-primary), var(--natm-primary-dark));
  color: #fff;
  border-radius: var(--natm-radius);
  padding: 36px;
  text-align: center;
}

.natm-cta-banner h2 {
  margin-top: 0;
  color: #fff;
}

.natm-cta-banner p {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
  white-space: pre-line;
}

.natm-cta-banner .natm-btn-secondary {
  background: #fff;
}

.natm-cta-banner .natm-cta-copyright {
  margin: 18px 0 0;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
}

/* ----- Quick links (in-page + cross-page navigation) ----- */

.natm-quicklinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.natm-page .natm-quicklinks a {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--natm-primary-dark);
  background: #eef4fd;
  border-radius: 999px;
  padding: 6px 16px;
  text-decoration: none;
}

.natm-page .natm-quicklinks a:hover {
  background: var(--natm-primary);
  color: #fff;
}

/* ----- Synergy flow (Tag Manager -> NovelAI -> St2E) ----- */

#natm-synergy {
  text-align: center;
}

#natm-synergy .natm-section-lead {
  margin: 0 auto 32px;
}

.natm-synergy-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.natm-synergy-step {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  background: var(--natm-surface);
  border: 1px solid var(--natm-border);
  border-radius: var(--natm-radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.natm-synergy-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(31, 35, 40, 0.1);
}

.natm-synergy-step-external {
  border-color: #1d8a4a;
  background: #f3fbf6;
}

.natm-synergy-icon {
  font-size: 1.8em;
  margin-bottom: 8px;
}

.natm-synergy-step h3 {
  margin: 0 0 6px;
  font-size: 1.05em;
}

.natm-synergy-step p {
  margin: 0;
  font-size: 0.95em;
  color: var(--natm-text-muted);
}

.natm-synergy-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  color: var(--natm-primary);
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .natm-synergy-flow {
    flex-direction: column;
    align-items: center;
  }

  .natm-synergy-arrow {
    transform: rotate(90deg);
  }
}

.natm-synergy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.natm-synergy-flow-label {
  font-weight: 700;
  color: var(--natm-text-muted);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 24px 0 10px;
}

.natm-synergy-ideas-title {
  font-size: 1.2em;
  margin: 36px 0 16px;
}

.natm-synergy-ideas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  text-align: left;
}

@media (max-width: 860px) {
  .natm-synergy-ideas {
    grid-template-columns: 1fr;
  }
}

.natm-synergy-ideas .natm-card h4 {
  margin: 0 0 8px;
  font-size: 1.05em;
}

.natm-synergy-ideas .natm-card p {
  margin: 0;
  font-size: 0.95em;
  color: var(--natm-text-muted);
}

/* ----- Hover lift for feature cards / CTA pulse ----- */

.natm-feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.natm-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(31, 35, 40, 0.1);
}

@keyframes natm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.natm-cta-banner .natm-btn-primary {
  animation: natm-pulse 2.2s ease-in-out infinite;
}

/* ----- App window mock-up ----- */

.natm-mockup {
  border: 1px solid var(--natm-border);
  border-radius: var(--natm-radius);
  background: var(--natm-surface);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.08);
}

.natm-mockup-titlebar {
  background: #e9ecef;
  padding: 6px 10px;
  font-size: 0.85em;
  color: var(--natm-text-muted);
  border-bottom: 1px solid var(--natm-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.natm-mockup-titlebar .natm-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8cdd3;
  display: inline-block;
}

.natm-mockup-toolbar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--natm-border);
  background: #fafbfc;
  flex-wrap: wrap;
}

.natm-mockup-btn {
  font-size: 0.8em;
  border: 1px solid var(--natm-border);
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--natm-text-muted);
}

.natm-mockup-toolbar .natm-mockup-pane {
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.natm-mockup-tabs {
  display: flex;
  gap: 2px;
  padding: 0 10px;
  background: #fafbfc;
  border-bottom: 1px solid var(--natm-border);
  flex-wrap: wrap;
}

.natm-mockup-tab {
  font-size: 0.8em;
  padding: 6px 10px;
  color: var(--natm-text-muted);
  border-bottom: 2px solid transparent;
}

.natm-mockup-tab.natm-active {
  color: var(--natm-primary);
  border-bottom-color: var(--natm-primary);
  font-weight: 700;
}

.natm-mockup-body {
  display: flex;
  min-height: 200px;
}

@media (max-width: 600px) {
  .natm-mockup-body {
    flex-direction: column;
  }
}

.natm-mockup-pane {
  padding: 10px;
  font-size: 0.8em;
  color: var(--natm-text-muted);
  min-width: 0;
}

.natm-mockup-pane-side {
  width: 34%;
  border-right: 1px solid var(--natm-border);
  background: #fcfcfd;
}

.natm-mockup-pane-main {
  flex: 1;
}

@media (max-width: 600px) {
  .natm-mockup-pane-side {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--natm-border);
  }
}

.natm-mockup-heading {
  font-weight: 700;
  color: var(--natm-text);
  margin-bottom: 6px;
  font-size: 0.85em;
}

.natm-mockup-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 4px;
}

.natm-mockup-row.natm-group-heading {
  font-weight: 700;
  color: var(--natm-text);
  margin-top: 6px;
}

.natm-mockup-grid {
  border: 1px solid var(--natm-border);
  border-radius: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 8px;
}

.natm-mockup-grid-row {
  display: flex;
  min-width: max-content;
}

.natm-mockup-grid-row > div {
  flex: 1;
  min-width: 84px;
  padding: 5px 7px;
  border-bottom: 1px solid var(--natm-border);
  border-right: 1px solid var(--natm-border);
  font-size: 0.8em;
}

.natm-mockup-grid-row > div:last-child {
  border-right: none;
}

.natm-mockup-grid-row.natm-head {
  background: #f1f3f5;
  font-weight: 700;
}

.natm-mockup-switch {
  width: 26px;
  height: 14px;
  border-radius: 8px;
  background: var(--natm-primary);
  position: relative;
  display: inline-block;
}

.natm-mockup-switch::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  right: 2px;
}

.natm-mockup-switch.natm-off {
  background: #c8cdd3;
}

.natm-mockup-switch.natm-off::after {
  right: auto;
  left: 2px;
}

.natm-mockup-caption {
  text-align: center;
  font-size: 0.95em;
  color: var(--natm-text-muted);
  margin-top: 10px;
}

/* ================================================================
   使い方ガイドページ (guide-content.html) 用
   ================================================================ */

.natm-page .natm-guide-intro h2 {
  font-size: 1.9em;
  margin: 0 0 8px;
}

.natm-guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 860px) {
  /* display: grid のままだと目次(.natm-guide-toc)が自分の行の高さ分しか
     position: sticky で動けず、画面に追従できない。display: block にして
     通常のブロック要素として流すことで、ページ全体のスクロールに対して
     sticky が正しく機能するようにする。 */
  .natm-guide-layout {
    display: block;
  }
}

.natm-guide-toc {
  position: sticky;
  top: 20px;
  background: var(--natm-surface);
  border: 1px solid var(--natm-border);
  border-radius: var(--natm-radius);
  padding: 16px;
}

.natm-guide-toc h3 {
  font-size: 1em;
  margin: 0 0 10px;
  color: var(--natm-text-muted);
}

.natm-guide-toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95em;
}

.natm-guide-toc li {
  margin-bottom: 6px;
}

.natm-guide-toc a.natm-active {
  color: var(--natm-primary-dark);
  font-weight: 700;
}

/* スマホ幅: 縦の番号付きリストから、折り返しありの横並びチップに変更し、
   常に画面上部に固定して目次として追従させる */
@media (max-width: 860px) {
  .natm-guide-toc {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(31, 35, 40, 0.08);
  }

  .natm-guide-toc h3 {
    display: none;
  }

  .natm-guide-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    font-size: 1em;
  }

  .natm-guide-toc li {
    margin-bottom: 0;
  }

  .natm-guide-toc a {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    color: var(--natm-primary-dark);
    background: #eef4fd;
    border-radius: 999px;
    padding: 6px 14px;
    text-decoration: none;
  }

  .natm-guide-toc a.natm-active {
    background: var(--natm-primary);
    color: #fff;
  }
}

.natm-guide-section {
  margin-bottom: 52px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--natm-border);
}

.natm-guide-section:last-child {
  border-bottom: none;
}

.natm-guide-section h3 {
  font-size: 1.4em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.natm-guide-section h4 {
  font-size: 1.1em;
  margin: 20px 0 6px;
}

.natm-guide-section p {
  font-size: 1em;
  white-space: pre-line;
}

.natm-guide-section .natm-step-list {
  margin: 18px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: natm-step;
  font-size: 1em;
}

.natm-guide-section .natm-step-list > li {
  counter-increment: natm-step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
}

.natm-guide-section .natm-step-list > li::before {
  content: counter(natm-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--natm-primary);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.natm-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 760px) {
  .natm-guide-grid {
    grid-template-columns: 1fr;
  }
}

.natm-guide-grid .natm-card h3 {
  font-size: 1.1em;
  margin: 0 0 6px;
}

.natm-guide-grid .natm-card p {
  font-size: 1em;
  margin: 0;
  white-space: pre-line;
}

.natm-note-box {
  border-left: 4px solid var(--natm-primary);
  background: #eef4fd;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 1em;
  margin: 16px 0;
  white-space: pre-line;
}

.natm-note-box.natm-warn {
  border-left-color: var(--natm-accent);
  background: #fdeeee;
}

.natm-cta-banner .natm-note-box.natm-warn {
  background: #fff7f7;
  color: #3f1d24;
  border-left-color: #dc2626;
  text-align: left;
  line-height: 1.8;
}

.natm-faq-item {
  border: 1px solid var(--natm-border);
  border-radius: var(--natm-radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.natm-faq-question {
  width: 100%;
  text-align: left;
  background: var(--natm-surface);
  border: none;
  padding: 14px 16px;
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.natm-faq-question::after {
  content: "+";
  font-size: 1.2em;
  color: var(--natm-primary);
}

.natm-faq-item.natm-is-open .natm-faq-question::after {
  content: "\2212";
}

.natm-faq-answer {
  display: none;
  padding: 0 16px 16px;
  color: var(--natm-text-muted);
  font-size: 1em;
  white-space: pre-line;
}

.natm-faq-item.natm-is-open .natm-faq-answer {
  display: block;
}

.natm-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--natm-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(31, 35, 40, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
  z-index: 100;
}

.natm-back-to-top.natm-is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================================
   NovelAI Tag Manager 技術アピール特設ページ (announce-content.html) 用
   短期掲載用。掲載期間終了後はこのブロックごと削除してOKです。

   方針: 派手な演出は使わず、白背景+青/水色で
        「技術力が伝わる」見せ方にする。

   注意: pre / code / button はテーマ側(Vantage)が
        ".entry-content pre" 等のクラス+タグ指定で背景色・文字色を
        持っている可能性があり、こちらが単一クラスのままだと
        詳細度で負けて上書きされてしまう（ダウンロードボタンの文字が
        消えた件と同じ現象）。そのため全セレクタを
        ".natm-tech-page" を含む2クラス以上の指定にしてあります。
   ================================================================ */

.natm-tech-page {
  --tech-blue: #1565c0;
  --tech-blue-deep: #0d47a1;
  --tech-cyan: #29b6f6;
  --tech-cyan-pale: #e3f6fd;
  --tech-ink: #102a43;
  --tech-muted: #5b7a93;
  --tech-line: #cfe8f7;
  --tech-terminal-bg: #0b1f33;
  --tech-terminal-fg: #8fd6ff;

  position: relative;
  font-size: 16px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  color: var(--tech-ink);
  background-color: #ffffff;
  background-image: linear-gradient(var(--tech-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tech-line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  border: 1px solid var(--tech-line);
  border-radius: 12px;
  margin: 20px 0;
  padding: 0 0 56px;
}

.natm-tech-page * {
  box-sizing: border-box;
}

.natm-tech-page code,
.natm-tech-page pre,
.natm-tech-page .natm-tech-mono {
  font-family: "SFMono-Regular", "Consolas", "Source Code Pro", monospace;
}

/* Hero */

.natm-tech-page .natm-tech-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 8px;
  text-align: center;
}

.natm-tech-page .natm-tech-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.natm-tech-page .natm-tech-shield {
  display: inline-flex;
  font-size: 0.82em;
  font-weight: 700;
  font-family: "SFMono-Regular", "Consolas", "Source Code Pro", monospace;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.15);
}

.natm-tech-page .natm-tech-shield-label {
  background: var(--tech-ink);
  color: #fff;
  padding: 3px 8px;
}

.natm-tech-page .natm-tech-shield-value {
  background: var(--tech-cyan);
  color: #042235;
  padding: 3px 8px;
}

.natm-tech-page .natm-tech-terminal {
  text-align: left;
  background: var(--tech-terminal-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(13, 71, 161, 0.25);
  margin-bottom: 12px;
}

.natm-tech-page .natm-tech-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.natm-tech-page .natm-tech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
}

.natm-tech-page .natm-tech-terminal-title {
  margin-left: 8px;
  font-size: 0.8em;
  font-family: "SFMono-Regular", "Consolas", "Source Code Pro", monospace;
  color: rgba(255, 255, 255, 0.6);
}

.natm-tech-page .natm-tech-terminal-body {
  margin: 0;
  padding: 18px 16px 22px;
  min-height: 220px;
  background: var(--tech-terminal-bg);
  font-size: 0.85em;
  line-height: 1.7;
  color: var(--tech-terminal-fg);
  white-space: pre-wrap;
  word-break: break-word;
}

.natm-tech-page .natm-tech-cursor {
  display: inline-block;
  color: var(--tech-cyan);
  animation: natm-tech-blink 1s step-end infinite;
}

@keyframes natm-tech-blink {
  50% { opacity: 0; }
}

.natm-tech-page .natm-tech-terminal-caption {
  font-size: 0.82em;
  color: var(--tech-muted);
  text-align: center;
  margin: 0 0 28px;
}

.natm-tech-page .natm-tech-title {
  font-size: 2em;
  font-weight: 800;
  color: var(--tech-blue-deep);
  margin: 0 0 12px;
}

.natm-tech-page .natm-tech-lead {
  font-size: 1.05em;
  line-height: 1.8;
  color: var(--tech-muted);
  margin: 0 0 8px;
}

/* セクション共通 */

.natm-tech-page .natm-tech-section-title {
  max-width: 760px;
  margin: 48px auto 18px;
  padding: 0 20px;
  font-family: "SFMono-Regular", "Consolas", "Source Code Pro", monospace;
  font-size: 0.95em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tech-blue);
  border-bottom: 2px solid var(--tech-cyan);
  display: inline-block;
  padding-bottom: 4px;
}

/* Specs */

.natm-tech-page .natm-tech-spec-grid {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .natm-tech-page .natm-tech-spec-grid {
    grid-template-columns: 1fr;
  }
}

.natm-tech-page .natm-tech-spec-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--tech-line);
  border-left: 3px solid var(--tech-blue);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 0.92em;
}

.natm-tech-page .natm-tech-spec-label {
  color: var(--tech-muted);
  white-space: nowrap;
}

.natm-tech-page .natm-tech-spec-value {
  color: var(--tech-ink);
  font-weight: 700;
  text-align: right;
}

/* Demo */

.natm-tech-page .natm-tech-demo-note {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 0 20px;
  font-size: 0.92em;
  color: var(--tech-muted);
}

.natm-tech-page .natm-tech-demo-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.natm-tech-page .natm-tech-demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.natm-tech-page .natm-tech-tag {
  font-size: 0.92em;
  font-weight: 700;
  background: #fff;
  color: var(--tech-blue);
  border: 1px solid var(--tech-cyan);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.natm-tech-page .natm-tech-tag.is-on {
  background: var(--tech-blue);
  color: #fff;
  border-color: var(--tech-blue);
}

.natm-tech-page .natm-tech-demo-output {
  background: var(--tech-terminal-bg);
  border-radius: 8px;
  overflow: hidden;
}

.natm-tech-page .natm-tech-demo-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  font-family: "SFMono-Regular", "Consolas", "Source Code Pro", monospace;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.6);
}

.natm-tech-page .natm-tech-copy {
  background: var(--tech-cyan);
  color: #042235;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 700;
  padding: 3px 10px;
  cursor: pointer;
}

.natm-tech-page .natm-tech-demo-output-text {
  display: block;
  padding: 16px 14px 20px;
  min-height: 1.6em;
  background: var(--tech-terminal-bg);
  color: var(--tech-terminal-fg);
  font-size: 0.95em;
  line-height: 1.6;
  word-break: break-word;
}

/* Stack */

.natm-tech-page .natm-tech-stack-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.natm-tech-page .natm-tech-pill {
  font-family: "SFMono-Regular", "Consolas", "Source Code Pro", monospace;
  font-size: 0.85em;
  font-weight: 700;
  background: var(--tech-cyan-pale);
  color: var(--tech-blue-deep);
  border: 1px solid var(--tech-cyan);
  border-radius: 4px;
  padding: 4px 10px;
}

/* CTA */

.natm-tech-page .natm-tech-cta-section {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 24px 20px 0;
  text-align: center;
  border-top: 1px dashed var(--tech-line);
}

.natm-tech-page .natm-tech-cta-note {
  font-size: 0.88em;
  color: var(--tech-muted);
  margin: 0 0 16px;
}

.natm-tech-page .natm-tech-cta {
  display: inline-block;
  background: var(--tech-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.natm-tech-page .natm-tech-cta:hover {
  background: var(--tech-blue-deep);
  color: #fff;
  text-decoration: none;
}

.natm-tech-page .natm-tech-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.natm-tech-page .natm-tech-cta-secondary {
  background: transparent;
  color: var(--tech-blue);
  border: 1px solid var(--tech-blue);
}

.natm-tech-page .natm-tech-cta-secondary:hover {
  background: var(--tech-cyan-pale);
  color: var(--tech-blue-deep);
}

/* =========================================
   Novel Reader for Windows — 紹介／マニュアル用コンポーネント
   （main.css のデザイントークンに準拠）
   ========================================= */

/* 製品ヒーロー（サマリーカード） */
.nr-hero {
    margin: 0 0 52px;
    padding: 40px 44px;
    border-radius: 22px;
    color: #fff;
    background: radial-gradient(circle at 82% 18%, rgba(53,197,240,.22), transparent 30%),
                linear-gradient(135deg, #07152a 0%, #0c2851 62%, #123a72 100%);
    box-shadow: 0 30px 70px rgba(9,26,51,.22);
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
    gap: 40px;
    align-items: center;
}
.nr-hero__tagline {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 2.6vw, 2.05rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.02em;
}
.nr-hero__tagline .accent { color: var(--cyan); }
.nr-hero__lead {
    margin: 0 0 22px;
    color: #c5d3e5;
    font-size: 1.02rem;
    line-height: 1.85;
}
.nr-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}
.nr-badge {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #dCEBFB;
    font: 800 .74rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .06em;
}
.nr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nr-hero__shot { margin: 0; }
.nr-hero__shot img {
    display: block;
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 22px 50px rgba(0,0,0,.36);
}

/* 機能カードのグリッド */
.nr-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.nr-feature-card {
    margin: 0;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(9,26,51,.05);
    transition: transform .2s, box-shadow .2s;
}
.nr-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.nr-feature-card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #e9eefb;
    color: var(--blue);
    font-size: 1.5rem;
}
.nr-feature-card h3 {
    margin: 0 0 .5em;
    font-size: 1.2rem;
    color: var(--navy);
    line-height: 1.4;
}
.nr-feature-card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.8; }

/* スクリーンショット */
.nr-figure {
    margin: 26px 0;
    text-align: center;
}
.nr-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.nr-figure figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: .9rem;
}
.nr-figure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
    margin: 26px 0;
}
.nr-figure-grid .nr-figure { margin: 0; }

/* 番号付きの手順 */
.nr-steplist {
    counter-reset: nrstep;
    list-style: none;
    margin: 22px 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.nr-steplist > li {
    counter-increment: nrstep;
    position: relative;
    padding: 20px 22px 20px 66px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.nr-steplist > li::before {
    content: counter(nrstep);
    position: absolute;
    left: 18px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(145deg, #173c97, #2357d9);
    color: #fff;
    font: 800 1rem/1 ui-monospace, monospace;
}
.nr-steplist > li strong { color: var(--navy); }

/* 注記ボックス */
.nr-note {
    margin: 22px 0;
    padding: 18px 22px;
    background: #eef2fb;
    border: 1px solid #d5e0f7;
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    color: var(--ink);
    font-size: .98rem;
    line-height: 1.8;
}
.nr-note strong { color: var(--navy); }
.nr-note--warn {
    background: #fff7ed;
    border-color: #fcd9b6;
    border-left-color: #f59e0b;
}
.nr-note--warn strong { color: #b45309; }

/* 目次 */
.nr-toc {
    margin: 0 0 44px;
    padding: 24px 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.nr-toc h2 { margin: 0 0 14px; font-size: 1.15rem; color: var(--navy); }
.nr-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 34px; }
.nr-toc li { margin-bottom: 8px; }
.nr-toc a { font-weight: 700; text-decoration: none; }
.nr-toc a:hover { text-decoration: underline; }

/* ダウンロードCTA */
.nr-cta {
    margin: 52px 0 8px;
    padding: 40px 44px;
    border-radius: 22px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #0c2851, #123a72);
    box-shadow: 0 24px 60px rgba(9,26,51,.2);
}
.nr-cta h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.5rem,3vw,2.1rem); }
.nr-cta p { margin: 0 auto 24px; max-width: 640px; color: #c5d3e5; }
.nr-cta .nr-cta__note { margin-top: 18px; font-size: .82rem; color: #91a8c5; }

@media (max-width: 820px) {
    .nr-hero { grid-template-columns: 1fr; padding: 32px 26px; gap: 26px; }
    .nr-feature-grid { grid-template-columns: 1fr; }
    .nr-figure-grid { grid-template-columns: 1fr; }
    .nr-toc ol { columns: 1; }
    .nr-cta { padding: 32px 24px; }
}

/* =========================================
   CSSダイアグラム（スクリーンショット代替の簡易図形）
   ========================================= */
.nr-diagram { margin: 28px 0; }
.nr-diagram__caption { margin-top: 12px; text-align: center; color: var(--muted); font-size: .9rem; }

/* パイプライン（横フロー） */
.nr-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 22px 0; }
.nr-flow__step {
    flex: 1 1 140px; min-width: 128px; padding: 18px 14px;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    text-align: center; box-shadow: 0 8px 26px rgba(9,26,51,.05);
}
.nr-flow__ico {
    display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 10px;
    border-radius: 12px; background: #e9eefb; color: var(--blue); font-size: 1.25rem;
}
.nr-flow__step b { display: block; color: var(--navy); font-size: .96rem; margin-bottom: 4px; }
.nr-flow__step span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.nr-flow__arrow { align-self: center; color: var(--blue); font-weight: 800; font-size: 1.2rem; }

/* アプリ画面モック（ウィンドウ） */
.nr-window { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.nr-window__bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: linear-gradient(180deg,#0c2851,#123a72); color: #cfe0f5; font: 700 .82rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
.nr-window__dots { display: flex; gap: 6px; }
.nr-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.nr-window__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.nr-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .76rem; color: var(--navy); font-weight: 700; }
.nr-chip--go { background: var(--blue); color: #fff; border-color: var(--blue); }
.nr-chip--muted { color: var(--muted); }
.nr-window__body { display: grid; grid-template-columns: 1fr .82fr; }
.nr-thumbgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 16px; }
.nr-thumb { position: relative; aspect-ratio: 3/4; border-radius: 8px; background: linear-gradient(135deg,#e3e9f4,#c7d3e6); border: 1px solid var(--line); }
.nr-thumb::after { content: attr(data-badge); position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; font: 700 .6rem/1.5 ui-monospace,monospace; color: #fff; }
.nr-thumb--auto::after { background: #16a34a; }
.nr-thumb--review::after { background: #d97706; }
.nr-detail { padding: 16px 18px; border-left: 1px solid var(--line); background: var(--paper); font-size: .82rem; }
.nr-detail h4 { margin: 0 0 10px; color: var(--navy); font-size: .92rem; }
.nr-detail dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; }
.nr-detail dt { color: var(--muted); white-space: nowrap; }
.nr-detail dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.nr-detail .nr-detail__main { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--navy); font-weight: 700; }

/* フォルダツリー */
.nr-tree { margin: 0; padding: 18px 22px; background: #0b1b30; border-radius: 14px; color: #cfe0f5; font: 600 .85rem/1.9 ui-monospace,SFMono-Regular,Consolas,monospace; box-shadow: var(--shadow); overflow-x: auto; }
.nr-tree .nr-tree__head { color: #7f9ac0; letter-spacing: .08em; font-size: .72rem; margin-bottom: 8px; }
.nr-tree .dir { color: #8fd3f4; }
.nr-tree .num { color: #35c5f0; }
.nr-tree .warn { color: #f0a835; }

/* Before / After */
.nr-ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 24px 0; }
.nr-ba__card { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); font: 600 .8rem/1.85 ui-monospace,SFMono-Regular,Consolas,monospace; overflow-x: auto; }
.nr-ba__card h4 { margin: 0 0 8px; font: 800 .7rem/1 ui-monospace,monospace; letter-spacing: .1em; color: var(--muted); }
.nr-ba__card--before { background: #fbf1f0; border-color: #f3d3cf; color: #8a4b45; }
.nr-ba__card--after { background: #eef6f0; border-color: #cfe6d6; color: #2f6b45; }
.nr-ba__arrow { font-size: 1.7rem; color: var(--blue); font-weight: 800; text-align: center; }

/* バッジ凡例 */
.nr-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.nr-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink); }
.nr-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }

@media (max-width: 720px) {
    .nr-flow { flex-direction: column; }
    .nr-flow__arrow { transform: rotate(90deg); }
    .nr-window__body { grid-template-columns: 1fr; }
    .nr-detail { border-left: 0; border-top: 1px solid var(--line); }
    .nr-thumbgrid { grid-template-columns: repeat(4,1fr); }
    .nr-ba { grid-template-columns: 1fr; }
    .nr-ba__arrow { transform: rotate(90deg); }
}
/* NATM character slot diagram */
.natm-slot-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 8px;
  padding: 20px;
  border: 1px solid #c9e6f4;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fcff, #eef8fd);
}
.natm-slot-diagram-source,
.natm-slot-diagram-result,
.natm-slot-diagram-slots {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid #b9ddec;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
.natm-slot-diagram-slots { flex: 1 1 380px; }
.natm-slot-diagram-slots > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(48px, 1fr));
  gap: 5px;
}
.natm-slot-diagram-slots > div span {
  padding: 7px 4px;
  border-radius: 6px;
  background: #087eaf;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.natm-slot-diagram-plus,
.natm-slot-diagram-arrow {
  align-self: center;
  color: #087eaf;
  font-size: 24px;
  font-weight: 700;
}
.natm-slot-diagram-result { border-color: #61b7d9; background: #e8f7fd; }
@media (max-width: 860px) {
  .natm-slot-diagram { flex-direction: column; }
  .natm-slot-diagram-slots { flex-basis: auto; }
  .natm-slot-diagram-plus,
  .natm-slot-diagram-arrow { transform: rotate(90deg); }
}
@media (max-width: 520px) {
  .natm-slot-diagram { padding: 12px; }
  .natm-slot-diagram-slots > div { grid-template-columns: repeat(3, 1fr); }
}
