@charset "UTF-8";
/* LEADERSHIP COMPASS — 画面スタイル
   レイアウトは flex のみ（grid は使わない）。
   トーンは要件定義書の指定どおり「モダン・シンプル・クリーン」、背景は白〜極薄グレー。 */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--compass-gray-50);
  color: var(--compass-ink);
  font-family: var(--compass-font-sans);
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0; }
a { color: var(--compass-navy); }

/* ---------------- ヘッダー ---------------- */

.topbar {
  background: var(--compass-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--compass-space-md);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--compass-space-lg);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: #fff; padding: 11px 0; }
/* ロゴマーク＝正五角形を5面に分割したファセット。5面が5活動に対応する。
   面の境界はオフホワイトのヘアラインで抜くため、地は必ずオフホワイトにする
   （濃紺に直置きすると一番濃い面が背景と同化して1面消える）。 */
.logo-mark { flex-shrink: 0; display: block; }
.logo-tile {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 6px;
  background: var(--compass-off-white);
  border-radius: 11px;
}
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__text b { font-size: 15px; font-weight: 800; letter-spacing: .11em; }
.brand__text span { font-size: 10.5px; letter-spacing: .04em; color: rgba(255,255,255,.62); }

.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topnav a {
  color: rgba(255,255,255,.78); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 20px 14px; position: relative;
}
.topnav a:hover { color: #fff; }
/* 現在地はゴールドの下線で示す。丸ピルより静かで、濃紺ヘッダーに馴染む。 */
.topnav a[aria-current="page"] { color: #fff; font-weight: 700; }
.topnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; background: var(--compass-gold);
}

/* ---------------- 骨格 ---------------- */

.wrap { max-width: 1280px; margin: 0 auto; padding: var(--compass-space-lg); }
.wrap--focus { max-width: 760px; padding-top: var(--compass-space-md); }
/* 文章を書く画面。1280px 幅の入力欄は1行が長すぎて書けない。 */
.wrap--narrow { max-width: 860px; }

/* ヘッダーを出さない画面（ログイン・回答・完了）のブランド表示 */
.focus-brand {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: var(--compass-space-xl) var(--compass-space-lg) 0;
}
.focus-brand .logo-tile { background: transparent; padding: 0; }
.focus-brand__text {
  font-size: 14px; font-weight: 800; letter-spacing: .14em; color: var(--compass-navy);
}

/* フッターは DSボードのフッター区画をそのまま持ってくる。
   細い罫と小さな文字だけの既定のフッターだと、ページの終わりが尻すぼみになる。 */
.foot {
  margin-top: var(--compass-space-xl);
  background: var(--compass-navy);
  color: #fff;
  border-top: 3px solid var(--compass-gold);
}
.foot__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--compass-space-lg);
  max-width: 1280px; margin: 0 auto;
  padding: var(--compass-space-lg) var(--compass-space-lg) var(--compass-space-md);
}
.foot__brand { display: flex; align-items: center; gap: 13px; }
.foot__name { display: flex; flex-direction: column; gap: 2px; }
.foot__name b { font-size: 13.5px; font-weight: 800; letter-spacing: .11em; }
.foot__name span { font-size: 10.5px; letter-spacing: .04em; color: rgba(255,255,255,.58); }

/* 5活動のランプ。表やチャートで使っている色の意味を毎ページ足元で示す。
   ランプ自体がネイビーの濃淡なので、濃紺に直置きすると濃い側が消える。
   DSボードのパレット区画と同じく、明るい板の上に載せて色を正しく見せる。 */
.foot__ramp { display: flex; flex-direction: column; gap: 9px; }
.foot__ramp-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .22em;
  color: rgba(255,255,255,.45);
}
.foot__ramp-items {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 10px 16px; border-radius: var(--compass-radius-md);
  background: var(--compass-off-white);
}
.foot__ramp-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; color: var(--compass-navy);
}
.foot__ramp-item i {
  width: 20px; height: 20px; border-radius: 3px; display: block; flex-shrink: 0;
}

.foot__meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  max-width: 1280px; margin: 0 auto;
  padding: 12px var(--compass-space-lg);
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.5);
}

