/* ============================================================
   MannaCast product site (info.cast.mannasys.com)
   Self-contained stylesheet — no external fonts, images, or CDNs.
   Light/dark aware via prefers-color-scheme.
   ============================================================ */

:root {
  /* Light palette (default) */
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-2: #f3efe6;
  --ink: #22303e;
  --text: #3a4552;
  --muted: #6b7480;
  --line: #e2dcce;
  --accent: #8a6d33;        /* warm antique gold */
  --accent-soft: #f0e8d6;
  --primary: #2c476b;       /* deep calm blue */
  --primary-ink: #fdfcf9;
  --primary-hover: #1f3552;
  --badge-bg: #eef2f7;
  --shadow: 0 1px 2px rgba(34, 48, 62, 0.06), 0 8px 24px rgba(34, 48, 62, 0.07);
  --mock-bar: #e8e3d7;
  --mock-canvas-a: #2c476b;
  --mock-canvas-b: #16283f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131820;
    --surface: #1b222c;
    --surface-2: #202935;
    --ink: #e8ebef;
    --text: #c4ccd5;
    --muted: #8d97a3;
    --line: #2e3947;
    --accent: #c8a862;
    --accent-soft: #2e2a1d;
    --primary: #4b6c96;
    --primary-ink: #f4f7fb;
    --primary-hover: #5d7fab;
    --badge-bg: #23303f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --mock-bar: #242e3a;
    --mock-canvas-a: #35516f;
    --mock-canvas-b: #101c2b;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN",
    "Yu Mincho", serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

a { color: var(--primary); }

@media (prefers-color-scheme: dark) {
  a { color: #9db9d9; }
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-mark::first-letter { color: var(--accent); }

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text);
}

.site-nav a:hover { color: var(--ink); }

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.88rem;
  background: var(--badge-bg);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink) !important;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink) !important;
  background: var(--surface);
}

.btn-ghost:hover { border-color: var(--accent); }

.btn-small { padding: 0.45rem 1.05rem; font-size: 0.92rem; }

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

/* 🖼 スクリーンショットが用意できるまでは1カラム。
   2カラムのまま画像だけ外すと右半分が空いて崩れて見える。
   実画像を入れるときは grid-template-columns を戻すこと。 */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  justify-items: center;
  text-align: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.hero .wrap > div { max-width: 46rem; }

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  margin-bottom: 1.1rem;
  background: var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin: 0 0 1rem;
}

.hero p.lede {
  font-size: 1.15rem;
  margin: 0 0 1.8rem;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.hero-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Screenshot placeholder (pure CSS) ---------- */

.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--mock-bar);
}

.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.55;
}

.shot-canvas {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background:
    radial-gradient(ellipse at 30% 20%, var(--mock-canvas-a), var(--mock-canvas-b));
  color: #e7ecf3;
}

.shot-canvas .shot-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.shot-canvas .shot-verse {
  display: block;
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  opacity: 0.95;
}

.shot-small .shot-canvas { aspect-ratio: 16 / 10; }

/* ---------- Sections ---------- */

section { padding: 4rem 0; }

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 40em;
  margin: 0 auto 2.5rem;
}

.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.2rem;
}

.alt .feature { background: var(--surface-2); }

.feature .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.feature h3 {
  font-size: 1.08rem;
  margin: 0 0 0.4rem;
  font-family: inherit; /* feature titles read better in the sans stack */
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.3rem 1.1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  font-family: inherit;
  font-weight: 700;
}

.step p { margin: 0; font-size: 0.93rem; }

/* ---------- Pricing ---------- */


