@charset "UTF-8";

/* ==========================================================================
   1. 共用スタイル（ペナルティ画面・通常画面 共通）
   ========================================================================== */

/* 画面全体のベース設定 */
.status-page-wrapper,
.penalty-page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #1e293b;
}

/* 共通のセクション見出し */
.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: #f1f5f9;
  margin-left: 1rem;
}


/* ==========================================================================
   2. 違反時（ペナルティ適用中）のスタイル
   ========================================================================== */

.penalty-page-wrapper {
  background-color: #f8fafc;
}

.penalty-card {
  max-width: 460px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.15), 0 0 0 1px rgba(220, 38, 38, 0.05);
  overflow: hidden;
}

.penalty-header {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
}

.penalty-header-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(185, 28, 28, 0.5));
}

.penalty-header-icon svg {
  width: 3.5rem;
  height: 3.5rem;
  color: #ffffff;
}

.penalty-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0;
}

.penalty-subtitle {
  color: #fecaca;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
}

.penalty-body {
  padding: 2rem;
}

.section-wrapper {
  margin-bottom: 2.5rem;
}

/* 違反項目のリスト */
.violation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.violation-item {
  display: flex;
  align-items: center;
  background-color: #fef2f2;
  color: #991b1b;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #fee2e2;
  transition: transform 0.2s ease;
}

.violation-item:hover {
  transform: translateX(4px);
}

.violation-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  color: #ef4444;
}

/* ペナルティ用ポイントグリッド */
.points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.point-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.2s ease;
}

.point-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.point-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.point-value-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: #0f172a;
}

.point-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.point-unit {
  font-size: 0.875rem;
  margin-left: 0.25rem;
  font-weight: 600;
  color: #64748b;
}

.points-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}

/* ペナルティ画面アクションボタン */
.rule-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.rule-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
}


/* ==========================================================================
   3. 通常時（違反なし・正常）のスタイル
   ========================================================================== */

.status-page-wrapper {
  background-color: #f0fdf4;
}

.status-card {
  max-width: 500px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.05);
  overflow: hidden;
}

.status-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
}

.status-header-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(5, 150, 105, 0.5));
}

.status-header-icon svg {
  width: 3.5rem;
  height: 3.5rem;
  color: #ffffff;
}

.status-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0;
}

.status-subtitle {
  color: #d1fae5;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
}

.status-body {
  padding: 2rem;
}

/* 通常用レートリスト */
.rate-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.rate-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rate-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.rate-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
}

.rate-header svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  color: #10b981;
}

.rate-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
}

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

.breakdown-col:first-child {
  border-right: 1px solid #e2e8f0;
}

.breakdown-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.breakdown-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}

.breakdown-unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 0.25rem;
}

/* ==========================================================================
    アクションボタン周り（ペナルティ・通常 共通のサイズ調整）
   ========================================================================== */

.action-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* ボタンを横幅いっぱいにせず、中央に配置する */
}

/* ボタンの共通サイズ・レイアウト（デカすぎたのをスマートに修正） */
.rule-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* ボタン内のアイコンサイズも微調整 */
.rule-button-icon,
.primary-button-icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.5rem;
}

/* 違反画面：ルール確認ボタンの配色・影 */
.rule-button {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  margin-bottom: 0.5rem;
}

.rule-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
}

/* 通常画面：報酬アップボタンの配色・影 */
.rule-button {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.rule-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.3);
}

/* アクションボタン下の注釈 */
.rule-note,
.primary-note {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 1rem;
  line-height: 1.6;
}