/* Click ID の画面の見た目（台帳が /assets/clickid.css で配る）。
   決まりは「ClickID画面デザイン仕様」（デザインのフォルダ。v0.1。2026-11-29 藍を正本に採用）と、
   ClickGo デザインガイド（アプリ共通）の 2-4・2-5（2026-11-29 案2「陽だまりエアリー ＆ 藍グラス」）。
   値は見本 ClickID画面_見本_2026-10-22/clickid.css（11/29 案2 の改訂）に合わせた（2026-11-30 利用者「ClickGo デザインをBrushupしてます。それにあわせたデザインに適用して」）。
   色は基本の色（濃藍・朱・藍の灰・陽だまり）とその混色だけ（成功＝濃藍、注意・危険＝朱。緑・黄・青を意味の色に足さない）。
   例外はガイド 2-2 の表のもの（絵の補助の色・完了のチェックの深若竹・V1 タイルの5色・レベルの金属の色）。
   面・地・カード・線・主ボタンは *-grad の変数で塗る。文字・アイコン・選んでいる所の輪・小さな点の縁は単色。
   角丸の部品は「面（--face）と線（--line）と指を乗せた段（--over）」の2枚重ね（仕様 3章）。状態は変数だけを変える（線を透明にしているので border-color は効かない）。
   HEX はここの変数だけに書く。暗い表示は端末の設定に合わせる（2026-10-22 ユーザー決定）。マイアカウントで選んだときは data-theme。 */
