/* No.07専用CSS。スコープは .diary-08。
   部品の様式は No.06（diary-06.css）の様式を踏襲し、
   チャット再現・結果カード・言い回し比較の最小追加を足したもの。 */
.diary-08 {
  margin-top: 32px;
}

.diary-08 > .talk:first-child,
.diary-08 .ln p {
  margin-top: 0;
}

.diary-08 p mark,
.diary-08 li mark {
  background: #FDE68A;
  padding: 0 2px;
  border-radius: 3px;
}

.diary-08 blockquote {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.diary-08 blockquote p {
  margin: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 599px) {
  .diary-08 h2 {
    margin-top: 44px;
  }
}

/* 場面絵 */
.diary-08 figure.scene-img {
  margin: 24px 0 0;
}
.diary-08 figure.scene-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.diary-08 .cap {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* 用語注記 */
.diary-08 .term-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* 読者への問い */
.diary-08 .quizbox {
  margin-top: 22px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.diary-08 .quizbox .q-title {
  font-weight: 900;
  margin: 0 0 8px;
}
.diary-08 .quizbox ol {
  margin: 8px 0 0;
  padding-left: 1.4em;
}
.diary-08 .quizbox li {
  margin-top: 6px;
  line-height: 1.7;
}

/* チャット再現図 */
.diary-08 .chatfig {
  margin: 22px auto 0;
  max-width: 430px;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px 18px;
  background: #E9EDEE;
}
.diary-08 .chatfig .cf-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #44515A;
  text-align: center;
}
.diary-08 .chatfig .msg {
  max-width: 86%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.65;
  font-size: 15px;
  word-break: normal;
  overflow-wrap: anywhere;
}
.diary-08 .chatfig .msg .tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.diary-08 .chatfig .msg.invite {
  background: #fff;
  border: 1px solid #CBD4D9;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}
.diary-08 .chatfig .msg.invite .tag { color: #66727B; }
.diary-08 .chatfig .msg.reply {
  background: #D9F2D0;
  border: 1px solid #A9D69A;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.diary-08 .chatfig .msg.reply .tag { color: #3E7A33; }

/* 実験メモカード */
.diary-08 .card-ja {
  margin-top: 22px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--soft);
}
.diary-08 .card-ja .card-title {
  font-weight: 900;
  margin: 0 0 8px;
}
.diary-08 .card-ja p { margin-top: 8px; }
.diary-08 .card-ja p:first-of-type { margin-top: 0; }

/* 結果カード */
.diary-08 .big-results {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.diary-08 .big-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 12px 14px;
  background: #fff;
  text-align: center;
}
.diary-08 .big-card .bc-cond {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.5;
}
.diary-08 .big-card .bc-num {
  margin: 6px 0 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
}
.diary-08 .big-card .bc-label {
  margin: 2px 0 0;
  font-weight: 900;
}
.diary-08 .big-card .bc-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.diary-08 .big-card.bc-clear { border-color: #086D67; background: #EFFAF8; }
.diary-08 .big-card.bc-clear .bc-num { color: #086D67; }
.diary-08 .big-card.bc-warm { border-color: #D97706; background: #FEF6E7; }
.diary-08 .big-card.bc-warm .bc-num { color: #B45309; }
.diary-08 .big-card.bc-zero { border-color: var(--line); background: #F6F7F8; }
@media (max-width: 599px) {
  .diary-08 .big-results { grid-template-columns: 1fr; }
  .diary-08 .big-card .bc-num { font-size: 30px; }
}

/* 言い回し比較 */
.diary-08 .diffpair {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.diary-08 .diffpair .dp {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}
.diary-08 .diffpair .dp .dp-tag {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .05em;
}
.diary-08 .diffpair .dp.normal .dp-tag { color: #44515A; }
.diary-08 .diffpair .dp.soft { border-color: #D97706; background: #FFFBF2; }
.diary-08 .diffpair .dp.soft .dp-tag { color: #B45309; }
.diary-08 .diffpair .dp p { margin-top: 0; line-height: 1.75; }
.diary-08 .diffpair .dp mark {
  background: #FDE68A;
  padding: 0 2px;
  border-radius: 3px;
}
@media (max-width: 599px) {
  .diary-08 .diffpair { grid-template-columns: 1fr; }
}

/* 言えないこと */
.diary-08 .limits {
  margin-top: 22px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.diary-08 .limits .card-title { font-weight: 900; margin: 0 0 8px; }
.diary-08 .limits p { margin-top: 8px; }
.diary-08 .limits p:first-of-type { margin-top: 0; }

/* 持ち帰り（結論） */
.diary-08 .conclusion {
  margin-top: 34px;
  border: 3px solid #D97706;
  border-radius: 14px;
  padding: 20px 22px;
  background: #FEF6E7;
}
.diary-08 .conclusion h2 {
  margin-top: 0;
  color: #B45309;
  border-left-color: #D97706;
}
.diary-08 .conclusion-lead {
  font-size: 19px;
  line-height: 1.8;
  font-weight: 700;
}

/* 場面カード（final追加） */
.diary-08 .scenes {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.diary-08 .scene-card {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}
.diary-08 .scene-card .sc-tag {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--acText);
}
.diary-08 .scene-card .sc-who { margin: 0; line-height: 1.7; }
.diary-08 .scene-card .sc-line {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 599px) {
  .diary-08 .scenes { grid-template-columns: 1fr; }
}

/* 共通の本音 */
.diary-08 .intent-strip {
  margin-top: 12px;
  border: 2px solid #D97706;
  border-radius: 12px;
  padding: 12px 16px;
  background: #FFFBF2;
  text-align: center;
}
.diary-08 .intent-strip .is-title {
  margin: 0 0 4px;
  font-weight: 900;
  color: #B45309;
}
.diary-08 .intent-strip p { margin: 0; line-height: 1.7; }

/* 実験の流れ */
.diary-08 .flow { margin-top: 16px; }
.diary-08 .fl-step {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--soft);
}
.diary-08 .fl-step .fl-tag {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--acText);
}
.diary-08 .fl-step p { margin: 0; line-height: 1.7; }
.diary-08 .fl-arrow {
  text-align: center;
  color: var(--muted);
  font-weight: 900;
  line-height: 1.6;
}
.diary-08 .spec-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* 予想カード */
.diary-08 .pred-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.diary-08 .pred-card {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}
.diary-08 .pred-card .pc-head {
  margin: 0 0 6px;
  font-weight: 900;
}
.diary-08 .pred-card p { margin: 0; line-height: 1.75; }
@media (max-width: 599px) {
  .diary-08 .pred-cards { grid-template-columns: 1fr; }
}

/* 結果カード：4枚を2×2にし、母数を単位つきで見せる */
.diary-08 .big-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.diary-08 .big-card .bc-unit {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* 通知書の実物ペア（No.08追加） */
.diary-08 .doc-pair { margin-top: 18px; display: grid; gap: 16px; }
.diary-08 .doc-fig { margin: 0; }
.diary-08 .doc-fig .doc-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  font-weight: 900;
  font-size: 13.5px;
}
.diary-08 .doc-fig img {
  width: 100%;
  height: auto;
  border: 1.5px solid #d8d2c4;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(60, 50, 20, .08);
  background: #fff;
}

/* 字形の拡大図 */
.diary-08 .zoom-fig { margin: 20px 0 4px; }
.diary-08 .zoom-labels {
  display: flex;
  justify-content: space-between;
  margin: 0 2px 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--acText);
}
.diary-08 .zoom-fig img {
  width: 100%;
  height: auto;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* 25文字の結果チップ */
.diary-08 .chip-group { margin-top: 14px; }
.diary-08 .chip-group .cg-title { margin: 0 0 8px; font-weight: 900; }
.diary-08 .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.diary-08 .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 6px 8px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}
.diary-08 .chip.diff { border-color: #D97706; background: #FFFBF2; }
.diary-08 .chip.same { color: var(--muted); background: var(--soft); }

/* 抽出テキストと埋め込みフォントの照合 */
.diary-08 .font-ev {
  margin-top: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--soft);
}
.diary-08 .font-ev table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13.5px;
  line-height: 1.6;
}
.diary-08 .font-ev th,
.diary-08 .font-ev td {
  padding: 5px 0;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.diary-08 .font-ev th { width: 34%; padding-right: 10px; }
.diary-08 .font-ev tr + tr { border-top: 1px solid var(--line); }

/* ===== No.08 print (smartphone PDF) pagination ===== */
@media print {
  .diary-08 .doc-pair,
  .diary-08 .doc-fig,
  .diary-08 .zoom-fig,
  .diary-08 .scene-img,
  .diary-08 .chip-group,
  .diary-08 .font-ev,
  .diary-08 .talk { break-inside: avoid; }
  .diary-08 h2 { break-after: avoid; }
  .diary-08 p { margin-top: 10px; }
}

/* ===== No.08 revision_final components ===== */
.diary-08 .excerpt-pair { margin-top: 16px; display: grid; gap: 14px; }
.diary-08 .bignum {
  margin-top: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 16px; text-align: center;
}
.diary-08 .bignum .bn-num { margin: 0; line-height: 1; }
.diary-08 .bignum .bn-num b { font-size: 88px; font-weight: 900; color: #B45309; letter-spacing: -2px; }
.diary-08 .bignum .bn-num span { font-size: 21px; font-weight: 700; }
.diary-08 .bignum .bn-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 700; }
.diary-08 .grid25 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.diary-08 .grid25 .cell {
  font-size: 22px; font-weight: 700; text-align: center; padding: 8px 0;
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.diary-08 .grid25 .cell.diff { border-color: #D97706; background: #FFFBF2; }
.diary-08 .grid25 .cell.same { color: var(--muted); background: var(--soft); }
.diary-08 .grid25 .prediction-miss { position: relative; }
.diary-08 .grid25 .prediction-miss::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B45309;
}
.diary-08 .bignum .bn-cap { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; text-align: left; }
.diary-08 table.sumap { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; }
.diary-08 table.sumap th, .diary-08 table.sumap td { padding: 11px 12px; font-size: 14px; line-height: 1.65; text-align: left; vertical-align: top; }
.diary-08 table.sumap thead th { background: var(--soft); font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.diary-08 table.sumap tbody th { font-weight: 900; width: 84px; }
.diary-08 table.sumap tbody td:last-child { width: 42%; }
.diary-08 table.sumap tbody tr + tr th, .diary-08 table.sumap tbody tr + tr td { border-top: 1px solid var(--line); }
.diary-08 .next-note { margin: 22px 0 4px; text-align: center; font-size: 15px; font-weight: 900; }
.diary-08 .steps {
  margin-top: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 16px 16px 40px;
}
.diary-08 .steps li { font-size: 15.5px; line-height: 1.8; margin-top: 6px; }
.diary-08 .steps li:first-child { margin-top: 0; }
@media print {
  .diary-08 .excerpt-pair,
  .diary-08 .bignum,
  .diary-08 .sumap,
  .diary-08 .steps { break-inside: avoid; }
  .diary-08 .bignum .bn-num b { font-size: 76px; }
  .diary-08 .grid25 .cell { font-size: 20px; padding: 5px 0; }
  .diary-08 .talk, .diary-08 .next-note { break-inside: avoid; }
}
