:root {
  --bg: #dae0e6;
  --surface: #ffffff;
  --surface-soft: #f6f7f8;
  --border: #cccfd4;
  --text: #1a1a1b;
  --muted: #6b6f76;
  --link: #0079d3;
  --link-hover: #004d87;
  --accent: #ff4500;
  --green: #2e7d32;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--green);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

.page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 14px 32px;
}

.board-banner,
.summary-bar,
.thread-item,
.thread-detail-card,
.response {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.board-banner {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.board-path,
.page-lead,
.summary-bar,
.thread-card-meta,
.thread-item-summary,
.thread-summary,
.site-footer,
.generated-note,
.response-head {
  color: var(--muted);
}

.board-path,
.page-lead,
.summary-bar,
.thread-card-meta,
.thread-item-summary,
.thread-summary,
.site-footer,
.generated-note,
.response-head,
.response-body {
  margin: 0;
}

.page-title,
.thread-title {
  margin: 0;
}

.page-title {
  font-size: 2rem;
  line-height: 1.2;
}

.thread-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-top: 6px;
}

.content,
.thread-list,
.responses {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-bar {
  padding: 12px 14px;
}

.thread-item-body,
.thread-detail-body,
.response-body-wrap,
.thread-item {
  padding: 14px 16px;
}

.thread-item-title {
  margin: 4px 0 6px;
  font-size: 1.14rem;
  line-height: 1.4;
}

.thread-nav {
  display: flex;
  gap: 14px;
  padding: 0 4px;
  font-size: 0.94rem;
}

.response-head {
  font-size: 0.92rem;
  word-break: break-word;
}

.response-no {
  color: var(--accent);
  font-weight: 700;
}

.response-name {
  color: var(--green);
  font-weight: 700;
}

.response-body {
  margin-top: 8px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.site-footer {
  margin-top: 18px;
  padding: 0 4px;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
}

@media (max-width: 640px) {
  html {
    font-size: 13px;
  }

  .page-shell {
    padding: 12px 10px 24px;
  }

  .brand-logo {
    width: min(100%, 220px);
  }

  .board-banner,
  .summary-bar,
  .thread-item,
  .thread-detail-card,
  .response {
    border-radius: 12px;
  }

  .page-title {
    font-size: 1.55rem;
  }

  .thread-title {
    font-size: 1.3rem;
  }
}
