/* LPcats heatmap の部品（LPcats デザインシステム docs/design/LPCATS_DESIGN.md の部品を素の HTML/CSS で再現したもの）
 *
 * - 寸法・状態は Figma の LPcats DS で確かめた値（docs/design/figma_spec.md）。Figma と DESIGN.md が違うところは Figma を優先
 * - 値は tokens.css の役割の変数だけを使う（色の直書き・パレット変数の直接使用はしない）。余白は推奨の 4/8/12/16/24 に丸めている
 * - クラス名は DESIGN.md の部品名: .button / .button--line（変種）/ .button__icon（中の要素）
 *   状態は .is-selected / .is-disabled / .has-error、レイアウトは .l-*、JS の目印は .js-*（ここでは定義しない）
 * - アイコンは Figma の LPcats DS から取り込んだ SVG（app/static/ds/icons/）を mask で描き、色は文字色（currentColor）に合わせる。
 *   どのアイコンかは要素の style="--_icon:url(/static/ds/icons/xxx.svg)" で渡す
 * - DS の色のうち、文字のコントラスト（4.5。大きい文字は 3.0）が足りない組み合わせは、同じ役割で足りる色に寄せている
 *   （例: Gray03＝text/disable の文字 → text/sub、primary/10 の上の primary の文字 → text/secondary、text/error の文字 → 黒＋赤い線）。
 *   寄せた箇所の一覧は docs/design/DS_AUDIT.md の「デザイナーに確認したいこと」
 * - 「黒87%」（Vuetify 標準・既存のみ）は、新しい画面なので text/black にそろえている（DESIGN.md 決定事項）
 * - 部品を足したら python3 scripts/ds/components.py で台帳（docs/design/components.json）を作り直す
 */

/* ============================================================ 土台 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--bg-page);
  color: var(--text-black);
  font-family: var(--font-family);
  font-size: var(--font-size-14);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: var(--font-family); font-size: var(--font-size-14); color: var(--text-black); }
a { color: var(--text-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ol, ul { margin: 0; }
img { display: block; }
/* 表示の切り替えは hidden 属性で行う。部品の display より強くするため、:not(#…) で詳細度を上げている（!important は使わない） */
[hidden]:not(#ds-hidden) { display: none; }
/* 利用者画面の差し込み口（docs/OPS_SPEC.md §2.11 の data-slot）。中身が無いときは場所を取らない（既存の画面の見た目を変えない） */
[data-slot]:empty { display: none; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* ============================================================ レイアウト（l-*） */
/* 管理画面の枠: 上にヘッダー（56px）、左にサイドナビ（220px）、右にメイン（背景 bg/page・左右 24px） */
.l-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.l-side-nav { position: sticky; top: 56px; height: calc(100vh - 56px); background-color: var(--bg-white); border-right: 1px solid var(--border-default); display: flex; flex-direction: column; }
.l-side-nav__spacer { flex: 1; }
.l-main { padding: 0 var(--space-24) var(--space-24); min-width: 0; }
.l-stack { display: flex; flex-direction: column; gap: var(--space-24); }
.l-stack--16 { gap: var(--space-16); }
.l-stack--12 { gap: var(--space-12); }
.l-stack--8 { gap: var(--space-8); }
.l-stack--4 { gap: var(--space-4); }
.l-row { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.l-row--12 { gap: var(--space-12); }
.l-row--24 { gap: var(--space-24); }
.l-row--between { justify-content: space-between; }
.l-row--end { justify-content: flex-end; }
.l-row--top { align-items: flex-start; }
.l-row--nowrap { flex-wrap: nowrap; }
.l-grow { flex: 1; min-width: 0; }
.l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(173px, 1fr)); gap: var(--space-16); }
.l-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); }
.l-scroll-x { overflow-x: auto; }
.l-sticky { position: sticky; top: 72px; max-height: calc(100vh - 96px); overflow: auto; }
.l-auth { min-height: 100vh; display: grid; place-items: center; padding: var(--space-24); }
.l-doc { max-width: 880px; margin: 0 auto; padding: var(--space-24); }
.l-toast { position: fixed; left: 50%; bottom: var(--space-24); transform: translateX(-50%); z-index: 30; max-width: min(640px, calc(100vw - 32px)); }
.l-lp { display: flex; align-items: flex-start; gap: var(--space-24); }
@media (max-width: 760px) {
  .l-app { grid-template-columns: minmax(0, 1fr); }
  .l-side-nav { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border-default); }
  .l-side-nav__spacer { display: none; }
  .l-main { padding: 0 var(--space-12) var(--space-24); }
  .l-columns { grid-template-columns: 1fr; }
  .l-lp { flex-direction: column; }
}

/* ============================================================ アイコン（各部品の __icon で共通） */
.button__icon, .side-nav-item__icon, .side-nav-account__icon, .header-menu-button__icon, .tab__icon, .copy-button__icon,
.execute-button__icon, .breadcrumb__icon, .breadcrumb__sep, .metric-card__help, .table-cell__help, .modal__close-icon,
.date-input__icon, .help-link__icon, .notice-error-line__icon, .empty-state__icon, .upload-result__icon, .text-button__icon,
.condition-row__help, .password__icon, .stat-item__icon, .modal__done-icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--_icon) center / contain no-repeat;
  mask: var(--_icon) center / contain no-repeat;
}

/* ============================================================ ボタン（Button） */
/* button: M=高さ50 / S=44、角丸5、左右24、14px Bold、アイコン18（左・間隔8）。
   ホバーは灰色を4%重ねる（Figma: rgba(128,128,128,.04)。ここでは text/disable のグレーを 4%）。無効は bg/disable＋text/sub */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  height: 50px;
  padding: 0 var(--space-24);
  border: 0;
  border-radius: var(--radius-5);
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-26);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.button::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-color: var(--text-disable); opacity: 0; pointer-events: none; }
.button:hover { text-decoration: none; }
.button:hover::before { opacity: .04; }
.button__icon { width: 18px; height: 18px; }
.button--s { height: 44px; }
.button--full { width: 100%; }
.button--secondary { background-color: var(--bg-secondary); }
/* 線 primary（2px）: ホバーで primary の塗り＋白文字。無効は bg/hover＋線 border/disable */
.button--line { background-color: var(--bg-white); color: var(--text-primary); border: 2px solid var(--border-primary); }
.button--line:hover { background-color: var(--bg-primary); color: var(--text-white); }
.button--line:hover::before { opacity: 0; }
/* 線 赤（削除など）。Figma の文字は text/error だが白地で 3.48 しかないので、文字は黒にして線で示す */
.button--line-error { background-color: var(--bg-white); color: var(--text-black); border: 2px solid var(--border-error); }
/* button-本番のみ: 線グレー（プレビュー。高さ42・線 border/default・14px Regular・primary の文字） */
.button--line-gray { height: 42px; background-color: var(--bg-white); color: var(--text-primary); border: 1px solid var(--border-default); font-weight: var(--font-weight-regular); }
/* button-本番のみ: ソフト（編集。高さ40・角丸なし・primary/10・14px Medium）。ホバーで primary の塗り＋白 */
.button--soft { height: 40px; padding: 0 var(--space-16); border-radius: 0; background-color: var(--bg-primary-light); color: var(--text-secondary); font-weight: var(--font-weight-medium); }
.button--soft:hover { background-color: var(--bg-primary); color: var(--text-white); }
.button--soft:hover::before { opacity: 0; }
/* button-本番のみ: モーダル用（80×40・角丸3・14px Regular）。キャンセルは文字だけ、確定は primary の塗り */
.button--modal { min-width: 80px; height: 40px; padding: 0 var(--space-8); border-radius: var(--radius-3); font-weight: var(--font-weight-regular); }
.button--text { background-color: transparent; color: var(--text-black); }
.button:disabled, .button.is-disabled { background-color: var(--bg-disable); color: var(--text-sub); cursor: not-allowed; }
.button--line:disabled, .button--line.is-disabled, .button--line-error:disabled { background-color: var(--bg-hover); border-color: var(--border-disable); color: var(--text-sub); }
.button:disabled::before, .button.is-disabled::before { opacity: 0; }

/* button-large: ログイン前の画面の大きいボタン（全幅・高さ48・角丸5・16px Bold）。送信前は無効 */
.button-large {
  display: flex; align-items: center; justify-content: center; gap: var(--space-8);
  width: 100%; height: 48px; padding: 0 var(--space-24);
  border: 0; border-radius: var(--radius-5);
  background-color: var(--bg-primary); color: var(--text-white);
  font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); cursor: pointer;
}
.button-large--secondary { background-color: var(--bg-secondary); }
.button-large:disabled, .button-large.is-disabled { background-color: var(--bg-disable); color: var(--text-sub); cursor: not-allowed; }

/* text-button: 文字のボタン（14px Regular。Gray03 → text/sub）。アイコンつき（21px）と下線つき */
.text-button {
  display: inline-flex; align-items: center; gap: var(--space-4);
  padding: 0; border: 0; background-color: transparent; color: var(--text-sub);
  font-size: var(--font-size-14); font-weight: var(--font-weight-regular); line-height: 1.4; cursor: pointer; text-decoration: none;
}
.text-button:hover { color: var(--text-black); }
.text-button--underline { text-decoration: underline; }
.text-button__icon { width: 21px; height: 21px; }

/* execute-button: AI の実行ボタン（高さ36・左右24・角丸4・14px Bold）。通常は primary（本番で未確認のため仮置き） */
.execute-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  height: 36px; padding: 0 var(--space-24);
  border: 0; border-radius: var(--radius-4);
  background-color: var(--bg-primary); color: var(--text-white);
  font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: var(--line-height-26); cursor: pointer; white-space: nowrap;
}
.execute-button__icon { width: 18px; height: 18px; }
.execute-button:disabled { background-color: var(--bg-disable); color: var(--text-sub); cursor: progress; }

