/* SceneSketch 配布サイト
   色はアプリと同じ 3 色（#222222 / #B6D400 / #FE4000）と、#222222 の明るさ違いの無彩色だけ。 */

:root {
  --ink: #222222;
  --ink-deep: #1a1a1a;
  --ink-panel: #2a2a2a;
  --ink-raised: #333333;
  --line: #333333;
  --line-strong: #4a4a4a;
  --text: #f2f2f2;
  --text-2: #b4b4b4;
  --text-3: #9a9a9a;
  --lime: #b6d400;
  --lime-ink: #222222;
  --orange: #fe4000;

  --font-ja: "BIZ UDPGothic", "BIZ UDPゴシック", "Yu Gothic UI", Meiryo, sans-serif;
  --font-en: "Montserrat", var(--font-ja);
  --font-num: "BIZ UDGothic", "BIZ UDゴシック", Consolas, monospace;

  --header-h: 64px;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* ---------------------------------------------------------------- 基本 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  word-break: auto-phrase;
  text-wrap: balance;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--ink-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--ink-deep);
  border-radius: 8px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-wide {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- ヘッダー */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  max-width: 1280px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  padding-block: 8px;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline 2px var(--lime);
  text-underline-offset: 8px;
}

/* ---------------------------------------------------------------- 部品 */

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.btn-download .icon {
  stroke-width: 2.2;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.7);
}

.btn-download:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-download:focus-visible {
  outline-color: var(--text);
}

.btn-ver {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(34, 34, 34, 0.35);
  font-family: var(--font-num);
  font-size: 14px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.btn-outline:hover {
  border-color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s;
}

.text-link .icon {
  transition: transform 0.2s var(--ease-out);
}

.text-link:hover {
  color: var(--lime);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
}

.facts {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.facts li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.facts li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 1px;
  margin-top: 0.85em;
  background: var(--text-3);
}

/* ---------------------------------------------------------------- トップ: ヒーロー */

.hero {
  padding-top: clamp(64px, 11vh, 128px);
  text-align: center;
}

.hero-title {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(3.25rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.hero-catch {
  margin-top: 28px;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.5;
  word-break: auto-phrase;
}

.hero-lead {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.9;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.hero-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-3);
  font-size: 14px;
}

.sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 12px;
  background: var(--line-strong);
}

.hero-action .text-link {
  margin-top: 4px;
  color: var(--text-2);
}

.hero-action .text-link:hover {
  color: var(--lime);
}

.hero-shot {
  margin-top: clamp(48px, 8vh, 80px);
}

.hero-shot img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 48px 100px -40px rgba(0, 0, 0, 0.8);
}

/* ---------------------------------------------------------------- トップ: 節 */

.section {
  padding-block: clamp(80px, 12vw, 136px);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-title {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: nowrap;
}

.section-lead {
  margin-top: 18px;
  font-weight: 700;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  word-break: auto-phrase;
}

/* ---------------------------------------------------------------- トップ: 流れ（タイムラインの見立て） */

.reel {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink-deep);
}

.reel-track {
  position: relative;
  min-width: 720px;
}

.reel-ruler {
  position: relative;
  height: 30px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 120px) left 12px bottom / calc(100% - 24px) 12px no-repeat,
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 24px) left 12px bottom / calc(100% - 24px) 6px no-repeat;
}

.marker {
  position: absolute;
  left: var(--at);
  top: 9px;
  width: 10px;
  height: 9px;
  margin-left: -5px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.reel-clips {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 12px 12px 14px;
}

.reel-clips li {
  flex: var(--grow) 1 0;
  min-width: 0;
}

.reel-clips a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 10px 12px 12px;
  border-top: 3px solid var(--line-strong);
  border-radius: 4px;
  background: var(--ink-panel);
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.reel-clips a:hover,
.reel-clips a:focus-visible {
  background: var(--ink-raised);
  border-top-color: var(--lime);
}

.clip-name {
  margin-top: 10px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}

.clip-short {
  display: none;
}

.clip-sub {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
}

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ph, calc(100% - 13px));
  width: 2px;
  margin-left: -1px;
  background: var(--text);
  pointer-events: none;
  transition: left 0.45s var(--ease-out);
  animation: sweep 2.2s var(--ease-out) 0.3s backwards;
}

.playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 11px;
  background: var(--text);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

@keyframes sweep {
  from {
    left: 12px;
  }
}

/* ---------------------------------------------------------------- トップ: 機能 */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(80px, 10vw, 128px);
}

.feature-flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.feature-flip .feature-shot {
  order: -1;
}

.feature-wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.feature-wide .feature-text {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 72px);
}

.feature-wide .feature-text h3 {
  grid-row: span 2;
}

.feature-wide .feature-text p {
  margin-top: 0;
}

/* 画面写真の一部だけを見せる（--cx / --cy / --cw / --ch は元の写真 1600×1000 の上の px） */
.crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--cw) / var(--ch);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

/* 見せる範囲（元の写真の上の px） */
.crop-draw {
  --cx: 300;
  --cy: 250;
  --cw: 860;
  --ch: 540;
}

