/* お囃子道場 法務文書 共通スタイル */

:root {
  --bg: #fdfaf3;
  --panel: #ffffff;
  --text: #1d1a1a;
  --text-muted: #6a5f5c;
  --accent: #c8211d;
  --accent-dim: #a51b18;
  --gold: #b8935a;
  --gold-dim: #8e6f42;
  --border: #ebe3d0;
  --code-bg: #f5efdb;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

/* ---- Header ---- */

.site-header {
  background: linear-gradient(180deg, #1d1a2a 0%, #14121d 100%);
  color: #f5ead0;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header .home-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.site-header .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6a6a, var(--accent) 60%, #6a1210);
  box-shadow: 0 2px 8px rgba(200, 33, 29, 0.4);
  flex-shrink: 0;
}

.site-header .brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f4c95d;
}

.site-header .brand-tag {
  font-size: 10px;
  letter-spacing: 3px;
  color: #b8935a;
  margin-top: 2px;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.site-header nav a {
  color: #d8ceb0;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: color 0.15s ease;
}

.site-header nav a:hover {
  color: #f4c95d;
}

/* ---- Main content ---- */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.doc-meta .service-name {
  font-weight: 600;
  color: var(--accent-dim);
}

h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 24px;
  color: var(--text);
  line-height: 1.4;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dim);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin: 40px 0 16px;
  letter-spacing: 1px;
}

h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
  letter-spacing: 0.5px;
}

p {
  margin: 12px 0;
}

ol, ul {
  padding-left: 24px;
  margin: 12px 0;
}

ol li, ul li {
  margin: 6px 0;
}

strong {
  color: var(--accent-dim);
  font-weight: 700;
}

a {
  color: var(--accent-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 14px;
}

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

table th {
  background: var(--code-bg);
  font-weight: 700;
  color: var(--text);
  width: 30%;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0 32px;
}

.doc-footer-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: 1px;
}

/* ---- Site footer ---- */

.site-footer {
  background: #1d1a2a;
  color: #b8935a;
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
}

.site-footer-inner {
  max-width: 760px;
  margin: 0 auto;
}

.site-footer a {
  color: #d8ceb0;
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  color: #f4c95d;
}

.site-footer .copyright {
  margin-top: 12px;
  color: #6a5f5c;
  font-size: 10px;
}

/* ---- Index page ---- */

.index-hero {
  padding: 40px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.index-hero h1 {
  margin: 0;
  font-size: 32px;
}

.index-hero p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 14px;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.doc-list li {
  margin: 0;
}

.doc-list a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.doc-list a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 33, 29, 0.08);
}

.doc-list .doc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dim);
  margin-bottom: 6px;
}

.doc-list .doc-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 24px 16px 64px; }
  h1 { font-size: 22px; }
  h2 { font-size: 16px; }
  h3 { font-size: 14px; }
  table th, table td { padding: 8px 10px; font-size: 13px; }
  .site-header { padding: 16px; }
  .site-header nav { display: none; }
}