/* copy-button: アイコンつきの塗りボタン（高さ44・左右24・角丸5・14px Bold・アイコン20） */
.copy-button {
  display: inline-flex; align-items: center; gap: var(--space-8);
  height: 44px; padding: 0 var(--space-24);
  border: 0; border-radius: var(--radius-5);
  background-color: var(--bg-primary); color: var(--text-white);
  font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1; cursor: pointer; white-space: nowrap;
}

/* header-menu-button: ヘッダー・ページ見出しの右のボタン（高さ44・内側8・アイコン＋14px）。
   Figma の文字は text/disable だがヘッダーの背景（primary/20）の上で 2.94 なので text/sub */
.header-menu-button {
  display: inline-flex; align-items: center; gap: var(--space-4);
  height: 44px; padding: var(--space-8);
  border: 0; border-radius: var(--radius-5); background-color: transparent;
  color: var(--text-sub); font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.header-menu-button:hover { color: var(--text-black); text-decoration: none; }
.header-menu-button__icon { width: 20px; height: 20px; }

/* ============================================================ リンク（Link） */
/* help-link: ヘルプ・外部ページへのリンク。text/link（#2F80ED）は白地で 3.87 なので、文字は primary（白地で 4.58） */
.help-link { display: inline-flex; align-items: center; gap: var(--space-4); color: var(--text-primary); font-size: var(--font-size-14); line-height: 1.4; }
.help-link__icon { width: 16px; height: 16px; }

/* ============================================================ ナビゲーション（Navigation） */
/* app-header: 高さ56・primary/20・左16/右24。左にロゴ（108×27）、右に項目（間隔16） */
.app-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: var(--space-16);
  height: 56px; padding: 0 var(--space-24) 0 var(--space-16);
  background-color: var(--bg-primary-hover);
}
.app-header__logo { display: flex; align-items: center; gap: var(--space-8); text-decoration: none; }
.app-header__logo:hover { text-decoration: none; }
.app-header__logo-image { width: 108px; height: 27px; }
/* 「heatmap」の文字（LPcats heatmap 専用のロゴは DS に無いので、LPcats のロゴ＋文字で仮置き。21px Bold は大きい文字なので 3.51 で足りる） */
.app-header__product { font-size: var(--font-size-21); font-weight: var(--font-weight-bold); line-height: 1; color: var(--text-primary); }
.app-header__spacer { flex: 1; }

/* side-nav-item: 220×50、下線 border/default、アイコン20＋14px Bold。選択中は bg/primary＋白 */
.side-nav-item {
  display: flex; align-items: center; gap: var(--space-8); flex: none;
  height: 50px; padding: 0 var(--space-12);
  border-bottom: 1px solid var(--border-default);
  background-color: var(--bg-white); color: var(--text-black);
  font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: var(--line-height-26); text-decoration: none; white-space: nowrap;
}
.side-nav-item:hover { background-color: var(--bg-hover); text-decoration: none; }
.side-nav-item.is-selected { background-color: var(--bg-primary); color: var(--text-white); }

/* side-nav-account: サイドナビ下部のアカウント（高さ52・上線、32px の丸にビルのアイコン（primary）＋名前12px） */
.side-nav-account { display: flex; align-items: center; gap: var(--space-8); min-height: 52px; padding: var(--space-8) var(--space-12); border-top: 1px solid var(--border-default); background-color: var(--bg-white); }
.side-nav-account__avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--radius-full); background-color: var(--bg-page); color: var(--text-primary); }
.side-nav-account__icon { width: 16px; height: 16px; }
.side-nav-account__name { min-width: 0; font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-black); overflow-wrap: anywhere; }
.side-nav-account__company { display: block; font-weight: var(--font-weight-bold); }

/* page-header: パンくず＋見出し（21px Bold・text/secondary）、右にメニュー */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-16); padding: var(--space-16) 0; }
.page-header__main { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.page-header__title { font-size: var(--font-size-21); font-weight: var(--font-weight-bold); line-height: var(--line-height-29-2); color: var(--text-secondary); overflow-wrap: anywhere; }
.page-header__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); word-break: break-all; }
.page-header__actions { display: flex; align-items: center; gap: var(--space-8); flex: none; }

/* breadcrumb: フォルダ16（primary）→ 文字12px → 矢印14（Gray03 → text/sub）。
   文字の primary は bg/page の上で 4.13 なので、文字は text/secondary＋下線（フォルダのアイコンは primary のまま） */
.breadcrumb { display: flex; align-items: center; gap: var(--space-4); font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-secondary); }
.breadcrumb__item { color: var(--text-secondary); }
a.breadcrumb__item { text-decoration: underline; }
.breadcrumb__icon { width: 16px; height: 16px; color: var(--text-primary); }
.breadcrumb__sep { width: 14px; height: 14px; color: var(--text-sub); }

/* ============================================================ 入力欄（Text field） */
/* textbox: 独自のテキストボックス（高さ40・角丸3・線 border/strong・左右16・14px）。フォーカスは border/focus、エラーは border/error */
.textbox {
  height: 40px; width: 100%; padding: 0 var(--space-16);
  border: 1px solid var(--border-strong); border-radius: var(--radius-3);
  background-color: var(--bg-white); color: var(--text-black); font-size: var(--font-size-14); line-height: 1.4;
}
.textbox::placeholder, .textarea::placeholder, .auth-field__input::placeholder { color: var(--text-disable); }
.textbox:focus, .textarea:focus, .auth-field__input:focus { outline: none; border-color: var(--border-focus); }
.textbox.has-error, .auth-field__input.has-error, .textarea.has-error { border-color: var(--border-error); }
.textbox:disabled { background-color: var(--bg-hover); color: var(--text-sub); }
.textbox--s { height: 36px; padding: 0 var(--space-12); }
.textbox--m { max-width: 360px; }
.textbox--l { max-width: 600px; }

/* auth-field: ログイン画面の入力項目（ラベル14px・間隔8、入力欄 高さ54・線 border/strong・角丸3・左右16） */
.auth-field { display: flex; flex-direction: column; gap: var(--space-8); }
.auth-field__label { display: flex; align-items: center; gap: var(--space-8); font-size: var(--font-size-14); line-height: 1.4; color: var(--text-black); }
.auth-field__input {
  width: 100%; height: 54px; padding: 0 var(--space-16);
  border: 1px solid var(--border-strong); border-radius: var(--radius-3);
  background-color: var(--bg-white); color: var(--text-black); font-size: var(--font-size-14);
}

/* password: auth-field の入力欄の右に表示切替（目のアイコン21px・Gray03 → text/sub） */
.password { position: relative; display: block; }
.password .auth-field__input { padding-right: var(--space-24); }
.password__toggle {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: grid; place-items: center; width: 48px;
  border: 0; background-color: transparent; color: var(--text-sub); cursor: pointer;
}
.password__icon { width: 21px; height: 21px; }

/* textarea: 複数行の入力欄（角丸3・内側16/24・16px） */
.textarea {
  display: block; width: 100%; min-height: 152px; padding: var(--space-16) var(--space-24);
  border: 1px solid var(--border-strong); border-radius: var(--radius-3);
  background-color: var(--bg-white); color: var(--text-black);
  font-size: var(--font-size-16); line-height: 1.4; resize: vertical;
}

/* code-box: コードを表示する欄（読み取り専用。背景 bg/page・線 border/default・内側16・角丸なし） */
.code-box {
  margin: 0; padding: var(--space-16);
  border: 1px solid var(--border-default);
  background-color: var(--bg-page); color: var(--text-black);
  font-family: var(--font-family); font-size: var(--font-size-14); line-height: 1.5;
  white-space: pre-wrap; word-break: break-all;
}

/* ============================================================ 選択（Selection） */
/* dropdown: セレクト（高さ40・左右12・角丸4・線 border/strong・16px、右に下向き矢印）。開いたときは border/focus */
.dropdown {
  height: 40px; min-width: 200px; max-width: 100%;
  padding: 0 var(--space-24) 0 var(--space-12);
  border: 1px solid var(--border-strong); border-radius: var(--radius-4);
  background-color: var(--bg-white); color: var(--text-black);
  background-image: url(/static/ds/icons/caret-down.svg);
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px 16px;
  font-size: var(--font-size-16); line-height: 1.4;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.dropdown:focus { outline: none; border-color: var(--border-focus); }
.dropdown--s { height: 36px; min-width: 150px; font-size: var(--font-size-14); }
.dropdown--wide { min-width: 360px; }

/* checkbox / radio-button: 18px・線2px（Gray03）、選択中は primary。ラベル14px、選択中は黒、未選択は Gray03（→ text/sub）。間隔8 */
.checkbox, .radio-button { display: inline-flex; align-items: center; gap: var(--space-8); font-size: var(--font-size-14); line-height: 1.5; color: var(--text-sub); cursor: pointer; }
.checkbox:has(:checked), .radio-button:has(:checked) { color: var(--text-black); }
.checkbox:has(:disabled), .radio-button:has(:disabled) { color: var(--text-inactive); cursor: not-allowed; }
.checkbox__input, .radio-button__input {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0;
  width: 18px; height: 18px;
  border: 2px solid var(--text-disable); background-color: var(--bg-white); cursor: pointer;
  display: grid; place-items: center;
}
.checkbox__input { border-radius: var(--radius-3); }
.checkbox__input:checked { background-color: var(--bg-primary); border-color: var(--border-primary); }
.checkbox__input:checked::after {
  content: ""; width: 14px; height: 14px; background-color: var(--bg-white);
  -webkit-mask: url(/static/ds/icons/check.svg) center / contain no-repeat; mask: url(/static/ds/icons/check.svg) center / contain no-repeat;
}
.radio-button__input { border-radius: var(--radius-full); }
.radio-button__input:checked { border-color: var(--border-primary); }
.radio-button__input:checked::after { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background-color: var(--bg-primary); }
.checkbox__input:disabled, .radio-button__input:disabled { border-color: var(--border-strong); }
.checkbox__input:focus-visible, .radio-button__input:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* radio-group-inline: 横並びのラジオボタン（間隔12） */
.radio-group-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-12); }

