/* ベース設定 */
:root {
  --primary: #00aaff;
  --bg-dark: #000010;
  --bg-light: rgba(255, 255, 255, 0.05);
  --text-light: #ccc;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Orbitron', sans-serif;
  background: radial-gradient(ellipse at center, var(--bg-dark) 0%, black 100%);
  color: var(--text-light);
  line-height: 1.6;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-shadow: 0 0 5px var(--primary);
}

/* ボタン */
a.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--primary);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 10px rgba(0,170,255,0.4);
}
a.btn:hover {
  background-color: #0088cc;
  box-shadow: 0 0 15px rgba(0,170,255,0.6);
}

/* セクション */
section {
  margin-bottom: 3rem;
}
h1, h2, h3 {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0,170,255,0.4);
}

/* コードブロック */
.code-container {
  background-color: #1e1e2e;
  border: 1px solid #2c2c3c;
  border-radius: 8px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,170,255,0.2);
}
.code-header {
  background-color: #2a2a3d;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: #aaa;
  display: flex;
  justify-content: space-between;
}
pre {
  margin: 0;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #ddd;
}

/* セレクトなど */
select {
  background-color: #1e1e2e;
  color: var(--text-light);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  appearance: none;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  margin-right: 1rem;
}
select:hover {
  background-color: #2a2a3d;
  border-color: #666;
}
select:focus {
  border-color: var(--primary);
  background-color: #2a2a3d;
}
label {
  margin-right: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  select {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* MIT License Box */
.terms, .policy {
  background: #1e1e2e;
  color: #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-bottom: 2rem;
}

.container.flex-wrap {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

ul {
  padding-left: 1.25rem;
}

.warning {
  color: #ff6b6b;
  font-weight: bold;
}

/* Xrea広告対策 */
#vdbanner {
  position: relative !important;
  margin-top: 64px !important;
  z-index: 1 !important;
  width: 100% !important;
  display: block !important;
}
#vdbanner iframe {
  display: block !important;
  width: 100% !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 1 !important;
}
