/* financial_reports/static/css/report.css */
.card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  width: 6px;
  height: 20px;
  background-color: var(--primary);
  margin-right: 0.5rem;
  border-radius: 3px;
  display: inline-block;
}

.metric-change {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
}

.positive {
  color: var(--success);
  background-color: var(--success-light);
}

.negative {
  color: var(--danger);
  background-color: var(--danger-light);
}

.neutral {
  color: var(--gray);
  background-color: var(--gray-light);
}

.page-indicator {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.page-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e5e7eb;
  margin: 0 3px;
}

.page-indicator-dot.active {
  background-color: var(--primary);
}

/* ページめくり関連のスタイル */
.page {
  display: none;
}

.page.active {
  display: block;
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1.125rem;
  color: white;
}

.chart-bar {
  height: 8px;
  margin: 1px 0;
  border-radius: 4px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.rating-high {
  background-color: #10b981;
  color: white;
}

.rating-medium {
  background-color: #f59e0b;
  color: white;
}

.rating-low {
  background-color: #ef4444;
  color: white;
}

/* 新規追加スタイル */
.rating-meter {
  width: 100%;
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.rating-meter-value {
  height: 100%;
  border-radius: 3px;
}

.rating-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #6b7280;
}

.star-rating {
  color: #f59e0b;
  letter-spacing: -2px;
}

.evaluation-point {
  display: flex;
  align-items: baseline;
  margin-bottom: 2px;
}

.evaluation-point-icon {
  flex-shrink: 0;
  font-weight: bold;
  margin-right: 4px;
}

.investment-decision {
  font-size: 1rem;
  font-weight: bold;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}

.border-accent {
  border-left: 4px solid;
  padding-left: 8px;
}

.border-accent-success {
  border-color: #10b981;
}

.border-accent-warning {
  border-color: #f59e0b;
}

.border-accent-danger {
  border-color: #ef4444;
}

/* ページナビゲーションを常に表示 */
.page-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* 小さな画面向け調整 */
@media (max-width: 640px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* スクリーンショット用の固定サイズ */
@media screen {
  .screenshot-container {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }
}

/* ページ番号表示 */
.page-number {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Django用追加スタイル */
.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.gap-3 {
  gap: 0.75rem;
}

.text-xl {
  font-size: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.text-blue-700 {
  color: #1d4ed8;
}

.text-sm {
  font-size: 0.875rem;
}

.text-gray-500 {
  color: #6b7280;
}

.text-xs {
  font-size: 0.75rem;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.text-white {
  color: white;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.border-l-4 {
  border-left-width: 4px;
}

.border-blue-600 {
  border-color: #2563eb;
}

.p-3 {
  padding: 0.75rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-blue-800 {
  color: #1e40af;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.bg-white {
  background-color: white;
}

.rounded-md {
  border-radius: 0.375rem;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-600 {
  color: #4b5563;
}

.text-green-700 {
  color: #047857;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.inline {
  display: inline;
}

.mr-1 {
  margin-right: 0.25rem;
}

.space-y-1 {
  > * + * {
    margin-top: 0.25rem;
  }
}

.pl-5 {
  padding-left: 1.25rem;
}

.text-red-700 {
  color: #b91c1c;
}

.text-base {
  font-size: 1rem;
}

.space-y-2 {
  > * + * {
    margin-top: 0.5rem;
  }
}

.text-gray-700 {
  color: #374151;
}

.rounded {
  border-radius: 0.25rem;
}

.text-green-600 {
  color: #059669;
}

.text-amber-500 {
  color: #d97706;
}

.relative {
  position: relative;
}

.grid {
  display: grid;
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-2 {
  gap: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mr-0\.5 {
  margin-right: 0.125rem;
}

.overflow-x-auto {
  overflow-x: auto;
}

.-mx-3 {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.w-full {
  width: 100%;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.text-left {
  text-align: left;
}

.font-medium {
  font-weight: 500;
}

.border-b {
  border-bottom-width: 1px;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.mt-1 {
  margin-top: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.bg-green-100 {
  background-color: #d1fae5;
}

.bg-amber-100 {
  background-color: #fef3c7;
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-green-50 {
  --tw-gradient-from: #f0fdf4;
  --tw-gradient-to: rgba(240, 253, 244, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-green-100 {
  --tw-gradient-to: #d1fae5;
}

.from-red-50 {
  --tw-gradient-from: #fef2f2;
  --tw-gradient-to: rgba(254, 242, 242, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-red-100 {
  --tw-gradient-to: #fee2e2;
}

.border {
  border-width: 1px;
}

.border-green-200 {
  border-color: #a7f3d0;
}

.border-red-200 {
  border-color: #fecaca;
}

.p-2 {
  padding: 0.5rem;
}

.text-green-800 {
  color: #065f46;
}

.text-red-800 {
  color: #991b1b;
}

.text-red-600 {
  color: #dc2626;
}

.mt-3 {
  margin-top: 0.75rem;
}

.text-blue-700 {
  color: #1d4ed8;
}

.text-center {
  text-align: center;
}

.bg-green-500 {
  background-color: #10b981;
}

.mt-4 {
  margin-top: 1rem;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.inline-block {
  display: inline-block;
}

.w-3 {
  width: 0.75rem;
}

.h-3 {
  height: 0.75rem;
}

.bg-red-500 {
  background-color: #ef4444;
}

.bg-yellow-500 {
  background-color: #f59e0b;
}

.bg-green-500 {
  background-color: #10b981;
}

.rounded-full {
  border-radius: 9999px;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.text-base {
  font-size: 1rem;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.items-start {
  align-items: flex-start;
}

.flex-shrink-0 {
  flex-shrink: 0;
}
/* 改良された変動指標のスタイル */
.change-indicator-enhanced {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.change-indicator-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.change-indicator-enhanced.positive {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.change-indicator-enhanced.negative {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.change-indicator-enhanced .background-icon {
  position: absolute;
  right: -15px;
  bottom: -15px;
  font-size: 5rem;
  opacity: 0.1;
  transform: rotate(-10deg);
}

.change-indicator-enhanced .value {
  font-size: 1.5rem;
  font-weight: 800;
  z-index: 1;
}

.change-indicator-enhanced .label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  text-align: center;
  margin-top: 0.25rem;
}

/* セグメントカードの改良スタイル */
.segment-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.segment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}