/*
  www.ja1bus.com 共通デザイン（トップ・紹介・説明書・ポリシー・404）。
  トップ（Claude Design 1a「小さな道具箱」）の色・字体・余白を基準にする。詳細は docs/home-design.md。
  - 色・余白・角丸・書体は :root のトークンで指定し、ページ側で直接の色を書かない。
  - アプリ固有の色は --app（各アプリの CSS で上書き）を、アイコン・ラベル・細い線などの補助にだけ使う。
  - ダークモードは端末の設定（prefers-color-scheme）に追従する。
*/
@font-face {
  font-family: "Shippori Mincho";
  src: url("fonts/shippori-mincho-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho";
  src: url("fonts/shippori-mincho-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-regular.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  /* 色（ライト） */
  --bg: #f4f1ea;            /* ページ背景（トップと同じ） */
  --surface: #fbf9f5;       /* 表・操作例・注意枠などの面 */
  --surface-strong: #ece7dd;/* 表の見出し・コード・画像の余白 */
  --ink: #1f1c18;           /* 文字 */
  --ink-soft: #3a352e;      /* 長い説明文 */
  --muted: #5f584e;         /* 補助文字 */
  --line: #d8d1c4;          /* 罫線 */
  --line-strong: #b9b0a1;
  --accent: #9a4a2a;        /* トップのアクセント（oklch(.55 .12 40)）を文字用に少し暗くした色 */
  --accent-soft: #f1e3d8;
  --link: #8a3f22;
  --on-accent: #fff;
  --live: #2f6b3f;          /* 公開中 */
  --live-soft: #e3eedf;
  --soon: #7a5a12;          /* 公開準備中 */
  --soon-soft: #f3ead2;
  --warn-soft: #f7ecd6;
  --warn-line: #d9b46a;
  --danger-soft: #f6e1dc;
  --danger-line: #d79a8c;
  --shadow: 0 1px 2px rgba(31, 28, 24, .06);
  --focus: #1f1c18;
  --app: var(--accent);     /* アプリ固有の補助色（下の .app-* で上書き） */
  --on-app: #fff;           /* --app の上の文字 */
  /* 書体 */
  --serif-ja: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --serif-en: "EB Garamond", Georgia, "Times New Roman", serif;
  --serif: "EB Garamond", "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, monospace;
  /* 形・余白 */
  --radius: 10px;
  --radius-sm: 6px;
  --gutter: 24px;
  --content: 760px;
  --wide: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1815;
    --surface: #24201c;
    --surface-strong: #2e2924;
    --ink: #eee8de;
    --ink-soft: #ddd5c8;
    --muted: #b5ab9c;
    --line: #3d3730;
    --line-strong: #5a5248;
    --accent: #e3a07c;
    --accent-soft: #3a2a20;
    --link: #f0ad88;
    --on-accent: #1b1815;
    --live: #9fd0a6;
    --live-soft: #22321f;
    --soon: #e6c675;
    --soon-soft: #352c17;
    --warn-soft: #33291a;
    --warn-line: #7d6230;
    --danger-soft: #3a2420;
    --danger-line: #84483c;
    --shadow: none;
    --focus: #f4ead8;
    --on-app: #1b1815;
  }
}

/* アプリ固有の補助色（アイコンに合わせる。番号・細い線・ラベルだけに使う） */
.app-areashot { --app: #1d5fae; }
.app-presentertools { --app: #b9480f; }
.app-promptpalette { --app: #236c52; }
.app-manualvideostudio { --app: #2f5bd0; }
.app-plainclip { --app: #0a64b4; }
@media (prefers-color-scheme: dark) {
  .app-areashot { --app: #84b6f2; }
  .app-presentertools { --app: #f2a571; }
  .app-promptpalette { --app: #7fcaa8; }
  .app-manualvideostudio { --app: #9db6ff; }
  .app-plainclip { --app: #8cc0f0; }
}

/* ---- 基本 ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
html[lang="en"] body { line-height: 1.7; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 16px; top: -200px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code, kbd { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-strong); padding: .1em .4em; border-radius: 4px; overflow-wrap: anywhere; }
kbd { display: inline-block; background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .45em; line-height: 1.55; white-space: nowrap; color: var(--ink); }
.serif { font-family: var(--serif); }
/* 見出しは文節で折り返し、行の長さをそろえる（対応していないブラウザーでは通常の折り返し） */
h1, h2, h3, .tagline, .lead { text-wrap: balance; }
html[lang="ja"] :is(h1, h2, h3, .tagline, .lead, .quick b, .status) { word-break: auto-phrase; }

/* ---- 共通ヘッダー ---- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header-inner, .app-bar-inner, .site-footer-inner { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.crumbs .sep { color: var(--line-strong); }
.site-name { font: italic 400 24px/1.2 var(--serif-en); color: var(--accent); text-decoration: none; padding: 4px 0; }
.site-name:hover { color: var(--ink); }
.crumbs .app-crumb { font: 500 19px/1.3 var(--serif-en); color: var(--ink); text-decoration: none; padding: 4px 0; }
.crumbs .app-crumb:hover { color: var(--accent); }
.lang-switch { display: flex; align-items: baseline; gap: 12px; font: 400 15px var(--serif); letter-spacing: .04em; }
.lang-switch a, .lang-switch [aria-current] { padding: 6px 0; border-bottom: 1px solid currentColor; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--accent); }
.lang-switch .sep { color: var(--muted); }
.lang-switch .lang-note { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: 0; }

/* アプリ内ナビゲーション（概要／使い方／更新履歴／プライバシー） */
.app-bar { border-top: 1px solid var(--line); }
.app-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.app-nav a { display: inline-block; padding: 11px 0 9px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; }
.app-nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.app-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--app); }
.app-nav .lang-note { font-size: 12px; color: var(--muted); }

/* ---- 共通フッター ---- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { display: inline-block; padding: 4px 0; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0; font-family: var(--serif-en); letter-spacing: .06em; }
.site-footer-inner > p:last-child { margin-left: auto; } /* © は右端 */
/* 連絡先は目立たせず、通常の文字とメールのリンクだけにする */
.site-footer .site-contact { font-family: var(--sans); letter-spacing: 0; overflow-wrap: anywhere; }
.page { min-height: 100svh; display: flex; flex-direction: column; }

/* ---- ボタン・ラベル ---- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center; }
.button:hover { border-color: var(--ink); }
.button.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.8; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { background: var(--live-soft); color: var(--live); }
.status.soon { background: var(--soon-soft); color: var(--soon); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.facts li { padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); line-height: 1.8; }
.facts .status { margin: 0; border: 0; }

/* ---- 画像の枠（無地の薄い暖色＋細い枠） ---- */
.media { margin: 0; }
.media .frame { display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius); }
.media img { display: block; border-radius: 4px; box-shadow: 0 1px 3px rgba(31, 28, 24, .12); }
.media figcaption, figure figcaption { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.media a.frame:hover { border-color: var(--line-strong); }

/* ---- 一般ページ（紹介・ポリシー・404） ---- */
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.doc main, .overview main { flex: 1 0 auto; }
.doc main { padding: 40px 0 64px; }
.doc h1 { margin: 0 0 6px; font: 600 clamp(28px, 4.4vw, 38px)/1.35 var(--serif); letter-spacing: .02em; }
.doc h2 { margin: 2.4em 0 .6em; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 20px; line-height: 1.45; }
.doc h3 { margin: 1.8em 0 .4em; font-size: 17px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
p.meta { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.65; }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--surface-strong); }
.doc .wrap > div[lang] { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- 更新履歴（data/releases.json から生成）・紹介ページの「最近の更新」 ---- */
.release-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.release-tag { padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; line-height: 1.8; }
.release-permalink { font-size: 13px; }
.release-version { font-weight: 600; }
.changelog .release h2 { scroll-margin-top: 16px; }
.changelog .release h3 { margin: 1.2em 0 .3em; font-size: 16px; }
.changelog .release ul { margin: 0; }
.release-links { margin: 1em 0 0; font-size: 15px; }
.release-link { margin: 10px 0 0; font-size: 14px; }
.recent { max-width: var(--content); padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.recent ul { margin: 8px 0 0; padding-left: 1.3em; }
.recent .recent-more { margin: 10px 0 0; font-size: 15px; }

/* ---- アプリ紹介ページ ---- */
.overview main { padding: 0 0 72px; }
.overview .container { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.app-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 56px 0 56px; border-bottom: 1px solid var(--line); }
.app-title { display: flex; align-items: center; gap: 16px; }
.app-title img { width: 56px; height: 56px; flex: none; border-radius: 12px; }
.app-title h1 { margin: 0; font: 500 clamp(34px, 4.6vw, 48px)/1.15 var(--serif-en); letter-spacing: .01em; overflow-wrap: anywhere; }
.app-kind { margin: 18px 0 0; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.tagline { margin: 6px 0 0; font: 600 clamp(21px, 2.6vw, 27px)/1.6 var(--serif); color: var(--ink); }
html[lang="en"] .tagline { font-family: var(--serif-en); font-weight: 500; line-height: 1.35; }
.app-hero .summary { margin: 14px 0 0; color: var(--ink-soft); }
.app-hero .availability { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.app-hero .media img { max-height: 460px; width: auto; }
.section { padding: 56px 0 0; }
.section > h2, .section-title { margin: 0 0 18px; font: 600 clamp(22px, 2.6vw, 27px)/1.45 var(--serif); letter-spacing: .02em; }
html[lang="en"] .section > h2 { font-family: var(--serif-en); font-weight: 500; }
.section > p, .section .narrow { max-width: var(--content); color: var(--ink-soft); }
.section h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; }
.section ul, .section ol { color: var(--ink-soft); }
.section li { margin: 4px 0; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; margin: 0; padding: 0; list-style: none; }
.points li { margin: 0; padding-top: 12px; border-top: 2px solid var(--app); }
.points p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.steps-visual { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: sv; }
.steps-visual.cols-4 { --cols: 4; }
.steps-visual > li { margin: 0; counter-increment: sv; display: flex; flex-direction: column; }
.steps-visual .media { order: 2; }
.steps-visual .step-text { order: 1; margin: 0 0 10px; }
.steps-visual .step-text b { display: block; font-size: 16px; color: var(--ink); }
.steps-visual .step-text b::before { content: counter(sv); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--app); color: var(--on-app); font-size: 13px; vertical-align: 1px; }
.steps-visual .step-text span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; }
.steps-visual .media .frame { aspect-ratio: 16 / 10; }
.steps-visual .media img { max-height: 100%; width: auto; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.gallery > li { margin: 0; }
.gallery .media .frame { aspect-ratio: 16 / 10; }
.gallery .media img { max-height: 100%; width: auto; object-fit: contain; }
.gallery h3 { margin: 12px 0 2px; }
.gallery p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.notice { max-width: var(--content); margin: 18px 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--app); border-radius: var(--radius-sm); background: var(--surface); }
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }
.notice.important { border-left-color: var(--warn-line); background: var(--warn-soft); }
.spec { max-width: var(--content); }
.spec th { width: 9em; white-space: nowrap; }
.spec td, .spec th { background: var(--surface); }
.spec th { background: var(--surface-strong); }
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 900px; margin: 0; padding: 0; list-style: none; }
.resources li { margin: 0; }
.resources a { display: block; height: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.resources a:hover { border-color: var(--line-strong); }
.resources b { display: block; color: var(--link); }
.resources span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.resources .minor a { background: transparent; }

/* ---- 取扱説明書（静的な説明書。ManualVideoStudio は生成元の CSS で同じ規則に合わせる） ---- */
.manual .layout { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; }
.manual main { min-width: 0; padding: 36px 0 80px; font-size: 16px; }
html[lang="ja"] .manual main { line-height: 1.85; }
.manual main p, .manual main li { max-width: 46em; }
html[lang="en"] .manual main p, html[lang="en"] .manual main li { max-width: 72ch; }
/* 目次（PC: 横に固定。スマートフォン: 本文前の折りたたみ） */
.toc { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow: auto; padding: 36px 4px 40px 0; font-size: 14px; }
.toc-title { margin: 0 0 10px; font-weight: 700; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.toc ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; }
.toc li, .toc-mobile li { margin: 0; }
.toc li a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; line-height: 1.55; }
.toc li a:hover { color: var(--ink); border-left-color: var(--app); }
.toc-mobile { display: none; margin: 20px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc-mobile > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; min-height: 44px; }
.toc-mobile[open] > summary { border-bottom: 1px solid var(--line); }
.toc-mobile ol { padding: 6px 8px 10px; columns: 2 12em; column-gap: 12px; }
.toc-mobile li a { display: block; padding: 7px 8px; text-decoration: none; line-height: 1.45; break-inside: avoid; }
/* 冒頭 */
.manual .hero { padding: 0 0 8px; }
.manual .hero-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.manual .hero-head img { width: 52px; height: 52px; flex: none; border-radius: 12px; }
.manual .hero h1 { margin: 0; font: 600 clamp(27px, 3.6vw, 36px)/1.3 var(--serif); letter-spacing: .02em; }
.manual .hero p { margin: 0 0 4px; font-size: 17px; color: var(--ink-soft); }
.manual .hero .meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.manual .flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.manual .flow li { max-width: none; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-top: 2px solid var(--app); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.manual .flow b { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
/* すぐ始める／設定する／困ったとき */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.manual main .quick { padding-left: 0; }
.manual .quick li { max-width: none; margin: 0; }
.quick a { display: block; height: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; line-height: 1.5; }
.quick a:hover { border-color: var(--line-strong); }
.quick b { display: block; color: var(--link); font-size: 16px; }
.quick b::after { content: " →"; }
.quick span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
/* 本文 */
.manual section { margin-top: 64px; }
.manual h2 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 24px; line-height: 1.4; }
.manual h3 { margin: 32px 0 8px; font-size: 19px; line-height: 1.5; }
.manual h4 { margin: 24px 0 6px; font-size: 16px; }
.manual p { margin: 0 0 14px; }
.manual main ul, .manual main ol { padding-left: 1.4em; margin: 0 0 14px; }
.manual main li { margin: 4px 0; }
.manual .lead { font-size: 17px; }
.manual .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.manual .card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.manual .card h3, .manual .card h4 { margin: 0 0 6px; font-size: 16px; }
.manual .card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
/* 画像（クリック・Enter で原寸を開く） */
.manual figure.shot { margin: 18px 0 24px; }
.manual figure.shot img { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.manual figure.shot.narrow img { max-width: min(560px, 100%); }
.manual figure.shot.small img { max-width: min(300px, 100%); }
.manual figure.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
a.zoom { display: inline-block; max-width: 100%; position: relative; cursor: zoom-in; border-radius: var(--radius-sm); }
a.zoom::after { content: "⤢"; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(31, 28, 24, .72); color: #fff; font-size: 15px; line-height: 1; opacity: .85; }
a.zoom:hover::after, a.zoom:focus-visible::after { opacity: 1; }
.manual .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.manual .pair figure.shot { margin: 0; }
.manual .steps { counter-reset: s; list-style: none; padding: 0; }
.manual main .steps { padding-left: 0; }
.manual .steps > li { counter-increment: s; position: relative; padding-left: 42px; margin: 0 0 18px; }
.manual .steps > li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--app); color: var(--on-app); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
/* 注意枠（note: 補足／tip: こつ／warn: 注意／danger: 重要な注意） */
.manual .note, .manual .tip, .manual .warn, .manual .danger { margin: 16px 0; padding: 12px 16px; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius-sm); background: var(--surface); }
.manual .tip { border-left-color: var(--app); }
.manual .warn { background: var(--warn-soft); border-color: var(--warn-line); }
.manual .danger { background: var(--danger-soft); border-color: var(--danger-line); }
.manual .note > :last-child, .manual .tip > :last-child, .manual .warn > :last-child, .manual .danger > :last-child { margin-bottom: 0; }
.manual .label { font-weight: 700; margin-right: 6px; }
/* 表 */
.manual .table-wrap { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.manual table { font-size: 15px; line-height: 1.6; }
.manual th, .manual td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); }
.manual th { background: var(--surface-strong); font-weight: 700; white-space: nowrap; }
.manual tr:last-child td, .manual tr:last-child th { border-bottom: 0; }
/* FAQ・折りたたみ */
.manual details { margin: 10px 0; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.manual details summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; }
.manual details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.manual details > :last-child { margin-bottom: 14px; }
.manual details.more { background: transparent; }
.manual main > footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.manual main > footer p { margin: 0 0 6px; }

/* ---- 画面幅 ---- */
@media (max-width: 900px) {
  .manual .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .manual .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px 0 40px; }
  .app-hero .media img { max-height: none; width: 100%; }
}
@media (max-width: 1100px) {
  .steps-visual.cols-4 { --cols: 2; }
}
@media (max-width: 760px) {
  .steps-visual, .steps-visual.cols-4 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .site-header-inner { min-height: 56px; }
  .site-name { font-size: 22px; }
  .crumbs .app-crumb { font-size: 17px; }
  .app-nav { gap: 0 18px; }
  .recent { padding: 14px 16px; }
  .manual main { padding-top: 28px; }
  .manual .pair, .manual .cards, .quick { grid-template-columns: minmax(0, 1fr); }
  .manual .flow { gap: 8px; }
  .manual .flow li { padding: 8px 10px; font-size: 13px; }
  .quick { gap: 8px; }
  .quick a { padding: 10px 14px; }
  .manual h2 { font-size: 21px; }
  .toc-mobile ol { columns: 1; }
  .actions .button { flex: 1 1 100%; }
  .section { padding-top: 44px; }
  .doc main { padding-top: 28px; }
}
@media (max-width: 420px) {
  .app-nav { gap: 0 14px; font-size: 14px; } /* 4項目（英語の「User guide (Japanese)」を含む）を390px幅で1行に収める */
}
@media print {
  .site-header, .toc, .toc-mobile, .skip-link, .site-footer nav { display: none; }
  .manual .layout { display: block; }
  .manual details { border: 0; padding: 0; }
  a.zoom::after { display: none; }
}