/* ============================================================ タブ・切替（Tabs & Toggle） */
/* tab: LP詳細のタブ（140×48・16px Bold・アイコン21）。選択中は primary＋下線4px、通常は Gray03（→ text/sub） */
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-width: 140px; height: 48px; padding: 0 var(--space-16);
  border-bottom: 4px solid transparent;
  color: var(--text-sub); font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: 1; text-decoration: none; white-space: nowrap;
}
.tab:hover { color: var(--text-black); text-decoration: none; }
.tab.is-selected { color: var(--text-primary); border-bottom-color: var(--border-primary); }
.tab__icon { width: 21px; height: 21px; }
/* タブの並び（白い帯） */
.tab__list { display: flex; background-color: var(--bg-white); border-bottom: 1px solid var(--border-default); overflow-x: auto; }

/* folder-tab: 上だけ角丸のタブ（140×48）。選択中は primary の塗り＋白16px Bold、通常は白＋線 border/strong（下なし）・16px Medium */
.folder-tab {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 140px; height: 48px; padding: 0 var(--space-16);
  border: 1px solid var(--border-strong); border-bottom: 0;
  border-start-start-radius: var(--radius-5); border-start-end-radius: var(--radius-5);
  background-color: var(--bg-white); color: var(--text-sub);
  font-size: var(--font-size-16); font-weight: var(--font-weight-medium); line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.folder-tab:hover { color: var(--text-black); text-decoration: none; }
.folder-tab.is-selected { background-color: var(--bg-primary); border-color: var(--border-primary); color: var(--text-white); font-weight: var(--font-weight-bold); }
.folder-tab__list { display: flex; align-items: flex-end; gap: var(--space-8); flex-wrap: wrap; }

/* segmented-button: 文字の切替ボタン（140×48・14px）。選択中は primary/10＋primary の線、通常は白＋border/default。外側の角だけ角丸3。
   選択中の文字は Figma では primary だが primary/10 の上で 4.02 なので text/black の Bold */
.segmented-button { display: flex; }
.segmented-button__item {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center;
  min-width: 120px; height: 48px; padding: 0 var(--space-16);
  border: 1px solid var(--border-default); background-color: var(--bg-white);
  color: var(--text-sub); font-size: var(--font-size-14); line-height: 1.4; cursor: pointer;
}
.segmented-button__item + .segmented-button__item { border-left-width: 0; }
.segmented-button__item:first-child { border-start-start-radius: var(--radius-3); border-end-start-radius: var(--radius-3); }
.segmented-button__item:last-child { border-start-end-radius: var(--radius-3); border-end-end-radius: var(--radius-3); }
.segmented-button__item:has(:checked) { background-color: var(--bg-primary-light); color: var(--text-black); font-weight: var(--font-weight-bold); }
.segmented-button__item:has(:checked)::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--border-primary); border-radius: inherit; pointer-events: none; }
.segmented-button__item:has(:focus-visible) { outline: 2px solid var(--border-focus); outline-offset: -4px; }
.segmented-button__input { position: absolute; opacity: 0; pointer-events: none; }

/* ============================================================ バッジ（Badge） */
/* badge: 角丸なし・内側4/8・12px Bold。カテゴリは bg/page＋text/sub。
   重要は Figma では bg/error＋白だが 3.48 しかないので、白地＋error の線＋黒文字 */
.badge {
  display: inline-flex; align-items: center; padding: var(--space-4) var(--space-8);
  background-color: var(--bg-page); color: var(--text-sub);
  font-size: var(--font-size-12); font-weight: var(--font-weight-bold); line-height: var(--line-height-16-8); white-space: nowrap;
}
.badge--important { background-color: var(--bg-white); color: var(--text-black); border: 1px solid var(--border-error); }
.badge--success { background-color: var(--bg-success-light); color: var(--text-black); }

/* ============================================================ カード・パネル（Card & Panel） */
/* dashboard-panel: 白・線 border/default・角丸5・内側24、見出し16px Bold・secondary（見出しと中身の間隔16） */
.dashboard-panel { background-color: var(--bg-white); border: 1px solid var(--border-default); border-radius: var(--radius-5); padding: var(--space-24); }
.dashboard-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); flex-wrap: wrap; margin-bottom: var(--space-16); }
.dashboard-panel__title { font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); color: var(--text-secondary); }
.dashboard-panel__text { font-size: var(--font-size-14); line-height: var(--line-height-26); }
.dashboard-panel__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* setting-panel: 設定パネル（白・角丸10・内側24・線なし）、見出し16px Bold、行の間隔24 */
.setting-panel { background-color: var(--bg-white); border-radius: var(--radius-10); padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-16); }
.setting-panel__title { font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: 1.4; color: var(--text-black); }
.setting-panel__text { font-size: var(--font-size-14); line-height: var(--line-height-26); }
.setting-panel__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* status-card: 情報カード（線 border/default・角丸5）、見出し行（14px Bold・Gray03 → text/sub、内側12/16・下に区切り線） */
.status-card { background-color: var(--bg-white); border: 1px solid var(--border-default); border-radius: var(--radius-5); min-width: 0; }
.status-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-12) var(--space-16); border-bottom: 1px solid var(--border-default); font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: var(--line-height-26); color: var(--text-sub); }
.status-card__body { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-16); padding: var(--space-16); }
.status-card__body > .stat-item { flex: 1; min-width: 200px; }
.status-card__list { margin: 0; padding: var(--space-12) var(--space-16) var(--space-16) var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); }
.status-card__value { font-size: var(--font-size-19); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); }
.status-card__note { display: block; font-size: var(--font-size-12); font-weight: var(--font-weight-regular); color: var(--text-sub); line-height: var(--line-height-16-8); }
.status-card__empty { padding: var(--space-16); font-size: var(--font-size-14); color: var(--text-sub); }

/* stat-item: 情報カードの指標（36px の丸アイコン primary/10・線なし、ラベル 13px Bold → 12px・Gray03 → text/sub、値16px＋単位14px） */
.stat-item { display: flex; align-items: center; gap: var(--space-12); }
.stat-item__circle { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--radius-full); background-color: var(--bg-primary-light); color: var(--text-primary); }
.stat-item__text { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.stat-item__label { font-size: var(--font-size-12); font-weight: var(--font-weight-bold); line-height: var(--line-height-16-8); color: var(--text-sub); }
.stat-item__value { font-size: var(--font-size-16); line-height: var(--line-height-24); }
.stat-item__unit { font-size: var(--font-size-14); color: var(--text-sub); }

/* metric-card: 分析の指標カード（173幅・線 border/default・角丸5）。見出し帯 bg/page（14px Bold＋右に「？」21px）、値24px Bold */
.metric-card { background-color: var(--bg-white); border: 1px solid var(--border-default); border-radius: var(--radius-5); overflow: hidden; }
.metric-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); min-height: 33px; padding: var(--space-4) var(--space-8) var(--space-4) var(--space-12); background-color: var(--bg-page); font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1.5; }
.metric-card__help { width: 21px; height: 21px; color: var(--text-disable); cursor: help; }
.metric-card__value { padding: var(--space-12); font-size: var(--font-size-24); font-weight: var(--font-weight-bold); line-height: 1.4; }
.metric-card__unit { margin-left: var(--space-4); font-size: var(--font-size-14); font-weight: var(--font-weight-medium); }
/* 値の下の補足（前の段階からの割合など。12px Regular・text/sub） */
.metric-card__note { display: block; margin-top: var(--space-4); font-size: var(--font-size-12); font-weight: var(--font-weight-regular); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* info-box: 薄い primary の案内ボックス（primary/10・角丸3・内側16/24・間隔8）。
   見出しは Figma では primary だが primary/10 の上で 4.02 なので text/secondary */
.info-box { display: flex; align-items: center; gap: var(--space-16) var(--space-24); flex-wrap: wrap; padding: var(--space-16) var(--space-24); background-color: var(--bg-primary-light); border-radius: var(--radius-3); }
.info-box__body { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: var(--space-4); }
.info-box__title { font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: var(--line-height-26); color: var(--text-secondary); }
.info-box__text { font-size: var(--font-size-14); line-height: 1.4; color: var(--text-black); }
.info-box__inner { width: 100%; background-color: var(--bg-white); padding: var(--space-8) var(--space-16); font-size: var(--font-size-14); line-height: 1.4; }

/* info-panel: お問い合わせ・規約などの読むための白いパネル（角丸10）。中の見出し・表・リストもここで決める */
.info-panel { background-color: var(--bg-white); border-radius: var(--radius-10); padding: var(--space-24); font-size: var(--font-size-16); line-height: var(--line-height-29); }
.info-panel p, .info-panel ol, .info-panel ul, .info-panel table { margin-block: var(--space-8); }
.info-panel ol, .info-panel ul { padding-left: var(--space-24); }
.info-panel table { border-collapse: collapse; width: 100%; font-size: var(--font-size-14); line-height: var(--line-height-26); }
.info-panel th, .info-panel td { border: 1px solid var(--border-default); padding: var(--space-8) var(--space-12); text-align: left; vertical-align: top; }
.info-panel th { background-color: var(--bg-page); white-space: nowrap; font-weight: var(--font-weight-bold); }
.info-panel mark { background-color: var(--bg-primary-light); color: var(--text-black); }
.info-panel__note { margin-top: var(--space-24); font-size: var(--font-size-14); color: var(--text-sub); }
.info-panel__title { font-size: var(--font-size-21); font-weight: var(--font-weight-bold); line-height: var(--line-height-29-2); color: var(--text-secondary); }
/* info-section: 案内のまとまり（見出し19px Bold） */
.info-section { padding-top: var(--space-24); }
.info-section__title { font-size: var(--font-size-19); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); color: var(--text-secondary); padding-bottom: var(--space-8); border-bottom: 2px solid var(--border-primary); }
.info-section__subtitle { font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); margin-top: var(--space-24); }

