/**
 * topic-dxai-subsidy.css
 * 中小企業デジタル化・AI導入支援事業費補助金 プロモページ用
 * 親サイト組み込み時は .f8-topic のラッパー内でスコープされる想定
 *
 * .f8-site-header … [it-support.htm](https://www.forum8.co.jp/topic/it-support.htm) と同系のトピック用ヘッダー（ロゴ左）
 */

/* 単体HTML時のベース。親サイトに埋め込む場合は親の body 指定に合わせて調整。 */
body {
  margin: 0;
}

/* ----- Forum8 トピック共通ヘッダー（.f8-topic の外） ----- */
.f8-site-header {
  background: #fff;
  border-bottom: 2.5pt solid #001f63;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-family: var(--f8-topic-font, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif);
}

.f8-site-header__inner {
  max-width: var(--f8-topic-max, 1120px);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.f8-site-header__brand {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.f8-site-header__brand img,
.f8-site-header__logo {
  display: block;
  height: 44px;
  width: auto;
}

.f8-site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 14px;
}

.f8-site-header__nav a {
  color: #222;
  text-decoration: none;
}

.f8-site-header__nav a:hover {
  color: var(--f8-topic-accent, #0d5c9c);
  text-decoration: underline;
  text-underline-offset: 2px;
}

:root {
  --f8-topic-max: 1120px;
  --f8-topic-page-bg: #ffffff;
  --f8-topic-surface: #ffffff;
  --f8-topic-text: #141820;
  --f8-topic-muted: #3d4755;
  --f8-topic-accent: #0d5c9c;
  --f8-topic-accent-hover: #0a4a7d;
  --f8-topic-warn: #b42318;
  --f8-topic-warn-bg: #fde8e6;
  --f8-topic-radius: 0;
  --f8-topic-shadow: 0 2px 8px rgba(26, 35, 50, 0.06);
  /* 見出し・本文ともゴシックで統一 */
  --f8-topic-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  /* .topic-inner の左右 padding 20px×2 を除いた幅＝PC版と同じ列比率で表を横スクロール表示する際の最小幅 */
  --f8-topic-table-scroll-min: calc(var(--f8-topic-max) - 40px);
}

.f8-topic {
  font-family: var(--f8-topic-font);
  color: var(--f8-topic-text);
  background: var(--f8-topic-page-bg);
  line-height: 1.8;
  font-size: 17px;
}

.f8-topic button,
.f8-topic input,
.f8-topic select,
.f8-topic textarea {
  font-family: var(--f8-topic-font);
}

.f8-topic * {
  box-sizing: border-box;
}

.f8-topic .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.f8-topic a {
  color: var(--f8-topic-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.f8-topic a:hover {
  color: var(--f8-topic-accent-hover);
}

.f8-topic .topic-inner {
  max-width: var(--f8-topic-max);
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* ----- 目次（ヒーロー直下・箇条書きリンク・枠囲み） ----- */
.f8-topic .topic-toc-wrap {
  position: static;
  background: transparent;
  border: none;
}

.f8-topic .topic-inner--toc {
  padding-top: 12px;
  padding-bottom: 28px;
}

.f8-topic .topic-toc-box {
  border: 2px solid #b8c2ce;
  border-radius: var(--f8-topic-radius);
  background: var(--f8-topic-surface);
  padding: 18px 22px 16px;
  box-shadow: var(--f8-topic-shadow);
}

.f8-topic .topic-toc-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--f8-topic-text);
  padding-bottom: 10px;
  border-bottom: 1px solid #d0d8e2;
}

.f8-topic .topic-toc-list {
  margin: 0;
  padding-left: 1.35em;
  list-style-type: disc;
  font-size: 16px;
  line-height: 1.65;
}

.f8-topic .topic-toc-list li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.f8-topic .topic-toc-list li:last-child {
  margin-bottom: 0;
}

.f8-topic .topic-toc-list a {
  color: var(--f8-topic-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.f8-topic .topic-toc-list a:hover {
  color: var(--f8-topic-accent-hover);
}

/* ----- 概要ブロック ----- */
.f8-topic .topic-inner > .overview.topic-section {
  padding-top: 28px;
}

.f8-topic .overview-body {
  margin: 8px 0 0;
  max-width: none;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.f8-topic .overview-body p {
  margin: 0 0 14px;
  color: var(--f8-topic-text);
}

.f8-topic .overview-body p:last-child {
  margin-bottom: 0;
}

.f8-topic ul.overview-list {
  margin: 8px 0 0;
  padding-left: 1.35em;
  max-width: 52em;
  list-style-type: disc;
}

.f8-topic ul.overview-list li {
  margin-bottom: 14px;
  padding-left: 4px;
}

.f8-topic ul.overview-list li:last-child {
  margin-bottom: 0;
}

/* 申請方法：手順リスト（左揃え・縦線・丸ノード／STEP01–04は青、STEP05以降はティール） */
.f8-topic ol.application-steps {
  --application-steps-line: #fcca48;
  --application-steps-line-post: #f37f19;
  --application-steps-node-size: 12px;
  margin: 8px 0 0;
  padding: 0;
  max-width: 52em;
  list-style: none;
  text-align: left;
  color: var(--f8-topic-text);
  position: relative;
}

.f8-topic ol.application-steps a {
  color: var(--f8-topic-accent);
}

.f8-topic ol.application-steps a:hover {
  color: var(--f8-topic-accent-hover);
  opacity: 1;
}

.f8-topic ol.application-steps .reference-note {
  color: var(--f8-topic-text);
}

.f8-topic ol.application-steps > li {
  position: relative;
  margin: 0;
  padding: 0 0 16px calc(var(--application-steps-node-size) + 18px);
}

.f8-topic ol.application-steps > li:last-child {
  padding-bottom: 0;
}

.f8-topic ol.application-steps > li > strong {
  color: #e65100;
}

.f8-topic ol.application-steps > li::before {
  content: "";
  position: absolute;
  left: calc(var(--application-steps-node-size) / 2);
  top: 0.55em;
  width: var(--application-steps-node-size);
  height: var(--application-steps-node-size);
  margin-left: calc(var(--application-steps-node-size) / -2);
  margin-top: calc(var(--application-steps-node-size) / -2);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--application-steps-line);
  box-sizing: border-box;
  z-index: 1;
}

.f8-topic ol.application-steps > li::after {
  content: "";
  position: absolute;
  left: calc(var(--application-steps-node-size) / 2);
  top: calc(0.55em + var(--application-steps-node-size) / 2);
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--application-steps-line);
  border-radius: 1px;
  z-index: 0;
}

.f8-topic ol.application-steps > li:last-child::after {
  display: none;
}

.f8-topic ol.application-steps > li:nth-child(n + 5)::before {
  border-color: var(--application-steps-line-post);
}

.f8-topic ol.application-steps > li:nth-child(n + 5)::after {
  background: var(--application-steps-line-post);
}

.f8-topic ol.application-steps .application-steps-detail {
  margin: 10px 0 0;
  padding: 0 0 0 1.35em;
  list-style: decimal;
  color: inherit;
  text-align: left;
}

.f8-topic ol.application-steps .application-steps-detail > li {
  margin: 8px 0 0;
  padding: 0;
}

.f8-topic ol.application-steps .application-steps-detail > li:first-child {
  margin-top: 0;
}

.f8-topic ol.application-steps .application-steps-detail a {
  color: var(--f8-topic-accent);
}

.f8-topic ol.application-steps .application-steps-detail a:hover {
  color: var(--f8-topic-accent-hover);
}

.f8-topic ol.application-steps .application-steps-note {
  margin: 10px 0 0;
  color: inherit;
}

.f8-topic ol.application-steps .application-steps-note a {
  color: var(--f8-topic-accent);
}

.f8-topic ol.application-steps .application-steps-note a:hover {
  color: var(--f8-topic-accent-hover);
}

/* ----- 補助対象製品の概要（it-support 系ブロック） ----- */
.f8-topic .subsidy-product-blocks {
  margin-top: 16px;
}

.f8-topic .subsidy-product-block {
  padding: 14px 0 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid #d8dee8;
}

.f8-topic .subsidy-product-blocks > .subsidy-product-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 4px;
}

.f8-topic .subsidy-product-block h3 {
  margin: 0 0 10px;
  font-size: calc(1rem + 2pt);
  border-left: 4px solid #001f63;
  padding-left: 12px;
  line-height: 1.35;
}

.f8-topic .subsidy-product-block p {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--f8-topic-text);
}

.f8-topic .subsidy-product-block .table-wrap {
  margin-top: 8px;
  margin-bottom: 10px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.f8-topic .subsidy-product-block .table-fn {
  font-size: 0.68em;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
}

.f8-topic .subsidy-table-footnotes {
  margin: 6px 0 10px;
}

.f8-topic .subsidy-table-footnotes .reference-note {
  margin-top: 8px;
}

.f8-topic .subsidy-table-footnotes .reference-note:first-child {
  margin-top: 0;
}

.f8-topic .subsidy-product-block table.topic-table {
  min-width: 0;
  font-size: calc(15px - 1pt);
  table-layout: fixed;
  width: 100%;
}

.f8-topic .subsidy-product-block table.topic-table th {
  background: #001f63;
  color: #fff;
  border-right-color: rgba(255, 255, 255, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.f8-topic .subsidy-product-block table.topic-table thead th:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.f8-topic .subsidy-product-block table.topic-table th:first-child {
  width: 15.75em;
  box-sizing: border-box;
}

/* subsidy-table--digitalbase: col2 (rate) narrower, col3 (amount+requirements) wider; ratio 8:13*/
.f8-topic .subsidy-product-block table.subsidy-table--digitalbase thead th:nth-child(2) {
  width: calc((100% - 15.75em) * 8 / 21);
}

.f8-topic .subsidy-product-block table.subsidy-table--digitalbase thead th:nth-child(3) {
  width: calc((100% - 15.75em) * 13 / 21);
}

.f8-topic .subsidy-product-block table.topic-table th[scope="row"] {
  white-space: normal;
}

/* Subsidy tables: right border on every tbody cell (rowspan/colspan safe) */
.f8-topic .subsidy-product-block table.topic-table tbody th,
.f8-topic .subsidy-product-block table.topic-table tbody td {
  border-right: 1px solid #d0d8e2;
  vertical-align: middle;
}

/* .topic-table の tr:last-child td { border-bottom: none } を打ち消し、最下行にも下線 */
.f8-topic .subsidy-product-block table.topic-table tbody tr:last-child th,
.f8-topic .subsidy-product-block table.topic-table tbody tr:last-child td {
  border-bottom: 1px solid #e8ecf2;
}

.f8-topic .subsidy-forum8-box {
  margin: 12px 0 10px;
  padding: 11px 13px 13px;
  border: 1px solid #c5cdd8;
  border-radius: var(--f8-topic-radius);
  background: #f5f7fb;
  box-shadow: inset 3px 0 0 0 #001f63;
}

.f8-topic .subsidy-forum8-box__title {
  margin: 0 0 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d8dee8;
  font-size: calc(1rem - 1pt);
  font-weight: 700;
  color: #001f63;
}

.f8-topic .subsidy-forum8-box > p:not(.subsidy-forum8-box__title) {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--f8-topic-text);
}

.f8-topic .subsidy-forum8-box > p:last-child {
  margin-bottom: 0;
}

.f8-topic .subsidy-forum8-box .subsidy-product-tags {
  margin-top: 8px;
  gap: 6px;
}

.f8-topic .subsidy-forum8-box .subsidy-product-tag {
  padding: 5px 10px;
  font-size: 13px;
}

.f8-topic .subsidy-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-start;
}

.f8-topic .subsidy-product-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
}

.f8-topic .subsidy-product-tag:hover {
  filter: brightness(1.05);
  color: #fff;
}

.f8-topic .reference-note {
  font-size: 14px;
  color: var(--f8-topic-muted);
  margin-top: 12px;
}

.f8-topic .reference-note.reference-note--2pt {
  font-size: calc(14px - 2pt);
}

/* 参考：中小企業・小規模の定義表（業種 | 中小企業（資本金・従業員） | 小規模） */
.f8-topic #reference table.topic-table--reference {
  border-collapse: collapse;
  border: 1px solid #c5cdd8;
}

.f8-topic #reference table.topic-table--reference th,
.f8-topic #reference table.topic-table--reference td {
  border: 1px solid #c5cdd8;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

/* グローバル .topic-table の打ち消し：最下行・最右列も罫線を残す */
.f8-topic #reference table.topic-table--reference tr:last-child th,
.f8-topic #reference table.topic-table--reference tr:last-child td {
  border-bottom: 1px solid #c5cdd8;
}