:root {
  /* 基本の色（藍。2026-11-29 正本）。--paper は地の暖白（案2「陽だまりエアリー」）、基準の陽だまりは --hidamari */
  --shu: #de4a26; --ai: #0c172c; --gray: #4f5d75; --paper: #fbf8f1; --hidamari: #fff9ea;
  --bg: var(--paper); --surface: #ffffff; --surface-2: #f3ede0; --surface-3: #e8e0cf;
  --border: rgba(12, 23, 44, .09); --border-strong: rgba(12, 23, 44, .18);
  --text: var(--ai); --text-dim: var(--gray); --text-faint: #8d93a0; /* faint は矢印・線など形だけ。文字には使わない */
  --accent: var(--shu); --accent-hover: #c6401f; --on-accent: #ffffff;
  /* 主ボタンの面の基準は濃い朱（白い字 5.1:1。2026-10-22 ユーザー決定「濃い朱にする」）。塗るときは --btn-grad */
  --btn: #c83e1b; --btn-primary: #c6401f; --btn-primary-hover: #a8391c;
  --shu-tint: #fcedea; --shu-tint-strong: #f5d0c6; --shu-text: #ac4025;
  --danger: #c6401f; --danger-text: #8a2c10;
  --input: #ffffff; --scrim: rgb(12 23 44 / .45);
  /* 状態の段は半透明にして、下の面を透かす（ガイド 2-5） */
  --hover: rgb(12 23 44 / .04); --press: rgb(0 0 0 / .08); --shadow: rgb(12 23 44 / .08); --shadow-strong: rgb(12 23 44 / .16);
  /* --ink は顔の丸・状態の点・知らせの面（暗い表示で入れ替える）。--ink-panel は入口などの藍の面の基準（塗るときは --rail-grad） */
  --ink: var(--ai); --on-ink: #ffffff; --ink-panel: var(--ai); --rail-text: #d6e3f2;
  --focus: 0 0 0 3px rgb(222 74 38 / .25); --focus-in: inset 0 0 0 3px rgb(222 74 38 / .35); /* -in は枠で切れる所（カードの中の札・行）の内側の輪 */
  /* 入口の面の斜めの縁の線（案2：シャープな朱のエッジ。暗い表示も見本の値） */
  --entry-edge: linear-gradient(180deg, #E85530 0%, #DE4A26 100%); --entry-edge-w: 2px;
  /* 立体感（案2：繊細な影と上辺 1px の光縁） */
  --card-shadow: 0 1px 2px rgba(12, 23, 44, .04), 0 8px 24px -4px rgba(12, 23, 44, .06), inset 0 1px 0 #ffffff;
  --btn-shadow: 0 1px 2px rgba(198, 64, 31, .3), 0 4px 12px rgba(222, 74, 38, .26), inset 0 1px 0 rgba(255, 255, 255, .25);
  /* 左の案内のいまいる所（陽だまりレール＋純白のピル） */
  --rail-active-bg: #ffffff; --rail-active-shadow: 0 1px 3px rgba(12, 23, 44, .09);
  /* 面の塗り（案2：カード・紙面はフラット、大きなブランド面と主ボタンは左上・上端からの指向性のグラデーション） */
  --bg-grad: linear-gradient(180deg, #FBF8F1 0%, #FBF8F1 100%);
  --bg-alt-grad: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
  --bg-panel-grad: linear-gradient(180deg, #F3EDE0 0%, #F3EDE0 100%);
  --surface-3-grad: linear-gradient(180deg, #E8E0CF 0%, #E8E0CF 100%);
  --rail-grad: radial-gradient(90% 75% at 15% 15%, rgba(45, 88, 165, .45) 0%, transparent 65%), linear-gradient(155deg, #132547 0%, #0A1428 60%, #060C18 100%);
  --ink-grad: radial-gradient(90% 75% at 15% 15%, rgba(45, 88, 165, .45) 0%, transparent 65%), linear-gradient(155deg, #132547 0%, #0A1428 60%, #060C18 100%);
  --shu-tint-grad: linear-gradient(180deg, #FCEDEA 0%, #FCEDEA 100%);
  /* 主ボタン：見本の上端 #E85530 では白い字が字の帯で 3.9:1（目安 4.5:1 に届かない）ので、上端を #D24421 に（面のどこでも 4.58:1 以上。2026-11-30） */
  --btn-grad: linear-gradient(180deg, #D24421 0%, #C83E1B 100%);
  --mark-grad: linear-gradient(180deg, #E85530 0%, #DE4A26 100%);
  --mark-on-tint: linear-gradient(180deg, #D24421 0%, #C6401F 100%);
  /* 線（フラットな極細の半透明線） */
  --border-grad: linear-gradient(180deg, rgba(12, 23, 44, .09) 0%, rgba(12, 23, 44, .09) 100%);
  --border-strong-grad: linear-gradient(180deg, rgba(12, 23, 44, .18) 0%, rgba(12, 23, 44, .18) 100%);
  --shu-tint-strong-line: linear-gradient(180deg, #F5D0C6 0%, #F5D0C6 100%);
  --danger-line: linear-gradient(180deg, #C6401F 0%, #C6401F 100%);
  --ink-line: linear-gradient(180deg, var(--ink) 0%, var(--ink) 100%);
  /* 正本② 案V1：ビビッド・ソリッドタイル（主役の大きなカード。ガイド 4-3。5色とその光の影） */
  --v1-koki: linear-gradient(145deg, #213F78 0%, #0C172C 100%); --v1-koki-glow: 0 6px 16px -3px rgba(12, 23, 44, .46), inset 0 1px 0 rgba(255, 255, 255, .34);
  --v1-ai: linear-gradient(145deg, #2575FC 0%, #1350C8 100%); --v1-ai-glow: 0 6px 16px -3px rgba(21, 94, 218, .42), inset 0 1px 0 rgba(255, 255, 255, .35);
  /* 若竹・山吹は白の線画が見やすいよう濃くした（2026-11-30 利用者決定。白との明るさの比が全域 3:1 以上。正本 build_icons.py v2.3 の
     --solid-take・--solid-yama と --shd-take・--shd-yama の値どおり。光の影の色はグラデーションの下の端の色。
     旧：若竹 #12B87F→#098A5C・山吹 #F59E0B→#D97706） */
  --v1-take: linear-gradient(145deg, #0D9E6C 0%, #087850 100%); --v1-take-glow: 0 6px 16px -3px rgba(8, 120, 80, .42), inset 0 1px 0 rgba(255, 255, 255, .34);
  --v1-yama: linear-gradient(145deg, #C97A04 0%, #A66000 100%); --v1-yama-glow: 0 6px 16px -3px rgba(166, 96, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .34);
  --v1-shu: linear-gradient(145deg, #FF552B 0%, #D93812 100%); --v1-shu-glow: 0 6px 16px -3px rgba(228, 63, 25, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  --v1-rim: rgba(255, 255, 255, .24); --on-v1: #ffffff;
  /* 入口の左の面の説明（押さない箇条書き）：半透明の藍ガラス枠＋白の線画（ガイド 4-3 ②の引き算） */
  --glass-bg: rgba(255, 255, 255, .07); --glass-line: rgba(182, 196, 216, .22); --glass-ink: #e8f0fc; --glass-hl: inset 0 1px 0 rgba(255, 255, 255, .12);
  /* アイコン（ピクトグラム v2）の色：主役の朱・完了の深若竹とその上の白（ガイド 4-3 仕上げB。src/icons.ts の印 ic-shu-f など） */
  --ic-shu-base: #ff471a; --ic-shu: var(--ic-shu-base); --ic-ok: #098a5c; --ic-on-ok: #ffffff;
  /* マスコット（クリまる）の座布団（暗い表示で濃藍の輪郭が沈まないように。ガイド 8-1） */
  --mascot-cushion: linear-gradient(180deg, #FBF8F1 0%, #FBF8F1 100%);
  --font-ui: 'Barlow', 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', 'BIZ UDGothic', monospace;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --label-w: 11em; --bar-h: 64px;
  /* 前の名前（引き継ぎ） */
  --bg-alt: var(--surface); --bg-panel: var(--surface-2); --bg-input: var(--input);
  color-scheme: light;
}
/* 暗い表示（案2：藍グラス）。左上からの斜光＋カード上辺 1px のガラスの光。端末の設定と、マイアカウントで選んだとき（data-theme）の2つに同じ値 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #071022; --surface: #0f1c35; --surface-2: #101e38; --surface-3: #1a2c4e;
  --border: rgba(182, 196, 216, .13); --border-strong: rgba(182, 196, 216, .26); --text: #fbf7ec; --text-dim: #b6c4d8; --text-faint: #7f90aa;
  --shu-tint: rgba(222, 74, 38, .16); --shu-tint-strong: rgba(222, 74, 38, .32); --shu-text: #f7ad96; --danger-text: #f7ad96;
  --input: #0d182e; --ink: #fbf7ec; --on-ink: #071022; --ink-panel: #071022; --rail-text: #bfcee3;
  --entry-edge: linear-gradient(180deg, rgba(232, 85, 48, .85) 0%, rgba(222, 74, 38, .65) 100%);
  --hover: rgba(255, 255, 255, .06); --shadow: rgb(0 0 0 / .45); --shadow-strong: rgb(0 0 0 / .52);
  --card-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px -6px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .09);
  --rail-active-bg: rgba(255, 255, 255, .08); --rail-active-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  --bg-grad: radial-gradient(110% 80% at 15% 0%, #13284F 0%, #071022 55%, #050B17 100%);
  --bg-alt-grad: linear-gradient(180deg, #132342 0%, #0D182E 100%);
  --bg-panel-grad: linear-gradient(180deg, #101E38 0%, #101E38 100%);
  --surface-3-grad: linear-gradient(180deg, #1A2C4E 0%, #1A2C4E 100%);
  --ink-grad: linear-gradient(180deg, #FFFFFF 0%, #FBF7EC 100%);
  --shu-tint-grad: linear-gradient(180deg, rgba(222, 74, 38, .16) 0%, rgba(222, 74, 38, .12) 100%);
  --mark-grad: linear-gradient(180deg, #EE6845 0%, #DE4A26 100%);
  --mark-on-tint: linear-gradient(180deg, #EE6845 0%, #DE4A26 100%);
  --border-grad: linear-gradient(180deg, rgba(182, 196, 216, .13) 0%, rgba(182, 196, 216, .13) 100%);
  --border-strong-grad: linear-gradient(180deg, rgba(182, 196, 216, .26) 0%, rgba(182, 196, 216, .26) 100%);
  --shu-tint-strong-line: linear-gradient(180deg, rgba(222, 74, 38, .35) 0%, rgba(222, 74, 38, .35) 100%);
  --ink-line: linear-gradient(180deg, var(--ink) 0%, var(--ink) 100%);
  --ic-ok: #10b981; --ic-on-ok: #071022;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #071022; --surface: #0f1c35; --surface-2: #101e38; --surface-3: #1a2c4e;
  --border: rgba(182, 196, 216, .13); --border-strong: rgba(182, 196, 216, .26); --text: #fbf7ec; --text-dim: #b6c4d8; --text-faint: #7f90aa;
  --shu-tint: rgba(222, 74, 38, .16); --shu-tint-strong: rgba(222, 74, 38, .32); --shu-text: #f7ad96; --danger-text: #f7ad96;
  --input: #0d182e; --ink: #fbf7ec; --on-ink: #071022; --ink-panel: #071022; --rail-text: #bfcee3;
  --entry-edge: linear-gradient(180deg, rgba(232, 85, 48, .85) 0%, rgba(222, 74, 38, .65) 100%);
  --hover: rgba(255, 255, 255, .06); --shadow: rgb(0 0 0 / .45); --shadow-strong: rgb(0 0 0 / .52);
  --card-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px -6px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .09);
  --rail-active-bg: rgba(255, 255, 255, .08); --rail-active-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  --bg-grad: radial-gradient(110% 80% at 15% 0%, #13284F 0%, #071022 55%, #050B17 100%);
  --bg-alt-grad: linear-gradient(180deg, #132342 0%, #0D182E 100%);
  --bg-panel-grad: linear-gradient(180deg, #101E38 0%, #101E38 100%);
  --surface-3-grad: linear-gradient(180deg, #1A2C4E 0%, #1A2C4E 100%);
  --ink-grad: linear-gradient(180deg, #FFFFFF 0%, #FBF7EC 100%);
  --shu-tint-grad: linear-gradient(180deg, rgba(222, 74, 38, .16) 0%, rgba(222, 74, 38, .12) 100%);
  --mark-grad: linear-gradient(180deg, #EE6845 0%, #DE4A26 100%);
  --mark-on-tint: linear-gradient(180deg, #EE6845 0%, #DE4A26 100%);
  --border-grad: linear-gradient(180deg, rgba(182, 196, 216, .13) 0%, rgba(182, 196, 216, .13) 100%);
  --border-strong-grad: linear-gradient(180deg, rgba(182, 196, 216, .26) 0%, rgba(182, 196, 216, .26) 100%);
  --shu-tint-strong-line: linear-gradient(180deg, rgba(222, 74, 38, .35) 0%, rgba(222, 74, 38, .35) 100%);
  --ink-line: linear-gradient(180deg, var(--ink) 0%, var(--ink) 100%);
  --ic-ok: #10b981; --ic-on-ok: #071022;
  color-scheme: dark;
}

/* ── 土台 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-grad); background-attachment: fixed; color: var(--text); font-family: var(--font-ui); font-size: 15px; line-height: 1.75; }
body.compact { font-size: 14px; }
a { color: inherit; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1 { font-size: 26px; line-height: 1.4; font-weight: 700; margin: 4px 0 20px; }
h2 { font-size: 17px; line-height: 1.5; font-weight: 700; margin: 36px 0 12px; }
h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
p { margin: 10px 0; text-wrap: pretty; }
/* 日本語の改行（2026-10-30 見直しの 3）：行の頭に「ー」「っ」などを置かない（strict）。見出し・短い文・札の名前は言葉の区切りで折り（auto-phrase。
   Chrome・Edge・Android。対応していないブラウザでは今までどおり）。長い本文には auto-phrase を付けない（ガイド 3-2 の 11/29 監査③は見出し・カード・説明の文）。
   見出しの行の長さをそろえる指定（text-wrap: balance）は使わない：組織の名前の途中（「あ／おば介護」）で折ることがあった */
body { line-break: strict; }
h1, h2, h3, .err-lead, .card-head h2, .card-head p, .tile b, .tile span, .door-card b, .door-card small, .entry .door-sub, .ill-tile, .ill-core b, .ill-link-end small, .ill-ph-rows b { word-break: auto-phrase; }
code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-panel-grad); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.ic { width: 1.35em; height: 1.35em; flex: none; vertical-align: -.3em; }
/* アイコン（ピクトグラム v2）の色の印。主役の朱・完了の丸（src/icons.ts が付ける） */
.ic .ic-shu-f { fill: var(--ic-shu); }
.ic .ic-shu-s { stroke: var(--ic-shu); }
.ic .ic-ok-f { fill: var(--ic-ok); }
.ic .ic-ok-s { stroke: var(--ic-ok); }
.ic .ic-on-ok-s { stroke: var(--ic-on-ok); }
.dim { color: var(--text-dim); font-size: 13.5px; }
.mono, .num { font-family: var(--font-mono); font-size: .92em; }
.num { text-align: right; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scroll { overflow-x: auto; position: relative; } /* relative：中の読み上げ用の字（.sr。absolute）を、この枠で止める（表が横に長いと、画面全体が横に動いていた。2026-10-30） */
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }
[hidden] { display: none !important; }

/* ── 角丸の部品の面と線（2枚重ね。仕様 3章「角丸の部品」）。--face＝面、--line＝線、--over＝指を乗せた段。
   状態（選んでいる・エラー・危険・押せない）は、この3つの変数を変える。下の各部品の決まりは、大きさ・余白だけを書く。
   :where で強さを 0 にする（選んでいる欄・エラーの欄・選んだ札などの決まりが、必ずこれに勝つように） ── */
:where(.card, .panel, .danger-zone, .door-card, details.menu .pop, .signin-card, .scroll:not(.card .scroll), .note.created, .notice.verified,
.about-doors li, .about-card, .about-svc, .about-chip, .ill-steps li, .ill-done-card, .ill-ph-float, .f .consent,
.choice label, .f .radios label, details.fold > summary, .chips a,
input:not([type="checkbox"], [type="radio"], [type="hidden"]), textarea) {
  --over: transparent; --face: var(--bg-alt-grad); --line: var(--border-grad);
  border: 1px solid transparent;
  background: linear-gradient(var(--over), var(--over)) padding-box, var(--face) padding-box, var(--line) border-box;
}
/* カード・扉・ログインのカードは、繊細な影と上辺 1px の光縁で浮かせる（案2） */
.card, .panel, .door-card, .signin-card, .about-svc, .about-doors li, .ill-steps li { box-shadow: var(--card-shadow); }

/* ── 上の帯 ── */
.appbar { position: sticky; top: 0; z-index: 20; height: var(--bar-h); display: flex; align-items: center; gap: 16px;
  padding: 0 20px; background: var(--bg-alt-grad); border-bottom: 1px solid; border-image: var(--border-grad) 1; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { height: 24px; display: block; }
.brand img.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img.logo-light { display: none; } :root:not([data-theme="light"]) .brand img.logo-dark { display: block; } }
:root[data-theme="dark"] .brand img.logo-light { display: none; }
:root[data-theme="dark"] .brand img.logo-dark { display: block; }
.brand .area { font-size: 16px; font-weight: 500; color: var(--text-dim); padding-left: 14px; border-left: 1px solid; border-image: var(--border-grad) 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .spacer { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim); min-width: 0; }
.who .name { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18em; }
/* 顔の丸：全員同じ面に頭文字。人ごとの色は付けない。本人だけ濃藍の面にして見分ける（ガイド 11-6。2026-11-29 ユーザー決定）。
   本人＝上の帯の顔（.who）・マイアカウントのホームの顔（.hello）・表の自分の行（.me） */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--surface-3-grad); color: var(--text); font-weight: 700; font-size: 14px; line-height: 1; }
.who .avatar, .hello .avatar, .avatar.me { background: var(--ink-grad); color: var(--on-ink); }

/* ── 左の案内（PC：陽だまりレール＋純白のピル＋朱の −9° の帯＋1行。ガイド 2-5 の3・3-2 仕上げC）。スマホでは上の横並びのタブ ── */
.layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - var(--bar-h));
  /* レールの面と右の線は、画面の下まで（列ごと塗る）。案内そのものは上に留める（長い画面でも案内が見えたまま。見本は案内そのものを伸ばしていた） */
  background: var(--border-grad) 263px 0 / 1px 100% no-repeat, var(--bg-panel-grad) 0 0 / 263px 100% no-repeat; }
.sidenav { position: sticky; top: var(--bar-h); align-self: start; padding: 20px 14px; }
.sidenav a { position: relative; display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 14px 0 20px; margin: 3px 0;
  border-radius: 10px; color: var(--text-dim); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.sidenav a:hover { background: var(--hover); color: var(--text); }
.sidenav a.on { background: var(--rail-active-bg); color: var(--text); font-weight: 700; box-shadow: var(--rail-active-shadow); }
.sidenav a.on::before { content: ""; position: absolute; left: 8px; top: 11px; width: 4px; height: 22px; background: var(--mark-grad); transform: skewX(-9deg); border-radius: 1px; }
/* 案内のアイコンは脇役なので朱を光らせない。いまいる所だけ朱（ガイド 4-3 仕上げC） */
.sidenav .ic { width: 22px; height: 22px; color: var(--text-dim); --ic-shu: currentColor; }
.sidenav a span { white-space: nowrap; }
.sidenav a.on .ic { color: var(--text); --ic-shu: var(--ic-shu-base); }
.content { padding: 32px 40px 72px; min-width: 0; width: 100%; max-width: 1120px; }
/* マイアカウントは見本どおり最大920pxで中央に寄せる（2026-11-30 利用者決定「マイアカウントだけ中央」。会社の管理画面・運営のコンソールは表が多いので広いまま左寄せ） */
.content.narrow { max-width: 920px; margin: 0 auto; }
/* 見出しの下の1行の説明は、見出しに寄せて、すぐ下のカードから離す（説明がカードの一部に見えていた。2026-10-30 見直しの 4） */
.content > h1 + p.dim, .page > h1 + p.dim, .content > .page-head + p.dim { margin: -10px 0 24px; }
/* 見出しの右の、その画面全体の操作（仕様 5-3。例：社員の画面の「＋ 招待を作る」。2026-10-30 見直しの 14） */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.page-head h1 { margin: 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page { max-width: 760px; margin: 0 auto; padding: 32px 20px 72px; }
.wide .page { max-width: 1180px; }

/* ── 画面の見出し・戻る道 ── */
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--text-dim); text-decoration: none; margin-bottom: 6px; }
.crumb:hover { color: var(--text); }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 24px; }
.page-head .grow { flex: 1; min-width: 0; }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--text-dim); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rolebar { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); background: var(--bg-panel-grad); border-radius: var(--r-md);
  padding: 10px 14px; margin: -8px 0 20px; }

/* ── まとまり（カード） ── */
.card, .panel { border-radius: var(--r-lg); margin: 0 0 20px; }
.panel { padding: 16px 22px; }
.panel > :first-child, .card-body > :first-child { margin-top: 0; }
.panel > :last-child, .card-body > :last-child { margin-bottom: 0; }
.card { overflow: hidden; }
.card-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px 14px; }
.card-head .grow { flex: 1; min-width: 0; }
.card-head h2 { font-size: 17px; margin: 0; }
.card-head p { margin: 4px 0 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.7; }
.card-body { padding: 4px 24px 22px; }
.card-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid; border-image: var(--border-grad) 1; }
.card-foot .note-s { margin-right: auto; font-size: 12.5px; color: var(--text-dim); }
.card > .scroll, .card > table { border-top: 1px solid; border-image: var(--border-grad) 1; }
/* 取り返しのつかない操作のまとまり：線を朱×陽だまりに、見出しを濃い朱の字に（仕様 6-1） */
.card.danger, .danger-zone { --line: var(--shu-tint-strong-line); }
.card.danger .card-head h2 { color: var(--danger-text); }
.danger-zone { border-radius: var(--r-lg); padding: 14px 22px; margin: 0 0 20px; }
.danger-zone p { margin: 6px 0; }

/* ── 項目名と値（dl.kv・行） ── */
dl.kv { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); gap: 0; margin: 0; }
dl.kv dt { padding-right: 20px; } /* 列の間は dt の右の余白で取る（gap だと区切り線が間で切れる。2026-10-30） */
dl.kv dt, dl.kv dd { padding: 11px 0; border-top: 1px solid; border-image: var(--border-grad) 1; min-width: 0; }
dl.kv dt:first-of-type, dl.kv dt:first-of-type + dd { border-top: 0; }
dl.kv dt { color: var(--text-dim); font-size: 13.5px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.items { margin: 0; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr) auto; align-items: center; column-gap: 20px;
  min-height: 58px; padding: 12px 24px; border-top: 1px solid; border-image: var(--border-grad) 1; color: inherit; text-decoration: none; }
a.item:hover { background: var(--hover); }
.item .k { font-size: 13.5px; color: var(--text-dim); }
.item .v { min-width: 0; overflow-wrap: anywhere; }
.item .v small { display: block; color: var(--text-dim); font-size: 12.5px; }
.item .end { display: flex; align-items: center; gap: 8px; color: var(--text-faint); }

/* ── 入力：項目名の列と入力の列（説明は入力の下にそろえる） ── */
.field { display: grid; grid-template-columns: var(--label-w) minmax(0, 30rem); column-gap: 20px; row-gap: 6px; align-items: start;
  padding: 16px 0; border-top: 1px solid; border-image: var(--border-grad) 1; }
.field:first-child, .fields > .field:first-child { border-top: 0; }
.field > .label { padding-top: 9px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.field > .control { min-width: 0; }
.field .field-static { margin: 0; padding-top: 9px; line-height: 1.5; } /* 変えられない値（生年月日。2026-10-30 見直しの 11） */
/* 隠しの確認の値（csrf）のすぐ後の項目は、いちばん上の項目なので上の線を出さない（招待を作るフォームの上に余分な線があった。2026-10-30 見直しの 14） */
input[type=hidden] + .field { border-top: 0; }
.field .hint { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }
label.field { margin: 0; cursor: default; }
.field .control > .ind select + select { margin-top: 8px; }
.field .control details.ind-other { margin-top: 8px; }
.field .err { display: block; margin: 6px 0 0; font-size: 13px; color: var(--danger-text); font-weight: 500; }
.field.bad input, .field.bad select { --line: var(--danger-line); }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 0 2px; margin-left: calc(var(--label-w) + 20px); }
.inline-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-fields > * { flex: 1 1 8em; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--text); border-radius: var(--r-sm); max-width: 100%; }
:where(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) { --line: var(--border-strong-grad); }
input[type="text"], input[type="email"], input[type="date"], input[type="number"], input[type="tel"], input:not([type]), select { height: 42px; padding: 0 12px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select { width: 100%; }
textarea { padding: 10px 12px; }
/* 選ぶ欄は、矢印の2枚を足して5枚重ね（矢印は形なので単色。仕様 3章「単色のまま」） */
select { --over: transparent; --face: var(--bg-alt-grad); appearance: none; padding-right: 36px; border: 1px solid transparent;
  background: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%) calc(100% - 18px) 50% / 5px 5px no-repeat padding-box,
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%) calc(100% - 13px) 50% / 5px 5px no-repeat padding-box,
    linear-gradient(var(--over), var(--over)) padding-box, var(--face) padding-box, var(--line) border-box; }
/* 選んでいる欄：朱の線と朱 25% の輪（仕様 6-3）。輪は単色 */
input:focus, select:focus, textarea:focus { outline: none; --line: var(--mark-grad); box-shadow: var(--focus); }
input[readonly] { --face: var(--bg-panel-grad); color: var(--text-dim); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; vertical-align: -3px; }
label { margin-right: 12px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { --line: var(--border-strong-grad); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 14px;
  border-radius: var(--r-sm); cursor: pointer; font-size: 14px; }
.choice label:hover { --over: var(--hover); }
/* 選んだ札：朱の線と朱×陽だまりの面、字を少し太く（色と形の両方） */
.choice label:has(input:checked) { --line: var(--mark-on-tint); --face: var(--shu-tint-grad); font-weight: 500; }

/* ── ボタン（主は1つの区切りに1つまで）。印の無い button と .btn は主、.btn-sub は副、.btn-text は文字だけ、.btn-danger は危ない ── */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 18px; margin: 2px 0;
  border-radius: var(--r-sm); border: 1px solid transparent; background: var(--btn-grad) border-box; box-shadow: var(--btn-shadow); color: var(--on-accent);
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; text-decoration: none; white-space: nowrap; vertical-align: middle; }
button:hover, .btn:hover { background: linear-gradient(var(--press), var(--press)) border-box, var(--btn-grad) border-box; }
button .ic, .btn .ic { width: 18px; height: 18px; }
/* 主ボタン（朱の面）の上のアイコンは単色（色の付いた面の上。ガイド 4-5） */
:where(button:not(.btn-sub, .btn-text, .btn-danger), .btn:not(.btn-sub, .btn-text, .btn-danger, .btn-ink)) .ic { --ic-shu: currentColor; } /* :where で強さを 0 に（メニューの中・組織を選ぶ扉は下で朱に戻す） */
.btn-sub, button.btn-sub { --over: transparent; --face: var(--bg-alt-grad); --line: var(--border-strong-grad); color: var(--text); box-shadow: none;
  background: linear-gradient(var(--over), var(--over)) padding-box, var(--face) padding-box, var(--line) border-box; }
.btn-sub:hover, button.btn-sub:hover { --over: var(--hover); }
.btn-text, button.btn-text { background: transparent; color: var(--text); border-color: transparent; box-shadow: none; padding: 0 12px; }
.btn-text:hover, button.btn-text:hover { background: var(--hover); border-color: transparent; }
.btn-danger, button.btn-danger { --over: transparent; --face: var(--bg-alt-grad); --line: var(--danger-line); color: var(--danger-text); box-shadow: none;
  background: linear-gradient(var(--over), var(--over)) padding-box, var(--face) padding-box, var(--line) border-box; }
.btn-danger:hover, button.btn-danger:hover { --face: var(--shu-tint-grad); }
/* 押せない：灰色の面・弱い字・影なし・押せない形の指（仕様 6-4） */
button:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-grad) border-box; color: var(--text-dim); border-color: transparent; box-shadow: none; cursor: not-allowed; }
.btn-sm, button.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.go { min-height: 46px; padding: 0 26px; font-size: 15.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── 状態の印（色と形の両方）。.tag は前からの名前 ── */
.tag, .chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 500; line-height: 1;
  background: var(--bg-panel-grad); color: var(--text); white-space: nowrap; vertical-align: 1px; }
/* 済み・有効＝濃藍の点、止めた・外した＝中が空の丸、注意＝朱の四角（45° 回した点）と朱×陽だまりの面（仕様 3章。点の縁は単色） */
.tag.ok::before, .chip.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-grad); }
.tag.off::before, .chip.off::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--text-dim); }
.tag.warn, .chip.attn { background: var(--shu-tint-grad); color: var(--danger-text); }
.tag.warn::before, .chip.attn::before { content: ""; width: 7px; height: 7px; background: var(--mark-on-tint); transform: rotate(45deg); border-radius: 1px; }
/* 運営者の段階の印（最上位の admin は朱。見分ける印は残す。仕様 5-1） */
.tag.op { background: var(--ink-grad); color: var(--on-ink); font-weight: 700; }
.tag.op.root { background: var(--btn-grad); color: var(--on-accent); }
.req, .opt { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 6px; border-radius: 4px; font-size: 11.5px; font-weight: 500; vertical-align: 1px; }
/* 必須の札の字は --danger-text（--shu-text は明るい表示の淡い面で 4.5:1 に届かない。仕様 3章） */
.req { background: var(--shu-tint-grad); color: var(--danger-text); }
.opt { background: var(--bg-panel-grad); color: var(--text-dim); }
/* レベル（ブロンズ・シルバー・ゴールド）の札：案5「−9° スラッシュ＆小さなメダル章」（2026-10-29 ユーザー決定。その前は墨の点3つ＝10/22）。
   見本は outputs/screens-sample_2026-10-28/level-badge-brushup.html。左端に −9° の金属の帯、丸い金属の面にメダル章（src/illust.ts の levelMedal）、名前。
   面は淡い金属の色・字はその濃い色（明るさの比はどれも 7:1 以上）。暗い表示では面を暗く、字を明るく。
   .lv-bronze・.lv-silver・.lv-gold が色（--lv-c など）を渡す。札・/about のカード・スマホの絵の札で同じ色（イラスト規定 §2 の例外の色） */
