/* =============================================================
   コンポーネント固有スタイル
   ============================================================= */

/* ============ HOME ============ */
.home-hero {
  margin-bottom: 24px;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-greeting {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.home-date {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
}

#weather-temp {
  font-weight: 600;
  color: var(--teal-dark);
  margin-left: 2px;
}

#weather-city {
  color: var(--text-sub);
}

/* ---- 天気アドバイスバー ---- */
.weather-advice-bar {
  background: linear-gradient(135deg, rgba(91,191,181,0.10), rgba(82,197,187,0.06));
  border: 1px solid rgba(91,191,181,0.22);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--teal-dark);
  margin-top: 2px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ---- スタットバー（コンパクト縦積み） ---- */
.stat-bar {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 14px;
  overflow: hidden;
}

.stat-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.stat-bar-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 0 16px;
}

.stat-bar-icon {
  font-size: 16px;
  line-height: 1;
  width: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.stat-bar-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}

.stat-bar-num small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.stat-bar-num--teal { color: var(--teal-dark); }

.stat-bar-label {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
}

/* ---- スタットカード ---- */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  border-radius: 18px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  overflow: hidden;
}

.stat-card--fire {
  background: linear-gradient(145deg, #fff8f6 0%, #fff2ee 100%);
  border: 1px solid rgba(255,110,70,0.16);
  box-shadow: 0 4px 16px rgba(255,96,64,0.08), 0 1px 4px rgba(255,96,64,0.05);
}

.stat-card--teal {
  background: linear-gradient(145deg, #f3fbfb 0%, #eaf8f7 100%);
  border: 1px solid rgba(91,191,181,0.22);
  box-shadow: 0 4px 16px rgba(91,191,181,0.10), 0 1px 4px rgba(91,191,181,0.06);
}

.stat-card-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
}

.stat-card--fire .stat-card-num { color: #d95533; }
.stat-card--teal .stat-card-num { color: var(--teal-dark); }

.stat-card-unit {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.stat-card-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
  font-weight: 500;
}

/* ---- AI提案ボタン ---- */
.suggest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(91,191,181,0.5);
  background: rgba(91,191,181,0.05);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.suggest-btn:hover {
  background: rgba(91,191,181,0.10);
  border-color: var(--teal);
}
.suggest-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- AI提案カード ---- */
.suggest-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.suggest-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.suggest-card-icon {
  font-size: 18px;
  line-height: 1;
}
.suggest-card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 2px 8px;
}
.suggest-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 6px;
}
.suggest-card-reason {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 12px;
}
.suggest-card-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--teal-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.suggest-card-btn:hover {
  opacity: 0.88;
}

/* ---- 目標カード ---- */
.goals-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 20px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.goals-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.goals-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1px;
}

.goals-card-link {
  font-size: 12px;
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
  opacity: 0.8;
}

/* ---- 段階解放 unlock-row ---- */
.unlock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.unlock-row:last-child { border-bottom: none; }

.unlock-row--open {
  cursor: pointer;
  color: inherit;
}
.unlock-row--open:active { opacity: 0.65; }
.unlock-row--open .unlock-label { color: var(--teal-dark); }

.unlock-row--locked { opacity: 0.7; }
.unlock-row--future { opacity: 0.45; }

.unlock-icon {
  font-size: 17px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.unlock-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.unlock-hint {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
  line-height: 1.4;
}

/* ============ 未来ロードマップ ============ */
.roadmap-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  margin-top: 32px;
  margin-bottom: 16px;
}

.roadmap-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.roadmap-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #1A2744;
  letter-spacing: 0.2px;
}

