body {
  font-family: "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;
  background: #fff;
  color: #333;
}

.container {
  width: 820px;
  margin: 30px auto;
  border: 1px solid #222;
  padding: 0;
  background: #fff;
}

.container h2 {
  margin: 0;
  padding: 20px 10px;
  text-align: center;
  color: #1f34c7;
  font-size: 30px;
  font-weight: 600;
  border-bottom: 1px solid #222;
}

.main {
  display: flex;
  min-height: 460px;
}

.left,
.right {
  width: 50%;
  box-sizing: border-box;
  padding: 24px 28px;
}

.left {
  border-right: 1px solid #222;
}

.right h3 {
  text-align: center;
  color: #c33;
  font-size: 20px;
  font-weight: normal;
  margin: 0 0 20px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.block {
  margin-bottom: 38px;
}

.date {
  color: #d44;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: 96px 90px 120px;
  column-gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.7;
}

.label {
  text-align: left;
  white-space: nowrap;
}

.value {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.diff-wrap {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 6px;
  align-items: baseline;
  white-space: nowrap;
}

.diff-label {
  text-align: left;
}

.diff-value {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.messages {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 10px;
}

.msg {
  margin-bottom: 28px;
}

.msg-date {
  color: #2d6fd2;
  font-size: 18px;
  margin-bottom: 8px;
}

.msg-text {
  font-size: 16px;
  line-height: 1.7;
  word-break: break-word;
}

.new {
  color: red;
  font-weight: bold;
}

.back-wrap {
  text-align: center;
  padding: 24px 0 28px;
}

button {
  padding: 8px 18px;
  font-size: 16px;
  cursor: pointer;
}

.admin-container {
  width: 900px;
  margin: 30px auto;
  padding: 20px;
  box-sizing: border-box;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-row {
  margin-bottom: 16px;
}

.two-col-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.two-col-row .col-item {
  flex: 1;
}

.form-date-row {
  max-width: 260px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  font-size: 15px;
}

.note-box {
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 14px;
}

.message-edit-box {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 14px;
  margin-bottom: 8px;
}

.button-row {
  margin-top: 10px;
}

.delete-form {
  margin-bottom: 16px;
}

.delete-btn {
  background: #fff;
  border: 1px solid #999;
}

.error {
  color: red;
  font-weight: bold;
}