/* Movis — サイト共通スタイル
   アプリと同じ暗い地に、アイコンと同じシアン→マゼンタのアクセント。
   ビルド工程を持たないので、依存は一切なし。 */

:root {
  --bg: #0B0D12;
  --bg-raised: #141821;
  --line: #232937;
  --fg: #E8ECF3;
  --fg-dim: #98A1B3;
  --accent-a: #34D4F2;
  --accent-b: #D959D9;
  --radius: 14px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
               "Segoe UI", Roboto, sans-serif;
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.01em;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダ ---------- */
.site-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .mark { width: 30px; height: 30px; flex: none; }
.site-header .name { font-weight: 700; letter-spacing: 0.02em; font-size: 17px; color: var(--fg); }
.site-header nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.site-header nav a { color: var(--fg-dim); }
.site-header nav a:hover { color: var(--fg); text-decoration: none; }

/* ---------- 言語切替 ---------- */
.lang-toggle {
  margin-left: 12px; padding: 3px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--fg-dim);
  font: inherit; font-size: 13px; cursor: pointer;
}
.lang-toggle:hover { color: var(--fg); border-color: var(--fg-dim); }
/* JS が動くまでは日本語だけ出す。JS 無効なら両方出る（読めなくはない） */
html.js [data-lang]      { display: none; }
html.js[lang="ja"] [data-lang="ja"] { display: revert; }
html.js[lang="en"] [data-lang="en"] { display: revert; }

/* ---------- ヒーロー ---------- */
.hero { padding: 68px 0 56px; text-align: center; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 6.2vw, 46px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.hero p.lead {
  margin: 0 auto 30px; max-width: 30em;
  color: var(--fg-dim); font-size: clamp(15px, 3.6vw, 18px);
}

/* 残像の図。アイコンと同じ言語で「古いコマほど小さく薄い」を見せる */
.trail-figure {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(6px, 2vw, 14px);
  height: 132px; margin: 0 0 34px;
}
.trail-figure span {
  display: block; border-radius: 30%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}
.trail-figure span:nth-child(1) { width: 18px; height: 18px; opacity: .16; }
.trail-figure span:nth-child(2) { width: 28px; height: 28px; opacity: .28; }
.trail-figure span:nth-child(3) { width: 42px; height: 42px; opacity: .44; }
.trail-figure span:nth-child(4) { width: 60px; height: 60px; opacity: .64; }
.trail-figure span:nth-child(5) {
  width: 84px; height: 84px; opacity: 1;
  box-shadow: 0 0 34px rgba(217, 89, 217, .45);
}

.badge {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #08121A; font-weight: 700; font-size: 15px;
}
.badge.disabled { background: var(--bg-raised); color: var(--fg-dim); cursor: default; border: 1px solid var(--line); }
.note { margin-top: 12px; color: var(--fg-dim); font-size: 13px; }

/* ---------- 機能 ---------- */
.features { display: grid; gap: 14px; padding: 8px 0 56px; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--fg-dim); font-size: 14.5px; line-height: 1.75; }

/* ---------- 本文ページ ---------- */
.doc { padding: 44px 0 8px; }
.doc h1 { font-size: clamp(24px, 5vw, 32px); margin: 0 0 6px; }
.doc .updated { color: var(--fg-dim); font-size: 13.5px; margin: 0 0 34px; }
.doc h2 {
  font-size: 18px; margin: 40px 0 12px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.doc h3 { font-size: 15.5px; margin: 26px 0 8px; color: var(--fg); }
.doc p, .doc li { color: #C7CEDB; font-size: 15px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--fg); }

.callout {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-left: 3px solid var(--accent-a);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 22px 0;
}
.callout p { margin: 0; }

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--fg); font-weight: 600; white-space: nowrap; }
td { color: #C7CEDB; }
.table-scroll { overflow-x: auto; }

.contact-card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 24px 0;
}
.contact-card .mail {
  display: inline-block; margin-top: 10px;
  font-size: clamp(16px, 4vw, 20px); font-weight: 600; word-break: break-all;
}

details {
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
details summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "＋ "; color: var(--accent-a); }
details[open] summary::before { content: "− "; }
details p { margin: 10px 0 0; }

/* ---------- フッタ ---------- */
.site-footer {
  margin-top: 64px; padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--fg-dim); font-size: 13.5px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.site-footer nav a { color: var(--fg-dim); }

/* ---------- 小物（CSP で style 属性が使えないのでクラスにする） ---------- */
.tight { padding-top: 0; }
.byline { margin-top: 14px; color: var(--fg-dim); font-size: 14px; }
.contact-card p.after-mail { margin-top: 16px; }
.contact-card ul.last { margin-bottom: 0; }

/* ---------- お問い合わせフォーム ---------- */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; margin-bottom: 6px;
  font-size: 14px; font-weight: 600; color: var(--fg);
}
.form-field .hint { font-weight: 400; color: var(--fg-dim); font-size: 13px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 11px 13px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; line-height: 1.6;
}
.form-field textarea { min-height: 170px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--accent-a);
  box-shadow: 0 0 0 3px rgba(52, 212, 242, .15);
}

/* ハニーポット。人間には見えず、読み上げにも乗せない。
   display:none だと埋めない bot がいるので、画面外へ逃がす。 */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.form-submit {
  padding: 12px 28px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #08121A; font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer;
}
.form-submit:disabled { opacity: .5; cursor: default; }

.form-status { margin-top: 14px; font-size: 14.5px; min-height: 1.6em; }
.form-status.ok { color: var(--accent-a); }
.form-status.ng { color: #FF8A8A; }

.form-note { color: var(--fg-dim); font-size: 13px; margin-top: 10px; }