.roadmap-card-sub {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* スタッツ */
.roadmap-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(91,191,181,0.07);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.roadmap-stat {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.roadmap-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
}

.roadmap-stat-label {
  font-size: 11px;
  color: var(--text-sub);
}

.roadmap-stat-sep {
  font-size: 16px;
  color: var(--border);
  font-weight: 300;
}

/* 次の解放フィーチャーカード */
.roadmap-next-card {
  background: linear-gradient(135deg, #1A2744 0%, #243566 100%);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.roadmap-next-badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(91,191,181,0.85);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.roadmap-next-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.roadmap-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.roadmap-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #7dd4d0);
  border-radius: 2px;
  transition: width 1s cubic-bezier(.22,.61,.36,1);
}

.roadmap-next-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.roadmap-all-unlocked {
  background: rgba(91,191,181,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  text-align: center;
  margin-bottom: 22px;
}

/* タイムライン */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
}

.roadmap-step {
  display: flex;
  gap: 12px;
}

.roadmap-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
}

.roadmap-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roadmap-step--unlocked .roadmap-step-dot {
  background: var(--teal);
  color: #fff;
}

.roadmap-step--next .roadmap-step-dot {
  background: #1A2744;
  color: rgba(91,191,181,0.9);
  box-shadow: 0 0 0 3px rgba(91,191,181,0.18);
}

.roadmap-step--locked .roadmap-step-dot {
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.2);
}

.roadmap-step--future .roadmap-step-dot {
  background: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.12);
}

.roadmap-step-line {
  flex: 1;
  width: 2px;
  background: rgba(0,0,0,0.07);
  margin: 3px 0;
  min-height: 16px;
  border-radius: 1px;
}

.roadmap-step-line--done {
  background: rgba(91,191,181,0.35);
}

.roadmap-step-content {
  flex: 1;
  padding: 4px 0 18px;
}

.roadmap-step-link {
  display: block;
  text-decoration: none;
}

.roadmap-step-link:active { opacity: 0.65; }

.roadmap-step-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.roadmap-step--unlocked .roadmap-step-label { color: var(--teal-dark); }
.roadmap-step--next     .roadmap-step-label { color: #1A2744; font-size: 14px; }
.roadmap-step--locked   .roadmap-step-label { color: var(--text-sub); }
.roadmap-step--future   .roadmap-step-label { color: rgba(0,0,0,0.18); }

.roadmap-step-action {
  display: block;
  font-size: 11px;
  color: var(--teal);
  margin-top: 2px;
  font-weight: 500;
}

.roadmap-step-hint {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 3px;
  line-height: 1.4;
}

.roadmap-step-hint--next {
  color: var(--teal-dark);
  font-weight: 600;
}

/* ミニ進捗バー（タイムライン内） */
.roadmap-step-mini-bar {
  height: 3px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
  max-width: 100px;
}

.roadmap-step-mini-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  opacity: 0.5;
  min-width: 3px;
}

.goal-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.goal-item:last-child { border-bottom: none; }

.goal-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.goal-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.goal-item-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.goal-item-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal-dark);
}

.goal-item-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 17px;
}

.goal-item-bar {
  flex: 1;
  height: 6px;
  background: rgba(91,191,181,0.12);
  border-radius: 3px;
  overflow: hidden;
}

.goal-item-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

.goal-item-timeframe {
  font-size: 11px;
  color: var(--text-sub);
  flex-shrink: 0;
  font-weight: 500;
}

.goals-empty {
  text-align: center;
  padding: 16px 0 8px;
}

.goals-empty-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.goals-empty-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0 0 14px;
}

.goals-empty-link {
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}

/* ============ 朝ルーティン ============ */

/* ① 未来の自分からの短い一言 */
.morning-message {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  color: #fff;
}

.morning-message-from {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.morning-message-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}

/* ② 今日の一歩カード */
.morning-action-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  border-top: 4px solid var(--teal);
}

.morning-action-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.morning-action-text,
.morning-action-alt-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 18px;
  min-height: 56px;
}

/* ③ これでいく / 別の一歩を見る */
.morning-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.morning-btn-primary {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
}

.morning-btn-primary.active,
.morning-btn-primary:hover {
  background: var(--teal);
  color: #fff;
}

.morning-btn-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(91,191,181,0.35);
  background: rgba(91,191,181,0.07);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  margin-top: 0;
}

.morning-btn-alt:hover {
  border-color: var(--teal);
  background: rgba(91,191,181,0.14);
}

/* ④ 朝の気分 */
.morning-mood-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.morning-mood-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 14px;
  text-align: center;
}

.morning-mood-btns {
  display: flex;
  gap: 10px;
}

.morning-mood-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.18s;
}

