    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans JP",
        sans-serif;
      background: #f3f5f7;
      color: #1f2937;
    }

    .container {
      width: min(960px, calc(100% - 32px));
      margin: 0 auto;
      padding: 32px 0 64px;
    }

    h1 {
      margin: 0;
      font-size: 1.8rem;
    }

    .site-header {
      margin-bottom: 24px;
      padding: 26px 28px;
      border: 1px solid #1e4166;
      border-radius: 14px;
      background: #173f67;
      color: white;
    }

    .brand {
      margin: 0 0 8px;
      color: #f4c95d;
      font-size: 0.75rem;
      font-weight: 800;
      letter-spacing: 0.2em;
    }

    .title-row {
      display: flex;
      align-items: baseline;
      gap: 12px;
    }

    .app-version {
      color: #cbdced;
      font-size: 0.82rem;
      font-weight: 700;
    }

    .lead {
      margin: 10px 0 0;
      color: #e4eef8;
      line-height: 1.65;
    }

    .summary {
      margin: 6px 0 24px;
      color: #6b7280;
    }

    .search-box {
      width: min(100%, 420px);
      margin-bottom: 24px;
      padding: 12px 14px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      background: white;
      font-size: 1rem;
    }

    .pilot-list {
      display: grid;
      gap: 12px;
    }

    .pilot-card {
      display: grid;
      grid-template-columns: 28px 72px minmax(0,1fr) auto;
      align-items: center;
      gap: 16px;
      padding: 14px 18px;
      border: 1px solid #dbe1e7;
      border-radius: 10px;
      background: white;
    }
    .pilot-checkbox {
      width: 20px;
      height: 20px;
      cursor: pointer;
    }

    .pilot-icon {
      width: 64px;
      height: 64px;
      border: 1px solid #d1d5db;
      border-radius: 10px;
      object-fit: cover;
      background: #f8fafc;
    }

    .pilot-name {
      margin: 0;
      font-size: 1.15rem;
      font-weight: 700;
      word-break: break-word;
    }

    .organization {
      margin: 5px 0 0;
      color: #64748b;
      word-break: break-word;
    }

    .pilot-result-area {
      min-width: 190px;
      text-align: right;
    }

    .pilot-result-summary {
      margin: 0 0 8px;
      color: #64748b;
      font-size: 0.86rem;
    }

    .pilot-result-link {
      display: inline-block;
      padding: 9px 14px;
      border-radius: 8px;
      background: #0f5f9f;
      color: white;
      font-size: 0.9rem;
      font-weight: 700;
      text-decoration: none;
    }

    .pilot-result-link:hover {
      background: #0b4d82;
    }

    .pilot-result-link:focus-visible {
      outline: 3px solid #93c5fd;
      outline-offset: 2px;
    }

    .pilot-result-empty {
      color: #94a3b8;
      font-size: 0.88rem;
    }
    .organization-filter {
      min-width: 220px;
      padding: 12px 14px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      background: white;
      font-size: 1rem;
    }
    .message {
      padding: 24px;
      border: 1px solid #dbe1e7;
      border-radius: 10px;
      background: white;
      text-align: center;
      color: #64748b;
    }

@media (max-width: 520px) {
  .container {
    width: calc(100% - 16px);
    padding-top: 16px;
  }

  h1 {
    font-size: 1.45rem;
  }

  .pilot-card {
    grid-template-columns: 28px 58px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .pilot-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .pilot-icon {
    width: 54px;
    height: 54px;
  }

  .pilot-name {
    font-size: 1rem;
    line-height: 1.35;
  }

  .organization {
    margin-top: 4px;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .pilot-result-area {
    grid-column: 2 / -1;
    min-width: 0;
    text-align: left;
  }

  .pilot-result-summary {
    display: inline;
    margin-right: 8px;
  }
}
    .document-section {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid #dbe1e7;
  border-radius: 12px;
  background: white;
}

.document-section h2 {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.4rem;
}

.document-section h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.document-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.registration-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: start;
}

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

.line-qr {
  width: 200px;
  max-width: 100%;
  height: auto;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.qr-area p {
  margin: 8px 0 0;
  font-weight: 700;
}

.note {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
}

pre {
  overflow-x: auto;
  margin: 10px 0 20px;
  padding: 16px;
  border-radius: 8px;
  background: #1e293b;
  color: #f8fafc;
  line-height: 1.5;
}

code {
  font-family:
    Consolas,
    "Courier New",
    monospace;
}

.api-table-wrapper {
  overflow-x: auto;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
}

.api-table th,
.api-table td {
  padding: 12px;
  border: 1px solid #dbe1e7;
  text-align: left;
  vertical-align: top;
}

.api-table th {
  background: #f8fafc;
}

@media (max-width: 640px) {
  .document-section {
    margin-top: 32px;
    padding: 18px;
  }

  .registration-layout {
    grid-template-columns: 1fr;
  }

  .qr-area {
    order: -1;
  }
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.toolbar .search-box {
  flex: 1;
  margin-bottom: 0;
}

.download-button {
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.download-button:hover {
  background: #1d4ed8;
}

.download-button:disabled {
  background: #94a3b8;
  cursor: wait;
}

@media (max-width: 640px) {
  .organization-filter {
    width: 100%;
    min-width: 0;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .download-button {
    width: 100%;
  }
}

.export-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #f7f9fb;
}

.export-result p {
  margin: 0 0 10px;
}

.export-url-row {
  display: flex;
  gap: 8px;
}

.export-url-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #b9c3cf;
  border-radius: 6px;
}

.export-url-row button {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .export-url-row {
    flex-direction: column;
  }
}
