/* 公開サイトのスタイル（移設元: PoC-2 と PoC-11 の版 B）。CSS は 1 本にまとめる（PoC 発見事項 7: 3 本に分けると LCP が約 150 ms 延びる）。
色の役割（BRAND-4・S-12。確定。依頼者が論点 2 で役割分けを選んだ。D-2026-11-22-2）: 色は :root の変数だけで定義し、規則は var() で参照する（TASK-44-1）。
--brand（#765AFF）は図形・ロゴ・大きな見出し・フォーカスの輪・見出しの帯だけ。文字とボタンの地は --brand-text（#5940CC。hover は --brand-text-hover の #4A32B8）か墨。背景は --white と --tint だけ（ボタン地の上の白文字も --white）。装飾専用の淡い紫（#A995FF）は使わない。
動きは版 B（BRAND-8・BRAND-9。確定。依頼者が論点 1 で版 B を選んだ。D-2026-11-22-2）。 */
:root {
  --brand: #765AFF;
  --brand-text: #5940CC;
  --brand-text-hover: #4A32B8;
  --fig-1: var(--brand);
  --fig-2: var(--brand-text);
  --ink: #1F1B2E;
  --muted: #55506A;
  --white: #FFFFFF;
  --tint: #F6F4FF;
  --line: #D9D4F2;
  /* BRAND-11: 既定の書体（システムフォント）。切り替えの手順は docs/ops/webfont.md。固定する試験は font_stack.rs */
  --font: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.8; font-size: 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-text); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -64px; background: var(--white); padding: 12px 16px; z-index: 20; }
.skip:focus { top: 8px; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--header-h); padding: 8px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.brand img { display: block; }
/* ロゴの小さい表示（BRAND-6・NAV-5。確定。依頼者が論点 4 の推奨を選んだ。D-2026-11-22-2。反転版・単色版・余白・最小サイズの提供は BRAND-13 の提供待ちで、提供を受けたら BRAND-13・BRAND-6 に反映する（TASK-146）。提供ロゴの実物での確認は残っており、行き先は brand/README.md の表）:
    (1) 横組みロゴは高さ 48 px 未満にしない。マークだけにする幅は、NAV-5 で確定した 639 CSS px 以下（639.5 などの小数の幅を含め、これを超える幅は横組み）。依頼者が選んだ推奨の「640 px 未満」とは、639 と 640 の間の小数の幅の扱いだけが違い、spec が確定の値として 639 CSS px 以下に定めた。フッターは高さ 96 px。ロゴの形・色は変えない
    (2) ロゴを置く面は --white・--tint だけ（.site-header は白、.site-footer・.hero は body の白を引き継ぐ）
    (3) 濃い面（.btn の地・--ink・--brand*）と暗色の配色（暗色向けのメディアクエリ）は、BRAND-13 の反転版の提供と色の組の計算が済むまで、ロゴの面に持たない */
.brand img.logo-full { height: 48px; width: auto; }
.brand img.logo-mark { display: none; height: 40px; width: 40px; }
@media (max-width: 639px) {
  .brand img.logo-full { display: none; }
  .brand img.logo-mark { display: block; }
}
.foot-logo-wrap { margin: 0 0 8px; }
.foot-logo { height: 96px; width: auto; max-width: 100%; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 4px; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--ink); font-size: 0.9rem; }
.site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 20px; border-radius: 8px; background: var(--brand-text); color: var(--white); text-decoration: none; font-weight: 700; font-size: 0.9rem; border: 2px solid var(--brand-text); }
.btn.ghost { background: var(--white); color: var(--brand-text); margin-left: 8px; }
.btn:hover { background: var(--brand-text-hover); border-color: var(--brand-text-hover); }
.btn.ghost:hover { background: var(--tint); color: var(--brand-text); border-color: var(--brand-text); }