.morning-mood-btn.selected {
  border-color: var(--teal);
  background: rgba(46,196,182,0.08);
}

.morning-mood-emoji {
  font-size: 26px;
  line-height: 1;
}

.morning-mood-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.morning-mood-btn.selected .morning-mood-name {
  color: var(--teal-dark);
}

/* ⑤ 今日をはじめる */
.morning-start-btn {
  width: 100%;
  padding: 17px 20px;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(255,96,64,0.3);
  margin-bottom: 8px;
}

.morning-start-btn:disabled {
  background: var(--border);
  color: var(--text-sub);
  box-shadow: none;
  cursor: not-allowed;
}

.morning-start-btn:not(:disabled):active {
  transform: scale(0.98);
}

/* ---- アクション ヒーローカード ---- */
.action-hero {
  background: #fff;
  border-radius: 20px;
  padding: 22px 22px 20px 26px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.05),
    0 10px 32px rgba(0,0,0,0.10),
    0 20px 48px rgba(0,0,0,0.06);
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.action-hero--done {
  background: #fff;
  box-shadow:
    0 1px 4px rgba(0,0,0,0.04),
    0 4px 14px rgba(0,0,0,0.06);
}

.action-hero-yesterday {
  font-size: 12px;
  color: var(--teal-dark);
  font-weight: 600;
  background: rgba(46,196,182,0.08);
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 12px;
  display: inline-block;
}

.action-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1A2744;
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px 4px 9px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.action-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #52C5BB;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- リサーチ導線 ---- */
.action-research-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.action-research-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  flex-shrink: 0;
}

.action-research-btn--web {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(255,96,64,0.30);
}

.action-research-btn--web:hover {
  background: var(--primary-light);
  color: #fff;
}

.action-research-btn--ai {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(255,96,64,0.30);
}

.action-research-btn--ai:hover {
  background: var(--primary-light);
  color: #fff;
}

.action-hero-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.action-hero-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f0faf6;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 16px;
}
.action-hero-link-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.action-hero-link-text {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.action-hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 20px 24px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #52C5BB 0%, #2EA89F 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow:
    0 6px 24px rgba(58,158,148,0.42),
    0 2px 8px rgba(58,158,148,0.18),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.action-hero-btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -100%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: btn-shimmer 3s 1s infinite;
}

@keyframes btn-shimmer {
  0%   { left: -100%; }
  60%, 100% { left: 140%; }
}

.action-hero-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 12px rgba(58,158,148,0.3);
}

.action-hero-btn.done {
  background: rgba(0,0,0,0.04);
  color: var(--text-sub);
  box-shadow: none;
  letter-spacing: 0;
  font-size: 16px;
}

.action-hero-btn.done::after {
  display: none;
}

/* ---- アクションフローコネクター ---- */
.action-flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0;
  gap: 0;
}

.action-flow-connector-line {
  width: 1.5px;
  height: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.14) 100%);
}