/* 料金プラン2枚(サブスク / 買い切り)。狭い画面では自動で縦積みになる。 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  max-width: 44rem;
  margin: 0 auto 1.6rem;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.plan h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.plan .price {
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.plan .price .per {
  font-size: 0.95rem;
  color: var(--muted);
  font-family: inherit;
}

.plan .plan-note { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--muted); }

/* ファミリー価格の案内。プランと同格に見せず、補足として一段落とす。 */
.family-note {
  max-width: 44rem;
  margin: 0 auto 1.6rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.family-note strong { color: var(--ink); }

.pricing-actions { text-align: center; }

/* ---------- 📦 保存できる量(項番116 段7、料金表のすぐ下) ----------
   🔴 オーナー指示(2026-09-04):「HPのプラン表のところにこの辺りの条件は分かりやすく
      書きましょう。また、コードが修正された場合はHPも必ず更新されるように。」
      背景は「容量制限は契約を躊躇する契機になりかねない」。だから見せ方も
      **「制限の一覧」ではなく「気にしなくてよい」が先に目に入る**ようにしてある。
   ⚠ 数も文章もここ(HTML/CSS)には無い。帯の数は GET /api/public/storage-policy が
     server/storageLimits.js の定数から、本文はマニュアルから、どちらも実行時に来る。 */

.storage-note {
  max-width: 50rem;
  margin: 2rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

/* 「上限なし」が先に目に入る帯。数のあるものは落ち着いた色、無制限は強調する。 */
.storage-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
}

.storage-strip:empty { display: none; }

.storage-chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.alt .storage-chip { background: var(--surface-2); }

/* 無制限(= お客様に安心していただきたいところ)だけ色を持たせる。 */
.storage-chip.is-free {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}

/* ⚠ 取れなかったときの受け皿。**黙って空白にしない**(料金の .plan-unavailable と同じ作法)。 */
.storage-unavailable {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.storage-unavailable .btn { margin: 0.4rem 0.25rem 0; }

/* ---------- 📋 システム要件(No.68) ----------
   本文は cast の公開経路 `GET /api/public/system-requirements` から**実行時に**取る。
   唯一の情報源は client/public/manual.html / manual.en.html の #requirements。
   ⚠ ここ(HTML/CSS)に本文を持たせない。持たせると、マニュアルを直したのに
     HPだけ古いまま、が必ず起きる(廃止された site/assets/plans.json の経緯)。
   ⚠ サーバーは「見出し・段落・箇条書き・表・囲み」という**意味**だけを返す。
     見た目はここで決める(マニュアルのCSSとは無関係)。 */

.req-body {
  max-width: 50rem;
  margin: 0 auto 1.6rem;
}

.req-body > h3 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.req-body > h3:first-child { margin-top: 0; }

.req-body p { margin: 0 0 0.9rem; font-size: 0.97rem; }
.req-body p:last-child { margin-bottom: 0; }

.req-body ul,
.req-body ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  font-size: 0.97rem;
}

.req-body li { margin: 0.35rem 0; }

.req-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
}

.alt .req-body code { background: var(--surface); }

/* 表は狭い画面で横にはみ出させず、その場でスクロールさせる */
.req-table {
  overflow-x: auto;
  margin: 0 0 1rem;
}

.req-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

.req-table th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
}

.alt .req-table th { background: var(--surface); }

/* マニュアル側の card / note / warn に対応する囲み */
.req-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin: 0 0 1.1rem;
  background: var(--surface);
}

.alt .req-box { background: var(--surface-2); }

.req-box > *:last-child { margin-bottom: 0; }

.req-note {
  border-left: 4px solid var(--accent);
  font-size: 0.94rem;
  color: var(--muted);
}

.req-warn {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.req-loading { color: var(--muted); font-size: 0.94rem; text-align: center; }

/* ⚠ 取れなかったときの受け皿。**黙って空白にしない**(料金の .plan-unavailable と同じ作法)。
   マニュアルへの入口とお問い合わせを必ず添える。 */
.requirements-unavailable {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.requirements-unavailable .btn { margin: 0.4rem 0.25rem 0; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.8rem;
}

.alt .faq-list details { background: var(--surface-2); }

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style-position: outside;
}

.faq-list details[open] summary { margin-bottom: 0.5rem; }

.faq-list details p { margin: 0.3rem 0 0.2rem; font-size: 0.96rem; }

/* ---------- Closing CTA ---------- */

.cta-final { text-align: center; }

.cta-final .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2.2rem 0 2.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

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

.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 56rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 36rem) {
  body { font-size: 1rem; }
  section { padding: 3rem 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-nav { gap: 0.8rem; width: 100%; margin-left: 0; }
  .site-nav .nav-section { display: inline-block; }
}

/* ============================================================
   スクリーンショット(ヒーローの1枚 + 画面紹介の3枚)
   実機で撮った画像。文字が潰れないよう、余白と角丸は控えめにする。
   ============================================================ */

.hero-shot {
  margin: 2.75rem 0 0;
  width: 100%;
  max-width: 60rem;
}

.hero-shot img,
.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  /* 投影画面は暗いので、明るい背景から浮かせる */
  box-shadow: 0 2px 6px rgba(34, 48, 62, 0.10), 0 18px 48px rgba(34, 48, 62, 0.16);
  background: #000;
}

.hero-shot figcaption,
.shot-note {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2rem;
  margin-top: 2.25rem;
  align-items: start;
}

.shot-card { margin: 0; }

.shot-card figcaption {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
}

.shot-card figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 1rem;
}

.shot-note {
  margin-top: 1.75rem;
  text-align: center;
}

