/* Monolo 法務ページ共通スタイル
   privacy.html / terms.html / tokushoho.html / support.html の4枚で共有する。 */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e3e3e3;
  --accent: #2563eb;
  --fill-bg: #fff4d6;
  --fill-fg: #7a5200;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #e8e8e8;
    --muted: #a0a0a0;
    --line: #2e2e2e;
    --accent: #7aa2f7;
    --fill-bg: #4a3a10;
    --fill-fg: #ffdf9e;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  word-break: break-word;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
}

/* ヘッダー */

header.site {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

header.site .brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
}

header.site nav {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 2;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1rem;
  white-space: nowrap;
}

header.site nav a:hover,
header.site nav a[aria-current="page"] {
  color: var(--accent);
}

/* 言語切り替え。他のナビ項目と役割が違うので枠で区別する */

a.lang {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.7rem;
  line-height: 1.7;
  color: var(--accent);
}

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

/* 正本条項など、本文の前に置く注意書き */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 0.9rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* トップページの言語別リンク集 */

.doclist {
  list-style: none;
  padding-left: 0;
}

.doclist li {
  margin-bottom: 0.6rem;
}

.doclist a {
  font-size: 1.05rem;
}

/* 見出し・本文 */

h1 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

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

.updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.lead {
  color: var(--muted);
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* 記入待ちのプレースホルダ */

.fill {
  background: var(--fill-bg);
  color: var(--fill-fg);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  font-weight: 600;
}

/* 表 — 幅の狭い画面では表だけを横スクロールさせる */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.92rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

th {
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  font-weight: 600;
  white-space: nowrap;
}

/* 特商法の表は縦2列。ラベル列を固定幅に寄せる */

table.kv th {
  width: 12rem;
}

/* FAQ */

.faq h3 {
  margin-top: 2rem;
}

.faq h3::before {
  content: "Q. ";
  color: var(--accent);
}

/* フッター */

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site a {
  color: var(--muted);
  margin-right: 1rem;
  white-space: nowrap;
}
