body {
font-family: -apple-system, BlinkMacSystemFont, “Hiragino Sans”, “Yu Gothic”, sans-serif;
line-height: 1.4;  /* デフォルト行間 1.6〜1.8 程度 */
color: #222;
background: #f7f8fb;
/* background: #f3f4f6; */
margin: 0;
padding: 0;
}

/* この部分はレイアウト設定 中央に寄せるための設定 */
.container {
max-width: 900px;      /* ←ここで横幅制限 */
margin: 32px auto;     /* ←中央寄せ */
background: #ffffff; 
padding: 32px;         /* ←内側余白 */
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

p {
  margin: 3px 0;
}

h1 {
font-size: 28px;
margin-top: 10px;
margin-bottom: 2px;
}

h2 {
font-size: 22px;
margin-top: 12px;
margin-bottom: 12px;
border-bottom: 2px solid #e5e7eb;
}

h3 {
font-size: 18px;
margin: 12px 0 6px;
margin-top: 6px;
margin-bottom: 4px;
}

h4 {
font-size: 18px;
/* margin: 12px 0 6px; */
margin-top: 2px;
margin-bottom: 2px;
}

textarea {
/* width: 90%; */
height: 120px;
/* min-height: 200px; */
padding: 10px 20px;
font-size: 15px;
border: 1px solid #cfd6df;
border-radius: 8px;
margin-bottom: 2px;
}

button {
background: #2563eb;
color: white;
border: none;
border-radius: 8px;
padding: 10px 18px;
}

button:hover {
background: #1d4ed8;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 30px; /* ボタンとリンクの横の間隔 */
  margin-top: 2px;
  margin-bottom: 8px;
}

.notice {
background: #fff7e6;
border: 1px solid #f3d19c;
padding: 12px;
margin: 20px 0;
border-radius: 8px;
}

.guide {
background: #f3f6fb;
border: 1px solid #d7e2f0;
padding: 12px;
margin: 20px 0;
border-radius: 8px;
}

/* ===== カード表示 ===== */
.result-block {
background: #f9fafb;
border: 1px solid #e5e7eb;
/* padding: 12px; */
padding: 4px 10px;
margin-top: 0;
margin-bottom: 0;
/* margin: 12px 0; */
border-radius: 8px;
line-height: 1.2;
}

.result-block p {
margin: 3px;
}

/*
.result-block:first-of-type {
  border-left: 4px solid #1d4ed8;
}
*/

.comment-box {
background: #eef6ff;
border: 1px solid #bfd8ff;
/* padding: 12px; */
padding: 4px 10px;
/* margin-top: 20px; */
margin-top: 0;
margin-bottom: 0;
border-radius: 8px;
line-height: 1.2; 
}

/* ===== 差分ハイライト ===== */
.diff-delete {
  background: #fee2e2;
  color: #b91c1c;
  padding: 1px 3px;
  border-radius: 4px;
}

.diff-insert {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 1px 3px;
  border-radius: 4px;
}

.diff-delete,
.diff-insert {
  display: inline-block;
  margin: 2px 0;
/*  line-height: 1.8; */
  line-height: 1.2;
}

/* テキスト差分のフォントサイズ */
/* font-size: 16px; 通常 */
/* font-size: 14px; 少し小さい（おすすめ） */
/* font-size: 13px; かなり詰める */
/* font-size: 12px; 限界（読みにくい） */
.diff-block {
  font-size: 13px;   /* ←ここを調整 */
/*  line-height: 1.8; */
line-height: 1.2;
}

/* 解析結果（Before，After）の横並び表示 */
/*
.admin-compare-row {
display: flex;
gap: 20px;
align-items: flex-start;
}

.admin-compare-col {
flex: 1;
min-width: 0;
flex: 0 0 50%;
}
*/
.admin-compare-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 12px;
}

.admin-compare-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-compare-col h3 {
  margin-top: 6px;
  margin-bottom: 6px;
}

.admin-compare-col .result-block {
  margin-top: 0;
  margin-bottom: 0;
/*  padding: 6px 8px;
  margin: 2px 0; */
  gap: 0;
}

.admin-compare-col > .result-block,
.admin-compare-col > .comment-box {
/*  height: 100%; */
  box-sizing: border-box;
}


.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

/* ヘッダー */
.detail-table th {
  background: #f8fafc;
  font-weight: 600;
  border-bottom: 2px solid #9ca3af;  /* 少し強めの線 */
  padding: 8px 10px;
}

/* セル */
.detail-table td {
  border-bottom: 1px solid #e5e7eb;  /* 薄い横線 */
  padding: 8px 10px;
  text-align: center;
}

/* 列の区切り（縦線） */
.detail-table th:not(:last-child),
.detail-table td:not(:last-child) {
  border-right: 1px solid #e5e7eb;  /* 薄い縦線 */
}

/* 行ホバー（管理者モードなので便利） */
.detail-table tr:hover td {
  background: #f1f5f9;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin: 16px 0 20px;
}

.tab-button {
  background: #e5e7eb;
  color: #111827;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
}

.tab-button.active {
  background: #2563eb;
  color: white;
}

.tab-content {
  display: none;
  border: 2px solid red;
  padding: 8px 10px;
}

.tab-content.active {
  display: block;
}

.sentence-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: white;}

.compact-block {
  margin: 0 !important; 
  padding: 1px 8px !important;
  line-height: 1.2;
/*  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: white;
  border-bottom: 1px solid #e5e7eb !important; */
}

.compact-block:last-child {
  border-bottom: none !important;
}

.compact-block p {
  margin: 0 !important;
  line-height: 1.2;
}

.change-label {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.change-no_change {
  color: #4b5563;
  background: #f3f4f6;
}

.change-deepening {
  color: #1d4ed8;
  background: #dbeafe;
}

.change-expansion {
  color: #15803d;
  background: #dcfce7;
}

.change-reconstruction {
  color: #7c3aed;
  background: #ede9fe;
}

.section-guide {
  margin: 4px 0 10px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}

.primary-button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.primary-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.secondary-button {
  display: inline-block;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  background: #e5e7eb;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px;
}

.tab-button {
  background: #e5e7eb;
  color: #111827;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab-button:hover {
  background: #d1d5db;
}

.tab-button.active {
  background: #2563eb;
  color: white;
}

.log-container {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px;
  background: #fafafa;
}

.log-item {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
}

.log-line1 {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.log-line2 {
  font-size: 14px;
  color: #6b7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-result-line {
  color: #1d4ed8
}

.research-block {
  margin-top: 16px;
}

.research-block h3 {
  margin-bottom: 6px;
}

.research-block details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
}

.research-block summary {
  font-weight: 500;
  cursor: pointer;
}

.contact-block {
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.contact-block input,
.contact-block textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
}

details {
  margin-bottom: 8px;
}

details details {
  margin-top: 6px;
  margin-left: 10px;
}

details form {
  width: 100%;
}

details form input,
details form textarea {
  width: 700px;
  box-sizing: border-box;
}

.guide-link {
/*  font-size: 14px; */
  font-size: 13px;
/*  color: #2563eb; */
  color: #6b7280;
  text-decoration: underline;
}

.note-small {
  font-size: 13px;

}

.score-line {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  margin-left: 1em;
}

.result-container {
  max-width: 900px;
  margin: 32px auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.empty-box {
  padding: 40px;
  text-align: center;
  color: #888;
}

.guide-box {
  max-width: 900px;
  margin: 32px auto;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
}

