/* futari-log.app の公開ページ（トップとプライバシーポリシー）で共通の見た目。
   外部のフォント・スクリプトは読み込まない（閲覧者の情報を第三者に渡さないため）。 */
:root {
  --paper: #f7f5f2;
  --surface: #ffffff;
  --ink: #23201d;
  --muted: #6b645c;
  --line: #e2ddd6;
  --accent: #b4553a;
  --accent-soft: #f6e7e1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #171513;
    --surface: #201d1a;
    --ink: #ece7e1;
    --muted: #a59d93;
    --line: #36312c;
    --accent: #e48a6f;
    --accent-soft: #3a2620;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #171513;
  --surface: #201d1a;
  --ink: #ece7e1;
  --muted: #a59d93;
  --line: #36312c;
  --accent: #e48a6f;
  --accent-soft: #3a2620;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'BIZ UDPGothic', 'Yu Gothic UI',
    'Yu Gothic', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 16px 4rem;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.brand {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 1.6rem;
}
h1 {
  font-size: 1.6rem;
  line-height: 1.45;
  margin: 0 0 0.6rem;
}
.lead {
  color: var(--muted);
  margin: 0 0 1rem;
}
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
h2 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
p {
  margin: 0 0 0.9rem;
}
ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}
li {
  margin-bottom: 0.45rem;
}

/* 表。狭い画面では1行ずつのカードにする（横にスクロールさせない） */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  background: var(--surface);
}
th,
td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
th {
  background: var(--accent-soft);
  font-weight: 700;
}
/* 「いつ集めるか」の列は短いので、広い画面では折り返さない */
@media (min-width: 561px) {
  table.collect th:nth-child(2),
  table.collect td:nth-child(2) {
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  table {
    background: none;
  }
  tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.7rem;
  }
  td {
    border: 0;
    padding: 0.15rem 0;
  }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
  }
  td:first-child {
    font-weight: 700;
  }
  td:first-child::before {
    display: none;
  }
}

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}
.contact dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
}
.contact dt {
  color: var(--muted);
  font-weight: 700;
}
.contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

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