.f8-topic #reference table.topic-table--reference th:last-child,
.f8-topic #reference table.topic-table--reference td:last-child {
  border-right: 1px solid #c5cdd8;
}

/* thead：見出し背景 */
.f8-topic #reference table.topic-table--reference thead th {
  background: #e2e9f1;
  font-weight: 700;
  white-space: normal;
}

/* tbody 行見出し：左寄せ・やや薄い背景（thead より淡く） */
.f8-topic #reference table.topic-table--reference tbody th {
  text-align: left;
  background: #f4f6fa;
  font-weight: 700;
}

.f8-topic #reference table.topic-table--reference tbody td {
  background: #fff;
}

/* 業種列の右＝中小企業ブロック左の 2px 縦線 */
.f8-topic #reference table.topic-table--reference thead tr:first-child th:first-child,
.f8-topic #reference table.topic-table--reference tbody th:first-child {
  border-right: 2px solid #8a96a8;
}

/* 中小企業ブロック右＝小規模列の左の 2px 縦線（colspan 見出し・従業員列・データ列） */
.f8-topic #reference table.topic-table--reference thead tr:first-child th:nth-child(2) {
  border-right: 2px solid #8a96a8;
}

.f8-topic #reference table.topic-table--reference thead tr:nth-child(2) th:nth-child(2),
.f8-topic #reference table.topic-table--reference tbody td:nth-child(3) {
  border-right: 2px solid #8a96a8;
}

