/* 法定表記ページの共通スタイル。
   Cloudflare Pages へそのまま配置できるよう、外部依存なしの単一ファイルにする。 */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #e3e6eb;
  --text: #212429;
  --text-soft: #5c6068;
  --accent: #359181;
  --accent-soft: #e8f4f1;
  /* X のロゴ色。ブランド規定でロゴの色変更は認められていないため、
     本文のグレー(--text-soft)ではなく黒（ダークでは白）で描く。 */
  --x-mark: #000000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #171a20;
    --border: #2a2f38;
    --text: #f4f6fb;
    --text-soft: #b9c0cf;
    --accent: #4fb3a0;
    --accent-soft: #16302c;
    --x-mark: #ffffff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.9;
  font-size: 16px;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

header.site .inner {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

header.site a.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

header.site nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 1rem;
}

header.site nav a:hover { color: var(--accent); }
header.site nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

h1 {
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.updated {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.1rem;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 0.98rem;
  margin: 1.75rem 0 0.5rem;
}

p, li { color: var(--text); }
ol, ul { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

/* 定義リスト形式の表（特商法表記向け） */
table.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
}

table.spec th,
table.spec td {
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}

table.spec th {
  background: var(--surface);
  width: 32%;
  font-weight: 600;
  white-space: nowrap;
}

/* 横幅の狭い端末では表を縦積みにする */
@media (max-width: 34rem) {
  table.spec, table.spec tbody, table.spec tr, table.spec th, table.spec td {
    display: block;
    width: 100%;
  }
  table.spec tr { margin-bottom: 1rem; }
  table.spec th { border-bottom: none; white-space: normal; }
}

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  border-radius: 0 4px 4px 0;
}

.todo {
  background: #fff4e5;
  border-left: 3px solid #d98324;
  color: #6b4415;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  border-radius: 0 4px 4px 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .todo {
    background: #3a2a12;
    color: #f0d5b0;
  }
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem 3rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

footer.site .inner {
  max-width: 46rem;
  margin: 0 auto;
}

footer.site a { color: var(--text-soft); }

/* フッターの X（旧Twitter）公式アカウントへのリンク。
   ロゴはインライン SVG。外部リクエストを増やさず、色も currentColor で揃う。 */
footer.site .social {
  margin: 0.9rem 0 0;
}

footer.site a.x-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--x-mark);
  text-decoration: none;
}

footer.site a.x-link:hover {
  text-decoration: underline;
}

footer.site a.x-link svg {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  flex: none;
}

