/* microCMSリッチエディタコンテンツ用スタイル */
/* Tailwind Typography (prose)相当のスタイル定義 */

.column-content,
.whitepaper-content {
  color: #374151;
  max-width: none;
}

.column-content > *,
.whitepaper-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* 段落 */
.column-content p,
.whitepaper-content p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
}

/* 見出し */
.column-content h2,
.whitepaper-content h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.75em;
  font-weight: 700;
  line-height: 1.3333;
  color: #111827;
}

.column-content h3,
.whitepaper-content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.3333;
  color: #111827;
}

.column-content h4,
.whitepaper-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
}

/* テキスト装飾 */
.column-content strong,
.whitepaper-content strong {
  font-weight: 700;
  color: #111827;
}

.column-content a,
.whitepaper-content a {
  color: #0f766e;
  text-decoration: underline;
  font-weight: 500;
}

.column-content a:hover,
.whitepaper-content a:hover {
  color: #0d9488;
}

/* リスト */
.column-content ul,
.column-content ol,
.whitepaper-content ul,
.whitepaper-content ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.column-content ul,
.whitepaper-content ul {
  list-style-type: disc;
}

.column-content ol,
.whitepaper-content ol {
  list-style-type: decimal;
}

.column-content li,
.whitepaper-content li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.75;
}

.column-content li p,
.whitepaper-content li p {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

/* 引用 */
.column-content blockquote,
.whitepaper-content blockquote {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
  font-style: italic;
  border-left: 0.25rem solid #e5e7eb;
  color: #6b7280;
}

/* 画像・図 */
.column-content figure,
.whitepaper-content figure {
  margin-top: 2em;
  margin-bottom: 2em;
}

.column-content img,
.whitepaper-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

/* テーブル */
.column-content table,
.whitepaper-content table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
  border-collapse: collapse;
  border: 1px solid #d1d5db;
}

.column-content thead,
.whitepaper-content thead {
  border-bottom: 2px solid #d1d5db;
}

.column-content thead th,
.whitepaper-content thead th {
  color: #111827;
  font-weight: 700;
  vertical-align: bottom;
  padding: 0.75em;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
}

.column-content tbody tr,
.whitepaper-content tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.column-content tbody tr:last-child,
.whitepaper-content tbody tr:last-child {
  border-bottom-width: 0;
}

.column-content tbody td,
.whitepaper-content tbody td {
  vertical-align: top;
  padding: 0.75em;
  border: 1px solid #e5e7eb;
}

.column-content tbody td p,
.whitepaper-content tbody td p {
  margin: 0;
}

.column-content tbody tr:nth-child(even),
.whitepaper-content tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* コード */
.column-content code,
.whitepaper-content code {
  color: #111827;
  font-weight: 600;
  font-size: 0.875em;
  background-color: #f3f4f6;
  padding: 0.125em 0.25em;
  border-radius: 0.25rem;
}

.column-content pre,
.whitepaper-content pre {
  color: #e5e7eb;
  background-color: #1f2937;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding: 0.8571429em 1.1428571em;
}

.column-content pre code,
.whitepaper-content pre code {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* 区切り線 */
.column-content hr,
.whitepaper-content hr {
  border-color: #e5e7eb;
  margin-top: 3em;
  margin-bottom: 3em;
}

/* iframe（埋め込み動画など） */
.column-content iframe,
.whitepaper-content iframe {
  max-width: 100%;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}
