:root {
  --bg: #0e1118;
  --bg-2: #1a2230;
  --panel: #2e3847;
  --panel-soft: #253042;
  --panel-border: #435267;
  --text: #f2f6ff;
  --muted: #aab7cb;
  --accent: #ebff38;
  --accent-2: #5dd4ff;
  --danger-bg: #472630;
  --danger-border: #9f4960;
  --danger-text: #ffdce5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top, rgba(93, 212, 255, 0.18), transparent 28%),
    radial-gradient(circle at top, var(--bg-2), var(--bg) 58%);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}
a { color: #d7e7ff; text-decoration: none; }
a:hover { opacity: .95; }
.page-container { max-width: 1080px; margin: 0 auto; padding: 16px 14px 44px; }
.home-page { width: 100%; max-width: none; }
.page-title { margin: 0; font-size: clamp(30px, 8vw, 42px); line-height: 1.05; }
.page-links { margin: 12px 0 0; color: var(--muted); font-size: clamp(16px, 4.2vw, 19px); line-height: 1.7; }
.eyebrow,
.section-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.panel {
  background: linear-gradient(180deg, rgba(48, 59, 76, 0.96), rgba(29, 37, 50, 0.98));
  border: 1px solid rgba(138, 166, 202, 0.3);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
}
.hero {
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(93, 212, 255, 0.12), rgba(235, 255, 56, 0.08), rgba(29,37,50,0.98));
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}
.section-heading.compact { align-items: start; }
.section-heading h2,
.login-panel h2 { margin: 0; font-size: clamp(24px, 5.6vw, 30px); }
.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(88%, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.slider-track::-webkit-scrollbar { height: 6px; }
.slider-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 999px; }
.video-slide {
  scroll-snap-align: start;
  background: rgba(7, 12, 20, 0.36);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1018;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-copy { padding: 12px; }
.video-copy h3 { margin: 0 0 8px; font-size: clamp(20px, 4.8vw, 24px); line-height: 1.4; }
.video-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
}
form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack-form { display: grid; gap: 10px; }
.stack-form label { font-size: 16px; font-weight: 700; }
input, select, button {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: #111927;
  color: var(--text);
  padding: 14px 14px;
  min-height: 48px;
  font-size: 16px;
}
button {
  cursor: pointer;
  background: #1d2738;
  font-weight: 800;
}
.primary-button {
  background: linear-gradient(135deg, var(--accent), #c3ff48);
  border-color: rgba(235,255,56,.6);
  color: #111;
}
.primary-button.secondary {
  background: linear-gradient(135deg, #2c374b, #1a2230);
  color: var(--text);
}
.status-card {
  padding: 14px;
  background: rgba(9, 14, 22, 0.42);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.status-label, .status-tag { margin: 0; color: var(--muted); }
.status-name { margin: 4px 0; font-size: 24px; font-weight: 800; }
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(93, 212, 255, 0.12);
  border: 1px solid rgba(93, 212, 255, 0.24);
}
.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 136px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(93,212,255,.16), rgba(93,212,255,.05));
  border: 1px solid rgba(93, 212, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.quick-link-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(17, 25, 39, 0.72);
  font-size: 24px;
}
.quick-link-text strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.4;
}
.quick-link-text small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
code, pre { background: #111927; padding: 2px 6px; border-radius: 4px; }
pre {
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--panel-border);
  white-space: pre-wrap;
  word-break: break-word;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--panel-border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { border-bottom: 1px solid rgba(255,255,255,.12); padding: 9px 10px; text-align: left; }
th { background: #39475f; white-space: nowrap; }
tr:nth-child(even) { background: rgba(255,255,255,.03); }
@media (min-width: 700px) {
  .page-container { padding-top: 20px; }
  .quick-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slider-track { grid-auto-columns: minmax(62%, 1fr); }
}
@media (max-width: 560px) {
  .page-container { padding: 12px 12px 30px; }
  .panel { padding: 16px; border-radius: 20px; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .quick-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-link-card { min-height: 138px; }

  body { font-size: 18px; }
  .page-title { font-size: clamp(34px, 10vw, 44px); }
  .section-note { font-size: 16px; }
  .quick-link-text strong { font-size: 20px; }
  .quick-link-text small { font-size: 16px; }
}
