/* purplebeacs.com — 1 枚だけの CSS。フレームワーク不使用。
   色・余白・幅の値は :root にだけ書く（指示書 §5: 紫＋墨色＋オフホワイト＋補助色 1 色）。 */

:root {
  color-scheme: light;
  --purple: #6f42c1;        /* コーポレートと同じ紫（web/static/app.css の --primary） */
  --purple-dark: #5e37a6;
  --purple-soft: #efe9f9;   /* 淡い紫: 帯・バッジ・現在地 */
  --purple-ring: rgba(111, 66, 193, .35);
  --ink: #1f2733;           /* 墨色: 本文 */
  --muted: #5b6470;         /* 白地・オフホワイト地で 5.6:1 */
  --bg: #faf9f7;            /* オフホワイト */
  --bg-alt: #ffffff;
  --line: #e4e7ec;
  --flow: #0e7c86;          /* 補助色: 図中の「データの流れ」だけに使う */
  --flow-soft: #e3f3f4;
  --todo-bg: #fff3bf; --todo-fg: #5c4400;     /* [[要記入]] の印。公開前に 0 にする */
  --check-bg: #ffe0cc; --check-fg: #7a2e00;   /* [[要確認]] の印 */
  --radius: 10px;
  --wrap: 800px;            /* 本文幅 720〜800px */
  --wrap-wide: 1080px;      /* LP のカード列・ヘッダー */
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--ink);
  background: var(--bg); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--purple-ring); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; margin-top: 2.2em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Consolas", monospace; font-size: .92em; background: #f3f1f8; padding: .05em .35em; border-radius: 4px; }
small { font-size: .875em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: var(--wrap-wide); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.note { font-size: .9rem; color: var(--muted); }
.lead { font-size: 1.1rem; }
/* サイト共通の主張。「誰かが気づかないと届かない。だから、売上になる前の会話をデータにする。」
   ⚠ 文言は global.md で固定。1 ページに 1 回だけ置く（繰り返すと効かなくなる） */
.claim { font-size: 1.2rem; font-weight: 700; line-height: 1.75; margin: 1.5em 0 .8em;
  padding-left: .9em; border-left: 3px solid var(--purple); }
.fine { font-size: .875rem; color: var(--muted); }

/* ---- ヘッダー */
.site-header { background: var(--bg-alt); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 10px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
/* マークは名刺の裏面の pb を紫地で囲んだもの（assets/logo-mark.svg。favicon も同じ） */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; margin-right: auto; letter-spacing: -.01em; }
.brand-name span { color: var(--purple); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.nav-toggle {
  order: 3; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45em .7em;
  font: inherit; font-size: .9rem; color: var(--ink); display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
}
.nav-toggle-bar { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; display: inline-block; }
.nav { flex-basis: 100%; order: 4; }
.nav-list { list-style: none; margin: 0; padding: 0; display: none; flex-direction: column; gap: 2px; padding: 6px 0 10px; }
.nav-list.is-open { display: flex; }
.nav-list a { display: block; padding: .55em .6em; color: var(--ink); text-decoration: none; border-radius: 6px; font-weight: 700; }
.nav-list a:hover { background: var(--purple-soft); }
.nav-login a { font-weight: 400; color: var(--muted); }
.btn-header { order: 2; padding: .5em .9em; font-size: .9rem; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { flex-basis: auto; order: 0; }
  .nav-list { display: flex; flex-direction: row; gap: 2px; padding: 0; }
  .nav-login { margin-left: 8px; }
  .btn-header { order: 0; margin-left: 8px; }
}

/* ---- ボタン（全ページ同じ見た目・同じ文言） */
.btn {
  display: inline-block; padding: .7em 1.3em; border: 1.5px solid var(--purple); border-radius: 8px;
  color: var(--purple); background: #fff; text-decoration: none; font: inherit; font-weight: 700; line-height: 1.3;
  text-align: center; cursor: pointer;
}
.btn:hover { background: var(--purple-soft); color: var(--purple-dark); }
.btn-primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .cta-row .btn { flex: 0 1 auto; } }

/* ---- セクション（LP は帯を交互に） */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-top: 0; font-size: 1.6rem; }
.section-title { margin-bottom: 1.2em; }
.more { margin-top: 1.2em; }
.page-head { padding-top: 44px; padding-bottom: 4px; }
.page-head h1 { margin-bottom: .4em; }
.page-body { padding-bottom: 40px; }

