* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
  text-align: center;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #495057;
}

section {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  word-wrap: break-word;
}

code {
  background-color: #f1f3f4;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Consolas", monospace;
  word-break: break-all;
  display: inline-block;
  max-width: 100%;
}

.table-container {
  overflow-x: auto;
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
  white-space: nowrap;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 0;
    max-width: 100%;
  }

  section {
    padding: 1rem;
    margin: 0 0 1rem 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #dee2e6;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  th, td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    color: #e9ecef;
    background-color: #1a1a1a;
  }

  section {
    background: #2d3748;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }

  h2 {
    color: #cbd5e0;
  }

  code {
    background-color: #4a5568;
    color: #e2e8f0;
  }

  th {
    background-color: #374151;
    color: #f7fafc;
  }

  td {
    color: #e2e8f0;
  }

  th, td {
    border-bottom: 1px solid #4a5568;
  }

  a {
    color: #63b3ed;
  }
}

/* スポンサー一覧のスタイル */
#sponsors-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#sponsors-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease-in-out;
  cursor: default;
}

#sponsors-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #007bff;
}

#sponsors-list li img {
  border-radius: 50%;
  border: 2px solid #e9ecef;
  transition: border-color 0.2s ease-in-out;
  flex-shrink: 0;
}

#sponsors-list li:hover img {
  border-color: #007bff;
}

#sponsors-list li span {
  font-weight: 500;
  color: #495057;
  word-break: break-word;
}

@media (max-width: 768px) {
  #sponsors-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  #sponsors-list li {
    padding: 0.75rem;
  }
}

@media (prefers-color-scheme: dark) {
  #sponsors-list li {
    background: #374151;
    border-color: #4a5568;
  }

  #sponsors-list li:hover {
    border-color: #63b3ed;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  #sponsors-list li img {
    border-color: #4a5568;
  }

  #sponsors-list li:hover img {
    border-color: #63b3ed;
  }

  #sponsors-list li span {
    color: #e2e8f0;
  }
}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
  section {
    border-bottom: 1px solid #4a5568;
  }
}
