/* OUTPOST FACTORY の作品ページ（site/top/・載せ方は site/README.md） */
:root {
  --bg: #f3f1ec; --panel: #ffffff; --ink: #1d2124; --sub: #5b6166; --line: #d9d5cc;
  --accent: #b87300; --stage: #12171a; --stage-ink: #f1efe9; --stage-sub: #a9b0b5; --glow: #ffb830;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1214; --panel: #171b1e; --ink: #e8e6e1; --sub: #9aa1a6; --line: #2a3035; --accent: #ffb830; --stage: #07090a;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1214; --panel: #171b1e; --ink: #e8e6e1; --sub: #9aa1a6; --line: #2a3035; --accent: #ffb830; --stage: #07090a;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink);
  font: 16px/1.75 "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--panel); padding: 8px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 看板：タイトルの絵の上にロゴ */
.hero { position: relative; background: var(--stage); color: var(--stage-ink); overflow: hidden; }
.hero__art { width: 100%; height: auto; min-height: 420px; max-height: 74vh; object-fit: cover; }
.hero picture { position: relative; display: block; }
.hero picture::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,9,10,.5) 0, rgba(7,9,10,0) 18%, rgba(7,9,10,0) 60%, var(--stage) 100%); }
.home { position: absolute; z-index: 2; top: 14px; left: 16px; padding: 10px 4px; min-height: 44px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: #fff; }
.home:hover { color: var(--glow); }
.hero__text { position: relative; z-index: 1; margin-top: clamp(-140px, -10vw, -48px); padding: 0 max(16px, 5vw) clamp(24px, 4vw, 48px); }
.hero__logo img { width: 100%; height: auto; }
.hero__logo { margin: 0 0 10px; width: min(480px, 78vw); filter: drop-shadow(0 4px 14px rgba(0,0,0,.55)); }
.hero__pitch { margin: 0; font-size: clamp(20px, 3vw, 32px); font-weight: 800; line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero__sub { margin: 4px 0 0; color: #d6dade; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.hero__cta { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero__status { font-size: 14px; font-weight: 700; color: #d6dade; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 64px; }
section { margin-top: 56px; }
.eyebrow { display: block; margin: 0; font-size: 12px; letter-spacing: .16em; font-weight: 800; color: var(--accent); }
h2 { margin: 4px 0 20px; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; }

.lead { margin: -8px 0 0; color: var(--sub); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; text-decoration: none;
  background: var(--glow); color: #1a1200; font-weight: 800; font-size: 16px; }
.btn:hover, .btn:focus-visible { background: #ffd070; }

/* 見せ場：実機の動画を横いっぱいに */
.reel-sec { margin-top: 0; }
.reel { margin: 0 calc(50% - 50vw) 28px; background: var(--stage); }
.reel video { width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.reel__tall { display: none; }

/* この先に起きる事：大きくなる順の 5 コマ */
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.story video { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #000; }
.story h3 { margin: 10px 0 2px; font-size: 17px; line-height: 1.4; }
.story__n { display: block; font: 700 12px ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--accent); }
.story p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--sub); }
.story li:last-child p { color: var(--accent); font-weight: 800; }

/* 面白い所 */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feat video { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #000; }
.feat h3 { margin: 14px 16px 4px; font-size: 18px; line-height: 1.4; }
.feat p { margin: 0 16px 18px; font-size: 15px; color: var(--sub); }

/* はじめかた */
.easy { list-style: none; counter-reset: easy; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.easy li { counter-increment: easy; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline;
  padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.easy li::before { content: counter(easy); grid-row: span 2; font: 800 30px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--accent); }
.easy b { font-size: 19px; }
.easy span { font-size: 14px; line-height: 1.6; color: var(--sub); }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; font-weight: 700; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-weight: 800; color: var(--accent); }
.btn.more { color: #1a1200; margin-top: 20px; }

/* 続報 */
.cta-sec { padding: 36px 20px; border-radius: 14px; background: var(--stage); color: var(--stage-ink); text-align: center; }
.cta-sec h2 { margin: 0 0 4px; }
.cta-sec p { margin: 0 0 18px; color: var(--stage-sub); }

/* 概要 */
.info { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.info dt { color: var(--sub); font-size: 14px; }
.info dd { margin: 0; }
.refs { margin: 14px 0 0; font-size: 14px; }
.refs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sub); }

.foot { padding: 28px 16px 40px; text-align: center; font-size: 14px; color: var(--sub); }
.foot a { display: inline-block; padding: 10px; }

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; gap: 18px; }
  .story li { display: grid; grid-template-columns: 42% 1fr; gap: 14px; align-items: center; }
  .story h3 { margin-top: 0; }
  .feats, .easy { grid-template-columns: 1fr; }
}
@media (orientation: portrait) and (max-width: 760px) {
  .hero__art { max-height: 62vh; min-height: 0; object-position: 50% 60%; }
  .hero__logo { width: 62vw; }
}
@media (orientation: portrait) and (max-width: 760px) {
  .reel__wide { display: none; }
  .reel__tall { display: block; }
}