/* ============================================================ テーブル・一覧（Table & List） */
/* table-cell: 分析テーブルのセル（高さ32・左右8）。
   見出し: primary/10・14px Bold・左に primary の線・下に影/テーブル見出しの下線（文字は primary/10 の上で読めるよう text/secondary）
   本文: 右寄せ（数値）・左と下に線（黒12% は既存のみなので border/default）。日付: bg/page */
.table-cell__table { width: 100%; border-collapse: collapse; background-color: var(--bg-white); }
.table-cell {
  height: 32px; padding: var(--space-4) var(--space-8);
  border-left: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default);
  font-size: var(--font-size-14); line-height: 1.5; text-align: left; white-space: nowrap; vertical-align: middle;
}
.table-cell:last-child { border-right: 1px solid var(--border-default); }
.table-cell--head {
  padding: var(--space-8); background-color: var(--bg-primary-light); color: var(--text-secondary);
  font-weight: var(--font-weight-bold); line-height: 1.4; border-left-color: var(--border-primary); border-bottom: 0; box-shadow: var(--shadow-table-head);
}
.table-cell--num { text-align: right; font-variant-numeric: tabular-nums; }
.table-cell--text { white-space: normal; min-width: 180px; color: var(--text-sub); font-size: var(--font-size-12); line-height: var(--line-height-16-8); }
.table-cell--date { background-color: var(--bg-page); text-align: center; }
.table-cell--fill { width: 100%; }
.table-cell--empty { padding: var(--space-24); text-align: center; white-space: normal; color: var(--text-sub); }
.table-cell__help { width: 13px; height: 13px; margin-left: var(--space-4); vertical-align: -2px; color: var(--text-disable); cursor: help; }
.table-cell__link { font-weight: var(--font-weight-bold); }
.table-cell__row:hover > .table-cell:not(.table-cell--head) { background-color: var(--bg-hover); }
.table-cell__row.is-selected > .table-cell { background-color: var(--bg-primary-light); }
.table-cell__row--click { cursor: pointer; }

/* progress-cell: 数値＋横棒（60×14、背景 border/default、塗り primary、間隔8） */
.progress-cell { display: inline-flex; align-items: center; gap: var(--space-8); }
.progress-cell__bar { position: relative; width: 60px; height: 14px; background-color: var(--border-default); overflow: hidden; flex: none; }
.progress-cell__fill { position: absolute; inset: 0 auto 0 0; background-color: var(--bg-primary); }

/* heatmap-cell: #F49A9A を数値に応じた透明度（--_heat: 0〜1）で塗る */
.heatmap-cell { position: relative; }
.heatmap-cell::before { content: ""; position: absolute; inset: 0; background-color: var(--bg-heatmap); opacity: var(--_heat, 0); pointer-events: none; }
.heatmap-cell > * { position: relative; }
/* LP の画像の上に重ねる訴求ブロック（境界線・ラベル・選択中） */
.heatmap-cell--block { position: absolute; left: 0; right: 0; border-top: 2px solid var(--border-disable); }
.heatmap-cell--edit { cursor: pointer; }
.heatmap-cell--edit.is-selected { outline: 3px solid var(--border-primary); outline-offset: -3px; }
.heatmap-cell--edit.is-selected::before { background-color: var(--bg-primary); opacity: .12; }
.heatmap-cell__label { position: absolute; top: 0; left: 0; padding: 0 var(--space-8); background-color: var(--bg-secondary); color: var(--text-white); font-size: var(--font-size-12); line-height: var(--line-height-16-8); }
/* 境界線をドラッグする持ち手（高さ12。中心を境界に合わせる） */
.heatmap-cell__handle { position: absolute; left: 0; right: 0; height: 12px; transform: translateY(-50%); cursor: ns-resize; z-index: 3; }
.heatmap-cell__handle:hover, .heatmap-cell__handle.is-selected { background-color: var(--bg-primary); opacity: .6; }
/* ヒートマップの横に出す、ブロックごとの数値 */
.heatmap-cell__metric { position: absolute; left: 414px; width: 300px; padding: var(--space-4) var(--space-12); border-top: 1px dashed var(--border-strong); font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }
.heatmap-cell__metric-title { color: var(--text-black); font-weight: var(--font-weight-bold); }
.heatmap-cell__metric-value { font-size: var(--font-size-19); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); color: var(--text-black); }
.heatmap-cell__area { position: relative; min-width: 714px; }

/* ============================================================ 日付（Date） */
/* date-input: 日付の入力欄（140×40・左右12・角丸4・線 border/strong）。左にカレンダー16（Gray03 → text/sub）、13px → 14px */
.date-input {
  display: inline-flex; align-items: center; gap: var(--space-8);
  height: 40px; padding: 0 var(--space-12);
  border: 1px solid var(--border-strong); border-radius: var(--radius-4); background-color: var(--bg-white);
}
.date-input:focus-within { border-color: var(--border-focus); }
.date-input__icon { width: 16px; height: 16px; color: var(--text-sub); }
.date-input__field { width: 128px; height: 38px; padding: 0; border: 0; background-color: transparent; color: var(--text-black); font-size: var(--font-size-14); }
.date-input__field:focus { outline: none; }
/* date-range: 2つの日付の入力欄を「〜」でつなぐ（間隔8） */
.date-range { display: inline-flex; align-items: center; gap: var(--space-8); color: var(--text-sub); flex-wrap: wrap; }

/* ============================================================ フィルター・条件（Filter） */
/* condition-row: 分析条件の行（ラベル120px・高さ40・14px・Gray03 → text/sub、ヘルプ） */
.condition-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: start; gap: var(--space-16); }
.condition-row__label { display: flex; align-items: center; gap: var(--space-4); min-height: 40px; font-size: var(--font-size-14); line-height: 1.4; color: var(--text-sub); }
.condition-row__help { width: 18px; height: 18px; color: var(--text-disable); cursor: help; }
.condition-row__body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-8); min-height: 40px; min-width: 0; }
.condition-row__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* section-row: 左に見出し列（幅140・14px・Gray03 → text/sub）がある設定の行。内容の下に区切り線 */
.section-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; gap: var(--space-16); }
.section-row__label { min-height: 40px; display: flex; align-items: center; font-size: var(--font-size-14); line-height: 1.4; color: var(--text-sub); }
.section-row__body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); min-width: 0; min-height: 40px; padding-bottom: var(--space-12); border-bottom: 1px solid var(--border-default); }
.section-row__body--plain { padding-bottom: 0; border-bottom: 0; }
.section-row__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* ============================================================ 分析（Pattern: Analytics） */
/* analysis-panel: 分析の白い枠（上に6px の primary の線・内側24・中の間隔16） */
.analysis-panel { display: flex; flex-direction: column; gap: var(--space-16); background-color: var(--bg-white); border-top: 6px solid var(--border-primary); padding: var(--space-24); }
.analysis-panel__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* chart-legend-item: グラフの凡例（色見本15px＋14px） */
.chart-legend-item { display: inline-flex; align-items: center; gap: var(--space-8); font-size: var(--font-size-14); line-height: 1.4; color: var(--text-black); }
.chart-legend-item__scale { display: inline-flex; border: 1px solid var(--border-default); }
.chart-legend-item__scale > .heatmap-cell { width: 24px; height: 15px; }

/* ============================================================ LP編集（Pattern: LP editing） */
/* preview-area: LP のプレビュー（背景 Gray05 の上に LP の画像。幅390） */
.preview-area { flex: none; padding: var(--space-16); background-color: var(--border-default); border-radius: var(--radius-5); }
.preview-area__frame { position: relative; width: 390px; background-color: var(--bg-white); border: 1px solid var(--border-strong); user-select: none; }
.preview-area__image { width: 100%; height: auto; }

/* ============================================================ メッセージ（Message） */
/* notice-error-line: 赤い線の注意（白・線 error・内側8/24・14px）。文字は text/error だと 3.48 なので黒、左に注意のアイコン */
.notice-error-line {
  display: flex; align-items: flex-start; gap: var(--space-8);
  padding: var(--space-8) var(--space-24);
  background-color: var(--bg-white); border: 1px solid var(--border-error);
  font-size: var(--font-size-14); line-height: 1.6; color: var(--text-black);
}
.notice-error-line__icon { width: 20px; height: 20px; margin-top: var(--space-4); }
.notice-error-line__title { font-weight: var(--font-weight-bold); }

/* alert-text: 注意文（14px）。text/error は白地で 3.48 なので、文字は黒にして左に赤い線（お知らせの文は primary の線） */
.alert-text { font-size: var(--font-size-14); line-height: 1.4; color: var(--text-black); }
.alert-text:empty { display: none; }
.alert-text:not(:empty) { padding-left: var(--space-8); border-left: 3px solid var(--border-error); }
.alert-text.is-selected { border-left-color: var(--border-primary); }