/* 1枚だけ大きく見せたい行(操作盤)は、狭い画面でも潰さない */
@media (max-width: 46rem) {
  .hero-shot { margin-top: 2rem; }
  .shot-grid { gap: 1.75rem; }
}

/* ===== 使用実績(2026-08-24 追加) ===== */
.usecase {
  margin: 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  max-width: 760px;
  /* 他のブロック(.plan-grid / .faq-list)と同じく中央に置く */
  margin: 0 auto;
}
.usecase img {
  display: block;
  width: 100%;
  height: auto;
  /* ⚠ aspect-ratio で 16:9 に切り抜かない。
     2026-08-24 の写真は 1350x1080(5:4)で、16:9 に cover すると**上下が切れて
     ステージの画面(=MannaCast の出力そのもの)が写らなくなる**。
     img の width/height 属性から比率が決まるので、レイアウトのずれも起きない。 */
  background: rgba(255,255,255,0.05);
}
.usecase figcaption {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.usecase figcaption strong { font-size: 1.05rem; }
.usecase figcaption span { opacity: 0.75; font-size: 0.92rem; line-height: 1.6; }

/* ===== 会社概要(2026-08-24 追加) ===== */
.company-table {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) 1fr;
  gap: 10px 24px;
  max-width: 720px;
  /* 中央寄せ。左に寄せると他の節と揃わない */
  margin: 0 auto;
}
.company-table dt { opacity: 0.65; font-size: 0.92rem; }
.company-table dd { margin: 0; }
@media (max-width: 560px) {
  .company-table { grid-template-columns: 1fr; gap: 2px 0; }
  .company-table dd { margin-bottom: 12px; }
}

/* ===== 代表・顧問(2026-08-24 追加) =====
   ⚠ 上下に積まない。dl の行にすると顧問が代表の下にぶら下がって見えるため、
      同じ大きさの枠を横並びにして、どちらが上ということが無い形にしている。 */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  /* 中央寄せ。左に寄せると他の節と揃わない */
  margin: 0 auto 28px;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.person-role {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.person-name { font-size: 1.15rem; line-height: 1.4; }
.person-latin { font-size: 0.85rem; opacity: 0.65; }
@media (max-width: 560px) {
  /* 縦に積むときも、枠の大きさを揃えて上下関係に見えないようにする */
  .people { grid-template-columns: 1fr; }
}

/* ===== 導入支援キャンペーンの帯(2026-08-24 追加) =====
   ⚠ 既定は hidden。スクリプトが「受付中」を確認できたときだけ出す。
      枠切れ・API不通のときに帯が出たままにならないようにするため。 */
#campaign-bar {
  background: linear-gradient(90deg, rgba(0,242,254,0.14), rgba(0,242,254,0.05));
  border-bottom: 1px solid rgba(0,242,254,0.25);
  padding: 10px 0;
  font-size: 0.92rem;
}
#campaign-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
#campaign-bar strong { white-space: nowrap; }
.campaign-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0,242,254,0.18);
  white-space: nowrap;
}

/* ===== プラン比較(2026-08-25 追加。2026-08-29 から cast の /api/public/pricing を実行時に読む) ===== */
.plan-grid { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); max-width: 60rem; }
.plan-specs { list-style: none; padding: 0; margin: 0.6rem 0 1rem; font-size: 0.85rem; }
.plan-specs li {
  display: flex; justify-content: space-between; gap: 0.6rem;
  padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.plan-specs li span { opacity: 0.6; }
.plan-specs li b { font-weight: 600; text-align: right; }
.plan .btn { width: 100%; text-align: center; }

/* 料金が取れなかったときの一文。**空白のまま消さない**(見込みのお客様がそのまま離れる)。
   古い値へ倒すこともしないので、ここには金額を一切書かない。 */
.plan-unavailable {
  grid-column: 1 / -1;
  margin: 0; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.03);
  font-size: 0.95rem; text-align: center;
}
.plan-unavailable .btn { width: auto; margin: 0 6px; }

/* ===== お問い合わせフォーム(2026-08-25 追加) =====
   ⚠ mailto: をやめた理由: メールソフト未設定の端末では押しても無反応で、
      問い合わせが1件も届かない状態になっていた。 */
.contact-form {
  display: grid; gap: 12px; max-width: 34rem; margin: 0 auto;
  text-align: left;
}
.contact-form label { display: grid; gap: 4px; font-size: 0.9rem; opacity: 0.85; }
.contact-form label span { color: var(--accent, #7f00ff); margin-left: 2px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 9px 11px; font: inherit; font-size: 0.95rem;
  color: var(--ink); background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); border-radius: 8px;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid rgba(0,242,254,0.5); outline-offset: 1px; }