a { color: var(--accent); }
code {
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ===================================================================
   トップページ（LP）用スタイル
   =================================================================== */

.hero {
  padding: 4.5rem 1.25rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero .inner { max-width: 46rem; margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.45;
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}

.hero p.lead {
  color: var(--text-soft);
  font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  margin: 0 auto 2.25rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }

.btn-primary { background: var(--accent); color: #ffffff; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.hero .sub {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

section.block { padding: 3.5rem 1.25rem; }
section.block.alt { background: var(--surface); }
section.block .inner { max-width: 46rem; margin: 0 auto; }

section.block h2 {
  border-top: none;
  padding-top: 0;
  margin: 0 0 1.75rem;
  font-size: 1.35rem;
}

.features { display: grid; gap: 1.5rem; }

@media (min-width: 40rem) {
  .features { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.85;
}

/* 料金表 */
table.price {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-bottom: 1.5rem;
}

table.price th, table.price td {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.5rem;
  text-align: left;
}

table.price th { color: var(--text-soft); font-weight: 600; font-size: 0.85rem; }
table.price td.num { text-align: right; white-space: nowrap; }

/* ダウンロード */
.dl-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }

@media (min-width: 34rem) {
  .dl-grid { grid-template-columns: 1fr 1fr; }
}

.dl-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  background: var(--bg);
}

.dl-card h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.dl-card p { margin: 0 0 1.1rem; color: var(--text-soft); font-size: 0.85rem; }

/* ダウンロードボタンの下に出すファイルサイズと「インストール不要版」 */
.dl-card p.dl-meta { margin: 0.9rem 0 0; font-size: 0.78rem; line-height: 1.7; }

/* FAQ */
details.faq {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

details.faq[open] summary::after { content: "−"; }

details.faq .body {
  margin-top: 0.9rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

details.faq .body p:first-child { margin-top: 0; }
details.faq .body p:last-child { margin-bottom: 0; }

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.6rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================================
   トップページ（body.top）専用。
   法務ページと同じ CSS を共有するため、すべて .top 配下へスコープする。
   トップは <html data-theme="light"> で白基調に固定している
   （淡い装飾とキャラの白い縁取りがダークでは成立しないため）。
   配色はコンセプト画像から抽出した実測値。
   =================================================================== */

body.top {
  --coral: #FE6646;
  --coral-dark: #E8482A;
  --brand-teal: #099A89;
  --ink: #303131;
  --blob-mint: #E2F5F3;
  --blob-pink: #FCEAEC;
  --blob-cream: #FDF4E4;
  --star: #F7B83F;
}

body.top .inner { max-width: 68rem; }

/* --- ヘッダー --- */
body.top header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.5rem;
}

body.top header.site a.brand { display: flex; align-items: center; }
body.top header.site a.brand img { height: 44px; width: auto; display: block; }
body.top header.site nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-left: 1.75rem;
}

/* --- ヒーロー --- */
body.top .top-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem 4rem;
  text-align: left;
  border-bottom: none;
}

/* 背景の淡いブロブと星。装飾なので aria-hidden にしてある */
body.top .hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body.top .hero-deco span {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
body.top .hero-deco .b1 { width: 26rem; height: 22rem; right: -6rem; top: -4rem; background: var(--blob-pink); }
body.top .hero-deco .b2 { width: 20rem; height: 18rem; left: -7rem; top: 3rem; background: var(--blob-mint); }
body.top .hero-deco .b3 { width: 15rem; height: 13rem; left: 2rem; bottom: -3rem; background: var(--blob-cream); }
body.top .hero-deco .b4 { width: 12rem; height: 11rem; right: 18%; bottom: 6%; background: var(--blob-mint); opacity: 0.7; }

body.top .hero-deco .star {
  border-radius: 0;
  filter: none;
  background: var(--star);
  /* 4方向に尖った星。曲線を持つ辺で、コンセプトのきらめき表現に寄せる */
  clip-path: polygon(
    50% 0%, 60% 40%, 100% 50%, 60% 60%,
    50% 100%, 40% 60%, 0% 50%, 40% 40%
  );
}

body.top .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem 2.5rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas:
    "visual copy"
    "visual cta"
    "visual pv";
  align-items: start;
}

body.top .hero-visual { grid-area: visual; align-self: end; }
body.top .hero-visual img {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  margin: 0 auto;
  /* 白背景から浮かないよう、ごく淡い落ち影を付ける */
  filter: drop-shadow(0 12px 24px rgba(48, 49, 49, 0.10));
}

body.top .hero-copy { grid-area: copy; padding-top: 2.5rem; }
body.top .top-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 1rem;
  font-weight: 800;
}
body.top .top-hero h1 .teal { color: var(--brand-teal); }

body.top .top-hero p.lead {
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  margin: 0;
  max-width: 30rem;
  line-height: 1.85;
}

body.top .hero-cta { grid-area: cta; }
body.top .top-hero .cta-row { justify-content: flex-start; margin-top: 0.25rem; }

body.top .btn-cta {
  background: var(--coral);
  color: #ffffff;
  border-radius: 999px;
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(254, 102, 70, 0.28);
}
body.top .btn-cta:hover { background: var(--coral-dark); opacity: 1; }

body.top .btn-outline {
  background: #ffffff;
  color: var(--brand-teal);
  border: 2px solid var(--brand-teal);
  border-radius: 999px;
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}
body.top .btn-outline:hover { background: var(--accent-soft); opacity: 1; }

body.top .top-hero .sub { margin-top: 1rem; font-size: 0.85rem; }

/* --- PV枠 --- */
body.top .pv-slot { grid-area: pv; margin-top: 1.5rem; }