:root {
  --lv-bronze: #b86535; --lv-bronze-deep: #8c441b; --lv-bronze-ink: #632f11;
  --lv-bronze-tint: #f8e8dc; --lv-bronze-hi: #fdf6f0; --lv-bronze-mid: #f3d7c4; --lv-bronze-lo: #e5b89a; --lv-bronze-bd: #d69e7a;
  --lv-silver: #5e728a; --lv-silver-deep: #405268; --lv-silver-ink: #253344;
  --lv-silver-tint: #e8eef5; --lv-silver-hi: #f9fbfd; --lv-silver-mid: #e2eaf3; --lv-silver-lo: #c5d3e3; --lv-silver-bd: #9fb3c9;
  --lv-gold: #c99014; --lv-gold-deep: #9c6a04; --lv-gold-ink: #593b00;
  --lv-gold-tint: #fcf0c2; --lv-gold-hi: #fffdf2; --lv-gold-mid: #faeaab; --lv-gold-lo: #edd06b; --lv-gold-bd: #dbb343;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --lv-bronze: #e09266; --lv-bronze-deep: #b56539; --lv-bronze-ink: #fae0d0;
  --lv-bronze-tint: #3d291f; --lv-bronze-hi: #523729; --lv-bronze-mid: #3e291f; --lv-bronze-lo: #2e1e17; --lv-bronze-bd: #8c5536;
  --lv-silver: #9cb2cc; --lv-silver-deep: #6b829e; --lv-silver-ink: #e6eef8;
  --lv-silver-tint: #2a333f; --lv-silver-hi: #3a4758; --lv-silver-mid: #2c3643; --lv-silver-lo: #202731; --lv-silver-bd: #5c708a;
  --lv-gold: #f0c24c; --lv-gold-deep: #c49216; --lv-gold-ink: #fef0c2;
  --lv-gold-tint: #3f3316; --lv-gold-hi: #57461d; --lv-gold-mid: #423516; --lv-gold-lo: #302610; --lv-gold-bd: #997622;
} }
:root[data-theme="dark"] {
  --lv-bronze: #e09266; --lv-bronze-deep: #b56539; --lv-bronze-ink: #fae0d0;
  --lv-bronze-tint: #3d291f; --lv-bronze-hi: #523729; --lv-bronze-mid: #3e291f; --lv-bronze-lo: #2e1e17; --lv-bronze-bd: #8c5536;
  --lv-silver: #9cb2cc; --lv-silver-deep: #6b829e; --lv-silver-ink: #e6eef8;
  --lv-silver-tint: #2a333f; --lv-silver-hi: #3a4758; --lv-silver-mid: #2c3643; --lv-silver-lo: #202731; --lv-silver-bd: #5c708a;
  --lv-gold: #f0c24c; --lv-gold-deep: #c49216; --lv-gold-ink: #fef0c2;
  --lv-gold-tint: #3f3316; --lv-gold-hi: #57461d; --lv-gold-mid: #423516; --lv-gold-lo: #302610; --lv-gold-bd: #997622;
}
/* --lv-c＝その金属の色、-deep＝濃い色（帯の下）、-ink＝字とメダル章、-hi/-mid/-lo＝面の明るい所〜暗い所、-tint＝淡い色（カードの帯）、-bd＝縁 */
.level, .about-level, .lv-bronze {
  --lv-c: var(--lv-bronze); --lv-deep: var(--lv-bronze-deep); --lv-ink: var(--lv-bronze-ink); --lv-tint: var(--lv-bronze-tint);
  --lv-hi: var(--lv-bronze-hi); --lv-mid: var(--lv-bronze-mid); --lv-lo: var(--lv-bronze-lo); --lv-bd: var(--lv-bronze-bd); }
.lv-silver {
  --lv-c: var(--lv-silver); --lv-deep: var(--lv-silver-deep); --lv-ink: var(--lv-silver-ink); --lv-tint: var(--lv-silver-tint);
  --lv-hi: var(--lv-silver-hi); --lv-mid: var(--lv-silver-mid); --lv-lo: var(--lv-silver-lo); --lv-bd: var(--lv-silver-bd); }
.lv-gold {
  --lv-c: var(--lv-gold); --lv-deep: var(--lv-gold-deep); --lv-ink: var(--lv-gold-ink); --lv-tint: var(--lv-gold-tint);
  --lv-hi: var(--lv-gold-hi); --lv-mid: var(--lv-gold-mid); --lv-lo: var(--lv-gold-lo); --lv-bd: var(--lv-gold-bd); }
.level { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 14px 0 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--lv-ink);
  background: linear-gradient(135deg, var(--lv-hi) 0%, var(--lv-mid) 100%); border: 1px solid var(--lv-bd); box-shadow: inset 0 1px 0 var(--spot-hl); }
.level::before { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 7px; background: linear-gradient(180deg, var(--lv-c), var(--lv-deep)); transform: skewX(-9deg); }
.lv-medal { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--lv-ink);
  background: radial-gradient(circle at 30% 25%, var(--surface) 0%, var(--lv-hi) 28%, var(--lv-lo) 72%, var(--lv-c) 100%);
  border: 1px solid var(--lv-bd); box-shadow: inset 0 1px 1px var(--spot-hl), 0 1px 3px var(--shadow-strong); }
.lv-medal svg { width: 14.5px; height: 14.5px; filter: drop-shadow(0 1px 0 var(--spot-hl)); }
/* 暗い表示のメダル：左上の光を金属の色に、まわりを暗く */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lv-medal {
  background: radial-gradient(circle at 30% 25%, var(--lv-c) 0%, var(--lv-hi) 48%, var(--lv-lo) 100%); box-shadow: inset 0 1px 1px rgb(255 255 255 / .28), 0 1px 3px var(--shadow); } }
:root[data-theme="dark"] .lv-medal {
  background: radial-gradient(circle at 30% 25%, var(--lv-c) 0%, var(--lv-hi) 48%, var(--lv-lo) 100%); box-shadow: inset 0 1px 1px rgb(255 255 255 / .28), 0 1px 3px var(--shadow); }

/* ── 表 ── */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-alt-grad); font-size: 14px; }
th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--text-dim); padding: 10px 14px; background: var(--bg-panel-grad); border-bottom: 1px solid; border-image: var(--border-grad) 1; white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid; border-image: var(--border-grad) 1; vertical-align: middle; }
tr:last-child > td { border-bottom: 0; }
tbody tr:hover > td, tr:hover > td { background: var(--hover); }
td.end, th.end { text-align: right; white-space: nowrap; }
.scroll > table, .card table { border-radius: 0; }
.scroll:not(.card .scroll) { border-radius: var(--r-md); }
/* カード・表の枠の中の表は、外の面を透かす（暗い表示の上から下への明るさの差が、表の頭でもう一度始まらないように） */
.card table, .scroll > table { background: transparent; }
/* 表の直し（2026-10-30 ユーザー「おすすめで」＝見直しの 2・10）
   ・列が1文字の幅まで潰れて、行がとても高くならないよう、セルに最小の幅。入りきらない分は .scroll の中だけを横に送る（仕様 6-6）
   ・ID は折らずに前のほうだけ出し、残りは …（全部は title と、その人の画面で）。操作記録の「詳しく」は狭い列に押し込まない
   ・行の「…」のメニューを開いている間は、表の枠で切らない */
td { min-width: 4.5em; }
td.end, td:empty { min-width: 0; }
td.id code { display: inline-block; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; word-break: normal; }
td.det { min-width: 16em; }
td.tgt, td.act { min-width: 10em; }
.scroll:has(details.menu[open]) { overflow: visible; }
/* 表の人のセル：頭文字の丸・名前・その下に小さく社員番号（仕様 6-6） */
.person { display: flex; align-items: center; gap: 10px; }
.person .pbody { display: flex; flex-direction: column; min-width: 0; }
.person small { font-size: 12px; line-height: 1.4; }
.avatar.sm { width: 28px; height: 28px; font-size: 12.5px; }
/* スマホの幅（520px まで）では、cardTable を通した表を1行ずつのカードにする（見出しの言葉は各セルの左に小さく） */
@media (max-width: 520px) {
  .scroll.cards, .scroll.cards:not(.card .scroll) { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .scroll.cards > table, .scroll.cards tbody, .scroll.cards tr, .scroll.cards td { display: block; width: auto; min-width: 0; }
  .scroll.cards > table { background: none; }
  .scroll.cards tr:has(> th) { display: none; }
  .scroll.cards tr { --over: transparent; --face: var(--bg-alt-grad); --line: var(--border-grad); position: relative; margin-bottom: 10px; padding: 12px 14px;
    border: 1px solid transparent; border-radius: var(--r-md); box-shadow: var(--card-shadow);
    background: linear-gradient(var(--over), var(--over)) padding-box, var(--face) padding-box, var(--line) border-box; }
  .scroll.cards tr:hover > td { background: none; }
  .scroll.cards td { padding: 3px 0; border: 0; white-space: normal; }
  .scroll.cards td[data-label] { position: relative; padding-left: 104px; }
  .scroll.cards td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 3px; width: 94px; font-family: var(--font-ui); font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
  /* ログイン中の端末（2026-11-30 段2）：見出し「ログインを続ける」（8文字）が2行に折れて下の行に重ならないよう、この表だけ見出しの幅を広げる */
  .scroll.cards > table.devices td[data-label]:not(:first-child) { padding-left: 122px; }
  .scroll.cards > table.devices td[data-label]:not(:first-child)::before { width: 112px; }
  .scroll.cards td:first-child { padding: 0 44px 8px 0; font-weight: 500; }
  .scroll.cards td:first-child::before { content: none; }
  .scroll.cards td:empty { display: none; }
  .scroll.cards td.end { padding-top: 8px; text-align: left; }
  .scroll.cards td.end:has(details.menu) { position: absolute; top: 8px; right: 8px; padding: 0; }
  .scroll.cards details.menu .pop { max-width: calc(100vw - 40px); } /* 開いたメニューが画面の左の縁に付かないように */
  .scroll.cards td.id code { max-width: 100%; }
  .scroll.cards td.det, .scroll.cards td.tgt, .scroll.cards td.act { min-width: 0; }
}

/* ── 折りたたみ（見出しは、押せると分かる大きさに）と、小さなメニュー ── */
details.fold { margin: 12px 0; }
details.fold > summary { --line: var(--border-strong-grad); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 500; color: var(--text);
  padding: 8px 14px 8px 10px; border-radius: var(--r-sm); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); margin: 0 4px 0 2px; transition: transform .15s; }
