/* ------------------------------------------------------------------
   スキマシアター — 公式サイト
   アプリ本体と同じ太枠デザイン（赤 × クリーム、黒の太い線と硬い影）。
   ライトの単一デザイン。
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/material-symbols-rounded.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --primary: #b23a2a;
  --on-primary: #ffffff;
  --accent-fill: #c8432e;
  --primary-container: #f3d9cf;
  --on-primary-container: #5a1a10;
  --secondary-container: #e9dec4;
  --on-secondary-container: #1a1a1a;

  --surface: #f2e9d0;
  --surface-container-low: #f7f0dd;
  --card: #ffffff;
  --on-surface: #1a1a1a;
  --on-surface-variant: #4a4338;
  --line: #1a1a1a;
  --outline-variant: #cfc2ac;

  --border: 2px solid var(--line);
  --shadow: 4px 4px 0 var(--line);
  --shadow-sm: 2px 2px 0 var(--line);
  --radius: 4px;

  --font: Roboto, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --gutter: 24px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.icon {
  font-family: "Material Symbols Rounded";
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  flex: none;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}
.icon--fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a { color: var(--primary); }
a:hover { text-decoration: none; }

section { padding: 72px 0; }

/* ---------------------------------------------------------- ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 17px;
  color: var(--on-surface);
  text-decoration: none;
}
.brand img { display: block; width: 36px; height: 36px; }
.site-header__spacer { flex: 1; }
.header-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  text-decoration: none;
  padding: 8px 12px;
  white-space: nowrap;
}
.header-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------- ヒーロー */
.hero { padding: 56px 0 72px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(32px, 4.8vw, 50px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 .accent { color: var(--primary); white-space: nowrap; }

.lede {
  margin: 20px 0 0;
  font-size: 17px;
  color: var(--on-surface-variant);
  max-width: 30em;
}

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
}
.badge .icon { font-size: 18px; color: var(--primary); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.button:hover { transform: translate(2px, 2px); box-shadow: var(--shadow-sm); }
.button:active { transform: translate(4px, 4px); box-shadow: none; }
.button--filled { background: var(--accent-fill); color: #fff; }
.button--outlined { background: var(--card); color: var(--on-surface); }
.button[aria-disabled="true"] {
  background: var(--secondary-container);
  color: var(--on-surface-variant);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.cta__note { font-size: 13px; color: var(--on-surface-variant); }

/* ---------------------------------------------------------- 画面（スクリーンショット） */
.hero__shot { display: flex; justify-content: center; }
.hero__shot img {
  display: block;
  width: min(340px, 100%);
  height: auto;
  border: var(--border);
  box-shadow: 8px 8px 0 var(--line);
  background: var(--surface);
}

.gallery {
  display: flex;
  gap: 20px;
  margin: 40px calc(var(--gutter) * -1) 0;
  padding: 4px var(--gutter) 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.gallery img {
  flex: none;
  width: 260px;
  height: auto;
  border: var(--border);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  background: var(--surface);
}

/* ---------------------------------------------------------- セクション共通 */
.section-head { max-width: 34em; }
h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.005em;
}
.section-head p { margin: 14px 0 0; color: var(--on-surface-variant); font-size: 16px; }

/* 使い方の3ステップ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.step {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.step__n {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--accent-fill);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.step h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 800; }
.step p { margin: 0; font-size: 14.5px; color: var(--on-surface-variant); }
.step__eg {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: var(--surface-container-low);
  font-size: 13.5px;
  color: var(--on-surface);
}
.step__eg b { color: var(--primary); font-weight: 800; }

/* 特徴 */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.feature {
  display: flex;
  gap: 18px;
  padding: 26px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
}
.feature__icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--accent-fill);
  color: #fff;
}
.feature__icon .icon { font-size: 24px; }
.feature__icon b { font-size: 18px; font-weight: 800; line-height: 1; }
.feature h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.feature p { margin: 0; font-size: 14.5px; color: var(--on-surface-variant); }

/* 配信中 */
.release {
  padding: 48px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--line);
  background: var(--accent-fill);
  color: #fff;
  text-align: center;
}
.release h2 { color: #fff; }
.release p { margin: 14px auto 0; max-width: 32em; color: #fff; opacity: 0.94; }
.release .cta { justify-content: center; }
.release .button--filled { background: var(--card); color: var(--on-surface); }

/* 出典 */
.sources {
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
  padding: 28px;
  margin-top: 32px;
}
.source {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--outline-variant);
}
.source:last-child { border-bottom: none; padding-bottom: 0; }
.source:first-child { padding-top: 0; }
.source__logo {
  flex: none;
  min-width: 92px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: var(--surface-container-low);
  padding: 0 10px;
}
.source__logo img { max-width: 100%; max-height: 28px; display: block; }
.source h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.source p { margin: 0; font-size: 13.5px; color: var(--on-surface-variant); }

/* ---------------------------------------------------------- フッター */
.site-footer {
  border-top: var(--border);
  padding: 40px 0;
  margin-top: 24px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { font-size: 14px; font-weight: 700; color: var(--on-surface); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy { flex: 1; text-align: right; font-size: 13px; color: var(--on-surface-variant); }

/* ---------------------------------------------------------- 本文ページ */
.doc { padding: 56px var(--gutter) 24px; max-width: 46em; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
.doc .updated { color: var(--on-surface-variant); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 15.5px; color: var(--on-surface-variant); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--on-surface); }
.doc .callout {
  margin: 28px 0;
  padding: 20px 24px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
  color: var(--on-surface);
}
.doc .callout p { color: inherit; margin: 0; font-size: 15.5px; }

/* ---------------------------------------------------------- レスポンシブ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { text-align: center; }
  .hero__copy .lede { margin-inline: auto; }
  .badges, .cta { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .section-head { margin-inline: auto; text-align: center; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .site-header__inner { height: 60px; gap: 2px; }
  .brand { font-size: 15px; }
  .brand img { width: 30px; height: 30px; }
  .header-link { padding: 8px 10px; font-size: 13px; }
  section { padding: 56px 0; }
  .hero { padding: 36px 0 48px; }
  .release { padding: 36px 24px; }
  .sources { padding: 20px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__copy { text-align: left; }
  .gallery img { width: 220px; }
}

@media (max-width: 400px) {
  .header-link--secondary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover, .button:active { transform: none; }
}