body.top .pv-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(48, 49, 49, 0.14);
}

body.top .pv-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
body.top .pv-media img,
body.top .pv-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

/* 再生ボタン。PV 公開までは押せない状態にしておく */
body.top .pv-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
body.top .pv-play .disc {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
body.top .pv-play .disc::after {
  content: "";
  border-style: solid;
  border-width: 1.05rem 0 1.05rem 1.7rem;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 0.35rem;
}
body.top .pv-play .pv-note {
  background: rgba(0, 0, 0, 0.55);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* --- 問い合わせ --- */
body.top .contact-embed {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  min-height: 30rem;
}
body.top .contact-embed iframe { width: 100%; min-height: 30rem; border: 0; display: block; }

body.top .contact-fallback {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-soft);
}

/* --- お問い合わせフォーム ---
   種別で出し入れする項目は hidden 属性を付け外しして切り替える。
   .cf-row などに display を与えているため、UA 標準の [hidden]{display:none} が
   負けてしまう。効き目を確実にするため明示的に打ち消す。 */
body.top .contact-form [hidden],
body.top #cf-done[hidden] { display: none !important; }

body.top .contact-form {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 1.75rem 1.5rem;
}

body.top .cf-warn {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: #fff1ed;
  border-left: 3px solid var(--coral);
  color: #8c2c15;
  font-size: 0.9rem;
  font-weight: 600;
}

body.top .cf-row { margin-bottom: 1.25rem; }

body.top .cf-row > label,
body.top .cf-agree > span {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

body.top .cf-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
body.top .cf-badge.req { background: var(--coral); color: #ffffff; }
body.top .cf-badge.opt { background: #e6e9ee; color: var(--text-soft); }

body.top .cf-row input[type="text"],
body.top .cf-row input[type="email"],
body.top .cf-row select,
body.top .cf-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

body.top .cf-row textarea { resize: vertical; min-height: 6rem; }

body.top .cf-row input:focus,
body.top .cf-row select:focus,
body.top .cf-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

body.top .cf-row .is-invalid { border-color: #b3261e; background: #fff6f5; }

body.top .cf-row input[type="file"] {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

body.top .cf-help {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
}

body.top .cf-fielderror {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b3261e;
}

body.top .cf-heading {
  margin: 2rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

body.top .cf-note { margin-bottom: 1.5rem; }

body.top .cf-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  cursor: pointer;
}
body.top .cf-agree input { margin-top: 0.45rem; width: 1.05rem; height: 1.05rem; flex: none; }
body.top .cf-agree > span { margin-bottom: 0; font-weight: 500; }

/* ハニーポット。bot だけが埋める欄なので、人にも読み上げにも出さない。
   display:none は自動入力を避ける bot があるため、画面外へ飛ばして隠す。 */
body.top .cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.top .cf-turnstile { margin: 1.5rem 0 0; min-height: 65px; }

body.top .cf-error {
  margin: 1.25rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: #fdecea;
  border-left: 3px solid #b3261e;
  color: #8c1d18;
  font-size: 0.9rem;
  font-weight: 600;
}
body.top .cf-error a { color: #8c1d18; }

body.top .cf-submit {
  margin-top: 1.5rem;
  width: 100%;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.95rem 1.75rem;
}
body.top .cf-submit:disabled { opacity: 0.55; cursor: default; }

body.top .cf-done {
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
  padding: 2rem 1.5rem;
  text-align: center;
}
body.top .cf-done-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 0.5rem; }
body.top .cf-done-warn { color: #8c2c15; font-size: 0.9rem; font-weight: 600; }

/* --- 狭い画面 --- */
@media (max-width: 860px) {
  body.top header.site { padding: 0.5rem 1rem; }
  body.top header.site .inner { justify-content: center; }
  body.top header.site a.brand img { height: 36px; }
  /* ナビは5項目あり 430px 幅では1行に収まらない。折り返しを明示する
     (インライン任せだと収まらないまま見切れることがある) */
  body.top header.site nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
  }
  body.top header.site nav a { margin: 0; font-size: 0.85rem; }

  body.top .top-hero { padding: 1.5rem 1rem 3rem; text-align: center; }
  body.top .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "visual" "pv" "cta";
    gap: 1.25rem;
  }
  body.top .hero-copy { padding-top: 0.5rem; }
  body.top .top-hero p.lead { margin-left: auto; margin-right: auto; }
  body.top .top-hero .cta-row { justify-content: center; }
  body.top .btn-cta, body.top .btn-outline { width: 100%; max-width: 22rem; text-align: center; }
  body.top .hero-visual img { max-width: 22rem; }
  body.top .pv-slot { margin-top: 0; }
  body.top .hero-deco .b1 { width: 16rem; height: 14rem; }
  body.top .hero-deco .b2 { width: 13rem; height: 12rem; }
}

/* 星の配置。コンセプト画像の散らし方に合わせ、見出し周りと余白へ点在させる */
body.top .hero-deco .s1 { width: 22px; height: 22px; left: 42%; top: 13%; }
body.top .hero-deco .s2 { width: 14px; height: 14px; left: 46%; top: 24%; }
body.top .hero-deco .s3 { width: 16px; height: 16px; right: 6%; top: 20%; }
body.top .hero-deco .s4 { width: 12px; height: 12px; right: 11%; top: 33%; }
body.top .hero-deco .s5 { width: 18px; height: 18px; left: 4%; top: 46%; }
body.top .hero-deco .s6 { width: 13px; height: 13px; left: 30%; bottom: 8%; }
body.top .hero-deco .s7 { width: 15px; height: 15px; right: 3%; bottom: 22%; }
body.top .hero-deco .s8 { width: 11px; height: 11px; left: 55%; top: 8%; }

@media (max-width: 860px) {
  /* 縦積みになると見出し・本文の上へ重なるものは出さない。残すのは左余白の s5 のみ */
  body.top .hero-deco .s1, body.top .hero-deco .s2, body.top .hero-deco .s3,
  body.top .hero-deco .s4, body.top .hero-deco .s6, body.top .hero-deco .s7,
  body.top .hero-deco .s8 { display: none; }
}

/* ===================================================================
   言語切替（トップ・ガイド共通）
   =================================================================== */

.langsw { display: flex; align-items: center; gap: 0.15rem; font-size: 0.8rem; }

.langsw a,
.langsw span {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  white-space: nowrap;
}

.langsw a:hover { color: var(--accent); background: var(--accent-soft); }
.langsw [aria-current] { color: var(--text); background: var(--surface); font-weight: 700; }

a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* PV を自己ホストの video で出す間のスタイル。
   YouTube の iframe へ差し替えたあとも .pv-frame / .pv-media の枠はそのまま使える。 */
body.top .pv-media video {
  width: 100%; height: 100%; display: block;
  border: 0; object-fit: cover; background: #000;
}

body.top button.pv-play { border: 0; padding: 0; width: 100%; font: inherit; cursor: pointer; }
body.top button.pv-play[hidden] { display: none; }

/* ===================================================================
   使い方ガイド（body.guide）
   トップは白基調固定だが、ガイドは法務ページと同じく
   prefers-color-scheme に追従する（本文中心のページのため）。
   =================================================================== */

/* .inner の中央寄せは header.site / .hero / section.block だけに付いているため、
   ガイド固有のコンテナ（.guide-hero .inner / .inner.guide-body）にも明示する。
   幅はトップと同じ 68rem に揃え、ヘッダー・本文・フッターの左右端を一致させる。
   読みやすさは本文側の max-width（section > p の 44rem）で担保する。 */
body.guide .inner { max-width: 68rem; margin-inline: auto; }

body.guide header.site {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  padding: 0.6rem 1.25rem;
}
body.guide header.site a.brand { display: flex; align-items: center; }
body.guide header.site a.brand img { height: 38px; width: auto; display: block; }
body.guide header.site nav a { font-size: 0.85rem; margin-left: 1.1rem; }

body.guide .guide-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.25rem 2.25rem;
  text-align: center;
}
body.guide .guide-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
body.guide .guide-hero p.lead {
  color: var(--text-soft); margin: 0 auto; max-width: 36rem; font-size: 0.98rem;
}

body.guide .badges {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem;
}
body.guide .badge {
  font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-soft); background: var(--bg);
}

body.guide .guide-body { padding: 2.5rem 1.25rem 4rem; }

/* --- 目次 --- */
body.guide .gtoc {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1.25rem 1.5rem; background: var(--surface);
}
body.guide .gtoc h2 { border-top: none; padding-top: 0; margin: 0 0 0.6rem; font-size: 0.95rem; }
body.guide .gtoc ol {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.1rem 1.5rem;
}
body.guide .gtoc li { margin: 0; }
body.guide .gtoc a {
  display: flex; gap: 0.6rem; align-items: baseline; padding: 0.3rem 0;
  color: var(--text); text-decoration: none; font-size: 0.9rem;
}
body.guide .gtoc a:hover { color: var(--accent); }
body.guide .gtoc b {
  color: var(--accent); font-size: 0.72rem; letter-spacing: 0.08em;
  min-width: 1.6rem; font-variant-numeric: tabular-nums;
}

/* --- 節と手順 --- */
body.guide section { margin-top: 3.5rem; }
body.guide section > h2 {
  border-top: none; padding-top: 0; margin: 0 0 1.1rem; font-size: 1.25rem;
}
body.guide .gstep { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.5rem; }
body.guide .gstep h2 { border-top: none; padding-top: 0; margin: 0; font-size: 1.25rem; }
body.guide .gnum {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
body.guide .gnum.coral { background: #d9584c; }
body.guide .gphase {
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  padding: 0.12rem 0.6rem; vertical-align: 0.22em; margin-left: 0.35rem; white-space: nowrap;
}
body.guide section > p { max-width: 44rem; }

/* 手順内の小見出し（OBSの取り込み方法など）。ステップ見出しより一段小さく置く */
body.guide h3.gsub {
  margin: 2rem 0 0.6rem;
  font-size: 1rem;
  color: var(--accent);
}
body.guide h3.gsub + ol.steps,
body.guide h3.gsub + ul.gplain { margin-top: 0; }
body.guide ol.steps { max-width: 44rem; }
body.guide ol.steps li code,
body.guide ul.gplain li code { font-size: 0.85em; }

/* --- 図版 --- */
body.guide figure { margin: 1.5rem 0 0; }
body.guide figure img {
  width: 100%; height: auto; display: block;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
}
body.guide figcaption {
  color: var(--text-soft); font-size: 0.85rem; line-height: 1.8; margin-top: 0.6rem;
}
body.guide .gfig-row { display: grid; gap: 1.5rem; }

@media (min-width: 52rem) {
  body.guide .gfig-row { grid-template-columns: 1fr 1fr; }
}

/* --- フェーズの流れ --- */
body.guide .chipflow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; margin-top: 1.25rem;
}
body.guide .chipflow span {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.85rem; background: var(--bg);
}
body.guide .chipflow b { color: var(--accent); margin-right: 0.4rem; }
body.guide .chipflow .arr { border: none; background: none; padding: 0 0.1rem; color: var(--text-soft); }

/* --- 箇条書き --- */
body.guide ul.gplain { list-style: none; padding: 0; margin: 1rem 0 0; max-width: 44rem; }
body.guide ul.gplain li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; }
body.guide ul.gplain li::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.72em;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent);
}

body.guide .guide-foot {
  margin-top: 3rem; color: var(--text-soft); font-size: 0.8rem; text-align: center;
}

@media (max-width: 860px) {
  body.guide header.site .inner { justify-content: center; }
  body.guide header.site nav {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem;
  }
  body.guide header.site nav a { margin: 0; }
}

/* 開発（ブランチプレビュー）環境の目印。build_site.py の ENV_BADGE が挿入する。
   本番（vtuber-ocm.com / vtuber-ocm.pages.dev）とローカルには出ない。 */
.envbar {
  position: fixed;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 50;
  background: #b3261e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
