/* css/legal.css — 法務ページ共通スタイル */

:root {
  --lg-bg:      #F5ECD4;
  --lg-surface: #FDFAF2;
  --lg-text:    #2D3339;
  --lg-text2:   #4A5662;
  --lg-muted:   #8A9BAA;
  --lg-border:  #E0D5C0;
  --lg-primary: #6A7B8A;
  --lg-accent:  #4A5662;
  --lg-link:    #4A5662;
  --lg-table-head: #EDE6D4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lg-bg:      #1A2028;
    --lg-surface: #242D38;
    --lg-text:    #EDE6D4;
    --lg-text2:   #C8BFA8;
    --lg-muted:   #7A8A94;
    --lg-border:  #3A4550;
    --lg-primary: #8A9BAA;
    --lg-accent:  #B0C4D4;
    --lg-link:    #A8BDD0;
    --lg-table-head: #2E3A48;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  background: var(--lg-bg);
  color: var(--lg-text);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  line-break: strict;
}

/* ── ヘッダー ── */
.lg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--lg-surface);
  border-bottom: 1px solid var(--lg-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.lg-back {
  font-size: 13px;
  color: var(--lg-primary);
  text-decoration: none;
  min-width: 60px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lg-back:hover { color: var(--lg-accent); }

.lg-logo {
  height: 22px;
  width: auto;
}

.lg-header-spacer { min-width: 60px; }

/* ── メインコンテンツ ── */
.lg-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 1.5rem 60px;
}

/* ── 見出し ── */
.lg-main h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--lg-accent);
  line-height: 1.4;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--lg-border);
}

.lg-main h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--lg-text);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lg-border);
}

.lg-main h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--lg-text2);
  margin-top: 24px;
  margin-bottom: 8px;
}

/* ── テキスト ── */
.lg-main p {
  color: var(--lg-text2);
  margin-bottom: 12px;
}

.lg-main strong {
  color: var(--lg-text);
  font-weight: 700;
}

.lg-main a {
  color: var(--lg-link);
  text-decoration: underline;
}

.lg-main a:hover { opacity: 0.7; }

/* ── リスト ── */
.lg-main ul, .lg-main ol {
  padding-left: 1.4em;
  color: var(--lg-text2);
  margin-bottom: 12px;
}

.lg-main li { margin-bottom: 4px; }

/* ── テーブル ── */
.lg-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.lg-main th {
  background: var(--lg-table-head);
  color: var(--lg-text);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--lg-border);
}

.lg-main td {
  padding: 9px 12px;
  border: 1px solid var(--lg-border);
  color: var(--lg-text2);
  vertical-align: top;
}

.lg-main tr:nth-child(even) td {
  background: var(--lg-surface);
}

/* ── 水平線 ── */
.lg-main hr {
  border: none;
  border-top: 1px solid var(--lg-border);
  margin: 32px 0;
}

/* ── フッター ── */
.lg-footer {
  background: var(--lg-accent);
  color: rgba(255,255,255,.7);
  padding: 32px 1.5rem;
  text-align: center;
}

.lg-footer-inner {
  max-width: 720px;
  margin: 0 auto;
}

.lg-updated {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}

.lg-related {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 16px;
}

.lg-related a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
}

.lg-related a:hover { color: rgba(255,255,255,.9); }

.lg-contact {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  margin-bottom: 12px;
}

.lg-contact a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
}

.lg-contact a:hover { color: rgba(255,255,255,.9); }

.lg-copyright {
  font-size: 11px;
  color: rgba(255,255,255,.2);
}

/* ── 同意フォーム（monitor.html 専用） ── */
.lg-consent {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 28px 1.5rem;
  background: var(--lg-surface);
  border-top: 2px solid var(--lg-border);
}

.lg-consent-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--lg-text);
  margin-bottom: 20px;
}

.lg-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 15px;
  color: var(--lg-text2);
}

.lg-consent-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--lg-primary);
  cursor: pointer;
}

.lg-consent-check a {
  color: var(--lg-link);
}

.lg-cta-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: var(--lg-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .15s;
  letter-spacing: .04em;
}

.lg-cta-btn:disabled {
  background: var(--lg-border);
  color: var(--lg-muted);
  cursor: not-allowed;
}

.lg-cta-btn:not(:disabled):hover { opacity: .85; }
