/* SonaFrame の紹介とダウンロードのページ（sonaframe/index.html）専用 CSS。2026-11-17 作成。
   設計の正は docs/design-system.md（夜空の地・明朝の見出し・紙の帯・橙は 1 画面に 1 回）。
   sora.css を手本にしたが、つながりは持たせない（このファイルだけで完結させる）。
   SonaFrame の映像は黒の地に光るものが多いので、ページの地もトップと同じ夜空のままにした。
   言語は日本語と英語だけなので、書体の切り替えも ja と en だけ（ほかの言語を足すときは sora.css の表を写す）。 */

:root {
  --night: #070d18;
  --night-2: #0d1626;
  --line: #22304a;
  --fg: #dce4f0;
  --muted: #8fa2bd;
  --accent: #ff6a3d;
  --paper: #f8f5f1;
  --ink: #122033;
  --ink-muted: #5a6478;
  --paper-line: rgba(18, 32, 51, 0.14);
  --serif: "Hiragino Mincho ProN", "Yu Mincho Demibold", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --mono: Consolas, "Cascadia Mono", Menlo, monospace; /* 和文の等幅だと「\」が「¥」に見えるので欧文を先に */
  --h-weight: 600;      /* 和文=デミボールド相当（実物の字面。合成はしない） */
  --h-track: 0.06em;    /* 和文は少し開けると締まる */
  --h1-lh: 1.5;
  --h2-lh: 1.6;
  --eyebrow-track: 0.24em;
  --body-lh: 2.0;
  color-scheme: dark;
}
/* 英語: 見出しはオールドスタイルのセリフで、太字にせず字間をわずかに詰める（design-system.md 4） */
html[lang="en"] {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Constantia, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --h-weight: 400; --h-track: -0.01em; --h1-lh: 1.24; --h2-lh: 1.38; --body-lh: 1.78;
}

* { box-sizing: border-box; }
/* hidden 属性を必ず効かせる（.cta の display: inline-block が勝つのを防ぐ。flipclash.css と同じ） */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  word-break: auto-phrase; /* 和文を文節で改行する（Chrome 119+） */
}
a { color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; max-width: 40em; text-wrap: pretty; }
.nb, a[href^="mailto:"] { white-space: nowrap; }
code { font-family: var(--mono); font-size: 0.92em; overflow-wrap: anywhere; }
.wrap { max-width: 1040px; margin-inline: auto; padding-inline: 24px; }

/* ---------- 見出し ---------- */
.eyebrow {
  font-size: 12.5px; letter-spacing: var(--eyebrow-track);
  color: var(--muted); margin: 0 0 14px;
}
h2.statement, .hero h1, h3.sub {
  font-family: var(--serif); font-weight: var(--h-weight); font-synthesis: none;
  letter-spacing: var(--h-track);
}
h2.statement {
  font-size: clamp(24px, 3.2vw, 32px); line-height: var(--h2-lh);
  margin: 0 0 22px; text-wrap: balance;
}
h3.sub { font-size: clamp(18px, 2.2vw, 21px); line-height: var(--h2-lh); margin: 56px 0 14px; }
.sec-lead { color: var(--fg); }

/* ---------- CTA（主は橙の丸ピル。1 画面に 1 つ） ---------- */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.cta {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16.5px; line-height: 1.5; padding: 13px 32px; border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(255, 106, 61, 0.5);
  transition: filter 0.15s;
}
.cta:hover { filter: brightness(1.08); }
.cta-ghost {
  display: inline-block; color: var(--fg); text-decoration: none; font-weight: 600;
  font-size: 15px; line-height: 1.5; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color 0.15s;
}
.cta-ghost:hover { border-color: var(--muted); }
.cta:focus-visible, .cta-ghost:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
/* リンクの行き先がまだ無いとき（LINKS が空）。押せない形で「準備中」と見せる */
.is-pending { opacity: 0.55; pointer-events: none; box-shadow: none; }
.cta-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