/* ---- ファーストビュー */
.hero { padding: 44px 0 36px; }
.hero-grid { display: grid; gap: 28px; }
/* h1 は製品のテーマ（2 文）。訴求点 .hero-point を紫で続ける。テーマが主、訴求点が従の寸法 */
.hero h1 { font-size: 1.45rem; line-height: 1.5; margin-bottom: .5em; } /* 375px で「誰かが気づかないと届かない。」が 1 行に収まる寸法 */
.hero-point { font-size: 1.25rem; font-weight: 700; color: var(--purple-dark); margin: 0 0 .7em; } /* 375px で「全店舗の接客が、毎日見えている。」（16 字）が 1 行に収まる寸法 */
.eyebrow { font-size: .9rem; font-weight: 700; color: var(--purple-dark); margin: 0 0 .8em; letter-spacing: .02em; }
.hero .lead { font-size: 1.05rem; }
.hero-examples-label { font-size: .8rem; color: var(--muted); margin: 0 0 .2em; }
.hero-examples { list-style: none; margin: 0 0 1.2em; padding: 0; font-size: .95rem; }
.hero-examples li { position: relative; padding-left: 1.1em; margin: .15em 0; }
.hero-examples li::before { content: "・"; position: absolute; left: 0; color: var(--purple); }
.video-slot {
  aspect-ratio: 16 / 9; background: #1f2733; color: #fff; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: .95rem;
}
.video-slot mark.todo { display: inline-block; margin-top: .5em; }
.video-slot iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 60px; }
  /* 文の列を広く、画像を狭く（1.1fr → 1.6fr）。テーマの 2 文目「だから、売上になる前の会話をデータにする。」
     （21 字）を 1 行に収めるため。h1 の寸法はこの幅帯では基本の 1.45rem のまま（900px で文の列 ≈ 517px、21 字 × 23.2px = 487px） */
  .hero-grid { grid-template-columns: 1.6fr 1fr; align-items: center; }
  .hero-point { font-size: 1.55rem; } /* B 案（21 字）が 1 行に収まる上限 */
  .br-sp { display: none; }           /* 狭い幅だけの改行を消す */
}