details.fold[open] > summary::before { transform: rotate(45deg); }
details.fold > summary:hover { --over: var(--hover); }
details.fold[open] > summary { margin-bottom: 10px; }
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; padding: 6px;
  border-radius: var(--r-md); box-shadow: 0 10px 28px var(--shadow-strong); text-align: left; white-space: normal; }
details.menu .pop form { display: block; margin: 0; }
details.menu .pop button, details.menu .pop a { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 38px; padding: 0 12px; margin: 0;
  border: 0; background: none; box-shadow: none; font: inherit; font-size: 14px; color: var(--text); text-align: left; border-radius: 6px; cursor: pointer; text-decoration: none; }
details.menu .pop button .ic { --ic-shu: var(--ic-shu-base); }
details.menu .pop button:hover, details.menu .pop a:hover { background: var(--hover); }
details.menu .pop .danger, details.menu .pop button.btn-danger { color: var(--danger-text); }
details.menu .pop form.menu-role { display: flex; gap: 6px; align-items: center; padding: 4px 6px; }
details.menu .pop form.menu-role select { height: 34px; flex: 1; font-size: 13.5px; }
details.menu .pop form.menu-role input { flex: 1; min-width: 0; height: 34px; font-size: 13.5px; } /* 名前を直す欄は縮んでよい（狭い幅でボタンが切れないように。2026-10-30） */
details.menu .pop form.menu-role button { width: auto; flex: none; background: var(--bg-panel-grad); }
details.menu .pop hr { border: 0; border-top: 1px solid; border-image: var(--border-grad) 1; margin: 6px 0; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: transparent; color: var(--text-dim); cursor: pointer; }
.icon-btn:hover, details.menu[open] > .icon-btn { background: var(--hover); color: var(--text); }
.icon-btn .ic { width: 20px; height: 20px; }

/* ── お知らせ・空のとき・操作のあとの知らせ ── */
.note { background: var(--shu-tint-grad); border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 16px; }
.note > :first-child { margin-top: 0; } .note > :last-child { margin-bottom: 0; }
/* 招待を作った知らせ：うまくいったときの色。「今だけ表示」の1行だけ朱の字（前は全体が注意の色だった。2026-10-30 見直しの 14） */
.note.created { --face: var(--bg-panel-grad); border: 1px solid transparent; background: linear-gradient(var(--over), var(--over)) padding-box, var(--face) padding-box, var(--line) border-box; }
.note.created .created-head { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
/* 完了のチェックは深若竹の塗り丸（アイコンそのものが丸。ガイド 4-3 仕上げB） */
.note.created .created-head .ic { flex: none; width: 24px; height: 24px; }
.note.created .created-once { color: var(--danger-text); font-size: 13.5px; }
.note.created .created-exp { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-dim); }
.note.created .created-exp .ic { width: 16px; height: 16px; }
/* 招待の QR コード（作った直後の囲み。2026-11-29 設計 §4.1）。QR は白地に黒で固定（src/qr.ts） */
.qr-figure { margin: 12px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.qr-figure svg.qr { width: 168px; height: 168px; max-width: 100%; border-radius: 4px; }
.qr-figure.qr-large svg.qr { width: 240px; height: 240px; }
.qr-figure figcaption { font-size: 13.5px; color: var(--text-dim); }
/* 招待の紙：画面には出さない。「招待の紙を印刷する」を押したとき（ui.js が紙の写しを body のすぐ下の .print-host に置き、
   html に print-sheet を付ける）の印刷だけ、ほかを消して紙だけを出す。ほかの画面・ふつうの印刷（Ctrl+P）には効かない（/terms などを白紙にしない） */
.invite-sheet { display: none; }
@media print {
  html.print-sheet body > :not(.print-host) { display: none !important; }
  html.print-sheet .print-host .invite-sheet { display: block; padding: 16mm; color: #000; background: #fff; }
  html.print-sheet .invite-sheet h1 { font-size: 22pt; margin: 0 0 8mm; }
  html.print-sheet .invite-sheet .sheet-org { font-size: 16pt; font-weight: 700; margin: 0; }
  html.print-sheet .invite-sheet .sheet-name { font-size: 14pt; margin: 2mm 0 6mm; }
  html.print-sheet .invite-sheet svg.qr { width: 70mm; height: 70mm; }
  html.print-sheet .invite-sheet ol { font-size: 12pt; line-height: 1.7; padding-left: 1.4em; }
  html.print-sheet .invite-sheet .sheet-exp, html.print-sheet .invite-sheet .sheet-note { font-size: 11pt; }
}
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); background: var(--bg-panel-grad); font-size: 14px; margin: 0 0 16px; }
.notice .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--text-dim); }
.notice.verified { --line: var(--ink-line); border: 1px solid transparent; background: linear-gradient(var(--over), var(--over)) padding-box, var(--face) padding-box, var(--line) border-box; }
.notice.verified .ic { color: var(--text); }
.empty { text-align: center; padding: 28px 16px; color: var(--text-dim); }
.empty .ic { width: 36px; height: 36px; margin-bottom: 6px; }
/* 操作のあと：画面の左下に濃藍の面・白の字で「〜しました」（仕様 6-7。暗い表示では入れ替え） */
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 48px); padding: 12px 18px;
  border-radius: var(--r-sm); background: var(--ink-grad); color: var(--on-ink); font-size: 14px; box-shadow: 0 8px 24px var(--shadow-strong); animation: toast-in .2s ease-out; }
.toast .ic { width: 20px; height: 20px; }
.toast.gone { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── そのほかの前からの部品 ── */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.chips a { --line: var(--border-strong-grad); display: inline-flex; align-items: center; height: 32px; padding: 0 14px; font-size: 13.5px; border-radius: 16px; text-decoration: none; }
.chips a:hover { --over: var(--hover); }
.chips a.on { --line: var(--mark-on-tint); --face: var(--shu-tint-grad); font-weight: 700; }
.det { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); word-break: break-all; }
.det b { font-weight: 400; color: var(--text); }

/* ── 本人の画面の入力（項目名を入力の上に。スマホで文字が拡大されないよう入力は 16px） ── */
.f { display: grid; gap: 20px; margin: 20px 0 8px; }
.f .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.f label.l { display: block; font-weight: 500; font-size: 14px; margin: 0 0 6px; }
.f input[type=text], .f input[type=email], .f input[type=date], .f select { width: 100%; max-width: 520px; height: 46px; font-size: 16px; }
.f .two input, .f .two select { max-width: none; }
.f input[readonly] { width: 100%; max-width: 520px; height: 46px; font-size: 16px; }
.f .hint { color: var(--text-dim); font-size: 12.5px; margin: 6px 0 0; line-height: 1.7; }
.f .err { color: var(--danger-text); font-size: 13px; margin: 6px 0 0; font-weight: 500; }
.f .bad input, .f .bad select { --line: var(--danger-line); }
.f .radios { display: flex; flex-wrap: wrap; gap: 8px; }
.f .radios label { --line: var(--border-strong-grad); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 16px;
  border-radius: var(--r-sm); font-size: 15px; cursor: pointer; }
.f .radios label:hover { --over: var(--hover); }
.f .radios label:has(input:checked) { --line: var(--mark-on-tint); --face: var(--shu-tint-grad); font-weight: 500; }
.f .consent { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 15px; padding: 14px 16px; border-radius: var(--r-md); }
.f .consent input, .f .radios input { width: 20px; height: 20px; margin: 0; flex: none; }
.f .consent input { margin-top: 3px; }
.f button { min-height: 48px; font-size: 16px; padding: 0 28px; width: 100%; }
@media (min-width: 640px) { .f button { width: auto; min-width: 240px; } }
@media (max-width: 340px) { .f .two { grid-template-columns: 1fr; } }
ol.steps { padding-left: 22px; } ol.steps li { margin: 6px 0; }
.f input.code { max-width: 220px; letter-spacing: .2em; font-family: var(--font-mono); }
/* 生年月日：年・月・日のプルダウン →「または数字で入れる」→ 数字の欄 → 確かめた結果の1行 */
.bd-sel { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; max-width: 440px; }
.bd-or { display: flex; align-items: center; gap: 10px; max-width: 440px; margin: 12px 0 8px; color: var(--text-dim); font-size: 12.5px; }
.bd-or::before, .bd-or::after { content: ""; flex: 1; border-top: 1px dashed var(--border-strong); }
.f .bd input[type=text] { max-width: 440px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.f .bd input[aria-invalid=true] { --line: var(--danger-line); --face: var(--shu-tint-grad); }
.f .ro { margin: 0; font-size: 16px; padding: 10px 14px; background: var(--bg-panel-grad); border-radius: var(--r-sm); max-width: 440px; }
.bd-out { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; font-weight: 500; }
.bd-out::before { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; line-height: 1; }
/* 確かめた結果：通った＝完了の丸（深若竹の塗り丸に白のチェック。アイコンの check と同じ色）、通らない＝朱の丸に「!」（色と形の両方） */
.bd-out.ok { color: var(--text); } .bd-out.ok::before { content: "\2713"; background: var(--ic-ok); color: var(--ic-on-ok); }
.bd-out.ng { color: var(--danger-text); } .bd-out.ng::before { content: "!"; background: var(--danger); color: var(--on-accent); }
/* すでに登録されている人の画面 */
.reg { max-width: 560px; }
.reg .ok-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--text); background: var(--bg-panel-grad); border-radius: 999px; padding: 4px 12px 4px 6px; }
.reg .ok-badge::before { content: "\2713"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ic-ok); color: var(--ic-on-ok); font-size: 11px; }
.reg .card { padding: 18px 22px; margin: 20px 0 14px; overflow: visible; }
.reg .card p { margin: 0 0 8px; } .reg .card ol.steps { margin: 4px 0 14px; font-size: 14px; color: var(--text-dim); }
.reg .card .btn { display: flex; width: 100%; font-size: 16px; min-height: 48px; }
.reg form button { width: 100%; font-size: 15px; min-height: 46px; }
@media (min-width: 640px) { .reg .card .btn { display: inline-flex; width: auto; min-width: 260px; } .reg form button { width: auto; min-width: 260px; } }

/* ── 入口（/）：左に藍の面（右の縁を −9° で区切る）、右に入口。スマホでは上に藍の面（下の縁を −9°）。
   面そのものを skewX(-9deg)（スマホは skewY(-9deg)）で傾ける。窓の高さや中身で面の高さが変わっても −9° のまま（仕様 3章。2026-11-04 ユーザー決定）。
   面は --rail-grad（左上からの斜光）、斜めの縁は朱のエッジの線（案2。暗い表示も）。
   面の上の説明（押さない箇条書き）は藍ガラスの枠に白の線画、右の扉（押す主役のカード）は V1 のタイル（ガイド 4-3。2026-11-29 決定） ── */
.entry { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); overflow-x: clip; }
.entry .ink { position: relative; isolation: isolate; color: var(--paper); padding: 52px 136px 52px 64px; display: flex; flex-direction: column; justify-content: center; }
.entry .ink::before, .entry .ink::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; transform-origin: 100% 0; transform: skewX(-9deg); pointer-events: none; }
.entry .ink::before { left: 0; z-index: -1; background: var(--rail-grad); }
/* 斜めの縁の線（案2：朱のエッジ。暗い表示は面も地も夜藍なので、この線が境目になる） */
.entry .ink::after { width: var(--entry-edge-w); background: var(--entry-edge); }
.entry .ink img { width: 230px; margin-bottom: 28px; }
.entry .ink-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--rail-text); margin: 0 0 10px; }
.entry .ink-eyebrow::before { content: ""; width: 4px; height: 14px; border-radius: 1px; background: var(--mark-grad); transform: skewX(-9deg); }
.entry .ink .lead { font-size: 30px; line-height: 1.5; font-weight: 700; margin: 0 0 14px; color: var(--paper); }
.entry .ink > p:not(.lead):not(.ink-eyebrow):not(.more) { color: var(--rail-text); margin: 0 0 30px; max-width: 30em; font-size: 14.5px; line-height: 1.85; }
.entry .ink ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 31em; }
.entry .ink li { display: flex; gap: 14px; align-items: flex-start; color: var(--paper); }
.entry .ink li .ic { width: 24px; height: 24px; margin-top: 2px; }
/* 説明のアイコン：半透明の藍ガラスの枠＋白の線画（V2。朱の所はそのまま）。補助の色のタイルは置かない（色の散らばりを抑え、右の扉を引き立てる） */
.entry .ink-spot { width: 38px; height: 38px; border-radius: 10px; flex: none; display: inline-grid; place-items: center;
  background: var(--glass-bg); border: 1px solid var(--glass-line); color: var(--glass-ink); box-shadow: var(--glass-hl); }