/* ---------------- カード ----------------
   カードは3段階。主役(feature) / 通常 / 補助(quiet)。
   全部を同じ白いカードで並べると、どこを見ればいいのか分からなくなる。 */

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--compass-border);
  border-radius: var(--compass-radius-lg);
  box-shadow: var(--compass-shadow-card);
  padding: var(--compass-space-lg);
  margin-bottom: var(--compass-space-lg);
}
/* 主役カード。ページで最初に見てほしい1枚だけに付ける。 */
.card--feature {
  padding-top: 26px;
  border-color: #d8d2c4;
  box-shadow: var(--compass-shadow-lg);
}
.card--feature::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px;
  border-radius: var(--compass-radius-lg) var(--compass-radius-lg) 0 0;
  background: var(--compass-gold);
}
.card--feature > .card__head h2 { font-size: 20px; }
/* 補助カード。影を落として1段沈める。 */
.card--quiet {
  background: var(--compass-off-white);
  box-shadow: none;
}
/* 選んだカード / これ以上選べないカード（重点目標の画面） */
.card--picked {
  border-color: var(--compass-gold);
  box-shadow: 0 0 0 1px var(--compass-gold), var(--compass-shadow-card);
}
.card--locked { opacity: .5; }

.card__head { margin-bottom: var(--compass-space-md); }
/* 見出しの頭にゴールドの短い罫。カードの上端を目で拾えるようにする。 */
.card__head h2 {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; letter-spacing: .02em; color: var(--compass-navy);
}
.card__head h2::before {
  content: ""; width: 3px; height: 15px; flex-shrink: 0;
  border-radius: 2px; background: var(--compass-gold);
}
.card__note { margin-top: 5px; font-size: 12.5px; color: var(--compass-muted); }

/* ---------------- ページ見出し ----------------
   小さい見出しの下に小さい説明が続くと全ページが同じ顔になる。
   ジャンプ率を上げて、ページの入口をはっきりさせる。 */

.page-head { margin-bottom: var(--compass-space-lg); }
.page-head h1 {
  font-size: 31px; font-weight: 800; letter-spacing: -.01em;
  color: var(--compass-navy);
}
.page-head p { margin-top: 6px; font-size: 13.5px; color: var(--compass-muted); }
.page-head__eyebrow {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 9px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .2em;
  color: var(--compass-gold-dark);
}
.page-head__eyebrow::after {
  content: ""; flex: 1; height: 1px; background: var(--compass-border);
}

/* セクションの区切り。カードが5枚以上並ぶ画面で群を作る。 */
.section-title {
  display: flex; align-items: center; gap: 12px;
  margin: var(--compass-space-xl) 0 var(--compass-space-md);
  font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--compass-navy);
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--compass-border); }

.row { display: flex; gap: var(--compass-space-lg); flex-wrap: wrap; }
.row > .col { flex: 1 1 320px; min-width: 0; }
.row--tight { gap: var(--compass-space-md); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--compass-space-md); flex-wrap: wrap; }

/* ---------------- ボタン / フォーム ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: var(--compass-radius-md);
  border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
/* 主役のボタンだけ影を持たせる。ghost と同じ高さに見えていると、
   どれを押せばいいのかが分からない。 */
.btn--primary {
  background: var(--compass-navy); color: #fff;
  box-shadow: 0 2px 6px rgba(26,40,81,.26);
}
.btn--primary:hover { background: var(--compass-navy-dark); }
.btn--ghost { background: #fff; color: var(--compass-navy); border-color: var(--compass-gray-300); }
.btn--ghost:hover { background: var(--compass-gray-100); border-color: var(--compass-navy); }
.btn--gold {
  background: var(--compass-gold); color: var(--compass-navy-dark);
  box-shadow: 0 2px 6px rgba(200,159,77,.36);
}
.btn--gold:hover { background: var(--compass-gold-dark); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--compass-space-md); }
.field label { font-size: 12.5px; font-weight: 700; color: var(--compass-gray-700); }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="date"], .field input[type="file"], .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--compass-gray-300); border-radius: var(--compass-radius-md);
  font: inherit; color: var(--compass-ink); background: #fff;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--compass-gold); outline-offset: 1px; border-color: var(--compass-gold);
}
.field__hint { font-size: 11.5px; color: var(--compass-muted); }

/* ---------------- フラッシュ ---------------- */

