/* はじめ不動産 プライバシーポリシー（/privacy/ 専用）
   色・書体はトップLP（/style.css）のデザイントークンに合わせる */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #E3F2FD;
  --accent: #FF8A00;
  --accent-light: #FFF3E0;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #ffffff;
  --bg-light: #F8FAFB;
  --bg-dark: #0D1B2A;
  --border: #E8ECF0;
  --radius: 16px;
  --radius-sm: 8px;
  --font-main: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", YuGothic, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 10px; top: -80px; background: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { top: 10px; }

/* Header */
.pp-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
}
.pp-header-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pp-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.pp-brand-logo { height: 34px; width: auto; display: block; }
.pp-brand .logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--primary); color: #fff; font-size: 20px; font-weight: 800;
}
.pp-header-link { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Layout */
.pp-main { max-width: 960px; margin: 0 auto; padding: 24px 20px 64px; }
.pp-breadcrumb { font-size: 13px; color: var(--text-light); margin: 0 0 16px; }
.pp-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pp-breadcrumb li + li::before { content: "›"; margin: 0 6px 0 2px; color: #999; }

.pp-title { font-size: clamp(26px, 4vw, 34px); line-height: 1.4; margin: 0 0 12px; }
.pp-lead { color: var(--text-light); margin: 0 0 24px; }

.pp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 0 0 20px;
}
.pp-card h2 {
  font-size: 20px; line-height: 1.5; margin: 0 0 16px; padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.pp-card h3 { font-size: 16px; margin: 20px 0 8px; }
.pp-card p { margin: 0 0 12px; }
.pp-card ul, .pp-card ol { margin: 0 0 12px; padding-left: 1.4em; }
.pp-card li { margin: 4px 0; }
.pp-card > :last-child { margin-bottom: 0; }

.pp-toc ol { columns: 2; column-gap: 32px; padding-left: 1.6em; margin: 0; }
.pp-toc li { break-inside: avoid; }

.pp-note { font-size: 14px; color: var(--text-light); }

/* Tables */
.pp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.pp-table th, .pp-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.pp-table tr:last-child th, .pp-table tr:last-child td { border-bottom: 0; }
.pp-table thead th { background: var(--primary-light); white-space: nowrap; font-size: 13px; }
.pp-table tbody th { background: var(--bg-light); font-weight: 600; min-width: 8em; }
.pp-table.is-wide { min-width: 640px; }

/* Draft placeholder (公開前に確認・記入) */
.todo {
  display: inline;
  background: var(--accent-light);
  color: #8a4b00;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
  font-weight: 600;
}

.pp-dates { text-align: right; color: var(--text-light); font-size: 14px; }

/* Footer */
.pp-footer { background: var(--bg-dark); color: rgba(255,255,255,0.85); font-size: 13px; }
.pp-footer-inner { max-width: 960px; margin: 0 auto; padding: 32px 20px 40px; }
.pp-footer a { color: #fff; }
.pp-footer p { margin: 0 0 8px; }
.pp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }

@media (max-width: 640px) {
  .pp-main { padding: 16px 14px 48px; }
  .pp-card { padding: 22px 18px; border-radius: 12px; }
  .pp-card h2 { font-size: 18px; }
  .pp-toc ol { columns: 1; }
  .pp-brand { font-size: 16px; }
  .pp-brand-logo { height: 29px; }
  .pp-brand .logo-mark { width: 32px; height: 32px; font-size: 18px; }
  .pp-header-link { font-size: 13px; }
  .pp-table th, .pp-table td { padding: 10px 12px; }
  .pp-table.is-stack { min-width: 0; }
  .pp-table.is-stack tbody th, .pp-table.is-stack tbody td { display: block; border-bottom: 0; }
  .pp-table.is-stack tbody tr { display: block; border-bottom: 1px solid var(--border); }
  .pp-table.is-stack tbody tr:last-child { border-bottom: 0; }
  .pp-table.is-stack tbody th { padding-bottom: 2px; background: transparent; color: var(--text-light); font-size: 12px; }
  .pp-table.is-stack tbody td { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .pp-header { position: static; }
  .todo { border-style: solid; }
}