.entry .ink-spot .ic { width: 20px; height: 20px; margin: 0; color: var(--glass-ink); }
/* 小さい字の後ろ半分をひとかたまりにする：広い幅では「、」の後ろで折り返し、狭い幅では中でも折り返す
   （nowrap だと 900px 前後で行の箱が押し広げられ、斜めの縁に掛かった。auto-phrase は Safari で効かないので、どのブラウザでも同じ動きのこの形に） */
.entry .ink li .phrase { display: inline-block; }
.entry .ink li b { display: block; font-size: 15px; font-weight: 500; color: var(--paper); line-height: 1.5; }
.entry .ink li small { display: block; margin-top: 2px; line-height: 1.6; color: var(--rail-text); font-size: 13px; }
.entry .door { display: flex; flex-direction: column; justify-content: center; padding: 44px 56px; max-width: 640px; }
.entry .door-head { margin-bottom: 18px; }
.entry .door h1 { margin: 0 0 16px; font-size: 24px; }
.entry .door-head h1 { margin: 0; }
.entry .door-sub { margin: 4px 0 0; font-size: 14px; color: var(--text-dim); }
/* クリまる（公式マスコットのメイン。ClickID 入口の「ようこそ」。ガイド 8-1・ブランド規定 第5章）：扉の見出しの右に。
   暗い表示は陽だまりの丸い座布団に載せる（濃藍の輪郭が夜藍に沈まないように）。飾りなので CSS の絵（読み上げない） */
.entry .door-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
.entry .door-head > * { grid-column: 1; }
.entry .door-head::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 76px; height: 76px; border-radius: 50%;
  background: url("kurimaru-wave.png") 50% 60% / 72px 72px no-repeat; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .entry .door-head::after { background: url("kurimaru-wave.png") 50% 62% / 62px 62px no-repeat, var(--mascot-cushion); } }
:root[data-theme="dark"] .entry .door-head::after { background: url("kurimaru-wave.png") 50% 62% / 62px 62px no-repeat, var(--mascot-cushion); }
/* 利用規約の変更のお知らせの1行（termsNoticeLine。形は変えない＝仕様 10章）：朱 −9° の印つきのピル */
.entry .door .note { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 6px 14px 6px 10px; margin: 0 0 16px;
  border-radius: 999px; background: var(--shu-tint-grad); border: 1px solid transparent; font-size: 13px; }
.entry .door .note::before { content: ""; width: 5px; height: 14px; border-radius: 1px; flex: none; background: var(--mark-grad); transform: skewX(-9deg); }
.entry .door .note a { font-weight: 500; text-decoration: none; word-break: keep-all; } /* スマホで「（2026年11月2日か／ら）」と言葉の途中で折れないように（261001-5a の見直し 2026-10-29） */
.entry .door .note a:hover { text-decoration: underline; }
@media (max-width: 520px) { .entry .door .note { border-radius: 14px; } } /* 2行になったとき、丸い札が角ばって見えないように */
/* 扉（押す主役のカード）：純白のカード・繊細な影・左に V1 のタイル・右に矢印（見本 1-entry） */
.door-card { display: flex; gap: 16px; align-items: center; border-radius: var(--r-lg); padding: 20px 22px; margin: 0 0 14px; text-decoration: none; color: inherit; }
.door-card > .ic { width: 24px; height: 24px; color: var(--text-dim); }
.door-card .grow { flex: 1; min-width: 0; }
.door-card b { display: block; font-size: 15.5px; }
.door-card small { display: block; color: var(--text-dim); font-size: 13px; line-height: 1.6; }
/* 入口の「ログインする」（入る › のピルつき）と「アカウントを作る」の扉 */
.entry .door > a.door-card:has(.door-go-pill) { padding: 22px 24px; margin-bottom: 18px; }
.entry .door > a.door-card:has(.door-go-pill) b { font-size: 17px; margin-bottom: 2px; }
.entry .door-go-pill { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--btn-grad); box-shadow: var(--btn-shadow); color: var(--on-accent); font-size: 13.5px; font-weight: 700; transition: transform .18s ease; }
.entry .door-go-pill .ic { width: 17px; height: 17px; --ic-shu: currentColor; }
.entry .door-sub-label { font-size: 12.5px; font-weight: 700; color: var(--text-dim); margin: 4px 0 10px; display: flex; align-items: center; gap: 10px; }
.entry .door-sub-label::after { content: ""; flex: 1; height: 1px; background: var(--border-grad); }
.entry .door-create { margin: 0; }
.entry .door-create > .ic { transition: transform .18s ease; }
/* 2026-11-23 案A（職場を強調しない）：招待の話は小さな1行、会社の管理画面は下の小さなリンク */
.entry .door-hint { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.65; color: var(--text-dim); }
.entry .door-hint .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.entry .door-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid; border-image: var(--border-grad) 1; font-size: 13px; color: var(--text-dim); }
.entry .door-admin a { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; text-decoration: none; }
.entry .door-admin a .ic { width: 15px; height: 15px; }
.entry .door-admin a:hover { text-decoration: underline; }
.entry .legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 0; font-size: 12.5px; }
.entry .door-admin + .legal { margin-top: 10px; }
.entry .legal a { color: var(--text-dim); }
/* 入口：藍の斜めの面を、下の帯（© ClickGo）の下まで、画面のいちばん下まで斜めのまま通す。
   帯の線は消し、面の上に来る「© ClickGo」は白系（陽だまりの色）で抜く（2026-11-29 ユーザー「ずっと画面下部まで斜めで走らせて」「ClickGoのフォント色は白系で抜く」）。広い画面だけ */
@media (min-width: 841px) {
  body:has(.entry) { --entry-foot-h: 64px; display: flex; flex-direction: column; min-height: 100vh; }
  body:has(.entry) > main { flex: 1 0 auto; display: flex; flex-direction: column; }
  body:has(.entry) .entry { flex: 1 0 auto; min-height: 0; }
  body:has(> .foot-copy) .entry .ink::before, body:has(> .foot-copy) .entry .ink::after { bottom: calc(-1 * var(--entry-foot-h)); }
  body:has(.entry) > .foot-copy { position: relative; z-index: 1; height: var(--entry-foot-h); padding-top: 0; padding-bottom: 0; align-items: center; flex-wrap: nowrap; border-top: 0; border-image: none; max-width: none; margin: 0; }
  body:has(.entry) > .foot-copy > span:first-child { color: var(--paper); }
  /* 面が画面の下まで伸びると、下へ行くほど斜めの縁が左へ寄る（高さ×tan9°）。縦に長い窓でも文字が縁を越えないよう、
     左右の中身は上寄せにし、上の余白を窓の高さに合わせて少しだけ広げる（中身の下端が 860px 付近に収まる） */
  body:has(.entry) .entry .ink, body:has(.entry) .entry .door { justify-content: flex-start; padding-top: clamp(56px, 10vh, 120px); }
  body:has(.entry) .entry .ink { padding-right: 150px; }
}
@media (max-width: 840px) {
  .entry { grid-template-columns: 1fr; min-height: 0; }
  /* 下の縁を skewY(-9deg) で（左下を軸に右側が上がる。窓の幅で角度が変わらない） */
  .entry .ink { padding: 24px 20px 64px; overflow: hidden; }
  .entry .ink::before, .entry .ink::after { transform-origin: 0 100%; transform: skewY(-9deg); }
  .entry .ink::after { top: auto; left: 0; width: auto; height: var(--entry-edge-w); }
  /* スマホでは藍の面を短く（見出しと1文と「できること」だけ）して、扉を1画面目に出す。上の帯にロゴがあるので面のロゴは出さない。
     3つの利点の札は /about（「ClickGoアカウントでできること」）で読める。HTML はそのまま（2026-10-30 見直しの 9。前は扉が 820px あたり＝2画面目だった） */
  .entry .ink img, .entry .ink ul { display: none; }
  .entry .ink .more { margin-top: 14px; }
  .entry .ink .lead { font-size: 23px; }
  .entry .door { padding: 8px 16px 32px; max-width: none; }
  .entry .door-head::after { width: 64px; height: 64px; background-size: 60px 60px; }
  .entry .door > a.door-card:has(.door-go-pill) { padding: 16px; }
  .entry .door > a.door-card:has(.door-go-pill) b { font-size: 16.5px; }
}

/* ── アプリからのログイン（/v1/authorize。src/appsignin.ts）：まん中に1枚のカード。どのアプリに入るか・渡すもの・ボタン ── */
.signin { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); }
.signin-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 32px; }
/* 紹介の藍の面：スマホではカードの下（上の縁を −9°）、PC では左（右の縁を −9°。入口の .entry .ink と同じ形）。どちらも面そのものを傾ける */
.signin-ink { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); padding: calc(15.84vw + 24px) 20px 40px; }
/* スマホ：右上を軸に skewY(-9deg)。左へ行くほど下がる上の縁になる（下の縁の左は、この枠で切る） */
.signin-ink::before, .signin-ink::after { content: ""; position: absolute; inset: 0; z-index: -1; transform-origin: 100% 0; transform: skewY(-9deg); pointer-events: none; }
.signin-ink::before { background: var(--rail-grad); }
.signin-ink::after { z-index: 0; bottom: auto; height: var(--entry-edge-w); background: var(--entry-edge); }
.signin-ink img { display: block; width: 130px; margin: 0 0 18px; }
.signin-ink .lead { margin: 0 0 10px; font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--paper); }
.signin-ink-text { margin: 0 0 18px; font-size: 14px; line-height: 1.85; color: var(--rail-text); }
.signin-ink .ill-hub { max-width: 400px; }
.signin-ink .more { margin: 18px 0 0; }
.signin-ink .more a { display: inline-flex; align-items: center; gap: 2px; color: var(--paper); font-weight: 700; text-decoration-color: var(--glass-line); }
.signin-ink .more .ic { width: 18px; height: 18px; }
@media (min-width: 960px) {
  .signin { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "ink main"; overflow-x: clip; }
  .signin-main { grid-area: main; padding: 48px 32px; }
  .signin-ink { grid-area: ink; display: flex; flex-direction: column; justify-content: center; padding: 48px 128px 48px 56px; overflow: visible; }
  /* PC：右上を軸に skewX(-9deg)（入口と同じ形）。縁の線は面の右の縁に */
  .signin-ink::before, .signin-ink::after { inset: 0; transform-origin: 100% 0; transform: skewX(-9deg); }
  .signin-ink::after { left: auto; width: var(--entry-edge-w); height: auto; bottom: 0; }
  .signin-ink .lead { font-size: 28px; }
}
.signin-card { width: 100%; max-width: 440px; border-radius: var(--r-lg); padding: 24px 32px 20px; }
.signin-app { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.app-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--shu-tint-grad); color: var(--shu-text); font-size: 20px; font-weight: 700; }
.app-name { font-size: 15px; font-weight: 700; color: var(--text-dim); overflow-wrap: anywhere; }
.signin h1 { font-size: 24px; margin: 0 0 4px; overflow-wrap: anywhere; }
.signin-sub { color: var(--text-dim); margin: 0 0 22px; }
.signin-actions { display: grid; gap: 10px; }
.signin-actions > button:not(.btn-text) { width: 100%; min-height: 48px; font-size: 15.5px; }
.signin-actions .dim { margin: 0; }
.signin-hint { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 0; font-size: 13.5px; color: var(--text-dim); }
.signin-hint .ic { width: 18px; height: 18px; margin-top: 3px; }
.signin-pass { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 2px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-panel-grad); font-size: 13.5px; }
.signin-pass > .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--text-dim); }
.signin-pass b { display: block; }
.signin-pass ul { margin: 4px 0 6px; padding-left: 1.2em; }
.signin-pass small { display: block; color: var(--text-dim); font-size: 12.5px; }
.signin-actions > .btn-text { justify-self: start; margin-top: 4px; padding-left: 6px; color: var(--text-dim); white-space: normal; text-align: left; }
/* 「この端末でログインを続ける」（allow_refresh の連携だけ。2026-11-30 段2）：ボタンの上に、チェックと短い説明。色は今の変数だけ */
.signin-keep { margin: 0 0 4px; }
.signin-keep label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.signin-actions .signin-keep .dim { margin: 4px 0 0 26px; font-size: 12.5px; line-height: 1.7; }
.signin-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 18px 0 0; font-size: 12.5px; }
.signin-legal a { color: var(--text-dim); }
@media (max-width: 520px) {
  .signin-main { justify-content: flex-start; padding: 16px 12px 28px; }
  .signin-card { padding: 18px 18px 14px; border-radius: var(--r-md); }
}

