/* ── リセット & ベース ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:   #2563eb;
  --color-primary-d: #1d4ed8;
  --color-text:      #1e293b;
  --color-muted:     #64748b;
  --color-border:    #e2e8f0;
  --color-bg:        #f8fafc;
  --color-white:     #ffffff;
  --font-sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --max-w: 800px;
  --radius: 8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── ヘッダー ── */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--color-primary); }

/* ── メインコンテンツ ── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── ページタイトル ── */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-primary);
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header .meta {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ── セクション ── */
.doc-section {
  margin-bottom: 40px;
}

.doc-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.doc-section p {
  margin-bottom: 12px;
  font-size: 0.9375rem;
}

.doc-section ul,
.doc-section ol {
  padding-left: 1.5em;
  margin-bottom: 12px;
}

.doc-section li {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

/* ── テーブル ── */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.doc-table th,
.doc-table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: var(--color-bg);
  font-weight: 600;
  white-space: nowrap;
}

/* ── お問い合わせボックス ── */
.contact-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
  font-size: 0.9375rem;
}

.contact-box h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── フッター ── */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.site-footer nav {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--color-primary); }

/* ── レスポンシブ ── */
@media (max-width: 600px) {
  .page-header h1 { font-size: 1.375rem; }
  .doc-table { font-size: 0.8125rem; }
  .doc-table th { display: none; }
  .doc-table td { display: block; border-top: none; }
  .doc-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 0.75rem;
  }
}
