/* ============================================================
   習慣化コーチング プロトタイプ - スタイル
   ============================================================ */
:root{
  /* === 煌堂・和テイスト3色 === */
  /* 墨黒(Sumi-kuro)：基調・文字 */
  --navy:#1a2851; --navy-dark:#0f1a3a; --navy-light:#3a4a7c;

  /* 古代金(Kodaigane)：アクセント・差し色（Round 2 S3 で修正、以前は墨黒で潰れていた） */
  --gold:#c89f4d; --gold-dark:#a87f2d; --gold-light:#e0c47e;
  /* --orange は後方互換用エイリアス。新規CSSは --gold を直接使うこと */
  --orange:#c89f4d; --orange-light:#e0c47e;

  /* 白(Shiro)：地・余白 */
  --cream:#f8f6f1;

  /* グレー（補助） */
  --gray-50:#f8fafc; --gray-100:#f1f5f9;
  --gray-200:#e2e8f0; --gray-300:#cbd5e1; --gray-400:#94a3b8; --gray-500:#64748b;
  --gray-700:#334155; --gray-900:#0f172a;

  /* 状態色（最小限） */
  --green:#10b981; --red:#c5483d;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:var(--gray-900);background:var(--cream);line-height:1.75;font-size:17px;letter-spacing:0.03em;-webkit-font-smoothing:antialiased}

.shell{max-width:840px;margin:0 auto;padding:0 20px 80px}

/* ===== ヘッダ ===== */
.brand{display:flex;align-items:center;gap:14px;padding-block:24px;margin-bottom:0;border-bottom:none;position:sticky;top:0;z-index:1000;background:var(--cream)}
/* ロゴをホーム戻る動線に（クリック可能を示す） */
.brand-home{display:flex;align-items:center;gap:14px;cursor:pointer;border-radius:8px;padding:4px 8px;margin:-4px -8px;text-decoration:none;color:inherit}
.brand-home:hover .brand-mark{border-color:var(--navy)}
.brand-mark{width:42px;height:42px;border:2px solid var(--orange);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:serif;font-size:22px;color:var(--navy);font-weight:700;flex-shrink:0}
.brand-text{font-size:11px;letter-spacing:4px;color:var(--gray-500);font-weight:700}
.brand-name{font-size:14px;color:var(--navy);font-weight:700;letter-spacing:1px;margin-top:2px;line-height:1.2}
.brand-tag{margin-left:auto;font-size:14px;color:var(--gray-500);font-weight:600}

/* ===== セクション切替 ===== */
.section{display:none;animation:fadeIn .35s ease}
.section.active{display:block;border-top:1px solid var(--gray-200);padding-top:16px}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ===== ヒーロー ===== */
.hero{background:linear-gradient(135deg,var(--navy-dark) 0%,var(--navy) 60%,var(--navy-light) 130%);color:white;padding:42px 36px;border-radius:8px;position:relative;overflow:hidden;margin-bottom:20px}
.hero::before{content:'';position:absolute;width:300px;height:300px;bottom:-100px;right:-100px;background:radial-gradient(circle,rgba(26,40,81,0.4) 0%,transparent 60%)}
.hero-label{font-size:11px;letter-spacing:6px;color:rgba(255,255,255,0.75);font-weight:700;position:relative}
.hero h1{font-size:24px;font-weight:700;line-height:1.5;margin-top:14px;position:relative}
.hero-sub{font-size:16px;color:rgba(255,255,255,0.88);margin-top:14px;line-height:1.8;position:relative}
.hero-sub > span{display:block;font-size:12px}

/* ===== カード ===== */
.card{background:white;padding:16px;border-radius:8px;margin-bottom:20px}
.card-title{font-size:14px;font-weight:700;color:var(--navy);margin-bottom:10px}
.card-desc{font-size:15px;color:var(--gray-500);margin-bottom:20px;line-height:1.8}

/* 下層ページを白パネルに集約（ホームと統一）。見出しはパネル外、中身を白カードに */
.subpage-panel{background:white;padding:16px;border-radius:8px;margin-bottom:20px}
/* 中の白カードはクリームに沈めて「白の中に白」を回避（ホームのタイル感に揃える） */
.subpage-panel .career-role-card,
.subpage-panel .type-detail-card,
.subpage-panel .manager-stat,
.subpage-panel .manager-alert-card,
.subpage-panel .report-item,
.subpage-panel .sh-narr,
.subpage-panel .sh-quarter,
.subpage-panel .card{background:var(--cream);box-shadow:none}

/* ===== カスケード表示 ===== */
.cascade-display{margin-bottom:20px}
.cascade-label{font-size:12px;letter-spacing:3px;color:var(--gray-500);font-weight:700;margin-bottom:0}
.cascade-row{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;background:var(--gray-50);border-radius:4px;margin-bottom:6px}
.cascade-tag{flex-shrink:0;display:inline-block;padding:3px 10px;font-size:10px;font-weight:800;letter-spacing:2px;color:white;border-radius:2px}
.cascade-tag.long{background:var(--navy)}
.cascade-tag.mid{background:var(--orange)}
.cascade-tag.short{background:var(--green)}
.cascade-tag.today{background:var(--gold)}
.cascade-text{font-size:15px;color:var(--gray-700);line-height:1.65;flex:1}

/* ===== タイプ表示 ===== */
.type-display{margin-bottom:20px;padding:16px 20px;background:var(--gray-50);border-radius:6px}
.type-display:empty{display:none}
.type-row{display:flex;align-items:center;gap:12px;padding:6px 0}
.type-row.sub{opacity:0.85}
.type-tag{padding:2px 10px;font-size:10px;font-weight:800;letter-spacing:1px;color:white;border-radius:2px}
.type-name{font-size:15px;font-weight:700;color:var(--navy)}
.type-score{margin-left:auto;font-size:12px;color:var(--gray-500);font-weight:700}

/* ===== ボタン ===== */
/* 3階層ボタン（トップページ基準で全ページ統一）
   primary=塗り / secondary=白＋枠線 / text=薄塗り（tertiary）。すべて同じ高さ・角丸 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 28px;border-radius:4px;font-size:14px;font-weight:700;cursor:pointer;border:1px solid transparent;font-family:inherit;transition:all .15s;text-decoration:none}
.btn-primary{background:var(--orange);color:white;border-color:var(--orange)}
.btn-primary:hover{background:#0f1a3a;border-color:#0f1a3a}
.btn-primary:disabled{background:var(--gray-200);color:var(--gray-400);border-color:var(--gray-200);cursor:not-allowed;transform:none}
.btn-secondary{background:white;color:var(--navy);border-color:var(--gray-200)}
.btn-secondary:hover{border-color:var(--navy)}
/* tertiary：以前は「テキストのリンク風」だったが、薄塗りボタンに統一 */
.btn-text{background:var(--gray-50);color:var(--navy);border-color:var(--gray-200);font-weight:700}
.btn-text:hover{background:white;border-color:var(--navy);color:var(--navy)}
.btn-big{font-size:16px;padding:18px 36px;width:100%;margin-top:8px;margin-bottom:6px}
/* Claude in Chrome 拡張のAI操作カーソル可視化を非表示
   （らくちゃんが「邪魔」と判定したため、当ページ上では完全に消す）
   max int -1 の z-index は通常のページ要素では使わない値で、拡張が注入する目印になっている */
body > div[style*="2147483646"] { display: none !important; visibility: hidden !important; pointer-events: none !important }

/* CTA: 古代金グラデ（コーチ未選択を促す） */
.btn.btn-needs-coach{background:linear-gradient(135deg,var(--gold) 0%,var(--gold-dark) 100%);color:white;animation:btn-pulse 2s ease-in-out infinite}
.btn.btn-needs-coach:hover{background:linear-gradient(135deg,#dc6803 0%,#92400e 100%);transform:translateY(-1px)}
@keyframes btn-pulse{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,0.5)}50%{box-shadow:0 0 0 8px rgba(245,158,11,0)}}
.btn-row{display:flex;gap:10px;justify-content:space-between;margin-top:18px}

/* ===== セットアップ ===== */
.setup-progress{display:flex;gap:10px;margin-bottom:24px}
.setup-progress .step{flex:1;padding:10px 14px;background:var(--gray-100);border-radius:3px;font-size:11px;font-weight:700;color:var(--gray-500);text-align:center;letter-spacing:1px}
.setup-progress .step.active{background:var(--orange);color:white}
.setup-progress .step.done{background:var(--navy);color:white}

.setup-step h2{font-size:24px;color:var(--navy);font-weight:700;margin-bottom:10px}
.step-desc{font-size:15px;color:var(--gray-500);margin-bottom:22px;line-height:1.8}

.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:14px;font-weight:700;color:var(--navy);margin-bottom:8px}
.form-group input, .form-group textarea, .form-group select{width:100%;padding:12px 14px;border:1px solid var(--gray-200);border-radius:4px;font-size:16px;font-family:inherit;line-height:1.6;color:var(--gray-900);background:white}
.form-group select{cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:10px;padding-right:36px}
.form-hint{font-size:14px;color:var(--gray-500);margin-top:8px;line-height:1.7}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(26,40,81,0.1)}

/* ===== クイズ ===== */
.quiz-progress{margin-bottom:14px;padding:12px 16px;background:white;border-radius:4px}
.quiz-prog-text{display:flex;justify-content:space-between;font-size:11px;color:var(--gray-500);font-weight:700;margin-bottom:6px}
.quiz-prog-bar{height:5px;background:var(--gray-100);border-radius:3px;overflow:hidden}
.quiz-prog-fill{height:100%;background:linear-gradient(90deg,var(--orange) 0%,var(--orange-light) 100%);transition:width .3s ease}