main { max-width: 880px; margin: 0 auto; padding: 24px 16px 48px; }
main h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.35; margin: 24px 0 16px; color: var(--ink); }
main h2 { font-size: 1.4rem; line-height: 1.4; margin: 40px 0 12px; padding-left: 12px; border-left: 6px solid var(--brand); }
main h3 { font-size: 1.1rem; margin: 0 0 4px; }
.hero { padding: 24px 0 8px; }
.hero h1 { color: var(--brand); }
.hero-mark { display: block; width: 96px; height: 96px; margin-bottom: 8px; }
.cards { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards li { background: var(--tint); border-radius: 12px; padding: 16px; }
.cards p { margin: 0; }
.band { margin-top: 48px; padding: 24px 20px; background: var(--tint); border-radius: 16px; }
.band h2 { margin-top: 0; }
details { border-bottom: 1px solid var(--line); padding: 8px 0; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.profile { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.profile dt { font-weight: 700; color: var(--muted); }
.profile dd { margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 16px 32px; text-align: center; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.site-footer p { margin: 4px 0; }
/* NAV-6: 本文中で段落・定義の単独で置くリンク（class="solo-link"。:only-child は文字を数えないため明示する）（会社紹介への導線・メールアドレス・よくある質問の回答末尾の相談へのリンク）も押せる範囲を 44 px 四方以上にする */
main a.solo-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-footer .foot-mail a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-name { font-weight: 700; color: var(--ink); }
.small { font-size: 0.85rem; }

@media (max-width: 480px) {
  :root { --header-h: 96px; }
  .site-header { flex-wrap: wrap; }
  .site-nav a:not(.btn) { padding: 0 8px; font-size: 0.85rem; }
  .btn { padding: 0 14px; }
  .profile { grid-template-columns: 1fr; gap: 0; }
  .profile dd { margin-bottom: 12px; }
}

/* 3 場面（BRAND-7）: 静止図版が正本。動きは下の版 B だけ */
.scenes-sec h2 { margin-top: 48px; }
.scenes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* SVC-3・TASK-19-3: 支援内容の 4 段の流れを、本文の幅（848px）で 1 行に並べて左から右へ読めるようにする。色・動きは足さない */
.flow { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.scenes li { background: var(--tint); border-radius: 12px; padding: 16px; }
.scenes figure { margin: 0; }
.scenes figcaption p { margin: 0; }
.scenes h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--ink); }
.scenes .num { display: block; font-size: 1.75rem; line-height: 1.2; font-weight: 700; color: var(--brand); }
.fig { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto 12px; overflow: hidden; }
.fig .ring { fill: none; stroke: var(--fig-1); stroke-width: 2; }
.fig .core { fill: var(--fig-2); }
.fig .dot.a { fill: var(--fig-1); }
.fig .dot.b { fill: var(--fig-2); }
.fig .blk { fill: var(--fig-1); }
.fig .blk.alt { fill: var(--fig-2); }
.fig.f3 .ring { stroke-width: 3; }
.fig * { transform-box: view-box; transform-origin: 80px 60px; }

/* 版 B（BRAND-8・BRAND-9）: 常時ループなし。3 場面の図だけがスクロール位置に結びつけて動く（CSS のみ・JS なし・transform だけ）。
文字・ロゴは動かさない。動きを減らす設定、または scroll-driven animations を持たないブラウザでは静止図版が出る。
TASK-46-1: 動く部品は 10 個（01 が 4、02 が 3、03 が 3）。共通の規則を :where で詳細度 0 にしているのは、
個別の規則の範囲の指定（段階のずらし）を効かせるため。静的な点検は tests/scene_motion.rs
TASK-46-2: 時間で進む動き（infinite・duration・delay・transition）は置かない。点検は同ファイルの check_auto_motion
TASK-46-3: 動きを減らす設定で getAnimations() が 0 件であることは make motion（3 エンジンの実測）で確かめる
TASK-46-4: 停止ボタンの受け口（BRAND-10）は取り下げ済みで、停止の効果の宣言も置かない */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .scenes li { view-timeline: --scene block; }
    :where(.scenes li .fig *) { animation-timeline: --scene; animation-timing-function: ease-out; animation-fill-mode: both; animation-range: entry 5% cover 45%; }
    .f1 .dots { animation-name: converge; }
    .f1 .ring { animation-name: ring-in; }
    .f2 .b1 { animation-name: build; }
    .f2 .b2 { animation-name: build; animation-range: entry 15% cover 50%; }
    .f2 .b3 { animation-name: build; animation-range: entry 25% cover 55%; }
    .f3 .r1 { animation-name: spread; }
    .f3 .r2 { animation-name: spread; animation-range: entry 15% cover 50%; }
    .f3 .r3 { animation-name: spread; animation-range: entry 25% cover 55%; }
    @keyframes converge { from { transform: scale(1.4) rotate(-50deg); } to { transform: none; } }
    @keyframes ring-in { from { transform: scale(0.8); } to { transform: none; } }
    @keyframes build { from { transform: translateY(-18px); } to { transform: none; } }
    @keyframes spread { from { transform: scale(0.5); } to { transform: none; } }
  }
}
/* TASK-25-1・CONTACT-1: 相談フォームの最小の体裁。入力欄の枠は非文字 3:1 のため --muted を使う */
.contact-form .field { margin: 0 0 20px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 700; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { display: block; box-sizing: border-box; width: 100%; max-width: 40rem; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--muted); border-radius: 6px; }
.contact-form textarea { min-height: 12em; }
.contact-form label.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.contact-form label.check input { width: 20px; height: 20px; margin: 0; }
/* QUAL-6・TASK-51-3: 同意の文の中のリンク（プライバシーポリシー）も本体で押せる範囲を 44 px 以上にする */
.contact-form label.check a { display: inline-flex; align-items: center; min-height: 44px; }
/* QUAL-6・TASK-51-3: 受け口の誤りの画面（role=alert）の一覧のリンクも 44 px 以上にする。同じ site.css を読む */
main [role="alert"] a { display: inline-flex; align-items: center; min-height: 44px; }
button.btn { font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