/* ── マイアカウント（/account） ── */
.hello { text-align: center; padding: 8px 0 28px; }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.hello-name { font-size: 28px; line-height: 1.4; font-weight: 700; margin: 14px 0 2px; }
.hello .meta { justify-content: center; margin-top: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.grid-2 > .card { margin: 0; }
/* 4つの札（見本 2-account-home）：左上に V1 のタイル、見出し、説明。カード全体が押せる。右上に「›」（弱い色。指を乗せたときだけ朱）。
   前は4枚それぞれに朱の文字リンクがあって、朱が4つ並んでいた（2026-10-30 見直しの 12） */
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 52px 22px 24px; height: 100%; text-decoration: none; color: inherit; }
.tile:hover { background: var(--hover); }
.tile > .ic { width: 28px; height: 28px; color: var(--text-dim); }
.tile b { font-size: 16px; }
.tile span { color: var(--text-dim); font-size: 13.5px; }
.tile .tile-go { position: absolute; top: 24px; right: 20px; color: var(--text-faint); transition: color .15s, transform .15s; }
.tile .tile-go .ic { width: 20px; height: 20px; }
.tile:hover .tile-go { color: var(--accent); transform: translateX(2px); }
.hello-mail { margin: 2px 0 0; font-size: 15px; color: var(--text-dim); }
/* アカウントの安全の確認（仕様 7-1）：済んだことは完了の丸（深若竹の塗り丸に白のチェック。ガイド 4-3 仕上げB）、まだのことは空の丸と「› 設定する」（色と形の両方） */
.safe-list { margin: 0; padding: 0 0 6px; list-style: none; }
.safe-row { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-top: 1px solid; border-image: var(--border-grad) 1; }
.safe-row:first-child { border-top: 0; }
.safe-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.safe-row.ok .safe-mark { border-color: transparent; }
.safe-mark .ic { width: 28px; height: 28px; }
.safe-text { display: grid; flex: 1; min-width: 0; line-height: 1.5; }
.safe-text b { font-size: 14.5px; font-weight: 500; }
.safe-text small { font-size: 12.5px; color: var(--text-dim); }
.safe-go { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 13.5px; font-weight: 500; color: var(--shu-text); text-decoration: none; }
.safe-go .ic { width: 16px; height: 16px; }
.safe-go:hover { text-decoration: underline; }
@media (max-width: 840px) { .safe-row { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 840px) { .grid-2 { grid-template-columns: 1fr; gap: 14px; } .hello-name { font-size: 23px; } }

/* ── 下の帯（本人の画面） ── */
.foot { display: flex; flex-wrap: wrap; gap: 6px 20px; max-width: 1180px; margin: 0 auto; padding: 22px 20px 28px; font-size: 12.5px; color: var(--text-dim); border-top: 1px solid; border-image: var(--border-grad) 1; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .grow { flex: 1; }
/* 入口の下の帯（© ClickGo だけ）。広い画面では藍の面の上に来るので白系で抜く（上の入口の節） */
.foot-copy { max-width: none; padding: 18px 24px; border-top: 0; border-image: none; }

/* ── スマホ（840px 以下） ── */
@media (max-width: 840px) {
  .appbar { padding: 0 12px; gap: 10px; }
  .brand img { height: 20px; }
  .brand .area { font-size: 14px; padding-left: 10px; }
  .who .label, .who .name, .who .tag { display: none; }
  /* 上の帯の右側（頭文字の丸＋ログアウト）は縮めない。縮むと「ログアウト」が画面の右へはみ出し、画面ごと横に動いていた（管理画面は 375px で約40px）。
     足りない分は、左の「アカウント」「会社の管理画面」などの字を … で縮める（2026-10-30） */
  .appbar .who { flex: none; }
  .appbar .who form button { padding: 0 12px; }
  .layout { display: block; min-height: 0; background: none; }
  .sidenav { position: sticky; top: var(--bar-h); z-index: 15; display: flex; overflow-x: auto; gap: 4px; padding: 0 8px; background: var(--bg-alt-grad);
    border-bottom: 1px solid; border-image: var(--border-grad) 1; scrollbar-width: none; }
  .sidenav a { flex: none; height: 48px; padding: 0 12px; border-radius: 0; margin: 0; font-size: 14px; }
  .sidenav a.on { background: none; box-shadow: none; }
  .sidenav a.on::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 3px; transform: none; }
  .sidenav .ic { display: none; }
  .content, .page { padding: 20px 16px 56px; }
  h1 { font-size: 22px; }
  .card { border-radius: var(--r-md); }
  .card-head, .card-body, .card-foot { padding-left: 16px; padding-right: 16px; }
  .panel, .danger-zone { padding: 14px 16px; }
  dl.kv { grid-template-columns: minmax(0, 1fr); }
  dl.kv dd { border-top: 0; padding-top: 0; }
  .item { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 12px 16px; }
  .item .end { grid-column: 2; grid-row: 1 / span 2; }
  .field { grid-template-columns: minmax(0, 1fr); }
  .field > .label { padding-top: 0; }
  .form-actions { margin-left: 0; }
  th, td { padding-left: 10px; padding-right: 10px; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ── イラスト（デザインのフォルダの「ClickGoイラスト規定」v0.8。src/illust.ts。2026-10-24）──
   色は --ill-* だけ（基本の色とその混色＋補助の色4つ）。藍の面の上（.on-ink）では線を陽だまりの色に。動きは CSS だけで、動きを減らす設定では止める。
   絵の中のアイコンは単色版（iconMono）で、補助の色1色で描く */
:root {
  --ill-tile: var(--surface); --ill-tile-text: var(--text); --ill-tile-border: var(--border); --ill-soft: var(--surface-2);
  --ill-line: color-mix(in srgb, var(--ink) 30%, transparent); --ill-accent: var(--accent);
}
.on-ink { --ill-line: color-mix(in srgb, var(--paper) 34%, transparent); --ill-tile-border: transparent; }
.ill-wire { fill: none; stroke: var(--ill-line); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.ill-ring { fill: none; stroke: var(--ill-line); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
.ill-ring-2 { stroke-dasharray: 2 8; opacity: .35; }
.ill-pulse { fill: none; stroke: var(--ill-accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 98; animation: ill-flow 3.6s linear infinite; }
.ill-float { animation: ill-float 6s ease-in-out infinite; }
@keyframes ill-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes ill-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .ill-pulse { animation: none; opacity: 0; } .ill-float { animation: none; } }
/* 朱の −9° の印（左の案内の「いまいる所」と同じ形） */
.ill-mark { position: absolute; left: -2px; top: 24%; width: 5px; height: 38%; border-radius: 1px; background: var(--mark-grad); transform: skewX(-9deg); }
/* ひとつのアカウントの絵（600×500） */
.ill-hub { position: relative; width: 100%; max-width: 540px; aspect-ratio: 6 / 5; margin: 0 auto; container-type: inline-size; }
.ill-hub > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ill-tile { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px;
  background: var(--ill-tile); color: var(--ill-tile-text); border: 1px solid var(--ill-tile-border); border-radius: 14px;
  font-size: clamp(9.5px, 2.5cqi, 13.5px); font-weight: 700; line-height: 1.3; text-align: center; white-space: nowrap; }
.ill-tile .ic { width: clamp(18px, 4.6cqi, 26px); height: clamp(18px, 4.6cqi, 26px); color: var(--text-dim); }
.ill-tile small { font-size: .8em; font-weight: 500; line-height: 1.5; color: var(--shu-text); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; }
.ill-core { position: absolute; display: flex; align-items: center; gap: clamp(6px, 2cqi, 12px); padding: 0 clamp(8px, 2.4cqi, 14px) 0 clamp(10px, 3cqi, 18px); overflow: hidden;
  background: var(--ill-tile); color: var(--ill-tile-text); border: 1px solid var(--ill-tile-border); border-radius: 18px; }
.ill-core-text { display: grid; min-width: 0; line-height: 1.4; }
.ill-core b { font-size: clamp(10.5px, 3cqi, 16px); line-height: 1.3; white-space: nowrap; }
.ill-core small { font-size: clamp(9px, 2.3cqi, 12.5px); color: var(--text-dim); white-space: nowrap; }
.ill-avatar { display: inline-grid; place-items: center; flex: none; width: clamp(28px, 7.6cqi, 46px); aspect-ratio: 1; border-radius: 50%; background: var(--ink-grad); color: var(--on-ink); --ic-shu: currentColor; }
.ill-avatar .ic { width: 55%; height: 55%; }
/* 小さな絵（アイコンを淡い面に）。塗り方は「和紙と光縁」（2026-10-28 ユーザー「このテイストでお願いします」＝見比べの案1）に「朱のにじみ」（同日 D4）を重ねたもの：
   左上から右下へ（152°）、淡い面を紙に寄せた色 → 淡い面 → 少し濃い色に朱の淡い色を混ぜたもの（色は oklab で混ぜて濁らせない）。
   左上にやわらかな光、上の縁に細い光の線、縁にごく細い線、下にうすい影（札の色を少し混ぜる）。アイコンの下にも細い光を置いて少し浮かせる。
   --spot-bg＝淡い面、--spot-c＝札の色（縁と影）、--spot-deep＝淡い面を少し濃くした色（色の札は補助の色を 26%、色の無い札は字の色を 8%）。
   押す主役のカード（扉・マイアカウントの4つの札）の中では、下の「V1 のタイル」の節で塗り替える */
.ill-spot { --spot-bg: var(--ill-soft); --spot-c: var(--text); --spot-deep: color-mix(in oklab, var(--text) 8%, var(--ill-soft));
  position: relative; display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; color: var(--text);
  background: radial-gradient(110% 90% at 15% 10%, var(--spot-hl-soft) 0%, transparent 58%),
    linear-gradient(152deg, color-mix(in oklab, var(--spot-bg) 52%, var(--surface)) 0%, var(--spot-bg) 46%,
      color-mix(in oklab, var(--spot-deep) var(--spot-keep), var(--shu-tint-strong)) 100%);
  box-shadow: inset 0 1.5px 1px var(--spot-hl), inset 0 0 0 1px color-mix(in oklab, var(--spot-c) 18%, transparent),
    0 1px 2px var(--spot-shadow), 0 5px 12px -4px color-mix(in oklab, var(--spot-c) 16%, var(--spot-shadow)); }
.ill-spot .ic { width: 26px; height: 26px; filter: drop-shadow(0 1px 0 var(--spot-hl-soft)); }
/* アプリ ⟷ ClickGoアカウントの絵（アプリからのログインの画面） */
.ill-link { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: start; gap: 4px; max-width: 420px; margin: 0 auto 22px; padding: 18px 8px 14px; border-radius: var(--r-md); background: var(--ill-soft); }
.ill-link-end { display: grid; justify-items: center; gap: 6px; width: 112px; text-align: center; }
.ill-link-end small { font-size: 11px; line-height: 1.4; color: var(--text-dim); overflow-wrap: anywhere; }
.ill-link-app, .ill-link-acct { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 24px; font-weight: 700; }
.ill-link-app { background: var(--shu-tint); color: var(--shu-text); }
.ill-link-acct { background: var(--ink-grad); color: var(--on-ink); }
.ill-link-acct .ic { width: 28px; height: 28px; }
.ill-link-wire { position: relative; display: grid; place-items: center; height: 56px; }
.ill-link-wire svg { position: absolute; left: 0; top: 50%; width: 100%; height: 20px; transform: translateY(-50%); overflow: visible; }
.ill-link-badge { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); }
.ill-link-badge .ic { width: 16px; height: 16px; }

/* ── ClickGoアカウントの説明（/about。src/about.ts。2026-10-24）── */
.about { overflow-x: clip; }
.about-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.about-narrow { max-width: 820px; }
.about-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--text-dim); }
.about-sec { padding: 80px 0; }
.about-sec-alt { background: var(--bg-alt-grad); border-top: 1px solid; border-bottom: 1px solid; border-image: var(--border-grad) 1; }
.about-sec h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4; margin: 0 0 14px; }
.about-lead { max-width: 46em; margin: 0; color: var(--text-dim); font-size: 15.5px; line-height: 1.9; }
.about-grid, .about-levels, .about-steps, .about-svcs, .about-doors { margin: 36px 0 0; padding: 0; list-style: none; }
/* 上の藍の面：下の縁を −9°。面そのものを左下を軸に skewY(-9deg) で傾ける（窓の幅で角度が変わらない。入口のスマホと同じ） */
.about-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); padding: 64px 0 calc(11vw + 16px); }
.about-hero::before, .about-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; transform-origin: 0 100%; transform: skewY(-9deg); pointer-events: none; }
.about-hero::before { background: var(--rail-grad); }
.about-hero::after { z-index: 0; top: auto; height: var(--entry-edge-w); background: var(--entry-edge); }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about-logo { display: block; width: 150px; margin: 0 0 30px; }
.about-hero .about-eyebrow { color: var(--rail-text); }
.about-hero h1 { margin: 0 0 20px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.35; color: var(--paper); }
.about-hero-lead { max-width: 34em; margin: 0 0 30px; font-size: 16px; line-height: 1.95; color: var(--rail-text); }
.about-hero-lead b { color: var(--paper); }
.about-hero-note { margin: 18px 0 0; font-size: 13px; color: var(--rail-text); }
.about-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* 藍の面の上の副ボタン（線だけ。面は透かす） */
.btn.btn-ink { background: var(--glass-bg) border-box; color: var(--paper); border-color: var(--glass-line); box-shadow: var(--glass-hl); }
.btn.btn-ink:hover { background: color-mix(in srgb, var(--paper) 12%, transparent) border-box; border-color: var(--paper); }
/* 入口は、どこからでも */
.about-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.about-doors li { display: grid; justify-items: center; gap: 8px; padding: 28px 18px; text-align: center; border-radius: var(--r-lg); }
.about-doors li .ill-spot { margin-bottom: 6px; }
.about-doors b { font-size: 15.5px; }
.about-doors small { font-size: 13px; color: var(--text-dim); }
.about-converge { height: 56px; }
.about-converge svg { display: block; width: 100%; height: 100%; }
.about-one { display: flex; align-items: center; gap: 12px; width: fit-content; margin: 0 auto; padding: 8px 24px 8px 8px; border-radius: 999px; background: var(--ink-grad); color: var(--on-ink); font-size: 16px; }
.about-one .ill-avatar { width: 38px; background: var(--on-ink); color: var(--ink); }
/* できること・レベル */
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.about-card { --face: var(--bg-grad); padding: 26px 24px; border-radius: var(--r-lg); }
.about-card h3 { margin: 18px 0 8px; font-size: 16.5px; line-height: 1.5; }
.about-card p, .about-level p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text-dim); }
.about-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* レベルのカード：縁と右の −9° の斜めの帯を、そのレベルの金属の色に（2026-10-29 案5）。札は大きめ */
.about-level { position: relative; isolation: isolate; overflow: hidden; padding: 24px; background: var(--bg-grad); border: 1px solid var(--lv-bd); border-radius: var(--r-lg); }
.about-level::after { content: ""; position: absolute; z-index: -1; right: 16px; top: -20%; width: 44px; height: 140%;
  background: color-mix(in oklab, var(--lv-tint) 55%, transparent); transform: skewX(-9deg); pointer-events: none; }
