body {
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: #222;
  background: #f4f4f4;
}

h1 {
  text-align: center;
  color: #003366;
  margin-bottom: 20px;
}

.pc-table-wrapper {
  overflow-x: auto;
  background: white;
  padding: 16px;
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 1450px;
  table-layout: fixed;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

th,
td {
  border: 1px solid #999;
  padding: 8px;
  vertical-align: middle;
  line-height: 1.6;
}

th {
  background: #e5e5e5;
  text-align: center;
  font-weight: bold;
}

.level-1 { background: #dcecf7; }
.level-2 { background: #bdd8ee; }
.level-3 { background: #88bce3; }
.level-4 { background: #2f7fbd; color: white; }

.red {
  color: red;
  font-weight: bold;
}

.center {
  text-align: center;
  font-weight: bold;
}

.mobile-cards {
  display: none;
}

.element-card {
  background: white;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.element-card h2 {
  color: #003366;
  margin: 0 0 16px;
  border-bottom: 2px solid #003366;
  padding-bottom: 8px;
  font-size: 22px;
}

.level-card {
  border-left: 6px solid #003366;
  background: #f8f8f8;
  padding: 14px;
  margin: 16px 0;
  border-radius: 8px;
}

.level-card h3 {
  margin: 0 0 10px;
  color: #003366;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

.diagnosis-label {
  font-weight: bold;
  color: #333;
  margin: 8px 0;
}

.example-title {
  margin-top: 12px;
  font-weight: bold;
  color: #003366;
}

.example-list {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}

.back-link {
  display: block;
  text-align: center;
  margin: 24px 0;
  color: #003366;
  font-weight: bold;
}

@media (max-width: 768px) {
  body {
    padding: 14px;
  }

  h1 {
    font-size: 26px;
  }

  .pc-table-wrapper {
    display: none;
  }

  .mobile-cards {
    display: block;
  }
}

/* アプリ更新ボタン・バージョン表示 */
.app-tools {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px 0;
  flex-wrap: wrap;
}

.refresh-button {
  width: auto !important;
  background: #003366 !important;
  color: white !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  cursor: pointer;
}

.refresh-button:hover {
  background: #002855 !important;
}

.app-version {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

/* スマホ表示 */
@media (max-width: 768px) {
  .app-tools {
    margin: 0 0 18px 0;
    gap: 10px;
  }

  .refresh-button {
    font-size: 12px !important;
    padding: 5px 12px !important;
  }

  .app-version {
    font-size: 11px;
  }
}

.settings-back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.settings-back-link:hover {
  text-decoration: underline;
}

.diagnosis-back-link {
  margin-top: 4px;
}