/* ZVA knowledge readability kit — 全ナレッジ記事の共通スタイル
   目次 / 表 / グラフ / 図解 / 関連記事 / 記事内CTA
   127記事に重複していたものを外部化（2026-09-09）。編集はこのファイルのみ。 */
/* ===== readability kit (目次 / 表 / グラフ / 図解 / 関連記事) ===== */
    .toc { background: #fff; border: 1px solid #ede9fe; border-radius: 16px; padding: 1.4rem 1.6rem; margin: 2rem 0 2.5rem; box-shadow: 0 4px 24px rgba(108,60,225,.07); }
    .toc-head { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: #6C3CE1; text-transform: uppercase; margin-bottom: .9rem; }
    .toc-head::before { content: ""; width: 18px; height: 2px; background: linear-gradient(90deg,#6C3CE1,#F472B6); border-radius: 2px; }
    .toc ol { counter-reset: toc; list-style: none; padding-left: 0; margin: 0; display: grid; gap: .1rem; }
    .toc li { counter-increment: toc; list-style: none !important; margin: 0; }
    .toc a { display: flex; gap: .7rem; align-items: baseline; padding: .5rem .6rem; border-radius: 9px; color: #374151; text-decoration: none; font-size: .93rem; line-height: 1.6; transition: background .15s, color .15s; }
    .toc a::before { content: counter(toc,decimal-leading-zero); font-size: .72rem; font-weight: 800; color: #A78BFA; font-variant-numeric: tabular-nums; flex-shrink: 0; }
    .toc a:hover { background: #faf5ff; color: #6C3CE1; }

    /* tables */
    .table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid #e5e7eb; border-radius: 14px; -webkit-overflow-scrolling: touch; }
    .table-wrap table { margin: 0 !important; border: 0; min-width: 100%; }
    .table-wrap th:first-child, .table-wrap td:first-child { border-left: 0; }
    .table-wrap th:last-child, .table-wrap td:last-child { border-right: 0; }
    .table-wrap tr:first-child th { border-top: 0; }
    .table-wrap tr:last-child td { border-bottom: 0; }
    /* a reference table may break out of the 768px column on wide screens */
    @media (min-width: 1120px) { .table-wrap.wide { width: calc(100% + 200px); margin-left: -100px; } }
    .prose th { white-space: nowrap; }
    .table-wrap table { font-size: .88rem; }
    .table-wrap th, .table-wrap td { padding: .6rem .8rem; vertical-align: top; }
    .table-wrap td.note { color: #6b7280; font-size: .82rem; line-height: 1.65; }
    .prose tbody tr:nth-child(even) td { background: #fcfbff; }
    .prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .prose td.num { font-weight: 700; color: #1f2937; }
    .prose td.lead-col { font-weight: 700; color: #1f2937; white-space: nowrap; }
    .tag-pill { display: inline-block; font-size: .72rem; font-weight: 800; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }
    .tag-low { background: #d1fae5; color: #047857; }
    .tag-mid { background: #fef3c7; color: #92400e; }
    .tag-high { background: #fce7f3; color: #9d174d; }
    .tag-info { background: #ede9fe; color: #5b21b6; }

    /* inline bar for comparing magnitudes inside a table */
    .bar-cell { min-width: 120px; }
    .bar { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg,#6C3CE1,#A78BFA); }
    .bar.alt { background: linear-gradient(90deg,#F472B6,#FBCFE8); }
    .bar.mint { background: linear-gradient(90deg,#34D399,#A7F3D0); }
    .bar-track { background: #f3f4f6; border-radius: 4px; overflow: hidden; }

    /* KPI tiles */
    .stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(148px,1fr)); gap: .75rem; margin: 1.5rem 0; }
    .stat { background: linear-gradient(135deg,#faf5ff,#fff); border: 1px solid #ede9fe; border-radius: 14px; padding: .95rem 1.1rem; }
    .stat-label { font-size: .72rem; font-weight: 700; color: #8b7bb8; letter-spacing: .04em; margin-bottom: .25rem; }
    .stat-val { font-size: 1.5rem; font-weight: 900; line-height: 1.15; background: linear-gradient(135deg,#6C3CE1,#F472B6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-variant-numeric: tabular-nums; }
    .stat-note { font-size: .72rem; color: #9ca3af; margin-top: .3rem; line-height: 1.5; }

    /* callout variants */
    .callout.warn { border-left-color: #FBBF24; background: linear-gradient(135deg,rgba(251,191,36,.10),rgba(251,191,36,.02)); }
    .callout.good { border-left-color: #34D399; background: linear-gradient(135deg,rgba(52,211,153,.10),rgba(52,211,153,.02)); }
    .callout.bad  { border-left-color: #F472B6; background: linear-gradient(135deg,rgba(244,114,182,.10),rgba(244,114,182,.02)); }
    .callout-title { display: block; font-weight: 800; color: #1f2937; margin-bottom: .35rem; font-size: .95rem; }

    /* side-by-side compare (keeps dense content legible instead of stacking) */
    .compare { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.5rem 0; }
    .compare > div { border-radius: 14px; padding: 1.1rem 1.2rem; border: 1px solid #e5e7eb; }
    .compare .c-head { font-weight: 800; font-size: .95rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem; }
    .compare ul { margin: 0; padding-left: 1.1rem; }
    .compare li { font-size: .88rem; line-height: 1.75; margin-bottom: .35rem; }
    .c-purple { background: #faf5ff; border-color: #ede9fe !important; } .c-purple .c-head { color: #6C3CE1; }
    .c-pink { background: #fdf2f8; border-color: #fce7f3 !important; } .c-pink .c-head { color: #db2777; }
    .c-mint { background: #ecfdf5; border-color: #d1fae5 !important; } .c-mint .c-head { color: #059669; }
    .c-amber { background: #fffbeb; border-color: #fef3c7 !important; } .c-amber .c-head { color: #b45309; }
    @media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

    /* comparison card set — used where cells are too prose-heavy for a table */
    .cardset { display: grid; grid-template-columns: repeat(auto-fit,minmax(272px,1fr)); gap: .9rem; margin: 1.6rem 0; }
    .pcard { border: 1px solid #ede9fe; border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
    .pcard-head { color: #fff; font-weight: 800; font-size: .92rem; padding: .7rem 1rem; line-height: 1.5; background: linear-gradient(135deg,#6C3CE1,#8B5CF6); }
    .cardset > .pcard:nth-child(4n+2) .pcard-head { background: linear-gradient(135deg,#DB2777,#F472B6); }
    .cardset > .pcard:nth-child(4n+3) .pcard-head { background: linear-gradient(135deg,#059669,#34D399); }
    .cardset > .pcard:nth-child(4n+4) .pcard-head { background: linear-gradient(135deg,#B45309,#FBBF24); }
    .pcard dl { margin: 0; padding: .9rem 1rem; flex: 1; }
    .pcard dt { font-size: .69rem; font-weight: 800; color: #8b7bb8; letter-spacing: .04em; margin-top: .75rem; }
    .pcard dl > dt:first-child { margin-top: 0; }
    .pcard dd { margin: .15rem 0 0; font-size: .85rem; color: #4b5563; line-height: 1.75; }
    .pcard-note { margin: 0 !important; padding: .75rem 1rem; background: #faf5ff; font-size: .79rem; color: #6b7280; line-height: 1.7; border-top: 1px solid #f3f0ff; }

    /* numbered process flow */
    .flow { list-style: none !important; padding-left: 0; margin: 1.5rem 0; counter-reset: flow; display: grid; gap: .6rem; }
    .flow > li { counter-increment: flow; list-style: none !important; display: flex; gap: .9rem; background: #fff; border: 1px solid #ede9fe; border-radius: 13px; padding: .95rem 1.1rem; margin: 0; position: relative; }
    .flow > li::before { content: counter(flow); flex-shrink: 0; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: linear-gradient(135deg,#6C3CE1,#A78BFA); color: #fff; font-weight: 900; font-size: .82rem; display: flex; align-items: center; justify-content: center; }
    .flow .f-title { font-weight: 800; color: #1f2937; display: block; margin-bottom: .15rem; font-size: .95rem; }
    .flow .f-body { font-size: .88rem; color: #4b5563; line-height: 1.75; }

    /* figure wrapper for inline SVG charts */
    .figure { margin: 1.75rem 0; border: 1px solid #ede9fe; border-radius: 16px; padding: 1.2rem 1.3rem 1rem; background: linear-gradient(180deg,#fdfcff,#fff); }
    .figure-title { font-size: .88rem; font-weight: 800; color: #1f2937; margin-bottom: .9rem; display: flex; align-items: center; gap: .45rem; }
    .figure-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg,#6C3CE1,#F472B6); }
    .figure svg { display: block; width: 100%; height: auto; overflow: visible; }
    .figure-note { font-size: .74rem; color: #9ca3af; margin-top: .7rem; line-height: 1.6; }

    /* related articles */
    .related-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: .8rem; }
    .related-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1rem 1.15rem; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
    .related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(108,60,225,.10); border-color: #ede9fe; }
    .related-cat { font-size: .68rem; font-weight: 800; color: #6C3CE1; background: #f5f3ff; padding: .15rem .5rem; border-radius: 999px; display: inline-block; margin-bottom: .5rem; }
    .related-title { font-size: .9rem; font-weight: 700; color: #1f2937; line-height: 1.6; }

    /* anchored headings */
    .prose h2[id] { scroll-margin-top: 92px; }
    .prose h3[id] { scroll-margin-top: 92px; }

    /* ===== CTA（記事内ミッドボックス / 記事末ブロック） ===== */
    .zcta-btn {
      position: relative; overflow: hidden; isolation: isolate;
      display: inline-flex; align-items: center; gap: .55rem;
      background: #6C3CE1; color: #fff; font-weight: 700; font-size: .87rem;
      text-decoration: none; padding: .75rem 1.5rem; border-radius: 999px;
      transition: transform .2s cubic-bezier(.2,.9,.3,1), box-shadow .2s;
    }
    .zcta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(108,60,225,.34); }
    .zcta-btn:active { transform: translateY(0); }
    .zcta-btn .arw { display: inline-block; transition: transform .25s cubic-bezier(.2,.9,.3,1); }
    .zcta-btn:hover .arw { transform: translateX(4px); }
    /* 一定間隔で光沢が横切る（周期が長く、視界の端で1回光る程度） */
    .zcta-btn::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
      transform: translateX(-120%);
      animation: zctaShine 3.6s cubic-bezier(.4,0,.2,1) infinite;
    }
    @keyframes zctaShine { 0%, 62% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }

    .zcta-mid {
      border: 1px solid rgba(108,60,225,.24);
      background: linear-gradient(135deg, rgba(108,60,225,.07), rgba(244,114,182,.05));
      border-radius: 16px; padding: 1.4rem 1.5rem; margin: 2.2rem 0;
    }
    .zcta-mid .zcta-k { font-size: .66rem; font-weight: 800; letter-spacing: .14em; color: #6C3CE1; margin: 0 0 .5rem; }
    .zcta-mid h4 { font-size: 1.03rem; font-weight: 800; margin: 0 0 .5rem; color: #1f2937; line-height: 1.55; }
    .zcta-mid p { font-size: .85rem; margin: 0 0 1rem !important; color: #4b5563; line-height: 1.8; }

    .zcta-end { border: 2px solid #6C3CE1; border-radius: 22px; padding: 1.9rem 2rem;
      background: linear-gradient(135deg, rgba(108,60,225,.09), rgba(244,114,182,.06)); }
    .zcta-end .zcta-k { font-size: .66rem; font-weight: 800; letter-spacing: .14em; color: #6C3CE1; margin: 0 0 .6rem; }
    .zcta-end h4 { font-size: 1.25rem; font-weight: 900; margin: 0 0 .7rem; line-height: 1.5; color: #1f2937; }
    .zcta-end > p { font-size: .9rem; margin: 0 0 1.1rem; color: #4b5563; line-height: 1.85; }
    .zcta-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; padding: 0; list-style: none !important; }
    .zcta-facts li { list-style: none !important; margin: 0; font-size: .74rem; font-weight: 700; color: #4b5563;
      background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: .3rem .8rem; }
    .zcta-ops { --zc: #0E9F6E; }
    .zcta-ops.zcta-end { border-color: #0E9F6E; background: linear-gradient(135deg, rgba(14,159,110,.09), rgba(52,211,153,.06)); }
    /* 運用ラインの記事は中盤も記事末も緑で揃える。
       これが無いと枠は紫・ボタンは緑という取り合わせになる。 */
    .zcta-ops.zcta-mid { border-color: rgba(14,159,110,.28); background: linear-gradient(135deg, rgba(14,159,110,.07), rgba(52,211,153,.05)); }
    .zcta-ops .zcta-k { color: #0E9F6E; }
    .zcta-ops .zcta-btn { background: #0E9F6E; }
    .zcta-ops .zcta-btn:hover { box-shadow: 0 10px 26px rgba(14,159,110,.34); }
    @media (prefers-reduced-motion: reduce) {
      .zcta-btn::before { animation: none; }
      .zcta-btn, .zcta-btn .arw { transition: none; }
    }
