/* turiroku public site — shared stylesheet (no external fonts, no JS) */

:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #1c2530;
  --muted: #5b6876;
  --border: #dde3ea;
  --accent: #0f6a8b;
  --accent-soft: #e4f1f6;
  --notice-bg: #fdecea;
  --notice-text: #8a1c12;
  --radius: 12px;
  --max: 720px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --surface: #171e26;
    --text: #e6ebf0;
    --muted: #9aa7b4;
    --border: #2a3440;
    --accent: #5cc0e0;
    --accent-soft: #15303b;
    --notice-bg: #3a1a17;
    --notice-text: #f4b4ab;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}


.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  text-decoration: none;
  padding: 4px 0;
  display: inline-block;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.4;
  margin: 8px 0 8px;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 28px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 6px;
}

.lead {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.hero {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 8px;
}

.hero h1 {
  margin-top: 0;
}

.hero > :last-child {
  margin-bottom: 0;
}

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.link-list li:last-child {
  border-bottom: 0;
}

.contact {
  font-size: 1.05rem;
  font-weight: 600;
}

.caution {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

.caution > :last-child {
  margin-bottom: 0;
}


.status {
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.6em;
}

.toc li + li {
  margin-top: 2px;
}

.table-wrap {
  margin: 0 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.65;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--accent-soft);
  font-weight: 700;
}

tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.site-footer li + li {
  margin-top: 0;
}

@media (max-width: 640px) {
  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  table {
    border: 0;
    background: transparent;
  }

  tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
  }

  tbody th {
    background: var(--accent-soft);
    white-space: normal;
  }

  tbody td {
    border-bottom: 1px solid var(--border);
  }

  tbody td:last-child {
    border-bottom: 0;
  }

  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 20px 16px;
  }
}
