/* Kaeru 規約・ポリシー3文書の共通スタイル。LP（index.html）のデザイントークンに揃える。 */
:root {
  --green: #279a5b;
  --green-dark: #1b7a46;
  --ink: #16241c;
  --orange: #ff7a4d;
  --surface: #f5f5f4;
  --paper: #ffffff;
  --muted: #5b6b62;
  --line: #e6e9e6;
  --radius: 18px;
  --maxw: 820px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--green-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
svg {
  display: block;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}
.logo .mark {
  width: 32px;
  height: 30px;
  flex: none;
}
.logo .word {
  font-family: "Avenir Next", "Futura", "Century Gothic", "Noto Sans JP",
    system-ui, sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo .word .dot {
  color: var(--orange);
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav .back {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.nav .back:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Document ---------- */
main {
  padding: 48px 0 72px;
}
.doc-head {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.doc-head h1 {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0;
}
.doc-head .enacted {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* 規約間の相互リンク */
.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.doc-tabs a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.doc-tabs a:hover {
  color: var(--green-dark);
  border-color: var(--green);
  text-decoration: none;
}
.doc-tabs a[aria-current="page"] {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.doc {
  font-size: 15.5px;
}
.doc > p {
  margin: 0 0 18px;
}
.doc .lead {
  color: var(--muted);
  font-size: 16px;
}
.doc h2 {
  font-size: 19px;
  line-height: 1.5;
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--green);
}
.doc h2:first-of-type {
  margin-top: 8px;
}
.doc ol,
.doc ul {
  margin: 0 0 18px;
  padding-left: 1.5em;
}
.doc li {
  margin-bottom: 8px;
}
.doc li::marker {
  color: var(--muted);
}
.doc strong {
  font-weight: 700;
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.doc .contact {
  list-style: none;
  padding: 16px 20px;
  margin: 0 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.doc .contact li {
  margin: 0;
}

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 460px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.doc th:last-child,
.doc td:last-child {
  border-right: 0;
}
.doc tr:last-child th,
.doc tr:last-child td {
  border-bottom: 0;
}
.doc thead th {
  background: var(--surface);
  font-weight: 700;
  white-space: nowrap;
}
/* header-column の表（特商法）は1列目を見出し扱い */
.doc table.keyed th[scope="row"] {
  background: var(--surface);
  font-weight: 700;
  width: 30%;
  min-width: 140px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}
.foot-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.foot-brand {
  flex: 1 1 220px;
}
.foot-blurb {
  max-width: 26em;
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}
.foot-col h4 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}
.foot-col a:hover {
  color: var(--green-dark);
}
.foot-bottom {
  max-width: var(--maxw);
  margin: 44px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .doc-head h1 {
    font-size: 25px;
  }
  main {
    padding: 32px 0 56px;
  }
}
