/* galleria：白地に黒の文字。線と余白だけで区切る（2026-10-30、依頼） */
:root {
  --ink: #000;
  --paper: #fff;
  --sub: #777;
  --rule: #e6e6e6;
  --mark: 1.6em; /* 記号の列の幅。記号はすべてこの幅に収める */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

.top, main { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; justify-content: space-between; align-items: baseline; padding-top: 28px; padding-bottom: 28px; }
.logo { font-weight: 600; letter-spacing: 0.02em; }
.me { font-size: 14px; color: var(--sub); display: flex; gap: 14px; }
.me { align-items: center; }
.me button:hover { color: var(--ink); }

/* 名前の代わりのアイコン。画像のない人は線の丸にする */
.who { display: inline-flex; vertical-align: -3px; }
.who:hover { text-decoration: none; }
.face { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; display: inline-block; background: #f2f2f2; }
.face.empty { background: none; box-shadow: inset 0 0 0 1px #bbb; }
.face.large { width: 28px; height: 28px; }
.person { display: flex; align-items: center; gap: 10px; }

h1 { font-size: 22px; font-weight: 600; margin: 0 0 28px; line-height: 1.5; overflow-wrap: anywhere; }

/* 書く欄。枠は下の線だけにする */
.field { display: grid; grid-template-columns: var(--mark) minmax(0, 1fr); align-items: baseline; border-bottom: 1px solid var(--ink); }
.field input { border: 0; outline: 0; padding: 8px 0; background: transparent; min-width: 0; }
.field input::placeholder { color: #bbb; }
.field .mark { text-align: center; }
.note { font-size: 14px; color: var(--sub); margin: 10px 0 0; }
.note button { text-decoration: underline; text-underline-offset: 3px; }
.error { font-size: 14px; color: #b00; margin: 8px 0 0; }

/* お題の一覧 */
.topics { list-style: none; margin: 32px 0; padding: 0; }
.topics li { border-bottom: 1px solid var(--rule); }
.topics a { display: block; padding: 10px 0; overflow-wrap: anywhere; }
.topics .new { color: var(--sub); }

/* 行。記号の列と本文の列の2つに分ける */
.lines { list-style: none; margin: 0; padding: 0; }
.claim { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: var(--mark) minmax(0, 1fr); align-items: baseline; }
.mark { text-align: center; font-variant-numeric: tabular-nums; }
.text { overflow-wrap: anywhere; }
.ask { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lens { width: 0.9em; height: 0.9em; vertical-align: -0.1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.from { font-size: 13px; color: var(--sub); margin: -18px 0 24px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.from span { display: inline-flex; align-items: center; gap: 4px; }
.meta { font-size: 13px; color: var(--sub); margin-left: 8px; white-space: nowrap; }
.meta button { color: var(--sub); margin-left: 8px; }
.meta button:hover, .meta a:hover { color: var(--ink); }
.replies { list-style: none; margin: 4px 0 0; padding: 0 0 0 var(--mark); }
.replies .row { padding: 2px 0; }

/* 返す欄。記号を6つ並べて1つ選ぶ */
.reply { margin: 6px 0 0 var(--mark); }
.kinds { display: flex; gap: 4px; }
.kinds button { width: var(--mark); text-align: center; color: #bbb; }
.kinds button[aria-pressed="true"] { color: var(--ink); }
.reply .field { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }

.compose { margin-top: 32px; }
.legend { font-size: 13px; color: var(--sub); margin: 48px 0; display: flex; gap: 18px; flex-wrap: wrap; }

/* 人のページ */
.history .row { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.history .topic { font-size: 13px; color: var(--sub); display: block; }