.about-level .level { height: 36px; padding: 0 16px 0 13px; gap: 10px; font-size: 15px; border-radius: 12px; }
.about-level .lv-medal { width: 26px; height: 26px; }
.about-level .lv-medal svg { width: 17px; height: 17px; }
.about-level p { margin-top: 14px; }
/* つながるサービス */
.about-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.about-svc { display: flex; gap: 18px; padding: 26px; border-radius: var(--r-lg); }
.about-svc p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text-dim); }
.about-svc .about-svc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 8px; font-size: 16.5px; color: var(--text); }
.about-chip { --face: linear-gradient(transparent, transparent); --line: var(--border-strong-grad); display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.about-chip.on { --face: var(--ink-grad); --line: var(--ink-line); color: var(--on-ink); }
/* はじめ方：朱の数字（小さな印なので −9°） */
.about-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.about-steps li { display: flex; align-items: flex-start; gap: 16px; padding: 22px 4px 0; border-top: 2px solid; border-image: var(--ink-line) 1; }
.about-step-n { display: inline-block; min-width: .7em; font-size: 44px; font-weight: 700; line-height: 1; color: var(--accent); transform: skewX(-9deg); }
.about-steps b { font-size: 16.5px; }
.about-steps p { margin: 6px 0 0; font-size: 14px; line-height: 1.85; color: var(--text-dim); }
/* よくある質問 */
.about-narrow h2 { margin-bottom: 18px; }
.about-faq { border-bottom: 1px solid; border-image: var(--border-grad) 1; }
.about-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 2px; font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; }
.about-faq summary::-webkit-details-marker { display: none; }
.about-faq summary .ic { flex: none; color: var(--text-dim); transition: transform .2s; }
.about-faq[open] summary .ic { transform: rotate(90deg); }
.about-faq p { margin: 0 0 20px; font-size: 14.5px; line-height: 1.9; color: var(--text-dim); }
/* 終わりの藍の札 */
.about-final { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
  padding: 44px 48px; border-radius: 24px; background: var(--rail-grad); color: var(--paper); }
.about-final::before { content: ""; position: absolute; z-index: -1; right: 16%; top: -20%; width: 96px; height: 140%; background: var(--glass-bg); transform: skewX(-9deg); }
/* 朱の −9° の印：英字の見出しの左に（前は札の左の縁に置き、角丸で切れて欠けた線に見えた。2026-10-30 見直しの 5） */
.about-final .about-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.about-final .about-eyebrow::before { content: ""; width: 4px; height: 14px; border-radius: 1px; flex: none; background: var(--mark-grad); transform: skewX(-9deg); }
.about-final h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); color: var(--paper); }
.about-final p { margin: 0; color: var(--rail-text); }
.about-final .about-eyebrow { color: var(--rail-text); }
.about-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 36px 0 0; font-size: 13px; }
.about-legal a { color: var(--text-dim); }
@media (max-width: 900px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-hero .ill-hub { max-width: 460px; }
  .about-grid, .about-levels, .about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .about-wrap { padding: 0 16px; }
  .about-sec { padding: 56px 0; }
  .about-hero { padding-top: 36px; }
  .about-logo { width: 120px; margin-bottom: 22px; }
  .about-doors, .about-grid, .about-levels, .about-steps, .about-svcs { grid-template-columns: 1fr; }
  .about-converge { height: 28px; }
  .about-converge svg { display: none; }
  .about-svc { flex-direction: column; }
  .about-final { grid-template-columns: 1fr; padding: 32px 22px 28px; }
  .about-cta-row .btn { flex: 1 1 100%; }
}
/* 入口（/）の藍の面から説明へ */
.entry .ink .more { margin: 28px 0 0; }
.entry .ink .more a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px;
  color: var(--paper); font-weight: 700; text-decoration: none;
  background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-hl);
  transition: background .15s ease, transform .15s ease; }
.entry .ink .more a:hover { background: color-mix(in oklab, var(--paper) 14%, transparent); transform: translateX(2px); }
.entry .ink .more a .ic { width: 18px; height: 18px; }
/* アプリから来た人のプロフィールの画面の上（アプリ ⟷ ClickGoアカウントの絵） */
.form-app { max-width: 440px; }

/* ── 絵の補助の色（2026-10-24 ユーザー決定「案B2：やわらか」＝淡い面に、アイコンと印を補助の色で。同日「案B：濃い面」から変更。
   絵の中だけ。ボタン・文字などの部品は基本の色のまま）──
   意味：露草＝ClickGo のアプリ・組織で使うアプリ・招待（藍リブランドで絵の中の「藍」から露草に。イラスト規定 v0.8。変数の名前 --ill-ai は引き継ぎ）／
   若竹＝あなた個人のもの／山吹＝みんな（組織・チーム）／藤＝守り・安心。
   デザインガイド 2-2 の例外の表とイラスト規定 §2 に登録した色。値はここだけに書く */
:root {
  --ill-ai: #3a78b0; --ill-ai-tint: #dceaf6;
  --ill-take: #3d7a5b; --ill-take-tint: #dcebe2;
  --ill-yama: #c9922c; --ill-yama-tint: #f5e7c9;
  --ill-fuji: #6f5f9a; --ill-fuji-tint: #e5e0f0;
  /* 山吹は明るいので、淡い面の上のアイコンは濃藍と混ぜて濃く（明るさの比 3:1 以上。そのままでは 2.2:1） */
  --ill-yama-ink: color-mix(in srgb, var(--ill-yama) 65%, var(--ai));
  --spot-keep: 60%; /* 小さな絵の右下：濃い色を残す割合（残りが朱の淡い色）。暗い表示では朱を弱めて 75%（青・緑と朱が打ち消し合って濁るため） */
  /* 小さな絵の光と影（和紙と光縁）：上の縁の光の線・左上のやわらかな光・下のうすい影。暗い表示では光を弱め、影を濃く */
  --spot-hl: rgb(255 255 255 / .84); --spot-hl-soft: rgb(255 255 255 / .48); --spot-shadow: rgb(12 23 44 / .08);
  --ill-phone: var(--paper); --ill-phone-frame: color-mix(in srgb, var(--paper) 25%, var(--ai));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ill-ai: #8fc0ea; --ill-ai-tint: #243b52; --ill-take: #8cc3a6; --ill-take-tint: #2a3a31;
  --ill-yama: #e3b866; --ill-yama-tint: #3e3424; --ill-fuji: #b1a5d6; --ill-fuji-tint: #353046;
  --ill-yama-ink: var(--ill-yama); --ill-phone: var(--surface-2); --spot-keep: 75%;
  --spot-hl: rgb(255 255 255 / .14); --spot-hl-soft: rgb(255 255 255 / .07); --spot-shadow: rgb(0 0 0 / .35);
} }
:root[data-theme="dark"] {
  --ill-ai: #8fc0ea; --ill-ai-tint: #243b52; --ill-take: #8cc3a6; --ill-take-tint: #2a3a31;
  --ill-yama: #e3b866; --ill-yama-tint: #3e3424; --ill-fuji: #b1a5d6; --ill-fuji-tint: #353046;
  --ill-yama-ink: var(--ill-yama); --ill-phone: var(--surface-2); --spot-keep: 75%;
  --spot-hl: rgb(255 255 255 / .14); --spot-hl-soft: rgb(255 255 255 / .07); --spot-shadow: rgb(0 0 0 / .35);
}
/* --ill-c＝その色（印・紙吹雪）、--ill-c-tint＝淡い面、--ill-c-ink＝淡い面の上のアイコンと印 */
.ill-tone-ai { --ill-c: var(--ill-ai); --ill-c-tint: var(--ill-ai-tint); --ill-c-ink: var(--ill-ai); }
.ill-tone-take { --ill-c: var(--ill-take); --ill-c-tint: var(--ill-take-tint); --ill-c-ink: var(--ill-take); }
.ill-tone-yama { --ill-c: var(--ill-yama); --ill-c-tint: var(--ill-yama-tint); --ill-c-ink: var(--ill-yama-ink); }
.ill-tone-fuji { --ill-c: var(--ill-fuji); --ill-c-tint: var(--ill-fuji-tint); --ill-c-ink: var(--ill-fuji); }
.ill-tone-sumi { --ill-c: var(--ink); --ill-c-tint: var(--surface-2); --ill-c-ink: var(--ink); }
.ill-tone-shu { --ill-c: var(--shu); --ill-c-tint: var(--shu-tint); --ill-c-ink: var(--shu-text); }
/* 淡い面（札・小さな絵）：面は淡い色、アイコンは補助の色、札の名前の字は濃藍（暗い表示では陽だまり）。準備中の札は朱の縁のまま */
.ill-tile[class*="ill-tone-"] { background: var(--ill-c-tint); border-color: transparent; }
.ill-spot[class*="ill-tone-"] { --spot-bg: var(--ill-c-tint); --spot-c: var(--ill-c); --spot-deep: color-mix(in oklab, var(--ill-c) 26%, var(--ill-c-tint)); }
.ill-tile[class*="ill-tone-"] { color: var(--text); }
.ill-spot[class*="ill-tone-"], .ill-tile[class*="ill-tone-"] .ic, .ill-spot[class*="ill-tone-"] .ic { color: var(--ill-c-ink); }
/* つなぎの絵：アプリの印は、アプリの種類の色（組織のアプリ＝露草、個人・両方のアプリ＝若竹）を淡い面と縁で。盾は藤 */
.ill-link[class*="ill-tone-"] { background: var(--ill-c-tint); }
.ill-link[class*="ill-tone-"] .ill-link-app { background: var(--ill-c-tint); color: var(--ill-c-ink); border: 2px solid var(--ill-c-ink); }
/* 盾の印：白い丸に藤の盾（前は藤の淡い面で、つなぎの絵の淡い面の上ではほとんど見えなかった。2026-10-30 見直しの 8） */
.ill-link-badge { width: 34px; height: 34px; background: var(--surface); color: var(--ill-fuji); border: 1.5px solid color-mix(in oklab, var(--ill-fuji) 50%, transparent);
  box-shadow: inset 0 1px 0 var(--spot-hl), 0 1px 2px var(--spot-shadow), 0 4px 10px -4px color-mix(in oklab, var(--ill-fuji) 45%, transparent); }
.ill-link-badge .ic { width: 18px; height: 18px; }
/* 札（「〇〇 にログイン」の図）・スマホの絵のアイコンと知らせの札も、小さな絵（.ill-spot）と同じ「和紙と光縁」の塗りに（前は平らな淡い色。2026-10-30 見直しの 15）。
   塗りの中身は .ill-spot と同じ（色の札は補助の色を 26%）。スマホの絵の中は小さいので、下の影は短く */
.ill-tile[class*="ill-tone-"], .ill-ph-ic, .ill-ph-badge { --spot-bg: var(--ill-c-tint); --spot-c: var(--ill-c); --spot-deep: color-mix(in oklab, var(--ill-c) 26%, var(--ill-c-tint));
  background: radial-gradient(110% 90% at 15% 10%, var(--spot-hl-soft) 0%, transparent 58%),
    linear-gradient(152deg, color-mix(in oklab, var(--spot-bg) 52%, var(--surface)) 0%, var(--spot-bg) 46%,
      color-mix(in oklab, var(--spot-deep) var(--spot-keep), var(--shu-tint-strong)) 100%);
  box-shadow: inset 0 1.5px 1px var(--spot-hl), inset 0 0 0 1px color-mix(in oklab, var(--spot-c) 18%, transparent),
    0 1px 2px var(--spot-shadow), 0 5px 12px -4px color-mix(in oklab, var(--spot-c) 16%, var(--spot-shadow)); }
.ill-tile[class*="ill-tone-"] .ic { filter: drop-shadow(0 1px 0 var(--spot-hl-soft)); }
.ill-ph-ic, .ill-ph-badge { box-shadow: inset 0 1px .5px var(--spot-hl), inset 0 0 0 1px color-mix(in oklab, var(--spot-c) 18%, transparent), 0 1px 2px var(--spot-shadow); }
/* まん中のアカウントは朱の丸、輪は露草 */
.ill-core .ill-avatar { background: var(--mark-grad); color: var(--paper); }
.ill-ring { stroke: var(--ill-ai); opacity: .45; }

@media (max-width: 900px) { .about-hero .ill-phone { max-width: 460px; } }

/* 「スマホの画面」の絵 v2（2026-10-24「なんかダサい。洗練されたデザインにして」）：細い枠・アカウントのカード・つながっているサービスの一覧・後ろに −9° の色の面 */
.ill-phone { position: relative; width: 100%; max-width: 540px; aspect-ratio: 6 / 5; margin: 0 auto; container-type: inline-size; isolation: isolate; }
.ill-ph-plane { position: absolute; z-index: -1; border-radius: 2.4cqi; background: var(--ill-c-tint); transform: skewX(-9deg); }
.ill-ph-plane-1 { left: 20%; top: 20%; width: 30%; height: 70%; }
.ill-ph-plane-2 { left: 56%; top: 6%; width: 22%; height: 42%; opacity: .92; }
.ill-ph-stripe { position: absolute; z-index: -1; left: 75%; top: 56%; width: 1.4cqi; height: 30%; border-radius: 1cqi; background: var(--mark-grad); transform: skewX(-9deg); }
.ill-ph-body { position: absolute; left: 32%; top: 1%; width: 36%; height: 98%; overflow: hidden; display: flex; flex-direction: column; gap: 1.8cqi;
  padding: 2.6cqi 2.6cqi 3.4cqi; border-radius: 5.6cqi; background: var(--ill-phone); border: .9cqi solid color-mix(in srgb, var(--paper) 20%, var(--ai)); color: var(--text); }
