/* ROUND TABLE — モノトーン。黒ははっきり、文字は美しく（PINK CITY のギラギラは持ち込まない） */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --mute: #8c8c8c;
  --line: #0a0a0a;
  --soft: #e6e6e6;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 28px) 20px calc(env(safe-area-inset-bottom) + 48px);
}

/* ---- 見出し ---- */
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}
.logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.logo em { font-style: italic; }
.date {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.06em;
}

.label {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.32em;
}

/* ---- 質問 ---- */
.ask { padding: 28px 0 22px; }
.ask-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ask-head .text-btn { padding: 8px 0 8px 16px; }
textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  caret-color: var(--ink);
}
textarea::placeholder { color: #b5b5b5; }
.hint {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mute);
  letter-spacing: 0.06em;
}

/* ---- 席 ---- */
.seats { border-top: 1px solid var(--line); }
.seat {
  display: grid;
  grid-template-columns: 40px 1fr auto 28px;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}
.seat .no { font-family: var(--serif); font-size: 15px; color: var(--mute); }
.seat .name { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.01em; }
.seat .how { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--mute); }
.seat .mark {
  justify-self: end;
  width: 14px; height: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.seat:active { background: var(--ink); color: var(--paper); }
.seat:active .no, .seat:active .how { color: #bdbdbd; }
.seat:active .mark { border-color: var(--paper); }
.seat.done .mark { background: var(--ink); }
.seat.done .how::after { content: " ・ 聞いた"; color: var(--ink); font-weight: 700; }
.seat.done:active .mark { background: var(--paper); }
.seat.done:active .how::after { color: var(--paper); }

/* ---- 記録 ---- */
.log { margin-top: 64px; }
.log-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}
.count { font-family: var(--serif); font-size: 22px; }
.entries { list-style: none; }
.entry { border-bottom: 1px solid var(--soft); }
.entry-main {
  display: block;
  width: 100%;
  text-align: left;
  padding: 20px 0 18px;
  -webkit-tap-highlight-color: transparent;
}
.entry time { font-family: var(--serif); font-size: 14px; letter-spacing: 0.06em; color: var(--mute); }
.entry-text {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry.open .entry-text { -webkit-line-clamp: unset; display: block; }
.entry-seats { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.entry-seats span { font-family: var(--serif); font-size: 15px; color: #c4c4c4; }
.entry-seats span.on { color: var(--ink); }
.entry-actions { display: none; gap: 8px; padding-bottom: 18px; }
.entry.open .entry-actions { display: flex; }
.entry-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.entry-actions button:active { background: var(--ink); color: var(--paper); }
.entry-actions .danger { margin-left: auto; border-color: var(--soft); color: var(--mute); }

.empty { padding: 28px 0; font-size: 14px; color: var(--mute); letter-spacing: 0.08em; }

.backup { display: flex; gap: 20px; margin-top: 36px; }
.text-btn {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 8px 0;
}

/* ---- 知らせ ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 28px);
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 380px) {
  .logo { font-size: 44px; }
  .seat .name { font-size: 30px; }
}