/* upload-result: 操作の結果の通知（画面の下に数秒）。成功は success/10、失敗は error の線。角丸10・内側16・14px */
.upload-result {
  display: flex; align-items: center; gap: var(--space-12);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-10); box-shadow: var(--shadow-float);
  background-color: var(--bg-success-light); color: var(--text-black);
  font-size: var(--font-size-14); line-height: 1.4;
}
.upload-result.has-error { background-color: var(--bg-white); outline: 1px solid var(--border-error); outline-offset: -1px; }
.upload-result__icon { width: 20px; height: 20px; }

/* ============================================================ 状態表示（Status） */
/* empty-state: データがないとき（14px・Gray03 → text/sub・中央）。何をすればいいかを省かない */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: var(--space-12); padding: var(--space-24); text-align: center; font-size: var(--font-size-14); line-height: 1.6; color: var(--text-sub); }
.empty-state__title { font-size: var(--font-size-16); font-weight: var(--font-weight-bold); color: var(--text-secondary); }
.empty-state__icon { width: 36px; height: 36px; color: var(--text-primary); }

/* loading-overlay: 読み込み中（暗幕 黒50%、中央に LPcats の猫 60×42、その下 18 → 16 に進捗バー 300×8・角丸10・塗り primary） */
.loading-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background-color: var(--bg-scrim); }
.loading-overlay__body { display: flex; flex-direction: column; align-items: center; gap: var(--space-16); }
.loading-overlay__cat { width: 60px; height: 42px; animation: loading-overlay-bounce 1s ease-in-out infinite; }
.loading-overlay__bar { position: relative; width: 300px; height: 8px; border-radius: var(--radius-10); background-color: var(--bg-page); overflow: hidden; }
.loading-overlay__fill { position: absolute; inset: 0 auto 0 0; width: 40%; background-color: var(--bg-primary); animation: loading-overlay-run 1.6s ease-in-out infinite; }
.loading-overlay__text { padding: var(--space-4) var(--space-12); border-radius: var(--radius-5); background-color: var(--bg-white); font-size: var(--font-size-14); font-weight: var(--font-weight-bold); }
@keyframes loading-overlay-bounce { 50% { transform: translateY(-8px); } }
@keyframes loading-overlay-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ============================================================ モーダル（Modal） */
/* modal: 幅630・角丸10・内側16/24・影/浮き上がり。タイトル16px（行間32）、本文16px（行間29）、下部ボタンは右寄せ・間隔8。
   閉じるアイコン24 は右上。暗幕は黒50%（bg/scrim） */
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-start; justify-content: center; padding: var(--space-24) var(--space-16); background-color: var(--bg-scrim); overflow: auto; }
.modal.is-fitted { padding: var(--space-12) var(--space-8); }
.modal__dialog { position: relative; width: min(630px, 100%); margin-top: var(--space-24); padding: var(--space-16) var(--space-24); background-color: var(--bg-white); border-radius: var(--radius-10); box-shadow: var(--shadow-float); }
.modal__header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-8) 0 var(--space-16); }
.modal__title { font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: 2; }
.modal__close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-full); background-color: transparent; color: var(--text-black); cursor: pointer; }
.modal__close:hover { background-color: var(--bg-hover); }
.modal__close-icon { width: 24px; height: 24px; }
.modal__body { display: flex; flex-direction: column; gap: var(--space-12); font-size: var(--font-size-14); line-height: var(--line-height-26); }
.modal__text { font-size: var(--font-size-16); line-height: var(--line-height-29); }
.modal__count { text-align: right; font-size: var(--font-size-12); color: var(--text-sub); }
.modal__context { padding: var(--space-12) var(--space-16); background-color: var(--bg-page); border-radius: var(--radius-3); font-size: var(--font-size-12); line-height: var(--line-height-16-8); }
.modal__context-table { border-collapse: collapse; width: 100%; }
.modal__context-head { text-align: left; color: var(--text-sub); font-weight: var(--font-weight-medium); white-space: nowrap; padding: var(--space-4) var(--space-12) var(--space-4) 0; vertical-align: top; width: 1%; }
.modal__context-cell { padding: var(--space-4) 0; word-break: break-all; }
.modal__context-note { margin-top: var(--space-8); color: var(--text-sub); }
.modal__footer { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-8); padding-top: var(--space-16); }
.modal__footer--center { justify-content: center; }
.modal__done { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); padding-top: var(--space-24); text-align: center; }
.modal__done-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-full); background-color: var(--bg-success-light); color: var(--text-black); }
.modal__done-icon { width: 24px; height: 24px; }

/* ============================================================ ログイン・新規登録（Pattern: Auth） */
/* auth-panel: ログイン前の白いパネル（間隔24。内側64 は推奨の余白に無いので 24）。見出しは黒・Bold */
.auth-panel { width: min(528px, 100%); background-color: var(--bg-white); border-radius: var(--radius-10); padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-24); }
.auth-panel__logo { display: flex; align-items: center; gap: var(--space-8); }
.auth-panel__logo-image { width: 144px; height: 36px; }
.auth-panel__product { font-size: var(--font-size-24); font-weight: var(--font-weight-bold); line-height: 1; color: var(--text-primary); }
.auth-panel__head { display: flex; flex-direction: column; gap: var(--space-8); }
.auth-panel__title { font-size: var(--font-size-24); font-weight: var(--font-weight-bold); line-height: 1.4; color: var(--text-black); }
.auth-panel__lead { font-size: var(--font-size-14); line-height: 1.4; color: var(--text-black); }
.auth-panel__fields { display: flex; flex-direction: column; gap: var(--space-16); }
.auth-panel__foot { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); font-size: var(--font-size-14); }

/* ============================================================ 運用者画面（/ops）のために足した共通部品（2026-11-17 Part 1）
   理由: docs/OPS_SPEC.md §2.11 の運用者画面は DESIGN.md の部品で作る決まり。ops.css・ux.css は DS ハーネスで禁止
   （ds/css-outside）なので、DESIGN.md の部品一覧にあって未実装だった部品を、DESIGN.md・figma_spec.md の寸法どおりここに足した。
   Part 2・3 も同じ部品を使う（二重に足さない。Part 2 の部品は末尾の「Part 2 で追加」の節）。
   コントラストが足りない DS の色は、既存の部品と同じ寄せ方（Gray03 の文字 → text/sub、primary/10 の上の primary の文字 → text/secondary）。 */

/* toggle: トラック44×24・丸型、つまみ20（白）。オフは border/strong、オンは primary（DS は primary/50 だが役割の変数が無いので bg/primary）。
   文字は14px・text/black（オン・オフで色を変えない）。<label class="toggle"><input class="toggle__input" type="checkbox" role="switch">公開</label> */
.toggle { display: inline-flex; align-items: center; gap: var(--space-8); font-size: var(--font-size-14); line-height: var(--line-height-26); color: var(--text-black); cursor: pointer; }
.toggle__input {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; margin: 0;
  width: 44px; height: 24px; border-radius: var(--radius-full); background-color: var(--border-strong); cursor: pointer;
}
.toggle__input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: var(--radius-full); background-color: var(--bg-white); transition: transform .15s; }
.toggle__input:checked { background-color: var(--bg-primary); }
.toggle__input:checked::after { transform: translateX(20px); }
.toggle__input:disabled { opacity: .5; cursor: not-allowed; }
.toggle__input:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* labeled-switch: ラベルが16pxの大きいトグル（左にラベルと説明、右に toggle） */
.labeled-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.labeled-switch__text { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.labeled-switch__label { font-size: var(--font-size-16); line-height: var(--line-height-29); color: var(--text-black); }
.labeled-switch__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* filter-toggle: フィルターの切り替え（primary/10・線 primary・角丸5・14px・アイコン16）。文字は primary/10 の上で読めるよう text/secondary */
.filter-toggle {
  display: inline-flex; align-items: center; gap: var(--space-8); height: 40px; padding: 0 var(--space-16);
  border: 1px solid var(--border-primary); border-radius: var(--radius-5); background-color: var(--bg-primary-light);
  color: var(--text-secondary); font-size: var(--font-size-14); line-height: 1.4; cursor: pointer; white-space: nowrap;
}
.filter-toggle__icon { display: inline-block; width: 16px; height: 16px; background-color: currentColor; -webkit-mask: var(--_icon) center / contain no-repeat; mask: var(--_icon) center / contain no-repeat; }
.filter-toggle__count { padding: 0 var(--space-4); border-radius: var(--radius-full); background-color: var(--bg-primary); color: var(--text-white); font-size: var(--font-size-12); font-weight: var(--font-weight-bold); line-height: var(--line-height-16-8); }

/* filter-panel: 白・線 border/default・角丸6・内側16。「＋条件を追加」と AND の注記、右下にクリア・適用する */
.filter-panel { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-16); background-color: var(--bg-white); border: 1px solid var(--border-default); border-radius: var(--radius-6); }
.filter-panel__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }
.filter-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
/* filter-row: フィルター条件の行（セレクト3つ＋削除） */
.filter-row { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.filter-row__value { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; min-width: 200px; }

/* context-menu: 「⋮」から開く操作メニュー（白・角丸10・上下8・影/浮き上がり）。項目は高さ31・左右12・14px */
.context-menu { position: absolute; z-index: 15; min-width: 200px; padding: var(--space-8) 0; background-color: var(--bg-white); border-radius: var(--radius-10); box-shadow: var(--shadow-float); }
.context-menu__anchor { position: relative; display: inline-flex; }
.context-menu-item { display: flex; align-items: center; width: 100%; min-height: 31px; padding: 0 var(--space-12); border: 0; background-color: transparent; color: var(--text-black); font-size: var(--font-size-14); line-height: 1.4; text-align: left; white-space: nowrap; cursor: pointer; text-decoration: none; }
.context-menu-item:hover { background-color: var(--bg-hover); text-decoration: none; }
.context-menu-item:disabled { color: var(--text-inactive); cursor: not-allowed; }

/* header-menu: ヘッダー右のメニュー（幅260、プロフィール＋項目38px＋区切り線）。開いたときだけ出す */
.header-menu { position: absolute; z-index: 15; top: 52px; right: var(--space-16); width: 260px; padding: var(--space-8) 0; background-color: var(--bg-white); border-radius: var(--radius-10); box-shadow: var(--shadow-float); }
.header-menu__profile { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8) var(--space-16) var(--space-12); border-bottom: 1px solid var(--border-default); }
.header-menu__name { font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1.4; }
.header-menu__sub { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); overflow-wrap: anywhere; }
.header-menu__item { display: flex; align-items: center; gap: var(--space-8); width: 100%; height: 38px; padding: 0 var(--space-16); border: 0; background-color: transparent; color: var(--text-black); font-size: var(--font-size-14); text-align: left; cursor: pointer; text-decoration: none; }
.header-menu__item:hover { background-color: var(--bg-hover); text-decoration: none; }
.header-menu__anchor { position: relative; }

