/* こんだてぺろりの案内ページ。アプリの見た目（生成りの紙と丸ゴシック、紺の文字）に寄せる。
   書体は端末に入っているものだけを使う（外部の読み込みはしない）。 */
:root {
  color-scheme: light dark;
  --ground: #DCE3E1;
  --paper: #F5F3EA;
  --row: #FCFBF6;
  --text: #2B2E31;
  --text-sub: #565B60;
  --accent: #2A4B7C;
  --accent-pale: #DCE4EF;
  --on-accent: #FFFFFF;
  --line: #A7B5C9;
  --link: #2A4B7C;
  --round: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", ui-rounded, "Zen Maru Gothic", "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #15191B;
    --paper: #1E2326;
    --row: #262C30;
    --text: #EEECE4;
    --text-sub: #B9BEC2;
    --accent: #3E64A0;
    --accent-pale: #2B3A52;
    --line: #48535E;
    --link: #A9C3EC;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--round);
  font-size: 1rem;
  line-height: 1.85;
  line-break: strict;
}
.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

.site-header .wrap { padding-top: 0.875rem; padding-bottom: 0.25rem; }
.site-name {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  color: var(--accent); font-weight: 700; text-decoration: none; letter-spacing: 0.04em;
}
.site-name:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .site-name { color: var(--link); } }

.sheet {
  margin: 0.5rem auto 0; padding: 1.5rem 1rem 1.75rem;
  background: var(--paper);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
}
h1 { margin: 0; font-size: min(1.625rem, 7.4vw); line-height: 1.45; font-weight: 700; font-feature-settings: "palt"; }
h2 {
  margin: 2rem 0 0.75rem; padding-bottom: 0.25rem;
  font-size: 1.125rem; line-height: 1.5; font-weight: 700; color: var(--accent);
  border-bottom: 2px solid var(--accent);
  font-feature-settings: "palt";
}
@media (prefers-color-scheme: dark) { h2 { color: var(--link); border-color: var(--line); } }
h3 { margin: 1.5rem 0 0.375rem; font-size: 1rem; line-height: 1.6; font-weight: 700; font-feature-settings: "palt"; }
h1, h2, h3 { text-wrap: balance; }
.w { display: inline-block; }
h2, h3 { scroll-margin-top: 1rem; }

main { padding-bottom: 2.5rem; }
.meta { margin: 0.5rem 0 0; color: var(--text-sub); font-size: 0.9375rem; }
.lead { margin-top: 1rem; }

p { margin: 0 0 0.875rem; }
.sheet > :last-child { margin-bottom: 0; }

ul { margin: 0 0 0.875rem; padding: 0; list-style: none; }
li { position: relative; padding: 0.5rem 0 0.5rem 1.1rem; }
li + li { border-top: 1px dashed var(--line); }
li::before {
  content: ""; position: absolute; left: 0.1rem; top: 1.2em;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent);
}
@media (prefers-color-scheme: dark) { li::before { background: var(--link); } }

a { color: var(--link); text-underline-offset: 0.15em; overflow-wrap: anywhere; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }

mark.todo { background: #FFE58A; color: #2B2E31; padding: 0 0.15em; }

.history { margin: 1.5rem 0 0; color: var(--text-sub); font-size: 0.9375rem; }

.table-box { container-type: inline-size; margin: 0 0 0.875rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.75; }
th, td { padding: 0.625rem 0.75rem 0.625rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
td { padding-right: 0; }
thead th { color: var(--text-sub); font-weight: 700; }
tbody th { font-weight: 700; width: 9em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
@container (max-width: 34em) {
  table, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody th { width: auto; padding: 0; border: 0; }
  td { padding: 0; border: 0; color: var(--text-sub); }
  tr { padding: 0.625rem 0; }
  tbody tr + tr { border-top: 1px solid var(--line); }
  tbody tr:first-child { padding-top: 0; }
  tbody tr:last-child { padding-bottom: 0; }
}

.email {
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: 0.375rem 1rem;
  background: var(--accent); color: var(--on-accent);
  border-radius: 6px; font-weight: 700; text-decoration: none;
}
.email:hover { text-decoration: underline; }

.qa { padding: 0.875rem 1rem; background: var(--row); border-radius: 6px; }
.qa + .qa { margin-top: 0.625rem; }
.qa h3 { margin-top: 0; }
.qa p { margin-bottom: 0; }

.site-footer { padding-bottom: 1.5rem; font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer [aria-current] { color: var(--text-sub); text-decoration: none; }

.home .sheet { margin-top: 2.5rem; padding-top: 2.25rem; }
.home h1 { font-size: min(11vw, 2.75rem); letter-spacing: 0.04em; color: var(--accent); }
@media (prefers-color-scheme: dark) { .home h1 { color: var(--link); } }
.links { margin: 1.25rem 0 0; }
.links li { padding: 0; }
.links li::before { content: none; }
.links li + li { border-top: 1px solid var(--line); }
.links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem; padding: 0.625rem 0.25rem;
  color: var(--text); font-weight: 700; text-decoration: none;
}
.links a:hover { color: var(--link); }
.links a::after {
  content: ""; flex: none; width: 0.55em; height: 0.55em;
  border-top: 2px solid var(--text-sub); border-right: 2px solid var(--text-sub);
  transform: rotate(45deg);
}