.flash {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; margin-bottom: var(--compass-space-md);
  border-radius: var(--compass-radius-md); font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent;
}
.flash--info    { background: #eef4fb; color: #1e3a5f; border-color: #cfe0f2; }
.flash--success { background: #edf8f1; color: #14532d; border-color: #c6e9d4; }
.flash--warning { background: #fdf5e6; color: #7a4f01; border-color: #f3ddb0; }
.flash--danger  { background: #fdeeec; color: #7f1d1d; border-color: #f5cdc8; }

/* ---------------- サーベイ回答 ---------------- */

.progress { display: flex; align-items: center; gap: 14px; margin-bottom: var(--compass-space-lg); }
.progress__track { flex: 1; height: 10px; border-radius: 999px; background: var(--compass-gray-200); overflow: hidden; }
.progress__fill { display: block; height: 100%; background: var(--compass-gold); transition: width .25s ease; }
.progress__text {
  font-size: 15px; font-weight: 800; color: var(--compass-navy);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.qblock { padding: var(--compass-space-lg) 0; border-bottom: 1px solid var(--compass-border); }
.qblock:last-of-type { border-bottom: 0; }
/* 設問番号。カード見出しの中で使う活動ラベルと同じ形。 */
.qblock__activity {
  display: inline-block; margin-bottom: 9px;
  padding: 3px 11px; border-radius: 999px;
  background: var(--compass-navy); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
}
.qblock__text { font-size: 16.5px; font-weight: 700; line-height: 1.6; margin-bottom: var(--compass-space-md); color: var(--compass-navy); }

/* 5段階は必ず1行に並べる。折り返して 4＋1 になると、
   左が「あてはまる」右が「あてはまらない」という並びが読めなくなる。 */
.scale { display: flex; gap: 8px; }
.scale__option { flex: 1 1 0; min-width: 0; }
.scale__option input { position: absolute; opacity: 0; pointer-events: none; }
.scale__option span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 62px; padding: 8px 10px;
  border: 1.5px solid var(--compass-gray-300); border-radius: var(--compass-radius-md);
  font-size: 12.5px; font-weight: 500; line-height: 1.45; cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease;
}
.scale__option span:hover { border-color: var(--compass-gold); background: #fffdf7; }
.scale__option input:checked + span {
  border-color: var(--compass-navy); background: var(--compass-navy); color: #fff; font-weight: 700;
}
.scale__option input:focus-visible + span { outline: 2px solid var(--compass-gold); outline-offset: 2px; }

/* ---------------- 星（週報） ---------------- */

.stars { display: flex; gap: 6px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars__item span {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--compass-radius-md);
  border: 1.5px solid var(--compass-gray-300);
  font-size: 20px; color: var(--compass-gray-300); cursor: pointer;
  transition: all .12s ease;
}
.stars__item span:hover { border-color: var(--compass-gold); color: var(--compass-gold); }
.stars input:checked + span { border-color: var(--compass-gold); background: var(--compass-gold); color: #fff; }

/* ---------------- チャート ---------------- */

.legend { display: flex; gap: var(--compass-space-md); flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.legend__item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--compass-gray-700); }
.legend__item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.cbar { display: flex; flex-direction: column; gap: 4px; }
.cbar__row { display: flex; align-items: center; gap: 8px; }
.cbar__label { flex: 0 0 30px; font-size: 11px; font-weight: 700; color: var(--compass-muted); }
.cbar__track { flex: 1; height: 8px; border-radius: 999px; background: var(--compass-gray-100); overflow: hidden; }
.cbar__fill { display: block; height: 100%; border-radius: 999px; }
.cbar__value { flex: 0 0 30px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cbar__na { font-size: 12px; color: var(--compass-gray-400); }

.delta { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta--up   { color: var(--compass-success); }
.delta--down { color: var(--compass-danger); }
.delta--flat, .delta--none { color: var(--compass-gray-400); }

.score-big { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--compass-navy); line-height: 1.2; }
.score-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--compass-muted); }

/* 活動の目印。ロゴと同じ五角形で、面の色をそのまま使う。 */
.act-chip { flex-shrink: 0; margin-right: 6px; vertical-align: -2px; }

/* 活動ごとの明細行 */
.actrow { display: flex; align-items: center; gap: var(--compass-space-md); padding: 12px 0; border-bottom: 1px solid var(--compass-gray-100); }
.actrow:last-child { border-bottom: 0; }
.actrow__name { flex: 0 0 104px; font-size: 13.5px; font-weight: 700; color: var(--compass-navy); }
.actrow__bars { flex: 1 1 200px; min-width: 0; }
.actrow__bars--fixed { flex: 0 0 210px; }
.actrow__delta { flex: 0 0 74px; text-align: right; }

/* 設問1行ぶん。文章が主役なので上揃えにする。 */
.actrow--question { align-items: flex-start; }
.actrow__question {
  flex: 1 1 300px; min-width: 0; padding-right: 8px;
  font-size: 13px; line-height: 1.6;
}

.alert-pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--compass-warning); color: #fff;
  font-size: 11px; font-weight: 800; margin-left: 6px;
}

.anon-note {
  padding: 10px 14px; border-radius: var(--compass-radius-md);
  background: var(--compass-gray-100); border: 1px dashed var(--compass-gray-300);
  font-size: 12.5px; color: var(--compass-gray-700);
}

/* ---------------- コンポーネント ----------------
   ページ側に style="" を書かない。見た目はすべてここに集約する。 */

/* ヒーロー：最初に目に入るのは活動ごとの明細ではなく
   「自分はこう思っている / 部下にはこう見えている」の差 */
.hero { display: flex; align-items: center; gap: var(--compass-space-lg); flex-wrap: wrap; }
.hero__figures { flex: 0 1 190px; display: flex; flex-direction: column; gap: var(--compass-space-md); }
.hero__chart { flex: 1 1 300px; display: flex; justify-content: center; min-width: 0; }

/* スコアはこの画面の主役なので、いちばん大きい文字にする。 */
.score { display: flex; flex-direction: column; gap: 2px; }
.score__label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--compass-muted);
}
.score__value {
  font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.score__value--navy { color: var(--compass-navy); }
.score__value--gold { color: var(--compass-gold-dark); }
.score__value small { font-size: 15px; font-weight: 700; margin-left: 6px; color: var(--compass-gray-400); letter-spacing: 0; }
.score__rule { display: block; width: 52px; height: 3px; margin-top: 8px; border-radius: 2px; }
.score__rule--navy { background: var(--compass-navy); }
.score__rule--gold { background: var(--compass-gold); }

/* 小見出し。25問が続く画面で、5活動の切れ目を面で示す。 */
.subhead {
  display: flex; align-items: center;
  margin: 26px 0 2px; padding: 8px 12px;
  border-radius: var(--compass-radius-sm);
  background: var(--compass-off-white);
  font-size: 13.5px; font-weight: 800;
  letter-spacing: .08em; color: var(--compass-navy);
}
.subhead:first-child { margin-top: 0; }

/* 注記 */
.u-note { font-size: 12.5px; line-height: 1.7; color: var(--compass-gray-700); }
.u-note--note { color: var(--compass-muted); }
.u-note--warn {
  padding: 10px 14px; border-radius: var(--compass-radius-md);
  background: var(--compass-gray-100); border: 1px dashed var(--compass-gray-300);
}
.u-note strong { color: var(--compass-danger); font-size: 13px; }

/* 空状態。黙って空白にせず、次にやることを必ず出す。 */
.empty {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--compass-space-md);
  padding: var(--compass-space-lg) 0;
}
.empty__text { font-size: 13.5px; color: var(--compass-muted); }