/* tab-underline: 下線4pxのタブ（幅140・高さ46・16px Bold）。選択中は primary＋下線、通常は text/sub。
   primary の文字は白地で 4.58、bg/page の上では 4.13 で足りないので、白いパネル（dashboard-panel など）の中で使う（more-link・icon-link も同じ） */
.tab-underline { display: flex; border-bottom: 1px solid var(--border-default); overflow-x: auto; }
.tab-underline__item {
  display: inline-flex; align-items: center; justify-content: center; min-width: 140px; height: 46px; padding: 0 var(--space-16);
  border: 0; border-bottom: 4px solid transparent; background-color: transparent;
  color: var(--text-sub); font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: 1; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.tab-underline__item:hover { color: var(--text-black); text-decoration: none; }
.tab-underline__item.is-selected { color: var(--text-primary); border-bottom-color: var(--border-primary); }

/* setting-nav-item: 設定サイドナビの項目（200×44・角丸5・14px Bold）。選択中は primary の塗り＋白、通常は secondary の文字 */
.setting-nav-item { display: flex; align-items: center; width: 200px; height: 44px; padding: 0 var(--space-16); border-radius: var(--radius-5); color: var(--text-secondary); font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1.4; text-decoration: none; }
.setting-nav-item:hover { background-color: var(--bg-hover); text-decoration: none; }
.setting-nav-item.is-selected { background-color: var(--bg-primary); color: var(--text-white); }
.setting-nav-item__list { display: flex; flex-direction: column; gap: var(--space-4); }

/* setting-row: 設定の行（ラベル160px・Gray03 → text/sub、値14px、丸型の変更ボタン 12px・primary・線 border/default） */
.setting-row { display: grid; grid-template-columns: var(--_label, 160px) minmax(0, 1fr) auto; align-items: center; gap: var(--space-16); min-height: 40px; }
.setting-row__label { font-size: var(--font-size-14); line-height: 1.4; color: var(--text-sub); }
.setting-row__value { font-size: var(--font-size-14); line-height: 1.5; color: var(--text-black); overflow-wrap: anywhere; min-width: 0; }
.setting-row__button { height: 28px; padding: 0 var(--space-12); border: 1px solid var(--border-default); border-radius: var(--radius-full); background-color: var(--bg-white); color: var(--text-primary); font-size: var(--font-size-12); line-height: 1; cursor: pointer; white-space: nowrap; }
.setting-row__button:hover { background-color: var(--bg-primary-light); }

/* setting-list-row: 設定画面の一覧（見出し行は下線、行は高さ52・上に線 border/default、右端に「⋮」） */
.setting-list-row { display: grid; grid-template-columns: var(--_cols, repeat(4, minmax(0, 1fr)) 40px); align-items: center; gap: var(--space-12); min-height: 52px; padding: 0 var(--space-8); border-top: 1px solid var(--border-default); font-size: var(--font-size-14); line-height: 1.4; }
.setting-list-row--head { min-height: 40px; border-top: 0; border-bottom: 1px solid var(--border-default); color: var(--text-sub); font-weight: var(--font-weight-bold); }
.setting-list-row__cell { min-width: 0; overflow-wrap: anywhere; }
.setting-list-row__menu { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-full); background-color: transparent; color: var(--text-sub); cursor: pointer; }
.setting-list-row__menu:hover { background-color: var(--bg-hover); }
.setting-list-row__icon { display: inline-block; width: 21px; height: 21px; background-color: currentColor; -webkit-mask: var(--_icon) center / contain no-repeat; mask: var(--_icon) center / contain no-repeat; }

/* pagination-item: ページ送りの1マス（48px角・角丸4・14px Medium、今のページは primary の塗り）。間隔4 */
.pagination-item__list { display: flex; align-items: center; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }
.pagination-item { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 var(--space-8); border: 1px solid var(--border-default); border-radius: var(--radius-4); background-color: var(--bg-white); color: var(--text-black); font-size: var(--font-size-14); font-weight: var(--font-weight-medium); cursor: pointer; }
.pagination-item:hover { background-color: var(--bg-hover); }
.pagination-item.is-selected { background-color: var(--bg-primary); border-color: var(--border-primary); color: var(--text-white); }
.pagination-item:disabled { color: var(--text-inactive); cursor: not-allowed; }

/* tooltip: 短い補足（角丸4・内側4/16・14px）。DS は #424242＋#EEEEEE（Vuetify 標準・既存のみ）なので、役割の bg/secondary＋白 */
.tooltip { position: relative; display: inline-flex; }
.tooltip__body { position: absolute; z-index: 16; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); width: max-content; max-width: 320px; padding: var(--space-4) var(--space-16); border-radius: var(--radius-4); background-color: var(--bg-secondary); color: var(--text-white); font-size: var(--font-size-14); font-weight: var(--font-weight-regular); line-height: 1.6; white-space: normal; pointer-events: none; }
.tooltip:not(:hover):not(:focus-within) > .tooltip__body:not(.is-selected) { display: none; }

/* skeleton: 読み込み中の仮表示（白の上に Gray05 のブロック、光が流れる） */
.skeleton { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-16); background-color: var(--bg-white); }
.skeleton__line { position: relative; height: 16px; border-radius: var(--radius-3); background-color: var(--border-default); overflow: hidden; }
.skeleton__line::after { content: ""; position: absolute; inset: 0; background-color: var(--bg-white); opacity: .5; transform: translateX(-100%); animation: skeleton-run 1.4s ease-in-out infinite; }
@keyframes skeleton-run { to { transform: translateX(100%); } }

/* form-field: モーダル内のフォーム項目（ラベル16px、入力欄 高さ54・角丸3、セレクトは角丸4） */
.form-field { display: flex; flex-direction: column; gap: var(--space-4); }
.form-field__label { display: flex; align-items: center; gap: var(--space-8); font-size: var(--font-size-16); line-height: var(--line-height-29); color: var(--text-black); }
.form-field__input { width: 100%; height: 54px; padding: 0 var(--space-16); border: 1px solid var(--border-strong); border-radius: var(--radius-3); background-color: var(--bg-white); color: var(--text-black); font-size: var(--font-size-16); line-height: 1.4; }
.form-field__input::placeholder { color: var(--text-disable); }
.form-field__input:focus { outline: none; border-color: var(--border-focus); }
.form-field__input.has-error { border-color: var(--border-error); }
select.form-field__input { padding-right: var(--space-24); border-radius: var(--radius-4); -webkit-appearance: none; appearance: none; background-image: url(/static/ds/icons/caret-down.svg); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; cursor: pointer; }
.form-field__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* form-section-row: 左に見出し列（幅200）がある設定の行（線 border/strong・上下24、見出し16px Bold・primary＋補足12px） */
.form-section-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-24); padding: var(--space-24) 0; border-top: 1px solid var(--border-strong); }
.form-section-row:last-child { border-bottom: 1px solid var(--border-strong); }
.form-section-row__head { display: flex; flex-direction: column; gap: var(--space-4); }
.form-section-row__title { font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); color: var(--text-primary); }
.form-section-row__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }
.form-section-row__body { display: flex; flex-direction: column; gap: var(--space-12); min-width: 0; font-size: var(--font-size-16); line-height: var(--line-height-29); }

/* report-list-row: 一覧の見出し行と行（内側12/16・間隔24・下線） */
.report-list-row { display: grid; grid-template-columns: var(--_cols, 160px minmax(0, 1fr)); align-items: start; gap: var(--space-24); padding: var(--space-12) var(--space-16); border-bottom: 1px solid var(--border-default); font-size: var(--font-size-14); line-height: 1.5; }
.report-list-row--head { color: var(--text-sub); font-weight: var(--font-weight-bold); }
.report-list-row__date { color: var(--text-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-list-row__title { font-weight: var(--font-weight-bold); }
.report-list-row__note { display: block; font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* route-card: 順位つきのカード（白・線 border/default・角丸8・内側24・影/カード（弱））。順位24px Bold・primary */
.route-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--space-16) var(--space-24); align-items: start; padding: var(--space-24); background-color: var(--bg-white); border: 1px solid var(--border-default); border-radius: var(--radius-8); box-shadow: var(--shadow-card-weak); }
.route-card__rank { font-size: var(--font-size-24); font-weight: var(--font-weight-bold); line-height: var(--line-height-24); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.route-card__body { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.route-card__title { font-size: var(--font-size-19); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); color: var(--text-black); overflow-wrap: anywhere; }
.route-card__sub { font-size: var(--font-size-14); line-height: 1.5; color: var(--text-sub); }
.route-card__list { margin: 0; padding-left: var(--space-24); font-size: var(--font-size-14); line-height: 1.6; }
.route-card__hook { font-size: var(--font-size-14); line-height: 1.6; }
.route-card__label { font-weight: var(--font-weight-bold); color: var(--text-secondary); }
.route-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-8); }