/* ---- カード */
.cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin: 0 0 .5em; font-size: 1.1rem; }
.card p { margin: 0; }
.card .card-more { margin-top: .8em; }
.card-tag { display: inline-block; font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 .6em; margin-bottom: .6em; }
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---- 3 ステップ（LP） */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  border-radius: 50%; background: var(--purple); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.step h3 { margin: .2em 0 .3em; font-size: 1.1rem; }
.step p { margin: 0 0 .4em; font-size: .95rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
/* 本文幅（800px）のページでは 4 ステップを 2 列×2 段にする（4 列だと 1 列が狭い） */
@media (min-width: 720px) { .steps.steps-pairs { grid-template-columns: repeat(2, 1fr); } }

/* ---- 表（横に長いものは表だけがスクロールする） */
.table-wrap { overflow-x: auto; margin: 1.2em 0; -webkit-overflow-scrolling: touch; }
/* 列が多い表は、狭い画面で列が潰れるより枠内で横スクロールさせる（build.py が列数に応じて .mid / .wide を付ける） */
.table-wrap.mid table { min-width: 480px; }
.table-wrap.wide table { min-width: 560px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--bg-alt); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: #f3f1f8; font-weight: 700; }
td:first-child, th:first-child { min-width: 6em; } /* 1 列目が 1 文字幅まで縮まないように */
td.num, th.num { text-align: right; white-space: nowrap; }
/* body の overflow-wrap: anywhere が英単語を語中で折るので、折りたくない語に付ける（例: Webhook） */
td.nw, th.nw { white-space: nowrap; }

/* ---- 「提供予定」バッジ・要記入の印 */
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; color: var(--purple-dark); background: var(--purple-soft);
  border: 1px solid #d9cdf0; border-radius: 999px; padding: .1em .7em; vertical-align: middle; margin-left: .4em; white-space: nowrap;
}
mark.todo { background: var(--todo-bg); color: var(--todo-fg); padding: 0 .35em; border-radius: 4px; font-size: .9em; font-weight: 700; }
mark.todo-check { background: var(--check-bg); color: var(--check-fg); }
mark.todo-legal { background: #e6e0f5; color: #3b2a6b; }   /* [[法務確認中]]: 新井先生のレビュー待ち */

/* ---- 図（横長は 720px 以上、縦長はスマホ） */
.shots { display: grid; gap: 20px; margin: 1.5em 0; }
@media (min-width: 760px) { .shots { grid-template-columns: 1fr 1fr; } }
/* 中身を読ませたい画面は横幅いっぱいに。2 列だと 1280px の画面が 380px に縮む */
.shots .shot-wide { grid-column: 1 / -1; }
/* 本文幅（800px）のページでは、画面の写真だけ本文より広く出す（最大 1040px。字が小さくならないように。2026-10-28） */
@media (min-width: 900px) {
  .page-body .shots { width: min(1040px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
}
.shot { margin: 0; }
/* ヒーローの 1 枚。右の列いっぱいに出す（動画の枠と同じ位置） */
.hero-shot img { box-shadow: 0 2px 14px rgba(31, 39, 51, .08); }
/* 文の列が 640px 以上になる幅で h1 を大きくする。2 文目 21 字 × 28.8px = 605px が 1 行に収まる */
@media (min-width: 1100px) { .hero h1 { font-size: 1.8rem; } }
.shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
}
.shot figcaption { font-size: .875rem; color: var(--muted); margin-top: .5em; }

.diagram { margin: 1.5em 0; }
.diagram svg { width: 100%; height: auto; display: block; font-family: var(--font); }
/* ⚠ `.diagram svg` より強くしておく（同じ display を争うため） */
.diagram .diagram-h { display: none; }
.diagram .diagram-v { display: block; max-width: 420px; margin-left: auto; margin-right: auto; }
@media (min-width: 720px) { .diagram .diagram-h { display: block; } .diagram .diagram-v { display: none; } }
.svg-box { fill: #fff; stroke: var(--purple); stroke-width: 2; }
.svg-box-title { font-size: 17px; font-weight: 700; fill: var(--ink); }
.svg-text { font-size: 15px; fill: var(--ink); }
.svg-small { font-size: 12px; fill: var(--muted); }
.svg-flow { stroke: var(--flow); stroke-width: 3; fill: none; }
.svg-flow-text { font-size: 13px; fill: var(--flow); font-weight: 700; }
.svg-todo { fill: var(--todo-fg); font-size: 12px; font-weight: 700; }
.svg-off { fill: #f3f4f6; stroke: #9aa1ab; stroke-width: 1.5; stroke-dasharray: 6 4; }
.svg-off-text { font-size: 13px; fill: #4b535e; font-weight: 700; }
.svg-badge { fill: var(--purple-soft); stroke: #d9cdf0; }
.svg-badge-text { font-size: 11px; font-weight: 700; fill: var(--purple-dark); }
.svg-band-a { fill: var(--purple-soft); }
.svg-band-b { fill: var(--flow-soft); }
.svg-step { fill: var(--purple); }
.svg-step-no { fill: #fff; font-size: 15px; font-weight: 700; }
.svg-step-name { font-size: 13px; font-weight: 700; fill: var(--ink); }
.svg-cell { font-size: 12px; fill: var(--ink); }
.svg-line { stroke: #d9cdf0; stroke-width: 3; }

/* ---- 機能（何ができる／本部に何が変わる／制約） */
.feature { padding: 28px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature h2 { margin-top: 0; }
.feature-grid { display: grid; gap: 18px; }
.feature-grid h3 { margin: 0 0 .4em; font-size: .95rem; color: var(--purple-dark); }
.feature-grid p { margin: 0; }
.feature-grid ul { margin: 0; padding-left: 1.2em; }
.feature-grid li { margin: .3em 0; }
.video-slot-sm { aspect-ratio: 16 / 9; max-width: 360px; background: #eceaf1; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: .85rem; color: var(--muted); margin-top: 1em; }
@media (min-width: 800px) { .feature-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---- Markdown から組んだ記事（security / flow / faq / terms / cases / docs / events） */
.article { padding: 40px 20px 56px; }
.article h1 { font-size: 1.8rem; }
.article h2 { padding-bottom: .3em; border-bottom: 2px solid var(--purple-soft); }
.article h3.q { font-size: 1.05rem; margin-top: 1.8em; }
.article .answer { border-left: 3px solid var(--purple-soft); padding-left: 1em; }
.article ul, .article ol { padding-left: 1.4em; }
.article .cards, .article .steps { padding-left: 0; } /* md のページに差し込んだカード・手順は字下げしない */
.article li { margin: .3em 0; }
.article-doc ol > li { margin: .7em 0; }
.article pre { background: #f3f1f8; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.article pre code { background: none; padding: 0; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article blockquote { margin: 1em 0; padding: .5em 1em; border-left: 3px solid var(--line); color: var(--muted); }

/* ---- フォーム */
.form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; margin: 1.5em 0; }
.field { margin-bottom: 1.1em; }
.field label { display: block; font-weight: 700; margin-bottom: .3em; }
.req { color: #b42318; font-size: .85em; margin-left: .3em; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .6em .7em; border: 1px solid #c9ced6; border-radius: 8px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 6em; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); outline: 3px solid var(--purple-ring); }

.field-check { display: flex; gap: .6em; align-items: flex-start; }
.field-check input { width: auto; margin-top: .45em; }
.field-check label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { background: var(--check-bg); color: var(--check-fg); padding: .7em 1em; border-radius: 8px; margin-top: 1em; }
.form-note { font-size: .85rem; color: var(--muted); }
.field-checks { border: 0; padding: 0; min-width: 0; }
.field-checks legend { font-weight: 700; margin-bottom: .3em; padding: 0; }
.field-checks label { display: flex; gap: .55em; align-items: center; font-weight: 400; margin: .35em 0; cursor: pointer; }
.field-checks input { width: auto; margin: 0; }
.btn-block { width: 100%; }
/* 導入のご相談: 左に説明、右にすぐフォーム（狭い画面では縦に積む） */
.contact-layout { display: grid; gap: 8px 48px; padding-top: 32px; }
.contact-intro h1 { margin-top: 0; }
.contact-form { margin-top: 0; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 5fr 6fr; align-items: start; } }
@media (min-width: 720px) { .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; } .form-grid .field-full { grid-column: 1 / -1; } }

/* ---- 資料一覧 */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { padding: .7em 0; border-bottom: 1px solid var(--line); }
.doc-list strong { display: block; }
.summary-lines { list-style: none; margin: 0 0 1em; padding: 0; }
.summary-lines li { position: relative; padding-left: 1.6em; margin: .5em 0; }
.summary-lines li::before { content: "✓"; position: absolute; left: .2em; color: var(--flow); font-weight: 700; }

/* ---- フッター・同意バー */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 20px; font-size: .92rem; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand .brand { font-size: 1.2rem; margin: 0 0 .6em; display: flex; width: fit-content; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: .35em 0; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 24px; color: var(--muted); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media print {
  .site-header, .site-footer, .cta-row, .btn { display: none !important; }
  body { background: #fff; }
}
