/* QuinzCore 法務文書 共通スタイル */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-light: #f1f5f9;
  --fg: #0f172a;
  --fg-muted: #64748b;
  --fg-soft: #475569;
  --accent: #2563eb;
  --accent-soft: #3b82f6;
  --accent-bg: #eff6ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-soft); text-decoration: underline; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.logo:hover { color: var(--accent); }
.back-link {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* Main */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* Eyebrow + Title */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
article h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--fg);
}
.meta {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.meta span { margin-right: 16px; }

/* Headings inside article */
article h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  color: var(--fg);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
article h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--fg);
}

/* Paragraphs */
article p {
  font-size: 15px;
  color: var(--fg-soft);
  margin-bottom: 18px;
}
article p strong { color: var(--fg); }

/* Lists */
article ul, article ol {
  margin: 12px 0 22px 24px;
  font-size: 15px;
  color: var(--fg-soft);
}
article li { margin-bottom: 8px; line-height: 1.7; }
article li strong { color: var(--fg); }

/* Tables */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 14px;
  background: var(--bg);
}
article table th, article table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
article table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.02em;
}
article table td {
  color: var(--fg-soft);
}
article table td strong { color: var(--fg); }
article table tr:last-child th, article table tr:last-child td { border-bottom: none; }

/* Code */
article code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* HR */
article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Definition table (key-value style for お問い合わせ等) */
.kv-table {
  margin: 24px 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
}
footer a { color: var(--fg-muted); }
footer a:hover { color: var(--accent); }
footer .footer-links {
  margin-bottom: 12px;
}
footer .footer-links a {
  margin: 0 12px;
}

/* Mobile */
@media (max-width: 640px) {
  main { padding: 40px 20px 64px; }
  article h2 { font-size: 19px; margin: 40px 0 14px; }
  article h3 { font-size: 16px; }
  article p, article ul, article ol { font-size: 14px; }
  article table { font-size: 13px; }
  article table th, article table td { padding: 10px 12px; }
  .header-inner { padding: 14px 20px; }
}

/* Legal index page (list of docs) */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
.doc-card {
  display: block;
  padding: 24px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  text-decoration: none;
}
.doc-card-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.doc-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.doc-card-desc {
  font-size: 13px;
  color: var(--fg-muted);
}