/* gauge-card: 半円メーター（リングは primary/20 の上に primary、内側70%）。中央に見出し12px＋値。値は style="--_value:.62"（0〜1） */
.gauge-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); padding: var(--space-16); background-color: var(--bg-white); border: 1px solid var(--border-default); border-radius: var(--radius-5); }
.gauge-card__ring { position: relative; width: 200px; height: 100px; overflow: hidden; }
.gauge-card__ring::before { content: ""; position: absolute; left: 0; top: 0; width: 200px; height: 200px; border-radius: var(--radius-full);
  background-image: conic-gradient(from 270deg, var(--bg-primary) calc(var(--_value, 0) * 180deg), var(--bg-primary-hover) 0 180deg, var(--bg-white) 0);
  -webkit-mask: radial-gradient(circle, transparent 69%, var(--bg-white) 70%); mask: radial-gradient(circle, transparent 69%, var(--bg-white) 70%); }
.gauge-card__center { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.gauge-card__label { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }
.gauge-card__value { font-size: var(--font-size-24); font-weight: var(--font-weight-bold); line-height: var(--line-height-24); }
.gauge-card__note { font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1.4; }

/* chart-card: 分析のグラフ枠（見出し21px Bold、線 border/strong・角丸5・内側24/16） */
.chart-card { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; padding: var(--space-24) var(--space-16); background-color: var(--bg-white); border: 1px solid var(--border-strong); border-radius: var(--radius-5); }
.chart-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); flex-wrap: wrap; }
.chart-card__title { font-size: var(--font-size-21); font-weight: var(--font-weight-bold); line-height: var(--line-height-29-2); color: var(--text-secondary); }
.chart-card__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }
.chart-card__svg { display: block; width: 100%; height: auto; overflow: visible; }
/* SVG の線・目盛り（色は属性に書かず、ここの役割の変数で塗る） */
.chart-card__grid { stroke: var(--border-default); stroke-width: 1; }
.chart-card__axis { fill: var(--text-sub); font-size: var(--font-size-12); }
.chart-card__line { fill: none; stroke-width: 2; stroke: var(--border-primary); }
.chart-card__line--secondary { stroke: var(--text-secondary); }
.chart-card__line--success { stroke: var(--text-success); }
.chart-card__dot { fill: var(--bg-white); stroke-width: 2; stroke: var(--border-primary); }
/* 凡例の色見本（chart-legend-item の中で、線の色と合わせる） */
.chart-legend-item__swatch { display: inline-block; width: 15px; height: 4px; background-color: var(--border-primary); }
.chart-legend-item__swatch--secondary { background-color: var(--text-secondary); }
.chart-legend-item__swatch--success { background-color: var(--text-success); }

/* info-alert: 案内のボックス（内側16・アイコン20＋16px）。DS は info/5・info/60（パレット名・役割の変数が無い）なので、
   bg/page の上に黒の文字、アイコンは text/link の色 */
.info-alert { display: flex; align-items: flex-start; gap: var(--space-16); padding: var(--space-16); background-color: var(--bg-page); font-size: var(--font-size-16); line-height: var(--line-height-29); color: var(--text-black); }
.info-alert__icon { display: inline-block; flex: none; width: 20px; height: 20px; margin-top: var(--space-4); background-color: var(--text-link); -webkit-mask: var(--_icon, url(/static/ds/icons/help-circle-fill.svg)) center / contain no-repeat; mask: var(--_icon, url(/static/ds/icons/help-circle-fill.svg)) center / contain no-repeat; }
.info-alert__text { flex: 1; min-width: 0; }

/* more-link: 「もっと見る」（14px Bold・primary＋下矢印）／ icon-link: アイコンつきのリンク（14px Bold・primary＋アイコン18） */
.more-link, .icon-link { display: inline-flex; align-items: center; gap: var(--space-4); padding: 0; border: 0; background-color: transparent; color: var(--text-primary); font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1.4; cursor: pointer; text-decoration: none; }
.more-link:hover, .icon-link:hover { text-decoration: underline; }
.more-link__icon, .icon-link__icon { display: inline-block; flex: none; width: 18px; height: 18px; background-color: currentColor; -webkit-mask: var(--_icon) center / contain no-repeat; mask: var(--_icon) center / contain no-repeat; }

/* badge の変種（のびしろの帯など。色だけで伝えず、必ず言葉を添える）。hot は primary の塗り＋白（4.58）、warm は primary/10＋黒 */
.badge--primary { background-color: var(--bg-primary); color: var(--text-white); }
.badge--light { background-color: var(--bg-primary-light); color: var(--text-black); }
.badge--line { background-color: var(--bg-white); color: var(--text-black); border: 1px solid var(--border-strong); }

/* レイアウト（運用者画面）: 左に固定幅の列（ユーザー詳細 360・設定ナビ 200）＋右 */
.l-split { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--space-24); align-items: start; }
.l-split--nav { grid-template-columns: 200px minmax(0, 1fr); }
.l-grid--5 { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
@media (max-width: 1100px) { .l-split, .l-split--nav { grid-template-columns: minmax(0, 1fr); } .l-grid--5 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* ============================================================ 運用者機能 Part 3（相談・共有・データ出力）のために足した部品（2026-11-17）
   理由: 相談の AI のたたき台（report-section・proposal-group・comparison-images）、データ出力の種類の選択（select-card）、
   Salesforce に追加してほしい項目の一覧（accordion-panel）を、LPCATS_DESIGN.md の部品で作るため。どれも DESIGN.md の［本番準拠］の部品。
   DESIGN.md で Tailwind 系のグレー（#E5E7EB・#F8FAFC 等）になっている所は「既存のみ」なので、Gray のトークン（border/default・bg/page）に寄せた */

/* select-card・accordion-panel は Part 2 と同じ部品なので、定義は下の「Part 2 で追加」の節の 1 つだけにした
   （統合のときに Part 3 側の同じ中身の定義を消した。2026-11-17） */

/* report-section: レポートの章（白・線 Gray05・角丸8、見出しは番号の丸＋16px Bold＋開閉の矢印）。<details> で作る */
.report-section { background-color: var(--bg-white); border: 1px solid var(--border-default); border-radius: var(--radius-8); }
.report-section__head { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-16) var(--space-24); font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: 1.4; color: var(--text-black); cursor: pointer; list-style: none; }
.report-section__head::-webkit-details-marker { display: none; }
.report-section__num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: var(--radius-full); background-color: var(--bg-secondary); color: var(--text-white); font-size: var(--font-size-12); font-weight: var(--font-weight-bold); }
.report-section__title { flex: 1; }
.report-section__icon { flex: none; width: 24px; height: 24px; background-color: currentColor; -webkit-mask: var(--_icon) center / contain no-repeat; mask: var(--_icon) center / contain no-repeat; }
.report-section[open] .report-section__icon { transform: rotate(180deg); }
.report-section__body { display: flex; flex-direction: column; gap: var(--space-12); padding: 0 var(--space-24) var(--space-24); }

/* proposal-group: 課題と改善提案のまとまり（線・角丸10、課題の見出し帯・提案の見出し帯） */
.proposal-group { border: 1px solid var(--border-default); border-radius: var(--radius-10); overflow: hidden; background-color: var(--bg-white); }
.proposal-group__head { padding: var(--space-8) var(--space-16); background-color: var(--bg-page); font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1.4; color: var(--text-secondary); }
.proposal-group__body { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-12) var(--space-16); }
.proposal-group__item { display: flex; flex-direction: column; gap: var(--space-4); }
.proposal-group__item + .proposal-group__item { padding-top: var(--space-8); border-top: 1px solid var(--border-default); }
.proposal-group__title { font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1.4; color: var(--text-black); }
.proposal-group__text { font-size: var(--font-size-14); line-height: 1.4; color: var(--text-black); }
.proposal-group__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* comparison-images: 画像の比較（ラベル12px Bold・Gray03 → text/sub）。横に並べ、狭いときは折り返す */
.comparison-images { display: flex; flex-wrap: wrap; gap: var(--space-16); }
.comparison-images__item { display: flex; flex-direction: column; gap: var(--space-8); flex: 1 1 220px; min-width: 0; margin: 0; }
.comparison-images__label { font-size: var(--font-size-12); font-weight: var(--font-weight-bold); line-height: var(--line-height-16-8); color: var(--text-sub); }
.comparison-images__image { width: 100%; max-height: 360px; object-fit: cover; object-position: top; border: 1px solid var(--border-default); border-radius: var(--radius-5); background-color: var(--bg-page); }
.comparison-images__note { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }

/* ============================================================ ホバー・フォーカスの見本用の状態（.is-hover / .is-focus）
   部品の見本ページ（/ds）で、ホバー・フォーカスの見た目を止めた状態で見せる。:hover / :focus と同じ見た目にする */