/* 資本金と従業員の間は 1px（上書きで 2px にならないよう明示） */
.f8-topic #reference table.topic-table--reference thead tr:nth-child(2) th:first-child {
  border-right: 1px solid #c5cdd8;
}

.f8-topic #reference table.topic-table--reference tbody td:nth-child(2) {
  border-right: 1px solid #c5cdd8;
}

/* thead 直下の太線（2px） */
.f8-topic #reference table.topic-table--reference thead tr:first-child th[rowspan="2"] {
  border-bottom: 2px solid #8a96a8;
}

.f8-topic #reference table.topic-table--reference thead tr:first-child th[colspan="2"] {
  border-bottom: 1px solid #c5cdd8;
}

.f8-topic #reference table.topic-table--reference thead tr:nth-child(2) th {
  border-bottom: 2px solid #8a96a8;
}

.f8-topic .topic-table--reference th[scope="row"] {
  width: 10.5em;
  vertical-align: top;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .f8-topic .topic-table--reference th[scope="row"] {
    white-space: normal;
  }

  /* 補助枠の表：PC版（.topic-inner 最大幅時）と同一の表幅＝列の幅比率はPCと同じ。ラッパーで横スクロール */
  .f8-topic .subsidy-product-block .table-wrap table.topic-table {
    min-width: var(--f8-topic-table-scroll-min);
  }

  /* 参考の定義表も同じ論理幅で列比率を維持 */
  .f8-topic #reference .table-wrap table.topic-table.topic-table--reference {
    min-width: var(--f8-topic-table-scroll-min);
  }
}