/* やること1件（ホームのハブ）。
   罫で仕切っただけの行にすると全部が同じ重さになり、
   「いま何をすればいいのか」が見つからない。面にして左に色を差す。 */
.task {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--compass-space-md); flex-wrap: wrap;
  padding: 17px 20px; margin-bottom: 10px;
  border: 1px solid var(--compass-border); border-left: 4px solid var(--compass-gray-300);
  border-radius: var(--compass-radius-md);
  background: var(--compass-off-white);
}
.task:last-child { margin-bottom: 0; }
.task--primary { border-left-color: var(--compass-navy); }
.task--gold    { border-left-color: var(--compass-gold); }
.task__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.task__title { font-size: 16px; font-weight: 800; color: var(--compass-navy); }
.task__meta { font-size: 12px; color: var(--compass-muted); }

/* 見出し横に置くフォーム（実施回の切り替え） */
.field--inline { margin: 0; min-width: 200px; }

/* 5活動の凡例 */
.act-legend { display: flex; flex-direction: column; gap: 7px; }
.act-legend__item {
  display: flex; align-items: center;
  font-size: 12px; font-weight: 600; color: var(--compass-gray-700);
}

/* 送信完了 */
.done { text-align: center; }
.done__mark { font-size: 40px; line-height: 1; margin-bottom: 12px; color: var(--compass-success); }
.done__title { font-size: 20px; color: var(--compass-navy); }

/* 重点目標1件。活動名と目標文を離すと、どの活動の目標なのかが読み取れない。 */
.goal-line {
  padding: 12px 16px; margin-bottom: 10px;
  border-left: 3px solid var(--compass-navy);
  border-radius: 0 var(--compass-radius-sm) var(--compass-radius-sm) 0;
  background: var(--compass-off-white);
}
.goal-line__act {
  display: flex; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--compass-muted);
}
.goal-line__text { margin-top: 3px; font-size: 15px; font-weight: 700; color: var(--compass-navy); }

