/* plotdown.app の全部のページの CSS（地の色 A）。トップの画面のある節は、幅 1100px 以上で Store の写真の台紙（1920×1080）の座標を --u の倍数で配置する */
:root {
  --bg: #f3f5f8;
  --fg: #14171c;
  --dim: #56606e;
  --line: #dfe3ea;
  --accent: #2468d9;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --u: calc(min(100vw, 1920px) / 1920);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (max-width: 600px) { html { scroll-padding-top: 144px; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* ヘッダーとフッター */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; max-width: 1920px; margin: 0 auto; padding: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 20px; text-decoration: none; }
.site-nav, .site-footer nav { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.site-nav a, .site-footer nav a { padding: 6px 10px; border-radius: 6px; color: var(--dim); text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-footer nav a:hover { color: var(--fg); text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.footer-inner { max-width: 1148px; margin: 0 auto; padding: 28px 24px 40px; display: grid; gap: 10px; }

/* 入手のボタン（公開までは非活性の表示） */
.button { display: inline-block; border: 1px solid var(--fg); background: var(--fg); color: #fff; font-weight: 600; text-decoration: none; border-radius: 8px; padding: 12px 22px; }
.button-pending { background: #fff; border-color: #c9ced6; color: var(--dim); cursor: default; }
.note { color: var(--dim); font-size: 15px; }

/* 画面のある節（Store の写真と同じ組み方）。幅の狭い画面では見出し・文・画面を縦に配置する */
.shotsec { overflow: hidden; }
.board { max-width: 1920px; margin: 0 auto; padding: 56px 24px 0; }
.board h1, .board h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
.board h1 { font-size: clamp(38px, 10vw, 60px); }
.board h2 { font-size: clamp(32px, 8vw, 52px); }
.board .sub { color: var(--dim); font-size: clamp(19px, 4.6vw, 24px); line-height: 1.35; margin-top: 16px; max-width: 34em; }
.board .actions { margin-top: 24px; }
.board .actions .note { margin-top: 10px; }
.stage img { display: block; max-width: none; height: auto; width: var(--mw, 108%); margin: 12px 0 0 calc(var(--mw, 108%) * var(--pl) * -1); }
.hero .stage img { --mw: 170%; }
.s-popout .stage img { --mw: 150%; }
.s-folder .stage img { --mw: 130%; }
@media (min-width: 1100px) {
  .header-inner { padding: 12px calc(96 * var(--u)); }
  .board { padding: 0; }
  .board h1 { font-size: calc(88 * var(--u)); line-height: 1.04; white-space: nowrap; }
  .board h2 { font-size: calc(72 * var(--u)); line-height: 1.04; }
  .board .sub { font-size: calc(36 * var(--u)); margin-top: calc(30 * var(--u)); max-width: calc(600 * var(--u)); }
  .board .actions { margin-top: calc(36 * var(--u)); }
  .board .button { font-size: max(15px, calc(22 * var(--u))); padding: calc(14 * var(--u)) calc(26 * var(--u)); }
  .board .actions .note { font-size: max(13px, calc(19 * var(--u))); margin-top: calc(16 * var(--u)); }
  .stage img { width: calc(var(--w) * var(--u)); margin: 0 0 calc(-44 * var(--u)); }
  .band .container, .site-footer .footer-inner { max-width: 1920px; padding-left: calc(96 * var(--u)); padding-right: calc(96 * var(--u)); }
  .text { position: relative; z-index: 1; }

  /* 縦の型（写真 1・2・5）: 左の 664px の欄に見出しと文、右に画面 */
  .tall .board { display: grid; grid-template-columns: calc(664 * var(--u)) minmax(0, 1fr); padding-left: calc(96 * var(--u)); padding-top: calc(86 * var(--u)); }
  .tall .text { padding-top: calc(104 * var(--u)); }
  .tall .stage img { margin: 0 0 calc(-44 * var(--u)) calc((var(--x) - 760) * var(--u)); }
  .hero .board { padding-top: calc(52 * var(--u)); }
  .hero .text { padding-top: calc(8 * var(--u)); }

  /* 横の型（写真 3・4・6）: 上に見出しと文、下に画面 */
  .wide .board { padding-top: calc(110 * var(--u)); }
  .wide .text { padding-left: calc(96 * var(--u)); }
  .wide .sub { max-width: none; margin-top: calc(24 * var(--u)); }
  .wide .stage img { margin: calc(var(--gap) * var(--u)) 0 calc(-44 * var(--u)) calc(var(--x) * var(--u)); }
}

/* 画面の無い節 */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
.band-white { background: #fff; }
.container { max-width: 1148px; margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 760px; }
.band h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.band p + p { margin-top: 12px; }
.more ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; }
.more li { padding: 14px 0; border-top: 1px solid var(--line); }
.get-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 20px; }
.get-head h2 { margin: 0; }
.get-head ~ .note { margin-top: 12px; }
.facts { margin-top: 32px; border-bottom: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--dim); }
.alpha li { position: relative; padding-left: 20px; margin-top: 12px; }
.alpha li::before { content: ""; position: absolute; left: 4px; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.alpha .note { margin-top: 20px; }
@media (max-width: 600px) {
  .band { padding: 64px 0; }
  .facts div { grid-template-columns: 1fr; }
}
/* 最上部の動く画面（.pdl）。配置は .stage img と同じ値。停止と再開のボタンは .stage を基準に配置する */
.hero .stage { position: relative; }
.stage .pdl { width: var(--mw, 108%); margin: 12px 0 0 calc(var(--mw, 108%) * var(--pl) * -1); }
.hero .stage .pdl { --mw: 170%; }
@media (min-width: 1100px) {
  .tall .stage .pdl { width: calc(var(--w) * var(--u)); margin: 0 0 calc(-44 * var(--u)) calc((var(--x) - 760) * var(--u)); }
}

/* Store の公式のバッジ（Store のページの公開の後に、入手のボタンの代わりに表示する） */
.store-badge { display: inline-block; }
.store-badge img { display: block; height: auto; }

/* 規約などのページ（読みやすい幅の 1 列） */
.wrap { max-width: 712px; margin: 0 auto; padding: 0 16px; }
.doc { padding-top: 24px; padding-bottom: 80px; }
.site-nav a[aria-current="page"], .site-footer nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; font-size: 0.88em; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 0.25em; overflow-wrap: anywhere; }
.prose h1 { font-family: var(--display); font-size: 2rem; line-height: 1.25; margin: 0 0 16px; }
.prose h2 { font-size: 1.4rem; line-height: 1.3; margin: 48px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 32px 0 8px; }
.prose h4 { font-size: 1rem; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 16px 0; }
.prose ul { padding-left: 1.5em; list-style: disc; }
.prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: 4px; }
.prose p, .prose li, .prose td { overflow-wrap: break-word; }
.prose .table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose .file-list { columns: 2 240px; column-gap: 32px; }
@media (max-width: 560px) {
  /* スマホでは表のファイル名の列だけセル内で改行し、ほかの列は 1 行のまま横にスクロールする */
  .prose th, .prose td { white-space: nowrap; }
  .prose td:first-child { white-space: normal; min-width: 150px; }
}
