/* SUNARU 法務ページ共通スタイル（配色トークンは index.html と同値） */
:root {
  --base-bg: #F0F0EE;
  --surface: #FFFFFF;
  --base-text: #2C2C2A;
  --base-muted: #5F5E5A;
  --yohaku: #854F0B;
  --accent: #0C447C;
  --accent-hover: #09365F;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  background: var(--base-bg);
  color: var(--base-text);
  line-height: 1.8;
  /* タップ後のダブルタップズーム待ち（約300ms）をなくす */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(12, 68, 124, 0.12);
}
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* キーボード操作時のフォーカス可視化（クリック時には出さない） */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 本文へのスキップリンク：フォーカス時だけ画面上端に現れる */
.skip-link {
  position: fixed; top: 0; left: 50%; z-index: 100;
  transform: translate(-50%, -120%);
  background: var(--surface); color: var(--accent);
  padding: 12px 24px; border-radius: 0 0 12px 12px;
  text-decoration: none; font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

header.page { padding: 48px 0 8px; }
/* ブランド表記はトップと同じロゴ画像を使い、回遊しても表情が変わらないようにする */
header.page .brand a { display: inline-block; line-height: 0; }
header.page .brand img { width: 96px; height: auto; display: block; }
main { padding: 24px 0 64px; scroll-margin-top: 16px; }
article {
  background: var(--surface); border-radius: 16px;
  border: 1px solid rgba(95, 94, 90, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 36px 32px;
}
article h1 {
  font-size: 24px; font-weight: 700; letter-spacing: 0.04em;
  line-height: 1.45; margin-bottom: 8px; text-wrap: balance;
}
article .updated { font-size: 13px; color: var(--base-muted); margin-bottom: 28px; }
/* 条文見出し。ウェイトの系統は他ページの見出しと揃えるが、
   読み物なので字間は広げない（0.14em は可読性を落とす） */
article h2 {
  font-size: 17px; font-weight: 600; letter-spacing: 0.04em;
  line-height: 1.5; margin: 32px 0 12px; padding-left: 12px;
  border-left: 6px solid var(--accent);
  text-wrap: balance;
}
article h3 {
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  line-height: 1.6; margin: 20px 0 8px; text-wrap: balance;
}
article p { font-size: 14.5px; margin-bottom: 12px; }
article ul, article ol { font-size: 14.5px; padding-left: 24px; margin-bottom: 12px; }
article li { margin-bottom: 4px; }
/* 本文リンクはブランド配色に揃える（既定の青のままにしない） */
article a { color: var(--accent); text-decoration: underline; transition: color 0.15s ease; }
article a:hover { color: var(--accent-hover); }
/* 長いメールアドレス・URL がカード幅を超えても折り返す */
article li, article p { overflow-wrap: break-word; }

/* 表は自身の中で横スクロールさせ、ページ全体を横に伸ばさない */
.table-scroll { overflow-x: auto; margin-bottom: 12px; }
article table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  /* 各列が潰れて縦積みの文字にならない下限 */
  min-width: 480px;
}
article th, article td {
  border: 1px solid rgba(95, 94, 90, 0.25); padding: 8px 10px; text-align: left;
  vertical-align: top;
}
/* 背景を敷くのは列見出しのみ。行見出し（scope="row"）は本文の一部として扱う */
article thead th { background: rgba(95, 94, 90, 0.06); font-weight: 600; }
article tbody th { font-weight: 600; }
article strong { font-weight: 700; }
.notice {
  background: rgba(133, 79, 11, 0.06); border: 1px dashed rgba(133, 79, 11, 0.5);
  border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-bottom: 12px;
}
footer {
  background: var(--surface); border-top: 1px solid rgba(95, 94, 90, 0.15);
  padding: 32px 0; text-align: center; font-size: 13px; color: var(--base-muted);
}
footer a { color: var(--accent); text-decoration: none; margin: 0 10px; transition: color 0.15s ease; }
footer a:hover { color: var(--accent-hover); text-decoration: underline; }
/* 狭い画面でリンクが折り返したときに行が詰まらないように */
footer nav { line-height: 2.2; }
footer .copyright { margin-top: 16px; font-size: 12px; }

/* アニメーションを控える設定の利用者には動きを出さない */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
