/* trendmap.jp 法務ページ共通の型（プライバシーポリシー・利用規約・特商法・情報セキュリティ方針の日英9ページ）
   クラス名は lg- で始め、各ページのヘッダー用CSS（Tailwind等）とぶつからないようにしている */
.lg {
  --lg-ink: #111827; --lg-body: #374151; --lg-muted: #6b7280; --lg-line: #e5e7eb;
  --lg-accent: #059669; --lg-accent-dark: #065f46; --lg-soft: #f3f7f5;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--lg-body); background: #fff;
  font-size: 15.5px; line-height: 1.85; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
.lg-wrap { max-width: 760px; margin: 0 auto; padding: 64px 20px 72px; }
.lg-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--lg-accent); text-transform: uppercase; margin: 0 0 10px; }
.lg h1 { font-size: 28px; line-height: 1.5; font-weight: 700; color: var(--lg-ink); margin: 0 0 28px; letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; }
.lg-lead { margin: 0 0 8px; }
.lg h2 { font-size: 18.5px; line-height: 1.6; font-weight: 700; color: var(--lg-ink); margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--lg-line); word-break: auto-phrase; }
.lg h3 { font-size: 16px; font-weight: 700; color: var(--lg-ink); margin: 24px 0 8px; }
.lg p { margin: 0 0 12px; }
.lg a { color: var(--lg-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.lg a:hover { color: var(--lg-accent); }
.lg strong { color: var(--lg-ink); }

/* 項：1. 2. 3. ／ 号：(1) (2) (3) ／ 点：・ */
.lg ol.lg-items, .lg ol.lg-go, .lg ul.lg-dots { margin: 0 0 12px; padding: 0; list-style: none; }
.lg ol.lg-items { counter-reset: lg-item; }
.lg ol.lg-items > li { counter-increment: lg-item; position: relative; padding-left: 1.9em; margin: 0 0 8px; }
.lg ol.lg-items > li::before { content: counter(lg-item) "."; position: absolute; left: 0; font-weight: 700; color: var(--lg-ink); font-variant-numeric: tabular-nums; }
.lg ol.lg-go { counter-reset: lg-go; }
.lg ol.lg-go > li { counter-increment: lg-go; position: relative; padding-left: 2.4em; margin: 0 0 6px; }
.lg ol.lg-go > li::before { content: "(" counter(lg-go) ")"; position: absolute; left: 0; color: var(--lg-ink); font-variant-numeric: tabular-nums; }
.lg ul.lg-dots > li { position: relative; padding-left: 1.2em; margin: 0 0 6px; }
.lg ul.lg-dots > li::before { content: "・"; position: absolute; left: 0; }
.lg ol.lg-items ol.lg-go { margin-top: 6px; }

/* 特商法などの表：PCは2列、スマホは項目名を上・内容を下に積む */
.lg-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--lg-line); }
.lg-table tr:first-child th, .lg-table tr:first-child td { border-top: 1px solid var(--lg-line); }
.lg-table th { width: 30%; background: var(--lg-soft); color: var(--lg-ink); font-weight: 700; }

/* 問い合わせ先の囲み */
.lg-box { background: var(--lg-soft); border-radius: 8px; padding: 16px 20px; margin: 8px 0 16px; }
.lg-box p:last-child { margin-bottom: 0; }

/* 日付：制定日・最終改定日 */
.lg-dates { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--lg-line); font-size: 13.5px; color: var(--lg-muted); }
.lg-dates p { margin: 0; }

/* 法務ページ共通のフッター */
.lg-foot { border-top: 1px solid var(--lg-line); background: #fafbfa; }
.lg-foot-inner { max-width: 760px; margin: 0 auto; padding: 28px 20px 36px; font-size: 13px; color: var(--lg-muted); }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 14px; }
.lg-foot a { color: var(--lg-body); text-decoration: none; }
.lg-foot a:hover { color: var(--lg-accent); text-decoration: underline; }
.lg-foot a[aria-current="page"] { color: var(--lg-ink); font-weight: 700; }
.lg-foot small { font-size: 12px; }

@media (max-width: 640px) {
  .lg { font-size: 15px; }
  .lg-wrap { padding: 40px 16px 56px; }
  .lg h1 { font-size: 23px; margin-bottom: 22px; }
  .lg h2 { font-size: 17px; margin-top: 36px; padding-top: 24px; }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table th, .lg-table td { display: block; width: 100%; }
  .lg-table tr { border-bottom: 1px solid var(--lg-line); }
  .lg-table tr:first-child { border-top: 1px solid var(--lg-line); }
  .lg-table th, .lg-table td, .lg-table tr:first-child th, .lg-table tr:first-child td { border: 0; }
  .lg-table th { padding: 10px 12px 4px; background: none; font-size: 13px; color: var(--lg-muted); }
  .lg-table td { padding: 0 12px 12px; }
}

/* 補足・戻るリンク・署名・英語ページ */
.lg-note { display: block; margin-top: 4px; font-size: 13.5px; color: var(--lg-muted); }
.lg-sub { margin: -16px 0 24px; font-size: 14px; color: var(--lg-muted); }
.lg-sign { margin: 24px 0 0; text-align: right; color: var(--lg-ink); }
.lg-back { margin: 40px 0 0; font-size: 14px; }
.lg-back a { text-decoration: none; font-weight: 700; }
.lg-back a:hover { text-decoration: underline; }
html[lang="en"] .lg { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; }
