/* Heads Up Poker - Legal Site
 * シンプル・読みやすさ最優先。アプリのカジノ調と統一。
 */

:root {
  --bg: #0d1812;
  --surface: #16241c;
  --gold: #d6b366;
  --gold-light: #f5e3a8;
  --text: #e8e8e8;
  --text-muted: #a0a8a4;
  --border: rgba(214, 179, 102, 0.18);
  --max-width: 720px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  background: linear-gradient(180deg, #0d1812 0%, #0a130e 100%);
  min-height: 100vh;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
}

header.site .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header.site .brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-decoration: none;
}

header.site nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

header.site nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

header.site nav a:hover,
header.site nav a.current {
  color: var(--gold-light);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
  font-size: 12px;
}

.lang-switch a {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switch a:hover { color: var(--gold-light); }
.lang-switch a.current {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

h1 {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 26px;
  margin: 8px 0 4px;
  letter-spacing: 0.02em;
}

h2 {
  color: var(--gold);
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 15px;
  color: var(--text);
  margin-top: 18px;
  margin-bottom: 4px;
}

p, li {
  color: var(--text);
}

p {
  margin: 8px 0 14px;
}

ul, ol {
  padding-left: 22px;
}

a {
  color: var(--gold-light);
}

.meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.notice {
  background: rgba(214, 179, 102, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0;
}

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

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

table th {
  color: var(--gold);
  width: 30%;
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.doc-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.15s;
}

.doc-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.doc-card .ttl {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.doc-card .desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (prefers-color-scheme: light) {
  /* 法務文書はダーク基調で統一（読みやすさより一貫性優先） */
}