/* 目標の選択肢1件 */
.goal-option__head { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.goal-option__box { margin-top: 5px; width: 18px; height: 18px; flex-shrink: 0; }
.goal-option__body { flex: 1; min-width: 0; }
.goal-option__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.goal-option__title b { font-size: 15px; color: var(--compass-navy); }
.goal-option__title span { font-size: 12.5px; color: var(--compass-muted); }
.goal-option__bars { display: block; max-width: 340px; margin-top: 8px; }
.goal-option__warn { display: block; margin-top: 6px; font-size: 12px; color: #7a4f01; }

/* 週の切り替え */
.week-picker { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.week-picker__label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--compass-muted); margin-right: 4px;
}
.week-picker__item { text-decoration: none; padding: 6px 11px; }
.week-picker__item--current { outline: 2px solid var(--compass-navy); outline-offset: 1px; }

/* 招待リンクの表示欄 */
.token-field {
  width: 260px; padding: 5px 8px; font-size: 11px;
  border: 1px solid var(--compass-gray-300); border-radius: var(--compass-radius-sm);
  color: var(--compass-muted); background: var(--compass-gray-50);
}
.token-field--empty { font-size: 12px; color: var(--compass-gray-400); }

.btn-row { display: flex; gap: 4px; }
.btn--xs { padding: 5px 10px; font-size: 12px; }
.btn--sm { padding: 6px 12px; font-size: 12.5px; }
.btn--danger-text { color: var(--compass-danger); }

.card--tight { padding: 14px 16px; }
.stat-row { display: flex; gap: var(--compass-space-lg); flex-wrap: wrap; }

.u-sub { font-weight: 400; font-size: 11.5px; color: var(--compass-muted); }
.u-lead { font-size: 13.5px; color: var(--compass-muted); }
.u-quiet { font-size: 12px; color: var(--compass-muted); }
.u-strong-navy { font-weight: 700; color: var(--compass-navy); }

/* レイアウトの微調整はユーティリティで持つ（ページ側にstyleを書かないため）。
   `.row > .col` のほうが詳細度が高いので、必ず同じ形で上書きする。
   単独クラスで書くと効かず、幅指定が全部 1 1 320px に潰れる。 */
.row > .col--narrow  { flex: 0 1 150px; align-self: center; }
.row > .col--radar   { flex: 0 1 210px; text-align: center; }
.mini-radar__title { font-size: 12.5px; font-weight: 700; color: var(--compass-navy); margin-bottom: 4px; }
.row > .col--half    { flex: 1 1 380px; }
.row > .col--auto    { flex: 0 0 auto; }
.u-mb-md { margin-bottom: var(--compass-space-md); }
.u-mb-lg { margin-bottom: var(--compass-space-lg); }
.u-mt-md { margin-top: var(--compass-space-md); }
.u-mt-lg { margin-top: var(--compass-space-lg); }
.u-divider-top { margin-top: var(--compass-space-lg); padding-top: var(--compass-space-md); border-top: 1px solid var(--compass-border); }
.u-center { text-align: center; }
.u-ml-sm { margin-left: 6px; }
.row > .col--foot { flex: 1 1 200px; display: flex; align-items: flex-end; }

/* ---------------- テーブル ---------------- */

.table-scroll { overflow-x: auto; }
/* 5活動の列見出しは、その活動のトーンでベタ塗りにする。
   単色ランプなので虹色にならず、それだけで表が構造化されて見える。 */
table.data th.act-head { color: #fff; font-weight: 700; text-align: right; }
table.data th.col-change { min-width: 240px; }
table.data td.cell-activity {
  font-weight: 700; color: var(--compass-navy); white-space: nowrap;
}
table.data td.cell-name { font-weight: 700; }
table.data td.cell-muted { color: var(--compass-muted); }
table.data td.cell-rank {
  font-weight: 800; color: var(--compass-gold-dark);
  font-size: 15px; white-space: nowrap;
}
table.data td.cell-blocked {
  text-align: center; color: var(--compass-gray-400); font-size: 12px;
}
table.data td.cell-strong { font-weight: 800; }
.rank-crown { font-size: 15px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--compass-border); white-space: nowrap; }
/* 見出し行は濃紺の罫で本体から切り離す。薄いグレーだけだと本文に埋もれる。 */
table.data thead th {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--compass-navy); background: var(--compass-off-white);
  border-bottom: 2px solid var(--compass-navy);
}
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:nth-child(even) { background: rgba(248,246,241,.6); }
table.data tbody tr:hover { background: var(--compass-gray-100); }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.badge--done    { background: #edf8f1; color: #14532d; }
.badge--pending { background: var(--compass-gray-100); color: var(--compass-gray-500); }
.badge--manager { background: #eef2fb; color: var(--compass-navy); }
.badge--member  { background: var(--compass-gray-100); color: var(--compass-gray-700); }
.badge--alert   { background: #fdecea; color: #8f2318; }

/* CSV取り込みの確認画面。エラー行は地の色を変えて拾いやすくする */
.row--error > td { background: #fdf6f5; }
.u-danger { color: #9e2b1e; font-weight: 600; }

/* 件数などの小さい統計。数字を大きく、ラベルを小さく。 */
.stat {
  display: flex; flex-direction: column; gap: 1px;
  padding-left: 13px; border-left: 3px solid var(--compass-gold);
}
.stat__value {
  font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  color: var(--compass-navy); font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--compass-muted); }
.stat__value small { font-size: 14px; font-weight: 700; margin-left: 6px; color: var(--compass-gray-400); letter-spacing: 0; }

/* 数字＋帯。数字だけだと母数との距離感が出ない。 */
.progress-stat {
  display: flex; align-items: center; gap: var(--compass-space-lg);
  margin-bottom: var(--compass-space-lg);
}
.progress-stat .stat { flex: 0 0 auto; }
.progress-stat .progress__track { flex: 1 1 120px; }

/* タブレット幅（641〜1024px）。要件はPC主想定＋タブレット考慮。
 * この幅ではブランド名が2行に折れてナビが2段になるので、タグラインを畳み、
 * ブランド名の折り返しを止め、ナビの左右余白を詰めて1段に収める。 */
@media (max-width: 1024px) {
  .brand__text b { white-space: nowrap; font-size: 14px; }
  .brand__text span { display: none; }
  .topnav a { padding: 20px 10px; font-size: 12.5px; }
}

@media (max-width: 640px) {
  .wrap { padding: var(--compass-space-md); }
  .page-head h1 { font-size: 25px; }
  .score__value { font-size: 42px; }
  /* 狭い画面では5段階を縦に積む。1行に押し込むと文字が読めなくなる。 */
  .scale { flex-direction: column; }
  .scale__option span { min-height: 46px; }
  .actrow { flex-wrap: wrap; }
  .actrow__name { flex-basis: 100%; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
  .foot__ramp-items { gap: 12px; }
}

/* ---------------- ツールチップ（tooltip.js が使う） ---------------- */

.tip {
  position: fixed;
  z-index: 1000;
  max-width: 320px;
  padding: 8px 12px;
  background: var(--compass-navy);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(26, 40, 81, .3);
  pointer-events: none;   /* 吹き出し自身がホバーを奪ってチラつかないように */
}
[data-tip] { cursor: default; }

/* ---------------- 行動目標の例文チップ（goal.php） ---------------- */

.goal-templates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.goal-templates__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--compass-muted);
  margin-right: 2px;
}
.goal-templates__chip {
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  padding: 5px 11px;
  border: 1px solid var(--compass-gray-300);
  border-radius: 999px;
  background: #fff;
  color: var(--compass-gray-700);
  cursor: pointer;
  text-align: left;
}
.goal-templates__chip:hover { border-color: var(--compass-gold); color: var(--compass-ink); }
.goal-templates__chip:focus-visible { outline: 2px solid var(--compass-gold); outline-offset: 1px; }

/* ---------------- 先週のTry（weekly.php・提案K） ---------------- */

.last-try {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--compass-off-white);
  border-left: 3px solid var(--compass-gold);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.last-try__label { font-size: 11px; font-weight: 700; color: var(--compass-gold-deep, #a3803a); }
.last-try__text  { margin: 0; font-size: 13.5px; color: var(--compass-ink); }
.last-try__hint  { font-size: 11.5px; color: var(--compass-muted); }

/* ---------------- AIフィードバック（weekly.php） ---------------- */

.ai-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #eef4fb;
  border: 1px solid #cfe0f2;
  border-radius: var(--compass-radius-md, 8px);
  padding: 13px 16px;
  margin-bottom: var(--compass-space-md, 16px);
}
.ai-note__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--compass-navy); }
.ai-note__text  { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--compass-ink); }