/* ----- 申請枠 通し読み ----- */
.f8-topic .skip-tabs-hint {
  font-size: 15px;
  margin: 0 0 16px;
}

.f8-topic .frames-linear {
  margin-top: 32px;
  padding: 22px 22px 8px;
  background: #f8fafc;
  border: 1px solid #c5cdd8;
  border-radius: var(--f8-topic-radius);
}

.f8-topic .frames-linear-title {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.f8-topic .frames-linear-note {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--f8-topic-muted);
}

.f8-topic .frames-linear-list {
  margin: 0;
  padding-left: 1.35em;
  max-width: 52em;
}

.f8-topic .frames-linear-list li {
  margin-bottom: 16px;
  line-height: 1.8;
}

.f8-topic .frames-linear-list li::marker {
  font-weight: 700;
  color: var(--f8-topic-accent);
}

/* ----- よくある誤解 ----- */
.f8-topic .misconceptions-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  max-width: 52em;
}

.f8-topic .misconceptions-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  margin-bottom: 10px;
  background: var(--f8-topic-surface);
  border: 1px solid #dce2ec;
  border-radius: var(--f8-topic-radius);
  line-height: 1.75;
}

.f8-topic .misconceptions-list li::before {
  content: "※";
  position: absolute;
  left: 16px;
  top: 14px;
  font-weight: 700;
  color: var(--f8-topic-accent);
}