.crop-shotlist {
  --cx: 0;
  --cy: 0;
  --cw: 1600;
  --ch: 440;
}

.crop-export {
  --cx: 586;
  --cy: 276;
  --cw: 428;
  --ch: 448;
}

#f-export .feature-shot {
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.feature-shot .crop img {
  position: absolute;
  max-width: none;
  width: calc(1600 / var(--cw) * 100%);
  left: calc(var(--cx) / var(--cw) * -100%);
  top: calc(var(--cy) / var(--ch) * -100%);
  border: 0;
  border-radius: 0;
}

.feature-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  line-height: 1.45;
}

.feature-text p {
  margin-top: 16px;
  color: var(--text-2);
  max-width: 30em;
}

.feature-shot {
  position: relative;
}

.feature-shot img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.feature-shot > .tag {
  margin-bottom: 10px;
}

.feature-shot figcaption {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 13px;
}

/* After Effects のプロジェクトの図 */
.ae-panel {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--ink-deep);
  overflow: hidden;
  font-family: var(--font-num);
  font-size: 14px;
}

.ae-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--ink-panel);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--font-ja);
  font-size: 13px;
}

.ae-file {
  color: var(--text-3);
  font-family: var(--font-num);
}

.ae-tree,
.ae-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ae-tree {
  padding: 12px 0 16px;
}

.ae-tree li {
  line-height: 1.5;
}

.ae-tree > li,
.ae-tree ul > li {
  display: block;
}

.ae-tree > li {
  padding: 7px 16px;
}

.ae-tree ul {
  margin: 6px 0 -2px;
  border-left: 1px solid var(--line);
  margin-left: 7px;
}

.ae-tree ul > li {
  padding: 6px 0 6px 20px;
}

.ae-ico {
  display: inline-block;
  vertical-align: -3px;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  fill: none;
  stroke: var(--text-2);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.is-folder > .ae-ico {
  stroke: var(--text-3);
}

.is-main {
  color: var(--text);
  background: rgba(182, 212, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(182, 212, 0, 0.5);
}

.is-main > .ae-ico {
  stroke: var(--lime);
}

.ae-note {
  margin-left: 12px;
  color: var(--text-3);
  font-family: var(--font-ja);
  font-size: 12px;
}

/* ---------------------------------------------------------------- トップ: はじめ方 */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
}

.steps li {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.step-num {
  display: block;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.steps h3 {
  margin-top: 20px;
  font-size: 19px;
}

.steps p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.steps-more {
  margin-top: 40px;
}

/* ---------------------------------------------------------------- トップ: 動作環境 */

.spec {
  max-width: 880px;
  border-top: 1px solid var(--line-strong);
}

.spec > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  color: var(--text-2);
  font-weight: 700;
  font-size: 15px;
}

.spec .dim {
  display: block;
  color: var(--text-3);
  font-size: 14px;
}

/* ---------------------------------------------------------------- トップ: ダウンロード */

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.download-file {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 14px;
}

.download-main .facts {
  margin-top: 32px;
}

.download-terms {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 15px;
}

.download-terms a,
.about-body a:not(.btn-outline) {
  text-decoration: underline 1px var(--lime);
  text-underline-offset: 4px;
}

.download-terms a:hover {
  color: var(--lime);
}

.smartscreen {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--ink-panel);
}

.smartscreen h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
}

.icon-warn {
  margin-top: 0.2em;
  color: var(--text-2);
}

.smartscreen p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
}

.ss-steps {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.ss-steps li {
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--ink);
}

.ss-label {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 18px;
  text-align: center;
}

.ss-ui {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.ss-link {
  text-decoration: underline 1px;
  text-underline-offset: 4px;
}

.ss-button {
  padding: 3px 18px;
  border: 1px solid var(--text);
  border-radius: 4px;
}

.ss-desc {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- トップ: 制作者 */

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px;
}

.about-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
}

.about-body p + p {
  margin-top: 14px;
  color: var(--text-2);
  max-width: 34em;
}

.about-body .btn-outline {
  margin-top: 28px;
}

/* ---------------------------------------------------------------- フッター */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 40px;
  max-width: 1280px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.footer-ver {
  margin-left: 6px;
  color: var(--text-3);
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 13px;
}

.footer-note {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 36px;
}

.footer-nav a {
  display: flex;
  flex-direction: column;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.6;
}

.footer-nav a span {
  color: var(--text-3);
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
}

.footer-nav a:hover {
  color: var(--lime);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-en);
}

.copyright small {
  font-size: 12px;
}

/* ---------------------------------------------------------------- 使い方・利用規約 */