.action-flow-connector-dot {
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.05);
  border: 1.5px solid rgba(0,0,0,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

/* ---- 気づきメモ ---- */
.insight-display-card {
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.insight-display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}

.insight-edit-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.insight-edit-btn:hover {
  background: rgba(0,0,0,0.10);
}

.insight-display-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

.insight-display-text--empty {
  color: var(--text-sub);
  font-size: 13px;
}

.insight-save-btn {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: var(--teal-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.insight-save-btn:hover {
  opacity: 0.88;
}

/* ---- 明日の自分への予約 ---- */
.tomorrow-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tomorrow-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tomorrow-card-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.tomorrow-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tomorrow-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  position: relative;
}
.tomorrow-btn:hover {
  border-color: var(--teal);
  background: rgba(91,191,181,0.06);
  color: var(--text);
}
.tomorrow-btn.selected {
  border: 2px solid #3A9E94 !important;
  background: linear-gradient(135deg, #5BBFB5 0%, #3A9E94 100%) !important;
  color: #fff !important;
}
.tomorrow-btn.selected span {
  color: rgba(255,255,255,0.75) !important;
}
.tomorrow-btn.selected::after {
  content: '✓';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.tomorrow-selected {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 0 2px;
}

/* ---- 週次レビュー通知カード ---- */
.review-notification-card {
  background: linear-gradient(135deg, #f0faf9 0%, #e8f5f3 100%);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
}

/* ---- 完了サマリー行 ---- */
.done-summary-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.done-summary-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 8px 12px;
}
.done-summary-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-light);
}

/* ---- メッセージ折りたたみ ---- */
.message-detail {
  background: linear-gradient(145deg, #2C4A6E 0%, #1A3A5C 100%);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.message-detail-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  user-select: none;
}

.message-detail-summary::-webkit-details-marker { display: none; }

.message-detail-arrow {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.2s;
}

details[open] .message-detail-arrow {
  transform: rotate(180deg);
}

.message-detail-body {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}

.message-detail-from {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  text-align: right;
}

/* 未来メッセージカード */
.message-card {
  background: linear-gradient(145deg, #2C4A6E 0%, #1A3A5C 100%);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.message-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.message-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.message-from {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.message-from::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.message-text {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.message-persona {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  text-align: right;
}

/* check-btn（後方互換のため残す） */
.check-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  transition: all 0.2s;
}

.check-btn.done {
  border-color: var(--teal);
  background: rgba(91,191,181,0.08);
  color: var(--teal-dark);
}

/* 気分入力 */
.mood-picker {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
}

.mood-btn {
  flex: 1;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px var(--shadow);
}

.mood-btn.selected {
  border-color: var(--primary);
  background: rgba(255,96,64,0.08);
  transform: scale(1.1);
}

/* 継続日数バッジ */
.streak-badge {
  background: linear-gradient(135deg, var(--primary) 0%, #FF8060 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.streak-count {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.streak-label {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

.streak-flame {
  font-size: 40px;
}

/* ============ GOALS ============ */
.timeframe-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.timeframe-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 100px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card);
  color: var(--text-sub);
  box-shadow: 0 2px 8px var(--shadow);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,96,64,0.35);
}

.goal-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.goal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.goal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.4;
}

.goal-meta {
  font-size: 12px;
  color: var(--text-sub);
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.goal-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.icon-btn:active { background: var(--border); }

.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + 20px + var(--safe-bottom));
  right: calc(50% - 195px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(255,96,64,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 50;
}
.fab:active { transform: scale(0.92); }

/* ============ RECORD ============ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 20px;
}

.cal-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  padding: 4px 0;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: transparent;
  color: var(--text-sub);
}

.cal-day.has-record { background: rgba(91,191,181,0.2); color: var(--teal-dark); font-weight: 700; }
.cal-day.completed  { background: var(--teal); color: #fff; }
.cal-day.today      { border: 2px solid var(--primary); color: var(--primary); font-weight: 700; }
.cal-day.other-month{ color: var(--text-light); }

.record-detail {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

/* ============ REVIEW ============ */
.review-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.week-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.rate-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--rate) * 1%), var(--border) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
}

.rate-circle::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  background: var(--bg);
  border-radius: 50%;
}

.rate-text {
  position: relative;
  z-index: 1;
  text-align: center;
}

.rate-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.rate-label {
  font-size: 11px;
  color: var(--text-sub);
}

/* ============ SETTINGS ============ */
.settings-section {
  margin-bottom: 28px;
}

.settings-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 0 4px;
}

.settings-item {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
}

.settings-item:first-of-type {
  border-radius: var(--radius) var(--radius) 0 0;
}

.settings-item:last-of-type {
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: none;
}

.settings-item:only-of-type {
  border-radius: var(--radius);
  border-bottom: none;
}

.settings-item:active { background: var(--bg); }

.settings-item .settings-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 16px;
}

.settings-item .chevron {
  color: var(--text-light);
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 14px;
  transition: background 0.2s;
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider {
  background: var(--teal);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* プランバッジ */
.plan-card {
  background: linear-gradient(135deg, #1A3A5C 0%, #2C4A6E 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  text-align: center;
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.plan-label {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ============ AI LOADING ============ */
.ai-generating {
  text-align: center;
  padding: 40px 20px;
}

.ai-pulse {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(91,191,181,0.4); }
  50%       { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(91,191,181,0); }
}

.persona-reveal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.persona-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
}

.persona-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.persona-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
}
