/* =============================
 * Minimal Base UI (NicheWorks)
 * ============================= */

/* 基本テーマ */
:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-soft: #f3f4f6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
}

/* Reset */
*,
*:before,
*:after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

/* Page */
.nw-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.nw-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.nw-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.nw-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Main */
.nw-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Card */
.nw-card {
  background: var(--bg-soft);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}

/* Sections */
.nw-section {
  margin-bottom: 24px;
}

.nw-h2 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
}

/* Ad placeholders */
.nw-ad {
  margin: 24px 0;
}

/* Internal links */
.nw-links {
  margin: 24px 0 16px;
  text-align: center;
  font-size: 13px;
}

.nw-links a {
  color: #374151;
  text-decoration: none;
}

.nw-links a:hover {
  text-decoration: underline;
}

/* Donate */
.nw-donate {
  margin-top: 32px;
  padding: 16px;
  border-top: 1px dashed var(--border-soft);
}

.nw-donate-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.nw-donate-links a {
  display: inline-block;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  margin-right: 8px;
}

.nw-donate-links a:hover {
  background: var(--bg-soft);
}

/* Footer */
.nw-footer {
  padding: 16px;
  border-top: 1px solid var(--border-soft);
}

.nw-footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.nw-footer-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