.ill-ph-status { display: flex; align-items: center; justify-content: space-between; padding: 0 1cqi; font-family: var(--font-mono); font-size: 1.7cqi; font-weight: 700; }
.ill-ph-status i { width: 3.4cqi; height: 1.5cqi; border-radius: .5cqi; border: .25cqi solid currentColor; opacity: .7; }
.ill-ph-eyebrow { margin: 1cqi 0 0; padding: 0 .6cqi; font-size: 1.6cqi; font-weight: 700; letter-spacing: .12em; color: var(--text-dim); }
.ill-ph-acct { display: flex; align-items: center; gap: 1.8cqi; padding: 2cqi; border-radius: 2.6cqi; background: color-mix(in srgb, var(--ink) 6%, var(--ill-phone)); }
.ill-ph-acct .ill-avatar { width: 6cqi; background: var(--mark-grad); color: var(--paper); }
.ill-ph-acct-text { display: grid; gap: .5cqi; min-width: 0; line-height: 1.3; }
.ill-ph-acct-text > b { font-size: 1.9cqi; white-space: nowrap; }
/* スマホの絵の中のレベルの札（.level を絵の大きさ＝cqi に縮めたもの） */
.ill-ph-acct-text small { position: relative; overflow: hidden; justify-self: start; display: inline-flex; align-items: center; gap: .6cqi; height: 2.9cqi; padding: 0 1.1cqi 0 1cqi; border-radius: .8cqi;
  font-size: 1.45cqi; font-weight: 700; line-height: 1; color: var(--lv-ink); border: .16cqi solid var(--lv-bd); background: linear-gradient(135deg, var(--lv-hi), var(--lv-mid)); }
.ill-ph-acct-text small::before { content: ""; position: absolute; left: -.3cqi; top: 0; bottom: 0; width: .65cqi; background: linear-gradient(180deg, var(--lv-c), var(--lv-deep)); transform: skewX(-9deg); }
.ill-ph-acct-text small .lv-medal { width: 2.1cqi; height: 2.1cqi; border-width: .12cqi; }
.ill-ph-acct-text small .lv-medal svg { width: 1.45cqi; height: 1.45cqi; filter: none; }
.ill-ph-label { margin: .8cqi 0 0; padding: 0 .6cqi; font-size: 1.5cqi; color: var(--text-dim); }
.ill-ph-rows { list-style: none; margin: 0; padding: 0 .6cqi; display: grid; }
.ill-ph-rows li { display: flex; align-items: center; gap: 1.6cqi; padding: 1.5cqi 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, var(--ill-phone)); }
.ill-ph-rows li:last-child { border-bottom: 0; }
.ill-ph-rows b { flex: 1; font-size: 1.85cqi; white-space: nowrap; }
.ill-ph-rows li > .ic { width: 2.2cqi; height: 2.2cqi; color: var(--text-dim); }
.ill-ph-rows small { flex: none; padding: 0 1cqi; font-size: 1.3cqi; white-space: nowrap; border: 1px solid currentColor; border-radius: 99px; color: var(--ill-take); }
.ill-ph-ic { display: grid; place-items: center; flex: none; width: 4.4cqi; height: 4.4cqi; border-radius: 1.3cqi; background: var(--ill-c-tint); color: var(--ill-c-ink); }
.ill-ph-ic .ic { width: 2.6cqi; height: 2.6cqi; }
.ill-ph-cta { margin-top: auto; height: 4.6cqi; border-radius: 99px; background: var(--btn-grad); }
.ill-ph-home { margin-top: 1.6cqi; align-self: center; width: 11cqi; height: .8cqi; border-radius: 1cqi; background: color-mix(in srgb, var(--ink) 25%, var(--ill-phone)); }
.ill-ph-float { position: absolute; display: inline-flex; align-items: center; gap: 1.6cqi; padding: 1.5cqi 2.6cqi 1.5cqi 1.5cqi; border-radius: 2.6cqi;
  color: var(--text); white-space: nowrap; box-shadow: var(--card-shadow); }
.ill-ph-float > span:last-child { display: grid; line-height: 1.3; }
.ill-ph-float b { font-size: 2.1cqi; } .ill-ph-float small { font-size: 1.6cqi; color: var(--text-dim); }
.ill-ph-badge { display: grid; place-items: center; width: 4.8cqi; height: 4.8cqi; border-radius: 50%; background: var(--ill-c-tint); color: var(--ill-c-ink); }
.ill-ph-badge .ic { width: 2.8cqi; height: 2.8cqi; }
.ill-ph-float-1 { left: 3%; top: 24%; }
.ill-ph-float-2 { right: 2%; top: 66%; }

/* ── 迎える面（デザインガイド 1-3。2026-10-24）：手順・見出しの絵・できあがり・知らせ・扉と札の小さな絵 ── */
.ill-steps { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 12px; }
.ill-steps li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; border-radius: var(--r-lg); }
.ill-steps li > div { min-width: 0; }
.ill-steps li p { margin: 0; }
.ill-steps-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 4px !important; }
.ill-steps-n { display: inline-block; font-size: 22px; font-weight: 700; line-height: 1; color: var(--accent); transform: skewX(-9deg); }
.ill-steps-head b { font-size: 15.5px; }
.ill-steps li > div > p:last-child { font-size: 14px; color: var(--text-dim); }
.ill-h { display: flex; align-items: center; gap: 12px; }
.ill-h .ill-spot { width: 40px; height: 40px; border-radius: 12px; }
.ill-h .ill-spot .ic { width: 21px; height: 21px; }
/* できあがり：アカウントのカードと完了の丸のチェック（深若竹の塗り丸。ガイド 4-3 仕上げB）、まわりに紙吹雪（補助の色の小さな印） */
.ill-done { position: relative; width: 260px; max-width: 100%; height: 150px; margin: 0 auto 22px; }
.ill-done-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; width: 176px;
  padding: 16px 18px; border-radius: 18px; box-shadow: var(--card-shadow); }
.ill-done-card .ill-avatar { width: 40px; background: var(--mark-grad); color: var(--paper); }
.ill-done-lines { display: grid; flex: 1; gap: 7px; }
.ill-done-lines i { height: 7px; border-radius: 4px; background: var(--surface-3-grad); }
.ill-done-lines i + i { width: 60%; }
.ill-done-check { position: absolute; right: -15px; top: -15px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt-grad); }
.ill-done-check .ic { width: 38px; height: 38px; }
.ill-bit { position: absolute; background: var(--ill-c); }
.ill-bit.bar { width: 18px; height: 6px; border-radius: 2px; transform: skewX(-9deg); }
.ill-bit.dot { width: 9px; height: 9px; border-radius: 50%; }
/* 知らせ（うまくいかなかったとき・登録が無いとき）：左に小さな絵 */
.ill-note { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 8px; }
.ill-note > div { min-width: 0; }
.ill-note > div > p:first-child { margin-top: 6px; }
/* 「うまくいきませんでした」「ページが見つかりません」のカード：小さな絵・何が起きたか・次にすること（ボタン）・問い合わせ先（2026-10-30 見直しの 7・13） */
.err-card { max-width: 560px; }
.err-card .card-body { padding-top: 24px; padding-bottom: 24px; }
.err-card .ill-spot { margin-bottom: 14px; }
.err-lead { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.6; }
.err-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.err-foot { margin: 16px 0 0; font-size: 13.5px; color: var(--text-dim); }
.empty .ill-spot { margin: 0 auto 10px; }
/* 組織を選ぶ：入口の扉と同じ形のボタン */
form.choose { margin: 0; }
form.choose button.door-card { --over: transparent; --face: var(--bg-alt-grad); --line: var(--border-grad); width: 100%; min-height: 0; justify-content: flex-start; text-align: left;
  white-space: normal; font-size: inherit; font-weight: 400; line-height: inherit; color: inherit; border: 1px solid transparent; border-radius: var(--r-lg); padding: 18px 20px; margin: 0 0 12px;
  background: linear-gradient(var(--over), var(--over)) padding-box, var(--face) padding-box, var(--line) border-box; box-shadow: var(--card-shadow); }
form.choose button.door-card .ic { --ic-shu: var(--ic-shu-base); }
form.choose button.door-card > .ic { width: 24px; height: 24px; color: var(--text-dim); }

/* ── 正本② 案V1：ビビッド・ソリッドタイル（2026-11-29 決定。ガイド 4-3・ブランド規定 第5章）──
   押す主役の大きなカード（入口の扉・マイアカウントの4つの札・招待の扉・組織を選ぶ扉・「どこで使いますか」の扉）の左のアイコンは、
   高彩度5色の立体グラデーションの座布団に、白の単色版のピクト（src/illust.ts の illSpot の中身は単色版）。
   色は札の tone から：若竹＝take、露草（藍）＝ai、山吹＝yama、朱＝shu、藤・墨＝濃藍グロウ koki（仕上げA：ネオンパープルの代わり）。
   押さない説明の小さな絵（/about の札・手順・空のとき・うまくいかなかったとき）は、上の「和紙と光縁」のまま */
/* 組織を選ぶ扉（form.choose button.door-card）も .door-card なので、ここで一緒に塗る（強い選択子を足すと、下の色の決まりに勝ってしまう） */
.door-card > .ill-spot, .tile > .ill-spot {
  --v1: var(--v1-koki); --v1-glow: var(--v1-koki-glow);
  width: 44px; height: 44px; border-radius: 12px; color: var(--on-v1); background: var(--v1); border: 1px solid var(--v1-rim); box-shadow: var(--v1-glow); }
.door-card > .ill-spot.ill-tone-take, .tile > .ill-spot.ill-tone-take { --v1: var(--v1-take); --v1-glow: var(--v1-take-glow); }
.door-card > .ill-spot.ill-tone-ai, .tile > .ill-spot.ill-tone-ai { --v1: var(--v1-ai); --v1-glow: var(--v1-ai-glow); }
.door-card > .ill-spot.ill-tone-yama, .tile > .ill-spot.ill-tone-yama { --v1: var(--v1-yama); --v1-glow: var(--v1-yama-glow); }
.door-card > .ill-spot.ill-tone-shu, .tile > .ill-spot.ill-tone-shu { --v1: var(--v1-shu); --v1-glow: var(--v1-shu-glow); }
.door-card > .ill-spot[class] .ic, .tile > .ill-spot[class] .ic { width: 23px; height: 23px; color: var(--on-v1); filter: none; }
.tile > .ill-spot { margin-bottom: 8px; }
.entry .door > a.door-card:has(.door-go-pill) > .ill-spot { width: 52px; height: 52px; border-radius: 13px; }
.entry .door > a.door-card:has(.door-go-pill) > .ill-spot .ic { width: 26px; height: 26px; }
/* 扉に触れたとき：縁に朱を少し混ぜ、影を少し深くして浮かせる。タイルは少し大きく、矢印は少し右へ（和紙と光縁。2026-10-28） */
.door-card, .door-card > .ill-spot, .door-card > .ic { transition: transform .18s ease, box-shadow .18s ease, color .18s ease; }
a.door-card:hover, form.choose button.door-card:hover {
  --over: var(--hover); --line: linear-gradient(color-mix(in oklab, var(--border-strong) 70%, var(--accent)), color-mix(in oklab, var(--border-strong) 70%, var(--accent)));
  box-shadow: var(--card-shadow), 0 10px 24px -10px var(--shadow-strong); }
a.door-card:hover > .ic, form.choose button.door-card:hover > .ic { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  a.door-card:hover, form.choose button.door-card:hover { transform: translateY(-1px); }
  a.door-card:hover > .ill-spot, form.choose button.door-card:hover > .ill-spot { transform: scale(1.04); }
  a.door-card:hover > .ic, form.choose button.door-card:hover > .ic { transform: translateX(3px); }
  .entry .door > a.door-card:hover .door-go-pill { transform: translateX(2px); }
}
/* 長い文字のボタン（例：社員・メンバーを招待する（管理画面を開く））は、狭い幅では折り返す（スマホではみ出していた。2026-10-24）。
   ただし言葉の途中では折らない（keep-all。横に並んだ「外す」「適用」などが縮んで、1文字ずつ縦に折れていた。2026-10-30 261001-01 の見直し）。
   区切りの無い長い言葉だけは、はみ出す前に折る（break-word。最小の幅は変えないので、短いボタンは縮まない）。
   2行に折れたときに字が上下の枠にくっつかないよう、上下に 6px（1行のボタンは最小の高さのほうが大きいので、高さは変わらない。2026-10-30） */
@media (max-width: 520px) { .btn, button { max-width: 100%; white-space: normal; text-align: center; word-break: keep-all; overflow-wrap: break-word; padding-top: 6px; padding-bottom: 6px; } .btn.go { height: auto; padding-top: 10px; padding-bottom: 10px; } }
/* とても狭い幅（359px まで）では、左の「アカウント」などの字は … だけになるので出さない（2026-10-30） */
@media (max-width: 359px) { .brand .area { display: none; } }
/* キーボードで選んでいる所の輪（仕様 10章：落とさない）。カードの影・ボタンの影より必ず前に出す。
   カードの中で枠に切られる札・行・左の案内は、内側の輪にする */
:focus-visible { outline: none; box-shadow: var(--focus) !important; }
.tile:focus-visible, a.item:focus-visible, .sidenav a:focus-visible, .scroll.cards tr:focus-visible { box-shadow: var(--focus-in) !important; }
