/**
 * 共通スタイル
 */

/* カスタムカラー設定（機能仕様書のcolor_paletteに基づく美しいカラーパレット） */
:root {
  --primary-color: #f58220;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --accent-color: #fbad63;
  --midnight-color: #1f1a24;
  --gradient-start: #1f1a24;
  --gradient-end: #4f1a4f;

  /* RPG風ステータス画面用カラーパレット（元のサイトカラーをベース） */
  --rpg-bg-primary: rgba(31, 26, 36, 0.95);
  --rpg-bg-secondary: rgba(43, 29, 52, 0.9);
  --rpg-bg-accent: rgba(245, 130, 32, 0.1);
  --rpg-text-primary: #ffffff;
  --rpg-text-secondary: #e9ecef;
  --rpg-text-muted: #adb5bd;
  --rpg-border: rgba(245, 130, 32, 0.3);
  --rpg-shadow: rgba(7, 0, 20, 0.4);
  --rpg-glow: rgba(245, 130, 32, 0.2);

  /* ステータスバーカラー（元のサイトカラーをベース） */
  --hp-color: #ff6b6b;
  --mp-color: #4ecdc4;
  --tp-color: #9b59b6;
  --exp-color: #f58220;
}

/* 全体のレイアウト */
body.soul-theme {
  font-family: 'Noto Sans JP', 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--light-color);
  background: radial-gradient(circle at 5% 10%, rgba(245, 130, 32, 0.35), transparent 50%),
    radial-gradient(circle at 95% 15%, rgba(155, 68, 255, 0.3), transparent 45%),
    linear-gradient(160deg, var(--gradient-start) 0%, #2b1d34 30%, #120f16 100%);
  min-height: 100vh;
}

.avatar-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.28), transparent 58%),
    linear-gradient(135deg, rgba(31, 26, 36, 0.9), rgba(79, 26, 79, 0.78));
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 38px rgba(7, 0, 20, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avatar-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 48px rgba(7, 0, 20, 0.45);
}

.avatar-frame--xl {
  width: 168px;
  height: 168px;
}

.avatar-frame--lg {
  width: 140px;
  height: 140px;
}

.avatar-frame--md {
  width: 100px;
  height: 100px;
}

.avatar-frame--sm {
  width: 44px;
  height: 44px;
  border-width: 1.6px;
  box-shadow: 0 12px 20px rgba(7, 0, 20, 0.28);
}

.user-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.4rem;
  background: radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.22), transparent 62%),
    linear-gradient(135deg, rgba(79, 26, 79, 0.92), rgba(31, 26, 36, 0.88));
}

.avatar-frame--sm .user-avatar-placeholder {
  font-size: 1.35rem;
}

.nav-profile-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-profile-link .avatar-frame {
  width: 42px;
  height: 42px;
  margin-right: 0.35rem;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.nav-profile-link .user-avatar-placeholder {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-profile-link .nav-profile-label {
  color: inherit;
  font-size: 0.95rem;
}

.nav-profile-link:hover {
  color: #fff;
}

.nav-profile-link:hover .nav-profile-label {
  color: #fff;
}

.nav-profile-link .avatar-frame:hover {
  transform: none;
  box-shadow: none;
}

/* ========================================
   RPG風ステータス画面スタイル
   ======================================== */

/* RPG風メインコンテナ */
.rpg-status-container {
  position: relative;
  background: linear-gradient(135deg, var(--rpg-bg-primary) 0%, var(--rpg-bg-secondary) 50%, var(--rpg-bg-accent) 100%);
  border-radius: 20px;
  box-shadow:
    0 20px 40px var(--rpg-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: 600px;
  border: 2px solid var(--rpg-border);
  margin: 2rem 0;
}

/* キャラクター背景イラスト */
.character-background-illustration {
  position: absolute;
  top: 33%;
  right: -15%;
  width: 65%;
  height: 67%;
  z-index: 1;
  opacity: 0.8;
}

.character-bg-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9) contrast(1.2) saturate(1.1);
}

/* RPG風コンテンツ */
.rpg-status-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  height: 100%;
}

/* キャラクターパネル（左側） */
.rpg-character-panel {
  background: rgba(31, 26, 36, 0.75);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  border: 1px solid var(--rpg-border);
  box-shadow: 0 10px 30px var(--rpg-shadow);
}

/* キャラクター基本情報ヘッダー */
.character-info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rpg-border);
}

.character-portrait-small {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
  padding: 0;
}

.character-portrait-small>.avatar-frame {
  width: 100%;
  height: 100%;
  border-width: 3px;
  box-shadow: 0 0 20px var(--rpg-glow);
}

.portrait-small-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-basic-info {
  flex: 1;
}

.character-name-rpg {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rpg-text-primary);
  margin: 0;
  text-shadow: 0 2px 4px var(--rpg-shadow);
}

.character-class-rpg {
  font-size: 1rem;
  color: var(--rpg-text-secondary);
  margin: 0.25rem 0;
}

