  /* 画面の見本：Apple Human Interface Guidelines に沿う（システムのゴシック1種類、灰色の背景に白い角丸のパネル、青1色、切り替えはセグメント） */
  :root {
    --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
    --ink: #1d1d1f; --text: #1d1d1f; --muted: #6e6e73; --faint: #86868b;
    --bg: #f5f5f7; --surface: #fff; --line: #d2d2d7; --field: #f5f5f7;
    --accent: #0a4fa3; --accent-hover: #083f84; --link: #0a4fa3; --accent-soft: rgba(10, 79, 163, .07);
    --green: #248a3d; --flash: #fff4c2;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
  a { color: var(--link); }
  a:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 125, 250, .6); outline-offset: 2px; }

  /* サイトのヘッダー（サイトに置くときだけ）：半透明 */
  .mk-header { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
  .mk-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 16px; }
  .mk-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
  .mk-mark { width: 26px; height: 26px; }
  .mk-mark rect { fill: var(--ink); }
  .mk-mark path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
  .mk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 14px; background: var(--accent); color: #fff; font-weight: 600; font-size: .8rem; text-decoration: none; border-radius: 980px; white-space: nowrap; }
  .mk-btn:hover { background: var(--accent-hover); }
  .mk-nav { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; font-size: .82rem; }
  .mk-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; opacity: .85; }
  .mk-nav a:hover { opacity: 1; color: var(--link); }
  .mk-nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

  /* 見本の切り替え：セグメント */
  .mk-switch { background: var(--bg); padding: 16px 0 0; }
  .mk-switch-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .mk-switch-label { color: var(--muted); font-size: .8rem; margin-right: 4px; }
  .mk-switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 980px; color: var(--ink); background: rgba(120, 120, 128, .12); text-decoration: none; font-size: .85rem; }
  .mk-switch a:hover { background: rgba(120, 120, 128, .2); }
  .mk-switch a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }

  /* 見出し */
  .mk-hero { background: var(--bg); padding: 40px 0 8px; }
  .mk-eyebrow { margin: 0 0 6px; font-size: .95rem; font-weight: 600; color: var(--link); }
  .mk-eyebrow span { display: none; }
  h1 { font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.3; margin: 0 0 12px; color: var(--ink); }
  .sub { color: var(--muted); margin: 0 0 16px; max-width: 46em; font-size: 1.02rem; }
  .badge { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--muted); background: rgba(120, 120, 128, .12); border-radius: 980px; padding: 4px 12px; }

  /* 今と後の比べ */
  .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 20px; }
  .box { padding: 22px 26px; background: var(--surface); border-radius: 18px; }
  .box h2 { font-weight: 700; font-size: 1rem; margin: 0 0 10px; }
  .box ol { margin: 0; padding-left: 1.4em; }
  .box li { margin-bottom: 4px; }
  .now h2 { color: var(--muted); }
  .after { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
  .after h2 { color: var(--link); }

  /* 入力と出力 */
  .stage { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; }
  .panel { background: var(--surface); border-radius: 18px; padding: 22px 24px 24px; }
  .panel-label { margin: 0 0 4px; font-size: .78rem; font-weight: 600; color: var(--link); }
  .panel h2 { font-weight: 700; font-size: 1.15rem; margin: 0 0 6px; color: var(--ink); }
  .hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
  .records { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .records button { font: inherit; font-size: 13px; min-height: 32px; border: 0; background: rgba(120, 120, 128, .12); border-radius: 980px; padding: 4px 14px; cursor: pointer; color: var(--text); }
  .records button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
  label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 4px; color: var(--muted); }
  input, textarea { width: 100%; font: inherit; min-height: 40px; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; background: var(--field); color: var(--text); }
  input:focus, textarea:focus { outline: 3px solid rgba(0, 125, 250, .45); outline-offset: 0; border-color: var(--accent); background: #fff; }
  .tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-bottom: 12px; padding: 2px; background: rgba(120, 120, 128, .12); border-radius: 9px; }
  .tabs button { font: inherit; font-size: 13.5px; min-height: 32px; border: 0; border-radius: 7px; background: transparent; padding: 4px 14px; cursor: pointer; color: var(--ink); }
  .tabs button[aria-selected="true"] { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
  .out-desc { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
  .sheet { overflow-x: auto; border-radius: 10px; }
  table { border-collapse: collapse; width: 100%; font-size: 13.5px; background: #fff; }
  th, td { border-bottom: 1px solid #e5e5ea; padding: 8px 10px; text-align: left; vertical-align: top; white-space: nowrap; }
  th { background: var(--field); font-weight: 600; color: var(--muted); font-size: 12.5px; }
  .form-sheet { border: 1px solid #e5e5ea; border-radius: 12px; padding: 18px 20px; background: #fff; }
  .form-sheet h3 { text-align: center; margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
  .form-sheet dl { display: grid; grid-template-columns: 9em 1fr; margin: 0; }
  .form-sheet dt, .form-sheet dd { margin: 0; padding: 8px 10px; border-bottom: 1px solid #e5e5ea; }
  .form-sheet dt { font-weight: 600; font-size: 13px; color: var(--muted); }
  .card-out { border-radius: 12px; padding: 14px 16px; background: var(--field); }
  .card-out .t { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; color: var(--ink); }
  .card-out .meta { color: var(--muted); font-size: 13px; }
  .limit { font-size: 12px; color: var(--muted); }
  .limit.over { color: #d70015; font-weight: 700; }
  .flash { animation: flash 1.1s ease-out; }
  @keyframes flash { from { background: var(--flash); } to { background: transparent; } }
  .note { margin: 24px 0 48px; font-size: 12.5px; color: var(--muted); padding: 0 4px; }
  .stage > *, .compare > * { min-width: 0; }

  /* 最後の案内とフッター（サイトに置くときだけ） */
  .mk-cta { background: var(--surface); padding: 64px 0; text-align: center; }
  .mk-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .mk-cta-title { margin: 0 0 6px; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; color: var(--ink); }
  .mk-cta-text { margin: 0 auto; color: var(--muted); font-size: .95rem; max-width: 40em; }
  .mk-btn-light { min-height: 48px; padding: 12px 24px; font-size: 1rem; }
  .mk-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; padding: 20px 0 28px; }
  .mk-footer a { color: var(--muted); }

  @media (max-width: 760px) {
    .wrap { padding: 0 16px; }
    .compare, .stage { grid-template-columns: 1fr; }
    .mk-hero { padding: 28px 0 4px; }
    .mk-nav { display: none; }
    .mk-switch-inner { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .mk-switch-inner::-webkit-scrollbar { display: none; }
    .box, .panel { padding: 18px; }
    .mk-btn-light { width: 100%; }
  }
  @media print { body { background: #fff; } .flash { animation: none; } .mk-header, .mk-switch, .mk-cta, .mk-footer { display: none; } }
  @media (prefers-reduced-motion: reduce) { .flash { animation: none; } }
  /* まだ入力していない項目は、例としてグレーで表示する */
  .ph { color: #aeaeb2; }
  input::placeholder, textarea::placeholder { color: #aeaeb2; opacity: 1; }
  tr.is-entry td { background: var(--accent-soft); }
  /* サイトと同じ紺（最後の案内・フッター・ロゴ） */
  .mk-mark rect { fill: #0b2545; }
  .mk-cta { background: linear-gradient(150deg, #13396b 0%, #0b2545 100%); }
  .mk-cta-title { color: #fff; }
  .mk-cta-text { color: #b9c8dc; }
  .mk-cta .mk-btn-light { background: #fff; color: #0b2545; }
  .mk-cta .mk-btn-light:hover { background: #dce8f8; }
  .mk-footer { background: #071a33; border-top: 0; color: #8fa3bd; }
  .mk-footer a { color: #b9c8dc; }
  h1 { color: #0b2545; }
  .mk-eyebrow { color: #1756a9; }