.wrap-doc {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.doc-head {
  padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.doc-head h1,
.notfound h1 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.doc-title {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.5;
}

.doc-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 72px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.toc-desktop {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}

.toc-title {
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list a {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 6px 0 6px 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.15s;
}

.toc-list a:hover {
  color: var(--text);
}

.toc-list a[aria-current="true"] {
  color: var(--text);
  font-weight: 700;
}

.toc-list a[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(6px + 0.75em);
  width: 8px;
  height: 2px;
  background: var(--lime);
}

.toc-num {
  flex: none;
  min-width: 1.4em;
  color: var(--text-3);
  font-family: var(--font-num);
  font-size: 13px;
  text-align: right;
  line-height: 1.7;
}

.toc-mobile {
  display: none;
}

.doc-body {
  max-width: 880px;
  min-width: 0;
}

.doc-body > p,
.doc-body > ul,
.doc-body > ol,
.doc-body li {
  max-width: 42em;
}

.doc-body p + p,
.doc-body p + ul,
.doc-body p + ol,
.doc-body ul + p,
.doc-body ol + p {
  margin-top: 14px;
}

.doc-body ul,
.doc-body ol {
  padding-left: 1.4em;
}

.doc-body li + li {
  margin-top: 4px;
}

.doc-body li > ul,
.doc-body li > ol {
  margin-top: 4px;
}

.doc-body li::marker {
  color: var(--text-3);
}

.doc-body ol > li::marker {
  font-family: var(--font-num);
  font-size: 0.9em;
}

.doc-body h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.4;
  margin-bottom: 20px;
}

.h-num {
  flex: none;
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--text-3);
  letter-spacing: -0.02em;
}

.doc-body h3 {
  margin: 48px 0 12px;
  font-size: 1.25rem;
}

.doc-body h2 + h3 {
  margin-top: 28px;
}

.doc-body hr {
  height: 1px;
  margin: 72px 0 56px;
  border: 0;
  background: var(--line);
}

.doc-body a:not(.text-link):not(.fig-link) {
  text-decoration: underline 1px var(--lime);
  text-underline-offset: 4px;
  transition: color 0.15s;
}

.doc-body a:not(.text-link):not(.fig-link):hover {
  color: var(--lime);
}

.doc-body strong {
  font-weight: 700;
  color: var(--text);
}

.doc-body code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ink-raised);
  font-family: var(--font-num);
  font-size: 0.88em;
}

.code {
  margin: 20px 0;
  padding: 16px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-deep);
  font-size: 14px;
  line-height: 1.75;
}

.code code {
  padding: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
}

.note {
  margin: 24px 0;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--ink-panel);
  color: var(--text-2);
  font-size: 15px;
}

.note p {
  max-width: none;
}

.table-wrap {
  margin: 20px 0 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}

.table-wrap th,
.table-wrap td {
  padding: 10px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table-wrap th {
  background: var(--ink-panel);
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap td:first-child {
  white-space: nowrap;
  color: var(--text);
}

.fig {
  margin: 24px 0 32px;
}

.fig-link {
  display: inline-block;
  max-width: 100%;
  border-radius: 8px;
}

.fig img {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.fig-link:hover img {
  border-color: var(--text-3);
}

.fig.is-wide .fig-link,
.fig.is-wide img {
  width: 100%;
}

.fig figcaption {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.doc-top {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-terms .doc-body h2 {
  font-size: 1.25rem;
  margin-top: 56px;
  margin-bottom: 14px;
}

.page-terms .doc-body > p:first-child {
  color: var(--text-3);
  font-size: 14px;
}

.page-terms .doc-body > p,
.page-terms .doc-body li {
  font-size: 15px;
}

.contact-note {
  margin-top: 40px;
}

.page-terms .doc-body hr {
  margin: 56px 0 24px;
}

.notfound {
  padding-block: clamp(80px, 14vw, 160px);
}

.notfound p {
  margin-top: 16px;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- 狭い画面 */

@media (max-width: 1079px) {
  .doc-grid {
    display: block;
    padding-top: 24px;
  }

  .toc-desktop {
    display: none;
  }

  .toc-mobile {
    display: block;
    margin-bottom: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--ink-panel);
  }

  .toc-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .toc-mobile summary::-webkit-details-marker {
    display: none;
  }

  .toc-mobile[open] summary .icon {
    transform: rotate(180deg);
  }

  .toc-mobile .toc-list {
    padding: 0 18px 14px 4px;
  }
}

@media (max-width: 860px) {
  .feature,
  .feature-wide .feature-text,
  .download-grid,
  .about-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    gap: 24px;
  }

  .feature-flip .feature-shot {
    order: 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .feature-wide .feature-text p {
    margin-top: 16px;
  }

  .about-inner {
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
    --header-h: 56px;
  }

  .brand-name {
    display: none;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
    padding: 0 18px;
    font-size: 16px;
  }

  .crop-shotlist {
    --cw: 520;
  }

  .reel-track {
    min-width: 0;
  }

  .reel-clips {
    gap: 3px;
    padding: 10px 8px 12px;
  }

  .reel-clips a {
    padding: 8px 6px 10px;
  }

  .clip-name,
  .clip-sub {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .clip-short {
    display: block;
    margin-top: 8px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
  }

  .spec > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .smartscreen {
    padding: 20px;
  }

  .ss-steps li {
    grid-template-columns: 22px auto;
  }

  .ss-desc {
    grid-column: 2 / -1;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .doc-body h2 {
    gap: 12px;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 9px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
