/* ===================================
   Gridroid FX — Consolidated Styles
   =================================== */

/* === Base === */
html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
}

.font-sora {
  font-family: 'Sora', sans-serif;
}

/* === Animations === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

.chart-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawLine 2s ease forwards 0.5s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* === Layout === */
.gradient-bg {
  background: #EDF2F7;
}

/* === Components === */
.card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 54, 93, 0.1);
}

.ref-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* === Chart Tabs === */
.tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.tab-btn.active {
  background: #1A365D;
  color: #fff;
}

.tab-btn:not(.active) {
  color: #5A6B82;
  border-color: #DDE3ED;
}

.tab-btn:not(.active):hover {
  border-color: #1A365D;
  color: #1A365D;
}

/* === Law Page Table === */
.law-table {
  width: 100%;
  border-collapse: collapse;
}

.law-table tr {
  border-bottom: 1px solid #e5e7eb;
}

.law-table th {
  text-align: left;
  vertical-align: top;
  padding: 16px 12px;
  font-weight: 600;
  color: #1A365D;
  font-size: 14px;
  width: 200px;
  background: #f8f9fa;
}

.law-table td {
  vertical-align: top;
  padding: 16px 12px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .law-table,
  .law-table tbody,
  .law-table tr,
  .law-table th,
  .law-table td {
    display: block;
    width: 100%;
  }

  .law-table th {
    padding: 12px 12px 4px;
    background: transparent;
    border-bottom: none;
  }

  .law-table td {
    padding: 4px 12px 16px;
  }

  .law-table tr {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
  }
}
