/* 
Quillの出力を「ブログ記事っぽく綺麗に整えるCSS」
*/


.reset-html * {
  all: revert;
}

.reset-html {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

/* 見出し */
.reset-html h1,
.reset-html h2,
.reset-html h3 {
  font-weight: bold;
  margin: 1.5em 0 0.5em;
  line-height: 1.4;
}

.reset-html h1 {
  font-size: 1.8em;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3em;
}

.reset-html h2 {
  font-size: 1.5em;
  border-left: 5px solid #3b82f6;
  padding-left: 10px;
}

.reset-html h3 {
  font-size: 1.2em;
  color: #555;
}

/* 段落 */
.reset-html p {
  margin: 1em 0;
}

/* リスト */
.reset-html ul,
.reset-html ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.reset-html li {
  margin: 0.5em 0;
}

/* 画像（最重要） */
.reset-html img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.5em auto;
  border-radius: 8px;
}

/* リンク */
.reset-html a {
  color: #2563eb;
  text-decoration: underline;
}

.reset-html a:hover {
  opacity: 0.8;
}

/* 引用 */
.reset-html blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  color: #666;
  margin: 1em 0;
  font-style: italic;
}

/* コード */
.reset-html pre {
  background: #1e293b;
  color: #f1f5f9;
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
}

.reset-html code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* テーブル */
.reset-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.reset-html th,
.reset-html td {
  border: 1px solid #ddd;
  padding: 8px;
}

.reset-html th {
  background: #f9fafb;
}

/* 動画・iframe（YouTube対策） */
.reset-html iframe {
  max-width: 100% !important;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5em 0;
}

/* 区切り線 */
.reset-html hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}
