/* ============================================================
   『物理からはじめる議論学』 カスタムスタイル
   LaTeX の tcolorbox 環境を Quarto の div で再現する
   ============================================================ */

/* --- 章扉（tobira） --- */
.tobira {
  background-color: #f8f8f8;
  border: 0.5pt solid #a0a0a0;
  border-radius: 3pt;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 1.15em;
  line-height: 1.8;
}

/* --- 核文（kakubun）：キーメッセージ --- */
.kakubun {
  background-color: #f0f4ff;
  border: 1.5px solid #2a4d8f;
  border-radius: 2pt;
  padding: 12px 16px;
  margin: 16px 0;
  font-weight: bold;
  line-height: 1.7;
}

/* --- 小課題（shokadai） --- */
.shokadai {
  background-color: #fff8f0;
  border: 0.5pt solid #b06020;
  border-radius: 2pt;
  padding: 12px 16px;
  margin: 16px 0;
}

.shokadai > .header {
  font-weight: bold;
  color: #8a4510;
  margin-bottom: 8px;
}

/* --- 解答例（kaitourei） --- */
.kaitourei {
  background-color: #fafafa;
  border: 0.4pt solid #999;
  border-radius: 2pt;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.95em;
}

.kaitourei > .header,
.kaitourei summary.header {
  font-weight: bold;
  font-size: 0.9em;
  color: #555;
  margin-bottom: 6px;
  cursor: pointer;
  list-style: none;
}

.kaitourei summary.header::-webkit-details-marker {
  display: none;
}

.kaitourei summary.header::before {
  content: "▶ ";
  font-size: 0.8em;
}

.kaitourei details[open] > summary.header::before {
  content: "▼ ";
  font-size: 0.8em;
}

/* --- 章末課題（assignment） --- */
.assignment {
  background-color: #f0faf0;
  border: 1px solid #3a8a3a;
  border-radius: 2pt;
  padding: 14px 16px;
  margin: 16px 0;
}

/* --- 表の整形 --- */
.comparison-table table {
  width: 100%;
  margin: 16px 0;
}

/* --- 三分類図用 --- */
.three-boxes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.three-boxes .box {
  border: 1px solid #999;
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  min-width: 140px;
  flex: 1;
  max-width: 220px;
}

.three-boxes .box-obs {
  background-color: #eef2ff;
}

.three-boxes .box-int {
  background-color: #fff5ee;
}

.three-boxes .box-unk {
  background-color: #f5f5f5;
}

.three-boxes .box h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

.three-boxes .arrow {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  color: #666;
}