.quiz-card{background:white;padding:24px 28px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,0.04);margin-bottom:14px}
.q-meta{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.q-num{font-size:12px;font-weight:700;letter-spacing:2px;color:var(--orange)}
.q-scenario{font-size:10px;color:var(--gray-500);background:var(--gray-50);padding:2px 9px;border-radius:2px}
.q-text{font-size:18px;font-weight:600;color:var(--navy);line-height:1.7;margin-bottom:14px}
.q-hint{font-size:14px;color:var(--gray-500);margin-bottom:16px;padding:11px 14px;background:var(--cream);border-left:3px solid var(--orange);line-height:1.75}

.scale{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.scale-btn{padding:11px 4px;border:1.5px solid var(--gray-200);border-radius:4px;background:white;cursor:pointer;text-align:center;transition:all .15s;font-family:inherit}
.scale-btn:hover{border-color:var(--orange);background:#f1f5f9}
.scale-btn.selected{border-color:var(--orange);background:var(--orange);color:white}
.scale-btn .v{font-size:16px;font-weight:800;display:block}
.scale-btn .l{font-size:9px;line-height:1.3;display:block;margin-top:3px;color:var(--gray-500)}
.scale-btn.selected .l{color:rgba(255,255,255,0.9)}

/* ===== バランスホイール ===== */
.wheel-row{background:white;padding:22px 26px;border-radius:8px;margin-bottom:14px;box-shadow:0 2px 8px rgba(0,0,0,0.05)}
.wheel-label-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.wheel-tag{padding:5px 14px;font-size:12px;font-weight:800;letter-spacing:1px;color:white;border-radius:3px}
.wheel-value{font-family:Inter,sans-serif;font-size:32px;font-weight:800;color:var(--navy);min-width:50px;text-align:right;line-height:1}
.wheel-question{font-size:17px;font-weight:700;color:var(--gray-900);line-height:1.5;margin-bottom:8px}
.wheel-detail{font-size:14px;color:var(--gray-700);line-height:1.7;margin-bottom:16px;background:var(--gray-50);padding:10px 14px;border-left:3px solid var(--orange);border-radius:2px}
.wheel-scale-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--gray-500);margin-bottom:6px;padding:0 4px;font-weight:600}
.wheel-scale{display:grid;grid-template-columns:repeat(10,1fr);gap:4px}
.wheel-btn{padding:12px 0;border:1.5px solid var(--gray-200);border-radius:4px;background:white;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:700;color:var(--gray-700);transition:all .12s}
.wheel-btn:hover{border-color:var(--orange);background:#f1f5f9}
.wheel-btn.selected{font-weight:800}

@media (max-width:600px){
  .wheel-row{padding:18px 18px}
  .wheel-question{font-size:15px}
  .wheel-detail{font-size:12px}
  .wheel-scale{gap:2px}
  .wheel-btn{font-size:12px;padding:10px 0}
  .wheel-value{font-size:26px}
}

/* ===== キャリア提案 ===== */
.career-roles{display:flex;flex-direction:column;gap:14px}
.career-role-card{background:white;box-shadow:0 2px 8px rgba(15,26,58,0.06);padding:20px 24px;border-radius:6px;display:flex;gap:18px;align-items:flex-start;border-left:4px solid var(--orange)}
.career-role-num{font-family:Inter,sans-serif;font-size:36px;font-weight:800;color:var(--orange);line-height:1;flex-shrink:0;width:60px}
.career-role-content{flex:1}
.career-role-name{font-size:18px;font-weight:800;color:var(--navy);margin-bottom:6px}
.career-role-fit{font-size:14px;color:var(--gray-700);line-height:1.7;margin-bottom:10px;font-weight:500}
.career-role-detail{font-size:12px;color:var(--gray-700);line-height:1.7;margin-bottom:10px;background:var(--gray-50);padding:10px 14px;border-radius:3px}
.career-role-condition{font-size:11px;color:var(--green);line-height:1.6;margin-bottom:6px}
.career-role-warning{font-size:11px;color:var(--red);line-height:1.6}
.career-role-condition strong,.career-role-warning strong{font-weight:800;display:inline-block;margin-right:4px}

/* ===== 上司ダッシュボード ===== */
.manager-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:6px}
.manager-stat{background:white;box-shadow:0 2px 6px rgba(15,26,58,0.06);padding:14px 16px;border-top:3px solid var(--orange);border-radius:4px}
.manager-stat-label{font-size:9px;letter-spacing:2px;font-weight:700;color:var(--gray-500);margin-bottom:4px}
.manager-stat-value{font-family:Inter,sans-serif;font-size:24px;font-weight:800;color:var(--navy);line-height:1}
.manager-stat-sub{font-size:10px;color:var(--gray-500);margin-top:4px}

.manager-alerts{display:flex;flex-direction:column;gap:14px}
.manager-alert-card{background:white;box-shadow:0 4px 12px rgba(15,26,58,0.08);padding:20px 24px;border-radius:6px;border-left:4px solid var(--red)}
.manager-alert-head{display:flex;align-items:center;gap:12px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px dashed var(--gray-200);flex-wrap:wrap}
.manager-alert-name{font-size:16px;font-weight:800;color:var(--navy)}
.manager-alert-tag{padding:3px 10px;font-size:10px;font-weight:800;letter-spacing:1px;color:white;border-radius:2px}
.manager-alert-meta{font-size:10px;color:var(--gray-500);margin-left:auto}
.manager-alert-duration{font-size:11px;font-weight:700;color:var(--orange);background:#fff5f0;padding:3px 10px;border-radius:2px}
.manager-intensity{display:flex;align-items:center;gap:10px;color:white;padding:8px 14px;border-radius:4px;margin-bottom:12px}
.manager-intensity-label{font-size:9px;letter-spacing:2px;font-weight:800;opacity:0.85;text-transform:uppercase}
.manager-intensity-value{font-size:14px;font-weight:800;letter-spacing:0.5px}
.manager-alert-trigger{background:var(--cream);padding:10px 14px;border-left:3px solid var(--orange);font-size:12px;color:var(--gray-700);margin-bottom:14px;line-height:1.6}
.manager-alert-advice{background:var(--gray-50);padding:14px 18px;border-radius:4px}
.advice-head{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--orange);margin-bottom:10px}
.advice-body{display:flex;flex-direction:column;gap:10px}
.advice-section{}
.advice-label{font-size:10px;letter-spacing:1px;font-weight:800;color:var(--gray-500);margin-bottom:4px}
.advice-section.warn .advice-label{color:var(--red)}
.advice-text{font-size:12px;color:var(--gray-700);line-height:1.7}
.advice-list{list-style:none;padding:0;margin:0}
.advice-list li{font-size:11.5px;color:var(--gray-700);padding:3px 0 3px 18px;position:relative;line-height:1.6}
.advice-list li::before{content:'▸';position:absolute;left:0;color:var(--orange)}
.advice-section.warn .advice-list li::before{color:var(--red);content:'⚠'}

@media (max-width:600px){
  .manager-stats{grid-template-columns:1fr 1fr}
  .career-role-card{flex-direction:column;gap:10px}
  .career-role-num{width:auto}
}

/* ===== 個人診断レポート ===== */
.report-section{margin-bottom:28px}
.report-head{margin-bottom:14px}
.report-eyebrow{font-size:12px;letter-spacing:3px;font-weight:800;color:var(--orange);margin-bottom:6px}
.report-section h3{font-size:20px;color:var(--navy);font-weight:700;line-height:1.5;margin:0;padding-left:14px;border-left:4px solid var(--orange)}
.report-summary{background:var(--gray-50);padding:18px 22px;border-radius:6px;font-size:14px;line-height:1.9;color:var(--gray-700)}
.report-summary.insight{border-left:3px solid var(--orange);background:#f1f5f9}
.report-list{display:flex;flex-direction:column;gap:8px}
.report-item{display:flex;gap:14px;align-items:flex-start;background:white;padding:14px 18px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,0.04);border-left:3px solid var(--green)}
.report-item.warn{border-left-color:var(--red)}
.report-num{font-family:Inter,sans-serif;font-size:18px;font-weight:800;color:var(--green);min-width:28px;line-height:1.5}
.report-item.warn .report-num{color:var(--red)}
.report-text{font-size:14px;color:var(--gray-700);line-height:1.8;flex:1}
.report-compat{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.compat-card{padding:18px 20px;border-radius:6px;font-size:14px;line-height:1.7}
.compat-card.good{background:#ecfdf5;border-left:4px solid var(--green)}
.compat-card.hard{background:#fef2f2;border-left:4px solid var(--red)}
.compat-type{font-size:16px;font-weight:800;color:var(--navy);margin-bottom:8px}
.compat-why,.compat-approach{margin-bottom:8px;color:var(--gray-700)}
.compat-why strong,.compat-approach strong{color:var(--navy);font-weight:700;display:block;font-size:11px;letter-spacing:1px;margin-bottom:2px}

@media (max-width:600px){
  .report-compat{grid-template-columns:1fr}
  .report-section h3{font-size:16px}
  .report-summary{font-size:14px;padding:14px 16px}
}

/* ===== 診断結果 ===== */
.result-summary{background:white;padding:24px;border-radius:6px;margin-bottom:18px}
.result-block{display:flex;align-items:center;gap:14px;padding:12px 0}
.result-block.sub{opacity:0.85}
.result-tag{padding:3px 12px;font-size:10px;letter-spacing:2px;font-weight:800;color:white;border-radius:2px}
.result-name{font-size:18px;font-weight:700;color:var(--navy)}
.result-score{margin-left:auto;font-family:Inter,sans-serif;font-size:18px;font-weight:800;color:var(--gray-500)}
.result-chart{margin-top:18px;padding-top:18px;border-top:1px solid var(--gray-200)}
.chart-row{display:grid;grid-template-columns:80px 1fr 36px;gap:10px;align-items:center;margin-bottom:6px}
.chart-label{font-size:12px;font-weight:700;color:var(--navy)}
.chart-bar{height:18px;background:var(--gray-100);border-radius:3px;overflow:hidden}
.chart-fill{height:100%;border-radius:3px;transition:width .8s ease}
.chart-pct{font-size:11px;font-weight:700;color:var(--gray-500);text-align:right;font-family:Inter,sans-serif}

/* ===== セッション（チャット）：入力欄を画面下部固定 ===== */
/* ヘッダー分を引いた高さに収め、内部スクロールでメッセージを閲覧 */
/* Issue #88 ①: 会話表示エリアを line-height 22px × 3行分 ≈ 66px 広げる。
   従来 110px 取っていた周辺余白を 44px まで詰めて、その差分 66px を
   .chat-messages（flex:1）に流し込む。.chat-input-wrap / .session-meta は
   flex:0 0 auto のままなので入力欄がはみ出ることはない。
   ヘッダー(.brand ≈ 90px)＋section padding(17px)＝107px あるため、
   そのままだと sec-session 下部が画面外にはみ出る（＝入力欄が見えなくなる）ので、
   セッション表示中だけ :has() で .brand の padding-block と section の余白を詰めて
   総 H を 44px 以内に収める（下の body:has() ブロック参照）。SP（max-width:600px）は
   別ルールで height:calc(100dvh - 80px) を維持しているのでオーバーフローしない。 */
#sec-session.active{
  display:flex;flex-direction:column;
  height:calc(100dvh - 44px); height:calc(100vh - 44px);
  max-height:calc(100dvh - 44px); max-height:calc(100vh - 44px);
  padding:0;
  overflow:hidden;
  box-sizing:border-box;
}
/* Issue #88 ①: セッション表示中だけヘッダとセクション余白を詰めて、
   -44px オフセットに対応する H (=44px以下) を確保する。
   .brand を padding-block:0 まで詰めても brand-mark 42px のロゴが残るので視認性は保つ。
   :has() は Chrome 105 / Safari 15.4 / Firefox 121 以降で使えるため 2026 時点なら安全に前提可。
   非対応ブラウザでは sec-session の入力欄が下方向に少しはみ出るだけで、
   body スクロールで到達可能（fatal ではない）。 */
body:has(#sec-session.active) .brand{padding-block:0;background:var(--cream)}
body:has(#sec-session.active) .section.active{border-top:none;padding-top:2px}

.chat-container{
  display:flex;flex-direction:column;
  flex:1 1 0; min-height:0;             /* 親の flex に従う */
  background:white;border-radius:8px;
  box-shadow:0 4px 14px rgba(15,26,58,0.05);
  overflow:hidden;
}
.chat-messages{
  flex:1 1 0; min-height:0;
  overflow-y:auto;                       /* メッセージは ここで内部スクロール */
  padding:18px 18px 6px 18px;
  -webkit-overflow-scrolling:touch;
}

/* 入力欄・メタ・カスケードは必ず縮まない（送信ボタン沈み防止） */
.chat-input-wrap{flex:0 0 auto !important;background:white;border-top:1px solid var(--gray-200);padding:12px 18px;margin:0;z-index:10}
.session-meta{flex:0 0 auto;padding:8px 18px 12px;border-top:1px solid var(--gray-100);background:white}

/* セッション中のカスケード表示。チャット枠の外で、画面下に細く出る。
   メッセージが増えても入力欄を押し下げないよう flex:0 0 auto＋最大高制限。 */
.session-cascade-bottom{flex:0 0 auto;max-height:32vh;overflow-y:auto;margin-top:12px;background:white;border-radius:8px;padding:10px 16px;box-shadow:0 4px 14px rgba(15,26,58,0.05);border-top:3px solid var(--orange)}
.session-cascade-bottom .cascade-mini{font-size:14px;color:var(--gray-700);padding:7px 0;line-height:1.6;display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid var(--gray-100)}
.session-cascade-bottom .cascade-mini:last-child{border-bottom:none}
.session-cascade-bottom .cascade-mini .cascade-tag{flex-shrink:0;margin-top:2px}
.session-cascade-bottom .cascade-mini-text{font-weight:500;color:var(--gray-900)}
.session-cascade-bottom-title{font-size:10px;letter-spacing:3px;font-weight:800;color:var(--orange);margin-bottom:6px}

.msg{display:flex;gap:10px;margin-bottom:14px;animation:slideIn .25s ease}
@keyframes slideIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.msg-avatar{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0;font-family:serif}
.msg-user .msg-avatar{background:var(--orange);color:white}
.msg-assistant .msg-avatar{background:var(--navy);color:white}
.msg-bubble{padding:12px 16px;border-radius:6px;font-size:17px;line-height:1.85;max-width:85%;color:var(--gray-900)}
.msg-user .msg-bubble{background:#fff5f0;border:1px solid #ffd9c4}
.msg-assistant .msg-bubble{background:var(--gray-50);border:1px solid var(--gray-200)}
.msg.loading .msg-bubble{color:var(--gray-400);font-style:italic}
/* AIの締めメッセージ直下に出る「終える/続ける」インラインアクション */
.msg-close-actions{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 4px calc(40px + 12px)}
.msg-close-btn{padding:10px 18px;border-radius:6px;border:1.5px solid var(--gray-400);background:#fff;color:var(--navy);font-size:14px;font-weight:700;cursor:pointer;transition:all .15s ease;letter-spacing:.02em;min-width:140px}
.msg-close-btn:hover{background:var(--gray-50);border-color:var(--navy)}
.msg-close-btn-primary{background:var(--navy);color:#fff;border-color:var(--navy)}
.msg-close-btn-primary:hover{background:#13204a;border-color:#13204a;color:#fff}
@media (max-width:600px){
  .msg-close-actions{margin-left:0;justify-content:center}
  .msg-close-btn{flex:1 1 auto;min-width:140px;padding:10px 14px}
}
/* 「考えている」タイピング風3ドットアニメ（セッション中・セッション終了時のアシスタント読み込み表示） */
.dc-typing-bubble{display:inline-flex;align-items:center;gap:8px;padding:14px 18px !important;min-height:22px;flex-wrap:wrap}
.dc-typing-bubble .dc-typing-caption{font-size:13px;color:var(--gray-600);font-style:normal;margin-right:4px;line-height:1.4}
.dc-typing-bubble .dc-typing-dot{width:7px;height:7px;border-radius:50%;background:var(--gray-400);display:inline-block;animation:dc-typing-bounce 1.4s infinite ease-in-out both}
.dc-typing-bubble .dc-typing-dot:nth-of-type(2){animation-delay:0.18s}
.dc-typing-bubble .dc-typing-dot:nth-of-type(3){animation-delay:0.36s}
@keyframes dc-typing-bounce{
  0%,80%,100%{transform:translateY(0);opacity:0.35}
  40%{transform:translateY(-4px);opacity:1}
}

/* セッション開始時の「いまの介入レベル」バナー（chat-messages の最上部に挿入） */
.session-level-banner{margin:6px 0 18px;padding:12px 14px;background:linear-gradient(135deg,#eef2ff 0%,#eff6ff 100%);border-left:4px solid #1a2851;border-radius:6px;font-size:14px;line-height:1.75;color:#1f2937;animation:slideIn .3s ease}
.session-level-banner .slb-head{display:flex;align-items:baseline;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.session-level-banner .slb-level{font-size:11px;font-weight:900;color:white;background:#1a2851;padding:3px 10px;border-radius:999px;letter-spacing:0.5px}
.session-level-banner .slb-resonance{font-size:11px;color:#64748b;font-weight:700}
.session-level-banner .slb-title{font-size:14px;font-weight:800;color:#1a2851}
.session-level-banner .slb-desc{font-size:14px;color:#1f2937}

/* ===== セッション完了：共鳴度バー＋まとめ＋アドバイス ===== */
.session-end-resonance{margin:0 0 20px;padding:18px 20px;background:linear-gradient(135deg,#eef2ff 0%,#eff6ff 100%);border-left:4px solid #1a2851;border-radius:8px}
.ser-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.ser-label{font-size:14px;font-weight:800;color:#1a2851;letter-spacing:0.5px}
.ser-levelup{font-size:12px;font-weight:900;color:white;background:linear-gradient(135deg,var(--gold) 0%,var(--gold-dark) 100%);padding:3px 10px;border-radius:999px;animation:btn-pulse 2s ease-in-out infinite}
.ser-bar-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.ser-before,.ser-after{font-size:14px;font-weight:700;color:#1a2851;min-width:40px}
.ser-after{color:#10b981;font-size:15px}
.ser-bar{flex:1;height:14px;background:white;border-radius:999px;overflow:hidden;border:1px solid #cbd5e1}
.ser-bar-fill{height:100%;background:linear-gradient(90deg,#1a2851 0%,#10b981 100%);border-radius:999px;transition:width .6s ease}
.ser-delta{font-size:12px;color:#10b981;font-weight:700;margin-bottom:10px}
.ser-level{display:flex;align-items:center;gap:8px;margin-top:10px}
.ser-level-badge{padding:3px 10px;background:#1a2851;color:white;font-size:11px;font-weight:900;border-radius:999px;letter-spacing:0.5px}
.ser-level-title{font-size:14px;font-weight:800;color:#1a2851}
.ser-level-desc{font-size:12.5px;color:#1f2937;line-height:1.7;margin-top:6px;padding-top:6px;border-top:1px dashed rgba(26,40,81,0.2)}

.end-summary{background:#f0fdf4 !important;border-left:4px solid #10b981 !important;padding:14px 16px;border-radius:8px;margin-bottom:14px}
.end-advice{background:#faf4e4 !important;border-left:4px solid var(--gold) !important;padding:14px 16px;border-radius:8px;margin-bottom:14px}
.end-summary .end-label,.end-advice .end-label{font-size:14px;font-weight:800;letter-spacing:0.3px;margin-bottom:8px;color:#1a2851}
.end-summary .end-value,.end-advice .end-value{font-size:14px;color:#1f2937;line-height:1.85}
.cursor{display:inline-block;width:8px;color:var(--orange);font-weight:bold;animation:blink 1s steps(2,start) infinite;margin-left:1px}
@keyframes blink{to{visibility:hidden}}

.chat-input-wrap{display:flex;gap:8px;align-items:flex-end}
.chat-input-wrap textarea{flex:1;padding:12px 14px;border:1px solid var(--gray-200);border-radius:6px;font-family:inherit;font-size:16px;line-height:1.6;resize:none;min-height:48px;max-height:140px}
.chat-input-wrap textarea:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(26,40,81,0.1)}
.chat-input-wrap .btn{padding:12px 18px;font-size:14px;flex-shrink:0;min-height:48px}

.session-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--gray-400)}

/* ===== セッション終了画面 ===== */
.session-end-card{background:white;padding:32px;border-radius:8px;box-shadow:0 4px 14px rgba(15,26,58,0.05)}
/* セッション完了時は sec-session 全体をスクロール可にする（向かう方向より下も読めるよう） */
#sec-session.active.end-mode{overflow-y:auto;height:auto;min-height:calc(100vh - 44px);max-height:none;padding:18px 20px 40px}
#sec-session.active.end-mode .session-end-card{flex:0 0 auto;max-height:none}
.session-end-card h2{font-size:22px;color:var(--navy);margin-bottom:20px}
.end-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}
.end-item{padding:14px 18px;background:var(--gray-50);border-radius:4px;border-left:3px solid var(--orange)}
.end-item.full{grid-column:1/-1}
.end-item.commit{background:var(--navy);color:white;border-left-color:var(--orange)}
.end-item.commit .end-label{color:rgba(255,255,255,0.75)}
.end-label{font-size:10px;letter-spacing:2px;color:var(--gray-500);font-weight:700;margin-bottom:6px}
.end-value{font-size:14px;color:var(--navy);font-weight:600;line-height:1.6}
.end-value.score{font-size:28px;font-family:Inter,sans-serif;font-weight:800;color:var(--orange)}
.end-value.sub{font-size:14px;color:var(--gray-700);font-weight:500}
.end-unit{font-size:14px;color:var(--gray-400)}
.end-item.commit .end-value{color:white}
.end-item.advice{background:linear-gradient(135deg, #f1f5f9 0%, #ffeadb 100%);border-left:3px solid var(--orange);padding:18px 22px}
.end-item.advice .end-label{color:var(--orange);font-weight:800}
.end-item.advice .end-value{color:var(--navy);font-weight:500;line-height:1.9;font-size:13.5px}

.end-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;align-items:center}
.end-actions .btn-text{margin-left:auto}

/* ===== 30日グラフ ===== */
.score-chart{background:transparent;padding:0;border-radius:0;border:0;margin-bottom:18px}
.score-chart-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.score-chart-title{font-size:12px;letter-spacing:2px;font-weight:800;color:var(--gray-500)}
.score-chart-stats{display:flex;gap:14px;font-size:11px;color:var(--gray-500)}
.score-chart-stats strong{color:var(--orange);font-family:Inter,sans-serif;font-size:14px;font-weight:800}
.score-chart svg{width:100%;height:160px;display:block}
.score-chart-empty{padding:40px;text-align:center;color:var(--gray-400);font-size:12px;font-style:italic}

/* ===== 履歴 ===== */
#sec-history h2{font-size:22px;color:var(--navy);margin-bottom:18px}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}
.stat-item{background:white;padding:18px 20px;border-radius:6px;border-top:3px solid var(--orange)}
.stat-label{font-size:10px;letter-spacing:2px;color:var(--gray-500);font-weight:700;margin-bottom:6px}
.stat-value{font-family:Inter,sans-serif;font-size:28px;font-weight:800;color:var(--navy);line-height:1}
.stat-unit{font-size:14px;color:var(--gray-400);font-weight:500}

.history-list{margin-bottom:0}
.history-item{background:white;padding:14px 18px;border-radius:4px;margin-bottom:8px;border-left:3px solid var(--gray-200)}
.history-date{font-family:Inter,sans-serif;font-size:11px;color:var(--gray-500);font-weight:700;margin-bottom:4px}
.history-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.history-score{background:var(--orange);color:white;padding:2px 8px;font-size:11px;font-weight:700;border-radius:2px}
.history-goal{font-size:14px;color:var(--gray-700)}
.history-commit{margin-top:6px;padding-top:6px;border-top:1px dashed var(--gray-200);font-size:12px;color:var(--navy);font-weight:600}
.history-advice{margin-top:8px;padding:8px 12px;background:#f1f5f9;border-left:3px solid var(--orange);font-size:11px;color:var(--gray-700);line-height:1.6}

/* ===== ホーム拡張 ===== */
#homeChart{margin-bottom:18px}
.cascade-display-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.btn-tiny{padding:5px 14px;font-size:11px;background:white;color:var(--navy);border:1px solid var(--gray-200);border-radius:5px;font-weight:700}
.btn-tiny:hover{background:var(--navy);color:white;border-color:var(--navy)}
.home-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
/* home-actions はナビ用途：色は tertiary を継承し、レイアウト（横幅・左寄せ）だけ上書き */
.home-actions .btn-text{flex:none;min-width:0;width:100%;border-radius:6px;padding:12px 14px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-actions .btn-text:hover{background:white;border-color:var(--navy);color:var(--navy);box-shadow:0 2px 6px rgba(15,26,58,0.08)}
.home-actions .btn-text::after{content:'→';float:right;color:var(--gray-400);font-weight:400;margin-left:8px}
.home-actions .btn-text:hover::after{color:var(--navy)}
@media (max-width:640px){.home-actions{grid-template-columns:repeat(2,1fr)}}

/* ===== トップページ：メニューはハンバーガーに集約。CTA下のヒントのみ ===== */
.home-nav-hint{margin-top:14px;text-align:center;font-size:12.5px;color:var(--gray-500)}
.home-nav-hint strong{color:var(--navy)}

/* ===== ☰ ハンバーガーボタン ===== */
.nav-toggle{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--gray-200);background:white;border-radius:8px;font-size:24px;line-height:1;color:var(--navy);cursor:pointer;flex-shrink:0;transition:all .15s;padding:0}
.nav-toggle:hover{background:var(--gray-200)}

/* ===== hero FOUC 対策：テーマ反映までテキストを隠す ===== */
.hero h1,.hero .hero-sub{transition:opacity .25s ease}
.hero-loading h1,.hero-loading .hero-sub{opacity:0}

/* ===== ドロワーメニュー ===== */
.nav-drawer{position:fixed;inset:0;z-index:1000;visibility:hidden;pointer-events:none}
.nav-drawer.open{visibility:visible;pointer-events:auto}
.nav-drawer-overlay{position:absolute;inset:0;background:rgba(15,26,58,0.4);opacity:0;transition:opacity .25s}
.nav-drawer.open .nav-drawer-overlay{opacity:1}
.nav-drawer-panel{position:absolute;top:0;right:0;height:100%;width:300px;max-width:84vw;background:white;box-shadow:-4px 0 24px rgba(15,26,58,0.18);transform:translateX(100%);transition:transform .25s ease;overflow-y:auto;display:flex;flex-direction:column}
.nav-drawer.open .nav-drawer-panel{transform:translateX(0)}
.nav-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--gray-200);position:sticky;top:0;background:white}
.nav-drawer-title{font-size:14px;font-weight:800;color:var(--navy);letter-spacing:0.1em}
.nav-drawer-close{width:34px;height:34px;border:0;background:transparent;font-size:18px;color:var(--gray-500);cursor:pointer;border-radius:6px;transition:background .15s}
.nav-drawer-close:hover{background:var(--gray-100);color:var(--navy)}
.nav-drawer-body{padding:14px 16px 28px;display:flex;flex-direction:column;gap:18px}
.nav-group{display:flex;flex-direction:column;gap:4px}
.nav-group-label{font-size:10px;font-weight:800;color:var(--gold-dark);letter-spacing:0.15em;margin-bottom:4px;padding-bottom:5px;border-bottom:1px solid var(--gray-200);border-top:1px solid var(--gray-200);padding-top:5px}
.nav-link{display:block;width:100%;text-align:left;background:transparent;color:var(--navy);border:0;border-radius:6px;padding:11px 12px;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none;transition:all .15s}
.nav-link:hover{background:var(--gray-50)}
.nav-link::after{content:'›';float:right;color:var(--gray-400);font-weight:700}
/* アカウントグループだけ下部にカード状で差別化 */
.nav-group--account{margin-top:8px;padding:14px;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:8px;gap:6px}
.nav-group--account .nav-group-label{color:var(--navy);border-bottom-color:var(--gray-200);border-top:none;padding-top:0;font-size:16px}
.nav-group--account .nav-link{background:white;border:1px solid var(--gray-200)}
.nav-group--account .nav-link:hover{border-color:var(--navy);background:white}
.nav-link--logout{color:var(--red)}
.nav-link--logout:hover{background:#fbecea}
.nav-link--logout::after{content:'⎋';color:var(--red)}

/* ===== 今週のサマリカード ===== */
.weekly-card{background:linear-gradient(135deg,#f1f5f9 0%,#ffeadb 100%);border-left:4px solid var(--orange)}
.weekly-card .card-title{color:var(--orange)}
#weeklyContent{font-size:14px;color:var(--navy);line-height:1.8;font-weight:500;white-space:pre-wrap}
.weekly-empty{font-size:12px;color:var(--gray-500);font-style:italic}

/* ===== モーダル ===== */
.modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;align-items:center;justify-content:center;animation:fadeIn .2s ease}
.modal-backdrop{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(15,26,58,0.5);backdrop-filter:blur(2px)}
.modal-card{position:relative;background:white;border-radius:8px;padding:28px 32px;max-width:560px;width:calc(100% - 40px);max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,0.2);z-index:1}
.modal-card h3{font-size:18px;color:var(--navy);margin-bottom:8px}
.modal-desc{font-size:12px;color:var(--gray-500);margin-bottom:18px;line-height:1.7}

/* ===== フォームセクション ===== */
.form-section{margin-bottom:18px;padding:14px 18px;background:var(--gray-50);border-radius:6px}
.form-section-title{font-size:12px;font-weight:700;color:var(--navy);margin-bottom:10px;display:flex;align-items:center;gap:8px}

/* ===== タイプ図書館 ===== */
.section-desc{font-size:15px;color:var(--gray-500);margin-bottom:18px;line-height:1.8}
.type-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:14px}
.type-tab{padding:12px 8px;background:white;border:2px solid var(--gray-200);border-radius:6px;cursor:pointer;text-align:center;transition:all .15s;font-family:inherit}
.type-tab.active{border-color:var(--orange);background:var(--orange);color:white}
.type-tab .tab-letter{font-size:18px;font-weight:800;font-family:Inter,sans-serif;display:block}
.type-tab .tab-name{font-size:11px;font-weight:700;display:block;margin-top:2px}
.type-tab.active .tab-name{color:white}

.type-detail-card{background:white;padding:24px 28px;border-radius:8px;margin-bottom:14px;box-shadow:0 4px 14px rgba(15,26,58,0.05)}
.type-detail-head{display:flex;align-items:center;gap:14px;margin-bottom:14px;padding-bottom:14px;border-bottom:2px solid var(--gray-100)}
.type-detail-letter{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:white;font-size:20px;font-weight:800;font-family:Inter,sans-serif;flex-shrink:0}
.type-detail-name{font-size:22px;font-weight:700;color:var(--navy)}
.type-detail-en{font-size:11px;color:var(--gray-400);letter-spacing:2px;font-family:Inter,sans-serif}
.type-detail-desc{font-size:14px;color:var(--gray-700);line-height:1.8;margin-bottom:14px}

.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.type-block{padding:14px 16px;background:var(--gray-50);border-radius:4px;border-left:3px solid var(--navy)}
.type-block.strength{border-color:var(--green)}
.type-block.weakness{border-color:var(--red)}
.type-block.role{border-color:var(--orange)}
.type-block.growth{border-color:var(--gold)}
.type-block h4{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--gray-500);margin-bottom:8px}
.type-block ul{list-style:none;padding:0;margin:0}
.type-block li{font-size:12.5px;color:var(--gray-700);padding:3px 0 3px 14px;position:relative;line-height:1.6}
.type-block li::before{content:'▸';position:absolute;left:0;color:var(--orange)}

.you-badge{display:inline-block;background:var(--orange);color:white;font-size:10px;font-weight:800;padding:3px 9px;border-radius:2px;letter-spacing:2px;margin-left:8px}

/* ===== 相性マトリクス ===== */
.compat-matrix{background:white;padding:16px 18px;border-radius:6px;border:1px solid var(--gray-200);margin-top:10px;overflow-x:auto}
.compat-matrix table{width:100%;border-collapse:collapse;font-size:11px}
.compat-matrix th, .compat-matrix td{padding:8px 10px;border:1px solid var(--gray-200);vertical-align:top;text-align:left;line-height:1.5}
.compat-matrix th{background:var(--navy);color:white;font-weight:700;font-size:11px;letter-spacing:1px;text-align:center}
.compat-matrix th.you-col{background:var(--orange)}
.compat-matrix .row-label{background:var(--gray-50);font-weight:700;color:var(--navy);font-size:11px;text-align:center;width:80px}
.compat-matrix td.same{background:var(--gray-100);color:var(--gray-400);font-style:italic;text-align:center}
.compat-matrix .compat-tip{font-size:10.5px;color:var(--gray-700);line-height:1.6}
.empty{padding:40px;text-align:center;color:var(--gray-400);font-style:italic}

/* ===== レスポンシブ（W2-1：スマホ完全対応強化版） ===== */
@media (max-width: 768px){
  .shell{padding:0 12px 0;max-width:100%}
  .brand{padding:10px 12px;gap:8px;flex-wrap:wrap}
  .brand-home{gap:8px;padding:2px 4px;margin:-2px -4px;flex:1;min-width:0}
  .brand-mark{width:36px;height:36px;font-size:16px}
  .brand-text{font-size:10px;letter-spacing:2px}
  .brand-name{font-size:13px}
  .brand-tag{display:none}  /* モバイルではユーザー名を隠してヘッダーをすっきり */
  .nav-toggle{width:38px;height:38px;font-size:18px}
  #header-logout, #admin-link{padding:5px 10px;font-size:11px}
  /* ドロワーはモバイルで画面幅いっぱい寄り */
  .nav-drawer-panel{width:88vw;max-width:340px}

  /* ヒーロー */
  .hero{padding:24px 18px;border-radius:8px}
  .hero h1{font-size:18px;line-height:1.5}
  .hero-sub{font-size:12px;line-height:1.65}

  /* ボタン：タッチターゲット最低44px */
  .btn{min-height:44px;padding:10px 18px;font-size:14px;width:100%}
  .btn-primary, .btn-secondary{min-height:48px}
  .btn-text{min-height:44px;width:auto}
  .home-actions{grid-template-columns:1fr !important;gap:8px}

  /* カード */
  .card{padding:16px;border-radius:8px}
  .card-title{font-size:14px}
  .card-desc{font-size:12px;line-height:1.7}

  /* カスケード */
  .cascade-row{flex-direction:column;align-items:flex-start;gap:6px;padding:10px 12px}
  .cascade-tag{font-size:11px;padding:3px 8px}
  .cascade-text{font-size:14px;line-height:1.55;width:100%}

  /* コーチパネル */
  .coach-resonance-panel{flex-direction:column;gap:12px;padding:14px}
  .coach-resonance-panel .resonance-tooltip{min-width:90vw;max-width:90vw;right:0;left:0;margin:auto}
  .crp-coach{width:100%}
  .crp-bar-area{width:100%}

  /* セッション画面：モバイルでも入力欄が常に画面下部に */
  #sec-session.active{height:calc(100dvh - 80px);height:calc(100vh - 80px)}
  .chat-container{border-radius:6px}
  .chat-messages{padding:12px 12px 6px}
  .chat-input-wrap{padding:10px 12px;flex-direction:column;gap:8px}
  .chat-input-wrap textarea{width:100%;font-size:16px} /* iOS zoom防止 */
  .chat-input-wrap .btn{width:100%}
  .session-meta{padding:6px 12px 10px;flex-direction:column;gap:6px;align-items:flex-start}
  .session-cascade-bottom{display:none}
  .msg-bubble{max-width:88%;font-size:16px;padding:11px 14px}
  .msg-avatar{width:28px;height:28px;font-size:14px}

  /* CES診断 */
  .q-num{font-size:11px}
  .q-text{font-size:15px;line-height:1.6}
  .scale{gap:4px}
  .scale-btn{padding:14px 4px;font-size:12px;min-height:48px}

  /* レポート */
  .report-section{padding:18px 16px}
  .report-eyebrow{font-size:10px}
  .report-section h3{font-size:14px}
  .report-summary{font-size:14px;line-height:1.85}
  .report-item, .report-list{font-size:14px}
  .compat-card{padding:14px 16px}

  /* テーブル：横スクロール */
  .tablestyle, .compat-matrix table{font-size:11px;overflow-x:auto;display:block;white-space:nowrap}

  /* モーダル */
  .modal-card{padding:20px 18px;width:calc(100% - 24px);max-height:88vh;border-radius:8px}

  /* 終了画面 */
  .end-grid{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:1fr 1fr 1fr;gap:6px}
  .stat-item{padding:12px}
  .stat-value{font-size:22px}
  .chart-row{grid-template-columns:60px 1fr 30px}

  /* セクション全体の文字サイズ調整 */
  h1{font-size:20px}
  h2{font-size:17px}
  h3{font-size:14px}
  p{font-size:14px;line-height:1.75}
}

/* 音声入出力（W4-1/W4-2） */
.btn-icon { background:#f1f5f9; color:#1a2851; border:1px solid #cbd5e1; border-radius:8px; padding:0 14px; font-size:18px; min-width:46px; cursor:pointer; transition:all 0.2s }
.btn-icon:hover { background:#e2e8f0 }
.btn-icon.recording { background:var(--red); color:white; border-color:var(--red); animation:pulse-mic 1.2s infinite }
@keyframes pulse-mic { 0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,0.5)} 50%{box-shadow:0 0 0 8px rgba(220,38,38,0)} }
.voice-toggle { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:#64748b; cursor:pointer; padding:4px 10px; background:#f8fafc; border-radius:4px; user-select:none }
.voice-toggle input[type=checkbox] { margin:0; cursor:pointer }
.voice-toggle:hover { background:#f1f5f9 }

/* 履歴カード（W2-5） */
.history-card { background:transparent; border:0; border-bottom:1px solid var(--gray-200); border-radius:0; padding:20px 0; margin-bottom:0; box-shadow:none; transition:background 0.15s }
.history-card:first-child { padding-top:0 }
.history-card:last-child { border-bottom:0; padding-bottom:0 }
.history-card:hover { transform:none; box-shadow:none }
.history-card .hc-head { display:flex; align-items:center; gap:12px; margin-bottom:10px; padding-bottom:10px; border-bottom:1px dashed #E8E0CC }
.history-card .hc-date { font-size:21px; font-weight:700; color:#0F1A2E; letter-spacing:0.04em }
.history-card .hc-score { font-size:29px; font-weight:800; line-height:1; padding:4px 14px; border-radius:6px; color:white }
.history-card .hc-score-high { background:#10b981 }
.history-card .hc-score-mid { background:var(--gold) }
.history-card .hc-score-low { background:#ef4444 }
.history-card .hc-score-no-score { background:#94a3b8 }
.history-card .hc-score-unit { font-size:15px; opacity:0.7; font-weight:600; margin-left:2px }
.history-card .hc-no-score { font-size:14px; color:#94a3b8; font-weight:600; padding:4px 12px; background:#f1f5f9; border-radius:4px }
.history-card .hc-no-score.hc-completed { color:#065f46; background:#d1fae5 }
.history-card .hc-no-score.hc-completed::before { content:'✓ '; font-weight:800 }
.history-card .hc-delta { margin-left:0; font-size:14px; font-weight:700; padding:3px 10px; border-radius:4px; background:#f1f5f9; color:#64748b }
.history-card .hc-delta.plus { background:#d1fae5; color:#065f46 }
.history-card .hc-delta.minus { background:#fee2e2; color:#991b1b }
.history-card .hc-goal, .history-card .hc-commit { font-size:15px; color:#1F1F1F; line-height:1.75; padding:6px 0; display:flex; align-items:flex-start; gap:10px }
.history-card .hc-tag { font-size:12px; font-weight:700; color:white; background:#0F1A2E; padding:2px 9px; border-radius:3px; letter-spacing:0.04em; flex-shrink:0; margin-top:2px }
.history-card .hc-tag.commit { background:#B83A2A }
.history-card .hc-summary { font-size:15px; color:#525252; line-height:1.85; margin-top:8px; padding:10px 14px; background:#FAF7F0; border-radius:5px; border-left:3px solid #B89656 }
.history-card .hc-advice { font-size:14px; color:#9A7A40; line-height:1.7; margin-top:6px; padding:8px 12px; background:rgba(212,181,112,0.08); border-radius:5px; font-weight:500 }
@media (max-width:768px){
  .history-card { padding:16px 0 }
  .history-card:first-child { padding-top:0 }
  .history-card:last-child { padding-bottom:0 }
  .history-card .hc-date { font-size:17px }
  .history-card .hc-score { font-size:24px; padding:3px 10px }
  .history-card .hc-head { gap:8px; flex-wrap:wrap }
}

/* ナラティブ読み物UI（W2-3） */
.narrative-reader { background:#FAF7F0; padding:32px 38px; border-radius:10px; border:1px solid #E8E0CC; box-shadow:0 4px 14px rgba(15,15,15,0.05); margin-bottom:20px; max-width:740px; margin-left:auto; margin-right:auto }
.narrative-reader .nr-head { display:flex; flex-direction:column; gap:6px; margin-bottom:20px; padding-bottom:16px; border-bottom:2px solid #E8E0CC; position:relative }
.narrative-reader .nr-month { font-size:24px; font-weight:800; color:#0F1A2E; letter-spacing:0.04em }
.narrative-reader .nr-stage { font-size:12px; color:#9A7A40; font-weight:700; letter-spacing:0.05em }
.narrative-reader .nr-edit-btn { position:absolute; top:0; right:0; font-size:12px; color:#64748b; padding:6px 12px; background:white; border:1px solid #E8E0CC; border-radius:5px; cursor:pointer }
.narrative-reader .nr-edit-btn:hover { background:#f8fafc }
.narrative-reader .nr-section { margin-bottom:24px }
.narrative-reader .nr-section:last-child { margin-bottom:0 }
.narrative-reader .nr-section-title { font-size:14px; font-weight:700; color:#B83A2A; letter-spacing:0.05em; margin-bottom:10px; padding-left:12px; border-left:3px solid #B89656 }
.narrative-reader .nr-body { font-size:15px; line-height:2.1; color:#2A2A2A; letter-spacing:0.04em; padding:0 4px }
@media (max-width:768px){
  .narrative-reader { padding:22px 18px }
  .narrative-reader .nr-month { font-size:18px }
  .narrative-reader .nr-body { font-size:13.5px; line-height:1.95 }
  .narrative-reader .nr-edit-btn { position:relative; align-self:flex-end; margin-top:6px }
}

/* 小型スマホ（〜380px） */
@media (max-width: 380px){
  .shell{padding:0 10px 0}
  .hero{padding:20px 14px}
  .hero h1{font-size:16px}
  .card{padding:16px}
  .scale-btn{padding:12px 2px;font-size:11px}
  .msg-bubble{max-width:92%}
}

/* ============ 組織図（Org Chart） ============ */
.org-tree, .org-children { list-style:none; padding:0; margin:0; }
.org-tree { display:flex; flex-direction:column; gap:14px; }
.org-children { margin-left:28px; padding-left:18px; border-left:2px dashed #d1d5db; margin-top:10px; display:flex; flex-direction:column; gap:10px; }
.org-node { display:flex; flex-direction:column; }
.org-card { background:white; border:1px solid #e2e8f0; border-left:4px solid #94a3b8; border-radius:6px; padding:11px 14px; box-shadow:0 1px 2px rgba(0,0,0,0.04); transition:all .15s; }
.org-card:hover { box-shadow:0 4px 12px rgba(0,0,0,0.08); transform:translateY(-1px); }
.org-card-me { background:#eef2ff; box-shadow:0 0 0 2px #1a2851 inset, 0 1px 2px rgba(0,0,0,0.04); }
.org-card-dim { opacity:0.65; background:#fafafa; }
.org-card-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:4px; }
.org-name { font-size:14px; font-weight:800; color:#1a2851; }
.org-me-badge { background:#1a2851; color:white; font-size:9px; padding:2px 6px; border-radius:3px; margin-left:4px; vertical-align:middle; letter-spacing:1px; font-weight:800; }
.org-role { font-size:10px; font-weight:800; letter-spacing:1.5px; }
.org-dep { font-size:11px; color:#64748b; margin-bottom:5px; }
.org-meta { display:flex; gap:8px; flex-wrap:wrap; align-items:center; font-size:10px; }
.org-tag-type { background:#f1f5f9; color:#334155; padding:2px 8px; border-radius:3px; font-weight:700; letter-spacing:1px; }
.org-tag-active { color:#94a3b8; padding:2px 6px; }

.org-role-wrap { display:flex; align-items:center; gap:6px; }
.org-title { font-size:11px; font-weight:700; color:#334155; background:#eef2ff; padding:2px 8px; border-radius:3px; border:1px solid #c7d2fe; }
.org-reports-badge { background:#1a2851; color:white; font-size:9px; padding:2px 7px; border-radius:3px; font-weight:800; letter-spacing:1px; }

/* ====== WAI-SR スケール ====== */
.waisr-scale { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.waisr-scale button { flex:1; min-width:36px; max-width:50px; padding:10px 0; background:white; border:2px solid #e2e8f0; border-radius:6px; font-weight:700; font-size:14px; color:#334155; cursor:pointer; transition:all .15s; }
.waisr-scale button:hover { border-color:#1a2851; background:#eef2ff; }
.waisr-scale button.selected { background:#1a2851; border-color:#1a2851; color:white; }

/* ====== ナラティブ ====== */
#narrativeList { display:flex; flex-direction:column; gap:12px; }
.narrative-row { background:white; border:1px solid #e2e8f0; border-radius:6px; padding:14px 16px; cursor:pointer; transition:all .15s; }
.narrative-row:hover { box-shadow:0 4px 12px rgba(0,0,0,0.08); transform:translateY(-1px); }
.narrative-row-month { font-weight:800; color:#1a2851; font-size:14px; }
.narrative-row-stage { font-size:12px; color:#64748b; margin-top:4px; }
.narrative-row-snippet { font-size:14px; color:#334155; margin-top:8px; line-height:1.6; }

/* ====== WAI-SR 履歴 ====== */
#waisrHistory { display:flex; flex-direction:column; gap:10px; }
.waisr-row { display:grid; grid-template-columns:auto 1fr 1fr 1fr; gap:14px; padding:10px 14px; background:#f8fafc; border-radius:6px; align-items:center; font-size:14px; }
.waisr-row-date { font-weight:700; color:#1a2851; }
.waisr-row-label { color:#64748b; font-size:11px; }
.waisr-row-value { font-weight:700; color:#1a2851; }

/* ====== バトンタッチ・オファーカード ====== */
.handover-offer-card { background:linear-gradient(135deg, #eef2ff 0%, #eff6ff 100%); border:1px solid #c7d2fe; border-left:4px solid #1a2851; }
.handover-offer-card .card-title { color:#1a2851; }
.handover-offer-card .card-desc { color:#374151; line-height:1.8; }

/* ====== ベストコーチ選定診断 ====== */
.readiness-intro { font-size:15px; color:#1f2937; line-height:1.9; margin-bottom:24px; padding:14px 16px; background:#eff6ff; border-left:4px solid #1a2851; border-radius:4px }
.readiness-intro strong { color:#1a2851; font-weight:800 }

.readiness-question { background:white; border:1px solid #e2e8f0; border-radius:6px; padding:20px 22px; margin-bottom:20px; }
.readiness-question .rq-label { font-size:15px; font-weight:800; color:#1a2851; margin-bottom:14px; letter-spacing:0.5px }
.readiness-question .rq-poles { display:flex; justify-content:space-between; gap:14px; font-size:14px; font-weight:700; color:#1f2937; margin-bottom:10px; line-height:1.5 }
.readiness-question .rq-poles span:first-child { text-align:left; flex:1 }
.readiness-question .rq-poles span:last-child { text-align:right; flex:1 }
.readiness-question .rq-scale { display:flex; gap:8px; margin-bottom:16px }
.readiness-question .rq-scale button { flex:1; padding:12px 0; background:white; border:2px solid #cbd5e1; border-radius:6px; font-weight:800; font-size:16px; color:#1a2851; cursor:pointer; transition:all .15s }
.readiness-question .rq-scale button:hover { border-color:#1a2851; background:#eef2ff }
.readiness-question .rq-scale button.selected { background:#1a2851; border-color:#1a2851; color:white }
.readiness-question .rq-textlabel { font-size:16px; font-weight:800; color:#1a2851; margin-bottom:6px }
.readiness-question .rq-textsub { font-size:14px; color:#64748b; margin-bottom:10px; line-height:1.7 }
.readiness-question textarea { width:100%; padding:10px; border:1px solid #cbd5e1; border-radius:6px; font-size:14px; min-height:80px; resize:vertical }
.readiness-question textarea::placeholder { color:#94a3b8; font-style:italic; font-size:14px }
.readiness-question .rq-counter { text-align:right; font-size:12px; color:#64748b; margin-top:4px }

/* 自由記述プリファレンス（最後の3問・任意・コメントしやすい問い） */
.readiness-pref-section { margin-top:30px; padding-top:20px; border-top:2px dashed #cbd5e1 }
.readiness-pref-head { margin-bottom:20px; padding:14px 18px; background:linear-gradient(135deg,#eef2ff 0%,#eff6ff 100%); border-left:4px solid #1a2851; border-radius:6px }
.readiness-pref-title { font-size:16px; font-weight:800; color:#1a2851; margin-bottom:6px; letter-spacing:0.5px }
.readiness-pref-sub { font-size:14px; color:#475569; line-height:1.75 }
.readiness-pref-question { background:white; border:1px solid #e2e8f0; border-radius:6px; padding:18px 20px; margin-bottom:16px }
.readiness-pref-question .rq-label { font-size:15px; font-weight:800; color:#1a2851; margin-bottom:8px }
.readiness-pref-question .rq-prompt { font-size:14px; color:#1f2937; line-height:1.85; margin-bottom:8px }
.readiness-pref-question .rq-textsub { font-size:12.5px; color:#64748b; margin-bottom:10px; line-height:1.7 }
.readiness-pref-question textarea { width:100%; padding:10px 12px; border:1px solid #cbd5e1; border-radius:6px; font-size:14px; min-height:88px; resize:vertical; font-family:inherit; line-height:1.75 }
.readiness-pref-question textarea::placeholder { color:#94a3b8; font-size:14px }
.readiness-pref-question .rq-counter { text-align:right; font-size:12px; color:#94a3b8; margin-top:4px }

/* チップ式選択肢（6番・7番） */
.rq-chips-group { margin:14px 0 12px }
.rq-chips-label { font-size:14px; font-weight:700; color:#1a2851; margin-bottom:8px; letter-spacing:0.3px }
.rq-chips { display:flex; flex-wrap:wrap; gap:8px }
.rq-chip { padding:8px 14px; background:white; border:1.5px solid #cbd5e1; border-radius:999px; color:#475569; font-size:14px; font-weight:600; cursor:pointer; transition:all .15s; font-family:inherit }
.rq-chip:hover { border-color:#1a2851; color:#1a2851; transform:translateY(-1px) }
.rq-chip.selected { background:#1a2851; border-color:#1a2851; color:white; font-weight:700 }
.rq-chip.selected:hover { background:#0f1a3a }

/* コーチ選択画面の愛のメッセージ */
.coach-select-message { background:linear-gradient(135deg,#eef2ff 0%,#eff6ff 100%); border-left:4px solid #1a2851; padding:18px 20px; border-radius:6px; margin-bottom:20px; line-height:1.9 }
.coach-select-message p { color:#1f2937; font-size:14px; margin:0 0 10px 0 }
.coach-select-message p:last-child { margin-bottom:0 }
.coach-select-message strong { color:#1a2851; font-weight:800 }
.coach-select-message-small { font-size:14px !important; color:#475569 !important; margin-top:10px !important }
.coach-initial-resonance { margin-bottom:16px; color:#1f2937; font-size:14px; padding:10px 14px; background:#f1f5f9; border-radius:6px; font-weight:600 }
.coach-initial-resonance strong { color:#1a2851; font-weight:800 }

/* ====== コーチカード ====== */
.coach-card { display:flex; align-items:flex-start; gap:14px; background:white; border:1px solid #e2e8f0; border-radius:8px; padding:14px 16px; cursor:pointer; margin-bottom:10px; transition:all .15s; position:relative }
.coach-card:hover { box-shadow:0 4px 12px rgba(0,0,0,0.08); transform:translateY(-1px); border-color:#1a2851 }
.coach-card-recommended { border-left:4px solid #1a2851; background:linear-gradient(135deg,#eef2ff 0%,#eff6ff 100%) }

/* ベストコーチ：1名・特別装飾（ゴールドの縁取り＋盛り） */
.coach-best-section { margin-bottom:24px }
.coach-best-badge { display:inline-block; padding:6px 14px; background:linear-gradient(135deg,#f59e0b 0%,#dc6803 100%); color:white; font-weight:900; font-size:14px; letter-spacing:1px; border-radius:999px; box-shadow:0 2px 6px rgba(245,158,11,0.3); margin-bottom:8px }
.coach-best-lead { font-size:14px; color:#475569; margin-bottom:12px; line-height:1.7 }
.coach-card-best { border:2px solid #f59e0b; border-left:6px solid #f59e0b; background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%); padding:20px 22px; box-shadow:0 4px 12px rgba(245,158,11,0.15); position:relative }
.coach-card-best::after { content:'⭐'; position:absolute; top:-12px; right:-8px; font-size:26px }
.coach-card-best:hover { box-shadow:0 6px 18px rgba(245,158,11,0.25); border-left-color:#dc6803 }
.coach-card-best .coach-name { font-size:18px }
.coach-card-best .coach-teaser { font-size:14px }

/* おすすめコーチセクション */
.coach-others-section { margin-bottom:20px }
.coach-others-label { font-size:14px; font-weight:800; color:#1a2851; margin-bottom:6px; letter-spacing:0.3px }
.coach-others-lead { font-size:14px; color:#475569; margin-bottom:10px; line-height:1.7 }
.coach-card-other { border-left:4px solid #8b5cf6; background:linear-gradient(135deg,#faf5ff 0%,#f5f3ff 100%) }
.coach-card-other:hover { border-left-color:#7c3aed }
.coach-avatar { width:56px; height:56px; border-radius:50%; background:#f1f5f9; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; color:#94a3b8; flex-shrink:0 }
.coach-avatar.male { background:#dbeafe; color:#1e40af }
.coach-avatar.female { background:#fce7f3; color:#9d174d }
.coach-meta { flex:1 }
.coach-name { font-size:16px; font-weight:800; color:#1a2851; margin-bottom:2px }
.coach-age { font-size:12px; color:#64748b; font-weight:600; margin-left:6px }
.coach-subline { font-size:12px; color:#475569; font-weight:600; margin-bottom:8px }
.coach-tagline { font-size:14px; color:#1f2937; line-height:1.6; margin-bottom:0; font-weight:500 }
.coach-cta-hint { position:absolute; right:14px; bottom:10px; font-size:11px; color:#1a2851; font-weight:800; letter-spacing:0.5px }

/* ====== コーチプロフィール詳細モーダル ====== */
#coachProfileContent .cp-head { display:flex; gap:16px; align-items:center; margin-bottom:16px }
#coachProfileContent .cp-name { font-size:20px; font-weight:800; color:#1a2851 }
#coachProfileContent .cp-subline { font-size:14px; color:#475569; margin-top:6px; font-weight:600 }
#coachProfileContent .cp-tagline { font-size:15px; color:#1a2851; margin:16px 0; padding:16px 18px; background:#eef2ff; border-radius:6px; border-left:4px solid #1a2851; line-height:1.7; font-weight:600 }
#coachProfileContent .cp-section { margin-top:18px }
#coachProfileContent .cp-section-title { font-size:11px; font-weight:800; letter-spacing:2px; color:#1a2851; margin-bottom:10px }
#coachProfileContent .cp-intro { font-size:14px; color:#1f2937; line-height:1.9 }
#coachProfileContent .cp-love { padding:18px 20px; background:linear-gradient(135deg, #eef2ff 0%, #eff6ff 100%); border-radius:8px; border:1px solid #c7d2fe }
#coachProfileContent .cp-love .cp-section-title { color:#0c1b3a }
#coachProfileContent .cp-love-text { font-size:14px; color:#1a2851; line-height:1.95; font-weight:500 }

/* ====== コーチ＋共鳴度パネル ====== */
.coach-resonance-panel { display:flex; align-items:center; gap:20px; padding:16px 18px; background:linear-gradient(135deg,#eef2ff 0%,#eff6ff 100%); border:1px solid #c7d2fe; border-radius:8px; margin-bottom:18px }
/* このコーチとセッションを始める：コーチ情報＋開始ボタンを一体グループ化 */
.session-start-group{margin-top:18px;padding:16px;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:10px}
.session-start-title{font-size:12px;font-weight:800;color:var(--gold-dark);letter-spacing:0.15em;margin-bottom:12px}
.session-start-group .coach-resonance-panel{margin-bottom:14px}
.session-start-group .btn-big{margin-top:14px}
.crp-coach { display:flex; gap:12px; align-items:center; flex-shrink:0 }
.crp-coach .coach-avatar { width:52px; height:52px; font-size:20px }
.crp-coach-info { display:flex; flex-direction:column }
.crp-coach-name { font-size:14px; font-weight:800; color:#1a2851 }
.crp-coach-tag { font-size:11px; color:#64748b }
.crp-resonance { flex:1 }
.crp-resonance-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px }
.crp-resonance-label { font-size:10px; font-weight:800; letter-spacing:2px; color:#64748b }
.crp-milestone { font-size:12px; font-weight:800; color:#1a2851 }
.crp-bar-wrap { width:100%; height:8px; background:#c7d2fe; border-radius:4px; overflow:hidden }
.crp-bar-fill { height:100%; background:linear-gradient(90deg,#1a2851,#3a5894); border-radius:4px; transition:width .4s ease }
.crp-resonance-meta { display:flex; justify-content:space-between; align-items:baseline; margin-top:6px }
.crp-resonance-meta #crpResonanceValue { font-size:14px; font-weight:800; color:#1a2851 }
.crp-subtitle { font-size:11px; color:#64748b; font-style:italic }

@media (max-width: 640px) {
  .coach-resonance-panel { flex-direction:column; align-items:stretch }
  .crp-coach { gap:10px }
  .crp-resonance { width:100% }
}

/* セッション終了画面の共鳴度通知 */
.resonance-toast { background:linear-gradient(135deg,#eef2ff,#eff6ff); border:1px solid #c7d2fe; border-left:4px solid #1a2851; padding:14px 18px; border-radius:6px; margin-top:14px }
.resonance-toast-title { font-size:12px; font-weight:800; color:#64748b; letter-spacing:2px; margin-bottom:6px }
.resonance-toast-value { font-size:18px; font-weight:800; color:#1a2851 }
.resonance-toast-delta { color:#1a2851; font-weight:800; margin-left:8px }
.resonance-toast-sub { font-size:12px; color:#64748b; margin-top:6px }

/* ====== 未診断ユーザー誘導カード ====== */
.needs-readiness-card { background:linear-gradient(135deg,#1a2851 0%,#2a3a6a 100%); color:white; border:none }
.needs-readiness-card .card-title { color:white; font-size:16px }
.needs-readiness-card .card-desc { color:#e2e8f0; line-height:1.8 }
.needs-readiness-card .card-desc strong { color:#ff9966 }
.needs-readiness-card .btn-primary { background:#1a2851; color:white }

/* ====== 固定セッション終了ボタン（15分超え時表示） ====== */
.floating-end-btn { position:fixed; bottom:24px; right:24px; z-index:1000; background:#dc2626; color:white; border:none; padding:14px 22px; border-radius:8px; font-size:14px; font-weight:800; cursor:pointer; box-shadow:0 6px 24px rgba(220,38,38,0.4); transition:all .15s }
.floating-end-btn:hover { background:#b91c1c; transform:translateY(-2px); box-shadow:0 8px 30px rgba(220,38,38,0.5) }
@media (max-width: 640px) { .floating-end-btn { bottom:16px; right:16px; padding:12px 18px; font-size:14px } }

/* ====== 冒頭の時間希望確認パネル（Issue #223） ====== */
.time-pref-panel { display:flex; align-items:center; justify-content:center; padding:24px 12px }
.time-pref-card { width:100%; max-width:420px; background:#fff; border:1px solid #e5e9f0; border-radius:14px; padding:22px 20px; box-shadow:0 6px 24px rgba(26,40,81,0.08); text-align:center }
.time-pref-title { margin:0 0 6px; font-size:16px; font-weight:800; color:#1a2851 }
.time-pref-desc { margin:0 0 16px; font-size:13px; line-height:1.6; color:#64748b }
.time-pref-choices { display:flex; gap:10px; justify-content:center; flex-wrap:wrap }
.time-pref-btn { flex:1 1 0; min-width:88px; padding:14px 10px; border:1.5px solid #d5dbe6; border-radius:10px; background:#f8fafc; color:#1a2851; font-size:15px; font-weight:800; cursor:pointer; transition:all .15s }
.time-pref-btn:hover { border-color:#c89f4d; background:#fff }
.time-pref-btn.is-selected { border-color:#c89f4d; background:#fbf6ea; box-shadow:0 0 0 2px rgba(200,159,77,0.25) }
@media (max-width: 640px) { .time-pref-card { padding:18px 16px } .time-pref-btn { min-width:72px; font-size:14px } }

/* ====== 同会社メンバー 5タイプ別マップ ====== */
.org-peers-section { background:white; border:1px solid #e2e8f0; border-radius:8px; padding:20px 22px; margin-bottom:18px }
.org-peers-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; margin-top:14px }
.org-peers-group { background:#f8fafc; border-radius:6px; padding:12px 14px }
.op-group-head { display:flex; align-items:center; gap:10px; margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid #e2e8f0 }
.op-group-type { background:#94a3b8; color:white; font-size:15px; font-weight:800; width:28px; height:28px; border-radius:4px; display:flex; align-items:center; justify-content:center }
.op-group-label { font-size:15px; font-weight:800; color:#1a2851; flex:1 }
.op-group-count { font-size:14px; color:#64748b; font-weight:700 }
.op-group-members { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px }
.op-member { background:white; border:1px solid #e2e8f0; border-radius:4px; padding:10px 12px }
.op-member-me { background:#eef2ff; border-color:#c7d2fe; box-shadow:0 0 0 1px #1a2851 inset }
.op-member-name { font-size:15px; font-weight:700; color:#1a2851; display:flex; align-items:center; gap:8px }
.op-me-badge { background:#1a2851; color:white; font-size:9px; font-weight:800; padding:2px 6px; border-radius:3px; letter-spacing:0.5px }
.op-member-meta { font-size:14px; color:#64748b; margin-top:4px }
.op-unclassified { margin-top:14px; padding:12px 14px; background:#f8fafc; border-radius:6px }
.op-unclassified-title { font-size:11px; font-weight:800; color:#64748b; letter-spacing:1px; margin-bottom:8px }
.op-unclassified-list { display:flex; flex-wrap:wrap; gap:8px }
.op-unclassified-name { font-size:12px; color:#475569; background:white; padding:4px 10px; border:1px solid #e2e8f0; border-radius:3px }

/* ====== コーチ・グリッド一覧（プロフィール内包型） ====== */
.coach-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:16px; margin-bottom:20px }
.coach-profile-card { background:white; border:1px solid #e2e8f0; border-radius:10px; padding:22px 22px 18px; display:flex; flex-direction:column; gap:14px; transition:all .2s; position:relative }
.coach-profile-card:hover { box-shadow:0 8px 24px rgba(0,0,0,0.07); transform:translateY(-2px) }
.coach-profile-card.recommended { border:2px solid #1a2851; background:linear-gradient(135deg, #fffbf6 0%, #fffefb 100%) }
.coach-profile-card.recommended::before { content:'おすすめ'; position:absolute; top:-1px; right:14px; background:#1a2851; color:white; font-size:10px; font-weight:800; letter-spacing:2px; padding:5px 12px; border-radius:0 0 6px 6px }

.cpc-head { display:flex; gap:14px; align-items:center }
.cpc-avatar { width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:800; flex-shrink:0 }
.cpc-avatar.male { background:#dbeafe; color:#1e40af }
.cpc-avatar.female { background:#fce7f3; color:#9d174d }
.cpc-name { font-size:17px; font-weight:800; color:#1a2851; margin-bottom:3px }
.cpc-meta { font-size:12px; color:#475569; font-weight:600 }
.cpc-tagline { font-size:14px; color:#1a2851; padding:12px 14px; background:#eef2ff; border-radius:6px; border-left:3px solid #1a2851; line-height:1.65; font-weight:600; font-style:normal }
.cpc-section-label { font-size:10px; font-weight:800; letter-spacing:2px; color:#1a2851; margin-bottom:6px }
.cpc-section-label.dark { color:#0c1b3a }
.cpc-intro { font-size:14px; color:#1f2937; line-height:1.8 }
.cpc-love { background:linear-gradient(135deg, #eef2ff 0%, #eff6ff 100%); border:1px solid #c7d2fe; border-radius:6px; padding:12px 14px }
.cpc-love-text { font-size:14px; color:#1a2851; line-height:1.85; font-weight:500 }
.cpc-cta { display:flex; gap:8px; margin-top:auto; padding-top:6px }
.cpc-cta .btn { flex:1; padding:11px 14px; font-size:14px }
.cpc-cta-primary { background:#1a2851; color:white; border:none; border-radius:6px; font-weight:800; cursor:pointer; transition:all .15s }
.cpc-cta-primary:hover { background:#0f1a3a }
.cpc-cta-secondary { background:white; color:#1a2851; border:1px solid #e2e8f0; border-radius:6px; font-weight:700; cursor:pointer; transition:all .15s }
.cpc-cta-secondary:hover { border-color:#1a2851 }

.coach-section-title { font-size:14px; font-weight:800; color:#1a2851; margin:24px 0 12px; padding-bottom:8px; border-bottom:2px solid #e2e8f0; letter-spacing:0.5px }
.coach-section-title-sub { font-size:11px; font-weight:600; color:#64748b; margin-left:8px }

/* ====== コーチアバター・画像対応 ====== */
.coach-avatar.has-img { background:#f1f5f9; overflow:hidden; padding:0 }
.coach-avatar.has-img img { width:100%; height:100%; object-fit:cover; display:block }
.cpc-avatar.has-img { background:#f1f5f9; overflow:hidden; padding:0 }
.cpc-avatar.has-img img { width:100%; height:100%; object-fit:cover; display:block }

/* ====== コーチカード コンパクト型（クリック→詳細展開） ====== */
.coach-card { padding:16px 18px 16px 18px }
.coach-card .coach-avatar { width:72px; height:72px; font-size:24px }
.coach-card .coach-meta { padding-right:80px }
.coach-card .coach-teaser { font-size:14px; color:#475569; line-height:1.6; margin-top:8px }
.coach-card .coach-cta-hint { position:absolute; right:18px; bottom:14px; color:#1a2851; font-weight:800; font-size:12px; letter-spacing:0.5px }

/* ====== プロフィール詳細モーダル（再活用） ====== */
.modal-backdrop { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(15,26,58,0.55); z-index:1999 }
.modal { position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); z-index:2000; max-width:560px; width:calc(100% - 32px); max-height:90vh; overflow-y:auto; background:white; border-radius:12px; box-shadow:0 24px 60px rgba(0,0,0,0.25); animation:modalFadeIn .2s ease }
@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}
.modal-content { padding:28px 28px 24px }

/* ====== コーチプロフィール 乗り越え・実績 ====== */
.cp-achievements { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px }
.cp-achievements li { background:#f8fafc; border-left:3px solid #1a2851; padding:10px 14px; border-radius:4px; font-size:14px; color:#1f2937; line-height:1.65 }
.cp-achievements li::before { content:"●"; color:#1a2851; margin-right:8px; font-size:9px; vertical-align:middle }

/* ====== ピアガイド モーダル ====== */
.op-member-clickable { cursor:pointer; transition:all .15s }
.op-member-clickable:hover { transform:translateY(-1px); box-shadow:0 2px 8px rgba(26,40,81,0.12); border-color:#1a2851 }
.op-member-hint { font-size:12px; color:#1a2851; margin-top:8px; font-weight:700 }

.pg-head h3 { font-size:22px; font-weight:800; color:#1a2851 }
.pg-head .pg-sub { font-size:15px; color:#475569; font-weight:600 }
.pg-section { margin-top:18px; padding:16px 18px; background:#f8fafc; border-radius:8px; border-left:4px solid #1a2851 }
.pg-section-title { font-size:16px; font-weight:800; color:#1a2851; margin-bottom:12px }
.pg-row { display:grid; grid-template-columns:130px 1fr; gap:12px; font-size:15px; line-height:1.75; padding:8px 0; border-bottom:1px dashed #e2e8f0 }
.pg-row:last-child { border-bottom:none }
.pg-row-label { font-weight:700; color:#475569; font-size:14px }
.pg-pair { background:#eef2ff; border-left-color:#1a2851 }
.pg-pair-core { font-size:16px; font-weight:700; color:#1a2851; line-height:1.8; padding:12px 14px; background:white; border-radius:6px; margin-bottom:12px }
.pg-questions { margin-top:14px; padding:14px 16px; background:white; border-radius:6px; border:1px solid #c7d2fe }
.pg-questions-title { font-size:14px; font-weight:800; letter-spacing:1px; color:#1a2851; margin-bottom:10px }
.pg-questions ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px }
.pg-questions li { font-size:15px; color:#1f2937; line-height:1.75; padding-left:22px; position:relative }
.pg-questions li::before { content:"❓"; position:absolute; left:0; top:0; font-size:14px }

/* --- 副タイプ・ペルソナ・軸・ヒント --- */
.pg-persona { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; padding:10px 14px; margin-bottom:12px; background:white; border:1px dashed #c7d2fe; border-radius:6px }
.pg-persona-label { font-size:14px; font-weight:800; color:#1a2851; letter-spacing:0.3px }
.pg-persona-desc { font-size:14px; color:#475569; line-height:1.7 }

.pg-secondary { margin-top:14px; padding:12px 14px; background:white; border-radius:6px; border:1px solid #e2e8f0 }
.pg-secondary-empty { font-size:14px; color:#94a3b8; padding:10px 14px; background:#f8fafc; border-radius:6px }
.pg-secondary-head { font-size:14px; font-weight:800; color:#1a2851; margin-bottom:6px }
.pg-secondary-tag { font-size:14px; font-weight:600; color:#64748b; margin-left:4px }
.pg-secondary-eff { font-size:14px; color:#1f2937; line-height:1.75 }

.pg-mini { background:#f1f5f9; border-left-color:#94a3b8 }
.pg-mini-row { font-size:14px; color:#1a2851; font-weight:700; margin-bottom:8px }

.pg-axis { display:inline-flex; gap:8px; align-items:baseline; flex-wrap:wrap; padding:7px 12px; margin-bottom:12px; border-radius:4px; font-size:14px }
.pg-axis-opposite { background:#fef3c7; border:1px solid #fbbf24 }
.pg-axis-independent { background:#e0e7ff; border:1px solid #818cf8 }
.pg-axis-label { font-weight:800; color:#1a2851; letter-spacing:0.5px }
.pg-axis-desc { color:#475569; line-height:1.65 }

.pg-hint { margin-top:14px; padding:12px 14px; background:#fff7ed; border-left:3px solid #f59e0b; border-radius:4px }
.pg-hint-title { font-size:14px; font-weight:800; color:#92400e; letter-spacing:0.3px; margin-bottom:6px }
.pg-hint-body { font-size:14.5px; color:#1f2937; line-height:1.75 }

/* --- 補完ブロック（ポジティブな価値提示） --- */
.pg-complement { background:linear-gradient(135deg,#ecfdf5 0%,#f0fdf4 100%); border-left-color:#10b981 }
.pg-comp-strength { font-size:16px; font-weight:800; color:#065f46; line-height:1.65; padding:12px 14px; background:white; border-radius:6px; margin-bottom:12px }
.pg-comp-creates { font-size:15px; color:#1f2937; line-height:1.8; margin-bottom:10px }
.pg-comp-caution { font-size:14px; color:#475569; line-height:1.75; padding:10px 12px; background:rgba(255,255,255,0.6); border-radius:4px; margin-bottom:10px }
.pg-comp-partners { font-size:14px; color:#065f46; line-height:1.75 }
.pg-comp-chip { display:inline-block; padding:3px 12px; margin-left:6px; background:#10b981; color:white; border-radius:999px; font-size:14px; font-weight:800 }

/* --- 同タイプ警告 --- */
.pg-sametype { background:#fef3c7; border-left-color:#f59e0b }
.pg-st-risk { font-size:15px; color:#78350f; line-height:1.8; padding:12px 14px; background:white; border-radius:6px; margin-bottom:12px }
.pg-st-must { font-size:14px; color:#78350f; line-height:1.75 }
.pg-st-chip { display:inline-block; padding:3px 12px; margin-left:6px; background:#dc2626; color:white; border-radius:999px; font-size:14px; font-weight:800 }
.pg-st-why { font-size:14px; color:#92400e; margin-top:8px }

/* --- チームバランス診断（社内マップ上部） --- */
.tb-box { margin-bottom:20px; padding:16px 18px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px }
.tb-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px }
.tb-title { font-size:15px; font-weight:800; color:#1a2851; letter-spacing:0.3px }
.tb-score { font-size:22px; font-weight:900 }
.tb-score-unit { font-size:14px; font-weight:600; opacity:0.7 }
.tb-msg { font-size:14.5px; color:#1f2937; line-height:1.75; padding:10px 12px; background:white; border-radius:6px; margin-bottom:12px }
.tb-section-title { font-size:14px; font-weight:800; color:#1a2851; letter-spacing:0.5px; margin-bottom:8px }
.tb-dominant { margin-bottom:12px }
.tb-dominant-item { padding:10px 12px; background:#fef3c7; border-left:3px solid #f59e0b; border-radius:4px; margin-bottom:8px }
.tb-dom-head { font-size:14px; color:#78350f; margin-bottom:6px }
.tb-dom-type { display:inline-block; padding:2px 10px; background:#f59e0b; color:white; border-radius:3px; font-weight:800; margin-right:6px }
.tb-dom-label { font-weight:700 }
.tb-dom-risk { font-size:13.5px; color:#1f2937; line-height:1.75; margin-bottom:6px }
.tb-dom-add { font-size:13.5px; color:#78350f; line-height:1.75 }
.tb-missing { margin-bottom:12px }
.tb-missing-list { display:flex; flex-wrap:wrap; gap:8px }
.tb-missing-chip { padding:4px 12px; background:#e0e7ff; color:#1a2851; border-radius:999px; font-size:14px; font-weight:700 }
.tb-recs { margin-bottom:12px; padding:10px 12px; background:#ecfdf5; border-radius:6px }
.tb-recs ul { margin:6px 0 0 20px; padding:0; font-size:14px; color:#065f46; line-height:1.8 }
.tb-phases { margin-top:8px; font-size:14px; color:#475569 }
.tb-phases summary { cursor:pointer; font-weight:700; color:#1a2851; padding:8px 0; font-size:13.5px }
.tb-phases ul { margin:6px 0 0 20px; padding:0; font-size:13.5px; line-height:1.85 }

/* --- ビジュアル：5タイプ分布チャート＋軸マップ --- */
.tb-viz-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px }
@media (max-width: 760px) { .tb-viz-row { grid-template-columns:1fr } }

.tb-chart { padding:12px 14px; background:white; border:1px solid #e2e8f0; border-radius:8px }
.tb-bars { display:flex; flex-direction:column; gap:8px; margin-top:10px }
.tb-bar-row { display:grid; grid-template-columns:120px 1fr 80px; gap:10px; align-items:center }
.tb-bar-key { display:flex; align-items:center; gap:6px }
.tb-bar-chip { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:4px; color:white; font-weight:900; font-size:14px }
.tb-bar-name { font-size:14px; font-weight:700; color:#1a2851 }
.tb-bar-track { height:18px; background:#f1f5f9; border-radius:3px; overflow:hidden; position:relative }
.tb-bar-fill { height:100%; border-radius:3px; transition:width .6s ease; min-width:2px }
.tb-bar-val { font-size:14px; color:#1a2851; text-align:right }
.tb-bar-val strong { font-size:15px; margin-right:2px }
.tb-bar-pct { font-size:11px; color:#64748b; margin-left:4px }

.tb-axismap { padding:12px 14px; background:white; border:1px solid #e2e8f0; border-radius:8px }
.tb-axismap-svg { width:100%; height:auto; max-height:380px; margin-top:6px }

/* --- ペア関係図（モーダル内・2人并列） --- */
.pg-diagram { background:#fafbff; border-left-color:#8b5cf6 }
.pg-diagram-row { display:grid; grid-template-columns:1fr auto 1fr; gap:12px; align-items:stretch }
.pg-diagram-card { padding:12px 14px; background:white; border:1px solid #e2e8f0; border-radius:8px; display:flex; flex-direction:column; gap:6px; min-height:130px }
.pg-diagram-name { font-size:14px; font-weight:800; color:#1a2851; padding-bottom:6px; border-bottom:1px dashed #e2e8f0 }
.pg-diagram-chips { display:flex; flex-direction:column; gap:6px }
.pg-diagram-chip { padding:5px 10px; border-radius:4px; font-size:12px; font-weight:800; letter-spacing:0.3px }
.pg-diagram-primary { color:white }
.pg-diagram-secondary { background:white; border:2px solid; font-weight:700 }
.pg-diagram-persona { font-size:12px; color:#475569; font-weight:600; margin-top:4px; padding:6px 8px; background:#f8fafc; border-radius:4px; text-align:center }
.pg-diagram-bridge { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:0 8px; min-width:90px }
.pg-diagram-bridge-arrow { font-size:28px; color:#8b5cf6; font-weight:900; line-height:1 }
.pg-diagram-bridge-label { font-size:11px; font-weight:800; color:#6d28d9; text-align:center; line-height:1.45; padding:6px 8px; background:#ede9fe; border-radius:4px }
.pg-diagram-partners { margin-top:12px; padding:10px 12px; background:white; border:1px solid #e2e8f0; border-radius:6px; display:flex; flex-wrap:wrap; gap:6px; align-items:center }
.pg-diagram-partners-label { font-size:12px; font-weight:700; color:#1a2851 }
.pg-diagram-partner-chip { display:inline-block; padding:4px 12px; color:white; border-radius:999px; font-size:12px; font-weight:800 }

@media (max-width:680px) {
  .pg-diagram-row { grid-template-columns:1fr; gap:8px }
  .pg-diagram-bridge { flex-direction:row; min-width:auto; padding:4px 0 }
  .pg-diagram-bridge-arrow { transform:rotate(90deg) }
}

/* =============================================================
   あなたの軌跡（Journey）— Victories / Narratives / Self-History
   ============================================================= */
.journey-tabs { display:flex; gap:6px; margin-bottom:18px; border-bottom:2px solid #e2e8f0 }
.journey-tab { padding:10px 16px; background:transparent; border:none; border-bottom:3px solid transparent; cursor:pointer; font-size:14px; font-weight:700; color:#64748b; margin-bottom:-2px }
.journey-tab.active { color:#1a2851; border-bottom-color:#1a2851 }
.journey-panel { display:none }
.journey-panel.active { display:block }

/* ----- Victories（バッジ） ----- */
.victory-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:12px }
.victory-card { display:flex; gap:10px; padding:14px 16px; background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%); border-radius:10px; border:1px solid #fcd34d }
.victory-icon { font-size:32px; line-height:1 }
.victory-body { flex:1 }
.victory-title { font-size:14px; font-weight:800; color:#78350f; margin-bottom:4px }
.victory-desc { font-size:12px; color:#92400e; line-height:1.6 }
.victory-date { font-size:11px; color:#a16207; margin-top:6px }

/* ----- Narratives（月次物語） ----- */
.narrative-card { padding:16px 18px; background:white; border:1px solid #e2e8f0; border-radius:10px; margin-bottom:14px }
.narr-head { display:flex; gap:10px; align-items:baseline; margin-bottom:10px; padding-bottom:8px; border-bottom:1px solid #e2e8f0 }
.narr-month { font-size:14px; color:#64748b; font-weight:700 }
.narr-title { font-size:17px; font-weight:800; color:#1a2851 }
.narr-section { font-size:14px; color:#1f2937; line-height:1.85; margin-bottom:6px }
.narr-label { display:inline-block; min-width:30px; font-size:11px; font-weight:800; color:#1a2851; background:#eef2ff; padding:2px 6px; border-radius:3px; margin-right:6px }
.narr-quotes { margin-top:10px }
.narr-quote { font-size:14px; color:#475569; padding:6px 12px; border-left:3px solid #8b5cf6; background:#fafbff; margin:6px 0 }
.narr-milestones { margin:8px 0 0 22px; font-size:14px; color:#1f2937; line-height:1.8 }

/* ----- Self History（自分史） ----- */
.sh-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:18px }
.sh-stat { padding:14px 12px; background:#1a2851; color:white; border-radius:8px; text-align:center }
.sh-stat-num { font-size:24px; font-weight:900 }
.sh-stat-label { font-size:11px; color:#cbd5e1; letter-spacing:0.5px; margin-top:4px }
.sh-quarter { padding:16px 18px; background:#fafbfc; border:1px solid #e2e8f0; border-radius:10px; margin-bottom:14px }
.sh-quarter-title { font-size:17px; font-weight:800; color:#1a2851; margin-bottom:12px }
.sh-subtitle { font-size:14px; font-weight:600; color:#64748b }
.sh-narr { padding:10px 12px; background:white; border-left:3px solid #8b5cf6; border-radius:4px; margin-bottom:8px }
.sh-narr-month { font-size:14px; font-weight:800; color:#1a2851; margin-bottom:6px }
.sh-narr-row { font-size:14px; color:#1f2937; line-height:1.75; margin-bottom:3px }
.sh-label { display:inline-block; width:22px; font-size:11px; font-weight:800; color:#6d28d9; margin-right:6px }
.sh-key-list { list-style:none; padding:0; margin:8px 0 0 }
.sh-key-title { font-size:12px; font-weight:800; color:#1a2851; margin-bottom:6px }
.sh-mem { padding:6px 10px; background:white; border-radius:4px; margin-bottom:4px; font-size:14px; line-height:1.7 }
.sh-mem-type { display:inline-block; padding:1px 6px; background:#e0e7ff; color:#3730a3; border-radius:3px; font-size:11px; font-weight:700; margin-right:6px }
.sh-quote { font-size:12px; color:#475569; padding:4px 10px; border-left:2px solid #cbd5e1; background:#f8fafc; margin:4px 0 0 4px }
.sh-timeline-wrap { margin-top:18px; padding:12px 14px; background:white; border:1px solid #e2e8f0; border-radius:8px }
.sh-timeline-wrap summary { cursor:pointer; font-weight:800; color:#1a2851; font-size:14px }
.sh-timeline { list-style:none; margin:10px 0 0; padding:0 }
.sh-timeline li { padding:6px 0; border-bottom:1px dashed #e2e8f0; font-size:14px; line-height:1.7 }
.sh-tl-date { display:inline-block; min-width:90px; font-size:12px; color:#64748b; font-weight:700 }

/* ----- Preferences ----- */
.pref-toggle-row { display:flex; gap:10px; align-items:center; padding:10px 12px; background:#f8fafc; border-radius:6px; cursor:pointer; font-size:14px; color:#1a2851 }
.pref-toggle-row input[type=checkbox] { width:18px; height:18px }

/* ----- Victory Toast ----- */
.victory-toast { position:fixed; right:20px; bottom:20px; max-width:360px; z-index:9999; background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%); border:2px solid #f59e0b; border-radius:10px; box-shadow:0 6px 20px rgba(15,23,42,0.2); padding:14px 16px }
.victory-toast-title { font-size:15px; font-weight:800; color:#78350f; margin-bottom:8px }
.vt-item { font-size:14px; color:#1f2937; line-height:1.7; padding:4px 0; border-top:1px dashed rgba(0,0,0,0.1) }
.vt-item:first-child { border-top:none }
@media (max-width:680px) { .sh-stats { grid-template-columns:repeat(2,1fr) } }

/* セッション種別バッジ（ゴール設定／見直し） */
.session-mode-badge { margin:0 0 10px; padding:10px 14px; border-radius:8px; font-size:13px; font-weight:800; color:#7a5c00; background:linear-gradient(180deg, #fff7e0 0%, #ffefc2 100%); border:1px solid #f0d488; line-height:1.5 }
/* セッションまとめ（箇条書き） */
.end-summary-list { margin:6px 0 0; padding-left:1.2em }
.end-summary-list li { margin:3px 0; line-height:1.6 }

/* 共鳴度パネルのツールチップ（W1-5） */
.coach-resonance-panel.has-tooltip { position:relative; cursor:help }
.coach-resonance-panel .resonance-tooltip { position:absolute; top:calc(100% + 8px); right:0; min-width:340px; max-width:420px; background:#0f1a2e; color:white; padding:14px 18px; border-radius:8px; box-shadow:0 8px 28px rgba(15,26,46,0.35); border:1px solid rgba(212,181,112,0.3); opacity:0; visibility:hidden; transform:translateY(-6px); transition:all 0.25s; z-index:200; pointer-events:none }
.coach-resonance-panel.has-tooltip:hover .resonance-tooltip { opacity:1; visibility:visible; transform:translateY(0) }
.coach-resonance-panel .resonance-tooltip::before { content:''; position:absolute; top:-6px; right:50px; width:12px; height:12px; background:#0f1a2e; border-left:1px solid rgba(212,181,112,0.3); border-top:1px solid rgba(212,181,112,0.3); transform:rotate(45deg) }
.coach-resonance-panel .resonance-tooltip .rt-row { font-size:12px; line-height:1.75; color:rgba(255,255,255,0.92); margin-bottom:4px }
.coach-resonance-panel .resonance-tooltip .rt-row strong { color:#D4B570; font-weight:700; letter-spacing:0.04em; margin-right:6px }
.coach-resonance-panel .resonance-tooltip .rt-next { background:rgba(212,181,112,0.12); color:#D4B570; padding:8px 12px; border-radius:4px; margin:6px 0; border-left:3px solid #D4B570; font-weight:600 }
.coach-resonance-panel .resonance-tooltip .rt-help { font-size:11px; line-height:1.7; color:rgba(255,255,255,0.7); margin-top:8px; padding-top:8px; border-top:1px solid rgba(255,255,255,0.1) }

/* ===== 今日のタスク（4象限マトリクス）Phase3 ===== */
.task-matrix-wrap { background:#fff; padding:16px 18px; border-radius:6px; border:1px solid #e2e8f0; margin-top:12px }
.tm-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:14px }
.tm-title { font-size:18px; letter-spacing:1px; font-weight:800; color:#475569 }
.tm-progress { font-size:15px; font-weight:700; color:#94a3b8 }
.tm-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px }
.tm-cell { border-radius:6px; padding:12px 14px; border:1px solid #e2e8f0; min-height:76px }
.tm-cell.q1 { background:#fef2f2; border-color:#fecaca }
.tm-cell.q2 { background:#f0fdf4; border-color:#bbf7d0 }
.tm-cell.q3 { background:#fffbeb; border-color:#fde68a }
.tm-cell.q4 { background:#f8fafc; border-color:#e2e8f0 }
.tm-cell-head { font-size:22px; font-weight:800; color:#334155; margin-bottom:10px; line-height:1.25 }
.tm-cell-body { display:flex; flex-direction:column; gap:4px }
.tm-task { display:grid; grid-template-columns:1fr auto; align-items:start; column-gap:6px; padding:4px 0 }
.tm-check { display:flex; align-items:flex-start; gap:8px; cursor:pointer; min-width:0 }
.tm-check input { margin-top:3px; flex-shrink:0; cursor:pointer; width:17px; height:17px }
.tm-task-title { font-size:16px; color:#1e293b; line-height:1.5; word-break:break-word }
.tm-task.done .tm-task-title { text-decoration:line-through; color:#94a3b8 }
.tm-goal { display:inline-block; font-size:10px; font-weight:700; color:#fff; background:#2563eb; padding:1px 6px; border-radius:4px; margin-right:5px; vertical-align:1px; letter-spacing:.5px }
.tm-why { grid-column:1 / -1; font-size:13.5px; color:#64748b; margin-left:27px; line-height:1.5 }
.tm-del { background:none; border:none; color:#cbd5e1; font-size:20px; line-height:1; cursor:pointer; padding:0 2px; align-self:start }
.tm-del:hover { color:#ef4444 }
.tm-empty { font-size:15px; color:#cbd5e1 }
/* セッション中：本人が重要／緊急を設定するチェックボックス */
.tm-flags { grid-column:1 / -1; display:flex; gap:16px; margin:4px 0 1px 27px }
.tm-flag { display:inline-flex; align-items:center; gap:6px; font-size:15px; color:#475569; cursor:pointer; user-select:none }
.tm-flag input { width:18px; height:18px; cursor:pointer; accent-color:#2563eb; margin:0 }
@media (max-width:600px){ .tm-grid { grid-template-columns:1fr } }

/* 今週の完了タスク（直近7日・振り返り） */
.cw-wrap{margin-top:12px}
.cw-card{background:#fff;border:1px solid #e2e8f0;border-radius:6px;overflow:hidden}
.cw-head{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:none;cursor:pointer;padding:13px 18px;font-family:inherit}
.cw-head-title{font-size:15px;font-weight:700;color:#1a2851}
.cw-head-meta{font-size:13px;color:#a87f2d;font-weight:700;display:flex;align-items:center;gap:6px}
.cw-caret{font-size:11px;color:#94a3b8}
.cw-list{padding:0 18px 14px;border-top:1px solid #f1f5f9}
.cw-day{margin-top:12px}
.cw-date{font-size:12px;font-weight:700;color:#94a3b8;letter-spacing:.04em;margin-bottom:4px}
.cw-task{display:flex;align-items:flex-start;gap:8px;padding:3px 0}
.cw-dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;margin-top:7px}
.cw-title{flex:1;font-size:14px;line-height:1.5;color:#475569;text-decoration:line-through;text-decoration-color:#cbd5e1}
.cw-goal{flex:0 0 auto;font-size:10px;font-weight:700;color:#1d4ed8;background:#eff6ff;border-radius:4px;padding:2px 6px;margin-top:2px}

/* セッション中チャットに差し込む4象限カード */
.chat-task-matrix{margin:6px 0 16px}
.chat-task-matrix .task-matrix-wrap{margin-top:0}

/* 前日タスクの繰り越し確認チェックボックスUI */
.carryover-ui{margin:6px 0 16px}
.carryover-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px;box-shadow:0 4px 14px rgba(15,26,58,0.05)}
.co-head{font-size:13px;font-weight:700;color:#475569;margin-bottom:10px;line-height:1.5}
.co-task{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #f1f5f9;cursor:pointer;margin:0}
.co-task:first-of-type{border-top:none}
.co-check{width:18px;height:18px;flex-shrink:0;cursor:pointer}
.co-title{flex:1;font-size:14px;color:#1e293b;line-height:1.4}
.co-date{font-size:11px;color:#94a3b8;margin-left:6px}
.co-del{background:none;border:none;color:#cbd5e1;font-size:18px;line-height:1;cursor:pointer;padding:0 4px;flex-shrink:0}
.co-del:hover{color:#ef4444}
.co-task.co-deleted .co-title{text-decoration:line-through;color:#cbd5e1}
.co-none{margin-top:6px;border-top:1px dashed #e2e8f0;color:#64748b}
.co-none .co-title{font-weight:600;color:#64748b}
.co-confirm{margin-top:12px;width:100%}
.carryover-card.co-done{color:#475569;font-size:13px;line-height:1.7}