/* ---------- ヒーロー ----------
   2026-11-17 に 2 案を並べて設計者が選んだ「B 少し強め」: 絵を右へはみ出させ、左を夜空へ溶かして、その上に見出し。
   （A は、見出し 28〜44px で絵を文の下の 16:9 の枠に入れる形だった。パソコンの最初の画面に絵がほとんど入らない）
   見本の動画を入れるときも同じ場所（.hero-media の img を video に差し替える）。
   object-position は、球が見出しに重ならないよう右へ寄せたもの。絵を替えたら見直す */
.hero {
  position: relative; min-height: min(88svh, 820px); display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero > .wrap { width: 100%; padding-block: 64px 72px; }
.hero .brandline { margin: 0 0 44px; line-height: 0; }
.hero .brandline img { height: 18px; width: auto; }
.appname {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: var(--fg);
}
.appname img { width: 36px; height: 36px; border-radius: 9px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: var(--h1-lh);
  margin: 0 0 22px; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}
.hero .lead {
  font-size: clamp(15px, 1.9vw, 17px); color: #c5d2e6; max-width: 30em; margin: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}
.hero .quiet-facts { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.hero-media { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 66%; margin: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: 28% center; background: #000;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
.hero-media figcaption { position: absolute; right: 24px; bottom: 14px; margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 映像・画像の枠（角丸 14px・罫線 1px。枠の中に文字を重ねない） ---------- */
.frame { margin: 0; }
.frame img, .frame video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000;
  border-radius: 14px; border: 1px solid var(--line);
}
.frame figcaption, .cap { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.75; max-width: 46em; }

/* ---------- セクション共通 ---------- */
.sec { padding: 96px 0; border-top: 1px solid var(--line); }
.sec.paper { background: var(--paper); color: var(--ink); border-top: none; }
.paper .eyebrow { color: var(--ink-muted); }
.paper a { color: var(--ink); }

/* ---------- 3 つの手順 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 36px 0 48px; padding: 0; list-style: none; counter-reset: step; }
.steps li { border-top: 1px solid var(--line); padding-top: 16px; counter-increment: step; }
.steps b { display: block; font-size: 16.5px; margin-bottom: 6px; }
.steps b::before { content: counter(step) "  "; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.9; }

/* ---------- 仕上げと書き出しのカード ---------- */
.cards {
  /* min() が無いと、狭い画面で列幅 300px が下限になり横スクロールが出る */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px 28px; margin-top: 40px;
}
.cards figure { margin: 0; }
.cards img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.cards h3 { font-size: 16.5px; font-weight: 700; margin: 16px 0 6px; line-height: 1.6; }
.cards p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.9; }
.aside-note { margin-top: 40px; color: var(--muted); font-size: 14.5px; }

/* 有料版の札（小さな橙枠。無料は札を付けない） */
.chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.7;
  color: var(--accent); border: 1px solid currentColor; border-radius: 4px;
  padding: 0 7px; margin-left: 8px; vertical-align: 2px; white-space: nowrap;
}

/* ---------- 無料版と有料版 ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px 22px; background: var(--night-2); }
.plan h3 { font-family: var(--serif); font-weight: var(--h-weight); font-synthesis: none; letter-spacing: var(--h-track); font-size: 20px; margin: 0 0 4px; }
.plan .plan-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { border-top: 1px solid var(--line); padding: 11px 0; font-size: 14.5px; line-height: 1.85; }
.plan li span { display: block; color: var(--muted); font-size: 13.5px; }
.plan li.mark { color: var(--fg); }
.mark-figure { margin-top: 44px; max-width: 640px; }

/* ---------- 値段（紙の帯） ---------- */
.price-line { font-size: 16px; margin: 6px 0 0; }
.price-line b { font-size: clamp(26px, 3.4vw, 32px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; margin-right: 6px; }
.sale {
  display: inline-block; margin: 16px 0 0; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--accent); color: var(--ink); font-size: 15px; max-width: none;
}
.sale b { font-variant-numeric: tabular-nums; }
.yen-note { font-size: 13px; color: var(--ink-muted); margin: 12px 0 0; }
.paper .cta-note { color: var(--ink-muted); }
.paper-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 8px; }
.paper h3.sub { margin-top: 56px; }
.paper ol, .paper ul.plain { padding-left: 1.3em; margin: 0; }
.paper li { margin: 0 0 10px; font-size: 15px; line-height: 1.85; }
.paper li::marker { color: var(--ink-muted); }

/* ---------- 入れる ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.way { border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px 28px; }
.way h3 { font-family: var(--serif); font-weight: var(--h-weight); font-synthesis: none; letter-spacing: var(--h-track); font-size: 20px; margin: 0 0 10px; }
.way p { font-size: 14.5px; color: var(--muted); line-height: 1.9; }
.way .cta, .way .cta-ghost { margin-top: 8px; }
.file { font-family: var(--mono); font-size: 13.5px; color: var(--fg); overflow-wrap: anywhere; }
.blue ol { padding-left: 1.3em; margin: 0 0 1em; }
.blue li { margin: 0 0 6px; }
.req { display: grid; grid-template-columns: 9em 1fr; gap: 0 20px; margin: 0; max-width: 46em; font-size: 15px; }
.req dt, .req dd { border-top: 1px solid var(--line); padding: 12px 0; margin: 0; }
.req dt { color: var(--muted); font-size: 13.5px; padding-top: 14px; }
.cmd { display: block; background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 18px; max-width: 46em; }
.scroll { overflow-x: auto; margin-top: 8px; }
table.files { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.files th, .files td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.files th { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.files td.size { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.files td.hash { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; color: var(--muted); }

/* ---------- よくある質問 ---------- */
details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 46em; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 0; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- 作った人・フッタ ---------- */
.maker-logo { height: 22px; width: auto; margin-top: 26px; opacity: 0.85; }
footer { border-top: 1px solid var(--line); padding: 56px 0 72px; font-size: 14px; color: var(--muted); }
footer a { color: var(--fg); }
footer .foot-logo { height: 18px; width: auto; margin-bottom: 18px; }
footer p { margin: 0 0 6px; max-width: none; }

/* ---------- 言語切替（右上に固定） ---------- */
.lang-pick { position: fixed; top: 14px; right: 14px; z-index: 50; }
.lang-pick select {
  font: inherit; font-size: 13px; background: rgba(7, 13, 24, 0.75); color: var(--fg);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px;
}

/* ---------- 画面幅 ---------- */
@media (max-width: 860px) {
  .plans, .ways, .paper-cols { grid-template-columns: 1fr; }
  .paper-cols { gap: 8px; }
}
@media (max-width: 760px) {
  /* 狭い画面では、絵を重ねずに文の下の枠へ（見出しが絵に乗ると読みにくい） */
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; width: auto; margin: 36px 0 0; }
  .hero-media img, .hero-media video {
    height: auto; aspect-ratio: 16 / 9; object-position: center;
    -webkit-mask-image: none; mask-image: none;
    border-radius: 14px; border: 1px solid var(--line);
  }
  .hero-media figcaption { position: static; margin-top: 12px; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero > .wrap { padding-block: 56px 0; }
  .hero .brandline { margin-bottom: 36px; }
  /* 和文の 3 行（「そのまま投稿できる」の 9 文字）が 320px でも 1 行に入る大きさ */
  .hero h1 { font-size: clamp(27px, 8.4vw, 40px); }
  /* 英語の見出しの改行は広い画面のためのもの。狭い画面では外して、balance に任せる */
  html[lang="en"] .hero h1 br { display: none; }
  .hero + main > .sec:first-child { margin-top: 72px; }
  .sec { padding: 72px 0; }
  .plan, .way { padding: 22px 20px; }
  .req { grid-template-columns: 1fr; }
  .req dd { border-top: none; padding-top: 0; }
  /* ファイルの表は、横スクロールだと SHA-256 が隠れるので、1 つずつ縦に積む */
  table.files { min-width: 0; }
  .files thead { display: none; }
  .files tbody, .files tr, .files td { display: block; }
  .files tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .files td { border: none; padding: 2px 0; }
  .files td.size { display: inline-block; }
  .cta { width: 100%; text-align: center; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-ghost { text-align: center; }
}