.contact-form textarea { resize: vertical; }
.contact-status { min-height: 1.4em; font-size: 0.9rem; margin: 0; }
.contact-fallback { text-align: center; font-size: 0.85rem; opacity: 0.7; margin-top: 14px; }

/* ===== デモ動画(2026-08-25 追加) ===== */
.demo-video {
  margin: 0 auto;
  max-width: 60rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.demo-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.demo-video figcaption {
  padding: 12px 18px;
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.7;
}

/* 操作盤と「実際に会衆が見る画面」を並べる(2026-08-25 オーナー要望
   「映像を背景にしてテロップが入ってるのは再現できないかな」)。
   操作盤だけでは、スクリーンに何が出るのかが伝わらない。 */
.demo-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 22px;
  max-width: 76rem;
  margin: 0 auto;
}
.demo-pair .demo-video { max-width: none; }
.demo-video figcaption strong {
  display: block;
  opacity: 1;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

/* ============================================================
   Modals
   ============================================================ */

.site-modal {
  border: none;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 0;
  max-width: 500px;
  width: 90%;
  margin: auto;
}
.site-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.site-modal-content {
  padding: 1.5rem 2rem;
}
.site-modal-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--ink);
}
.site-modal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-modal-content li {
  margin-bottom: 0.5rem;
}
.site-modal-actions {
  text-align: right;
  margin-top: 1.5rem;
}

/* ---------- Your translation (項番58) ---------- */
.translations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.8rem;
}
.sample-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: var(--shadow);
}
.alt .sample-card { background: var(--surface-2); }
.sample-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.sample-card p { margin: 0 0 0.8rem; font-size: 0.96rem; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sample-note { color: var(--muted); font-size: 0.88rem; margin: 0.8rem 0 0; }
.steps-vertical { grid-template-columns: 1fr; gap: 0.8rem; }
.steps-vertical .step { padding: 1rem 1.2rem 0.9rem; }
.steps-vertical .step::before { float: left; margin: 0.1rem 0.8rem 0 0; }
.steps-vertical .step h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.csv-heading { font-size: 1.15rem; margin: 2rem 0 0.6rem; }
.table-scroll { overflow-x: auto; }
.csv-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.93rem;
}
.alt .csv-table { background: var(--surface-2); }
.csv-table th, .csv-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.csv-table th { color: var(--ink); font-weight: 700; font-size: 0.88rem; }
.csv-table tr:last-child td { border-bottom: none; }
.csv-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--badge-bg);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .translations-grid { grid-template-columns: 1fr; }
}

/* 🏢 項番66(2026-09-10): 会社ページのメンバー紹介。
   ⚠ 既存の .person(2名を横並びにする枠)とは別物。あちらは名前だけ、こちらは
     写真・肩書き・経歴が入る。**同じ class を使い回すと、片方を直したとき
     もう片方が崩れる**ので分けてある。
   🖼 **写真が無いときは、ダミーも置かない(オーナー指示 2026-09-12)。**
     以前はシルエットの svg を3人ぶん置いていたが、無いものの代わりを置くと
     「まだ用意できていない」ことだけが目立つ。**枠ごと出さない。**
     ⚠ .member-photo の枠の大きさはここに残してある。写真が入る日にそのまま使うため。
       入れるときは **3人ぶん同時**に入れること(1人だけ写真が在ると、その人だけ特別に見える)。
     ⚠ 番人: tests/unit/site-member-cards.test.cjs */
.members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto 28px;
}
.member {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.member-advisor { background: var(--accent-soft); border-color: var(--accent); }
.member-advisor .member-role { color: var(--accent); opacity: 1; }
@media (max-width: 760px) {
  .members { grid-template-columns: 1fr; max-width: 560px; }
  .member { flex-direction: row; }
}
/* 🖼 いまはどのページも .member-photo を出していない(写真が無いため)。
   写真が入る日にそのまま使えるよう、枠だけ残してある。 */
.member-photo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.member-role {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.member-name { font-size: 1.15rem; line-height: 1.4; }
.member-latin { font-size: 0.85rem; opacity: 0.65; }
.member-title { font-size: 0.9rem; opacity: 0.85; margin: 6px 0 2px; }
.member-body p { margin: 0; font-size: 0.92rem; line-height: 1.7; }
@media (max-width: 560px) {
  /* 狭いときは写真を上に。⚠ 横並びのままだと本文が2〜3文字幅まで潰れる */
  .member { flex-direction: column; align-items: center; text-align: center; }
  .member-body { align-items: center; }
}