/* ----- 事務局コール案内 ----- */
.f8-topic .contact-callout {
  padding: 18px 18px 16px;
  margin-bottom: 18px;
  background: #f0f5fa;
  border: 1px solid #a8bfcf;
  border-radius: var(--f8-topic-radius);
}

.f8-topic .contact-callout-lead {
  margin: 0 0 8px;
  font-size: 15px;
}

.f8-topic .contact-callout-pre {
  margin: 0 0 12px;
  font-size: 15px;
}

.f8-topic .contact-tel-list {
  margin: 0;
  padding-left: 1.25em;
  font-size: 15px;
  line-height: 1.7;
}

.f8-topic .contact-tel-list a {
  font-weight: 700;
  white-space: nowrap;
}

/* ----- hero（資料・行政トーン：明るい帯＋左アクセント） ----- */
.f8-topic .hero {
  position: relative;
  padding: 40px 20px 44px;
  background: var(--f8-topic-surface);
  color: var(--f8-topic-text);
  border-bottom: 1px solid #c5cdd8;
  box-shadow: inset 6px 0 0 0 var(--f8-topic-accent);
  overflow: hidden;
}

/* KV画像のみ：帯の内寸＝画像表示域（縦横比は画像ファイルに追随・余白なし） */
.f8-topic .hero.hero--document {
  padding: 0;
  background: #ffffff;
  border-bottom: none;
  box-shadow: none;
}

.f8-topic .hero::after {
  display: none;
}

.f8-topic .hero .topic-inner {
  position: relative;
  z-index: 1;
  padding: 0;
}

.f8-topic .hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  border: 1px solid #a8b4c4;
  padding: 5px 12px;
  border-radius: 0;
  background: #fff;
  color: var(--f8-topic-muted);
}

.f8-topic .hero .hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.f8-topic .hero-lead {
  font-size: 1.0625rem;
  max-width: 44em;
  margin: 0 0 26px;
  color: var(--f8-topic-muted);
}

.f8-topic .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.f8-topic .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 0;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.f8-topic .btn-primary {
  background: var(--f8-topic-accent);
  color: #fff;
  border-color: var(--f8-topic-accent);
}

.f8-topic .btn-primary:hover {
  background: var(--f8-topic-accent-hover);
  border-color: var(--f8-topic-accent-hover);
  color: #fff;
}

.f8-topic .btn-ghost {
  background: var(--f8-topic-surface);
  color: var(--f8-topic-accent);
  border-color: var(--f8-topic-accent);
}

.f8-topic .btn-ghost:hover {
  background: #e8f1f8;
}

.f8-topic .btn-outline {
  background: var(--f8-topic-surface);
  color: var(--f8-topic-text);
  border-color: #8a949e;
}

.f8-topic .btn-outline:hover {
  background: #eef1f4;
  border-color: var(--f8-topic-text);
}

/* ----- sections ----- */
.f8-topic section.topic-section {
  padding: 40px 0 0;
}

.f8-topic .topic-section h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  padding-bottom: 0px;
  border-bottom: calc(2px + 1pt) solid var(--f8-topic-accent);
  display: inline-block;
}

.f8-topic .topic-section .section-lead {
  color: var(--f8-topic-muted);
  margin: 12px 0 24px;
  max-width: 52em;
  font-size: 1.0625rem;
}

.f8-topic #forum8-support .section-lead {
  max-width: none;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.f8-topic #products-overview .products-overview-footnote {
  margin: 20px 0 0;
  font-size: calc(1em - 2pt);
  color: var(--f8-topic-text);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ----- スケジュール（画像） ----- */
.f8-topic .schedule-figures {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}