.button.is-hover::before { opacity: .04; }
.button--line.is-hover, .button--soft.is-hover { background-color: var(--bg-primary); color: var(--text-white); }
.button--line.is-hover::before, .button--soft.is-hover::before { opacity: 0; }
.text-button.is-hover, .header-menu-button.is-hover, .tab.is-hover, .folder-tab.is-hover { color: var(--text-black); }
.side-nav-item.is-hover { background-color: var(--bg-hover); }
.modal__close.is-hover { background-color: var(--bg-hover); }
.table-cell__row.is-hover > .table-cell:not(.table-cell--head) { background-color: var(--bg-hover); }
.heatmap-cell__handle.is-hover { background-color: var(--bg-primary); opacity: .6; }
.textbox.is-focus, .textarea.is-focus, .auth-field__input.is-focus, .dropdown.is-focus, .date-input.is-focus { border-color: var(--border-focus); }
/* 見本ページで、画面全体に重なる部品（モーダル・読み込み中）を枠の中に置いて見せる */
.modal--inline, .loading-overlay--inline { position: relative; inset: auto; z-index: auto; min-height: 260px; }
.modal--inline .modal__dialog { margin-top: 0; }

/* ============================================================ Part 2 で追加（ステップメール・お知らせ。docs/OPS_SPEC.md §9.11・§10）
 * 足した理由: 運用者画面のステップメール（テンプレートを選ぶ・メールごとに開いて書く）とお知らせ（種類を選ぶ）、
 * 利用者画面のお知らせ欄（ヘッダーのお知らせ）に要る部品で、DS（LPCATS_DESIGN.md）にあるが components.css に無かったもの。
 * 寸法は Figma の LPcats DS で確かめた値（各部品に node ID）。DS の「既存のみ」の色（border/list・text/secondary-alt・
 * text/date・text/black-vuetify・bg/muted）は新しい画面なので同じ役割の色に寄せた。余白は推奨の 4/8/12/16/24 に丸めた。 */
.accordion-panel__icon, .template-option__icon, .select-card__icon { display: inline-block; flex: none; width: 24px; height: 24px; background-color: currentColor; -webkit-mask: var(--_icon) center / contain no-repeat; mask: var(--_icon) center / contain no-repeat; }

/* accordion-panel（Figma 1168:527）: 開閉できる白いパネル。見出し行は高さ72・左右24、見出し16px Bold・text/secondary＋三角24（見出しのすぐ右）。
   線 border/default・角丸5。開いた状態は Figma に無いので、中身は見出しの下に左右24・下24 で出し、三角を上向きにする。<details> で作る */
.accordion-panel { background-color: var(--bg-white); border: 1px solid var(--border-default); border-radius: var(--radius-5); }
.accordion-panel__head { display: flex; align-items: center; gap: var(--space-8); min-height: 72px; padding: var(--space-12) var(--space-24); cursor: pointer; list-style: none; }
.accordion-panel__head::-webkit-details-marker { display: none; }
.accordion-panel__title { font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: 1.4; color: var(--text-secondary); }
.accordion-panel__icon { color: var(--text-secondary); transition: transform .15s; }
.accordion-panel[open] > .accordion-panel__head .accordion-panel__icon { transform: rotate(180deg); }
.accordion-panel__meta { display: inline-flex; align-items: center; gap: var(--space-8); margin-left: auto; font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }
.accordion-panel__body { display: flex; flex-direction: column; gap: var(--space-16); padding: 0 var(--space-24) var(--space-24); }

/* template-option（Figma 1135:281）: テンプレートの選択肢。枠線なし・角丸3・内側16・間隔8、サムネイル200×174（bg/page＋中央にアイコン32）、
   ラジオ18＋名前14px（Figma は 14px Regular・行間21。DESIGN.md の 16px とは違う）。選択はラジオで表す。
   名前の下の説明（12px）は、選ぶ前に中身が分かるように足したもの（Figma には無い） */
.template-option { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-16); background-color: var(--bg-white); border-radius: var(--radius-3); cursor: pointer; }
.template-option:hover, .template-option.is-hover { background-color: var(--bg-hover); }
.template-option__thumb { display: grid; place-items: center; width: 200px; max-width: 100%; height: 174px; background-color: var(--bg-page); color: var(--text-sub); }
.template-option__icon { width: 32px; height: 32px; }
.template-option__text { font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }
.template-option__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--space-8); }

/* select-card（Figma 1126:84）: 方法を選ぶカード。324×180、線2px border/default・角丸6、内側 上24・左右16・下16、間隔8。
   アイコン24（primary）、タイトル16px Bold・primary、説明14px。選択中は線が border/primary になるだけ */
.select-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); width: 324px; max-width: 100%; min-height: 180px; padding: var(--space-24) var(--space-16) var(--space-16); background-color: var(--bg-white); border: 2px solid var(--border-default); border-radius: var(--radius-6); color: var(--text-black); text-align: left; cursor: pointer; }
.select-card.is-selected, .select-card:has(:checked) { border-color: var(--border-primary); }
.select-card__icon { color: var(--text-primary); }
.select-card__title { font-size: var(--font-size-16); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); color: var(--text-primary); }
.select-card__text { font-size: var(--font-size-14); line-height: 1.6; color: var(--text-black); }
.select-card__input { position: absolute; opacity: 0; pointer-events: none; }
.select-card__list { display: flex; flex-wrap: wrap; gap: var(--space-16); }

/* notice-tab（Figma 1130:167）: お知らせのタブ。高さ56・左右16・14px Bold。選択中は primary の文字＋下に2pxの線。
   通常の文字は Gray03（text/disable）だとコントラストが足りないので text/sub。
   件数バッジ（高さ20・角丸10・12px）は、Figma の bg/error に白文字だとコントラスト 3.5 で足りないので、白地＋赤い線＋黒文字（badge--important と同じ寄せ方） */
.notice-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-4); height: 56px; padding: 0 var(--space-16); border: 0; border-bottom: 2px solid transparent; background-color: transparent; color: var(--text-sub); font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: var(--line-height-26); cursor: pointer; text-decoration: none; }
.notice-tab:hover { text-decoration: none; color: var(--text-black); }
.notice-tab.is-selected { color: var(--text-primary); border-bottom-color: var(--border-primary); }
.notice-tab__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 var(--space-4); border: 1px solid var(--border-error); border-radius: var(--radius-10); background-color: var(--bg-white); color: var(--text-black); font-size: var(--font-size-12); font-weight: var(--font-weight-bold); line-height: 1; }
.notice-tab__list { display: flex; background-color: var(--bg-white); border-bottom: 1px solid var(--border-default); padding: 0 var(--space-24); }
.notice-tab__list > .notice-tab { flex: 1; }

/* notice-panel（Figma 1130:168）: お知らせパネル。幅499・背景 primary/10、見出し（白の帯・上16・左右24）、均等幅のタブ、
   右寄せの「すべて既読にする」（12px）、カードの一覧（左右24・間隔12）。見出しは 20px が文字の決まりに無いので Text - L bold（19px） */
.notice-panel { display: flex; flex-direction: column; width: min(499px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 80px)); background-color: var(--bg-primary-light); border-radius: var(--radius-5); box-shadow: var(--shadow-float); overflow: hidden; }
.notice-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-16) var(--space-24) 0; background-color: var(--bg-white); }
.notice-panel__title { font-size: var(--font-size-19); font-weight: var(--font-weight-bold); line-height: var(--line-height-29); color: var(--text-black); }
.notice-panel__tools { display: flex; justify-content: flex-end; padding: var(--space-12) var(--space-24); font-size: var(--font-size-12); line-height: var(--line-height-16-8); }
.notice-panel__list { display: flex; flex-direction: column; gap: var(--space-12); padding: 0 var(--space-24) var(--space-24); overflow-y: auto; }
.notice-panel__anchor { position: relative; display: inline-flex; }
.notice-panel__anchor > .notice-panel { position: absolute; z-index: 15; top: calc(100% + 8px); right: 0; }
/* お知らせボタンの文字。狭い画面（760px 以下）ではアイコンと件数だけにして、ヘッダーからはみ出さないようにする
   （利用者の画面のヘッダーはロゴ・お知らせ・ご意見・ログアウトが並び、390px では入りきらず、はみ出したボタンが押せなくなったため）。
   読み上げ用にボタンの aria-label「お知らせ」は残す */
@media (max-width: 760px) { .notice-panel__anchor-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* notice-item（Figma 1130:158）: お知らせのカード。白・線 border/default（Figma は border/list＝既存のみ）・角丸5・内側12/16・間隔4。
   タイトル14px Bold・text/secondary、本文14px、下の段（上に線・上の余白8）に日時12px・text/sub、未読は赤い点8px（飾り。未読は文字でも示す） */
.notice-item { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-12) var(--space-16); background-color: var(--bg-white); border: 1px solid var(--border-default); border-radius: var(--radius-5); }
.notice-item__title { font-size: var(--font-size-14); font-weight: var(--font-weight-bold); line-height: 1.4; color: var(--text-secondary); }
.notice-item__body { font-size: var(--font-size-14); line-height: 1.6; color: var(--text-black); overflow-wrap: anywhere; }
.notice-item__body p + p { margin-top: var(--space-8); }
.notice-item__foot { display: flex; align-items: center; gap: var(--space-8); margin-top: var(--space-4); padding-top: var(--space-8); border-top: 1px solid var(--border-default); font-size: var(--font-size-12); line-height: var(--line-height-16-8); color: var(--text-sub); }
.notice-item__dot { width: 8px; height: 8px; border-radius: var(--radius-full); background-color: var(--bg-error); }
/* l-editor: 設定の画面で、左に入力（主）・右にプレビュー（幅360、スクロールしても残る）。狭い画面では縦に並べる（Part 2） */
.l-editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-24); align-items: start; }
@media (max-width: 1100px) { .l-editor { grid-template-columns: minmax(0, 1fr); } }
/* preview-area__mail: メールのプレビュー（送る HTML をそのまま、白の枠の中に出す。高さは固定でスクロール） */
.preview-area__mail { display: block; width: 100%; height: 360px; border: 1px solid var(--border-default); background-color: var(--bg-white); }
