/* テーブル */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.page-content table th,
.page-content table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.page-content table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #d1d5db;
  font-size: 14px;
}

.page-content table td {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.page-content table tr:hover {
  background-color: #f9fafb;
}

.page-content table tr:last-child td {
  border-bottom: none;
}

.page-content table a {
  color: #2563eb;
  text-decoration: none;
}

.page-content table a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .page-content table {
    font-size: 13px;
    margin: 1rem 0;
    border: none;
    background: none;
  }

  .page-content table thead {
    display: none;
  }

  .page-content table tbody {
    display: block;
  }

  .page-content table tr {
    display: block;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 12px;
  }

  .page-content table td {
    display: block;
    padding: 8px 0;
    border: none;
    text-align: left;
    position: relative;
    padding-left: 80px;
  }

  .page-content table td:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #374151;
    position: absolute;
    left: 0;
    width: 70px;
    font-size: 12px;
  }

  .page-content table tr:hover {
    background-color: #f9fafb;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .page-content table {
    background-color: #2d2d2d !important;
    border-color: #555555 !important;
  }

  .page-content table th {
    background-color: #1a1a1a !important;
    color: #e5e5e5 !important;
    border-bottom-color: #555555 !important;
  }

  .page-content table td {
    color: #e5e5e5 !important;
    border-bottom-color: #555555 !important;
  }

  .page-content table tr:hover {
    background-color: #1a1a1a !important;
  }

  .page-content table a {
    color: #60a5fa !important;
  }

  .page-content table a:hover {
    color: #93c5fd !important;
  }

  @media (max-width: 768px) {
    .page-content table tr {
      background-color: #2d2d2d !important;
      border-color: #555555 !important;
    }

    .page-content table td:before {
      color: #e5e5e5 !important;
    }

    .page-content table tr:hover {
      background-color: #1a1a1a !important;
    }
  }
}