.character-level-rpg {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--exp-color);
  text-shadow: 0 0 10px var(--exp-color);
}

/* キャラクター魂の特性（ミニ版） */
.character-soul-traits {
  margin: 0.75rem 0;
}

.soul-trait-mini {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.trait-label-mini {
  font-size: 0.75rem;
  color: var(--rpg-text-muted);
  margin-bottom: 0.25rem;
}

.trait-value-mini {
  font-size: 0.85rem;
  color: var(--rpg-text-primary);
  font-weight: 500;
  line-height: 1.2;
}

/* 3D風ステータスバー */
.rpg-status-bars {
  margin-bottom: 1.5rem;
}

.rpg-status-bar {
  margin-bottom: 1rem;
}

.status-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.status-name {
  font-weight: 600;
  color: var(--rpg-text-primary);
  font-size: 0.9rem;
}

.status-value {
  font-weight: 700;
  color: var(--rpg-text-primary);
  font-size: 0.9rem;
}

.status-bar-container {
  position: relative;
  height: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-bar-fill {
  height: 100%;
  border-radius: 10px;
  position: relative;
  transition: width 0.5s ease;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* モチベーションバー */
.motivation-fill {
  background: linear-gradient(90deg, #f58220 0%, #fbad63 50%, #f58220 100%);
  box-shadow:
    0 0 15px rgba(245, 130, 32, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 計画進捗バー */
.progress-fill {
  background: linear-gradient(90deg, #28a745 0%, #34ce57 50%, #28a745 100%);
  box-shadow:
    0 0 15px rgba(40, 167, 69, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 応援マイルバー */
.contribution-fill {
  background: linear-gradient(90deg, #17a2b8 0%, #20c997 50%, #17a2b8 100%);
  box-shadow:
    0 0 15px rgba(23, 162, 184, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 経験値バー */
.exp-fill {
  background: linear-gradient(90deg, #f58220 0%, #fbad63 50%, #f58220 100%);
  box-shadow:
    0 0 15px rgba(245, 130, 32, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ステータス数値グリッド */
.rpg-character-stats {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.stats-grid-rpg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat-item-rpg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-name-rpg {
  font-size: 0.85rem;
  color: var(--rpg-text-secondary);
}

.stat-value-rpg {
  font-weight: 700;
  color: var(--rpg-text-primary);
  font-size: 0.9rem;
}

/* 装備セクション */
.rpg-equipment-section {
  margin-bottom: 1.5rem;
}

.equipment-list-rpg {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.equipment-item-rpg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.equipment-item-rpg:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateX(5px);
}

.equipment-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.9rem;
}

.weapon-icon {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.shield-icon {
  background: rgba(78, 205, 196, 0.2);
  color: #4ecdc4;
}

.head-icon {
  background: rgba(155, 89, 182, 0.2);
  color: #9b59b6;
}

.body-icon {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}

.accessory-icon {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.current-goal-icon {
  background: rgba(245, 130, 32, 0.2);
  color: #f58220;
}

.current-habit-icon {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.current-skill-icon {
  background: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
}

.current-support-icon {
  background: rgba(155, 89, 182, 0.2);
  color: #9b59b6;
}

.current-milestone-icon {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.equipment-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.equipment-slot-rpg {
  font-size: 0.75rem;
  color: var(--rpg-text-muted);
}

.equipment-name-rpg {
  font-size: 0.85rem;
  color: var(--rpg-text-primary);
  font-weight: 500;
}

/* プロフィールセクション */
.rpg-profile-section {
  padding-top: 1rem;
  border-top: 1px solid var(--rpg-border);
}

.profile-text {
  font-size: 0.85rem;
  color: var(--rpg-text-muted);
  margin: 0.25rem 0;
  line-height: 1.4;
}

/* 経験値パネル（右側） */
.rpg-experience-panel {
  background: rgba(31, 26, 36, 0.4);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(6px);
  border: 1px solid var(--rpg-border);
  box-shadow: 0 10px 30px var(--rpg-shadow);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 経験値情報 */
.experience-info-rpg {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exp-current,
.exp-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.exp-label-rpg {
  font-size: 0.9rem;
  color: var(--rpg-text-secondary);
}

/* 経験値詳細 */
.exp-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rpg-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


.exp-value-rpg {
  font-weight: 700;
  color: var(--exp-color);
  font-size: 0.9rem;
  text-shadow: 0 0 10px var(--exp-color);
}

/* 動的レーダーチャート - Canvasベース */
.personality-chart-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rpg-border);
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rpg-text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.personality-chart-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.personality-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.radar-chart-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

#radarChart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.05) 0%, transparent 70%);
}

.chart-center-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(245, 130, 32, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10;
  box-shadow: 0 0 20px rgba(245, 130, 32, 0.3);
}

.center-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--rpg-text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.1;
}

.center-type {
  font-size: 0.55rem;
  color: var(--exp-color);
  font-weight: 500;
  text-shadow: 0 0 6px var(--exp-color);
  line-height: 1.1;
}

.personality-summary {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.personality-type {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.type-label {
  font-size: 0.75rem;
  color: var(--rpg-text-muted);
  margin-bottom: 0.5rem;
}

.type-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--exp-color);
  text-shadow: 0 0 8px var(--exp-color);
}

.personality-description {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trait-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trait-highlight .trait-name {
  font-size: 0.75rem;
  color: var(--rpg-text-muted);
  font-weight: 500;
}

.trait-highlight .trait-desc {
  font-size: 0.8rem;
  color: var(--rpg-text-primary);
  line-height: 1.4;
}

.btn-rpg-primary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
}

.btn-rpg-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  color: white;
}

.btn-rpg-secondary {
  background: linear-gradient(135deg, #4ecdc4 0%, #6dd5d0 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
  transition: all 0.3s ease;
}

.btn-rpg-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
  color: white;
}

/* 魂の特性（簡潔版） */
.rpg-soul-traits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.soul-trait-rpg {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trait-label-rpg {
  font-size: 0.8rem;
  color: var(--rpg-text-muted);
  margin-bottom: 0.25rem;
}

.trait-value-rpg {
  font-size: 0.9rem;
  color: var(--rpg-text-primary);
  font-weight: 500;
  line-height: 1.3;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .rpg-status-content {
    padding: 2rem 1rem;
  }

  .character-background-illustration {
    display: none;
  }

  .rpg-character-panel,
  .rpg-experience-panel {
    margin-bottom: 1.5rem;
  }

  .stats-grid-rpg {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rpg-status-content {
    padding: 1.5rem 1rem;
  }

  .character-info-header {
    flex-direction: column;
    text-align: center;
  }

  .character-portrait-small {
    width: 120px;
    height: 120px;
  }

  .rpg-action-buttons {
    flex-direction: column;
  }

  .rpg-character-panel,
  .rpg-experience-panel {
    padding: 1.5rem;
  }
}

/* メインコンテンツ */
/* メインコンテンツ */
main {
  color: #212529;
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  /* ヘッダーとの視覚的余白 */
}

/* ページごとの微調整 */
body.soul-theme main {
  color: var(--light-color);
}





/* ナビゲーション */
.navbar {
  position: relative;
  z-index: 1030;
}

.bg-gradient-soul {
  background: linear-gradient(90deg, rgba(31, 26, 36, 0.95) 0%, rgba(79, 26, 79, 0.95) 50%, rgba(245, 130, 32, 0.95) 100%);
  backdrop-filter: blur(6px);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-family: 'Unbounded', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

.navbar-brand::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(251, 173, 99, 0.25) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.navbar-brand:hover::before {
  opacity: 1;
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58220 0%, #fbad63 100%);
  color: #120f16;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 0 12px rgba(245, 130, 32, 0.45);
}

.brand-emblem-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(251, 173, 99, 0.8)) drop-shadow(0 0 32px rgba(251, 173, 99, 0.6)) drop-shadow(0 0 48px rgba(251, 173, 99, 0.4)) drop-shadow(0 0 64px rgba(251, 173, 99, 0.2));
  transition: all 0.3s ease;
}

.brand-emblem-img:hover {
  filter: drop-shadow(0 0 20px rgba(251, 173, 99, 1.0)) drop-shadow(0 0 40px rgba(251, 173, 99, 0.8)) drop-shadow(0 0 60px rgba(251, 173, 99, 0.6)) drop-shadow(0 0 80px rgba(251, 173, 99, 0.4));
  transform: scale(1.08);
}

.navbar-nav .nav-link {
  margin-right: 0.5rem;
  padding: 0.75rem 1.25rem !important;
  border-radius: 999px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
}

.navbar-nav .nav-link i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* カード */
.card {
  border: none;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  color: #212529;
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 40px rgba(7, 0, 20, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(7, 0, 20, 0.25);
}

.card-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* フォーム */
.form-floating>label {
  color: #6c757d;
}

.form-control {
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 130, 32, 0.45);
  background-color: rgba(255, 255, 255, 0.92);
  color: #212529;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(245, 130, 32, 0.25);
}

textarea.form-control {
  min-height: 160px;
}

/* ボタン */
.btn {
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.65rem 1.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 130, 32, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #f58220 0%, #fbad63 100%);
  border: none;
  color: #120f16;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: rgba(245, 130, 32, 0.6);
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #f58220 0%, #fbad63 100%);
  color: #120f16;
  border-color: transparent;
}

.btn-ghost-dark {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* アラート */
.alert {
  border: none;
  border-radius: 0.95rem;
  border-left: 4px solid;
  backdrop-filter: blur(4px);
}

.alert-success {
  border-left-color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.alert-danger {
  border-left-color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.alert-warning {
  border-left-color: var(--warning-color);
  background-color: rgba(255, 193, 7, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.alert-info {
  border-left-color: var(--info-color);
  background-color: rgba(23, 162, 184, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

/* ローディング */
.spinner-border {
  width: 2.25rem;
  height: 2.25rem;
}

/* テーブル */
.table {
  border-radius: 1rem;
  overflow: hidden;
}

.table thead th {
  background-color: var(--primary-color);
  color: #120f16;
  border: none;
  font-weight: 600;
}

.table tbody tr:hover {
  background-color: rgba(245, 130, 32, 0.08);
}

/* Chart.js カスタマイズ */
.chart-container {
  position: relative;
  height: 400px;
  margin: 2rem 0;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar-nav {
    margin-top: 1rem;
  }

  .navbar-nav .nav-link {
    margin-right: 0;
    margin-bottom: 0.5rem;
    padding: 0.6rem 1rem !important;
  }

  .card {
    margin-bottom: 1rem;
  }
}

/* ユーティリティクラス */
.text-muted-light {
  color: rgba(255, 255, 255, 0.72) !important;
}

.text-muted-soul {
  color: rgba(255, 255, 255, 0.85) !important;
}

.progress-caption {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.9rem;
  line-height: 1.4;
}

.stat-caption {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bg-light-blue {
  background-color: rgba(23, 162, 184, 0.08) !important;
}

.border-primary-light {
  border-color: rgba(245, 130, 32, 0.35) !important;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.2rem;
  box-shadow: 0 12px 40px rgba(7, 0, 20, 0.35);
  backdrop-filter: blur(10px);
}

.badge-cosmic {
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.35), rgba(255, 255, 255, 0.15));
  color: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
}

/* フッター */
footer {
  background: rgba(17, 16, 24, 0.9);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
  margin-top: 4rem;
}

/* スクロールバー（Webkit） */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(245, 130, 32, 0.75), rgba(18, 15, 22, 0.75));
  border-radius: 999px;
}


/* ダッシュボードレイアウト */
.dashboard-main {
  color: var(--light-color);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 2rem;
  background: linear-gradient(180deg,
      rgba(31, 26, 36, 1) 0%,
      rgba(31, 26, 36, 0.98) 2rem,
      rgba(31, 26, 36, 0.95) 4rem,
      rgba(31, 26, 36, 0.92) 100%);
  position: relative;
  z-index: 1;
}

.dashboard-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(180deg,
      rgba(31, 26, 36, 1) 0%,
      rgba(31, 26, 36, 0.98) 2rem,
      rgba(31, 26, 36, 0.95) 100%);
  z-index: -1;
  pointer-events: none;
}

.dashboard-main .container-xxl {
  position: relative;
  z-index: 1;
}

.hero-card {
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(31, 26, 36, 0.95) 0%, rgba(79, 26, 79, 0.92) 35%, rgba(245, 130, 32, 0.9) 100%);
  color: #fff;
  box-shadow: 0 35px 65px rgba(7, 0, 20, 0.35);
}

.hero-background-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 25%, rgba(251, 173, 99, 0.35), transparent 50%),
    radial-gradient(circle at 20% 75%, rgba(124, 58, 237, 0.3), transparent 55%);
  pointer-events: none;
}

.hero-kicker {
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-title {
  font-family: 'Unbounded', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-level-badge {
  background: rgba(18, 15, 22, 0.45);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  min-width: 140px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-level-badge .badge-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-level-badge .badge-value {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-level-badge .badge-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.soul-progress {
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.soul-progress .progress-bar {
  background: linear-gradient(90deg, rgba(245, 130, 32, 0.95) 0%, rgba(251, 173, 99, 0.95) 100%);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #120f16;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
}

.hero-actions .btn {
  box-shadow: 0 18px 32px rgba(245, 130, 32, 0.35);
}

.hero-sidecard {
  border-radius: 20px;
  background: rgba(18, 15, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-sideitem i {
  font-size: 1.8rem;
  margin-right: 0.9rem;
}

.hero-sideitem .label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-sideitem .value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.dashboard-section {
  margin-top: 3rem;
}

.dashboard-section:first-of-type {
  margin-top: 0;
  padding-top: 3rem;
}

.dashboard-section:first-of-type .section-header {
  margin-top: 0;
  padding-top: 0;
}

.dashboard-section .section-header {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

/* 新しいダッシュボードレイアウト - 掲示板風デザイン */
.quest-preview-card {
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: auto;
  padding: 0 !important;
}

/* 掲示板風クエストカード（紙の貼り付け風） */
.quest-card-grid {
  background: #ffffff;
  border: 1px solid rgba(245, 130, 32, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08);
  font-family: 'Noto Sans JP', sans-serif;
  transform: rotate(-0.2deg);
  color: #2c3e50;
  cursor: pointer;
}

/* ランダムな回転で掲示板らしさを演出 */
.quest-card-grid:nth-child(even) {
  transform: rotate(0.3deg);
}

.quest-card-grid:nth-child(3n) {
  transform: rotate(-0.1deg);
}

.quest-card-grid:nth-child(5n) {
  transform: rotate(0.2deg);
}

/* ホバー効果 */
.quest-card-grid:hover {
  transform: rotate(0deg) scale(1.02) translateY(-2px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(245, 130, 32, 0.25);
  z-index: 10;
  border-color: rgba(245, 130, 32, 0.5);
}

/* 紙のテープ風の装飾（左上） */
.quest-card-grid::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 60px;
  height: 20px;
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.7) 0%, rgba(251, 173, 99, 0.6) 100%);
  border-radius: 2px;
  transform: rotate(-5deg);
  box-shadow: 0 2px 6px rgba(245, 130, 32, 0.3);
  border: 1px solid rgba(245, 130, 32, 0.4);
}

.quest-title-grid {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.quest-desc-grid {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.6;
  min-height: 2.5rem;
  margin-bottom: 0.75rem;
}

.quest-card-grid .text-muted {
  color: #718096 !important;
  font-size: 0.85rem;
  font-weight: 500;
}

.quest-card-grid .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-weight: 600;
  border-radius: 6px;
}

.quest-card-grid .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
  transition: all 0.2s ease;
}

.quest-card-grid .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 130, 32, 0.4);
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.quest-card-grid .btn-outline-light {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.quest-card-grid .btn-outline-light:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

/* クエストグリッドコンテナ */
#my-quests-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

/* 空の状態メッセージ */
#my-quests-list .text-center {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 2px dashed rgba(245, 130, 32, 0.3);
  border-radius: 12px;
  padding: 3rem 2rem;
  color: #718096;
}

#my-quests-list .text-center i {
  font-size: 3rem;
  color: rgba(245, 130, 32, 0.4);
  margin-bottom: 1rem;
}

#my-quests-list .text-center p {
  font-size: 1rem;
  color: #4a5568;
  font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
  #my-quests-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .quest-card-grid {
    padding: 1.25rem;
  }

  .quest-title-grid {
    font-size: 1.05rem;
  }

  .quest-desc-grid {
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  #my-quests-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quest-card-grid {
    padding: 1rem;
  }
}

.status-card {
  background: linear-gradient(135deg, rgba(31, 26, 36, 0.95) 0%, rgba(43, 29, 52, 0.9) 100%);
  border-radius: 20px;
  border: 1px solid rgba(245, 130, 32, 0.2);
  box-shadow: 0 15px 35px rgba(7, 0, 20, 0.25);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(7, 0, 20, 0.35);
}

.status-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(245, 130, 32, 0.3);
  padding-bottom: 0.75rem;
}

/* 縦並びキャラクター情報 */
.character-info-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character-portrait-center {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.character-basic-info-vertical h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.character-basic-info-vertical .character-class-rpg {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.character-level-rpg {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.character-soul-traits-vertical {
  width: 100%;
}

.soul-trait-item {
  background: rgba(245, 130, 32, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(245, 130, 32, 0.2);
}

.trait-label-small {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trait-value-small {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

/* 経験値表示（縦並び） */
.experience-info-vertical {
  display: flex;
  flex-direction: column;
}

.exp-display-large {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exp-current-large,
.exp-next-large {
  text-align: center;
  padding: 1rem;
  background: rgba(245, 130, 32, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(245, 130, 32, 0.2);
}

.exp-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.exp-value-large {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 性格特性（縦並び） */
.personality-chart-section-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.personality-chart-vertical {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.personality-chart-vertical .radar-chart-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}

.personality-summary-vertical {
  width: 100%;
  text-align: center;
}

.personality-summary-vertical .personality-type {
  margin-bottom: 1rem;
}

.personality-summary-vertical .type-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}

.personality-summary-vertical .type-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.personality-summary-vertical .trait-highlight {
  background: rgba(245, 130, 32, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(245, 130, 32, 0.2);
  text-align: left;
}

.personality-summary-vertical .trait-name {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.personality-summary-vertical .trait-desc {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* ハイライトカード */
.highlight-card {
  background: linear-gradient(135deg, rgba(31, 26, 36, 0.95) 0%, rgba(43, 29, 52, 0.9) 100%);
  border-radius: 20px;
  border: 1px solid rgba(245, 130, 32, 0.2);
  box-shadow: 0 15px 35px rgba(7, 0, 20, 0.25);
  color: #fff;
}

/* 背景画像を削除 */
.character-background-illustration {
  display: none;
}

.rpg-status-container {
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: auto;
  margin: 0;
}

/* 参加中クエスト（コンパクト版） */
.quest-item-compact {
  padding: 1rem;
  background: rgba(245, 130, 32, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(245, 130, 32, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.quest-item-compact:hover {
  background: rgba(245, 130, 32, 0.15);
  border-color: rgba(245, 130, 32, 0.3);
}

.quest-title-compact {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.quest-desc-compact {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.quest-item-compact .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

.quest-item-compact .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
  .dashboard-section:first-of-type {
    padding-top: 1.5rem;
  }

  .status-card {
    margin-bottom: 1.5rem;
  }

  .character-basic-info-vertical h3 {
    font-size: 1.25rem;
  }

  .exp-value-large {
    font-size: 1.5rem;
  }

  .personality-chart-vertical .radar-chart-wrapper {
    width: 150px;
    height: 150px;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header>div:first-child {
  flex: 1;
  min-width: 0;
}

.rpg-action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.section-header h2 {
  font-family: 'Unbounded', 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.stat-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #212529;
  box-shadow: 0 20px 45px rgba(7, 0, 20, 0.2);
}

.stat-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 15, 22, 0.55);
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-detail {
  font-size: 0.95rem;
  color: rgba(18, 15, 22, 0.6);
}

.quest-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  color: #120f16;
  box-shadow: 0 25px 50px rgba(7, 0, 20, 0.22);
  border: 1px solid rgba(18, 15, 22, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.quest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 65px rgba(7, 0, 20, 0.28);
}

.quest-card.empty {
  background: rgba(18, 15, 22, 0.55);
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.quest-card.placeholder {
  background: rgba(18, 15, 22, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.placeholder-wave {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.1) 100%);
  animation: placeholderGlow 1.6s ease-in-out infinite;
}

.placeholder-wave.short {
  width: 55%;
}

@keyframes placeholderGlow {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.quest-meta {
  font-size: 0.85rem;
  color: rgba(18, 15, 22, 0.55);
}

.quest-tag {
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quest-date {
  font-size: 0.9rem;
  color: rgba(18, 15, 22, 0.45);
}

.quest-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.quest-priority {
  font-size: 0.9rem;
  font-weight: 600;
}

.priority-urgent {
  color: #ff4d4f;
}

.priority-high {
  color: #ff8c42;
}

.priority-medium {
  color: #646cff;
}

.priority-low {
  color: #20c997;
}

.highlight-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: #120f16;
  box-shadow: 0 25px 60px rgba(7, 0, 20, 0.22);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-bullet {
  position: absolute;
  left: 0.8rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58220 0%, #fbad63 100%);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.15);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0;
  bottom: -1.5rem;
  width: 2px;
  background: rgba(18, 15, 22, 0.08);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-label {
  font-weight: 700;
  color: #120f16;
}

.timeline-meta {
  font-size: 0.85rem;
  color: rgba(18, 15, 22, 0.55);
  display: flex;
  gap: 1rem;
}

.timeline-meta .points {
  color: var(--primary-color);
  font-weight: 600;
}

.wins-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.wins-list li {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(18, 15, 22, 0.04);
  border: 1px solid rgba(18, 15, 22, 0.06);
}

.wins-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.encouragement {
  font-size: 1rem;
  line-height: 1.7;
}

.divider {
  height: 1px;
  background: rgba(18, 15, 22, 0.1);
}

.timeline-list .empty,
.wins-list .empty {
  text-align: center;
  color: rgba(18, 15, 22, 0.45);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px dashed rgba(18, 15, 22, 0.15);
}

/* 統合ステータス画面 */
.integrated-status {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.status-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
}

.status-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(251, 173, 99, 0.9);
  text-align: center;
  border-bottom: 2px solid rgba(251, 173, 99, 0.3);
  padding-bottom: 0.5rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.status-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  flex: 1;
}

.status-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-align: right;
  flex: 1;
  text-shadow: 0 0 8px rgba(251, 173, 99, 0.3);
}

.experience-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.exp-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.exp-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.exp-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(251, 173, 99, 1);
  text-shadow: 0 0 10px rgba(251, 173, 99, 0.4);
}

.character-display-section {
  position: relative;
  height: 100%;
  background: linear-gradient(135deg, rgba(18, 15, 22, 0.9) 0%, rgba(31, 26, 36, 0.9) 100%);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.character-portrait-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(251, 173, 99, 0.6);
  box-shadow: 0 0 30px rgba(251, 173, 99, 0.5);
  margin-bottom: 1.5rem;
  z-index: 2;
  position: relative;
}

.portrait-large-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-stats-mini {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  z-index: 2;
  position: relative;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mini-stat:last-child {
  margin-bottom: 0;
}

.mini-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  min-width: 35px;
}

.mini-progress {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.mini-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.mini-progress-bar.hp-bar {
  background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 100%);
}

.mini-progress-bar.mp-bar {
  background: linear-gradient(90deg, #17a2b8 0%, #4fc3f7 100%);
}

.mini-progress-bar.exp-bar {
  background: linear-gradient(90deg, #ffc107 0%, #ffeb3b 100%);
}

.mini-stat-value {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

.character-background-mini {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  z-index: 1;
}

.character-bg-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(251, 173, 99, 0.2));
}

/* 統合キャラクターステータス画面 */
.character-status-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: #120f16;
  box-shadow: 0 25px 60px rgba(7, 0, 20, 0.22);
  overflow: hidden;
  min-height: 600px;
  position: relative;
}

.character-background-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-bg-main {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.35;
  filter: blur(0.3px);
}

.character-icon-top-left {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(251, 173, 99, 0.8);
  box-shadow: 0 0 25px rgba(251, 173, 99, 0.6);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.character-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-status-overlay {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  background: linear-gradient(135deg, rgba(18, 15, 22, 0.85) 0%, rgba(31, 26, 36, 0.85) 100%);
  backdrop-filter: blur(10px);
}

.status-card-left {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  height: 100%;
}

.status-card-right {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  height: 100%;
}

.hero-info-section {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(251, 173, 99, 0.8);
  letter-spacing: 1px;
}

.hero-title {
  font-family: 'Unbounded', 'Noto Sans JP', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(251, 173, 99, 0.3);
}

.hero-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* プロフェッショナルなステータスカード */
.professional-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.soul-card,
.rhythm-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.soul-card:hover,
.rhythm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251, 173, 99, 0.2);
  border-color: rgba(251, 173, 99, 0.3);
}

.soul-card::before,
.rhythm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(251, 173, 99, 0.8) 0%, rgba(251, 173, 99, 0.4) 100%);
}

.soul-card-header,
.rhythm-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.soul-icon,
.rhythm-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(251, 173, 99, 0.8) 0%, rgba(251, 173, 99, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(251, 173, 99, 0.4);
}

.soul-title,
.rhythm-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(251, 173, 99, 0.9);
  margin: 0;
  text-shadow: 0 0 10px rgba(251, 173, 99, 0.3);
}

.soul-content,
.rhythm-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.soul-trait,
.rhythm-trait {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trait-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trait-value {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 0 8px rgba(251, 173, 99, 0.2);
}

/* 経験値カード */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.exp-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.exp-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(251, 173, 99, 0.15);
  border-color: rgba(251, 173, 99, 0.2);
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(251, 173, 99, 0.6) 0%, rgba(251, 173, 99, 0.2) 100%);
}

.exp-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(251, 173, 99, 0.7) 0%, rgba(251, 173, 99, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(251, 173, 99, 0.3);
  flex-shrink: 0;
}

.exp-content {
  flex: 1;
}

.exp-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.exp-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(251, 173, 99, 1);
  text-shadow: 0 0 10px rgba(251, 173, 99, 0.4);
}

.character-info {
  background: linear-gradient(135deg, rgba(18, 15, 22, 0.95) 0%, rgba(31, 26, 36, 0.95) 100%);
  color: #fff;
}

.character-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.character-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(251, 173, 99, 0.6);
  box-shadow: 0 0 20px rgba(251, 173, 99, 0.4);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-name {
  font-family: 'Unbounded', 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.character-class {
  font-size: 1rem;
  color: rgba(251, 173, 99, 0.9);
  margin: 0.25rem 0;
  font-weight: 500;
}

.character-level {
  font-size: 1.25rem;
  font-weight: 800;
  color: rgba(251, 173, 99, 1);
  text-shadow: 0 0 10px rgba(251, 173, 99, 0.5);
}

.status-bars {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-bar {
  position: relative;
}

.status-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-value {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.status-progress {
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.status-progress .progress-bar {
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.character-stats {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(251, 173, 99, 0.9);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(251, 173, 99, 1);
  text-shadow: 0 0 8px rgba(251, 173, 99, 0.4);
}

.character-equipment {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.equipment-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(251, 173, 99, 0.9);
}

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.equipment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.equipment-slot {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.equipment-name {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.character-display {
  background: linear-gradient(135deg, rgba(18, 15, 22, 0.9) 0%, rgba(31, 26, 36, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.character-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(251, 173, 99, 0.3));
  opacity: 0.8;
}

.character-overlay {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(18, 15, 22, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(251, 173, 99, 0.3);
  backdrop-filter: blur(10px);
}

.experience-info {
  color: #fff;
}

.exp-current,
.exp-next {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.exp-current span,
.exp-next span {
  color: rgba(251, 173, 99, 1);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(251, 173, 99, 0.4);
}

@media (max-width: 991.98px) {
  .hero-card {
    padding: 2.5rem 2rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .character-status-card {
    min-height: auto;
  }

  .character-display {
    min-height: 300px;
  }

  .character-overlay {
    position: static;
    margin-top: 1rem;
    background: rgba(18, 15, 22, 0.9);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .character-status-overlay {
    padding: 1.5rem;
  }

  .status-card-left,
  .status-card-right {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .character-bg-main {
    opacity: 0.15;
  }

  .character-icon-top-left {
    width: 60px;
    height: 60px;
    top: 1rem;
    left: 1rem;
  }

  .professional-status-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .exp-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .exp-card {
    padding: 1rem;
  }
}

/* 達成履歴カード */
.achievement-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(245, 130, 32, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f58220, #ff6b35, #f58220);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

.achievement-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 130, 32, 0.6);
  box-shadow: 0 10px 30px rgba(245, 130, 32, 0.2);
}

.achievement-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
}

.achievement-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.achievement-icon.level-up {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #b8860b;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.achievement-icon.quest-complete {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #15803d;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.achievement-icon.task-master {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #1e40af;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.achievement-icon.streak-fire {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #c2410c;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.achievement-icon.milestone {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #7c3aed;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.achievement-icon.social {
  background: linear-gradient(135deg, #ec4899, #be185d);
  color: #9d174d;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.achievement-content {
  position: relative;
  z-index: 2;
}

.achievement-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.achievement-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.achievement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.achievement-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.achievement-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.achievement-badge.level {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.achievement-badge.quest {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.achievement-badge.task {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.achievement-badge.streak {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.achievement-badge.milestone {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.achievement-badge.social {
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

/* 管理者メニューのドロップダウンを最前面に表示 */
.nav-item.dropdown {
  position: relative;
  z-index: 1040;
}

.nav-item.dropdown .dropdown-menu {
  z-index: 1050 !important;
}

/* Bootstrapのドロップダウンが確実に表示されるように */
.dropdown-menu {
  z-index: 1050 !important;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ログインページ専用スタイル */
.login-page-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 76px);
  /* ヘッダーの高さを考慮（約76px） */
  padding: 2rem 1rem;
  width: 100%;
}

.login-card {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.login-card .card-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.login-card .form-floating>label {
  color: #6c757d;
}

.login-card .form-control {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-card .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(245, 130, 32, 0.25);
}

.login-card .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.login-card .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.4);
}

.login-card .btn-outline-primary,
.login-card .btn-outline-success {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.login-card .btn-outline-primary:hover,
.login-card .btn-outline-success:hover {
  transform: translateY(-1px);
}

.login-card .alert {
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.login-card .border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 767.98px) {
  .login-page-container {
    min-height: calc(100vh - 60px);
    padding: 1.5rem 1rem;
  }

  .login-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .login-page-container {
    padding: 1rem 0.75rem;
  }

  .login-card {
    border-radius: 0.75rem;
  }

  .login-card .card-body {
    padding: 1.5rem;
  }
}

/* ============================================
   応援マイル・経験値獲得ポップアップ通知システム
   ============================================ */

.reward-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-popup {
  position: relative;
  opacity: 0;
  transform: scale(0.8) translateY(-50px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.reward-popup.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.reward-popup-content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 255, 0.95));
  border-radius: 24px;
  padding: 3rem 4rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 60px rgba(245, 130, 32, 0.2);
  text-align: center;
  min-width: 320px;
  max-width: 500px;
  backdrop-filter: blur(20px);
  border: 3px solid rgba(245, 130, 32, 0.3);
  animation: rewardPopupGlow 2s ease-in-out infinite;
}

@keyframes rewardPopupGlow {

  0%,
  100% {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.5) inset,
      0 0 60px rgba(245, 130, 32, 0.2);
  }

  50% {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.5) inset,
      0 0 80px rgba(245, 130, 32, 0.4);
  }
}

.reward-popup-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: rewardIconBounce 1s ease-in-out infinite;
  display: inline-block;
}

@keyframes rewardIconBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.1);
  }
}

.reward-popup-miles .reward-popup-icon {
  color: #f58220;
  text-shadow: 0 0 20px rgba(245, 130, 32, 0.5);
}

.reward-popup-experience .reward-popup-icon {
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.reward-popup-levelup .reward-popup-icon {
  color: #ff6b6b;
  text-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
  animation: rewardIconBounce 0.8s ease-in-out infinite, rewardLevelUpRotate 2s linear infinite;
}

@keyframes rewardLevelUpRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.reward-popup-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f1a24;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.reward-popup-amount {
  font-size: 4rem;
  font-weight: 900;
  color: #1f1a24;
  margin-bottom: 1rem;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: rewardAmountPulse 1.5s ease-in-out infinite;
}

@keyframes rewardAmountPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.reward-popup-miles .reward-popup-amount {
  color: #f58220;
  text-shadow: 0 0 10px rgba(245, 130, 32, 0.3);
}

.reward-popup-experience .reward-popup-amount {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.reward-popup-levelup .reward-popup-amount {
  color: #ff6b6b;
  text-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
  font-size: 5rem;
}

.reward-popup-unit {
  font-size: 2rem;
  font-weight: 600;
  margin-left: 0.5rem;
  opacity: 0.8;
}

.reward-popup-message {
  font-size: 1.1rem;
  color: rgba(31, 26, 36, 0.8);
  margin-top: 1rem;
  line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 767.98px) {
  .reward-popup-content {
    padding: 2rem 2.5rem;
    min-width: 280px;
    max-width: 90%;
  }

  .reward-popup-icon {
    font-size: 4rem;
  }

  .reward-popup-amount {
    font-size: 3rem;
  }

  .reward-popup-levelup .reward-popup-amount {
    font-size: 4rem;
  }

  .reward-popup-unit {
    font-size: 1.5rem;
  }

  .reward-popup-title {
    font-size: 1.25rem;
  }

  .reward-popup-message {
    font-size: 1rem;
  }
}