.f8-topic .schedule-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.f8-topic .schedule-figure + .schedule-block {
  margin-top: 1.5rem;
}

.f8-topic .schedule-figure {
  margin: 0;
}

/* スケジュール画像：従来どおりの横幅。picture 内 img は幅100%で親に合わせる */
.f8-topic .schedule-figure picture {
  display: block;
  width: 80%;
  max-width: 100%;
}

.f8-topic .schedule-figure picture img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .f8-topic .schedule-figure picture img {
    cursor: zoom-in;
  }
}

/* スケジュール画像：モバイルでタップ拡大（dialog） */
.schedule-zoom-dialog {
  margin: 0;
  padding: 16px;
  max-width: 100vw;
  max-height: 100vh;
  width: min(100vw, 100%);
  height: min(100vh, 100%);
  box-sizing: border-box;
  border: none;
  background: rgba(20, 24, 32, 0.94);
  color: #fff;
}

.schedule-zoom-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.schedule-zoom-dialog__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(80vh, 100%);
  padding: 44px 8px 16px;
  box-sizing: border-box;
}

.schedule-zoom-dialog__img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}

.schedule-zoom-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  margin: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--f8-topic-radius);
  cursor: pointer;
}

.schedule-zoom-dialog__close:hover,
.schedule-zoom-dialog__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

/* dialog は .f8-topic 外に置くため、見出しの sr-only を別途指定 */
.schedule-zoom-dialog .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.f8-topic .schedule-outside-label {
  margin: 0 0 3px;
  padding: 0;
  font-size: calc(1em - 1pt);
  font-weight: 400;
  line-height: inherit;
  color: var(--f8-topic-text);
  align-self: flex-start;
}

.f8-topic .schedule-accordion {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.f8-topic .schedule-accordion__summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 18px 16px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--f8-topic-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: transparent;
  overflow: hidden;
  transition: color 0.22s ease;
}

.f8-topic .schedule-accordion__summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to right, var(--f8-topic-accent), rgba(255, 255, 255, 0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.f8-topic .schedule-accordion__summary:hover::before,
.f8-topic .schedule-accordion__summary:focus-visible::before {
  transform: scaleX(1);
}

.f8-topic .schedule-accordion__summary:hover,
.f8-topic .schedule-accordion__summary:focus-visible {
  color: #fff;
}

.f8-topic .schedule-accordion__label {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding-left: 1.15em;
}

.f8-topic .schedule-accordion__label::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 50%;
  width: 0.42em;
  height: 0.42em;
  box-sizing: border-box;
  border: solid currentColor;
  border-width: 0 2pt 2pt 0;
  transform: translateY(-50%) rotate(-45deg);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.f8-topic .schedule-accordion[open] .schedule-accordion__label::before {
  transform: translateY(-50%) rotate(45deg);
}

.f8-topic .schedule-accordion__summary::-webkit-details-marker {
  display: none;
}

.f8-topic .schedule-accordion__summary::after {
  display: none;
  content: none;
}

.f8-topic .schedule-accordion__panel {
  padding: 0 18px 16px;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ----- alert strip ----- */
.f8-topic .alert-critical {
  background: var(--f8-topic-warn-bg);
  border: 2px solid #e8a29e;
  border-radius: var(--f8-topic-radius);
  padding: 18px 20px;
  margin: 28px 0 0;
  color: #5c1814;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.f8-topic .alert-critical strong {
  color: var(--f8-topic-warn);
}

.f8-topic ol.application-steps > li .alert-critical {
  margin-top: 14px;
  margin-bottom: 0;
}

.f8-topic .application-official-links {
  margin: 12px 0 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--f8-topic-muted);
}

.f8-topic .application-official-links a {
  font-weight: 600;
}

/* ----- benefit cards ----- */
.f8-topic .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.f8-topic .card {
  background: var(--f8-topic-surface);
  border-radius: var(--f8-topic-radius);
  box-shadow: none;
  padding: 24px;
  border: 1px solid #b8c2ce;
}

.f8-topic .card h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
}

.f8-topic .card .card-tagline {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--f8-topic-accent);
  line-height: 1.55;
  margin: 0 0 14px;
}

.f8-topic .card p {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--f8-topic-muted);
}

