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

body {
  background: #0d0d0d;
  color: #e0e0e0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}

.page-header {
  padding: 40px 20px 24px;
  max-width: 860px;
  margin: 0 auto;
  border-bottom: 1px solid #222;
}

.back-link {
  font-size: 0.75rem;
  color: #555;
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 14px;
}

.kicker {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #00ffaa;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.page-header .description {
  font-size: 0.8rem;
  color: #888;
}

/* ---- Tabs ---- */
.tab-bar {
  max-width: 860px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 7px 20px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #888;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tab-btn:hover { border-color: #555; color: #ddd; }
.tab-btn.active {
  background: rgba(0,255,170,0.1);
  border-color: #00ffaa;
  color: #00ffaa;
  font-weight: 700;
}

/* ---- Canvas ---- */
.wc-section {
  max-width: 860px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.wc-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.wc-wrap canvas {
  display: block;
  width: 100%;
}

.wc-meta {
  margin-top: 8px;
  font-size: 0.68rem;
  color: #444;
  text-align: right;
}

.wc-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #444;
}