.f8-topic .card p:last-child {
  margin-bottom: 0;
}

/* 制度のメリット：枠なし／カード内は中央揃え／本文 −2pt・青色キャッチ −1pt */
.f8-topic #merits .card {
  border: none;
  border-radius: 0;
  text-align: center;
}

.f8-topic #merits .card h3 {
  text-align: center;
  font-size: calc(1.125rem * 1.1);
}

.f8-topic #merits .card p {
  font-size: calc((16px - 2pt) * 1.1);
}

.f8-topic #merits .card p:not(.card-tagline) {
  text-align: center;
}

.f8-topic #merits .card .card-tagline {
  font-size: calc((1.0625rem - 2pt) * 1.1);
}

.f8-topic #merits .merit-card-top-img {
  display: block;
  width: calc(30% * 1.1);
  max-width: 100%;
  height: auto;
  margin: 0 auto calc(10px * 1.1);
}

.f8-topic #merits .merit-card-top-img--30 {
  width: calc(30% * 1.1);
}

.f8-topic #merits .merit-card-top-img--25 {
  width: calc(26% * 1.1);
}

/* ----- tabs (which type) ----- */
.f8-topic .tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 16px;
  list-style: none;
  padding: 0;
}

.f8-topic .tablist button {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 0;
  border: 1px solid #9aacbd;
  background: var(--f8-topic-surface);
  cursor: pointer;
  color: var(--f8-topic-text);
}

.f8-topic .tablist button:hover {
  border-color: var(--f8-topic-accent);
}

.f8-topic .tablist button[aria-selected="true"] {
  background: var(--f8-topic-accent);
  color: #fff;
  border-color: var(--f8-topic-accent);
}

.f8-topic .tab-panel {
  display: none;
  background: var(--f8-topic-surface);
  border-radius: var(--f8-topic-radius);
  border: 1px solid #b8c2ce;
  padding: 20px 22px;
  box-shadow: none;
}

.f8-topic .tab-panel.is-active {
  display: block;
}

.f8-topic .tab-panel h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.f8-topic .tab-panel ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--f8-topic-muted);
  font-size: 16px;
}

.f8-topic #reference .reference-sme h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

/* ----- decision helper ----- */
.f8-topic .decision-box {
  margin-top: 28px;
  padding: 22px;
  background: var(--f8-topic-surface);
  border-radius: var(--f8-topic-radius);
  border: 1px dashed var(--f8-topic-accent);
}

.f8-topic .decision-box h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.f8-topic .decision-q {
  margin-bottom: 14px;
}

.f8-topic .decision-q label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.f8-topic .decision-q select {
  width: 100%;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 14px;
}

.f8-topic .decision-result {
  margin-top: 16px;
  padding: 14px 16px;
  background: #e8f5e9;
  border-radius: 0;
  font-size: 14px;
  display: none;
}

.f8-topic .decision-result.is-visible {
  display: block;
}

/* ----- table ----- */
.f8-topic .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-top: 12px;
  border-radius: var(--f8-topic-radius);
  border: 1px solid #b8c2ce;
  background: var(--f8-topic-surface);
  box-shadow: none;
}

.f8-topic table.topic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

.f8-topic table.topic-table th,
.f8-topic table.topic-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e8ecf2;
  vertical-align: top;
}

.f8-topic table.topic-table th {
  background: #e8eef4;
  font-weight: 700;
  white-space: nowrap;
  border-right: 1px solid #d0d8e2;
}

.f8-topic table.topic-table th:last-child {
  border-right: none;
}

.f8-topic table.topic-table tr:last-child td {
  border-bottom: none;
}

.f8-topic .table-note {
  font-size: 14px;
  color: var(--f8-topic-muted);
  margin-top: 12px;
}

/* ----- accordion ----- */
.f8-topic .accordion {
  margin-top: 16px;
  border-radius: var(--f8-topic-radius);
  overflow: hidden;
  border: 1px solid #e8ecf2;
  background: var(--f8-topic-surface);
}

.f8-topic .accordion-item + .accordion-item {
  border-top: 1px solid #e8ecf2;
}

.f8-topic .accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.f8-topic .accordion-trigger:hover {
  background: #f0f4f8;
}

.f8-topic .accordion-trigger::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--f8-topic-accent);
}

.f8-topic .accordion-item.is-open .accordion-trigger::after {
  content: "−";
}

.f8-topic .accordion-panel {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--f8-topic-muted);
}

.f8-topic .accordion-item.is-open .accordion-panel {
  display: block;
}

/* ----- timeline ----- */
.f8-topic .timeline {
  margin-top: 16px;
  position: relative;
  padding-left: 8px;
}

.f8-topic .timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--f8-topic-accent), #94a3b8);
  border-radius: 0;
}

.f8-topic .timeline-item {
  position: relative;
  padding: 0 0 24px 40px;
}

.f8-topic .timeline-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--f8-topic-surface);
  border: 3px solid var(--f8-topic-accent);
}

.f8-topic .timeline-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.f8-topic .timeline-item p {
  margin: 0;
  font-size: 16px;
  color: var(--f8-topic-muted);
}

.f8-topic .timeline-note {
  font-size: 13px;
  color: var(--f8-topic-muted);
  margin-top: 8px;
}

/* ----- checklist ----- */
.f8-topic .checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.f8-topic .checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--f8-topic-surface);
  border-radius: var(--f8-topic-radius);
  border: 1px solid #b8c2ce;
  margin-bottom: 10px;
  font-size: 16px;
}

.f8-topic .checklist li::before {
  content: "☐";
  font-size: 18px;
  color: var(--f8-topic-accent);
  flex-shrink: 0;
}

/* ----- CTA band ----- */
.f8-topic .cta-band {
  margin-top: 48px;
  padding: 36px 24px;
  background: var(--f8-topic-accent);
  border-radius: var(--f8-topic-radius);
  color: #fff;
  text-align: center;
  border: 1px solid #083d66;
}

.f8-topic .cta-band h2 {
  margin: 0 auto 12px;
  font-size: 1.35rem;
  color: #fff;
  border: none;
  padding: 0;
  text-align: center;
}

.f8-topic .cta-band p {
  margin: 0 0 20px;
  opacity: 0.95;
}

.f8-topic .cta-band .btn-primary {
  background: #fff;
  color: var(--f8-topic-accent);
}

.f8-topic .cta-band .btn-primary:hover {
  background: #eef5fb;
  color: var(--f8-topic-accent-hover);
}

.f8-topic #footer section.footer-cta.topic-section {
  padding: 0;
  margin: 0;
}

.f8-topic #footer .cta-band {
  margin-top: 0;
  padding: 36px 20px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  max-width: none;
}

/* ----- フッター（Forum8 トピック it-support.htm 相当・青帯） ----- */
.f8-topic #footer {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: #001f63;
  border: none;
  font-size: 15px;
}

.f8-topic #footer > footer {
  margin: 0;
}

.f8-topic #footer .footer_in {
  max-width: var(--f8-topic-max);
  margin: 0 auto;
  padding: 22px 20px 26px;
  text-align: center;
}

.f8-topic #footer address {
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.f8-topic .meta-updated {
  font-size: 14px;
  color: var(--f8-topic-muted);
  margin-top: 24px;
}

@media (max-width: 640px) {
  .f8-site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .f8-site-header__nav {
    font-size: 13px;
    gap: 8px 14px;
  }

  .f8-topic .hero:not(.hero--document) {
    padding-top: 28px;
    padding-bottom: 36px;
  }
}

@media print {
  .f8-topic .topic-toc-wrap,
  .f8-topic .skip-tabs-hint {
    display: none !important;
  }

  .f8-topic #reference .tablist {
    display: none !important;
  }

  .f8-topic #reference #panel-ref-sme {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 1.25em;
  }

  .f8-topic .frames-linear {
    border: 1px solid #000;
    background: #fff;
    page-break-inside: avoid;
  }

  .f8-topic {
    font-size: 11pt;
    background: #fff;
    color: #000;
  }

  .f8-topic .hero {
    box-shadow: none;
    border: 1px solid #000;
  }

  .f8-topic a {
    color: #000;
    text-decoration: underline;
  }

  .f8-topic #footer {
    background: #fff;
    border-top: 1px solid #000;
  }

  .f8-topic #footer address {
    color: #000;
  }
}
